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
68
69
70
71
72
73
74
75
76
|
<!--
~ 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.
-->
<div class="w-sdc-designer-leftbar">
<div class="w-sdc-designer-leftbar-title">Elements <span class="w-sdc-designer-leftbar-title-count">{{model.numberOfElements}}</span>
</div>
<div class="w-sdc-designer-leftbar-search">
<input type="text" class="w-sdc-designer-leftbar-search-input" placeholder="Search..."
data-ng-model="searchText" data-ng-change="searchComponents(searchText)"
ng-model-options="{ debounce: 500 }" data-tests-id="searchAsset"/>
<span class="w-sdc-search-icon leftbar" data-ng-class="{'cancel':searchText, 'magnification':!searchText}"
data-ng-click="searchText=''; searchComponents('',categories)"></span>
</div>
<div class="i-sdc-designer-leftbar-section"
data-ng-repeat="(entityCategory, objCategory) in displaySortedCategories track by $index"
data-ng-class="{'expanded': expandedSection.indexOf(entityCategory) !== -1}">
<div class="i-sdc-designer-leftbar-section-title pointer" data-ng-click="sectionClick(entityCategory)"
data-tests-id="leftbar-section-title-{{entityCategory}}">
{{entityCategory}}
<div class="i-sdc-designer-leftbar-section-title-icon"></div>
</div>
<div class="i-sdc-designer-leftbar-section-content"
data-ng-repeat="(subCategory, components) in objCategory track by $index">
<div class="i-sdc-designer-leftbar-section-content-subcat i-sdc-designer-leftbar-section-content-item">
{{subCategory}}
</div>
<div class="i-sdc-designer-leftbar-section-content-item"
data-ng-class="{'default-pointer': isViewOnly}"
data-ng-mouseover="!isViewOnly && onMouseOver(component, $event.currentTarget)"
data-ng-mouseleave="!isViewOnly && onMouseOut(component)"
data-drag="!isViewOnly && component.isDraggable"
data-jqyoui-options="{revert: 'invalid', helper:setElementTemplate, appendTo:'body', cursorAt: {left:38, top: 38}, cursor:'move'}"
jqyoui-draggable="{index:{{$index}},animate:true,onStart:'dragStartCallback(component)',onStop:'dragStopCallback()', onDrag:'onDragCallback()'}"
data-ng-repeat="component in components | orderBy: 'displayName' track by $index"
data-tests-id={{component.displayName}}>
<div class="i-sdc-designer-leftbar-section-content-item-icon-ph">
<div class="medium small {{component.iconClass}}"
data-tests-id="leftbar-section-content-item-{{component.displayName}}">
<div class="{{component.certifiedIconClass}}" uib-tooltip="Not certified"
tooltip-class="uib-custom-tooltip" tooltip-placement="bottom" tooltip-popup-delay="700">
</div>
</div>
</div>
<div class="i-sdc-designer-leftbar-section-content-item-info">
<span class="i-sdc-designer-leftbar-section-content-item-info-title"
uib-tooltip="{{component.displayName}}" tooltip-class="uib-custom-tooltip"
tooltip-placement="bottom" tooltip-popup-delay="700">
{{component.displayName}}</span>
<div class="i-sdc-designer-leftbar-section-content-item-info-text">
V.{{component.version}}
</div>
<div class="i-sdc-designer-leftbar-section-content-item-info-text"
uib-tooltip="{{component.type}}" tooltip-class="uib-custom-tooltip"
tooltip-placement="top" tooltip-popup-delay="700"> Type:
{{component.componentSubType}}
</div>
</div>
</div>
</div>
</div>
</div>
|