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>
30 <div class="w-sdc-search-menu" data-ng-class="{'with-sidebar': withSidebar}">
32 <ng2-service-path-selector
33 ng-if="component.isService()"
35 [draw-path]="drawPathOnCy"
36 [delete-paths]="deletePathsOnCy"
37 [selected-path-id]="selectedPathId">
38 </ng2-service-path-selector>
40 ng-if="component.isService()"
42 [on-create]="createOrUpdateServicePath"
43 [is-view-only]="isViewOnly">
45 <ng2-search-with-autocomplete
46 [search-placeholder]="'Type to search'"
47 [auto-complete-values]="componentInstanceNames"
48 (search-changed)="getAutoCompleteValues($event)"
49 (search-button-clicked)="highlightSearchMatches($event)"
50 [search-bar-class]="'composition-search'">
51 </ng2-search-with-autocomplete>
52 <div class="zoom-icons sprite-new canvas-fit-all" data-ng-click="zoomAllWithoutSidebar()"></div>
53 <div class="zoom-icons sprite-new zoom-plus" data-ng-click="zoom(true)"></div>
54 <div class="zoom-icons sprite-new zoom-minus" data-ng-click="zoom(false)"></div>
56 <!--<asset-popover ng-if="assetPopoverOpen" asset-popover-obj="assetPopoverObj" delete-asset="deleteNode(assetPopoverObj.nodeId)"></asset-popover>-->
57 <div class="sdc-canvas-zones__wrapper {{zoneTagMode}}" data-ng-class="{'with-sidebar': withSidebar}">
58 <ng2-zone-container data-ng-repeat="zone in zones" [title]="zone.title" [type]="zone.type" [count]="zone.instances.length"
59 [visible]="zone.visible" [minimized]="zone.minimized" (minimize)="zoneMinimizeToggle(zone.type)" (background-click)="zoneBackgroundClicked()">
61 data-ng-repeat="instance in zone.instances" [hidden]="instance.hidden"
62 [zone-instance]="instance" [default-icon-text]="zone.defaultIconText" [is-active]="activeZoneInstance == instance" [active-instance-mode]="activeZoneInstance && activeZoneInstance.mode"
63 [is-view-only]="isViewOnly" [force-save]="instance.forceSave" (mode-change)="zoneInstanceModeChanged($event.newMode, $event.instance, zone.type)" (tag-handle-click)="zoneInstanceTagged($event)"
64 (assignment-save-start)="zoneAssignmentSaveStart()" (assignment-save-complete)="zoneAssignmentSaveComplete($event)">