@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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +39 -32
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhgrid.js +40 -33
- package/fesm2015/fluxhub-fluxhub-lib.js +39 -32
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -7945,16 +7945,16 @@ class FHGridComponent {
|
|
|
7945
7945
|
if (this.curr_config == "-1")
|
|
7946
7946
|
return;
|
|
7947
7947
|
localStorage.removeItem(this.grid_key + "_COLS");
|
|
7948
|
-
localStorage.removeItem(this.grid_key + "_SORT");
|
|
7948
|
+
// localStorage.removeItem(this.grid_key + "_SORT");
|
|
7949
7949
|
localStorage.removeItem(this.grid_key + "_FILTER");
|
|
7950
7950
|
localStorage.removeItem(this.grid_key + "_CFG_DEFAULT");
|
|
7951
7951
|
localStorage.removeItem(this.grid_key + "_FILTER_UP");
|
|
7952
7952
|
if (this.gf.getObj().COL != null)
|
|
7953
7953
|
if (this.gf.getObj().COL != "")
|
|
7954
7954
|
localStorage.setItem(this.grid_key + "_COLS", this.gf.getObj().COL);
|
|
7955
|
-
if (this.gf.getObj().SORT != null)
|
|
7956
|
-
|
|
7957
|
-
|
|
7955
|
+
// if (this.gf.getObj().SORT != null)
|
|
7956
|
+
// if (this.gf.getObj().SORT != "")
|
|
7957
|
+
// localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
|
|
7958
7958
|
if (this.gf.getObj().FILTER != null)
|
|
7959
7959
|
if (this.gf.getObj().FILTER != "")
|
|
7960
7960
|
localStorage.setItem(this.grid_key + "_FILTER", this.gf.getObj().FILTER);
|
|
@@ -8016,12 +8016,12 @@ class FHGridComponent {
|
|
|
8016
8016
|
let p = new QParam();
|
|
8017
8017
|
p.sql = "INSERT_UPDATE_CFG_GRID";
|
|
8018
8018
|
let p_col = "";
|
|
8019
|
-
let p_sort = "";
|
|
8019
|
+
// let p_sort: string = "";
|
|
8020
8020
|
let p_filter = "";
|
|
8021
8021
|
if (localStorage.getItem(this.grid_key + "_COLS") != null)
|
|
8022
8022
|
p_col = localStorage.getItem(this.grid_key + "_COLS");
|
|
8023
|
-
if (localStorage.getItem(this.grid_key + "_SORT") != null)
|
|
8024
|
-
|
|
8023
|
+
// if (localStorage.getItem(this.grid_key + "_SORT") != null)
|
|
8024
|
+
// p_sort = localStorage.getItem(this.grid_key + "_SORT");
|
|
8025
8025
|
if (localStorage.getItem(this.grid_key + "_FILTER") != null)
|
|
8026
8026
|
p_filter = localStorage.getItem(this.grid_key + "_FILTER");
|
|
8027
8027
|
p.types = ["string", "string", "string", "string", "string", "string"];
|
|
@@ -8029,7 +8029,7 @@ class FHGridComponent {
|
|
|
8029
8029
|
this.gf.getDescri(),
|
|
8030
8030
|
this.grid_key,
|
|
8031
8031
|
p_col,
|
|
8032
|
-
|
|
8032
|
+
'',
|
|
8033
8033
|
p_filter,
|
|
8034
8034
|
this.m_appService.user,
|
|
8035
8035
|
];
|
|
@@ -8073,12 +8073,12 @@ class FHGridComponent {
|
|
|
8073
8073
|
let p = new QParam();
|
|
8074
8074
|
p.sql = "INSERT_UPDATE_CFG_GRID";
|
|
8075
8075
|
let p_col = "";
|
|
8076
|
-
let p_sort = "";
|
|
8076
|
+
// let p_sort: string = "";
|
|
8077
8077
|
let p_filter = "";
|
|
8078
8078
|
if (localStorage.getItem(this.grid_key + "_COLS") != null)
|
|
8079
8079
|
p_col = localStorage.getItem(this.grid_key + "_COLS");
|
|
8080
|
-
if (localStorage.getItem(this.grid_key + "_SORT") != null)
|
|
8081
|
-
|
|
8080
|
+
// if (localStorage.getItem(this.grid_key + "_SORT") != null)
|
|
8081
|
+
// p_sort = localStorage.getItem(this.grid_key + "_SORT");
|
|
8082
8082
|
if (localStorage.getItem(this.grid_key + "_FILTER") != null)
|
|
8083
8083
|
p_filter = localStorage.getItem(this.grid_key + "_FILTER");
|
|
8084
8084
|
p.types = [
|
|
@@ -8093,7 +8093,7 @@ class FHGridComponent {
|
|
|
8093
8093
|
result,
|
|
8094
8094
|
this.grid_key,
|
|
8095
8095
|
p_col,
|
|
8096
|
-
|
|
8096
|
+
'',
|
|
8097
8097
|
p_filter,
|
|
8098
8098
|
this.m_appService.user,
|
|
8099
8099
|
];
|
|
@@ -8735,30 +8735,31 @@ class FHGridComponent {
|
|
|
8735
8735
|
console.log(eer);
|
|
8736
8736
|
}
|
|
8737
8737
|
}
|
|
8738
|
-
try {
|
|
8738
|
+
/* try {
|
|
8739
8739
|
this.gridOptions.api.setSortModel(null);
|
|
8740
|
-
|
|
8741
|
-
catch (eer) {
|
|
8740
|
+
} catch (eer) {
|
|
8742
8741
|
console.log(eer);
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
(
|
|
8742
|
+
}
|
|
8743
|
+
if (
|
|
8744
|
+
localStorage.getItem(this.grid_key + "_SORT") != null &&
|
|
8745
|
+
(b_mantieni_ck || forza)
|
|
8746
|
+
)
|
|
8746
8747
|
if (localStorage.getItem(this.grid_key + "_SORT") != "") {
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8748
|
+
// console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
|
|
8749
|
+
// console.log(localStorage.getItem(this.grid_key+'_SORT'));
|
|
8750
|
+
try {
|
|
8751
|
+
this.gridOptions.api.setSortModel(
|
|
8752
|
+
JSON.parse(localStorage.getItem(this.grid_key + "_SORT"))
|
|
8753
|
+
);
|
|
8754
|
+
} catch (eer) {
|
|
8755
|
+
console.log(eer);
|
|
8756
|
+
}
|
|
8755
8757
|
}
|
|
8756
|
-
|
|
8758
|
+
try {
|
|
8757
8759
|
this.gridOptions.api.setFilterModel(null);
|
|
8758
|
-
|
|
8759
|
-
catch (eer) {
|
|
8760
|
+
} catch (eer) {
|
|
8760
8761
|
console.log(eer);
|
|
8761
|
-
|
|
8762
|
+
}*/
|
|
8762
8763
|
if (localStorage.getItem(this.grid_key + "_FILTER") != null &&
|
|
8763
8764
|
(b_mantieni_ck || forza))
|
|
8764
8765
|
if (localStorage.getItem(this.grid_key + "_FILTER") != "") {
|
|
@@ -8829,7 +8830,7 @@ class FHGridComponent {
|
|
|
8829
8830
|
if (localStorage.getItem(this.grid_key + "_MANTIENI") != "NO") {
|
|
8830
8831
|
this.gf.setByDescri(localStorage.getItem(this.grid_key + "_CFG_DEFAULT"));
|
|
8831
8832
|
localStorage.setItem(this.grid_key + "_COL", this.gf.getObj().COLS);
|
|
8832
|
-
localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
|
|
8833
|
+
// localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
|
|
8833
8834
|
localStorage.setItem(this.grid_key + "_FILTER", this.gf.getObj().FILTER);
|
|
8834
8835
|
this.curr_config = this.gf.getValue();
|
|
8835
8836
|
}
|
|
@@ -8944,8 +8945,14 @@ class FHGridComponent {
|
|
|
8944
8945
|
if (this.no_pref)
|
|
8945
8946
|
return;
|
|
8946
8947
|
if (this.b_init) {
|
|
8948
|
+
localStorage.setItem(this.grid_key + "_COL", JSON.stringify(this.gridOptions.columnApi.getColumnState()));
|
|
8947
8949
|
// console.log('salvo s: '+this.gridOptions.api.getSortModel());
|
|
8948
|
-
|
|
8950
|
+
/*
|
|
8951
|
+
|
|
8952
|
+
localStorage.setItem(
|
|
8953
|
+
this.grid_key + "_SORT",
|
|
8954
|
+
JSON.stringify(this.gridOptions.api.getSortModel())
|
|
8955
|
+
);*/
|
|
8949
8956
|
}
|
|
8950
8957
|
}
|
|
8951
8958
|
onVirtualRowRemoved($event) {
|