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