@c8y/ng1-modules 1018.472.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,28 +2,28 @@
2
2
 
3
3
  <c8y-breadcrumbs-set>
4
4
  <c8y-breadcrumbs-item
5
- label="{{ 'Data subscriptions' | translate }}"
6
5
  icon="c8y-data-broker"
6
+ label="{{ 'Data subscriptions' | translate }}"
7
7
  ></c8y-breadcrumbs-item>
8
8
  <c8y-breadcrumbs-item
9
- label="{{ 'Data broker' | translate }}"
10
9
  icon="c8y-data-broker"
10
+ label="{{ 'Data broker' | translate }}"
11
11
  ></c8y-breadcrumbs-item>
12
12
  </c8y-breadcrumbs-set>
13
13
 
14
14
  <c8y-ui-action-bar-set>
15
15
  <a
16
- title="{{ 'Add data subscription' | translate }}"
17
16
  class="btn btn-link"
17
+ title="{{ 'Add data subscription' | translate }}"
18
18
  ng-click="vm.toggleAddNewSubscriptionForm(vm.isShownAddNewSubscription)"
19
19
  >
20
20
  <i c8y-icon="plus-circle"></i>
21
21
  {{ 'Add data subscription' | translate }}
22
22
  </a>
23
23
  <button
24
+ class="btn btn-link"
24
25
  title="{{ 'Reload' | translate }}"
25
26
  type="button"
26
- class="btn btn-link"
27
27
  ng-click="vm.reload()"
28
28
  >
29
29
  <i c8y-icon="refresh"></i>
@@ -33,18 +33,24 @@
33
33
 
34
34
  <c8y-help src="/users-guide/enterprise-tenant/#data-broker"></c8y-help>
35
35
 
36
- <div class="c8y-empty-state text-center m-t-32" ng-if="vm.isSubscriptionsListEmpty()">
36
+ <div
37
+ class="c8y-empty-state text-center m-t-32"
38
+ ng-if="vm.isSubscriptionsListEmpty()"
39
+ >
37
40
  <h1 c8y-icon="c8y-connector-in c8y-icon-duocolor"></h1>
38
41
  <h3 translate>No data subscriptions to display.</h3>
39
42
  <p translate>Add a data subscription by clicking below.</p>
40
43
  <button
41
- title="{{ 'Add data subscription' | translate }}"
42
44
  class="btn btn-primary"
45
+ title="{{ 'Add data subscription' | translate }}"
43
46
  ng-click="vm.toggleAddNewSubscriptionForm(vm.isShownAddNewSubscription)"
44
47
  >
45
48
  {{ 'Add data subscription' | translate }}
46
49
  </button>
47
- <p class="m-t-4" c8y-guide-docs>
50
+ <p
51
+ class="m-t-4"
52
+ c8y-guide-docs
53
+ >
48
54
  <small>
49
55
  <span translate>
50
56
  Find out more in the
@@ -57,23 +63,23 @@
57
63
 
58
64
  <div class="card-group interact-grid">
59
65
  <c8y-data-broker-add-subscription
66
+ class="col-xs-12 col-sm-4 col-md-3"
60
67
  on-reload="vm.reload()"
61
68
  is-shown="vm.isShownAddNewSubscription"
62
69
  ng-if="vm.isShownAddNewSubscription"
63
- class="col-xs-12 col-sm-4 col-md-3"
64
70
  ></c8y-data-broker-add-subscription>
65
71
  <c8y-data-broker-pending-subscription
72
+ class="col-xs-12 col-sm-4 col-md-3"
66
73
  pending-subscription="pendingSubscription"
67
74
  on-reload="vm.reload()"
68
75
  ng-if="vm.pendingSubscriptions.length > 0"
69
76
  ng-repeat="pendingSubscription in vm.pendingSubscriptions | orderBy:'name'"
70
- class="col-xs-12 col-sm-4 col-md-3"
71
77
  ></c8y-data-broker-pending-subscription>
72
78
  <c8y-data-broker-subscription
79
+ class="col-xs-12 col-sm-4 col-md-3"
73
80
  accepted-subscription="subscription"
74
81
  on-reload="vm.reload()"
75
82
  ng-if="vm.subscriptions.length > 0"
