@messaia/cdk 22.0.0-rc.26 → 22.0.0-rc.27

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.
@@ -19702,6 +19702,15 @@ class GenericListComponent extends BaseComponent {
19702
19702
  * @type {string}
19703
19703
  */
19704
19704
  configsKey = '';
19705
+ /**
19706
+ * @property configsKeySuffix
19707
+ * @description Optional suffix appended to the persisted table configuration key.
19708
+ * Subclasses can override this getter to isolate configurations.
19709
+ * @type {string | undefined}
19710
+ */
19711
+ get configsKeySuffix() {
19712
+ return undefined;
19713
+ }
19705
19714
  /**
19706
19715
  * Constructor for the table component.
19707
19716
  * @param service The service used for managing table data.
@@ -19721,9 +19730,16 @@ class GenericListComponent extends BaseComponent {
19721
19730
  ngOnInit() {
19722
19731
  super.ngOnInit();
19723
19732
  /* Assemble the config key */
19724
- this.configsKey = [this.projectName, 'list-config.v2', window.btoa(this.currentBaseRoute ?? ''), this.menu?.title].join('.');
19733
+ this.configsKey = [
19734
+ this.projectName,
19735
+ 'list-config.v2',
19736
+ window.btoa(this.currentBaseRoute ?? ''),
19737
+ this.menu?.title,
19738
+ this.configsKeySuffix
19739
+ ].filter(x => x !== null && x !== undefined && x !== '').join('.');
19725
19740
  /* Load list configs */
19726
19741
  this.tableConfig = AppStorage.getObjectEncoded(this.configsKey, new TableConfig());
19742
+ /* Set table width from config */
19727
19743
  this.sticky = this.tableConfig.sticky ?? false;
19728
19744
  /* Set back button from route params */
19729
19745
  this.backButton = this.route?.snapshot?.paramMap?.get('backButton') == 'true';