@c8y/ng1-modules 1023.30.0 → 1023.42.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/cumulocity.json +0 -1
- package/core/locales/de.po +261 -143
- package/core/locales/es.po +155 -53
- package/core/locales/fr.po +299 -193
- package/core/locales/ja_JP.po +346 -252
- package/core/locales/ko.po +154 -54
- package/core/locales/nl.po +156 -54
- package/core/locales/pl.po +155 -53
- package/core/locales/pt_BR.po +154 -54
- package/core/locales/zh_CN.po +155 -53
- package/core/locales/zh_TW.po +156 -54
- package/dataPointExplorer/controllers/dataPointWidget.js +1 -1
- package/dataPointExplorer/views/widget.html +18 -7
- package/kpi/cumulocity.json +3 -9
- package/kpi/index.js +1 -1
- package/package.json +1 -1
- package/roles/detail/roleGlobalSaveConfirm.html +26 -11
- package/core/ui/directives/pieChart.js +0 -1
- package/kpi/controllers/pieChart.js +0 -1
- package/kpi/controllers/pieChartConfig.js +0 -1
- package/kpi/views/pieChart.html +0 -16
- package/kpi/views/pieChartConfig.html +0 -35
|
@@ -5,18 +5,27 @@
|
|
|
5
5
|
<span>{{ (vm.action === 'update' ? vm.saveTitle : vm.deleteTitle) | translate }}</span>
|
|
6
6
|
</h3>
|
|
7
7
|
<p class="text-break-word">
|
|
8
|
-
<span
|
|
9
|
-
|
|
8
|
+
<span
|
|
9
|
+
translate
|
|
10
|
+
ng-if="vm.action === 'update'"
|
|
11
|
+
>
|
|
12
|
+
You are about to save changes in the global role which might affect security. To apply these
|
|
13
|
+
changes immediately, you'll need to terminate the sessions of all users with this role.
|
|
10
14
|
</span>
|
|
11
|
-
<span
|
|
12
|
-
|
|
15
|
+
<span
|
|
16
|
+
translate
|
|
17
|
+
ng-if="vm.action === 'delete'"
|
|
18
|
+
>
|
|
19
|
+
You are about to delete the global role. To apply these changes immediately, you'll need to
|
|
20
|
+
terminate the sessions of all users with this role.
|
|
13
21
|
</span>
|
|
14
22
|
<span
|
|
15
23
|
ng-if="vm.devicesWarning"
|
|
16
24
|
translate
|
|
17
25
|
>
|
|
18
|
-
Before modifying permissions for the "Device User`role`" role, please be aware that such
|
|
19
|
-
|
|
26
|
+
Before modifying permissions for the "Device User`role`" role, please be aware that such
|
|
27
|
+
changes can significantly impact platform security. When defining permissions for the
|
|
28
|
+
"Device User`role`", please consider that individual devices might get compromised.
|
|
20
29
|
</span>
|
|
21
30
|
</p>
|
|
22
31
|
<p class="text-break-word">
|
|
@@ -42,7 +51,7 @@
|
|
|
42
51
|
/>
|
|
43
52
|
</div>
|
|
44
53
|
</form>
|
|
45
|
-
<div class="alert-footer">
|
|
54
|
+
<div class="alert-footer d-flex gap-8 j-c-end m-t-24">
|
|
46
55
|
<button
|
|
47
56
|
class="btn btn-default"
|
|
48
57
|
title="{{ 'Cancel' | translate }}"
|
|
@@ -52,7 +61,7 @@
|
|
|
52
61
|
Cancel
|
|
53
62
|
</button>
|
|
54
63
|
<button
|
|
55
|
-
class="btn btn-
|
|
64
|
+
class="btn btn-default m-0"
|
|
56
65
|
title="{{ (vm.action === 'update' ? vm.saveLabel : vm.deleteLabel) | translate }}"
|
|
57
66
|
ng-click="vm.$close({logout: false})"
|
|
58
67
|
ng-disabled="!vm.canConfirm()"
|
|
@@ -60,12 +69,18 @@
|
|
|
60
69
|
{{ (vm.action === 'update' ? vm.saveLabel : vm.deleteLabel) | translate }}
|
|
61
70
|
</button>
|
|
62
71
|
<button
|
|
63
|
-
|
|
64
|
-
|
|
72
|
+
class="btn btn-primary m-0"
|
|
73
|
+
title="{{
|
|
74
|
+
(vm.action === 'update' ? vm.saveAndLogoutUserLabel : vm.deleteAndLogoutUserLabel)
|
|
75
|
+
| translate
|
|
76
|
+
}}"
|
|
65
77
|
ng-click="vm.$close({logout: true})"
|
|
66
78
|
ng-disabled="!vm.canConfirm()"
|
|
67
79
|
>
|
|
68
|
-
{{
|
|
80
|
+
{{
|
|
81
|
+
(vm.action === 'update' ? vm.saveAndLogoutUserLabel : vm.deleteAndLogoutUserLabel)
|
|
82
|
+
| translate
|
|
83
|
+
}}
|
|
69
84
|
</button>
|
|
70
85
|
</div>
|
|
71
86
|
</div>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{function t(m){var w="<svg></svg>";return{restrict:"EA",template:w,scope:{measurements:"=",dps:"=",options:"="},link:function(r,o){var a,i,s,u,l=r.options;function n(){var t=(()=>{var t=nv.models.pieChart().x(c).y(d).color(p).tooltipContent(h);return l&&(t.showLabels(r.options.showLabels||!1),t.showLegend(r.options.showLegend||!1),t.options({tooltips:r.options.showTooltips||!1}),l.showLegend||t.margin({top:0})),t.pie.pieLabelsOutside(!1).labelType("percent"),t})(),e=d3.select(o[0]).select("svg"),n=o.children().first(),e=_.debounce(function(t,e,n){(t=>{t&&t.update&&t.update()})(t);var o,a=r.measurements,i=e.datum()||r.dps;a&&i&&((i.length!==r.dps.length||0<_.differenceBy(i,r.dps,"_id").length)&&(i=r.dps),n=n[0].querySelector(".nv-pieWrap"),((o=a.some(function(t){return 0<t.value}))?(i=_.map(i,function(t,e){return{_id:t._id,label:t.label,value:a[e].value,color:t.color,unit:t.unit,disabled:t.disabled}}),e.datum(i)):(t.noData(m.getString("No data to display.")),e.datum([]))).transition().duration(500).call(t),n)&&(n.style.display=o?"":"none")}.bind(void 0,t,e,n),500,{trailing:!0});return a=r.$watch("measurements",e),i=r.$watch("dps",e),s=r.$watch(v,e),u=r.$watch(f,e),o.onresize=g,t}function c(t){return t.label}function d(t){return t.value}function p(t){return t.data.color}function h(t,e,n){return _.escape("".concat(t,": ").concat(e," ").concat(n.point.unit||""))}function v(){return o.parent().width()}function f(){return o.parent().height()}function g(){r.$apply()}nv.addGraph(n),r.$watch("options",function(t,e){t&&!_.isEqual(t,e)&&(l=t,o.html(w),a(),i(),s(),u(),nv.addGraph(n))})}}}t.$inject=["gettextCatalog"],angular.module("c8y.ui").directive("c8yPieChart",t)})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ownKeys(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){t=_toPrimitive(t,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);r=r.call(t,e||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{function t(r,t,o){var i=t.createWidget(r);r.child.alerts.setAlertGroupDismissStrategy("warning","temporary_or_permanent"),i.refresh=function(){var n,t=this.mostRecentKpi.dataPoints,e=this.mostRecentKpi.measurements;r.dps=_.filter(t,function(t){return e[t.id]}),r.measurements=_.map(r.dps,function(t){return e[t.id].value<0?_objectSpread(_objectSpread({},e[t.id]),{},{value:0}):e[t.id]}),n=i.mostRecentKpi.measurements,t=_.filter(r.dps,function(t){return n[t.id].value<0}),r.child.alerts.clear("warning"),t.length&&(t=_.map(t,function(t){var e=t.label,t=n[t.id],r=t.value,t=t.unit;return"".concat(e,": ").concat(r).concat(t)}).join("; "),t={text:o.getString("Negative measurements received from data point(s): {{ list }}",{list:t}),type:"warning"},r.child.alerts.addAlerts(t))},i.onNotification=i.refresh,r.$watch("child.config.pieChartOptions",function(){r.options=r.child.config.pieChartOptions||{}}),r.options=r.child.config.pieChartOptions||{},i.init()}t.$inject=["$scope","baseWidgetSvc","gettextCatalog"],angular.module("c8y.parts.kpi").controller("pieChartCtrl",t)})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{function n(i){function e(n){return!0===n.__active}i.differentUnits=!1,i.$watchCollection(function(){var n,t=_.filter(i.config.datapoints,e);return!t.length||(n=_.head(t).unit,_.every(t,{unit:n}))},function(n){i.differentUnits=!n})}n.$inject=["$scope"],angular.module("c8y.parts.kpi").controller("pieChartConfigCtrl",n)})();
|
package/kpi/views/pieChart.html
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<div ng-controller="pieChartCtrl" class="fit-h">
|
|
2
|
-
<c8y-pie-chart measurements="measurements" dps="dps" options="options"></c8y-pie-chart>
|
|
3
|
-
<button
|
|
4
|
-
class="btn btn-dot pie-chart-warning"
|
|
5
|
-
type="button"
|
|
6
|
-
aria-label="{{ errorMessage }}"
|
|
7
|
-
uib-popover="{{ errorMessage }}"
|
|
8
|
-
popover-placement="top-left"
|
|
9
|
-
popover-trigger="'focus'"
|
|
10
|
-
popover-append-to-body="true"
|
|
11
|
-
ng-click="$event.preventDefault()"
|
|
12
|
-
ng-show="errorMessage"
|
|
13
|
-
>
|
|
14
|
-
<i c8y-icon="warning" class="text-warning"></i>
|
|
15
|
-
</button>
|
|
16
|
-
</div>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<div ng-controller="kpiConfigCtrl" class="no-card-context bg-inherit">
|
|
2
|
-
<div ng-controller="pieChartConfigCtrl" class="alert alert-warning m-t-8 center-block" ng-show="differentUnits" translate>
|
|
3
|
-
Measurements with different units are selected.
|
|
4
|
-
</div>
|
|
5
|
-
|
|
6
|
-
<c8y-data-point-list
|
|
7
|
-
basic-list
|
|
8
|
-
ng-model="config"
|
|
9
|
-
datapoints="config.datapoints"
|
|
10
|
-
allow-adding-data-points-from-context-mo-only="dashboard.deviceType && dashboard.deviceTypeValue"
|
|
11
|
-
dont-save="true"
|
|
12
|
-
class="bg-inherit"
|
|
13
|
-
></c8y-data-point-list>
|
|
14
|
-
|
|
15
|
-
<fieldset ng-controller="pieChartConfigCtrl" class="c8y-fieldset">
|
|
16
|
-
<legend translate>Pie Chart Options</legend>
|
|
17
|
-
<div class="form-group d-flex gap-16 flex-wrap m-b-16">
|
|
18
|
-
<label class="c8y-checkbox m-t-8">
|
|
19
|
-
<input type="checkbox" ng-model="config.pieChartOptions.showTooltips" />
|
|
20
|
-
<span></span>
|
|
21
|
-
<span translate>Show tooltips</span>
|
|
22
|
-
</label>
|
|
23
|
-
<label class="c8y-checkbox">
|
|
24
|
-
<input type="checkbox" ng-model="config.pieChartOptions.showLabels" />
|
|
25
|
-
<span></span>
|
|
26
|
-
<span translate>Show percentages</span>
|
|
27
|
-
</label>
|
|
28
|
-
<label class="c8y-checkbox">
|
|
29
|
-
<input type="checkbox" ng-model="config.pieChartOptions.showLegend" />
|
|
30
|
-
<span></span>
|
|
31
|
-
<span translate>Show legend</span>
|
|
32
|
-
</label>
|
|
33
|
-
</div>
|
|
34
|
-
</fieldset>
|
|
35
|
-
</div>
|