@c8y/ngx-components 1024.15.1 → 1024.15.13

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 (40) hide show
  1. package/fesm2022/c8y-ngx-components-asset-properties.mjs +2 -2
  2. package/fesm2022/c8y-ngx-components-asset-properties.mjs.map +1 -1
  3. package/fesm2022/{c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-DreEjPAV.mjs → c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-CFZO0ZaS.mjs} +3 -3
  4. package/fesm2022/{c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-DreEjPAV.mjs.map → c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-CFZO0ZaS.mjs.map} +1 -1
  5. package/fesm2022/{c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-B2z2tGM7.mjs → c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-1mnvr3pp.mjs} +2 -2
  6. package/fesm2022/{c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-B2z2tGM7.mjs.map → c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-1mnvr3pp.mjs.map} +1 -1
  7. package/fesm2022/{c8y-ngx-components-computed-asset-properties-last-measurement-config.component-CwWLXBUt.mjs → c8y-ngx-components-computed-asset-properties-last-measurement-config.component-Dq4w0MQH.mjs} +4 -4
  8. package/fesm2022/{c8y-ngx-components-computed-asset-properties-last-measurement-config.component-CwWLXBUt.mjs.map → c8y-ngx-components-computed-asset-properties-last-measurement-config.component-Dq4w0MQH.mjs.map} +1 -1
  9. package/fesm2022/c8y-ngx-components-computed-asset-properties.mjs +1 -1
  10. package/fesm2022/c8y-ngx-components-context-dashboard.mjs +3 -0
  11. package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
  12. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs +10 -6
  13. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs.map +1 -1
  14. package/fesm2022/c8y-ngx-components-global-context.mjs +4 -4
  15. package/fesm2022/c8y-ngx-components-global-context.mjs.map +1 -1
  16. package/fesm2022/c8y-ngx-components-icon-selector.mjs +23 -11
  17. package/fesm2022/c8y-ngx-components-icon-selector.mjs.map +1 -1
  18. package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs +24 -2
  19. package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs.map +1 -1
  20. package/fesm2022/c8y-ngx-components.mjs +39 -9
  21. package/fesm2022/c8y-ngx-components.mjs.map +1 -1
  22. package/locales/de.po +19 -15
  23. package/locales/es.po +3 -0
  24. package/locales/fr.po +4 -1
  25. package/locales/ja_JP.po +294 -283
  26. package/locales/ko.po +3 -0
  27. package/locales/locales.pot +3 -0
  28. package/locales/nl.po +3 -0
  29. package/locales/pl.po +3 -0
  30. package/locales/pt_BR.po +3 -0
  31. package/locales/zh_CN.po +3 -0
  32. package/locales/zh_TW.po +3 -0
  33. package/package.json +1 -1
  34. package/types/c8y-ngx-components-context-dashboard.d.ts.map +1 -1
  35. package/types/c8y-ngx-components-icon-selector.d.ts +7 -1
  36. package/types/c8y-ngx-components-icon-selector.d.ts.map +1 -1
  37. package/types/c8y-ngx-components-widgets-implementations-asset-table.d.ts +1 -0
  38. package/types/c8y-ngx-components-widgets-implementations-asset-table.d.ts.map +1 -1
  39. package/types/c8y-ngx-components.d.ts +22 -4
  40. package/types/c8y-ngx-components.d.ts.map +1 -1
@@ -517,6 +517,7 @@ class WorkspaceConfigComponent {
517
517
  this.configurations = this.configurations.map(c => c.id === configuration.id ? configuration : c);
518
518
  if (this.currentConfiguration.id === configuration.id) {
519
519
  this.currentConfiguration = configuration;
520
+ this.updateQueryParams();
520
521
  }
521
522
  this.workspaceConfigurationService.saveConfigurations(this.configurations, this.currentConfiguration?.id || '');
522
523
  }
@@ -554,11 +555,6 @@ class WorkspaceConfigComponent {
554
555
  const config = { ...this.updatedConfig };
555
556
  this.currentConfiguration.config = config;
556
557
  this.configurations = this.configurations.map(currentConfig => currentConfig.id === this.currentConfiguration.id ? this.currentConfiguration : currentConfig);
557
- const queryParams = {
558
- id: this.currentConfiguration.id,
559
- label: this.currentConfiguration.label,
560
- config: this.workspaceConfigurationService.encodeConfig(config)
561
- };
562
558
  this.workspaceConfigurationService.saveConfigurations(this.configurations, this.currentConfiguration.id);
563
559
  const control = this.configurationsFormGroup.controls['configurations'];
564
560
  const index = this.configurations.findIndex(c => c.id === this.currentConfiguration.id);
@@ -569,8 +565,16 @@ class WorkspaceConfigComponent {
569
565
  id: this.currentConfiguration.id
570
566
  });
571
567
  }
568
+ this.updateQueryParams();
569
+ }
570
+ /** Reflects the current configuration in the URL so it stays shareable after every change. */
571
+ updateQueryParams() {
572
572
  this.router.navigate([], {
573
- queryParams,
573
+ queryParams: {
574
+ id: this.currentConfiguration.id,
575
+ label: this.currentConfiguration.label,
576
+ config: this.workspaceConfigurationService.encodeConfig(this.currentConfiguration.config)
577
+ },
574
578
  queryParamsHandling: 'merge'
575
579
  });
576
580
  }