@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.
- package/fesm2022/c8y-ngx-components-asset-properties.mjs +2 -2
- package/fesm2022/c8y-ngx-components-asset-properties.mjs.map +1 -1
- 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
- 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
- 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
- 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
- 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
- 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
- package/fesm2022/c8y-ngx-components-computed-asset-properties.mjs +1 -1
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs +3 -0
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs +10 -6
- package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-global-context.mjs +4 -4
- package/fesm2022/c8y-ngx-components-global-context.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-icon-selector.mjs +23 -11
- package/fesm2022/c8y-ngx-components-icon-selector.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs +24 -2
- package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +39 -9
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/locales/de.po +19 -15
- package/locales/es.po +3 -0
- package/locales/fr.po +4 -1
- package/locales/ja_JP.po +294 -283
- package/locales/ko.po +3 -0
- package/locales/locales.pot +3 -0
- package/locales/nl.po +3 -0
- package/locales/pl.po +3 -0
- package/locales/pt_BR.po +3 -0
- package/locales/zh_CN.po +3 -0
- package/locales/zh_TW.po +3 -0
- package/package.json +1 -1
- package/types/c8y-ngx-components-context-dashboard.d.ts.map +1 -1
- package/types/c8y-ngx-components-icon-selector.d.ts +7 -1
- package/types/c8y-ngx-components-icon-selector.d.ts.map +1 -1
- package/types/c8y-ngx-components-widgets-implementations-asset-table.d.ts +1 -0
- package/types/c8y-ngx-components-widgets-implementations-asset-table.d.ts.map +1 -1
- package/types/c8y-ngx-components.d.ts +22 -4
- 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
|
}
|