@c8y/ngx-components 1021.2.1 → 1021.4.3

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 (63) hide show
  1. package/assets-navigator/asset-selector/asset-selector-node.component.d.ts +2 -1
  2. package/assets-navigator/asset-selector/asset-selector-node.component.d.ts.map +1 -1
  3. package/assets-navigator/asset-selector/asset-selector.component.d.ts +2 -1
  4. package/assets-navigator/asset-selector/asset-selector.component.d.ts.map +1 -1
  5. package/auth-configuration/sso-configuration/template-parts/basic-configuration.component.d.ts +1 -0
  6. package/auth-configuration/sso-configuration/template-parts/basic-configuration.component.d.ts.map +1 -1
  7. package/cockpit-config/cockpit-config.service.d.ts.map +1 -1
  8. package/cockpit-config/cockpit-configuration.component.d.ts +1 -0
  9. package/cockpit-config/cockpit-configuration.component.d.ts.map +1 -1
  10. package/cockpit-config/root-node-config.component.d.ts +2 -1
  11. package/cockpit-config/root-node-config.component.d.ts.map +1 -1
  12. package/context-dashboard/context-dashboard.service.d.ts.map +1 -1
  13. package/core/common/get-group-icon.pipe.d.ts.map +1 -1
  14. package/core/common/global-config.service.d.ts +1 -1
  15. package/core/common/global-config.service.d.ts.map +1 -1
  16. package/core/login/login.component.d.ts.map +1 -1
  17. package/core/login/login.service.d.ts +1 -1
  18. package/core/login/login.service.d.ts.map +1 -1
  19. package/device-profile/device-profile-list.component.d.ts +31 -14
  20. package/device-profile/device-profile-list.component.d.ts.map +1 -1
  21. package/esm2022/assets-navigator/asset-selector/asset-selector-node.component.mjs +6 -3
  22. package/esm2022/assets-navigator/asset-selector/asset-selector.component.mjs +7 -4
  23. package/esm2022/assets-navigator/asset-selector/miller-view.component.mjs +1 -1
  24. package/esm2022/auth-configuration/sso-configuration/template-parts/access-mapping/inventory-roles-modal.component.mjs +1 -1
  25. package/esm2022/auth-configuration/sso-configuration/template-parts/basic-configuration.component.mjs +5 -3
  26. package/esm2022/cockpit-config/cockpit-config.service.mjs +7 -3
  27. package/esm2022/cockpit-config/cockpit-configuration.component.mjs +6 -3
  28. package/esm2022/cockpit-config/root-node-config.component.mjs +8 -4
  29. package/esm2022/cockpit-config/setup/cockpit-setup-step3.component.mjs +1 -1
  30. package/esm2022/context-dashboard/context-dashboard.service.mjs +3 -2
  31. package/esm2022/core/common/get-group-icon.pipe.mjs +4 -1
  32. package/esm2022/core/common/global-config.service.mjs +3 -2
  33. package/esm2022/core/login/login.component.mjs +8 -3
  34. package/esm2022/core/login/login.service.mjs +5 -2
  35. package/esm2022/device-grid/columns/group.filtering-form-renderer.component.mjs +1 -1
  36. package/esm2022/device-profile/device-profile-list.component.mjs +102 -27
  37. package/esm2022/protocol-lwm2m/components/configuration/typed-forms/firmware-settings.component.mjs +11 -2
  38. package/esm2022/repository/shared/repository.model.mjs +2 -1
  39. package/fesm2022/c8y-ngx-components-assets-navigator.mjs +12 -6
  40. package/fesm2022/c8y-ngx-components-assets-navigator.mjs.map +1 -1
  41. package/fesm2022/c8y-ngx-components-auth-configuration.mjs +5 -3
  42. package/fesm2022/c8y-ngx-components-auth-configuration.mjs.map +1 -1
  43. package/fesm2022/c8y-ngx-components-cockpit-config.mjs +19 -9
  44. package/fesm2022/c8y-ngx-components-cockpit-config.mjs.map +1 -1
  45. package/fesm2022/c8y-ngx-components-context-dashboard.mjs +2 -1
  46. package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
  47. package/fesm2022/c8y-ngx-components-device-grid.mjs +1 -1
  48. package/fesm2022/c8y-ngx-components-device-grid.mjs.map +1 -1
  49. package/fesm2022/c8y-ngx-components-device-profile.mjs +110 -35
  50. package/fesm2022/c8y-ngx-components-device-profile.mjs.map +1 -1
  51. package/fesm2022/c8y-ngx-components-protocol-lwm2m-components-configuration.mjs +10 -1
  52. package/fesm2022/c8y-ngx-components-protocol-lwm2m-components-configuration.mjs.map +1 -1
  53. package/fesm2022/c8y-ngx-components-repository-shared.mjs +1 -0
  54. package/fesm2022/c8y-ngx-components-repository-shared.mjs.map +1 -1
  55. package/fesm2022/c8y-ngx-components.mjs +16 -4
  56. package/fesm2022/c8y-ngx-components.mjs.map +1 -1
  57. package/locales/locales.pot +20 -2
  58. package/package.json +1 -1
  59. package/protocol-lwm2m/components/configuration/typed-forms/firmware-settings.component.d.ts +10 -0
  60. package/protocol-lwm2m/components/configuration/typed-forms/firmware-settings.component.d.ts.map +1 -1
  61. package/repository/shared/repository.model.d.ts +2 -1
  62. package/repository/shared/repository.model.d.ts.map +1 -1
  63. package/repository/shared/repository.service.d.ts +1 -1
