@fluxhub/fluxhub-lib 19.0.13 → 19.0.14

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.
@@ -8531,7 +8531,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
8531
8531
 
8532
8532
  ModuleRegistry.registerModules([
8533
8533
  ServerSideRowModelModule,
8534
- RowGroupingModule,
8534
+ RowGroupingModule
8535
8535
  ]);
8536
8536
  class FHGridComponent {
8537
8537
  _gridservice;
@@ -9468,13 +9468,6 @@ class FHGridComponent {
9468
9468
  this.ref_dt();
9469
9469
  }, 100);
9470
9470
  }
9471
- // this.createNewDatasource();
9472
- /*
9473
- if(this.m_appService.getState().grid_obj[this.grid_key+'_startPage']!=null)
9474
- {
9475
- //console.log('setto pag: '+this.m_appService.getState().grid_obj[this.grid_key+'_startPage']);
9476
- this.gridApi.paginationGoToPage(this.m_appService.getState().grid_obj[this.grid_key+'_startPage']);
9477
- } */
9478
9471
  }
9479
9472
  set_init_size() {
9480
9473
  if (this.myData.length == 0) {
@@ -9489,7 +9482,6 @@ class FHGridComponent {
9489
9482
  this.autoSizeAll();
9490
9483
  }
9491
9484
  res_columns(forza = false) {
9492
- console.log('🚀 ~ file: fhgridn.ts:1370 ~ FHGridComponentN ~ res_columns ~ res_columns:', forza);
9493
9485
  if (this.columnDefs == null) {
9494
9486
  setTimeout(() => {
9495
9487
  this.res_columns(forza);
@@ -9506,69 +9498,35 @@ class FHGridComponent {
9506
9498
  let b_rip = false;
9507
9499
  if (this.toggle_mantieni != null)
9508
9500
  b_mantieni_ck = this.toggle_mantieni.checked;
9509
- if (localStorage.getItem(this.grid_key + '_COLS') == null ||
9510
- localStorage.getItem(this.grid_key + '_COLS') == '') {
9501
+ if ((localStorage.getItem(this.grid_key + '_COLS') || '') == '') {
9511
9502
  this.set_init_size();
9512
9503
  return;
9513
9504
  }
9514
- if (localStorage.getItem(this.grid_key + '_COLS') != null &&
9515
- (b_mantieni_ck || forza)) {
9516
- // console.log('qqqqq1111');
9517
- if (localStorage.getItem(this.grid_key + '_COLS') != '') {
9518
- b_rip = true;
9519
- // console.log('qqqqq2222');
9520
- try {
9521
- let a = JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '[]');
9522
- let annulla = true;
9523
- for (let i = 0; i < a.length; i++) {
9524
- if (!a[i].hide)
9525
- annulla = false;
9526
- }
9527
- // console.log('qqqqq3333 ',annulla);
9528
- if (annulla)
9529
- localStorage.getItem(this.grid_key + '_COLS');
9530
- else {
9531
- // console.log('qqqqq4444');
9532
- if (localStorage.getItem(this.grid_key + '_COLS'))
9533
- if (this.gridApi) {
9534
- // console.log('qqqqq5555',JSON.parse(localStorage.getItem(this.grid_key + '_COLS')||'{}'));
9535
- let colState = {
9536
- state: JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '{}'),
9537
- };
9538
- this.gridApi.applyColumnState(colState);
9539
- }
9540
- }
9505
+ if (b_mantieni_ck || forza) {
9506
+ b_rip = true;
9507
+ try {
9508
+ let a = JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '[]');
9509
+ let annulla = true;
9510
+ for (let i = 0; i < a.length; i++) {
9511
+ if (!a[i].hide)
9512
+ annulla = false;
9541
9513
  }
9542
- catch (eer) {
9543
- console.log(eer);
9514
+ if (annulla)
9515
+ localStorage.getItem(this.grid_key + '_COLS');
9516
+ else {
9517
+ if (localStorage.getItem(this.grid_key + '_COLS'))
9518
+ if (this.gridApi) {
9519
+ let colState = {
9520
+ state: JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '{}'),
9521
+ };
9522
+ this.gridApi.applyColumnState(colState);
9523
+ }
9544
9524
  }
9545
9525
  }
9546
- }
9547
- /* try {
9548
- this.gridApi.setSortModel(null);
9549
- } catch (eer) {
9550
- console.log(eer);
9551
- }
9552
- if (
9553
- localStorage.getItem(this.grid_key + "_SORT") != null &&
9554
- (b_mantieni_ck || forza)
9555
- )
9556
- if (localStorage.getItem(this.grid_key + "_SORT") != "") {
9557
- // console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
9558
- // console.log(localStorage.getItem(this.grid_key+'_SORT'));
9559
- try {
9560
- this.gridApi.setSortModel(
9561
- JSON.parse(localStorage.getItem(this.grid_key + "_SORT"))
9562
- );
9563
- } catch (eer) {
9564
- console.log(eer);
9526
+ catch (eer) {
9527
+ console.log(eer);
9565
9528
  }
9566
- }
9567
- try {
9568
- this.gridApi.setFilterModel(null);
9569
- } catch (eer) {
9570
- console.log(eer);
9571
- }*/
9529
+ }
9572
9530
  if (localStorage.getItem(this.grid_key + '_FILTER') != null &&
9573
9531
  (b_mantieni_ck || forza))
9574
9532
  if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
@@ -9758,7 +9716,7 @@ class FHGridComponent {
9758
9716
  if (!this.b_init)
9759
9717
  return;
9760
9718
  if (this.b_init) {
9761
- // console.log('salvo f: '+JSON.stringify(this.gridApi.getColumnState()));
9719
+ console.log('salvo f: ' + this.gridApi.getColumnState());
9762
9720
  if (this.gridApi)
9763
9721
  localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
9764
9722
  }
@@ -9779,7 +9737,7 @@ class FHGridComponent {
9779
9737
  // console.log('onBeforeSortChanged');
9780
9738
  }
9781
9739
  onAfterSortChanged() {
9782
- // console.log('onAfterSortChanged');
9740
+ console.log('salvo f: ' + this.gridApi.getColumnState());
9783
9741
  if (this.no_pref)
9784
9742
  return;
9785
9743
  if (this.b_init) {