2 ~ Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
8 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
18 <loader display="isLoading" loader-type="composition-graph"></loader>
19 <div class="sdc-composition-graph-wrapper {{zoneTagMode}}" ng-class="{'with-sidebar': withSidebar, 'view-only':isViewOnly}"
20 data-drop="!zoneTagMode"
21 data-jqyoui-options="{accept: verifyDrop}"
22 data-jqyoui-droppable="{onDrop:'dropCallback', beforeDrop: 'beforeDropCallback'}">
25 <!-- <relation-menu relation-menu-directive-obj="relationMenuDirectiveObj" is-link-menu-open="isLinkMenuOpen"
26 create-relation="createLinkFromMenu" cancel="cancelRelationMenu()"></relation-menu> -->
28 <menu-list-ng2 [props]="canvasMenuProps"></menu-list-ng2>
29 <div id="cyMenu" class="hidePaste">
30 <div class="w-canvas-content-paste" data-ng-click="pasteComponentInstance($event)">paste</div>
33 <div class="w-sdc-search-menu" data-ng-class="{'with-sidebar': withSidebar}">
35 <ng2-service-path-selector
36 ng-if="component.isService()"
38 [draw-path]="drawPathOnCy"
39 [delete-paths]="deletePathsOnCy"
40 [selected-path-id]="selectedPathId">
41 </ng2-service-path-selector>
43 ng-if="component.isService()"
45 [on-create]="createOrUpdateServicePath"
46 [is-view-only]="isViewOnly">
48 <ng2-search-with-autocomplete
49 [search-placeholder]="'Type to search'"
50 [auto-complete-values]="componentInstanceNames"
51 (search-changed)="getAutoCompleteValues($event)"
52 (search-button-clicked)="highlightSearchMatches($event)"
53 [search-bar-class]="'composition-search'">
54 </ng2-search-with-autocomplete>
55 <div class="zoom-icons sprite-new canvas-fit-all" data-ng-click="zoomAllWithoutSidebar()"></div>
56 <div class="zoom-icons sprite-new zoom-plus" data-ng-click="zoom(true)"></div>
57 <div class="zoom-icons sprite-new zoom-minus" data-ng-click="zoom(false)"></div>
59 <!--<asset-popover ng-if="assetPopoverOpen" asset-popover-obj="assetPopoverObj" delete-asset="deleteNode(assetPopoverObj.nodeId)"></asset-popover>-->
60 <div class="sdc-canvas-zones__wrapper {{zoneTagMode}}" data-ng-class="{'with-sidebar': withSidebar}">
61 <ng2-zone-container data-ng-repeat="zone in zones" [title]="zone.title" [type]="zone.type" [count]="zone.instances.length"
62 [visible]="zone.visible" [minimized]="zone.minimized" (minimize)="zoneMinimizeToggle(zone.type)" (background-click)="zoneBackgroundClicked()">
64 data-ng-repeat="instance in zone.instances" [hidden]="instance.hidden"
65 [zone-instance]="instance" [default-icon-text]="zone.defaultIconText" [is-active]="activeZoneInstance == instance" [active-instance-mode]="activeZoneInstance && activeZoneInstance.mode"
66 [is-view-only]="isViewOnly" [force-save]="instance.forceSave" (mode-change)="zoneInstanceModeChanged($event.newMode, $event.instance, zone.type)" (tag-handle-click)="zoneInstanceTagged($event)"
67 (assignment-save-start)="zoneAssignmentSaveStart()" (assignment-save-complete)="zoneAssignmentSaveComplete($event)">