@fluxhub/fluxhub-lib 19.0.143 → 19.0.145

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.
@@ -9503,7 +9503,8 @@ class FHGridComponent {
9503
9503
  this.cdr.detectChanges();
9504
9504
  this.m_appService.complete();
9505
9505
  this.fill_end.emit();
9506
- this.check_width();
9506
+ // TEMP: test se check_width causa il loop
9507
+ // this.check_width();
9507
9508
  localStorage.setItem(this.grid_customer_preference_key + '_POS1', JSON.stringify(p));
9508
9509
  if (localStorage.getItem(this.grid_customer_preference_key + '_POS2') != null)
9509
9510
  if (this.gridOptions != null)
@@ -9532,7 +9533,8 @@ class FHGridComponent {
9532
9533
  if (localStorage.getItem(this.grid_customer_preference_key + '_COLS') == null &&
9533
9534
  this.autosize_at_ini)
9534
9535
  setTimeout(() => {
9535
- this.set_init_size();
9536
+ // TEMP: test se set_init_size causa il loop
9537
+ // this.set_init_size();
9536
9538
  }, 300);
9537
9539
  }
9538
9540
  if (!ok_op) {
@@ -9766,25 +9768,29 @@ class FHGridComponent {
9766
9768
  if (itemg.data == null)
9767
9769
  return this.uti_s.newGuid();
9768
9770
  let item = itemg.data;
9771
+ let rowId;
9769
9772
  if (item.customKeyField != null)
9770
- return [item.customKeyField];
9771
- if (item.ID != null)
9772
- return String(item.ID);
9773
- if (item.id != null)
9774
- return String(item.id);
9775
- if (item.uiid != null)
9776
- return item.uiid;
9777
- if (item.codice != null)
9778
- return item.codice;
9779
- if (item.id_gruppo != null)
9780
- return item.id_gruppo;
9781
- if (item.id_doc != null)
9782
- return item.id_doc;
9783
- if (item.notesid != null)
9784
- return item.notesid;
9785
- if (item.ord != null)
9786
- return item.ord;
9787
- return this.uti_s.newGuid();
9773
+ rowId = [item.customKeyField];
9774
+ else if (item.ID != null)
9775
+ rowId = String(item.ID);
9776
+ else if (item.id != null)
9777
+ rowId = String(item.id);
9778
+ else if (item.uiid != null)
9779
+ rowId = item.uiid;
9780
+ else if (item.codice != null)
9781
+ rowId = item.codice;
9782
+ else if (item.id_gruppo != null)
9783
+ rowId = item.id_gruppo;
9784
+ else if (item.id_doc != null)
9785
+ rowId = item.id_doc;
9786
+ else if (item.notesid != null)
9787
+ rowId = item.notesid;
9788
+ else if (item.ord != null)
9789
+ rowId = item.ord;
9790
+ else
9791
+ rowId = this.uti_s.newGuid();
9792
+ console.log('🆔 getRowId chiamato - rowId:', rowId, 'item:', item);
9793
+ return rowId;
9788
9794
  }
9789
9795
  };
9790
9796
  this.init_opt = true;