@fluxhub/fluxhub-lib 19.0.158 → 19.0.160
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.
|
@@ -9519,17 +9519,23 @@ class FHGridComponent {
|
|
|
9519
9519
|
this.rowData = data.result_data;
|
|
9520
9520
|
console.log('✅ params.success chiamato - rowCount:', data.count, 'rowData.length:', data.result_data.length);
|
|
9521
9521
|
params.success({ rowData: data.result_data, rowCount: data.count });
|
|
9522
|
+
// Salva lo stato PRIMA di modificarlo
|
|
9523
|
+
const isFirstDataLoad = !this.b_init;
|
|
9522
9524
|
this.b_init = true;
|
|
9523
9525
|
this.myData = data.result_data.slice();
|
|
9524
9526
|
this.num_r = data.count;
|
|
9525
|
-
console.log('🔄
|
|
9526
|
-
this.cdr.detectChanges();
|
|
9527
|
-
console.log('🔄 cdr.detectChanges()
|
|
9527
|
+
console.log('🔄 SKIPPO cdr.detectChanges() per test');
|
|
9528
|
+
// this.cdr.detectChanges();
|
|
9529
|
+
console.log('🔄 cdr.detectChanges() skippato');
|
|
9528
9530
|
this.m_appService.complete();
|
|
9529
|
-
console.log('📢 Emettendo fill_end event');
|
|
9531
|
+
console.log('📢 Emettendo fill_end event - Observers:', this.fill_end.observers.length);
|
|
9530
9532
|
this.fill_end.emit();
|
|
9531
|
-
console.log('
|
|
9532
|
-
|
|
9533
|
+
console.log('📢 fill_end.emit() completato');
|
|
9534
|
+
// check_width() può causare resize che triggera nuovi caricamenti - chiamalo solo al primo caricamento
|
|
9535
|
+
if (isFirstDataLoad) {
|
|
9536
|
+
console.log('📏 Chiamando check_width() (SOLO PRIMA VOLTA)');
|
|
9537
|
+
this.check_width();
|
|
9538
|
+
}
|
|
9533
9539
|
localStorage.setItem(this.grid_customer_preference_key + '_POS1', JSON.stringify(p));
|
|
9534
9540
|
if (localStorage.getItem(this.grid_customer_preference_key + '_POS2') != null)
|
|
9535
9541
|
if (this.gridOptions != null)
|