@fluxhub/fluxhub-lib 10.0.184 → 10.0.186

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.
@@ -5814,17 +5814,14 @@
5814
5814
  }
5815
5815
  var num_all = -1;
5816
5816
  var countryFilterComponent = this.gridOptions.api.getColumnDef(key);
5817
- console.log('countryFilterComponent ', countryFilterComponent);
5818
5817
  if (countryFilterComponent != null)
5819
5818
  if (countryFilterComponent.filterParams != null)
5820
5819
  if (countryFilterComponent.filterParams.values != null) {
5821
5820
  var model_1 = countryFilterComponent.filterParams.values;
5822
5821
  model_1 = model_1.filter(function (n, i) { return model_1.indexOf(n) === i; });
5823
- console.log('model ', model_1);
5824
5822
  if (model_1 != null)
5825
5823
  num_all = model_1.length;
5826
5824
  }
5827
- console.log('obj_filtro.values.length!=num_all ', obj_filtro.values.length, num_all);
5828
5825
  if (sq != "") {
5829
5826
  if (obj_filtro.values.length != num_all) {
5830
5827
  b_filter = true;
@@ -6403,6 +6400,7 @@
6403
6400
  }
6404
6401
  };
6405
6402
  FHGridComponent.prototype.free_search = function () {
6403
+ var _this = this;
6406
6404
  if (this.ric_libera == "") {
6407
6405
  this.pulisci_filtri();
6408
6406
  this.fix_flt_temp = "";
@@ -6421,22 +6419,45 @@
6421
6419
  if (arr_F.length == 0)
6422
6420
  return;
6423
6421
  var ss = "";
6424
- for (var y = 0; y < this.columnDefs.length; y++)
6425
- if (this.columnDefs[y] != null)
6426
- if (this.columnDefs[y].no_filter == null)
6427
- if (this.columnDefs[y].field != null)
6428
- if (this.columnDefs[y].field != "")
6429
- if (this.columnDefs[y].filter != "agDateColumnFilter")
6430
- for (var i = 0; i < arr_F.length; i++) {
6431
- if (ss != "")
6432
- ss = ss + " or ";
6433
- ss =
6434
- ss +
6435
- this.columnDefs[y].field +
6422
+ var _loop_1 = function (i) {
6423
+ var ss_r = "";
6424
+ for (var y = 0; y < this_1.columnDefs.length; y++)
6425
+ if (this_1.columnDefs[y] != null)
6426
+ if (this_1.columnDefs[y].no_filter == null)
6427
+ if (this_1.columnDefs[y].field != null)
6428
+ if (this_1.columnDefs[y].field != "")
6429
+ if (this_1.columnDefs[y].filter != "agDateColumnFilter") {
6430
+ if (ss_r != "")
6431
+ ss_r += " or ";
6432
+ ss_r +=
6433
+ this_1.columnDefs[y].field +
6436
6434
  " LIKE '%" +
6437
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
6435
+ this_1.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
6438
6436
  "%' ESCAPE '$'";
6439
6437
  }
6438
+ if (this_1.full_text_added_columns != null)
6439
+ this_1.full_text_added_columns.map(function (v) {
6440
+ if (v != null)
6441
+ if (v != '') {
6442
+ if (ss_r != "")
6443
+ ss_r += " or ";
6444
+ ss_r +=
6445
+ v +
6446
+ " LIKE '%" +
6447
+ _this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
6448
+ "%' ESCAPE '$'";
6449
+ }
6450
+ });
6451
+ if (ss_r != '') {
6452
+ if (ss != "")
6453
+ ss += " and ";
6454
+ ss += ss_r;
6455
+ }
6456
+ };
6457
+ var this_1 = this;
6458
+ for (var i = 0; i < arr_F.length; i++) {
6459
+ _loop_1(i);
6460
+ }
6440
6461
  this.pulisci_filtri(false);
6441
6462
  this.doFill_Temp(ss, true);
6442
6463
  };
@@ -6628,6 +6649,7 @@
6628
6649
  no_pref: [{ type: i0.Input }],
6629
6650
  pref_hidden: [{ type: i0.Input }],
6630
6651
  enable_paste: [{ type: i0.Input }],
6652
+ full_text_added_columns: [{ type: i0.Input }],
6631
6653
  autosize_at_ini: [{ type: i0.Input }],
6632
6654
  label_elementi: [{ type: i0.Input }],
6633
6655
  trova_label: [{ type: i0.Input }],
@@ -12945,7 +12967,7 @@
12945
12967
  { type: i0.Component, args: [{
12946
12968
  providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
12947
12969
  selector: "FHFieldPickList",
12948
- template: "\n <div\n fxLayout=\"row\" [hidden]=\"!enabled\"\n fxFlex=\"100\"\n fxLayoutAlign=\"start center\"\n [hidden]=\"hidden\" fxLayoutGap=\"10px\"\n >\n <div fxFlex fxLayout=\"row\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n #el1\n matInput\n [readonly]=\"only_in_list\"\n [(ngModel)]=\"value\"\n />\n </mat-form-field>\n </div>\n\n <div fxLayout=\"row\">\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"open_pick_list()\"\n\n >\n SELEZIONA\n </button>\n </div>\n </div>\n <mat-form-field appearance=\"outline\" [hidden]=\"enabled\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\" [matTooltip]=\"value\"\n\n matInput\n\n [(ngModel)]=\"value\"\n />\n </mat-form-field>\n ",
12970
+ template: "\n <div\n fxLayout=\"row\" [hidden]=\"!enabled || hidden\"\n fxFlex=\"100\"\n fxLayoutAlign=\"start center\"\n fxLayoutGap=\"10px\"\n >\n <div fxFlex fxLayout=\"row\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n #el1\n matInput\n [readonly]=\"only_in_list\"\n [(ngModel)]=\"value\"\n />\n </mat-form-field>\n </div>\n\n <div fxLayout=\"row\">\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"open_pick_list()\"\n\n >\n SELEZIONA\n </button>\n </div>\n </div>\n <mat-form-field appearance=\"outline\" [hidden]=\"enabled || hidden\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\" [matTooltip]=\"value\"\n\n matInput [disabled]=\"true\"\n\n [(ngModel)]=\"value\"\n />\n </mat-form-field>\n ",
12949
12971
  styles: [""]
12950
12972
  },] }
12951
12973
  ];