@c8y/ng1-modules 1017.146.0 → 1017.147.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.
- package/binaryArtefactsManagement/controllers/list.js +1 -1
- package/core/core/services/application.js +1 -1
- package/core/locales/de.po +228 -162
- package/core/locales/en.po +28 -14
- package/core/ui/directives/binaryInput.js +1 -1
- package/core/ui/schemaForm/overrides/decorators/bootstrap/default.html +0 -1
- package/core/ui/views/loadmore.html +1 -1
- package/dataPointExplorer/controllers/dataPointWidgetConfig.js +1 -1
- package/eventList/cumulocity.json +3 -2
- package/eventList/eventListConfig.controller.js +1 -0
- package/eventList/views/eventListConfig.html +5 -12
- package/package.json +1 -1
package/core/locales/en.po
CHANGED
|
@@ -113,6 +113,12 @@ msgstr "CLEARED"
|
|
|
113
113
|
msgid "CLEARED`alarm`: was active for {{alarmDuration}}"
|
|
114
114
|
msgstr "CLEARED: was active for {{alarmDuration}}"
|
|
115
115
|
|
|
116
|
+
msgid "COMMUNITY`Package created by the developer community.`"
|
|
117
|
+
msgstr "COMMUNITY"
|
|
118
|
+
|
|
119
|
+
msgid "CUSTOM`Package maintained by an unknown source.`"
|
|
120
|
+
msgstr "CUSTOM"
|
|
121
|
+
|
|
116
122
|
msgid ""
|
|
117
123
|
"Check the\n"
|
|
118
124
|
" <a c8y-guide-href=\"users-guide/device-management/#bulk-operation-wizard\">\n"
|
|
@@ -154,10 +160,10 @@ msgstr "Clear"
|
|
|
154
160
|
msgid "Clear`selection`"
|
|
155
161
|
msgstr "Clear"
|
|
156
162
|
|
|
157
|
-
msgid "Clone`application`"
|
|
163
|
+
msgid "Clone`application,verb`"
|
|
158
164
|
msgstr "Clone"
|
|
159
165
|
|
|
160
|
-
msgid "Clone`package`"
|
|
166
|
+
msgid "Clone`package,verb`"
|
|
161
167
|
msgstr "Clone"
|
|
162
168
|
|
|
163
169
|
msgid "Cloud connectivity"
|
|
@@ -314,33 +320,35 @@ msgstr ""
|
|
|
314
320
|
|
|
315
321
|
msgid ""
|
|
316
322
|
"Find out more in the\n"
|
|
317
|
-
"
|
|
318
|
-
"
|
|
319
|
-
" </a>\n"
|
|
320
|
-
" ."
|
|
323
|
+
" <a c8y-guide-href=\"concepts/applications/\">Concepts guide`KEEP_ORIGINAL`</a>\n"
|
|
324
|
+
" ."
|
|
321
325
|
msgstr ""
|
|
322
326
|
"Find out more in the\n"
|
|
323
|
-
"
|
|
324
|
-
"
|
|
325
|
-
" </a>\n"
|
|
326
|
-
" ."
|
|
327
|
+
" <a c8y-guide-href=\"concepts/applications/\">Concepts guide</a>\n"
|
|
328
|
+
" ."
|
|
327
329
|
|
|
328
330
|
msgid ""
|
|
329
331
|
"Find out more in the\n"
|
|
330
|
-
" <a c8y-guide-href=\"
|
|
332
|
+
" <a c8y-guide-href=\"users-guide/administration/#reprio-alarms\">\n"
|
|
333
|
+
" User guide`KEEP_ORIGINAL`\n"
|
|
334
|
+
" </a>\n"
|
|
335
|
+
" ."
|
|
331
336
|
msgstr ""
|
|
332
337
|
"Find out more in the\n"
|
|
333
|
-
" <a c8y-guide-href=\"
|
|
338
|
+
" <a c8y-guide-href=\"users-guide/administration/#reprio-alarms\">\n"
|
|
339
|
+
" User guide\n"
|
|
340
|
+
" </a>\n"
|
|
341
|
+
" ."
|
|
334
342
|
|
|
335
343
|
msgid ""
|
|
336
344
|
"Find out more in the\n"
|
|
337
|
-
" <a c8y-guide-href=\"users-guide/
|
|
345
|
+
" <a c8y-guide-href=\"users-guide/device-management/#simulator\" target=\"_blank\" rel=\"noopener noreferrer\">\n"
|
|
338
346
|
" User guide`KEEP_ORIGINAL`\n"
|
|
339
347
|
" </a>\n"
|
|
340
348
|
" ."
|
|
341
349
|
msgstr ""
|
|
342
350
|
"Find out more in the\n"
|
|
343
|
-
" <a c8y-guide-href=\"users-guide/
|
|
351
|
+
" <a c8y-guide-href=\"users-guide/device-management/#simulator\" target=\"_blank\" rel=\"noopener noreferrer\">\n"
|
|
344
352
|
" User guide\n"
|
|
345
353
|
" </a>\n"
|
|
346
354
|
" ."
|
|
@@ -614,6 +622,9 @@ msgstr "Next"
|
|
|
614
622
|
msgid "No children active`assets`"
|
|
615
623
|
msgstr "No children active"
|
|
616
624
|
|
|
625
|
+
msgid "OFFICIAL`Package maintained by Software AG.`"
|
|
626
|
+
msgstr "OFFICIAL"
|
|
627
|
+
|
|
617
628
|
msgid "OFF`status of an option, e.g. realtime`"
|
|
618
629
|
msgstr "OFF"
|
|
619
630
|
|
|
@@ -765,6 +776,9 @@ msgstr "Undefined"
|
|
|
765
776
|
msgid "Unknown`connection status`"
|
|
766
777
|
msgstr "Unknown"
|
|
767
778
|
|
|
779
|
+
msgid "Unknown`package-type`"
|
|
780
|
+
msgstr "Unknown"
|
|
781
|
+
|
|
768
782
|
msgid "Unpacked`application`"
|
|
769
783
|
msgstr "Unpacked"
|
|
770
784
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,l,i,a,o=[],u=!0,d=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(e){d=!0,l=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(d)throw l}}return o}}function _arrayWithHoles(e){if(Array.isArray(e))return e}angular.module("c8y.ui").directive("c8yBinaryInput",function(){return e.$inject=["$scope","$element","c8yBase","c8yBinary","c8yModal","c8yAlert","gettext","gettextCatalog"],{restrict:"E",require:"?^form",scope:{initialId:"=?",initialUrl:"=?",editable:"=?",file:"=?outputFile",allowFreeUrlInput:"=?",uploadable:"=?",downloadable:"=?",clearable:"=?",removable:"=?",fileRequired:"=?",setGlobal:"=?"},link:function(e,t,r,n){e.form=n},templateUrl:":::PLUGIN_PATH:::/ui/views/binaryInput.html",controller:e};function e(r,e,t,n,l,i,a,o){var u={url:""},d={upload:{inProgress:!1},download:{progress:0,inProgress:!1}};function s(e,t){return _.isUndefined(e)?t:e}function c(e){return g(n.getIdFromUrl(e.headers("Location")))}function f(e){e&&e.data&&e.data.messsage&&i.danger(e.data.message)}function y(e){e.icon=n.icon(e),e.url=n.getDownloadUrl(e),r.file=e,r.form&&r.form.$setDirty()}function b(){u={url:""},r.file=u,e.find("input[type='file']").val(null)}function p(){r.initialUrl&&(r.initialId=n.getIdFromUrl(r.initialUrl)),r.initialId?g(r.initialId):function(e){u={url:e},r.file=u}(r.initialUrl)}function g(e){return n.detail(e,{},{silentError:!0}).then(t.getResData).then(y).catch(function(){r.fileNotAvailable=!0})}_.assign(r,{file:u,onFileSelect:function(e){if(!(e.length<1)){var t=_slicedToArray(e,1)[0];return n.hasValidSize(t)?function(e){d.upload.inProgress=!0;var t=r.setGlobal?{c8y_Global:{}}:void 0;return n.upload(e,t).then(c,f).finally(function(){d.upload.inProgress=!1})}(t):void i.danger(o.getString("Selected file is too large – size limit is {{limitBytes | bytes}}.",{limitBytes:n.getBytesSizeLimit()}))}},chooseFile:function(){l({templateUrl:":::PLUGIN_PATH:::/ui/views/binaryInputModal.html",controller:"binaryInputModalCtrl"}).then(function(e){var t=e.file;return y(t)})},download:function(e){d.download.inProgress=!0,d.download.progress=0;var t=n.downloadAndSaveAs(e);return t.then(null,null,function(e){d.download.progress=100*e}),t.finally(function(){d.download.inProgress=!1,d.download.progress=100})},remove:function(e){return l({title:a("Delete file"),body:o.getString('You are about to delete file "{{name}}". Do you want to proceed?',e),labels:{ok:a("Delete")},status:"danger"}).then(angular.bind(n,n.removeBinary,e)).then(b)},clear:function(){b()},status:d}),r.editable=s(r.editable,!0),r.allowFreeUrlInput=r.editable&&s(r.allowFreeUrlInput,!0),r.uploadable=r.editable&&s(r.uploadable,!0),r.downloadable=s(r.downloadable,!0),r.clearable=r.editable&&s(r.clearable,!0),r.removable=r.editable&&s(r.removable,!1),r.fileRequired=r.editable&&s(r.fileRequired,!1),r.$watch("initialId",p),r.$watch("initialUrl",p)}});
|
|
1
|
+
"use strict";function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,l,i,a,o=[],u=!0,d=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(e){d=!0,l=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(d)throw l}}return o}}function _arrayWithHoles(e){if(Array.isArray(e))return e}angular.module("c8y.ui").directive("c8yBinaryInput",function(){return e.$inject=["$scope","$element","c8yBase","c8yBinary","c8yModal","c8yAlert","gettext","gettextCatalog"],{restrict:"E",require:"?^form",scope:{initialId:"=?",initialUrl:"=?",editable:"=?",file:"=?outputFile",allowFreeUrlInput:"=?",uploadable:"=?",downloadable:"=?",clearable:"=?",removable:"=?",fileRequired:"=?",setGlobal:"=?"},link:function(e,t,r,n){e.form=n},templateUrl:":::PLUGIN_PATH:::/ui/views/binaryInput.html",controller:e};function e(r,e,t,n,l,i,a,o){var u={url:""},d={upload:{inProgress:!1},download:{progress:0,inProgress:!1}};function s(e,t){return _.isUndefined(e)?t:e}function c(e){return g(n.getIdFromUrl(e.headers("Location")))}function f(e){e&&e.data&&e.data.messsage&&i.danger(e.data.message)}function y(e){e.icon=n.icon(e),e.url=n.getDownloadUrl(e),r.file=e,r.form&&r.form.$setDirty()}function b(){u={url:""},r.file=u,e.find("input[type='file']").val(null)}function p(){r.initialUrl&&(r.initialId=n.getIdFromUrl(r.initialUrl)),r.initialId?g(r.initialId):function(e){u={url:e},r.file=u}(r.initialUrl)}function g(e){return n.detail(e,{},{silentError:!0}).then(t.getResData).then(y).catch(function(){r.fileNotAvailable=!0})}_.assign(r,{file:u,onFileSelect:function(e){if(!(e.length<1)){var t=_slicedToArray(e,1)[0];return n.hasValidSize(t)?function(e){d.upload.inProgress=!0;var t=r.setGlobal?{c8y_Global:{}}:void 0;return n.upload(e,t).then(c,f).finally(function(){d.upload.inProgress=!1})}(t):void i.danger(o.getString("Selected file is too large – size limit is {{limitBytes | bytes}}.",{limitBytes:n.getBytesSizeLimit()}))}},chooseFile:function(){l({templateUrl:":::PLUGIN_PATH:::/ui/views/binaryInputModal.html",controller:"binaryInputModalCtrl"}).then(function(e){var t=e.file;return y(t)})},download:function(e){d.download.inProgress=!0,d.download.progress=0;var t=n.downloadAndSaveAs(e);return t.then(null,null,function(e){d.download.progress=100*e}),t.finally(function(){d.download.inProgress=!1,d.download.progress=100})},remove:function(e){return l({title:a("Delete file"),body:o.getString('You are about to delete file "{{ name }}". Do you want to proceed?',e),labels:{ok:a("Delete")},status:"danger"}).then(angular.bind(n,n.removeBinary,e)).then(b)},clear:function(){b()},status:d}),r.editable=s(r.editable,!0),r.allowFreeUrlInput=r.editable&&s(r.allowFreeUrlInput,!0),r.uploadable=r.editable&&s(r.uploadable,!0),r.downloadable=s(r.downloadable,!0),r.clearable=r.editable&&s(r.clearable,!0),r.removable=r.editable&&s(r.removable,!1),r.fileRequired=r.editable&&s(r.fileRequired,!1),r.$watch("initialId",p),r.$watch("initialUrl",p)}});
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
ng-show="!paging.blind && paging.statistics.pageSize != 500"
|
|
40
40
|
>
|
|
41
41
|
<li ng-repeat="pageSize in _pageSizes">
|
|
42
|
-
<a href="" ng-click="loadNext(pageSize)" translate>Change page size {{ pageSize }}</a>
|
|
42
|
+
<a href="" ng-click="loadNext(pageSize)" translate>Change page size to {{ pageSize }}</a>
|
|
43
43
|
</li>
|
|
44
44
|
</ul>
|
|
45
45
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";angular.module("c8y.cockpit.dataPointExplorer").controller("DataPointWidgetConfigCtrl",["$scope","c8yDataPointSvc","gettext",function(a,o,t){a.noActions=!0,a.dontSave=!0,a.onRealtimeAlarmFn=function(t){a.onAlarm=t},a.onRealtimeEventFn=function(t){a.onEvent=t},a.dateSelectionHelpPopoverText=t(
|
|
1
|
+
"use strict";angular.module("c8y.cockpit.dataPointExplorer").controller("DataPointWidgetConfigCtrl",["$scope","c8yDataPointSvc","gettext",function(a,o,t){a.noActions=!0,a.dontSave=!0,a.onRealtimeAlarmFn=function(t){a.onAlarm=t},a.onRealtimeEventFn=function(t){a.onEvent=t},a.dateSelectionHelpPopoverText=t('\n Choose how to select a date range, the available options are:\n <ul class="m-l-0 p-l-8 m-t-8 m-b-0">\n <li><b>Widget configuration:</b> restricts the date selection only to the widget configuration</li>\n <li><b>Widget and widget configuration:</b> restricts the date selection to the widget view and widget configuration only</li>\n <li><b>Dashboard time range:</b> restricts date selection to the global dashboard configuration only</li>\n </ul>\n ');var e=function(t,a){var e=_.pick(a,"dateFrom","dateTo","aggregation","displayDateSelection","interval","realtime","displayDateSelection","widgetInstanceGlobalTimeContext","canDecoupleGlobalTimeContext"),n=o.getDefaultFilters();_.assign(t,n,e)};a.onBoxChanged=function(t){a.chartBox=t},a.data={},a.data.datapoints=_.cloneDeep(a.config.datapoints),a.data.alarmsEventsConfigs=_.cloneDeep(a.config.alarmsEventsConfigs),e(a.data,a.config),a.dateSelection=a.data.widgetInstanceGlobalTimeContext?"dashboard_context":a.data.displayDateSelection?"view_and_config":"config",a.$watch("dateSelection",function(){switch(a.dateSelection){case"dashboard_context":a.data.widgetInstanceGlobalTimeContext=!0;break;case"view_and_config":a.data.widgetInstanceGlobalTimeContext=!1,a.data.displayDateSelection=!0;break;case"config":default:a.data.widgetInstanceGlobalTimeContext=!1,a.data.displayDateSelection=!1}},!0),a.$watch("data",function(){a.data.widgetInstanceGlobalTimeContext&&(a.data.dateFrom=a.config.date?a.config.date[0]:a.data.dateFrom,a.data.dateTo=a.config.date?a.config.date[1]:a.data.dateTo,a.data.realtime=!1,a.data.displayDateSelection=!1,a.data.canDecoupleGlobalTimeContext=!1,a.data.interval=null),e(a.config,a.data),a.config.datapoints=a.data.graphDataPoints,a.config.alarmsEventsConfigs=a.data.graphAlarmsEventsConfigs},!0)}]);
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
"description": "A configurable component that display list of events depending on the type or device target",
|
|
10
10
|
"js": [
|
|
11
11
|
"index.js",
|
|
12
|
-
"eventList.controller.js"
|
|
12
|
+
"eventList.controller.js",
|
|
13
|
+
"eventListConfig.controller.js"
|
|
13
14
|
],
|
|
14
15
|
"copy": [
|
|
15
16
|
"img/*"
|
|
16
17
|
]
|
|
17
|
-
}
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";!function(){function t(t){this.dateSelectionHelpPopoverText=t('\n Choose how to select a date range, the available options are:\n <ul class="m-l-0 p-l-8 m-t-8 m-b-0">\n <li><b>Widget:</b> restricts the date selection to the widget view only</li>\n <li><b>Dashboard time range:</b> restricts date selection to the global dashboard configuration only</li>\n </ul>\n ')}t.$inject=["gettext"],angular.module("c8y.eventList").controller("EventListConfigCtrl",t)}();
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
<div class="form-group p-t-8">
|
|
2
|
-
|
|
1
|
+
<div class="form-group p-t-8" ng-controller="EventListConfigCtrl as ctrl">
|
|
3
2
|
<div class="form-group m-b-0 p-b-16">
|
|
4
3
|
<label for="dateSelection">
|
|
5
4
|
{{ 'Date selection' | translate }}
|
|
@@ -7,7 +6,7 @@
|
|
|
7
6
|
type="button"
|
|
8
7
|
class="btn-help btn-help--sm"
|
|
9
8
|
aria-label="{{ 'Help' | translate }}"
|
|
10
|
-
uib-popover-html="
|
|
9
|
+
uib-popover-html="ctrl.dateSelectionHelpPopoverText | translate"
|
|
11
10
|
popover-placement="right"
|
|
12
11
|
popover-trigger="'focus'"
|
|
13
12
|
popover-append-to-body="true"
|
|
@@ -21,16 +20,10 @@
|
|
|
21
20
|
aria-label="{{ 'Date selection' | translate }}"
|
|
22
21
|
ng-model="config.widgetInstanceGlobalTimeContext"
|
|
23
22
|
>
|
|
24
|
-
<option
|
|
25
|
-
title="{{ 'Widget' | translate }}"
|
|
26
|
-
value="{{ undefined }}"
|
|
27
|
-
>
|
|
23
|
+
<option title="{{ 'Widget' | translate }}" value="{{ undefined }}">
|
|
28
24
|
{{ 'Widget' | translate }}
|
|
29
25
|
</option>
|
|
30
|
-
<option
|
|
31
|
-
title="{{ 'Dashboard time range' | translate }}"
|
|
32
|
-
value="{{ true }}"
|
|
33
|
-
>
|
|
26
|
+
<option title="{{ 'Dashboard time range' | translate }}" value="{{ true }}">
|
|
34
27
|
{{ 'Dashboard time range' | translate }}
|
|
35
28
|
</option>
|
|
36
29
|
</select>
|
|
@@ -38,5 +31,5 @@
|
|
|
38
31
|
</div>
|
|
39
32
|
|
|
40
33
|
<label>Type</label>
|
|
41
|
-
<input type="text" class="form-control" ng-model="config.options.type"
|
|
34
|
+
<input type="text" class="form-control" ng-model="config.options.type" />
|
|
42
35
|
</div>
|