@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.
@@ -1966,8 +1966,10 @@ WinWait = __decorate([
1966
1966
  __metadata("design:paramtypes", [MatDialogRef, ToastrService, AppService])
1967
1967
  ], WinWait);
1968
1968
 
1969
- let FHComboboxComponent = class FHComboboxComponent {
1969
+ var FHComboboxComponent_1;
1970
+ let FHComboboxComponent = FHComboboxComponent_1 = class FHComboboxComponent extends FHValueAccessor {
1970
1971
  constructor(_dataService, _dataService_odbc) {
1972
+ super();
1971
1973
  this._dataService = _dataService;
1972
1974
  this._dataService_odbc = _dataService_odbc;
1973
1975
  this.init_fill = true;
@@ -1990,6 +1992,9 @@ let FHComboboxComponent = class FHComboboxComponent {
1990
1992
  this.dis_value = '';
1991
1993
  this.descri_val = "";
1992
1994
  }
1995
+ setValue(desc_val) {
1996
+ this.setByValue(desc_val);
1997
+ }
1993
1998
  update_dis() {
1994
1999
  this.dis_value = '';
1995
2000
  try {
@@ -2237,6 +2242,26 @@ let FHComboboxComponent = class FHComboboxComponent {
2237
2242
  .selchange
2238
2243
  .emit({ event: this.getObj(), valore: this.getValue(), descrizione_valore: this.getDescri() });
2239
2244
  }
2245
+ getModelValue() {
2246
+ const value = this.getData('valore');
2247
+ return value;
2248
+ }
2249
+ emitChanged() {
2250
+ const value = this.getModelValue();
2251
+ this.changed.forEach(f => f(value));
2252
+ }
2253
+ get value() {
2254
+ return this.getModelValue();
2255
+ }
2256
+ set value(value) {
2257
+ if (this.getModelValue() !== value) {
2258
+ this.setByValue(value);
2259
+ this.changed.forEach(f => f(value));
2260
+ }
2261
+ }
2262
+ writeValue(value) {
2263
+ this.setValue(value);
2264
+ }
2240
2265
  };
2241
2266
  FHComboboxComponent.ctorParameters = () => [
2242
2267
  { type: QueryService },
@@ -2302,7 +2327,7 @@ __decorate([
2302
2327
  Input(),
2303
2328
  __metadata("design:type", String)
2304
2329
  ], FHComboboxComponent.prototype, "db_type", void 0);
2305
- FHComboboxComponent = __decorate([
2330
+ FHComboboxComponent = FHComboboxComponent_1 = __decorate([
2306
2331
  Component({
2307
2332
  selector: 'FHComboBox', template: `
2308
2333
  <mat-form-field [hidden]="!enabled || hidden" appearance="outline" floatLabel="always"><mat-label>{{label}}</mat-label>
@@ -2316,6 +2341,9 @@ FHComboboxComponent = __decorate([
2316
2341
  <input type="text" #el1 matInput [disabled]="true" [(ngModel)]="dis_value">
2317
2342
  </mat-form-field>
2318
2343
  `,
2344
+ providers: [
2345
+ { provide: NG_VALUE_ACCESSOR, useExisting: FHComboboxComponent_1, multi: true },
2346
+ ],
2319
2347
  styles: [`
2320
2348
 
2321
2349
  `]
@@ -3730,7 +3758,7 @@ WinAskTextComponent = __decorate([
3730
3758
  [(ngModel)]="valore" required>
3731
3759
  </mat-form-field>
3732
3760
  </mat-dialog-content>
3733
-
3761
+ <mat-dialog-actions>
3734
3762
  <div fxLayout="row" fxLayoutAlign="center center" style="width: 100%" [hidden]="readonly">
3735
3763
  <button mat-flat-button color="primary" (click)="do_check()">OK</button>&nbsp;&nbsp;&nbsp;
3736
3764
  <button mat-flat-button color="warn" (click)="chiudi()">ANNULLA</button>
@@ -3738,7 +3766,7 @@ WinAskTextComponent = __decorate([
3738
3766
  <div fxLayout="row" fxLayoutAlign="center center" style="width: 100%" [hidden]="!readonly">
3739
3767
  <button mat-flat-button color="warn" (click)="chiudi()">CHIUDI</button>
3740
3768
  </div>
3741
-
3769
+ </mat-dialog-actions>
3742
3770
  `
3743
3771
  }),
3744
3772
  __param(2, Inject(MAT_DIALOG_DATA)),
@@ -12573,6 +12601,9 @@ class dati_aggiuntivi {
12573
12601
  ccan = this.livs[i].gruppo_parallelo;
12574
12602
  }
12575
12603
  }
12604
+ this.m_autori = Array.from(new Set(this.m_autori.split(','))).join(',');
12605
+ this.m_lettori = Array.from(new Set(this.m_lettori.split(','))).join(',');
12606
+ this.m_danotificare = Array.from(new Set(this.m_danotificare.split(','))).join(',');
12576
12607
  let a;
12577
12608
  if (!this.app_info.documento_pubblico)
12578
12609
  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);
@@ -13120,6 +13151,8 @@ class dati_aggiuntivi {
13120
13151
  if (s == "") {
13121
13152
  return "NESSUN UTENTE CONFIGURATO STEP: " + lvlb + " CANALE: " + can;
13122
13153
  }
13154
+ s_notif = Array.from(new Set(s_notif.split(','))).join(',');
13155
+ this.m_obj.partecipanti = Array.from(new Set(this.m_obj.partecipanti.split(','))).join(',');
13123
13156
  let a;
13124
13157
  if (!this.app_info.documento_pubblico)
13125
13158
  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];