@c8y/ngx-components 1018.0.194 → 1018.0.201

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 (99) hide show
  1. package/core/common/global-config.service.d.ts +1 -1
  2. package/core/common/permissions.service.d.ts +69 -2
  3. package/core/common/tenant-ui.service.d.ts +1 -1
  4. package/core/i18n/pattern-messages.data.d.ts +20 -20
  5. package/esm2020/assets-navigator/asset-node.service.mjs +11 -4
  6. package/esm2020/auth-configuration/auth-configuration.guard.mjs +5 -2
  7. package/esm2020/auth-configuration/factories/navigation.factory.mjs +3 -3
  8. package/esm2020/cockpit-config/cockpit-config.guard.mjs +2 -2
  9. package/esm2020/cockpit-config/cockpit-config.service.mjs +2 -2
  10. package/esm2020/context-dashboard/add-dashboard.factory.mjs +13 -3
  11. package/esm2020/context-dashboard/context-dashboard.service.mjs +11 -3
  12. package/esm2020/context-dashboard/dashboard-detail.component.mjs +7 -2
  13. package/esm2020/context-dashboard/report-dashboard/report-dashboard-list.component.mjs +5 -3
  14. package/esm2020/core/common/global-config.service.mjs +7 -2
  15. package/esm2020/core/common/permissions.service.mjs +69 -2
  16. package/esm2020/core/common/tenant-ui.service.mjs +3 -2
  17. package/esm2020/core/common/user-preferences/user-preferences.service.mjs +10 -2
  18. package/esm2020/core/i18n/pattern-messages.data.mjs +21 -21
  19. package/esm2020/ecosystem/application-properties/application-properties.component.mjs +2 -2
  20. package/esm2020/ecosystem/ecosystem-navigation.factory.mjs +3 -3
  21. package/esm2020/ecosystem/packages/package-list/packages-list.component.mjs +2 -2
  22. package/esm2020/ecosystem/packages/package-versions/package-versions-list/package-versions-list.component.mjs +2 -2
  23. package/esm2020/files-repository/files-repository.guard.mjs +6 -3
  24. package/esm2020/protocol-lwm2m/components/bootstrap-parameters/lwm2m-bootstrap-parameters.component.mjs +2 -2
  25. package/esm2020/register-device/register-device-navigation.factory.mjs +3 -3
  26. package/esm2020/reports/export-schedules.component.mjs +3 -3
  27. package/esm2020/repository/configuration/device-tab/configuration-preview.component.mjs +14 -6
  28. package/esm2020/sms-gateway/sms-gateway.guard.mjs +2 -2
  29. package/esm2020/sms-gateway/sms-gateway.module.mjs +6 -6
  30. package/esm2020/sub-assets/add-group/add-group.component.mjs +7 -2
  31. package/esm2020/sub-assets/groups.component.mjs +5 -2
  32. package/esm2020/sub-assets/sub-assets.component.mjs +7 -2
  33. package/esm2020/sub-assets/sub-assets.service.mjs +22 -10
  34. package/esm2020/tenants/tenant-list/tenant-list.component.mjs +12 -7
  35. package/esm2020/upgrade/ng1/downgraded.services.mjs +3 -2
  36. package/esm2020/upgrade/ng1/index.mjs +4 -3
  37. package/fesm2015/c8y-ngx-components-assets-navigator.mjs +10 -3
  38. package/fesm2015/c8y-ngx-components-assets-navigator.mjs.map +1 -1
  39. package/fesm2015/c8y-ngx-components-auth-configuration.mjs +7 -4
  40. package/fesm2015/c8y-ngx-components-auth-configuration.mjs.map +1 -1
  41. package/fesm2015/c8y-ngx-components-cockpit-config.mjs +3 -3
  42. package/fesm2015/c8y-ngx-components-cockpit-config.mjs.map +1 -1
  43. package/fesm2015/c8y-ngx-components-context-dashboard.mjs +33 -8
  44. package/fesm2015/c8y-ngx-components-context-dashboard.mjs.map +1 -1
  45. package/fesm2015/c8y-ngx-components-ecosystem.mjs +6 -6
  46. package/fesm2015/c8y-ngx-components-ecosystem.mjs.map +1 -1
  47. package/fesm2015/c8y-ngx-components-files-repository.mjs +6 -3
  48. package/fesm2015/c8y-ngx-components-files-repository.mjs.map +1 -1
  49. package/fesm2015/c8y-ngx-components-protocol-lwm2m-components-bootstrap-parameters.mjs +2 -2
  50. package/fesm2015/c8y-ngx-components-protocol-lwm2m-components-bootstrap-parameters.mjs.map +1 -1
  51. package/fesm2015/c8y-ngx-components-register-device.mjs +3 -3
  52. package/fesm2015/c8y-ngx-components-register-device.mjs.map +1 -1
  53. package/fesm2015/c8y-ngx-components-reports.mjs +2 -2
  54. package/fesm2015/c8y-ngx-components-reports.mjs.map +1 -1
  55. package/fesm2015/c8y-ngx-components-repository-configuration.mjs +13 -5
  56. package/fesm2015/c8y-ngx-components-repository-configuration.mjs.map +1 -1
  57. package/fesm2015/c8y-ngx-components-sms-gateway.mjs +6 -6
  58. package/fesm2015/c8y-ngx-components-sms-gateway.mjs.map +1 -1
  59. package/fesm2015/c8y-ngx-components-sub-assets.mjs +38 -13
  60. package/fesm2015/c8y-ngx-components-sub-assets.mjs.map +1 -1
  61. package/fesm2015/c8y-ngx-components-tenants.mjs +11 -6
  62. package/fesm2015/c8y-ngx-components-tenants.mjs.map +1 -1
  63. package/fesm2015/c8y-ngx-components-upgrade.mjs +4 -2
  64. package/fesm2015/c8y-ngx-components-upgrade.mjs.map +1 -1
  65. package/fesm2015/c8y-ngx-components.mjs +103 -24
  66. package/fesm2015/c8y-ngx-components.mjs.map +1 -1
  67. package/fesm2020/c8y-ngx-components-assets-navigator.mjs +10 -3
  68. package/fesm2020/c8y-ngx-components-assets-navigator.mjs.map +1 -1
  69. package/fesm2020/c8y-ngx-components-auth-configuration.mjs +7 -4
  70. package/fesm2020/c8y-ngx-components-auth-configuration.mjs.map +1 -1
  71. package/fesm2020/c8y-ngx-components-cockpit-config.mjs +3 -3
  72. package/fesm2020/c8y-ngx-components-cockpit-config.mjs.map +1 -1
  73. package/fesm2020/c8y-ngx-components-context-dashboard.mjs +34 -9
  74. package/fesm2020/c8y-ngx-components-context-dashboard.mjs.map +1 -1
  75. package/fesm2020/c8y-ngx-components-ecosystem.mjs +6 -6
  76. package/fesm2020/c8y-ngx-components-ecosystem.mjs.map +1 -1
  77. package/fesm2020/c8y-ngx-components-files-repository.mjs +6 -3
  78. package/fesm2020/c8y-ngx-components-files-repository.mjs.map +1 -1
  79. package/fesm2020/c8y-ngx-components-protocol-lwm2m-components-bootstrap-parameters.mjs +2 -2
  80. package/fesm2020/c8y-ngx-components-protocol-lwm2m-components-bootstrap-parameters.mjs.map +1 -1
  81. package/fesm2020/c8y-ngx-components-register-device.mjs +3 -3
  82. package/fesm2020/c8y-ngx-components-register-device.mjs.map +1 -1
  83. package/fesm2020/c8y-ngx-components-reports.mjs +2 -2
  84. package/fesm2020/c8y-ngx-components-reports.mjs.map +1 -1
  85. package/fesm2020/c8y-ngx-components-repository-configuration.mjs +13 -5
  86. package/fesm2020/c8y-ngx-components-repository-configuration.mjs.map +1 -1
  87. package/fesm2020/c8y-ngx-components-sms-gateway.mjs +6 -6
  88. package/fesm2020/c8y-ngx-components-sms-gateway.mjs.map +1 -1
  89. package/fesm2020/c8y-ngx-components-sub-assets.mjs +38 -13
  90. package/fesm2020/c8y-ngx-components-sub-assets.mjs.map +1 -1
  91. package/fesm2020/c8y-ngx-components-tenants.mjs +11 -6
  92. package/fesm2020/c8y-ngx-components-tenants.mjs.map +1 -1
  93. package/fesm2020/c8y-ngx-components-upgrade.mjs +4 -2
  94. package/fesm2020/c8y-ngx-components-upgrade.mjs.map +1 -1
  95. package/fesm2020/c8y-ngx-components.mjs +103 -24
  96. package/fesm2020/c8y-ngx-components.mjs.map +1 -1
  97. package/package.json +1 -1
  98. package/tenants/tenant-list/tenant-list.component.d.ts +4 -2
  99. package/upgrade/ng1/downgraded.services.d.ts +1 -0
