@c8y/ngx-components 1018.503.22 → 1018.503.26
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/api/services.d.ts +1 -1
- package/core/common/permissions.service.d.ts +2 -2
- package/core/forms/validation-pattern.d.ts +4 -0
- package/esm2020/api/services.mjs +2 -2
- package/esm2020/assets-navigator/asset-node.service.mjs +9 -3
- package/esm2020/context-dashboard/add-dashboard.factory.mjs +10 -3
- package/esm2020/context-dashboard/context-dashboard.service.mjs +11 -3
- package/esm2020/context-dashboard/dashboard-detail.component.mjs +7 -2
- package/esm2020/context-dashboard/report-dashboard/report-dashboard-list.component.mjs +4 -2
- package/esm2020/core/bottom-drawer/bottom-drawer.service.mjs +1 -1
- package/esm2020/core/common/permissions.service.mjs +2 -2
- package/esm2020/core/common/user-preferences/user-preferences.service.mjs +6 -2
- package/esm2020/core/forms/validation-pattern.mjs +5 -1
- package/esm2020/core/user/user-edit.component.mjs +1 -1
- package/esm2020/files-repository/files-repository.guard.mjs +6 -5
- package/esm2020/replace-device/replace-device.service.mjs +13 -5
- package/esm2020/repository/configuration/device-tab/configuration-preview.component.mjs +11 -3
- package/esm2020/sub-assets/add-group/add-group.component.mjs +7 -2
- package/esm2020/sub-assets/groups.component.mjs +5 -2
- package/esm2020/sub-assets/sub-assets.component.mjs +7 -2
- package/esm2020/sub-assets/sub-assets.service.mjs +12 -6
- package/esm2020/trusted-certificates/crl/crl-check-settings.component.mjs +39 -0
- package/esm2020/trusted-certificates/crl/crl-settings.component.mjs +109 -0
- package/esm2020/trusted-certificates/crl/crl-settings.module.mjs +46 -0
- package/esm2020/trusted-certificates/factories/tabs.factory.mjs +36 -0
- package/esm2020/trusted-certificates/factories/trusted-certificates-navigation.factory.mjs +26 -0
- package/esm2020/trusted-certificates/index.mjs +4 -4
- package/esm2020/trusted-certificates/{add-trusted-certificate.component.mjs → list/add-trusted-certificate.component.mjs} +1 -1
- package/esm2020/trusted-certificates/list/trusted-certificate-list.component.mjs +184 -0
- package/esm2020/trusted-certificates/list/trusted-certificate-list.module.mjs +54 -0
- package/esm2020/trusted-certificates/list/trusted-certificate.model.mjs +36 -0
- package/esm2020/trusted-certificates/trusted-certificates.module.mjs +24 -35
- package/fesm2015/c8y-ngx-components-api.mjs +3 -2
- package/fesm2015/c8y-ngx-components-api.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-assets-navigator.mjs +8 -2
- package/fesm2015/c8y-ngx-components-assets-navigator.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-context-dashboard.mjs +28 -6
- package/fesm2015/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-files-repository.mjs +5 -4
- package/fesm2015/c8y-ngx-components-files-repository.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-replace-device.mjs +13 -5
- package/fesm2015/c8y-ngx-components-replace-device.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-repository-configuration.mjs +10 -2
- package/fesm2015/c8y-ngx-components-repository-configuration.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-sub-assets.mjs +27 -8
- package/fesm2015/c8y-ngx-components-sub-assets.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-trusted-certificates.mjs +329 -86
- package/fesm2015/c8y-ngx-components-trusted-certificates.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components.mjs +10 -2
- package/fesm2015/c8y-ngx-components.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-api.mjs +3 -2
- package/fesm2020/c8y-ngx-components-api.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-assets-navigator.mjs +8 -2
- package/fesm2020/c8y-ngx-components-assets-navigator.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-context-dashboard.mjs +28 -6
- package/fesm2020/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-files-repository.mjs +5 -4
- package/fesm2020/c8y-ngx-components-files-repository.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-replace-device.mjs +13 -5
- package/fesm2020/c8y-ngx-components-replace-device.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-repository-configuration.mjs +10 -2
- package/fesm2020/c8y-ngx-components-repository-configuration.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-sub-assets.mjs +27 -8
- package/fesm2020/c8y-ngx-components-sub-assets.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-trusted-certificates.mjs +314 -85
- package/fesm2020/c8y-ngx-components-trusted-certificates.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components.mjs +10 -2
- package/fesm2020/c8y-ngx-components.mjs.map +1 -1
- package/locales/locales.pot +48 -0
- package/package.json +1 -1
- package/replace-device/replace-device.service.d.ts +3 -1
- package/trusted-certificates/crl/crl-check-settings.component.d.ts +18 -0
- package/trusted-certificates/crl/crl-settings.component.d.ts +28 -0
- package/trusted-certificates/crl/crl-settings.module.d.ts +13 -0
- package/trusted-certificates/factories/tabs.factory.d.ts +10 -0
- package/trusted-certificates/index.d.ts +3 -3
- package/trusted-certificates/{trusted-certificates.component.d.ts → list/trusted-certificate-list.component.d.ts} +4 -4
- package/trusted-certificates/list/trusted-certificate-list.module.d.ts +15 -0
- package/trusted-certificates/trusted-certificates.module.d.ts +4 -10
- package/esm2020/trusted-certificates/trusted-certificate.model.mjs +0 -36
- package/esm2020/trusted-certificates/trusted-certificates-navigation.factory.mjs +0 -26
- package/esm2020/trusted-certificates/trusted-certificates.component.mjs +0 -184
- /package/trusted-certificates/{trusted-certificates-navigation.factory.d.ts → factories/trusted-certificates-navigation.factory.d.ts} +0 -0
- /package/trusted-certificates/{add-trusted-certificate.component.d.ts → list/add-trusted-certificate.component.d.ts} +0 -0
- /package/trusted-certificates/{trusted-certificate.model.d.ts → list/trusted-certificate.model.d.ts} +0 -0
|
@@ -242,7 +242,10 @@ class ContextDashboardService {
|
|
|
242
242
|
this.alert = alert;
|
|
243
243
|
this.dynamicComponent = dynamicComponent;
|
|
244
244
|
this.REPORT_PARTIAL_NAME = 'report_';
|
|
245
|
-
this.INVENTORY_ROLES = [
|
|
245
|
+
this.INVENTORY_ROLES = [
|
|
246
|
+
Permissions.ROLE_INVENTORY_ADMIN,
|
|
247
|
+
Permissions.ROLE_MANAGED_OBJECT_ADMIN
|
|
248
|
+
];
|
|
246
249
|
this.cache = new Map();
|
|
247
250
|
this.DEFAULT_PAGESIZE = 1000;
|
|
248
251
|
this.FRAGMENT_NAME = 'c8y_Dashboard';
|
|
@@ -397,7 +400,12 @@ class ContextDashboardService {
|
|
|
397
400
|
});
|
|
398
401
|
}
|
|
399
402
|
canEditDashboard(mo) {
|
|
400
|
-
return this.permissions.canEdit([
|
|
403
|
+
return this.permissions.canEdit([
|
|
404
|
+
Permissions.ROLE_INVENTORY_ADMIN,
|
|
405
|
+
Permissions.ROLE_INVENTORY_CREATE,
|
|
406
|
+
Permissions.ROLE_MANAGED_OBJECT_ADMIN,
|
|
407
|
+
Permissions.ROLE_MANAGED_OBJECT_CREATE
|
|
408
|
+
], mo);
|
|
401
409
|
}
|
|
402
410
|
isNamed(dashboard) {
|
|
403
411
|
return some(keys(dashboard), prop => new RegExp(`^${this.FRAGMENT_NAME}${this.INDEX_SPLIT}${ContextDashboardType.Named}${this.INDEX_SPLIT}`).test(prop));
|
|
@@ -882,7 +890,12 @@ class DashboardDetailComponent {
|
|
|
882
890
|
}
|
|
883
891
|
}
|
|
884
892
|
setupApplyToDevicesOfTypeCheckbox() {
|
|
885
|
-
const rolesToCheck = [
|
|
893
|
+
const rolesToCheck = [
|
|
894
|
+
Permissions.ROLE_INVENTORY_CREATE,
|
|
895
|
+
Permissions.ROLE_INVENTORY_ADMIN,
|
|
896
|
+
Permissions.ROLE_MANAGED_OBJECT_ADMIN,
|
|
897
|
+
Permissions.ROLE_MANAGED_OBJECT_CREATE
|
|
898
|
+
];
|
|
886
899
|
this.applyToDevicesOfTypePermitted = this.permissionsService.hasAnyRole(rolesToCheck);
|
|
887
900
|
}
|
|
888
901
|
save() {
|
|
@@ -992,11 +1005,18 @@ class AddDashboardFactory {
|
|
|
992
1005
|
hasPermission(context) {
|
|
993
1006
|
return __awaiter(this, void 0, void 0, function* () {
|
|
994
1007
|
if (context === null || context === void 0 ? void 0 : context.id) {
|
|
995
|
-
return yield this.permissions.canEdit([
|
|
1008
|
+
return yield this.permissions.canEdit([
|
|
1009
|
+
Permissions.ROLE_INVENTORY_ADMIN,
|
|
1010
|
+
Permissions.ROLE_INVENTORY_CREATE,
|
|
1011
|
+
Permissions.ROLE_MANAGED_OBJECT_ADMIN,
|
|
1012
|
+
Permissions.ROLE_MANAGED_OBJECT_CREATE
|
|
1013
|
+
], context);
|
|
996
1014
|
}
|
|
997
1015
|
return this.permissions.hasAnyRole([
|
|
998
1016
|
Permissions.ROLE_INVENTORY_ADMIN,
|
|
999
|
-
Permissions.ROLE_INVENTORY_CREATE
|
|
1017
|
+
Permissions.ROLE_INVENTORY_CREATE,
|
|
1018
|
+
Permissions.ROLE_MANAGED_OBJECT_ADMIN,
|
|
1019
|
+
Permissions.ROLE_MANAGED_OBJECT_CREATE
|
|
1000
1020
|
]);
|
|
1001
1021
|
});
|
|
1002
1022
|
}
|
|
@@ -2609,7 +2629,9 @@ class ReportDashboardListComponent {
|
|
|
2609
2629
|
ngOnInit() {
|
|
2610
2630
|
this.canAddReport = this.permissions.hasAnyRole([
|
|
2611
2631
|
Permissions.ROLE_INVENTORY_CREATE,
|
|
2612
|
-
Permissions.ROLE_INVENTORY_ADMIN
|
|
2632
|
+
Permissions.ROLE_INVENTORY_ADMIN,
|
|
2633
|
+
Permissions.ROLE_MANAGED_OBJECT_ADMIN,
|
|
2634
|
+
Permissions.ROLE_MANAGED_OBJECT_CREATE
|
|
2613
2635
|
]);
|
|
2614
2636
|
}
|
|
2615
2637
|
loadReports(partialName) {
|