@fluxhub/fluxhub-lib 9.0.30 → 9.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.
@@ -2012,30 +2012,37 @@
2012
2012
  return WinWait;
2013
2013
  }());
2014
2014
 
2015
- var FHComboboxComponent = /** @class */ (function () {
2015
+ var FHComboboxComponent = /** @class */ (function (_super) {
2016
+ __extends(FHComboboxComponent, _super);
2016
2017
  function FHComboboxComponent(_dataService, _dataService_odbc) {
2017
- this._dataService = _dataService;
2018
- this._dataService_odbc = _dataService_odbc;
2019
- this.init_fill = true;
2020
- this.sql = "";
2021
- this.types = [];
2022
- this.values = [];
2023
- this.hidden = false;
2024
- this.label = "";
2025
- this.enabled = true;
2026
- this.required = false;
2027
- this.sel_label = "";
2028
- this.fillend = new core.EventEmitter();
2029
- this.selchange = new core.EventEmitter();
2030
- this.initend = new core.EventEmitter();
2031
- this.myData = [];
2032
- this.valDef = "-1";
2033
- this.selval = "-1";
2034
- this.errorMsg = "";
2035
- this.db_type = "1";
2036
- this.dis_value = '';
2037
- this.descri_val = "";
2018
+ var _this = _super.call(this) || this;
2019
+ _this._dataService = _dataService;
2020
+ _this._dataService_odbc = _dataService_odbc;
2021
+ _this.init_fill = true;
2022
+ _this.sql = "";
2023
+ _this.types = [];
2024
+ _this.values = [];
2025
+ _this.hidden = false;
2026
+ _this.label = "";
2027
+ _this.enabled = true;
2028
+ _this.required = false;
2029
+ _this.sel_label = "";
2030
+ _this.fillend = new core.EventEmitter();
2031
+ _this.selchange = new core.EventEmitter();
2032
+ _this.initend = new core.EventEmitter();
2033
+ _this.myData = [];
2034
+ _this.valDef = "-1";
2035
+ _this.selval = "-1";
2036
+ _this.errorMsg = "";
2037
+ _this.db_type = "1";
2038
+ _this.dis_value = '';
2039
+ _this.descri_val = "";
2040
+ return _this;
2038
2041
  }
2042
+ FHComboboxComponent_1 = FHComboboxComponent;
2043
+ FHComboboxComponent.prototype.setValue = function (desc_val) {
2044
+ this.setByValue(desc_val);
2045
+ };
2039
2046
  FHComboboxComponent.prototype.update_dis = function () {
2040
2047
  this.dis_value = '';
2041
2048
  try {
@@ -2285,6 +2292,31 @@
2285
2292
  .selchange
2286
2293
  .emit({ event: this.getObj(), valore: this.getValue(), descrizione_valore: this.getDescri() });
2287
2294
  };
2295
+ FHComboboxComponent.prototype.getModelValue = function () {
2296
+ var value = this.getData('valore');
2297
+ return value;
2298
+ };
2299
+ FHComboboxComponent.prototype.emitChanged = function () {
2300
+ var value = this.getModelValue();
2301
+ this.changed.forEach(function (f) { return f(value); });
2302
+ };
2303
+ Object.defineProperty(FHComboboxComponent.prototype, "value", {
2304
+ get: function () {
2305
+ return this.getModelValue();
2306
+ },
2307
+ set: function (value) {
2308
+ if (this.getModelValue() !== value) {
2309
+ this.setByValue(value);
2310
+ this.changed.forEach(function (f) { return f(value); });
2311
+ }
2312
+ },
2313
+ enumerable: true,
2314
+ configurable: true
2315
+ });
2316
+ FHComboboxComponent.prototype.writeValue = function (value) {
2317
+ this.setValue(value);
2318
+ };
2319
+ var FHComboboxComponent_1;
2288
2320
  FHComboboxComponent.ctorParameters = function () { return [
2289
2321
  { type: QueryService },
2290
2322
  { type: OdbcService }
@@ -2349,15 +2381,18 @@
2349
2381
  core.Input(),
2350
2382
  __metadata("design:type", String)
2351
2383
  ], FHComboboxComponent.prototype, "db_type", void 0);
2352
- FHComboboxComponent = __decorate([
2384
+ FHComboboxComponent = FHComboboxComponent_1 = __decorate([
2353
2385
  core.Component({
2354
2386
  selector: 'FHComboBox', template: "\n <mat-form-field [hidden]=\"!enabled || hidden\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <mat-select #cmb [(ngModel)]=\"selval\" (selectionChange)=\"sc()\" [required]=\"required\">\n <mat-option value=\"-1\">{{sel_label}}</mat-option>\n <mat-option value=\"{{app.valore}}\" *ngFor=\"let app of myData\">{{app.descrizione_valore}}</mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field [hidden]=\"enabled || hidden\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input type=\"text\" #el1 matInput [disabled]=\"true\" [(ngModel)]=\"dis_value\">\n </mat-form-field>\n ",
2387
+ providers: [
2388
+ { provide: forms.NG_VALUE_ACCESSOR, useExisting: FHComboboxComponent_1, multi: true },
2389
+ ],
2355
2390
  styles: ["\n\n "]
2356
2391
  }),
2357
2392
  __metadata("design:paramtypes", [QueryService, OdbcService])
2358
2393
  ], FHComboboxComponent);
2359
2394
  return FHComboboxComponent;
2360
- }());
2395
+ }(FHValueAccessor));
2361
2396
 
2362
2397
  var FHUploadComponent = /** @class */ (function () {
2363
2398
  function FHUploadComponent(_dataService, toastr, dialog, app_s) {
@@ -3489,7 +3524,7 @@
3489
3524
  WinAskTextComponent = __decorate([
3490
3525
  core.Component({
3491
3526
  selector: 'app-win_ask_text',
3492
- template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"font-size: 15px;\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\" style=\"width:100%\"><mat-label>{{label}} (min {{min_chars}} - max {{max_chars}} caratteri)</mat-label>\n <input matInput type=\"text\"\n [(ngModel)]=\"valore\" required>\n </mat-form-field>\n </mat-dialog-content>\n\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\" [hidden]=\"readonly\">\n <button mat-flat-button color=\"primary\" (click)=\"do_check()\">OK</button>&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"warn\" (click)=\"chiudi()\">ANNULLA</button>\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\" [hidden]=\"!readonly\">\n <button mat-flat-button color=\"warn\" (click)=\"chiudi()\">CHIUDI</button>\n </div>\n\n "
3527
+ template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"font-size: 15px;\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\" style=\"width:100%\"><mat-label>{{label}} (min {{min_chars}} - max {{max_chars}} caratteri)</mat-label>\n <input matInput type=\"text\"\n [(ngModel)]=\"valore\" required>\n </mat-form-field>\n </mat-dialog-content>\n <mat-dialog-actions>\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\" [hidden]=\"readonly\">\n <button mat-flat-button color=\"primary\" (click)=\"do_check()\">OK</button>&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"warn\" (click)=\"chiudi()\">ANNULLA</button>\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\" [hidden]=\"!readonly\">\n <button mat-flat-button color=\"warn\" (click)=\"chiudi()\">CHIUDI</button>\n </div>\n </mat-dialog-actions>\n "
3493
3528
  }),
3494
3529
  __param(2, core.Inject(dialog.MAT_DIALOG_DATA)),
3495
3530
  __metadata("design:paramtypes", [dialog.MatDialogRef, ngxToastr.ToastrService, Object])
@@ -11402,6 +11437,9 @@
11402
11437
  ccan = this.livs[i].gruppo_parallelo;
11403
11438
  }
11404
11439
  }
11440
+ this.m_autori = Array.from(new Set(this.m_autori.split(','))).join(',');
11441
+ this.m_lettori = Array.from(new Set(this.m_lettori.split(','))).join(',');
11442
+ this.m_danotificare = Array.from(new Set(this.m_danotificare.split(','))).join(',');
11405
11443
  var a;
11406
11444
  if (!this.app_info.documento_pubblico)
11407
11445
  a = new Array(this.m_autori, this.m_lettori, this.m_liv, this.m_statox, this.m_autori_paralleli, this.m_obj.assegnati_paralleli, this.getLvlDescri(String(this.m_liv), this.m_statox), this.getUsersList(this.m_autori, this.m_obj.assegnati_paralleli), this.user_idp, this.getTitle(), this.getDescri(), this.id_applicativo, this.id_documento, ccan);
@@ -11969,6 +12007,8 @@
11969
12007
  if (s == "") {
11970
12008
  return "NESSUN UTENTE CONFIGURATO STEP: " + lvlb + " CANALE: " + can;
11971
12009
  }
12010
+ s_notif = Array.from(new Set(s_notif.split(','))).join(',');
12011
+ this.m_obj.partecipanti = Array.from(new Set(this.m_obj.partecipanti.split(','))).join(',');
11972
12012
  var a;
11973
12013
  if (!this.app_info.documento_pubblico)
11974
12014
  a = [s, this.m_obj.partecipanti + "," + s, lvlb, "Assegnata a:" + s_auto, '', '', this.getLvlDescri(String(lvlb), "Assegnata a:" + s_auto), this.getUsersList(s_auto, this.m_obj.assegnati_paralleli), this.user_idp, this.getTitle(), this.getDescri(), this.id_applicativo, this.id_documento, can];