@@ -4,7 +4,7 @@ import { Component, Input, ViewChild, Injectable, Pipe, EventEmitter, Output, Ng
4
4
  import * as i1 from '@c8y/ngx-components/ecosystem/shared';
5
5
  import { packageProperties, PRODUCT_EXPERIENCE, EcosystemWizards, ApplicationPropertiesFormComponent, ERROR_TYPE, PACKAGE_TYPE_LABELS, SharedEcosystemModule } from '@c8y/ngx-components/ecosystem/shared';
6
6
  import * as i2 from '@c8y/ngx-components';
7
- import { gettext, Status, ViewContext, PackageType, ApplicationPluginStatus, DataGridComponent, CoreModule, hookRoute, FormsModule, hookTab, hookNavigator, hookWizard } from '@c8y/ngx-components';
7
+ import { gettext, Status, Permissions, ViewContext, PackageType, ApplicationPluginStatus, DataGridComponent, CoreModule, hookRoute, FormsModule, hookTab, hookNavigator, hookWizard } from '@c8y/ngx-components';
8
8
  import * as i3 from '@angular/common';
9
9
  import * as i3$1 from '@angular/forms';
10
10
  import { Validators, ReactiveFormsModule } from '@angular/forms';
@@ -316,7 +316,7 @@ class ApplicationPropertiesComponent {
316
316
  }
317
317
  ngOnInit() {
318
318
  return __awaiter(this, void 0, void 0, function* () {
319
- this.hasAdminPermissions = this.permissions.hasRole('ROLE_APPLICATION_MANAGEMENT_ADMIN');
319
+ this.hasAdminPermissions = this.permissions.hasRole(Permissions.ROLE_APPLICATION_MANAGEMENT_ADMIN);
320
320
  yield this.refresh();
321
321
  });
322
322
  }
@@ -927,8 +927,8 @@ class EcosystemNavigationFactory {
927
927
  this.permissions = permissions;
928
928
  this.navs = [];
929
929
  this.showNavigatorNodes = this.permissions.hasAnyRole([
930
- 'ROLE_APPLICATION_MANAGEMENT_READ',
931
- 'ROLE_APPLICATION_MANAGEMENT_ADMIN'
930
+ Permissions.ROLE_APPLICATION_MANAGEMENT_READ,
931
+ Permissions.ROLE_APPLICATION_MANAGEMENT_ADMIN
932
932
  ]);
933
933
  }
934
934
  get() {
@@ -1791,7 +1791,7 @@ class PackagesListComponent {
1791
1791
  this.packages$ = this.reload$.pipe(takeUntil(this.destroy$), tap(() => (this.reloading = true)), switchMap(() => this.ecosystemService.getPackageApplications()), tap(() => (this.reloading = false)), shareReplay(1));
1792
1792
  }
1793
1793
  ngOnInit() {
1794
- this.hasAdminPermissions = this.permissions.hasRole('ROLE_APPLICATION_MANAGEMENT_ADMIN');
1794
+ this.hasAdminPermissions = this.permissions.hasRole(Permissions.ROLE_APPLICATION_MANAGEMENT_ADMIN);
1795
1795
  this.loadPackages();
1796
1796
  }
1797
1797
  loadPackages() {
@@ -1925,7 +1925,7 @@ class PackageVersionsListComponent {
1925
1925
  var _a, _b, _c, _d;
1926
1926
  return __awaiter(this, void 0, void 0, function* () {
1927
1927
  this.isLoading = true;
1928
- this.hasAdminPermissions = this.permissions.hasRole('ROLE_APPLICATION_MANAGEMENT_ADMIN');
1928
+ this.hasAdminPermissions = this.permissions.hasRole(Permissions.ROLE_APPLICATION_MANAGEMENT_ADMIN);
1929
1929
  this.package = (_d = (_c = (_b = (_a = this.activatedRoute) === null || _a === void 0 ? void 0 : _a.snapshot) === null || _b === void 0 ? void 0 : _b.parent) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.contextData;
1930
1930
  this.isPackageOwnedByCurrentTenant = this.ecosystemService.isOwner(this.package);
1931
1931
  this.versionsLimit = (yield this.optionsService.getSystemOption('application', 'versions.limit', DEFAULT_VERSIONS_LIMIT));