@c8y/ngx-components 1018.0.115 → 1018.0.125

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.
Files changed (46) hide show
  1. package/context-dashboard/context-dashboard.model.d.ts +5 -0
  2. package/core/dashboard/dashboard.model.d.ts +5 -0
  3. package/ecosystem/application-plugins/plugin-list.component.d.ts +1 -1
  4. package/esm2020/context-dashboard/context-dashboard.component.mjs +3 -3
  5. package/esm2020/context-dashboard/context-dashboard.model.mjs +1 -1
  6. package/esm2020/context-dashboard/dashboard-detail.component.mjs +1 -1
  7. package/esm2020/core/common/group.service.mjs +2 -11
  8. package/esm2020/core/common/permissions.service.mjs +2 -4
  9. package/esm2020/core/dashboard/dashboard.model.mjs +1 -1
  10. package/esm2020/core/dashboard/widgets-dashboard.component.mjs +5 -4
  11. package/esm2020/core/realtime/measurement-realtime.service.mjs +4 -2
  12. package/esm2020/device-profile/device-profile.component.mjs +4 -2
  13. package/esm2020/ecosystem/application-plugins/plugin-list.component.mjs +15 -7
  14. package/esm2020/sub-assets/add-group/add-group.component.mjs +3 -4
  15. package/esm2020/sub-assets/sub-assets.component.mjs +2 -5
  16. package/esm2020/widgets/implementations/kpi/kpi-widget-view/kpi-widget-view.component.mjs +2 -2
  17. package/fesm2015/c8y-ngx-components-context-dashboard.mjs +2 -2
  18. package/fesm2015/c8y-ngx-components-context-dashboard.mjs.map +1 -1
  19. package/fesm2015/c8y-ngx-components-device-profile.mjs +3 -1
  20. package/fesm2015/c8y-ngx-components-device-profile.mjs.map +1 -1
  21. package/fesm2015/c8y-ngx-components-ecosystem-application-plugins.mjs +14 -8
  22. package/fesm2015/c8y-ngx-components-ecosystem-application-plugins.mjs.map +1 -1
  23. package/fesm2015/c8y-ngx-components-ecosystem.mjs +14 -8
  24. package/fesm2015/c8y-ngx-components-ecosystem.mjs.map +1 -1
  25. package/fesm2015/c8y-ngx-components-sub-assets.mjs +3 -7
  26. package/fesm2015/c8y-ngx-components-sub-assets.mjs.map +1 -1
  27. package/fesm2015/c8y-ngx-components-widgets-implementations-kpi.mjs +1 -1
  28. package/fesm2015/c8y-ngx-components-widgets-implementations-kpi.mjs.map +1 -1
  29. package/fesm2015/c8y-ngx-components.mjs +30 -35
  30. package/fesm2015/c8y-ngx-components.mjs.map +1 -1
  31. package/fesm2020/c8y-ngx-components-context-dashboard.mjs +2 -2
  32. package/fesm2020/c8y-ngx-components-context-dashboard.mjs.map +1 -1
  33. package/fesm2020/c8y-ngx-components-device-profile.mjs +3 -1
  34. package/fesm2020/c8y-ngx-components-device-profile.mjs.map +1 -1
  35. package/fesm2020/c8y-ngx-components-ecosystem-application-plugins.mjs +14 -6
  36. package/fesm2020/c8y-ngx-components-ecosystem-application-plugins.mjs.map +1 -1
  37. package/fesm2020/c8y-ngx-components-ecosystem.mjs +14 -6
  38. package/fesm2020/c8y-ngx-components-ecosystem.mjs.map +1 -1
  39. package/fesm2020/c8y-ngx-components-sub-assets.mjs +3 -7
  40. package/fesm2020/c8y-ngx-components-sub-assets.mjs.map +1 -1
  41. package/fesm2020/c8y-ngx-components-widgets-implementations-kpi.mjs +1 -1
  42. package/fesm2020/c8y-ngx-components-widgets-implementations-kpi.mjs.map +1 -1
  43. package/fesm2020/c8y-ngx-components.mjs +30 -35
  44. package/fesm2020/c8y-ngx-components.mjs.map +1 -1
  45. package/package.json +1 -1
  46. package/widgets/implementations/kpi/kpi-widget-view/kpi-widget-view.component.d.ts +2 -2
@@ -536,9 +536,8 @@ class AddGroupComponent {
536
536
  this.subscription = this.onCancel.subscribe(() => this.resetStepper());
537
537
  this.canCreateGroup =
538
538
  this.subAssetsService.canCreateGroup() ||
539
- (yield this.permissionsService.canEdit([], { id: this.currentGroupId }, {
540
- skipOwnerCheck: true,
541
- skipRolesCheck: true
539
+ (yield this.permissionsService.canEdit(['ROLE_INVENTORY_ADMIN', 'ROLE_INVENTORY_CREATE'], {
540
+ id: this.currentGroupId
542
541
  }));
543
542
  this.canAssignDevice = yield this.subAssetsService.canAssignDevice({
544
543
  id: this.currentGroupId
@@ -1824,10 +1823,7 @@ class SubAssetsComponent {
1824
1823
  this.group = Object.assign({}, contextData);
1825
1824
  this.title = this.group.name;
1826
1825
  this.currentGroupId = this.group.id;
1827
- this.shouldDisableAddGroup = !(yield this.permissionsService.canEdit([], this.group, {
1828
- skipOwnerCheck: true,
1829
- skipRolesCheck: true
1830
- }));
1826
+ this.shouldDisableAddGroup = !(yield this.permissionsService.canEdit(['ROLE_INVENTORY_ADMIN', 'ROLE_INVENTORY_CREATE'], this.group));
1831
1827
  this.shouldDisableAssignDevices = !(yield this.subAssetsService.canAssignDevice(this.group));
1832
1828
  this.customProperties = yield this.subAssetsService.getCustomProperties(this.group);
1833
1829
  this.shouldShowAssetsProperties =