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