@fluxhub/fluxhub-lib 10.0.106 → 10.0.107

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.
@@ -5373,16 +5373,16 @@
5373
5373
  if (this.curr_config == "-1")
5374
5374
  return;
5375
5375
  localStorage.removeItem(this.grid_key + "_COLS");
5376
- localStorage.removeItem(this.grid_key + "_SORT");
5376
+ // localStorage.removeItem(this.grid_key + "_SORT");
5377
5377
  localStorage.removeItem(this.grid_key + "_FILTER");
5378
5378
  localStorage.removeItem(this.grid_key + "_CFG_DEFAULT");
5379
5379
  localStorage.removeItem(this.grid_key + "_FILTER_UP");
5380
5380
  if (this.gf.getObj().COL != null)
5381
5381
  if (this.gf.getObj().COL != "")
5382
5382
  localStorage.setItem(this.grid_key + "_COLS", this.gf.getObj().COL);
5383
- if (this.gf.getObj().SORT != null)
5384
- if (this.gf.getObj().SORT != "")
5385
- localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
5383
+ // if (this.gf.getObj().SORT != null)
5384
+ // if (this.gf.getObj().SORT != "")
5385
+ // localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
5386
5386
  if (this.gf.getObj().FILTER != null)
5387
5387
  if (this.gf.getObj().FILTER != "")
5388
5388
  localStorage.setItem(this.grid_key + "_FILTER", this.gf.getObj().FILTER);
@@ -5446,12 +5446,12 @@
5446
5446
  var p = new QParam();
5447
5447
  p.sql = "INSERT_UPDATE_CFG_GRID";
5448
5448
  var p_col = "";
5449
- var p_sort = "";
5449
+ // let p_sort: string = "";
5450
5450
  var p_filter = "";
5451
5451
  if (localStorage.getItem(_this.grid_key + "_COLS") != null)
5452
5452
  p_col = localStorage.getItem(_this.grid_key + "_COLS");
5453
- if (localStorage.getItem(_this.grid_key + "_SORT") != null)
5454
- p_sort = localStorage.getItem(_this.grid_key + "_SORT");
5453
+ // if (localStorage.getItem(this.grid_key + "_SORT") != null)
5454
+ // p_sort = localStorage.getItem(this.grid_key + "_SORT");
5455
5455
  if (localStorage.getItem(_this.grid_key + "_FILTER") != null)
5456
5456
  p_filter = localStorage.getItem(_this.grid_key + "_FILTER");
5457
5457
  p.types = ["string", "string", "string", "string", "string", "string"];
@@ -5459,7 +5459,7 @@
5459
5459
  _this.gf.getDescri(),
5460
5460
  _this.grid_key,
5461
5461
  p_col,
5462
- p_sort,
5462
+ '',
5463
5463
  p_filter,
5464
5464
  _this.m_appService.user,
5465
5465
  ];
@@ -5504,12 +5504,12 @@
5504
5504
  var p = new QParam();
5505
5505
  p.sql = "INSERT_UPDATE_CFG_GRID";
5506
5506
  var p_col = "";
5507
- var p_sort = "";
5507
+ // let p_sort: string = "";
5508
5508
  var p_filter = "";
5509
5509
  if (localStorage.getItem(_this.grid_key + "_COLS") != null)
5510
5510
  p_col = localStorage.getItem(_this.grid_key + "_COLS");
5511
- if (localStorage.getItem(_this.grid_key + "_SORT") != null)
5512
- p_sort = localStorage.getItem(_this.grid_key + "_SORT");
5511
+ // if (localStorage.getItem(this.grid_key + "_SORT") != null)
5512
+ // p_sort = localStorage.getItem(this.grid_key + "_SORT");
5513
5513
  if (localStorage.getItem(_this.grid_key + "_FILTER") != null)
5514
5514
  p_filter = localStorage.getItem(_this.grid_key + "_FILTER");
5515
5515
  p.types = [
@@ -5524,7 +5524,7 @@
5524
5524
  result,
5525
5525
  _this.grid_key,
5526
5526
  p_col,
5527
- p_sort,
5527
+ '',
5528
5528
  p_filter,
5529
5529
  _this.m_appService.user,
5530
5530
  ];
@@ -6177,30 +6177,31 @@
6177
6177
  console.log(eer);
6178
6178
  }
6179
6179
  }
6180
- try {
6180
+ /* try {
6181
6181
  this.gridOptions.api.setSortModel(null);
6182
- }
6183
- catch (eer) {
6182
+ } catch (eer) {
6184
6183
  console.log(eer);
6185
- }
6186
- if (localStorage.getItem(this.grid_key + "_SORT") != null &&
6187
- (b_mantieni_ck || forza))
6184
+ }
6185
+ if (
6186
+ localStorage.getItem(this.grid_key + "_SORT") != null &&
6187
+ (b_mantieni_ck || forza)
6188
+ )
6188
6189
  if (localStorage.getItem(this.grid_key + "_SORT") != "") {
6189
- // console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
6190
- // console.log(localStorage.getItem(this.grid_key+'_SORT'));
6191
- try {
6192
- this.gridOptions.api.setSortModel(JSON.parse(localStorage.getItem(this.grid_key + "_SORT")));
6193
- }
6194
- catch (eer) {
6195
- console.log(eer);
6196
- }
6190
+ // console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
6191
+ // console.log(localStorage.getItem(this.grid_key+'_SORT'));
6192
+ try {
6193
+ this.gridOptions.api.setSortModel(
6194
+ JSON.parse(localStorage.getItem(this.grid_key + "_SORT"))
6195
+ );
6196
+ } catch (eer) {
6197
+ console.log(eer);
6198
+ }
6197
6199
  }
6198
- try {
6200
+ try {
6199
6201
  this.gridOptions.api.setFilterModel(null);
6200
- }
6201
- catch (eer) {
6202
+ } catch (eer) {
6202
6203
  console.log(eer);
6203
- }
6204
+ }*/
6204
6205
  if (localStorage.getItem(this.grid_key + "_FILTER") != null &&
6205
6206
  (b_mantieni_ck || forza))
6206
6207
  if (localStorage.getItem(this.grid_key + "_FILTER") != "") {
@@ -6272,7 +6273,7 @@
6272
6273
  if (localStorage.getItem(this.grid_key + "_MANTIENI") != "NO") {
6273
6274
  this.gf.setByDescri(localStorage.getItem(this.grid_key + "_CFG_DEFAULT"));
6274
6275
  localStorage.setItem(this.grid_key + "_COL", this.gf.getObj().COLS);
6275
- localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
6276
+ // localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
6276
6277
  localStorage.setItem(this.grid_key + "_FILTER", this.gf.getObj().FILTER);
6277
6278
  this.curr_config = this.gf.getValue();
6278
6279
  }
@@ -6389,8 +6390,14 @@
6389
6390
  if (this.no_pref)
6390
6391
  return;
6391
6392
  if (this.b_init) {
6393
+ localStorage.setItem(this.grid_key + "_COL", JSON.stringify(this.gridOptions.columnApi.getColumnState()));
6392
6394
  // console.log('salvo s: '+this.gridOptions.api.getSortModel());
6393
- localStorage.setItem(this.grid_key + "_SORT", JSON.stringify(this.gridOptions.api.getSortModel()));
6395
+ /*
6396
+
6397
+ localStorage.setItem(
6398
+ this.grid_key + "_SORT",
6399
+ JSON.stringify(this.gridOptions.api.getSortModel())
6400
+ );*/
6394
6401
  }
6395
6402
  };
6396
6403
  FHGridComponent.prototype.onVirtualRowRemoved = function ($event) {