@c8y/ng1-modules 1023.97.8 → 1024.0.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/administration-auditLogs/cumulocity.json +2 -2
- package/core/core/services/inventoryWithChildrenInterceptor.js +1 -0
- package/core/cumulocity.json +1 -0
- package/core/locales/de.po +126 -67
- package/core/locales/es.po +116 -58
- package/core/locales/fr.po +109 -50
- package/core/locales/ja_JP.po +130 -73
- package/core/locales/ko.po +115 -56
- package/core/locales/nl.po +112 -53
- package/core/locales/pl.po +127 -68
- package/core/locales/pt_BR.po +114 -55
- package/core/locales/zh_CN.po +112 -54
- package/core/locales/zh_TW.po +123 -64
- package/dataPointExplorer/controllers/dataPointWidgetConfig.js +1 -1
- package/dataPointExplorer/index.js +1 -1
- package/dataPointExplorer/views/widgetConfig.html +28 -38
- package/eventsBinary/cumulocity.json +1 -7
- package/export/cumulocity.json +2 -2
- package/package.json +1 -1
- package/switchDisplay/cumulocity.json +3 -3
- package/switchDisplay/style/{switchDisplay.less → switchDisplay.scss} +4 -7
- package/switchDisplay/style/{switchDisplayConfig.less → switchDisplayConfig.scss} +3 -5
- package/users/cumulocity.json +1 -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 -11
- 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 -21
- package/eventList/views/eventListConfig.html +0 -9
- package/eventsBinary/components/eventBinaryActions/eventBinaryActions.html +0 -22
- package/eventsBinary/components/eventBinaryActions/eventBinaryActions.js +0 -1
- package/eventsBinary/components/eventBinaryIcon/eventBinaryIcon.js +0 -1
- package/eventsBinary/components/eventBinaryPreview/eventBinaryPreview.html +0 -4
- package/eventsBinary/components/eventBinaryPreview/eventBinaryPreview.js +0 -1
- package/eventsBinary/styles/style.css +0 -4
- /package/administration-auditLogs/{style.less → style.scss} +0 -0
- /package/export/style/{export.less → export.scss} +0 -0
- /package/users/{style.less → style.scss} +0 -0
|
@@ -18,50 +18,40 @@
|
|
|
18
18
|
[widget-controls]="widgetControls"
|
|
19
19
|
[config]="wrapperConfig"
|
|
20
20
|
></c8y-global-context-widget-wrapper>
|
|
21
|
-
<div class="
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
<div class="fit-h d-flex d-col">
|
|
22
|
+
<div
|
|
23
|
+
class="flex-grow"
|
|
24
|
+
style="min-height: 0"
|
|
25
|
+
>
|
|
26
|
+
<c8y-chart
|
|
27
|
+
datapoints="data.graphDataPoints"
|
|
28
|
+
date-from="data.dateFrom"
|
|
29
|
+
date-to="data.dateTo"
|
|
30
|
+
realtime="data.realtime"
|
|
31
|
+
aggregation="data.aggregation"
|
|
32
|
+
show-time="false"
|
|
33
|
+
on-data="(onData)"
|
|
34
|
+
on-update-dates="onUpdateDates($dateFrom, $dateTo)"
|
|
35
|
+
on-update-displayed-dates="onUpdateDisplayedDates($dateFrom, $dateTo)"
|
|
36
|
+
on-box-changed="onBoxChanged(box)"
|
|
37
|
+
></c8y-chart>
|
|
38
|
+
</div>
|
|
39
|
+
<c8y-alarms-events-timelines-chart
|
|
40
|
+
ng-if="data.alarmsEventsConfigs.length"
|
|
41
|
+
alarms-events-configs="data.alarmsEventsConfigs"
|
|
42
|
+
date-from="data.displayedDateFrom"
|
|
43
|
+
date-to="data.displayedDateTo"
|
|
30
44
|
on-update-dates="onUpdateDates($dateFrom, $dateTo)"
|
|
31
|
-
|
|
32
|
-
on-
|
|
33
|
-
|
|
45
|
+
realtime="data.realtime"
|
|
46
|
+
on-realtime-alarm-fn="onRealtimeAlarmFn(onRealtimeAlarm)"
|
|
47
|
+
on-realtime-event-fn="onRealtimeEventFn(onRealtimeEvent)"
|
|
48
|
+
chart-box="chartBox"
|
|
49
|
+
></c8y-alarms-events-timelines-chart>
|
|
34
50
|
</div>
|
|
35
|
-
<c8y-alarms-events-timelines-chart
|
|
36
|
-
alarms-events-configs="data.graphAlarmsEventsConfigs"
|
|
37
|
-
date-from="data.displayedDateFrom"
|
|
38
|
-
date-to="data.displayedDateTo"
|
|
39
|
-
on-update-dates="onUpdateDates($dateFrom, $dateTo)"
|
|
40
|
-
realtime="data.realtime"
|
|
41
|
-
on-realtime-alarm-fn="onRealtimeAlarmFn(onRealtimeAlarm)"
|
|
42
|
-
on-realtime-event-fn="onRealtimeEventFn(onRealtimeEvent)"
|
|
43
|
-
chart-box="chartBox"
|
|
44
|
-
></c8y-alarms-events-timelines-chart>
|
|
45
51
|
</c8y-widget-preview-wrapper>
|
|
46
52
|
</div>
|
|
47
53
|
</div>
|
|
48
54
|
</div>
|
|
49
55
|
</div>
|
|
50
|
-
|
|
51
|
-
<c8y-data-point-list
|
|
52
|
-
class="bg-inherit separator-bottom"
|
|
53
|
-
datapoints="data.datapoints"
|
|
54
|
-
allow-adding-data-points-from-context-mo-only="dashboard.deviceType && dashboard.deviceTypeValue"
|
|
55
|
-
dont-save="true"
|
|
56
|
-
no-target
|
|
57
|
-
no-yellow-range
|
|
58
|
-
no-red-range
|
|
59
|
-
></c8y-data-point-list>
|
|
60
|
-
<c8y-alarms-events-timelines-config
|
|
61
|
-
class="d-block bg-inherit separator-top"
|
|
62
|
-
style="padding-top: 1px"
|
|
63
|
-
configs="data.alarmsEventsConfigs"
|
|
64
|
-
allow-alarms-events-from-context-mo-only="dashboard.deviceType && dashboard.deviceTypeValue"
|
|
65
|
-
></c8y-alarms-events-timelines-config>
|
|
66
56
|
</div>
|
|
67
57
|
</div>
|
|
@@ -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/export/cumulocity.json
CHANGED
package/package.json
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"category": "Device",
|
|
7
7
|
"icon": "flag-o",
|
|
8
8
|
"description": "Displays in realtime the status of any binary data point.",
|
|
9
|
-
"
|
|
10
|
-
"style/switchDisplayConfig.
|
|
11
|
-
"style/switchDisplay.
|
|
9
|
+
"scss": [
|
|
10
|
+
"style/switchDisplayConfig.scss",
|
|
11
|
+
"style/switchDisplay.scss"
|
|
12
12
|
],
|
|
13
13
|
"languages": ["en", "de"],
|
|
14
14
|
"js": [
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// Temporary for DT HMI
|
|
4
|
-
@status-success: #5cb85c;
|
|
5
|
-
@status-danger: #bb1200;
|
|
1
|
+
$status-success: var(--c8y-palette-status-success);
|
|
2
|
+
$status-danger: var(--c8y-palette-status-danger);
|
|
6
3
|
|
|
7
4
|
.switchDisplay {
|
|
8
5
|
td {
|
|
@@ -14,14 +11,14 @@
|
|
|
14
11
|
}
|
|
15
12
|
&.activeState {
|
|
16
13
|
font-weight: bold;
|
|
17
|
-
color:
|
|
14
|
+
color: $status-success;
|
|
18
15
|
.icon {
|
|
19
16
|
font-size: 120%;
|
|
20
17
|
}
|
|
21
18
|
}
|
|
22
19
|
&.inactiveState {
|
|
23
20
|
font-weight: bold;
|
|
24
|
-
color:
|
|
21
|
+
color: $status-danger;
|
|
25
22
|
.icon {
|
|
26
23
|
font-size: 120%;
|
|
27
24
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
//@import "../../c8yBranding/variables/index.less";
|
|
2
|
-
|
|
3
1
|
// Temporary for DT HMI
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
$gray: var(--c8y-palette-gray-50);
|
|
3
|
+
$gray-50: var(--c8y-palette-gray-40);
|
|
6
4
|
.switchDisplayConfig {
|
|
7
5
|
table {
|
|
8
6
|
tr td {
|
|
@@ -33,6 +31,6 @@
|
|
|
33
31
|
margin-bottom: -1px;
|
|
34
32
|
}
|
|
35
33
|
.btn-link {
|
|
36
|
-
color:
|
|
34
|
+
color: $gray-50;
|
|
37
35
|
}
|
|
38
36
|
}
|
package/users/cumulocity.json
CHANGED
|
@@ -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,11 +0,0 @@
|
|
|
1
|
-
<!-- @deprecated Use `EventsComponent` from `@c8y/ngx-components/events` (registered via `eventsDeviceManagementProviders` / `eventsCockpitProviders`) instead. -->
|
|
2
|
-
<div ng-controller="eventListCtrl as vm">
|
|
3
|
-
<c8y-help
|
|
4
|
-
src="/docs/device-management-application/monitoring-and-controlling-devices/#troubleshooting-devices"
|
|
5
|
-
></c8y-help>
|
|
6
|
-
<c8y-event-list
|
|
7
|
-
show-page-titles="true"
|
|
8
|
-
filters="vm.filters"
|
|
9
|
-
initial-realtime-state="true"
|
|
10
|
-
/>
|
|
11
|
-
</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,21 +0,0 @@
|
|
|
1
|
-
<!-- @deprecated Use the Angular `EventListWidgetComponent` from `@c8y/ngx-components/widgets/implementations/events` (auto-registered via `cockpitWidgetsExports`) instead. -->
|
|
2
|
-
<div ng-controller="EventListCtrl as eventList">
|
|
3
|
-
<c8y-global-context-widget-wrapper
|
|
4
|
-
ng-style="{ 'z-index': 11 }"
|
|
5
|
-
[display-mode]="'inline'"
|
|
6
|
-
(global-context-change)="onGlobalContextChange($event)"
|
|
7
|
-
[widget-controls]="widgetControls"
|
|
8
|
-
[config]="child.config"
|
|
9
|
-
[is-loading]="isLoading"
|
|
10
|
-
[dashboard-child-for-legacy]="dashboardChild"
|
|
11
|
-
></c8y-global-context-widget-wrapper>
|
|
12
|
-
<c8y-event-list
|
|
13
|
-
ng-if="eventList.options && eventList.options.dateFrom && eventList.options.dateTo"
|
|
14
|
-
filters="eventList.options"
|
|
15
|
-
initial-realtime-state="child.config.realtime"
|
|
16
|
-
realtime="child.config.realtime"
|
|
17
|
-
hide-widget-actions="true"
|
|
18
|
-
time-range-unit="true"
|
|
19
|
-
on-loading-state-change="onLoadingStateChange(refreshLoading)"
|
|
20
|
-
></c8y-event-list>
|
|
21
|
-
</div>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<!-- @deprecated Use the Angular `EventListWidgetConfigComponent` from `@c8y/ngx-components/widgets/implementations/events` instead. -->
|
|
2
|
-
<div ng-controller="EventListConfigCtrl as ctrl">
|
|
3
|
-
<fieldset class="c8y-fieldset">
|
|
4
|
-
<legend>{{ 'Type' | translate }}</legend>
|
|
5
|
-
<div class="form-group form-group-sm m-b-16">
|
|
6
|
-
<input type="text" class="form-control" ng-model="config.options.type" />
|
|
7
|
-
</div>
|
|
8
|
-
</fieldset>
|
|
9
|
-
</div>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<!-- @deprecated Binary event handling is now embedded in the new Angular event list widget. -->
|
|
2
|
-
<div class="col col-12">
|
|
3
|
-
<div ng-if="vm.checkControlAvailable('download')" class="form-group">
|
|
4
|
-
<button
|
|
5
|
-
title="{{ 'Download' | translate }}"
|
|
6
|
-
class="btn btn-primary btn-xs"
|
|
7
|
-
ng-click="vm.download()"
|
|
8
|
-
>
|
|
9
|
-
<i c8y-icon="download"></i><span translate>Download</span>
|
|
10
|
-
</button>
|
|
11
|
-
</div>
|
|
12
|
-
<div ng-if="vm.checkControlAvailable('upload')" class="form-group">
|
|
13
|
-
<input type="file" c8y-on-change="vm.onNewImageSelected(event)" />
|
|
14
|
-
<button
|
|
15
|
-
title="{{ 'Upload' | translate }}"
|
|
16
|
-
class="btn btn-primary btn-xs"
|
|
17
|
-
ng-click="vm.upload()"
|
|
18
|
-
>
|
|
19
|
-
<i c8y-icon="upload"></i><span translate>Upload</span>
|
|
20
|
-
</button>
|
|
21
|
-
</div>
|
|
22
|
-
</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"})})();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|