@fluxhub/fluxhub-lib 10.0.170 → 10.0.171

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.
@@ -5434,16 +5434,16 @@
5434
5434
  if (this.curr_config == "-1")
5435
5435
  return;
5436
5436
  localStorage.removeItem(this.grid_key + "_COLS");
5437
- localStorage.removeItem(this.grid_key + "_SORT");
5437
+ // localStorage.removeItem(this.grid_key + "_SORT");
5438
5438
  localStorage.removeItem(this.grid_key + "_FILTER");
5439
5439
  localStorage.removeItem(this.grid_key + "_CFG_DEFAULT");
5440
5440
  localStorage.removeItem(this.grid_key + "_FILTER_UP");
5441
5441
  if (this.gf.getObj().COL != null)
5442
5442
  if (this.gf.getObj().COL != "")
5443
5443
  localStorage.setItem(this.grid_key + "_COLS", this.gf.getObj().COL);
5444
- if (this.gf.getObj().SORT != null)
5445
- if (this.gf.getObj().SORT != "")
5446
- localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
5444
+ // if (this.gf.getObj().SORT != null)
5445
+ // if (this.gf.getObj().SORT != "")
5446
+ // localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
5447
5447
  if (this.gf.getObj().FILTER != null)
5448
5448
  if (this.gf.getObj().FILTER != "")
5449
5449
  localStorage.setItem(this.grid_key + "_FILTER", this.gf.getObj().FILTER);
@@ -5507,12 +5507,12 @@
5507
5507
  var p = new QParam();
5508
5508
  p.sql = "INSERT_UPDATE_CFG_GRID";
5509
5509
  var p_col = "";
5510
- var p_sort = "";
5510
+ // let p_sort: string = "";
5511
5511
  var p_filter = "";
5512
5512
  if (localStorage.getItem(_this.grid_key + "_COLS") != null)
5513
5513
  p_col = localStorage.getItem(_this.grid_key + "_COLS");
5514
- if (localStorage.getItem(_this.grid_key + "_SORT") != null)
5515
- p_sort = localStorage.getItem(_this.grid_key + "_SORT");
5514
+ // if (localStorage.getItem(this.grid_key + "_SORT") != null)
5515
+ // p_sort = localStorage.getItem(this.grid_key + "_SORT");
5516
5516
  if (localStorage.getItem(_this.grid_key + "_FILTER") != null)
5517
5517
  p_filter = localStorage.getItem(_this.grid_key + "_FILTER");
5518
5518
  p.types = ["string", "string", "string", "string", "string", "string"];
@@ -5565,12 +5565,12 @@
5565
5565
  var p = new QParam();
5566
5566
  p.sql = "INSERT_UPDATE_CFG_GRID";
5567
5567
  var p_col = "";
5568
- var p_sort = "";
5568
+ // let p_sort: string = "";
5569
5569
  var p_filter = "";
5570
5570
  if (localStorage.getItem(_this.grid_key + "_COLS") != null)
5571
5571
  p_col = localStorage.getItem(_this.grid_key + "_COLS");
5572
- if (localStorage.getItem(_this.grid_key + "_SORT") != null)
5573
- p_sort = localStorage.getItem(_this.grid_key + "_SORT");
5572
+ // if (localStorage.getItem(this.grid_key + "_SORT") != null)
5573
+ // p_sort = localStorage.getItem(this.grid_key + "_SORT");
5574
5574
  if (localStorage.getItem(_this.grid_key + "_FILTER") != null)
5575
5575
  p_filter = localStorage.getItem(_this.grid_key + "_FILTER");
5576
5576
  p.types = [
@@ -6267,30 +6267,31 @@
6267
6267
  console.log(eer);
6268
6268
  }
6269
6269
  }
6270
- try {
6270
+ /* try {
6271
6271
  this.gridOptions.api.setSortModel(null);
6272
- }
6273
- catch (eer) {
6272
+ } catch (eer) {
6274
6273
  console.log(eer);
6275
- }
6276
- if (localStorage.getItem(this.grid_key + "_SORT") != null &&
6277
- (b_mantieni_ck || forza))
6274
+ }
6275
+ if (
6276
+ localStorage.getItem(this.grid_key + "_SORT") != null &&
6277
+ (b_mantieni_ck || forza)
6278
+ )
6278
6279
  if (localStorage.getItem(this.grid_key + "_SORT") != "") {
6279
- // console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
6280
- // console.log(localStorage.getItem(this.grid_key+'_SORT'));
6281
- try {
6282
- this.gridOptions.api.setSortModel(JSON.parse(localStorage.getItem(this.grid_key + "_SORT")));
6283
- }
6284
- catch (eer) {
6285
- console.log(eer);
6286
- }
6280
+ // console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
6281
+ // console.log(localStorage.getItem(this.grid_key+'_SORT'));
6282
+ try {
6283
+ this.gridOptions.api.setSortModel(
6284
+ JSON.parse(localStorage.getItem(this.grid_key + "_SORT"))
6285
+ );
6286
+ } catch (eer) {
6287
+ console.log(eer);
6288
+ }
6287
6289
  }
6288
- try {
6290
+ try {
6289
6291
  this.gridOptions.api.setFilterModel(null);
6290
- }
6291
- catch (eer) {
6292
+ } catch (eer) {
6292
6293
  console.log(eer);
6293
- }
6294
+ }*/
6294
6295
  if (localStorage.getItem(this.grid_key + "_FILTER") != null &&
6295
6296
  (b_mantieni_ck || forza))
6296
6297
  if (localStorage.getItem(this.grid_key + "_FILTER") != "") {
@@ -6362,7 +6363,7 @@
6362
6363
  if (localStorage.getItem(this.grid_key + "_MANTIENI") != "NO") {
6363
6364
  this.gf.setByDescri(localStorage.getItem(this.grid_key + "_CFG_DEFAULT"));
6364
6365
  localStorage.setItem(this.grid_key + "_COLS", this.gf.getObj().COLS);
6365
- localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
6366
+ // localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
6366
6367
  localStorage.setItem(this.grid_key + "_FILTER", this.gf.getObj().FILTER);
6367
6368
  this.curr_config = this.gf.getValue();
6368
6369
  }
@@ -6476,9 +6477,14 @@
6476
6477
  if (this.no_pref)
6477
6478
  return;
6478
6479
  if (this.b_init) {
6479
- // localStorage.setItem(this.grid_key + "_COLS", JSON.stringify(this.gridOptions.columnApi.getColumnState()));
6480
+ localStorage.setItem(this.grid_key + "_COLS", JSON.stringify(this.gridOptions.columnApi.getColumnState()));
6480
6481
  // console.log('salvo s: '+this.gridOptions.api.getSortModel());
6481
- localStorage.setItem(this.grid_key + "_SORT", JSON.stringify(this.gridOptions.api.getSortModel()));
6482
+ /*
6483
+
6484
+ localStorage.setItem(
6485
+ this.grid_key + "_SORT",
6486
+ JSON.stringify(this.gridOptions.api.getSortModel())
6487
+ );*/
6482
6488
  }
6483
6489
  };
6484
6490
  FHGridComponent.prototype.onVirtualRowRemoved = function ($event) {