@fluxhub/fluxhub-lib 11.0.30 → 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.
@@ -2715,8 +2715,8 @@
2715
2715
  return;
2716
2716
  var dialogRef = this.dialog.open(fh_win_picklist, {
2717
2717
  disableClose: true,
2718
- width: "700px",
2719
- height: "550px", data: {
2718
+ width: "800px",
2719
+ height: "650px", data: {
2720
2720
  value_list: JSON.parse(JSON.stringify(this.value_list)),
2721
2721
  single_sel: this.single_sel,
2722
2722
  vis_buttons: this.vis_buttons,
@@ -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.replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
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.replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
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.replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
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
- obj_filtro.replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
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
- this_1.uti_s.string_sqlvalue(arr_F_1[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
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
- _this.uti_s.string_sqlvalue(arr_F_1[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
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
- this_2.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
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
- _this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7205
- "%' ESCAPE '$'";
7207
+ _this.prepare_filter(arr_F[i])
7208
+ +
7209
+ "%' ESCAPE '$'";
7206
7210
  }
7207
7211
  });
7208
7212
  if (ss_r != '') {
@@ -14799,33 +14803,6 @@
14799
14803
  this.dialogRef.close(null);
14800
14804
  };
14801
14805
  fh_win_user_info.prototype.ngAfterViewInit = function () {
14802
- var _this = this;
14803
- setTimeout(function () {
14804
- if (_this.isadmin == "1")
14805
- if (_this.appService.dev_mode != null)
14806
- if (_this.appService.dev_mode == "1")
14807
- _this.dev_mode = true;
14808
- var p = new QParam();
14809
- p.sql = "SELECT_ALLEGATI_DOCUMENTO";
14810
- p.types = ["string", "string"];
14811
- p.values = ["FOTO_UTENTI", _this.appService.user];
14812
- _this._dataService.doQuery(p).subscribe(function (data) {
14813
- if (data != null)
14814
- if (data.result_msg == "OK") {
14815
- if (data.result_data.length > 0) {
14816
- _this.b_filef = true;
14817
- _this.foto_ut =
14818
- _this.appService.COMPANY_SITE_ROOT +
14819
- "uploads/" +
14820
- data.result_data[0].App +
14821
- "/" +
14822
- data.result_data[0].K +
14823
- "/" +
14824
- data.result_data[0].Filename;
14825
- }
14826
- }
14827
- });
14828
- });
14829
14806
  };
14830
14807
  fh_win_user_info.prototype.upd_dev = function (dv) {
14831
14808
  if (dv) {
@@ -14841,7 +14818,7 @@
14841
14818
  }());
14842
14819
  fh_win_user_info.decorators = [
14843
14820
  { type: i0.Component, args: [{
14844
- template: "\n <div\u00A0 \u00A0fxLayout=\"column\" fxLayoutGap=\"5px\">\n\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{'INFO UTENTE' | translate}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n\t\t<hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <mat-dialog-content style=\"font-size:12px\">\n <table class=\"fh_table\">\n <tbody>\n <tr class=\"odd\">\n <td>{{'Nome' | translate}}</td>\n <td>\n <b>{{ user_name }}</b>\n </td>\n </tr>\n <tr class=\"even\">\n <td>{{'Cognome' | translate}}</td>\n <td>\n <b>{{ user_surname }}</b>\n </td>\n </tr>\n <tr class=\"odd\">\n <td>{{'Username' | translate}}</td>\n <td>\n <b>{{ user }}</b>\n </td>\n </tr>\n <tr class=\"even\">\n <td>{{'Email' | translate}}</td>\n <td>\n <b>{{ user_email }}</b>\n </td>\n </tr>\n <tr class=\"odd\">\n <td>{{'Ruoli' | translate}}</td>\n <td>\n <b>{{ user_roles }}</b>\n </td>\n </tr>\n <tr class=\"even\">\n <td>{{'Lingua' | translate}}</td>\n <td>\n <b>{{ user_lang }}</b>\n </td>\n </tr>\n <tr *ngIf=\"isadmin == '1'\" class=\"odd\">\n <td>DEV MODE</td>\n <td>\n <b\n ><mat-checkbox\n [(ngModel)]=\"dev_mode\"\n (ngModelChange)=\"upd_dev(dev_mode)\"\n ></mat-checkbox\n ></b>\n </td>\n </tr>\n </tbody>\n </table>\n <img\n style=\"vertical-align:middle;max-height:300px\"\n *ngIf=\"b_filef\"\n aria-hidden\n src=\"{{ foto_ut }}\"\n />\n\n <div fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <button mat-flat-button color=\"primary\" (click)=\"dialogRef.close()\">\n {{'CHIUDI' | translate}}\n </button>\n </div>\n </mat-dialog-content>\n</div>\n "
14821
+ template: "\n <div fxLayout=\"column\" fxLayoutGap=\"5px\">\n <table class=\"dialog_header\" style=\"width:100%\"><tr><td>\n{{'INFO UTENTE'}}\n</td>\n<td style=\"text-align:right\">\n <img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /></td>\n</table>\n\n\t\t<hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <mat-dialog-content style=\"font-size:12px\">\n <table class=\"fh_table\" style=\"width:100%\">\n <tbody>\n <tr class=\"odd\">\n <td>{{'Nome' | translate}}</td>\n <td>\n <b>{{ user_name }}</b>\n </td>\n </tr>\n <tr class=\"even\">\n <td>{{'Cognome' | translate}}</td>\n <td>\n <b>{{ user_surname }}</b>\n </td>\n </tr>\n <tr class=\"odd\">\n <td>{{'Username' | translate}}</td>\n <td>\n <b>{{ user }}</b>\n </td>\n </tr>\n <tr class=\"even\">\n <td>{{'Email' | translate}}</td>\n <td>\n <b>{{ user_email }}</b>\n </td>\n </tr>\n <tr class=\"odd\">\n <td>{{'Ruoli' | translate}}</td>\n <td>\n <b>{{ user_roles }}</b>\n </td>\n </tr>\n <tr class=\"even\">\n <td>{{'Lingua' | translate}}</td>\n <td>\n <b>{{ user_lang }}</b>\n </td>\n </tr>\n <tr *ngIf=\"isadmin == '1'\" class=\"odd\">\n <td>DEV MODE</td>\n <td>\n <b\n ><mat-checkbox\n [(ngModel)]=\"dev_mode\"\n (ngModelChange)=\"upd_dev(dev_mode)\"\n ></mat-checkbox\n ></b>\n </td>\n </tr>\n </tbody>\n </table>\n <img\n style=\"vertical-align:middle;max-height:300px\"\n *ngIf=\"b_filef\"\n aria-hidden\n src=\"{{ foto_ut }}\"\n />\n </mat-dialog-content>\n</div>\n "
14845
14822
  },] }
14846
14823
  ];
14847
14824
  fh_win_user_info.ctorParameters = function () { return [
@@ -18182,7 +18159,7 @@
18182
18159
  ss_r +=
18183
18160
  this_1.columnDefs[y].field +
18184
18161
  " LIKE '%" +
18185
- this_1.uti_s.string_sqlvalue(arr_F_1[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
18162
+ (arr_F_1[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
18186
18163
  "%' ESCAPE '$'";
18187
18164
  }
18188
18165
  }
@@ -18195,7 +18172,7 @@
18195
18172
  ss_r +=
18196
18173
  v +
18197
18174
  " LIKE '%" +
18198
- _this.uti_s.string_sqlvalue(arr_F_1[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
18175
+ (arr_F_1[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
18199
18176
  "%' ESCAPE '$'";
18200
18177
  }
18201
18178
  });
@@ -18402,7 +18379,6 @@
18402
18379
  }
18403
18380
  };
18404
18381
  FHGridComponentN.prototype.free_search = function () {
18405
- var _this = this;
18406
18382
  if (this.ric_libera == "") {
18407
18383
  this.pulisci_filtri();
18408
18384
  this.fix_flt_temp = "";
@@ -18433,7 +18409,7 @@
18433
18409
  ss_r +=
18434
18410
  this_2.columnDefs[y].field +
18435
18411
  " LIKE '%" +
18436
- this_2.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
18412
+ (arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
18437
18413
  "%' ESCAPE '$'";
18438
18414
  }
18439
18415
  }
@@ -18446,7 +18422,7 @@
18446
18422
  ss_r +=
18447
18423
  v +
18448
18424
  " LIKE '%" +
18449
- _this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
18425
+ (arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
18450
18426
  "%' ESCAPE '$'";
18451
18427
  }
18452
18428
  });