@esfaenza/es-table 13.1.5 → 13.1.6

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.
@@ -1586,7 +1586,7 @@ class ColumnMetadataHandler {
1586
1586
  let columns = this.est.arrayMode ? this.est.arrayColumns : castedView.columns;
1587
1587
  let columnsOrderings = this.est.arrayMode ? this.est.arrayColumnOrdering : castedView.column_ordering;
1588
1588
  var toStore = { columns: JSON.parse(JSON.stringify(columns)), column_ordering: JSON.parse(JSON.stringify(columnsOrderings)) };
1589
- this.prefService.store(this.est.ngControl.name, toStore).subscribe();
1589
+ this.prefService.setItem(this.est.ngControl.name, toStore, 'preference').subscribe();
1590
1590
  }
1591
1591
  // Rieseguo l'ultima ricerca bindata alla tabella
1592
1592
  // Mi assicuro di farlo dopo l'espansione del changed o rischio che la ricerca mi ridia colonne che in realtà non esistono
@@ -3745,7 +3745,7 @@ class EsTableComponent {
3745
3745
  else if (!this.prefService)
3746
3746
  console.error("Non posso utilizzare le preference senza che il pacchetto @esfaenza/preferences sia installato");
3747
3747
  else {
3748
- var prefs = await this.prefService.retrieve(this.ngControl.name).toPromise();
3748
+ var prefs = await this.prefService.getItem(this.ngControl.name).toPromise();
3749
3749
  this.View.columns = prefs?.columns || [];
3750
3750
  this.View.column_ordering = prefs?.column_ordering || [];
3751
3751
  }
@@ -3768,7 +3768,7 @@ class EsTableComponent {
3768
3768
  else if (!this.prefService)
3769
3769
  console.error("Non posso utilizzare le preference senza che il pacchetto @esfaenza/preferences sia installato");
3770
3770
  else {
3771
- var prefs = await this.prefService.retrieve(this.ngControl.name).toPromise();
3771
+ var prefs = await this.prefService.getItem(this.ngControl.name).toPromise();
3772
3772
  this.arrayColumns = prefs?.columns || [];
3773
3773
  this.arrayColumnOrdering = prefs?.column_ordering || [];
3774
3774
  }