76
83
  ng-repeat="subscription in vm.subscriptions | orderBy:'connectorName'"
77
- class="col-xs-12 col-sm-4 col-md-3"
78
84
  ></c8y-data-broker-subscription>
79
85
  </div>
@@ -3,7 +3,10 @@
3
3
  <c8y-realtime-switch state="ctrl.realtime"></c8y-realtime-switch>
4
4
  </c8y-ui-action-bar-set>
5
5
 
6
- <c8y-list-pagination items="supportedMeasurements" page-size="10">
6
+ <c8y-list-pagination
7
+ items="supportedMeasurements"
8
+ page-size="10"
9
+ >
7
10
  <c8y-list-pagination-control></c8y-list-pagination-control>
8
11
  <div
9
12
  class="card"
@@ -33,11 +36,22 @@
33
36
  ng-show="supportedMeasurements.length === 0"
34
37
  >
35
38
  <h1
36
- aria-label="{{ 'Icon' | translate }}"
37
39
  class="c8y-icon c8y-icon-duocolor dlt-c8y-icon-line-chart"
40
+ aria-label="{{ 'Icon' | translate }}"
38
41
  ></h1>
39
- <div ng-show="!$parent.child.templateUrl" class="h3" translate>No measurements to display.</div>
40
- <p ng-show="$parent.child.templateUrl" translate>No measurements to display.</p>
42
+ <div
43
+ class="h3"
44
+ ng-show="!$parent.child.templateUrl"
45
+ translate
46
+ >
47
+ No measurements to display.
48
+ </div>
49
+ <p
50
+ ng-show="$parent.child.templateUrl"
51
+ translate
52
+ >
53
+ No measurements to display.
54
+ </p>
41
55
  <p c8y-guide-docs>
42
56
  <small translate>
43
57
  Find out more in the
@@ -1,15 +1,15 @@
1
1
  <c8y-breadcrumbs-set>
2
2
  <c8y-breadcrumbs-item
3
- label="{{ 'Domain name' | translate }}"
4
3
  icon="cog"
4
+ label="{{ 'Domain name' | translate }}"
5
5
  ></c8y-breadcrumbs-item>
6
6
  <c8y-breadcrumbs-item
7
- label="{{ 'Enterprise tenant' | translate }}"
8
7
  icon="cog"
8
+ label="{{ 'Enterprise tenant' | translate }}"
9
9
  ></c8y-breadcrumbs-item>
10
10
  <c8y-breadcrumbs-item
11
- label="{{ 'Settings' | translate }}"
12
11
  icon="cog"
12
+ label="{{ 'Settings' | translate }}"
13
13
  ></c8y-breadcrumbs-item>
14
14
  </c8y-breadcrumbs-set>
15
15
  <div class="row">
@@ -22,12 +22,21 @@
22
22
  </div>
23
23
 
24
24
  <div class="inner-scroll">
25
- <div class="card-block" ng-if="vm.customLoadBalancerOff">
25
+ <div
26
+ class="card-block"
27
+ ng-if="vm.customLoadBalancerOff"
28
+ >
26
29
  <div class="legend form-block">
27
30
  {{ 'SSL certificate' | translate }}
28
31
  </div>
29
- <div class="m-b-16 m-t-16" ng-if="!vm.certificate">
30
- <p class="m-b-16" translate>
32
+ <div
33
+ class="m-b-16 m-t-16"
34
+ ng-if="!vm.certificate"
35
+ >
36
+ <p
37
+ class="m-b-16"
38
+ translate
39
+ >
31
40
  First you must upload the appropriate certificate by clicking "Upload certificate".
32
41
  </p>
33
42
  <p>Make sure that:</p>
@@ -39,7 +48,10 @@
39
48
  </li>
40
49
  </ul>
41
50
  </div>
42
- <div class="list-group" ng-if="vm.certificate">
51
+ <div
52
+ class="list-group"
53
+ ng-if="vm.certificate"
54
+ >
43
55
  <div class="list-group-item">
44
56
  <div class="list-item-body">
45
57
  <div class="row">
@@ -75,11 +87,17 @@
75
87
  </div>
76
88
  </div>
77
89
 
78
- <div class="card-block" ng-if="vm.certificate">
90
+ <div
91
+ class="card-block"
92
+ ng-if="vm.certificate"
93
+ >
79
94
  <div class="legend form-block">
