@fluxhub/fluxhub-lib 11.0.31 → 11.0.32
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
|
@@ -6302,6 +6302,9 @@
|
|
|
6302
6302
|
}
|
|
6303
6303
|
});
|
|
6304
6304
|
};
|
|
6305
|
+
FHGridComponent.prototype.prepare_filter = function (s) {
|
|
6306
|
+
return s.split("'").join("$'").split("*").join("$*").split("?").join("$?").split("[").join("$[").split("]").join("$]").split("!").join("!$").toUpperCase();
|
|
6307
|
+
};
|
|
6305
6308
|
FHGridComponent.prototype.calcola_filtro = function (obj_filtro, filter_v, key, add_end) {
|
|
6306
6309
|
if (add_end === void 0) { add_end = true; }
|
|
6307
6310
|
console.log('calcola_filtro ', key, add_end);
|
|
@@ -6344,7 +6347,7 @@
|
|
|
6344
6347
|
" upper(" +
|
|
6345
6348
|
key +
|
|
6346
6349
|
") like '%" +
|
|
6347
|
-
obj_filtro.filter
|
|
6350
|
+
this.prepare_filter(obj_filtro.filter) +
|
|
6348
6351
|
"%' ESCAPE '$'";
|
|
6349
6352
|
if (obj_filtro.type == "startsWith")
|
|
6350
6353
|
filter_v =
|
|
@@ -6352,7 +6355,7 @@
|
|
|
6352
6355
|
" upper(" +
|
|
6353
6356
|
key +
|
|
6354
6357
|
") like '" +
|
|
6355
|
-
obj_filtro.filter
|
|
6358
|
+
this.prepare_filter(obj_filtro.filter) +
|
|
6356
6359
|
"%' ESCAPE '$'";
|
|
6357
6360
|
if (obj_filtro.type == "equals")
|
|
6358
6361
|
filter_v =
|
|
@@ -6368,7 +6371,7 @@
|
|
|
6368
6371
|
"not upper(" +
|
|
6369
6372
|
key +
|
|
6370
6373
|
") like '%" +
|
|
6371
|
-
obj_filtro.filter
|
|
6374
|
+
this.prepare_filter(obj_filtro.filter) +
|
|
6372
6375
|
"%' ESCAPE '$'";
|
|
6373
6376
|
if (obj_filtro.type == "notEqual")
|
|
6374
6377
|
filter_v =
|
|
@@ -6384,7 +6387,7 @@
|
|
|
6384
6387
|
" upper(" +
|
|
6385
6388
|
key +
|
|
6386
6389
|
") like '%" +
|
|
6387
|
-
|
|
6390
|
+
this.prepare_filter(obj_filtro.filter) +
|
|
6388
6391
|
"' ESCAPE '$'";
|
|
6389
6392
|
// if(obj_filtro.type=="startsWith") filter_v = filter_v +' upper('+ key + ') like \'' + obj_filtro.filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
6390
6393
|
}
|
|
@@ -6923,7 +6926,7 @@
|
|
|
6923
6926
|
ss_r +=
|
|
6924
6927
|
this_1.columnDefs[y].field +
|
|
6925
6928
|
" LIKE '%" +
|
|
6926
|
-
(arr_F_1[i])
|
|
6929
|
+
this_1.prepare_filter(arr_F_1[i]) +
|
|
6927
6930
|
"%' ESCAPE '$'";
|
|
6928
6931
|
}
|
|
6929
6932
|
}
|
|
@@ -6936,7 +6939,7 @@
|
|
|
6936
6939
|
ss_r +=
|
|
6937
6940
|
v +
|
|
6938
6941
|
" LIKE '%" +
|
|
6939
|
-
(arr_F_1[i])
|
|
6942
|
+
_this.prepare_filter(arr_F_1[i]) +
|
|
6940
6943
|
"%' ESCAPE '$'";
|
|
6941
6944
|
}
|
|
6942
6945
|
});
|
|
@@ -7188,7 +7191,7 @@
|
|
|
7188
7191
|
ss_r +=
|
|
7189
7192
|
this_2.columnDefs[y].field +
|
|
7190
7193
|
" LIKE '%" +
|
|
7191
|
-
(arr_F[i])
|
|
7194
|
+
this_2.prepare_filter(arr_F[i]) +
|
|
7192
7195
|
"%' ESCAPE '$'";
|
|
7193
7196
|
}
|
|
7194
7197
|
}
|
|
@@ -7201,8 +7204,9 @@
|
|
|
7201
7204
|
ss_r +=
|
|
7202
7205
|
v +
|
|
7203
7206
|
" LIKE '%" +
|
|
7204
|
-
(arr_F[i])
|
|
7205
|
-
|
|
7207
|
+
_this.prepare_filter(arr_F[i])
|
|
7208
|
+
+
|
|
7209
|
+
"%' ESCAPE '$'";
|
|
7206
7210
|
}
|
|
7207
7211
|
});
|
|
7208
7212
|
if (ss_r != '') {
|