@fluxhub/fluxhub-lib 19.0.142 → 19.0.144

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.
@@ -9450,6 +9450,7 @@ class FHGridComponent {
9450
9450
  p_fi = {};
9451
9451
  dataSource = {
9452
9452
  getRows: (params) => {
9453
+ console.log('🔵 getRows chiamato - startRow:', params.request.startRow, 'endRow:', params.request.endRow);
9453
9454
  this.num_r = -1;
9454
9455
  this.m_appService.start();
9455
9456
  let p = { kd: this.grid_config_key };
@@ -9488,16 +9489,19 @@ class FHGridComponent {
9488
9489
  this._gridservice
9489
9490
  .doQuery(p, true, this.m_appService.API_ENDPOINT + this.service)
9490
9491
  .subscribe((data) => {
9492
+ console.log('🟢 Risposta ricevuta - count:', data?.count, 'result_data.length:', data?.result_data?.length);
9491
9493
  let ok_op = false;
9492
9494
  if (data != null)
9493
9495
  if (data.result_msg == 'OK') {
9494
9496
  ok_op = true;
9495
9497
  this.rowData = data.result_data;
9498
+ console.log('🟡 Chiamata params.success con rowCount:', data.count, 'rowData.length:', data.result_data.length);
9496
9499
  params.success({ rowData: data.result_data, rowCount: data.count });
9497
9500
  this.b_init = true;
9498
9501
  this.myData = data.result_data.slice();
9499
9502
  this.num_r = data.count;
9500
- this.cdr.detectChanges();
9503
+ // FIXME: detectChanges potrebbe causare reset del datasource
9504
+ // this.cdr.detectChanges();
9501
9505
  this.m_appService.complete();
9502
9506
  this.fill_end.emit();
9503
9507
  this.check_width();
@@ -10105,6 +10109,7 @@ class FHGridComponent {
10105
10109
  // return sortData(sortModel, filterData(filterModel, allOfTheData))
10106
10110
  }
10107
10111
  ref_dt() {
10112
+ console.log('🔴 ref_dt chiamato - resetting datasource');
10108
10113
  if (this.gridOptions == null)
10109
10114
  setTimeout(() => {
10110
10115
  this.ref_dt();