@fluxhub/fluxhub-lib 11.0.31 → 11.0.33
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 +13 -9
- 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 +14 -10
- package/fesm2015/fluxhub-fluxhub-lib.js +13 -9
- 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
|
@@ -7084,6 +7084,9 @@ class FHGridComponent {
|
|
|
7084
7084
|
}
|
|
7085
7085
|
});
|
|
7086
7086
|
}
|
|
7087
|
+
prepare_filter(s) {
|
|
7088
|
+
return s.split("'").join("$''").split("*").join("$*").split("?").join("$?").split("[").join("$[").split("]").join("$]").split("!").join("!$").toUpperCase();
|
|
7089
|
+
}
|
|
7087
7090
|
calcola_filtro(obj_filtro, filter_v, key, add_end = true) {
|
|
7088
7091
|
console.log('calcola_filtro ', key, add_end);
|
|
7089
7092
|
let b_filter = false;
|
|
@@ -7125,7 +7128,7 @@ class FHGridComponent {
|
|
|
7125
7128
|
" upper(" +
|
|
7126
7129
|
key +
|
|
7127
7130
|
") like '%" +
|
|
7128
|
-
obj_filtro.filter
|
|
7131
|
+
this.prepare_filter(obj_filtro.filter) +
|
|
7129
7132
|
"%' ESCAPE '$'";
|
|
7130
7133
|
if (obj_filtro.type == "startsWith")
|
|
7131
7134
|
filter_v =
|
|
@@ -7133,7 +7136,7 @@ class FHGridComponent {
|
|
|
7133
7136
|
" upper(" +
|
|
7134
7137
|
key +
|
|
7135
7138
|
") like '" +
|
|
7136
|
-
obj_filtro.filter
|
|
7139
|
+
this.prepare_filter(obj_filtro.filter) +
|
|
7137
7140
|
"%' ESCAPE '$'";
|
|
7138
7141
|
if (obj_filtro.type == "equals")
|
|
7139
7142
|
filter_v =
|
|
@@ -7149,7 +7152,7 @@ class FHGridComponent {
|
|
|
7149
7152
|
"not upper(" +
|
|
7150
7153
|
key +
|
|
7151
7154
|
") like '%" +
|
|
7152
|
-
obj_filtro.filter
|
|
7155
|
+
this.prepare_filter(obj_filtro.filter) +
|
|
7153
7156
|
"%' ESCAPE '$'";
|
|
7154
7157
|
if (obj_filtro.type == "notEqual")
|
|
7155
7158
|
filter_v =
|
|
@@ -7165,7 +7168,7 @@ class FHGridComponent {
|
|
|
7165
7168
|
" upper(" +
|
|
7166
7169
|
key +
|
|
7167
7170
|
") like '%" +
|
|
7168
|
-
|
|
7171
|
+
this.prepare_filter(obj_filtro.filter) +
|
|
7169
7172
|
"' ESCAPE '$'";
|
|
7170
7173
|
// if(obj_filtro.type=="startsWith") filter_v = filter_v +' upper('+ key + ') like \'' + obj_filtro.filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
7171
7174
|
}
|
|
@@ -7696,7 +7699,7 @@ class FHGridComponent {
|
|
|
7696
7699
|
ss_r +=
|
|
7697
7700
|
this.columnDefs[y].field +
|
|
7698
7701
|
" LIKE '%" +
|
|
7699
|
-
(arr_F[i])
|
|
7702
|
+
this.prepare_filter(arr_F[i]) +
|
|
7700
7703
|
"%' ESCAPE '$'";
|
|
7701
7704
|
}
|
|
7702
7705
|
}
|
|
@@ -7709,7 +7712,7 @@ class FHGridComponent {
|
|
|
7709
7712
|
ss_r +=
|
|
7710
7713
|
v +
|
|
7711
7714
|
" LIKE '%" +
|
|
7712
|
-
(arr_F[i])
|
|
7715
|
+
this.prepare_filter(arr_F[i]) +
|
|
7713
7716
|
"%' ESCAPE '$'";
|
|
7714
7717
|
}
|
|
7715
7718
|
});
|
|
@@ -7951,7 +7954,7 @@ class FHGridComponent {
|
|
|
7951
7954
|
ss_r +=
|
|
7952
7955
|
this.columnDefs[y].field +
|
|
7953
7956
|
" LIKE '%" +
|
|
7954
|
-
(arr_F[i])
|
|
7957
|
+
this.prepare_filter(arr_F[i]) +
|
|
7955
7958
|
"%' ESCAPE '$'";
|
|
7956
7959
|
}
|
|
7957
7960
|
}
|
|
@@ -7964,8 +7967,9 @@ class FHGridComponent {
|
|
|
7964
7967
|
ss_r +=
|
|
7965
7968
|
v +
|
|
7966
7969
|
" LIKE '%" +
|
|
7967
|
-
(arr_F[i])
|
|
7968
|
-
|
|
7970
|
+
this.prepare_filter(arr_F[i])
|
|
7971
|
+
+
|
|
7972
|
+
"%' ESCAPE '$'";
|
|
7969
7973
|
}
|
|
7970
7974
|
});
|
|
7971
7975
|
if (ss_r != '') {
|