@c8y/ng1-modules 1017.0.346 → 1017.0.355
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/NOTICES +1 -1
- package/core/locales/en.po +11 -12
- package/core/ui/user/rolesUiStrings.constant.js +1 -1
- package/dataPointExplorer/views/widgetConfig.html +10 -45
- package/dataPointTable/views/widgetConfig.html +8 -43
- package/device-protocol-deviceDatabase4/device-type-protocol-base.provider.js +1 -1
- package/deviceDatabase4/cumulocity.json +2 -6
- package/deviceDatabase4/detail/device-type-detail.component.js +1 -1
- package/devicemanagement-availability/controllers/availability.js +1 -1
- package/infoGauge/infoGaugeWidget.config.html +45 -33
- package/kpi/views/gaugeConfig.html +7 -5
- package/kpi/views/linearGauge.html +6 -4
- package/package.json +1 -1
- package/smartRules/smartrules/rules.json +832 -0
- package/userRoles/inventoryRolesTab/inventoryRolesTab.component.js +1 -1
- package/userRoles/inventoryRolesTab/inventoryRolesTab.html +16 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _objectSpread(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?Object(arguments[e]):{},
|
|
1
|
+
"use strict";function _objectSpread(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?Object(arguments[e]):{},t=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&t.push.apply(t,Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),t.forEach(function(e){_defineProperty(n,e,o[e])})}return n}function _defineProperty(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}!function(){function e(e,n,o,s,r,t,l,i){var a=this;function c(){n.listInventoryRoles(a.userId).then(o.getResData).then(function(e){a.assignedRoles=_.keyBy(e.inventoryAssignments,"managedObject")}),n.detail(a.userId).then(o.getResData).then(function(e){a.user=e,a.user.owner?n.listInventoryRoles(a.user.owner).then(o.getResData).then(function(e){a.ownerAssignedRoles=_.keyBy(e.inventoryAssignments,"managedObject"),_.isEmpty(a.ownerAssignedRoles)&&(a.displayNoOwnerRolesAlert=!0),a.failedToFetchOwnerInventoryRoles=!1}).catch(function(){a.failedToFetchOwnerInventoryRoles=!0}):a.failedToFetchOwnerInventoryRoles=!1})}function u(){c(),l.success(i.getPlural(d(),"Inventory role updated","Inventory roles updated",{}))}function d(){return _.filter(a.assignedRoles,"isModified").length}function y(e){var n="replace"===e.process,o=e.roles,t=_.map(a.assignedRoles);return s.copyUserRoles(o,t,a.userId,n).then(c).then(r.successUserRolesCopy)}_.assign(a,{$onChange:function(e){e.user&&c()},onChangeRoles:function(e,n){a.assignedRoles[n]=a.assignedRoles[n]||{},_.assign(a.assignedRoles[n],{managedObject:n,roles:e,isModified:!0}),a.assignedRoles=_objectSpread({},a.assignedRoles)},onSaveInventoryRoles:function(){s.onSaveInventoryRoles(a.userId,a.assignedRoles).then(u)},copyRoles:function(){r.copyFromUserDialog(a.userId).then(y)},loadAssignedRoles:c,isUnchanged:function(){return 0===d()},helpLink:t.getUserGuideLink(_.get(r.STRINGS,"LINKS.ROLES_INVENTORY")),stopEventPropagation:function(e){e.stopPropagation()},displayNoOwnerRolesAlert:!1,failedToFetchOwnerInventoryRoles:null}),c()}e.$inject=["$q","c8yUser","c8yBase","c8yUserInventoryRoles","c8yUserRolesUi","c8yDocs","c8yAlert","gettextCatalog"],angular.module("c8y.userRoles").component("c8yUserInventoryRolesTab",{templateUrl:":::PLUGIN_PATH:::/inventoryRolesTab/inventoryRolesTab.html",controllerAs:"vm",controller:e,bindings:{userId:"<"}})}();
|
|
@@ -168,16 +168,22 @@
|
|
|
168
168
|
You can also copy inventory roles from another user or replace this user's roles with the
|
|
169
169
|
roles of another user.
|
|
170
170
|
</p>
|
|
171
|
-
<
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
rel="noopener noreferrer"
|
|
171
|
+
<span
|
|
172
|
+
ng-click="vm.stopEventPropagation($event)"
|
|
173
|
+
>
|
|
174
|
+
<small
|
|
175
|
+
ng-show="::vm.helpLink"
|
|
177
176
|
>
|
|
178
|
-
<
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
177
|
+
<a
|
|
178
|
+
title="{{ 'Help & documentation' | translate }}"
|
|
179
|
+
ng-href="{{::vm.helpLink}}"
|
|
180
|
+
target="_blank"
|
|
181
|
+
rel="noopener noreferrer"
|
|
182
|
+
>
|
|
183
|
+
<i c8y-icon="question-circle-o" class="text-info"></i>
|
|
184
|
+
<span translate>Help & documentation</span>
|
|
185
|
+
</a>
|
|
186
|
+
</small>
|
|
187
|
+
</span>
|
|
182
188
|
</div>
|
|
183
189
|
</script>
|