@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.
@@ -8018,16 +8018,16 @@ class FHGridComponent {
8018
8018
  if (this.curr_config == "-1")
8019
8019
  return;
8020
8020
  localStorage.removeItem(this.grid_key + "_COLS");
8021
- localStorage.removeItem(this.grid_key + "_SORT");
8021
+ // localStorage.removeItem(this.grid_key + "_SORT");
8022
8022
  localStorage.removeItem(this.grid_key + "_FILTER");
8023
8023
  localStorage.removeItem(this.grid_key + "_CFG_DEFAULT");
8024
8024
  localStorage.removeItem(this.grid_key + "_FILTER_UP");
8025
8025
  if (this.gf.getObj().COL != null)
8026
8026
  if (this.gf.getObj().COL != "")
8027
8027
  localStorage.setItem(this.grid_key + "_COLS", this.gf.getObj().COL);
8028
- if (this.gf.getObj().SORT != null)
8029
- if (this.gf.getObj().SORT != "")
8030
- localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
8028
+ // if (this.gf.getObj().SORT != null)
8029
+ // if (this.gf.getObj().SORT != "")
8030
+ // localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
8031
8031
  if (this.gf.getObj().FILTER != null)
8032
8032
  if (this.gf.getObj().FILTER != "")
8033
8033
  localStorage.setItem(this.grid_key + "_FILTER", this.gf.getObj().FILTER);
@@ -8089,12 +8089,12 @@ class FHGridComponent {
8089
8089
  let p = new QParam();
8090
8090
  p.sql = "INSERT_UPDATE_CFG_GRID";
8091
8091
  let p_col = "";
8092
- let p_sort = "";
8092
+ // let p_sort: string = "";
8093
8093
  let p_filter = "";
8094
8094
  if (localStorage.getItem(this.grid_key + "_COLS") != null)
8095
8095
  p_col = localStorage.getItem(this.grid_key + "_COLS");
8096
- if (localStorage.getItem(this.grid_key + "_SORT") != null)
8097
- p_sort = localStorage.getItem(this.grid_key + "_SORT");
8096
+ // if (localStorage.getItem(this.grid_key + "_SORT") != null)
8097
+ // p_sort = localStorage.getItem(this.grid_key + "_SORT");
8098
8098
  if (localStorage.getItem(this.grid_key + "_FILTER") != null)
8099
8099
  p_filter = localStorage.getItem(this.grid_key + "_FILTER");
8100
8100
  p.types = ["string", "string", "string", "string", "string", "string"];
@@ -8146,12 +8146,12 @@ class FHGridComponent {
8146
8146
  let p = new QParam();
8147
8147
  p.sql = "INSERT_UPDATE_CFG_GRID";
8148
8148
  let p_col = "";
8149
- let p_sort = "";
8149
+ // let p_sort: string = "";
8150
8150
  let p_filter = "";
8151
8151
  if (localStorage.getItem(this.grid_key + "_COLS") != null)
8152
8152
  p_col = localStorage.getItem(this.grid_key + "_COLS");
8153
- if (localStorage.getItem(this.grid_key + "_SORT") != null)
8154
- p_sort = localStorage.getItem(this.grid_key + "_SORT");
8153
+ // if (localStorage.getItem(this.grid_key + "_SORT") != null)
8154
+ // p_sort = localStorage.getItem(this.grid_key + "_SORT");
8155
8155
  if (localStorage.getItem(this.grid_key + "_FILTER") != null)
8156
8156
  p_filter = localStorage.getItem(this.grid_key + "_FILTER");
8157
8157
  p.types = [
@@ -8831,30 +8831,31 @@ class FHGridComponent {
8831
8831
  console.log(eer);
8832
8832
  }
8833
8833
  }
8834
- try {
8834
+ /* try {
8835
8835
  this.gridOptions.api.setSortModel(null);
8836
- }
8837
- catch (eer) {
8836
+ } catch (eer) {
8838
8837
  console.log(eer);
8839
- }
8840
- if (localStorage.getItem(this.grid_key + "_SORT") != null &&
8841
- (b_mantieni_ck || forza))
8838
+ }
8839
+ if (
8840
+ localStorage.getItem(this.grid_key + "_SORT") != null &&
8841
+ (b_mantieni_ck || forza)
8842
+ )
8842
8843
  if (localStorage.getItem(this.grid_key + "_SORT") != "") {
8843
- // console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
8844
- // console.log(localStorage.getItem(this.grid_key+'_SORT'));
8845
- try {
8846
- this.gridOptions.api.setSortModel(JSON.parse(localStorage.getItem(this.grid_key + "_SORT")));
8847
- }
8848
- catch (eer) {
8849
- console.log(eer);
8850
- }
8844
+ // console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
8845
+ // console.log(localStorage.getItem(this.grid_key+'_SORT'));
8846
+ try {
8847
+ this.gridOptions.api.setSortModel(
8848
+ JSON.parse(localStorage.getItem(this.grid_key + "_SORT"))
8849
+ );
8850
+ } catch (eer) {
8851
+ console.log(eer);
8852
+ }
8851
8853
  }
8852
- try {
8854
+ try {
8853
8855
  this.gridOptions.api.setFilterModel(null);
8854
- }
8855
- catch (eer) {
8856
+ } catch (eer) {
8856
8857
  console.log(eer);
8857
- }
8858
+ }*/
8858
8859
  if (localStorage.getItem(this.grid_key + "_FILTER") != null &&
8859
8860
  (b_mantieni_ck || forza))
8860
8861
  if (localStorage.getItem(this.grid_key + "_FILTER") != "") {
@@ -8925,7 +8926,7 @@ class FHGridComponent {
8925
8926
  if (localStorage.getItem(this.grid_key + "_MANTIENI") != "NO") {
8926
8927
  this.gf.setByDescri(localStorage.getItem(this.grid_key + "_CFG_DEFAULT"));
8927
8928
  localStorage.setItem(this.grid_key + "_COLS", this.gf.getObj().COLS);
8928
- localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
8929
+ // localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
8929
8930
  localStorage.setItem(this.grid_key + "_FILTER", this.gf.getObj().FILTER);
8930
8931
  this.curr_config = this.gf.getValue();
8931
8932
  }
@@ -9037,9 +9038,14 @@ class FHGridComponent {
9037
9038
  if (this.no_pref)
9038
9039
  return;
9039
9040
  if (this.b_init) {
9040
- // localStorage.setItem(this.grid_key + "_COLS", JSON.stringify(this.gridOptions.columnApi.getColumnState()));
9041
+ localStorage.setItem(this.grid_key + "_COLS", JSON.stringify(this.gridOptions.columnApi.getColumnState()));
9041
9042
  // console.log('salvo s: '+this.gridOptions.api.getSortModel());
9042
- localStorage.setItem(this.grid_key + "_SORT", JSON.stringify(this.gridOptions.api.getSortModel()));
9043
+ /*
9044
+
9045
+ localStorage.setItem(
9046
+ this.grid_key + "_SORT",
9047
+ JSON.stringify(this.gridOptions.api.getSortModel())
9048
+ );*/
9043
9049
  }
9044
9050
  }
9045
9051
  onVirtualRowRemoved($event) {