@@ -5954,6 +5954,9 @@ class GetGroupIconPipe {
5954
5954
  this.groupService = groupService;
5955
5955
  }
5956
5956
  async transform(mo, open = false, defaultIcon) {
5957
+ if (!mo.c8y_IsDevice) {
5958
+ return this.groupService.getIcon(mo, open, 'c8y-group-open');
5959
+ }
5957
5960
  return this.groupService.getIcon(mo, open, defaultIcon);
5958
5961
  }
5959
5962
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: GetGroupIconPipe, deps: [{ token: GroupService }], target: i0.ɵɵFactoryTarget.Pipe }); }
@@ -7537,7 +7540,8 @@ class GlobalConfigService {
7537
7540
  c8y_ModbusDeviceType: 'c8y_FieldbusAsGlobal',
7538
7541
  c8y_CANopenDeviceType: 'c8y_CANOpenAsGlobal',
7539
7542
  c8y_LoraDeviceType: 'c8y_LoraAsGlobal',
7540
- c8y_SigfoxDeviceType: 'c8y_SigfoxAsGlobal'
7543
+ c8y_SigfoxDeviceType: 'c8y_SigfoxAsGlobal',
7544
+ c8y_Profile: 'c8y_ProfileAsGlobal'
7541
7545
  };
7542
7546
  this.cache = undefined;
7543
7547
  }
@@ -12453,7 +12457,10 @@ class LoginService {
12453
12457
  return this.client
12454
12458
  .fetch(`/tenant/oauth?session_state=${sessionState}&code=${code}`, params)
12455
12459
  .then(res => this.handleErrorStatusCodes(res))
12456
- .then(() => this.login());
12460
+ .catch(ex => {
12461
+ this.showSsoError(ex);
12462
+ throw new Error();
12463
+ });
12457
12464
  }
12458
12465
  autoLogout() {
12459
12466
  const errorPattern = /invalid\scredentials.*pin.*generate/i;
@@ -16486,9 +16493,14 @@ class LoginComponent {
16486
16493
  this.reset();
16487
16494
  }
16488
16495
  else {
16489
- this.loginService.loginBySso(ssoData.sessionState, ssoData.code).catch(ex => {
16490
- this.loginService.showSsoError(ex);
16496
+ this.loginService
16497
+ .loginBySso(ssoData.sessionState, ssoData.code)
16498
+ .then(() => this.loginService.login())
16499
+ .catch(e => {
16491
16500
  this.reset();
16501
+ if (e.res?.status) {
16502
+ this.alert.addServerFailure(e);
16503
+ }
16492
16504
  });
16493
16505
  }
16494
16506
  }