@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.
@@ -2,20 +2,20 @@
2
2
  <c8y-ui-title-set title="'Exports' | translate"></c8y-ui-title-set>
3
3
  <c8y-breadcrumbs-set>
4
4
  <c8y-breadcrumbs-item
5
- label="{{ 'Exports' | translate }}"
6
5
  icon="c8y-report"
6
+ label="{{ 'Exports' | translate }}"
7
7
  ></c8y-breadcrumbs-item>
8
8
  <c8y-breadcrumbs-item
9
- label="{{ 'Configuration' | translate }}"
10
9
  icon="c8y-tools"
10
+ label="{{ 'Configuration' | translate }}"
11
11
  ></c8y-breadcrumbs-item>
12
12
  </c8y-breadcrumbs-set>
13
13
 
14
14
  <c8y-ui-action-bar-set>
15
15
  <button
16
16
  class="btn btn-link"
17
- type="button"
18
17
  title="{{ 'Export' | translate }}"
18
+ type="button"
19
19
  ng-click="runExport()"
20
20
  ng-disabled="!vm.hasEmail || vm.getSelectedConfigs().length === 0"
21
21
  >
@@ -25,8 +25,8 @@
25
25
 
26
26
  <button
27
27
  class="btn btn-link"
28
- type="button"
29
28
  title="{{ 'Add export' | translate }}"
29
+ type="button"
30
30
  data-ng-click="add()"
31
31
  >
32
32
  <i c8y-icon="plus-circle"></i>
@@ -39,13 +39,16 @@
39
39
  <c8y-help src="/users-guide/cockpit/#export"></c8y-help>
40
40
 
41
41
  <div class="c8y-list__group">
42
- <div class="page-sticky-header c8y-list__item hidden-xs" ng-if="rows.length > 0">
42
+ <div
43
+ class="page-sticky-header c8y-list__item hidden-xs"
44
+ ng-if="rows.length > 0"
45
+ >
43
46
  <div class="c8y-list__item__block">
44
47
  <div class="c8y-list__item__check">
45
48
  <button
46
49
  class="btn-help btn-help--sm"
47
- type="button"
48
50
  aria-label="{{ 'Help' | translate }}"
51
+ type="button"
49
52
  uib-popover-html="'You will receive an email with the download links for the selected exports.' | translate"
50
53
  popover-append-to-body="true"
51
54
  popover-placement="right"
@@ -73,23 +76,35 @@
73
76
  </div>
74
77
  </div>
75
78
 
76
- <div class="c8y-list__item" ng-repeat="row in rows | orderBy:'config.name'">
79
+ <div
80
+ class="c8y-list__item"
81
+ ng-repeat="row in rows | orderBy:'config.name'"
82
+ >
77
83
  <div class="c8y-list__item__block">
78
84
  <div class="c8y-list__item__check p-r-4">
79
85
  <label class="c8y-checkbox input-sm">
80
86
  <input
81
- id="select"
82
87
  title="{{ 'Select' | translate }}"
88
+ id="select"
83
89
  type="checkbox"
84
90
  ng-model="row.selected"
85
91
  ng-change="updateOutput()"
86
92
  />
87
93
  <span></span>
88
- <span for="select" class="sr-only" translate>Select</span>
94
+ <span
95
+ class="sr-only"
96
+ for="select"
97
+ translate
98
+ >
99
+ Select
100
+ </span>
89
101
  </label>
90
102
  </div>
91
103
 
92
- <div class="c8y-list__item__icon" ng-click="detail(row.config)">
104
+ <div
105
+ class="c8y-list__item__icon"
106
+ ng-click="detail(row.config)"
107
+ >
93
108
  <i
94
109
  class="p-l-0"
95
110
  ng-class="{
@@ -106,7 +121,10 @@
106
121
  ></i>
107
122
  </div>
108
123
 
109
- <div class="c8y-list__item__body" ng-click="detail(row.config)">
124
+ <div
125
+ class="c8y-list__item__body"
126
+ ng-click="detail(row.config)"
127
+ >
110
128
  <div class="content-flex-60">
111
129
  <div class="col-4">
112
130
  <span title="{{ row.config.name }}">
@@ -134,19 +152,31 @@
134
152
  </div>
135
153
  <div class="col-4">
136
154
  <span ng-show="::row.config.queryParameters.dateType == 'LAST_WEEK'">
137
- <i c8y-icon="calendar" class="m-r-4"></i>
155
+ <i
156
+ class="m-r-4"
157
+ c8y-icon="calendar"
158
+ ></i>
138
159
  <translate>Last week</translate>
