@c8y/ng1-modules 1023.70.0 → 1023.75.1
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/core/locales/de.po +205 -38
- package/core/locales/es.po +204 -37
- package/core/locales/fr.po +204 -37
- package/core/locales/ja_JP.po +204 -38
- package/core/locales/ko.po +205 -38
- package/core/locales/nl.po +205 -38
- package/core/locales/pl.po +205 -38
- package/core/locales/pt_BR.po +204 -37
- package/core/locales/zh_CN.po +205 -38
- package/core/locales/zh_TW.po +205 -38
- package/core/ui/views/eventList.html +1 -0
- package/eventsBinary/cumulocity.json +1 -7
- package/package.json +2 -1
- package/devicemanagement-eventList/controllers/eventList.js +0 -1
- package/devicemanagement-eventList/cumulocity.json +0 -18
- package/devicemanagement-eventList/index.js +0 -1
- package/devicemanagement-eventList/views/index.html +0 -10
- package/eventList/cumulocity.json +0 -18
- package/eventList/eventList.controller.js +0 -1
- package/eventList/eventListConfig.controller.js +0 -1
- package/eventList/img/events-list-widget-pr.png +0 -0
- package/eventList/index.js +0 -1
- package/eventList/views/eventList.html +0 -20
- package/eventList/views/eventListConfig.html +0 -8
- package/eventsBinary/components/eventBinaryActions/eventBinaryActions.html +0 -21
- package/eventsBinary/components/eventBinaryActions/eventBinaryActions.js +0 -1
- package/eventsBinary/components/eventBinaryIcon/eventBinaryIcon.js +0 -1
- package/eventsBinary/components/eventBinaryPreview/eventBinaryPreview.html +0 -3
- package/eventsBinary/components/eventBinaryPreview/eventBinaryPreview.js +0 -1
- package/eventsBinary/styles/style.css +0 -4
|
@@ -4,15 +4,9 @@
|
|
|
4
4
|
"c8y.eventsBinary"
|
|
5
5
|
],
|
|
6
6
|
"category": "",
|
|
7
|
-
"description": "Component which displays binary attached to event if available",
|
|
8
|
-
"css": [
|
|
9
|
-
"styles/style.css"
|
|
10
|
-
],
|
|
7
|
+
"description": "Component which displays binary attached to event if available",
|
|
11
8
|
"js": [
|
|
12
9
|
"eventsBinary.module.js",
|
|
13
|
-
"components/eventBinaryPreview/eventBinaryPreview.js",
|
|
14
|
-
"components/eventBinaryActions/eventBinaryActions.js",
|
|
15
|
-
"components/eventBinaryIcon/eventBinaryIcon.js",
|
|
16
10
|
"services/eventsBinary.service.js"
|
|
17
11
|
]
|
|
18
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c8y/ng1-modules",
|
|
3
|
-
"version": "1023.
|
|
3
|
+
"version": "1023.75.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Cumulocity",
|
|
6
6
|
"description": "AngularJS modules for Cumulocity IoT applications.",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"fs-extra": "^11.3.0",
|
|
54
54
|
"jest-junit": "16.0.0",
|
|
55
55
|
"npm-packlist": "10.0.1",
|
|
56
|
+
"rimraf": "2.6.2",
|
|
56
57
|
"uglify-js": "3.19.3"
|
|
57
58
|
},
|
|
58
59
|
"peerDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var r,o=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)),o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{function e(e){e=_objectSpread(_objectSpread({},e),{},{pageSize:50});_.assign(this,{filters:e})}e.$inject=["$routeParams"],angular.module("c8y.parts.eventList").controller("eventListCtrl",e)})();
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Event list",
|
|
3
|
-
"ngModules": [
|
|
4
|
-
"c8y.parts.eventList"
|
|
5
|
-
],
|
|
6
|
-
"category": "Device",
|
|
7
|
-
"icon": "bell",
|
|
8
|
-
"color": "#F2DF0F",
|
|
9
|
-
"description": "Displays a list of events triggered.",
|
|
10
|
-
"js": [
|
|
11
|
-
"index.js",
|
|
12
|
-
"controllers/eventList.js"
|
|
13
|
-
],
|
|
14
|
-
"folderName": "eventList",
|
|
15
|
-
"appsInclude": [
|
|
16
|
-
"devicemanagement"
|
|
17
|
-
]
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{function e(e,n,i){var t="online1";e.addNavigation({parent:{name:i("Overviews"),icon:"c8y-overviews"},name:i("Events"),priority:1300,icon:t,path:"events"}),n.when("/events",{icon:t,name:i("Events"),templateUrl:":::PLUGIN_PATH:::/views/index.html"}),n.when("/device/:deviceId",{icon:t,name:i("Events"),templateUrl:":::PLUGIN_PATH:::/views/index.html"}),n.when("/service/:deviceId",{icon:t,name:i("Events"),templateUrl:":::PLUGIN_PATH:::/views/index.html"})}e.$inject=["c8yNavigatorProvider","c8yViewsProvider","gettext"],angular.module("c8y.parts.eventList",[]).config(e)})();
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<div ng-controller="eventListCtrl as vm">
|
|
2
|
-
<c8y-help
|
|
3
|
-
src="/docs/device-management-application/monitoring-and-controlling-devices/#troubleshooting-devices"
|
|
4
|
-
></c8y-help>
|
|
5
|
-
<c8y-event-list
|
|
6
|
-
show-page-titles="true"
|
|
7
|
-
filters="vm.filters"
|
|
8
|
-
initial-realtime-state="true"
|
|
9
|
-
/>
|
|
10
|
-
</div>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Event list component",
|
|
3
|
-
"ngModules": [
|
|
4
|
-
"c8y.eventList"
|
|
5
|
-
],
|
|
6
|
-
"category": "",
|
|
7
|
-
"icon": "rss",
|
|
8
|
-
"color": "#F03F0F",
|
|
9
|
-
"description": "A configurable component that display list of events depending on the type or device target",
|
|
10
|
-
"js": [
|
|
11
|
-
"index.js",
|
|
12
|
-
"eventList.controller.js",
|
|
13
|
-
"eventListConfig.controller.js"
|
|
14
|
-
],
|
|
15
|
-
"copy": [
|
|
16
|
-
"img/*"
|
|
17
|
-
]
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var o,i=Object.keys(t);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(t),e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,o)),i}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(o),!0).forEach(function(e){_defineProperty(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function _defineProperty(e,t,o){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}angular.module("c8y.eventList").controller("EventListCtrl",["$scope","c8yWidgetConfigMigrationService",function(s,t){var a=this,c=null,f=null,l=!0,d=!1,h=null,g=_.debounce(function(){h&&(a.options=h,h=null)},100);function u(e){var t;return e&&(e=e instanceof Date?e:new Date(e),(t=e)instanceof Date)&&"Invalid Date"!==t.toString()&&0<t.getTime()?e:null}s.isLoading=!1,s.initialized=!1,s.widgetControls={supports:["dateTimeContext","isAutoRefreshEnabled","displayMode","refreshInterval","refreshOption"],configSettings:{dashboard:{live:{},history:{}},config:{live:{showAutoRefresh:!0,showTimeContext:!0},history:{showTimeContext:!0,showAggregation:!1}},view_and_config:{live:{showAutoRefresh:!0,showRefreshInterval:!1,showTimeContext:!0},history:{showTimeContext:!0,showAggregation:!1}}},settings:{dashboard:{live:{showAutoRefresh:!0,showTimeContext:!0,showRefreshInterval:!0},history:{showTimeContext:!0,showAggregation:!1}},config:{live:{showAutoRefresh:!0},history:{showTimeContext:!0,showAggregation:!1}},view_and_config:{live:{showAutoRefresh:!0,showRefreshInterval:!0,showTimeContext:!0},history:{showTimeContext:!0,showAggregation:!1}}},defaultLinks:{dashboard:{live:{dateTimeContext:!0,isAutoRefreshEnabled:!0},history:{dateTimeContext:!0}},config:{},view_and_config:{}},stateHandlers:{}},s.onGlobalContextChange=function(e){var t,o,i=e.context.dateTimeContext,n=e.diff.dateTimeContext,r="live"===(r=e.context).refreshOption&&r.isAutoRefreshEnabled&&5e3===r.refreshInterval;(s.child.config.realtime=r)!==d&&(r&&(l=!0),d=r),i&&i.dateFrom&&i.dateTo&&(t=u(i.dateFrom),i=u(i.dateTo),t)&&i&&(s.child.config.date=[t,i],t=t.toISOString(),i=i.toISOString(),o=t!==c||i!==f,n=n&&Boolean(n.interval),o=o,n=n,(r=r)&&l?(l=!1,1):n&&o||!(r||!o))&&(c=n=t,f=r=i,h=_objectSpread(_objectSpread(_objectSpread({},a.options||{}),s.child.config.options||{}),{},{dateFrom:n,dateTo:r,source:s.child.config.device&&s.child.config.device.id}),g(),s.initialized=!0),Object.assign(s.child.config,e.context)},s.dashboardChild=s.dashboardChildForLegacy,s.onLoadingStateChange=function(e){s.isLoading=e},(()=>{var e;s.child&&s.child.config&&(e=t.migrateWidgetConfig(s.child.config),Object.assign(s.child.config,e))})(),s.$on("$destroy",function(){g.cancel()})}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{function t(t){!!t.config.displaySettings&&"true"!==t.config.widgetInstanceGlobalTimeContext||(t.config.widgetInstanceGlobalTimeContext=!0)}t.$inject=["$scope"],angular.module("c8y.eventList").controller("EventListConfigCtrl",["$scope",t])})();
|
|
Binary file
|
package/eventList/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{function e(e,t){e.add({name:"Event list",nameDisplay:t("Event list"),description:t("Displays the list of events for selected device."),templateUrl:":::PLUGIN_PATH:::/views/eventList.html",configTemplateUrl:":::PLUGIN_PATH:::/views/eventListConfig.html",previewImage:":::PLUGIN_PATH:::/img/events-list-widget-pr.png",options:{groupsSelectable:!0},displaySettings:{globalTimeContext:!0,globalRealtimeContext:!0}})}e.$inject=["c8yComponentsProvider","gettext"],angular.module("c8y.eventList",[]).config(e)})();
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<div ng-controller="EventListCtrl as eventList">
|
|
2
|
-
<c8y-global-context-widget-wrapper
|
|
3
|
-
ng-style="{ 'z-index': 11 }"
|
|
4
|
-
[display-mode]="'inline'"
|
|
5
|
-
(global-context-change)="onGlobalContextChange($event)"
|
|
6
|
-
[widget-controls]="widgetControls"
|
|
7
|
-
[config]="child.config"
|
|
8
|
-
[is-loading]="isLoading"
|
|
9
|
-
[dashboard-child-for-legacy]="dashboardChild"
|
|
10
|
-
></c8y-global-context-widget-wrapper>
|
|
11
|
-
<c8y-event-list
|
|
12
|
-
ng-if="eventList.options && eventList.options.dateFrom && eventList.options.dateTo"
|
|
13
|
-
filters="eventList.options"
|
|
14
|
-
initial-realtime-state="child.config.realtime"
|
|
15
|
-
realtime="child.config.realtime"
|
|
16
|
-
hide-widget-actions="true"
|
|
17
|
-
time-range-unit="true"
|
|
18
|
-
on-loading-state-change="onLoadingStateChange(refreshLoading)"
|
|
19
|
-
></c8y-event-list>
|
|
20
|
-
</div>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<div ng-controller="EventListConfigCtrl as ctrl">
|
|
2
|
-
<fieldset class="c8y-fieldset">
|
|
3
|
-
<legend>{{ 'Type' | translate }}</legend>
|
|
4
|
-
<div class="form-group form-group-sm m-b-16">
|
|
5
|
-
<input type="text" class="form-control" ng-model="config.options.type" />
|
|
6
|
-
</div>
|
|
7
|
-
</fieldset>
|
|
8
|
-
</div>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<div class="col col-12">
|
|
2
|
-
<div ng-if="vm.checkControlAvailable('download')" class="form-group">
|
|
3
|
-
<button
|
|
4
|
-
title="{{ 'Download' | translate }}"
|
|
5
|
-
class="btn btn-primary btn-xs"
|
|
6
|
-
ng-click="vm.download()"
|
|
7
|
-
>
|
|
8
|
-
<i c8y-icon="download"></i><span translate>Download</span>
|
|
9
|
-
</button>
|
|
10
|
-
</div>
|
|
11
|
-
<div ng-if="vm.checkControlAvailable('upload')" class="form-group">
|
|
12
|
-
<input type="file" c8y-on-change="vm.onNewImageSelected(event)" />
|
|
13
|
-
<button
|
|
14
|
-
title="{{ 'Upload' | translate }}"
|
|
15
|
-
class="btn btn-primary btn-xs"
|
|
16
|
-
ng-click="vm.upload()"
|
|
17
|
-
>
|
|
18
|
-
<i c8y-icon="upload"></i><span translate>Upload</span>
|
|
19
|
-
</button>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{function n(o){var e,t,l=this,a={DOWNLOAD:"download",UPLOAD:"upload"};function i(n,e){(t=_.map(l.availableControls?l.availableControls.split(","):[],_.trim)).length||(l.enableDownload&&t.push(a.DOWNLOAD),l.enableUpload&&t.push(a.UPLOAD)),o.canDownload(e)?_.pull(t,a.UPLOAD):_.pull(t,a.DOWNLOAD)}_.assign(l,{$onInit:function(){l.show=o.doesContainBinary(l.event),i(0,l.event)},$onChanges:function(n){n.event&&i(0,n.event.currentValue)},download:function(){o.downloadAndSaveAs(l.event)},onNewImageSelected:function(n){e=n.target.files[0]},upload:function(){o.upload(e,l.event)},checkControlAvailable:function(n){return _.isEmpty(_.get(l.event,"c8y_IsIncompleteBinary"))&&_.includes(t,n)}})}n.$inject=["eventsBinaryService"],angular.module("c8y.eventsBinary").component("c8yEventBinaryActions",{templateUrl:":::PLUGIN_PATH:::/components/eventBinaryActions/eventBinaryActions.html",bindings:{event:"<",availableControls:"@",enableDownload:"<?",enableUpload:"<?"},controller:n,controllerAs:"vm"})})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{function n(i,e){var c=this;function o(n){return i.doesContainBinary(n)?e.icon(n.c8y_IsBinary):""}_.assign(c,{$onInit:function(){c.icon=o(c.event)},$onChanges:function(n){c.icon=o(n.event.currentValue)}})}n.$inject=["eventsBinaryService","c8yBinary"],angular.module("c8y.eventsBinary").component("c8yEventBinaryIcon",{template:'<i c8y-icon="{{vm.icon}}" ng-if="vm.icon"></i>',bindings:{event:"<"},controller:n,controllerAs:"vm"})})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{function n(n,e){var t=this;_.assign(t,{$onInit:function(){n.doesContainBinary(t.event)&&n.downloadAsDataUri(t.event).then(function(n){e.isImage(t.event.c8y_IsBinary)&&(t.dataUri=n)})}})}n.$inject=["eventsBinaryService","c8yBinary"],angular.module("c8y.eventsBinary").component("c8yEventBinaryPreview",{templateUrl:":::PLUGIN_PATH:::/components/eventBinaryPreview/eventBinaryPreview.html",bindings:{event:"<"},controller:n,controllerAs:"vm"})})();
|