@fluxhub/fluxhub-lib 10.0.185 → 10.0.187
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 +38 -16
- 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 +33 -16
- package/fesm2015/fluxhub-fluxhub-lib.js +32 -15
- 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
|
@@ -8375,17 +8375,14 @@ class FHGridComponent {
|
|
|
8375
8375
|
}
|
|
8376
8376
|
let num_all = -1;
|
|
8377
8377
|
let countryFilterComponent = this.gridOptions.api.getColumnDef(key);
|
|
8378
|
-
console.log('countryFilterComponent ', countryFilterComponent);
|
|
8379
8378
|
if (countryFilterComponent != null)
|
|
8380
8379
|
if (countryFilterComponent.filterParams != null)
|
|
8381
8380
|
if (countryFilterComponent.filterParams.values != null) {
|
|
8382
8381
|
let model = countryFilterComponent.filterParams.values;
|
|
8383
8382
|
model = model.filter((n, i) => model.indexOf(n) === i);
|
|
8384
|
-
console.log('model ', model);
|
|
8385
8383
|
if (model != null)
|
|
8386
8384
|
num_all = model.length;
|
|
8387
8385
|
}
|
|
8388
|
-
console.log('obj_filtro.values.length!=num_all ', obj_filtro.values.length, num_all);
|
|
8389
8386
|
if (sq != "") {
|
|
8390
8387
|
if (obj_filtro.values.length != num_all) {
|
|
8391
8388
|
b_filter = true;
|
|
@@ -8964,22 +8961,41 @@ class FHGridComponent {
|
|
|
8964
8961
|
if (arr_F.length == 0)
|
|
8965
8962
|
return;
|
|
8966
8963
|
let ss = "";
|
|
8967
|
-
for (let
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8964
|
+
for (let i = 0; i < arr_F.length; i++) {
|
|
8965
|
+
let ss_r = "";
|
|
8966
|
+
for (let y = 0; y < this.columnDefs.length; y++)
|
|
8967
|
+
if (this.columnDefs[y] != null)
|
|
8968
|
+
if (this.columnDefs[y].no_filter == null)
|
|
8969
|
+
if (this.columnDefs[y].field != null)
|
|
8970
|
+
if (this.columnDefs[y].field != "")
|
|
8971
|
+
if (this.columnDefs[y].filter != "agDateColumnFilter") {
|
|
8972
|
+
if (ss_r != "")
|
|
8973
|
+
ss_r += " or ";
|
|
8974
|
+
ss_r +=
|
|
8975
|
+
this.columnDefs[y].field +
|
|
8979
8976
|
" LIKE '%" +
|
|
8980
8977
|
this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
8981
8978
|
"%' ESCAPE '$'";
|
|
8982
8979
|
}
|
|
8980
|
+
if (this.full_text_added_columns != null)
|
|
8981
|
+
this.full_text_added_columns.map((v) => {
|
|
8982
|
+
if (v != null)
|
|
8983
|
+
if (v != '') {
|
|
8984
|
+
if (ss_r != "")
|
|
8985
|
+
ss_r += " or ";
|
|
8986
|
+
ss_r +=
|
|
8987
|
+
v +
|
|
8988
|
+
" LIKE '%" +
|
|
8989
|
+
this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
8990
|
+
"%' ESCAPE '$'";
|
|
8991
|
+
}
|
|
8992
|
+
});
|
|
8993
|
+
if (ss_r != '') {
|
|
8994
|
+
if (ss != "")
|
|
8995
|
+
ss += " and ";
|
|
8996
|
+
ss += '(' + ss_r + ')';
|
|
8997
|
+
}
|
|
8998
|
+
}
|
|
8983
8999
|
this.pulisci_filtri(false);
|
|
8984
9000
|
this.doFill_Temp(ss, true);
|
|
8985
9001
|
}
|
|
@@ -9164,6 +9180,7 @@ FHGridComponent.propDecorators = {
|
|
|
9164
9180
|
no_pref: [{ type: Input }],
|
|
9165
9181
|
pref_hidden: [{ type: Input }],
|
|
9166
9182
|
enable_paste: [{ type: Input }],
|
|
9183
|
+
full_text_added_columns: [{ type: Input }],
|
|
9167
9184
|
autosize_at_ini: [{ type: Input }],
|
|
9168
9185
|
label_elementi: [{ type: Input }],
|
|
9169
9186
|
trova_label: [{ type: Input }],
|