@c8y/ng1-modules 1018.467.0 → 1018.474.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,19 @@
1
1
  <c8y-breadcrumbs-set>
2
2
  <c8y-breadcrumbs-item
3
- label="{{ 'Simulators' | translate }}"
4
3
  icon="c8y-simulator"
4
+ label="{{ 'Simulators' | translate }}"
5
+ ></c8y-breadcrumbs-item>
6
+ <c8y-breadcrumbs-item
7
+ icon="exchange"
8
+ label="{{ 'Devices' | translate }}"
5
9
  ></c8y-breadcrumbs-item>
6
- <c8y-breadcrumbs-item label="{{ 'Devices' | translate }}" icon="exchange"></c8y-breadcrumbs-item>
7
10
  </c8y-breadcrumbs-set>
8
11
 
9
12
  <c8y-ui-action-bar-set>
10
- <li class="navbar-form hidden-xs" action-bar-position="left">
13
+ <li
14
+ class="navbar-form hidden-xs"
15
+ action-bar-position="left"
16
+ >
11
17
  <c8y-list-display-control
12
18
  list-length="vm.simulators.length"
13
19
  on-list-class-change="vm.listClass = listClass"
@@ -23,7 +29,10 @@
23
29
  ng-click="vm.load()"
24
30
  ng-disabled="vm.loading"
25
31
  >
26
- <i c8y-icon="refresh" ng-class="{ 'icon-spin': vm.loading }"></i>
32
+ <i
33
+ ng-class="{ 'icon-spin': vm.loading }"
34
+ c8y-icon="refresh"
35
+ ></i>
27
36
  {{ 'Reload' | translate }}
28
37
  </button>
29
38
  </c8y-ui-action-bar-set>
@@ -32,10 +41,10 @@
32
41
 
33
42
  <!-- empty state -->
34
43
  <c8y-ui-empty-state
35
- ng-if="vm.simulators.length === 0"
36
44
  [icon]="'c8y-simulator'"
37
45
  [title]="'No simulators to display.' | translate"
38
46
  [subtitle]="'Click below to add your first simulator.' | translate"
47
+ ng-if="vm.simulators.length === 0"
39
48
  >
40
49
  <c8y-simulator-add on-added="vm.onSimulatorAdded(simulator)"></c8y-simulator-add>
41
50
 
@@ -48,8 +57,14 @@
48
57
  </p>
49
58
  </c8y-ui-empty-state>
50
59
 
51
- <div class="card-group" ng-class="vm.listClass">
52
- <div class="page-sticky-header hidden-xs" ng-if="vm.simulators.length > 0">
60
+ <div
61
+ class="card-group"
62
+ ng-class="vm.listClass"
63
+ >
64
+ <div
65
+ class="page-sticky-header hidden-xs"
66
+ ng-if="vm.simulators.length > 0"
67
+ >
53
68
  <div class="d-flex">
54
69
  <div class="card-actions"></div>
55
70
  <div class="card-header card-column-40">
@@ -75,20 +90,29 @@
75
90
  class="col-xs-12 col-sm-6 col-md-4 col-lg-3"
76
91
  ng-repeat="simulator in vm.simulators | orderBy:'name'"
77
92
  >
78
- <div class="card" ng-click="vm.edit(simulator)">
93
+ <div
94
+ class="card"
95
+ ng-click="vm.edit(simulator)"
96
+ >
79
97
  <div class="card-actions">
80
- <div class="dropdown settings" uib-dropdown>
98
+ <div
99
+ class="dropdown settings"
100
+ uib-dropdown
101
+ >
81
102
  <button
82
103
  class="dropdown-toggle c8y-dropdown"
83
- type="button"
84
104
  title="{{ 'Actions' | translate }}"
85
- uib-dropdown-toggle
86
105
  aria-haspopup="true"
106
+ type="button"
107
+ uib-dropdown-toggle
87
108
  ng-click="$event.stopPropagation()"
88
109
  >
89
110
  <span><i c8y-icon="ellipsis-v"></i></span>
90
111
  </button>
91
- <ul class="dropdown-menu dropdown-menu-right" uib-dropdown-menu>
112
+ <ul
113
+ class="dropdown-menu dropdown-menu-right"
114
+ uib-dropdown-menu
115
+ >
92
116
  <li>
93
117
  <button
94
118
  title="{{ 'Edit' | translate }}"
@@ -127,7 +151,10 @@
127
151
  <div class="card-icon">
128
152
  <i c8y-icon="c8y-simulator c8y-icon-duocolor"></i>
129
153
  </div>
130
- <div class="text-truncate card-title" title="{{ simulator.name }}">
154
+ <div
155
+ class="text-truncate card-title"
156
+ title="{{ simulator.name }}"
157
+ >
131
158
  {{ simulator.name }}
132
159
  </div>
133
160
  </div>
@@ -135,8 +162,8 @@
135
162
  <div class="card-block card-column-30 m-r-0">
136
163
  <div ng-switch="simulator.state">
137
164
  <label
138
- title="{{ 'Toggle simulator state' | translate }}"
139
165
  class="c8y-switch c8y-switch--inline"
166
+ title="{{ 'Toggle simulator state' | translate }}"
140
167
  ng-click="$event.stopPropagation()"
141
168
  >
142
169
  <input
@@ -147,8 +174,8 @@
147
174
  <span></span>
148
175
  <span
149
176
  class="text-capitalize"
150
- ng-switch-default
151
177
  title="{{ simulator.state | translate | lowercase }}"
178
+ ng-switch-default
152
179
  >
153
180
  {{ simulator.state.toLowerCase() | translate }}
154
181
  </span>
@@ -159,14 +186,24 @@
159
186
  <div class="card-footer separator card-column-30">
160
187
  <div class="d-flex fit-w">
161
188
  <div class="card-column-50 flex-grow">
162
- <span class="text-label-small" translate>Instances</span>
189
+ <span
190
+ class="text-label-small"
191
+ translate
192
+ >
193
+ Instances
194
+ </span>
163
195
  <span title=" {{ simulator.instances }} {{ 'Instances' | translate }}">
164
196
  <i c8y-icon="{{ vm.icons.simulator }}"></i>
165
197
  {{ simulator.instances }}
166
198
  </span>
167
199
  </div>
168
200
  <div class="card-column-50">
169
- <span class="text-label-small" translate>Instructions</span>
201
+ <span
202
+ class="text-label-small"
203
+ translate
204
+ >
205
+ Instructions
206
+ </span>
170
207
  <span title="{{ simulator.commandQueue.length }} {{ 'Instructions' | translate }}">
171
208
  <i c8y-icon="{{ vm.icons.instruction }}"></i>
172
209
  {{ simulator.commandQueue.length }}