aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/directives/graphs-v2/composition-graph/composition-graph.html
blob: 2d8145f81e6576d91dd3c17517156b2ddfebc65e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<loader display="isLoading" loader-type="composition-graph"></loader>
<div class="sdc-composition-graph-wrapper {{zoneTagMode}}" ng-class="{'with-sidebar': withSidebar, 'view-only':isViewOnly}"
     data-drop="!zoneTagMode"
     data-jqyoui-options="{accept: verifyDrop}"
     data-jqyoui-droppable="{onDrop:'dropCallback', beforeDrop: 'beforeDropCallback'}">
</div>

<!-- <relation-menu relation-menu-directive-obj="relationMenuDirectiveObj" is-link-menu-open="isLinkMenuOpen"
               create-relation="createLinkFromMenu" cancel="cancelRelationMenu()"></relation-menu> -->

<menu-list-ng2 [props]="canvasMenuProps"></menu-list-ng2>

    <div class="w-sdc-search-menu" data-ng-class="{'with-sidebar': withSidebar}">

    <ng2-service-path-selector
        ng-if="component.isService()"
        [service]="component"
        [draw-path]="drawPathOnCy"
        [delete-paths]="deletePathsOnCy"
        [selected-path-id]="selectedPathId">
    </ng2-service-path-selector>
    <ng2-service-path 
        ng-if="component.isService()"
        [service]="component"
        [on-create]="createOrUpdateServicePath"
        [is-view-only]="isViewOnly">
    </ng2-service-path>
    <ng2-search-with-autocomplete
        [search-placeholder]="'Type to search'"
        [auto-complete-values]="componentInstanceNames"
        (search-changed)="getAutoCompleteValues($event)"
        (search-button-clicked)="highlightSearchMatches($event)"
        [search-bar-class]="'composition-search'">
    </ng2-search-with-autocomplete>
        <div class="zoom-icons sprite-new canvas-fit-all" data-ng-click="zoomAllWithoutSidebar()"></div>
        <div class="zoom-icons sprite-new zoom-plus" data-ng-click="zoom(true)"></div>
        <div class="zoom-icons sprite-new zoom-minus" data-ng-click="zoom(false)"></div>
    </div>
<!--<asset-popover ng-if="assetPopoverOpen" asset-popover-obj="assetPopoverObj" delete-asset="deleteNode(assetPopoverObj.nodeId)"></asset-popover>-->
<div class="sdc-canvas-zones__wrapper {{zoneTagMode}}" data-ng-class="{'with-sidebar': withSidebar}">
    <ng2-zone-container data-ng-repeat="zone in zones" [title]="zone.title" [type]="zone.type" [count]="zone.instances.length"
                        [visible]="zone.visible" [minimized]="zone.minimized" (minimize)="zoneMinimizeToggle(zone.type)" (background-click)="zoneBackgroundClicked()">
        <ng2-zone-instance
            data-ng-repeat="instance in zone.instances" [hidden]="instance.hidden"
            [zone-instance]="instance" [default-icon-text]="zone.defaultIconText" [is-active]="activeZoneInstance == instance" [active-instance-mode]="activeZoneInstance && activeZoneInstance.mode"
            [is-view-only]="isViewOnly" [force-save]="instance.forceSave" (mode-change)="zoneInstanceModeChanged($event.newMode, $event.instance, zone.type)" (tag-handle-click)="zoneInstanceTagged($event)"
            (assignment-save-start)="zoneAssignmentSaveStart()" (assignment-save-complete)="zoneAssignmentSaveComplete($event)">
        </ng2-zone-instance>
    </ng2-zone-container>
</div>