80
95
  {{ 'Custom domain name' | translate }}
81
96
  </div>
82
- <div class="m-b-16 m-t-16" ng-if="vm.certificate.licensePresent">
97
+ <div
98
+ class="m-b-16 m-t-16"
99
+ ng-if="vm.certificate.licensePresent"
100
+ >
83
101
  <p translate>Before activating the custom domain name, make sure that:</p>
84
102
  <ul>
85
103
  <li translate>You uploaded a valid SSL certificate for your custom domain</li>
@@ -95,41 +113,57 @@
95
113
  </li>
96
114
  </ul>
97
115
  <p class="m-b-16">
98
- <span c8y-guide-docs translate>
116
+ <span
117
+ c8y-guide-docs
118
+ translate
119
+ >
99
120
  For details refer to the
100
- <a c8y-guide-href="users-guide/administration/"> User guide`KEEP_ORIGINAL` </a>.
121
+ <a c8y-guide-href="users-guide/administration/">User guide`KEEP_ORIGINAL`</a>
122
+ .
101
123
  </span>
102
124
  </p>
103
- <p class="m-b-8" translate>
125
+ <p
126
+ class="m-b-8"
127
+ translate
128
+ >
104
129
  Changes in the name server need time to propagate and take effect. Wait approximately
105
130
  one hour before activating your domain here.
106
131
  </p>
107
- <p class="m-b-16" translate>
132
+ <p
133
+ class="m-b-16"
134
+ translate
135
+ >
108
136
  After the activation is completed you will no longer be able to access your tenant
109
- with <code>{{ vm.domainName }}</code
110
- >, instead use your new custom domain name <code>{{ vm.newDomainName }}</code
111
- >.
137
+ with
138
+ <code>{{ vm.domainName }}</code>
139
+ , instead use your new custom domain name
140
+ <code>{{ vm.newDomainName }}</code>
141
+ .
112
142
  </p>
113
143
  </div>
114
144
 
115
- <p class="m-t-16 m-b-16" ng-if="!vm.certificate.licensePresent" translate>
145
+ <p
146
+ class="m-t-16 m-b-16"
147
+ ng-if="!vm.certificate.licensePresent"
148
+ translate
149
+ >
116
150
  To activate your domain, you need a valid license. Please contact our support to install
117
151
  a license for your domain.
118
152
  </p>
119
153
 
120
154
  <button
155
+ class="btn btn-primary"
121
156
  title="{{ 'Deactivate' | translate }}"
122
157
  type="button"
123
- class="btn btn-primary"
124
158
  ng-click="vm.deactivateCertificate()"
125
159
  ng-if="vm.certificate.activated"
126
160
  >
127
161
  {{ 'Deactivate' | translate }}
128
162
  </button>
129
163
  <button
164
+ class="btn btn-primary"
130
165
  title="{{ 'Activate' | translate }}"
131
166
  type="button"
132
- class="btn btn-primary"
133
167
  ng-click="vm.activateCertificate()"
134
168
  ng-if="!vm.certificate.activated"
135
169
  ng-disabled="!vm.certificate.licensePresent || !vm.validWildcard"
@@ -140,11 +174,21 @@
140
174
  </div>
141
175
 
142
176
  <div class="card-footer separator">
143
- <button class="btn btn-primary btn-form" type="button" ng-click="vm.showUploadModal()">
144
- <span ng-if="!vm.certificate" title="{{ 'Upload certificate' | translate }}">
177
+ <button
178
+ class="btn btn-primary btn-form"
179
+ type="button"
180
+ ng-click="vm.showUploadModal()"
181
+ >
182
+ <span
183
+ title="{{ 'Upload certificate' | translate }}"
184
+ ng-if="!vm.certificate"
185
+ >
145
186
  {{ 'Upload certificate' | translate }}
146
187
  </span>
147
- <span ng-if="vm.certificate" title="{{ 'Replace certificate' | translate }}">
188
+ <span
189
+ title="{{ 'Replace certificate' | translate }}"
190
+ ng-if="vm.certificate"
191
+ >
148
192
  {{ 'Replace certificate' | translate }}
149
193
  </span>
150
194
  </button>
@@ -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.472.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.",