@fluxhub/fluxhub-lib 10.0.106 → 10.0.108

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