aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/directives/graphs-v2/composition-graph/composition-graph.html
blob: b473f4462898695d325a9ff1089b747da15f5521 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!--
  ~ Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
 
 
<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>