139
160
  </span>
140
161
  <span ng-show="::row.config.queryParameters.dateType == 'LAST_MONTH'">
141
- <i c8y-icon="calendar" class="m-r-4"></i>
162
+ <i
163
+ class="m-r-4"
164
+ c8y-icon="calendar"
165
+ ></i>
142
166
  <translate>Last month</translate>
143
167
  </span>
144
168
  <span ng-show="::row.config.queryParameters.dateType == 'LAST_YEAR'">
145
- <i c8y-icon="calendar" class="m-r-4"></i>
169
+ <i
170
+ class="m-r-4"
171
+ c8y-icon="calendar"
172
+ ></i>
146
173
  <translate>Last year</translate>
147
174
  </span>
148
175
  <span ng-show="::row.config.queryParameters.dateType == 'CUSTOM'">
149
- <i c8y-icon="calendar" class="m-r-4"></i>
176
+ <i
177
+ class="m-r-4"
178
+ c8y-icon="calendar"
179
+ ></i>
150
180
  <span ng-show="::row.config.queryParameters.from">
151
181
  <label class="text-label-small">{{ 'From`date`' | translate }}</label>
152
182
  {{ row.config.queryParameters.from | absoluteDate }} &nbsp;
@@ -161,22 +191,28 @@
161
191
  </div>
162
192
 
163
193
  <div class="c8y-list__item__actions">
164
- <div uib-dropdown is-open="menuOpen">
194
+ <div
195
+ uib-dropdown
196
+ is-open="menuOpen"
197
+ >
165
198
  <button
166
199
  class="dropdown-toggle c8y-dropdown"
167
- type="button"
168
200
  title="{{ 'Actions' | translate }}"
169
- uib-dropdown-toggle
170
201
  aria-haspopup="true"
202
+ type="button"
203
+ uib-dropdown-toggle
171
204
  data-cy="Actions"
172
205
  >
173
206
  <i c8y-icon="ellipsis-v"></i>
174
207
  </button>
175
- <ul class="dropdown-menu dropdown-menu-right" uib-dropdown-menu>
208
+ <ul
209
+ class="dropdown-menu dropdown-menu-right"
210
+ uib-dropdown-menu
211
+ >
176
212
  <li>
177
213
  <button
178
- type="button"
179
214
  title="{{ 'Edit' | translate }}"
215
+ type="button"
180
216
  data-cy="Edit"
181
217
  ng-click="detail(row.config)"
182
218
  >
@@ -186,8 +222,8 @@
186
222
  </li>
187
223
  <li>
188
224
  <button
189
- type="button"
190
225
  title="{{ 'Duplicate' | translate }}"
226
+ type="button"
191
227
  data-cy="Duplicate"
192
228
  ng-click="clone(row.config)"
193
229
  >
@@ -197,8 +233,8 @@
197
233
  </li>
198
234
  <li>
199
235
  <button
200
- type="button"
201
236
  title="{{ 'Delete' | translate }}"
237
+ type="button"
202
238
  data-cy="Delete"
203
239
  ng-click="remove(row.config)"
204
240
  >
@@ -215,16 +251,16 @@
215
251
 
216
252
  <!-- Empty state -->
217
253
  <c8y-ui-empty-state
218
- ng-if="rows.length === 0"
219
254
  [icon]="'graph-report'"
220
255
  [title]="'No exports to display.' | translate"
221
256
  [subtitle]="'Add your first export using the button below.' | translate"
257
+ ng-if="rows.length === 0"
222
258
  >
223
259
  <p>
224
260
  <button
225
- type="button"
226
- title="{{ 'Add export' | translate }}"
227
261
  class="btn btn-primary"
262
+ title="{{ 'Add export' | translate }}"
263
+ type="button"
228
264
  data-ng-click="add()"
229
265
  >
230
266
  {{ 'Add export' | translate }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/ng1-modules",
3
- "version": "1018.467.0",
3
+ "version": "1018.474.0",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity",
6
6
  "description": "AngularJS modules for Cumulocity IoT applications.",
@@ -1,35 +1,44 @@
1
1
  <c8y-breadcrumbs-set>
2
2
  <c8y-breadcrumbs-item
3
+ icon="c8y-accounts"
3
4
  path="#roles"
4
5
  label="{{ 'Roles' | translate }}"
5
- icon="c8y-accounts"
6
6
  ></c8y-breadcrumbs-item>
7
7
  <c8y-breadcrumbs-item
8
- label="{{ 'Accounts' | translate }}"
9
8
  icon="c8y-accounts"
9
+ label="{{ 'Accounts' | translate }}"
10
10
  ></c8y-breadcrumbs-item>
11
11
  </c8y-breadcrumbs-set>
12
12
 
13
13
  <c8y-ui-action-bar-set>
14
- <li class="navbar-form hidden-xs" action-bar-position="left">
14
+ <li
15
+ class="navbar-form hidden-xs"
16
+ action-bar-position="left"
17
+ >
15
18
  <c8y-list-display-control
16
19
  list-length="vm.roles.length"
17
20
  on-list-class-change="vm.listClass = listClass"
18
21
  ></c8y-list-display-control>
19
22
  </li>
20
23
 
21
- <li class="navbar-form" action-bar-position="left">
24
+ <li
25
+ class="navbar-form"
26
+ action-bar-position="left"
27
+ >
22
28
  <div class="input-group input-group-search">
23
29
  <input
24
- title="{{ 'Filter roles' | translate }}"
25
- type="search"
26
30
  class="form-control"
31
+ title="{{ 'Filter roles' | translate }}"
32
+ id="filter"
27
33
  placeholder="{{ 'Filter' | translate }}…"
34
+ type="search"
28
35
  ng-model="vm.searchString"
29
- id="filter"
30
36
  />
31
37
  <span class="input-group-addon">
32
- <i c8y-icon="search" ng-if="vm.searchString.length === 0 || !vm.searchString"></i>
38
+ <i
39
+ c8y-icon="search"
40
+ ng-if="vm.searchString.length === 0 || !vm.searchString"
41
+ ></i>
33
42
  <i
34
43
  class="text-muted"
35
44
  c8y-icon="times"
@@ -37,15 +46,21 @@
37
46
  ng-click="vm.searchString = ''"
38
47
  ></i>
39
48
  </span>
40
- <span for="filter" class="sr-only" translate>Filter roles</span>
49
+ <span
50
+ class="sr-only"
51
+ for="filter"
52
+ translate
53
+ >
54
+ Filter roles
55
+ </span>
41
56
  </div>
42
57
  </li>
43
58
 
44
59
  <li action-bar-position="right">
45
60
  <button
61
+ class="btn btn-link"
46
62
  title="{{ 'Add inventory role' | translate }}"
47
63
  type="button"
48
- class="btn btn-link"
49
64
  ng-click="::vm.addRole()"
50
65
  ng-show="vm.roles[0].permissions"
51
66
  >
@@ -53,9 +68,9 @@
53
68
  <span translate>Add inventory role</span>
54
69
  </button>
55
70
  <button
71
+ class="btn btn-link"
56
72
  title="{{ 'Add global role' | translate }}"
57
73
  type="button"
58
- class="btn btn-link"
59
74
  ng-click="::vm.addRole()"
60
75
  ng-show="!vm.roles[0].permissions"
61
76
  >
@@ -69,10 +84,10 @@
69
84
 
70
85
  <!-- Empty state -->
71
86
  <c8y-ui-empty-state
72
- ng-if="vm.roles.length === 0"
73
87
  [icon]="'c8y-users'"
74
88
  [title]="'No roles to display.' | translate"
75
89
  [subtitle]="'Click below to add your first role.' | translate"
90
+ ng-if="vm.roles.length === 0"
76
91
  >
77
92
  <button
78
93
  class="btn btn-primary"
@@ -90,7 +105,10 @@
90
105
  >
91
106
  {{ 'Add global role' | translate }}
92
107
  </button>
93
- <p class="m-t-4" c8y-guide-docs>
108
+ <p
109
+ class="m-t-4"
110
+ c8y-guide-docs
111
+ >
94
112
  <small translate>
95
113
  Find out more in the
96
114
  <a c8y-guide-href="users-guide/administration/#managing-permissions">
@@ -101,8 +119,14 @@
101
119
  </p>
102
120
  </c8y-ui-empty-state>
103
121
 
104
- <div class="card-group" ng-class="vm.listClass">
105
- <div class="page-sticky-header hidden-xs" ng-if="vm.roles.length > 0">
122
+ <div
123
+ class="card-group"
124
+ ng-class="vm.listClass"
125
+ >
126
+ <div
127
+ class="page-sticky-header hidden-xs"
128
+ ng-if="vm.roles.length > 0"
129
+ >
106
130
  <div class="d-flex">
107
131
  <div class="card-header">
108
132
  <p translate>Name</p>
@@ -112,7 +136,10 @@
112
136
  <span translate>Description</span>
113
137
  </div>
114
138
  </div>
115
- <div class="card-footer card-column-30 m-r-8" ng-if="vm.roles[0].permissions">
139
+ <div
140
+ class="card-footer card-column-30 m-r-8"
141
+ ng-if="vm.roles[0].permissions"
142
+ >
116
143
  <span translate>Permissions</span>
117
144
  </div>
118
145
  </div>
@@ -122,22 +149,34 @@
122
149
  ng-repeat="role in vm.roles | filter:vm.searchString as filtered"
123
150
  ng-click="::vm.edit(role)"
124
151
  >
125
- <div class="card card--d-col" ng-click="vm.edit(role)">
126
- <div class="card-actions" ng-click="$event.stopPropagation()">
127
- <div class="dropdown settings" uib-dropdown>
152
+ <div
153
+ class="card card--d-col"
154
+ ng-click="vm.edit(role)"
155
+ >
156
+ <div
157
+ class="card-actions"
158
+ ng-click="$event.stopPropagation()"
159
+ >
160
+ <div
161
+ class="dropdown settings"
162
+ uib-dropdown
163
+ >
128
164
  <button
129
- type="button"
130
- title="{{ 'Actions' | translate }}"
131
165
  class="dropdown-toggle c8y-dropdown"
132
- uib-dropdown-toggle
166
+ title="{{ 'Actions' | translate }}"
133
167
  aria-haspopup="true"
168
+ type="button"
169
+ uib-dropdown-toggle
134
170
  ng-click="::$event.stopPropagation()"
135
171
  >
136
172
  <span>
137
173
  <i c8y-icon="ellipsis-v"></i>
138
174
  </span>
139
175
  </button>
140
- <ul class="dropdown-menu dropdown-menu-right" uib-dropdown-menu>
176
+ <ul
177
+ class="dropdown-menu dropdown-menu-right"
178
+ uib-dropdown-menu
179
+ >
141
180
  <li>
142
181
  <button
143
182
  title="{{ 'Edit' | translate }}"
@@ -175,15 +214,30 @@
175
214
 
176
215
  <div class="card-header separator">
177
216
  <div class="card-icon">
178
- <i c8y-icon="connected-people" class="text-gray-darker" ng-if="role.customProperties"></i>
179
- <i c8y-icon="insurance-agent" class="text-gray-darker" ng-if="!role.customProperties"></i>
217
+ <i
218
+ class="text-gray-darker"
219
+ c8y-icon="connected-people"
220
+ ng-if="role.customProperties"
221
+ ></i>
222
+ <i
223
+ class="text-gray-darker"
224
+ c8y-icon="insurance-agent"
225
+ ng-if="!role.customProperties"
226
+ ></i>
180
227
  </div>
181
- <div class="card-title text-truncate" title="{{::role.name | translate}}">
228
+ <div
229
+ class="card-title text-truncate"
230
+ title="{{::role.name | translate}}"
231
+ >
182
232
  <span>{{::role.name | translate}}</span>
183
233
  </div>
184
234
  </div>
185
235
  <div class="card-block card-column-70">
186
- <span class="text-label-small" title="{{ connector.description }}" translate>
236
+ <span
237
+ class="text-label-small"
238
+ title="{{ connector.description }}"
239
+ translate
240
+ >
187
241
  Description
188
242
  </span>
189
243
  <small ng-show="role.description">
@@ -195,8 +249,14 @@
195
249
  </small>
196
250
  </span>
197
251
  </div>
198
- <div class="card-footer separator card-column-30" ng-if="role.permissions">
199
- <span class="badge badge-info" ng-bind="::role.permissions.length"></span>
252
+ <div
253
+ class="card-footer separator card-column-30"
254
+ ng-if="role.permissions"
255
+ >
256
+ <span
257
+ class="badge badge-info"
258
+ ng-bind="::role.permissions.length"
259
+ ></span>
200
260
  <span
201
261
  class="text-label-small"
202
262
  translate
@@ -212,10 +272,10 @@
212
272
 
213
273
  <!-- no results empty state -->
214
274
  <c8y-ui-empty-state
215
- ng-if="filtered.length === 0 && vm.searchString.length > 0"
216
275
  [icon]="'search'"
217
276
  [title]="'No results to display.' | translate"
218
277
  [subtitle]="'Refine your search terms or check your spelling.' | translate"
278
+ ng-if="filtered.length === 0 && vm.searchString.length > 0"
219
279
  ></c8y-ui-empty-state>
220
280
 
221
281
  <c8y-load-more></c8y-load-more>
@@ -1,33 +1,52 @@
1
1
  <div class="bg-level-1 flex-grow">
2
- <ul class="c8y-nav-stacked" ui-sortable="vm.uiSortableOptions" ng-model="vm.instructions">
2
+ <ul
3
+ class="c8y-nav-stacked"
4
+ ui-sortable="vm.uiSortableOptions"
5
+ ng-model="vm.instructions"
6
+ >
3
7
  <li
4
8
  class="c8y-stacked-item"
5
- ng-repeat="instruction in vm.instructions"
6
- ng-style="vm.checkClickable(instruction)"
7
9
  ng-class="{ active: vm.isInstructionSelected(instruction) }"
10
+ ng-style="vm.checkClickable(instruction)"
11
+ ng-repeat="instruction in vm.instructions"
8
12
  >
9
13
  <i
14
+ class="text-muted showOnHover handle"
10
15
  c8y-icon="reorder"
11
- ng-show="vm.canDrag(instruction)"
12
16
  title="{{ 'Drag to reorder' | translate }}"
13
- class="text-muted showOnHover handle"
17
+ ng-show="vm.canDrag(instruction)"
14
18
  ></i>
15
19
  <button
16
20
  class="btn-clean d-flex fit-w text-truncate"
17
21
  type="button"
18
22
  ng-click="vm.select(instruction)"
19
23
  >
20
- <i c8y-icon="{{ vm.icons[instruction.type] }}" class="icon-20 m-r-4"></i>
21
- <span class="text-truncate" title="{{ vm.title(instruction) | translate }}">
24
+ <i
25
+ class="icon-20 m-r-4"
26
+ c8y-icon="{{ vm.icons[instruction.type] }}"
27
+ ></i>
28
+ <span
29
+ class="text-truncate"
30
+ title="{{ vm.title(instruction) | translate }}"
31
+ >
22
32
  <span ng-bind="vm.title(instruction) | translate"></span>
23
33
 
24
- <span class="text-muted" ng-show="instruction.type === 'message'">
34
+ <span
35
+ class="text-muted"
36
+ ng-show="instruction.type === 'message'"
37
+ >
25
38
  {{ instruction.templateId }} / {{ instruction.messageId }}
26
39
  </span>
27
- <span class="text-muted" ng-show="instruction.type === 'builtin'">
40
+ <span
41
+ class="text-muted"
42
+ ng-show="instruction.type === 'builtin'"
43
+ >
28
44
  {{ instruction.messageId }}
29
45
  </span>
30
- <span class="text-muted" ng-show="instruction.type === 'sleep'">
46
+ <span
47
+ class="text-muted"
48
+ ng-show="instruction.type === 'sleep'"
49
+ >
31
50
  <em translate>{{ instruction.seconds }} seconds</em>
32
51
  </span>
33
52
  </span>
@@ -35,30 +54,36 @@
35
54
 
36
55
  <button
37
56
  class="m-l-auto btn btn-icon p-l-8 p-r-8 showOnHover"
38
- type="button"
39
57
  aria-label="{{ 'Remove' | translate }}"
40
58
  uib-tooltip="{{ 'Remove' | translate }}"
41
59
  tooltip-popup-delay="500"
42
60
  tooltip-trigger="'mouseenter'"
43
61
  tooltip-placement="left"
62
+ type="button"
44
63
  ng-click="vm.remove(instruction)"
45
64
  >
46
- <i c8y-icon="minus-circle" class="text-danger"></i>
65
+ <i
66
+ class="text-danger"
67
+ c8y-icon="minus-circle"
68
+ ></i>
47
69
  </button>
48
70
  </li>
49
71
 
50
72
  <li class="p-24">
51
73
  <c8y-ui-empty-state
52
- ng-show="vm.instructions.length === 0"
53
74
  [icon]="'installing-updates'"
54
75
  [title]="'No instructions.' | translate"
55
76
  [subtitle]="'Click below to add the first one.' | translate"
77
+ ng-show="vm.instructions.length === 0"
56
78
  >
57
- <small c8y-guide-docs translate>
79
+ <small
80
+ c8y-guide-docs
81
+ translate
82
+ >
58
83
  Find out more in the
59
84
  <a
60
- c8y-guide-href="users-guide/device-management/#simulator"
61
85
  target="_blank"
86
+ c8y-guide-href="users-guide/device-management/#simulator"
62
87
  rel="noopener noreferrer"
63
88
  >
64
89
  User guide`KEEP_ORIGINAL`