@fluxhub/fluxhub-lib 19.0.176 → 19.0.178

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.
@@ -22241,68 +22241,68 @@ class fh_win_translate {
22241
22241
  this.dialogRef.close(null);
22242
22242
  }
22243
22243
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: fh_win_translate, deps: [{ token: i1$2.MatDialogRef }, { token: i1$1.HttpClient }, { token: i3$1.ToastrService }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
22244
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: fh_win_translate, isStandalone: true, selector: "fh-win-translate", viewQueries: [{ propertyName: "langCombo", first: true, predicate: ["langCombo"], descendants: true }], ngImport: i0, template: `
22245
- <fh-dialog-base
22246
- [title]="title"
22247
- [buttons]="buttons"
22248
- [buttonsAlignment]="'center'"
22249
- (beforeClose)="onBeforeClose($event)">
22250
-
22251
- <div dialog-content class="scrollable-content">
22252
- <div style="display:flex;flex-direction:column;gap:14px;width:640px;max-width:88vw;padding-top:6px;">
22253
-
22254
- <!-- Lingua di destinazione -->
22255
- <FHComboBox
22256
- #langCombo
22257
- [(ngModel)]="dest_lang"
22258
- [label]="'Lingua di destinazione' | translate"
22259
- [sql]="lang_values"
22260
- [enabled]="!loading"
22261
- (selchange)="onLangChange()">
22262
- </FHComboBox>
22263
-
22264
- <!-- Testo da tradurre (inglese) -->
22265
- <FHTextArea
22266
- [(ngModel)]="text"
22267
- [label]="'Testo da tradurre (inglese)' | translate"
22268
- [rows]="6"
22269
- [enabled]="!loading">
22270
- </FHTextArea>
22271
-
22272
- <!-- Pulsante Traduci -->
22273
- <div style="display:flex;justify-content:center;">
22274
- <button mat-flat-button color="primary" (click)="do_translate()" [disabled]="loading">
22275
- <mat-icon>translate</mat-icon>&nbsp;{{ 'Traduci' | translate }}
22276
- </button>
22277
- </div>
22278
-
22279
- <!-- Spinner durante la traduzione -->
22280
- <div *ngIf="loading"
22281
- style="display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px 0;">
22282
- <mat-spinner [diameter]="44"></mat-spinner>
22283
- <div style="margin-top:10px;color:#666;font-size:13px;">
22284
- {{ 'Traduzione in corso...' | translate }}
22285
- </div>
22286
- </div>
22287
-
22288
- <!-- Risultato -->
22289
- <div *ngIf="!loading && translation" style="display:flex;flex-direction:column;gap:6px;">
22290
- <FHTextArea
22291
- [(ngModel)]="translation"
22292
- [label]="'Traduzione' | translate"
22293
- [rows]="6"
22294
- [enabled]="false">
22295
- </FHTextArea>
22296
- <div style="display:flex;justify-content:flex-end;">
22297
- <button mat-stroked-button color="primary" (click)="copy()" [matTooltip]="'Copia' | translate">
22298
- <mat-icon>content_copy</mat-icon>&nbsp;{{ 'Copia' | translate }}
22299
- </button>
22300
- </div>
22301
- </div>
22302
-
22303
- </div>
22304
- </div>
22305
- </fh-dialog-base>
22244
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: fh_win_translate, isStandalone: true, selector: "fh-win-translate", viewQueries: [{ propertyName: "langCombo", first: true, predicate: ["langCombo"], descendants: true }], ngImport: i0, template: `
22245
+ <fh-dialog-base
22246
+ [title]="title"
22247
+ [buttons]="buttons"
22248
+ [buttonsAlignment]="'center'"
22249
+ (beforeClose)="onBeforeClose($event)">
22250
+
22251
+ <div dialog-content class="scrollable-content">
22252
+ <div style="display:flex;flex-direction:column;gap:14px;width:640px;max-width:88vw;padding-top:6px;">
22253
+
22254
+ <!-- Lingua di destinazione -->
22255
+ <FHComboBox
22256
+ #langCombo
22257
+ [(ngModel)]="dest_lang"
22258
+ [label]="'Lingua di destinazione' | translate"
22259
+ [sql]="lang_values"
22260
+ [enabled]="!loading"
22261
+ (selchange)="onLangChange()">
22262
+ </FHComboBox>
22263
+
22264
+ <!-- Testo da tradurre (inglese) -->
22265
+ <FHTextArea
22266
+ [(ngModel)]="text"
22267
+ [label]="'Testo da tradurre (inglese)' | translate"
22268
+ [rows]="6"
22269
+ [enabled]="!loading">
22270
+ </FHTextArea>
22271
+
22272
+ <!-- Pulsante Traduci -->
22273
+ <div style="display:flex;justify-content:center;">
22274
+ <button mat-flat-button color="primary" (click)="do_translate()" [disabled]="loading">
22275
+ <mat-icon>translate</mat-icon>&nbsp;{{ 'Traduci' | translate }}
22276
+ </button>
22277
+ </div>
22278
+
22279
+ <!-- Spinner durante la traduzione -->
22280
+ <div *ngIf="loading"
22281
+ style="display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px 0;">
22282
+ <mat-spinner [diameter]="44"></mat-spinner>
22283
+ <div style="margin-top:10px;color:#666;font-size:13px;">
22284
+ {{ 'Traduzione in corso...' | translate }}
22285
+ </div>
22286
+ </div>
22287
+
22288
+ <!-- Risultato -->
22289
+ <div *ngIf="!loading && translation" style="display:flex;flex-direction:column;gap:6px;">
22290
+ <FHTextArea
22291
+ [(ngModel)]="translation"
22292
+ [label]="'Traduzione' | translate"
22293
+ [rows]="6"
22294
+ [enabled]="false">
22295
+ </FHTextArea>
22296
+ <div style="display:flex;justify-content:flex-end;">
22297
+ <button mat-stroked-button color="primary" (click)="copy()" [matTooltip]="'Copia' | translate">
22298
+ <mat-icon>content_copy</mat-icon>&nbsp;{{ 'Copia' | translate }}
22299
+ </button>
22300
+ </div>
22301
+ </div>
22302
+
22303
+ </div>
22304
+ </div>
22305
+ </fh-dialog-base>
22306
22306
  `, isInline: true, styles: [":host ::ng-deep .mat-mdc-dialog-content,:host ::ng-deep mat-dialog-content{flex:1 1 auto!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding:0!important}.scrollable-content{overflow-y:auto;overflow-x:hidden;padding-right:6px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i8.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i9.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "component", type: DialogBaseComponent, selector: "fh-dialog-base", inputs: ["title", "buttons", "showCloseButton", "canValidate", "buttonsAlignment"], outputs: ["buttonClick", "beforeClose"] }, { kind: "component", type: FHComboboxComponent, selector: "FHComboBox", inputs: ["error", "init_fill", "sql", "types", "values", "hidden", "disableTranslation", "label", "enabled", "required", "load_delay", "show_empty", "sel_label", "tooltip", "option_values", "valDef", "db_type"], outputs: ["fillend", "selchange", "initend"] }, { kind: "component", type: FHTextAreaComponent, selector: "FHTextArea", inputs: ["hidden", "label", "enabled", "required", "rows", "error"], outputs: ["change", "focusout", "focusin"] }] });
22307
22307
  }
22308
22308
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: fh_win_translate, decorators: [{
@@ -22318,68 +22318,68 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
22318
22318
  DialogBaseComponent,
22319
22319
  FHComboboxComponent,
22320
22320
  FHTextAreaComponent
22321
- ], template: `
22322
- <fh-dialog-base
22323
- [title]="title"
22324
- [buttons]="buttons"
22325
- [buttonsAlignment]="'center'"
22326
- (beforeClose)="onBeforeClose($event)">
22327
-
22328
- <div dialog-content class="scrollable-content">
22329
- <div style="display:flex;flex-direction:column;gap:14px;width:640px;max-width:88vw;padding-top:6px;">
22330
-
22331
- <!-- Lingua di destinazione -->
22332
- <FHComboBox
22333
- #langCombo
22334
- [(ngModel)]="dest_lang"
22335
- [label]="'Lingua di destinazione' | translate"
22336
- [sql]="lang_values"
22337
- [enabled]="!loading"
22338
- (selchange)="onLangChange()">
22339
- </FHComboBox>
22340
-
22341
- <!-- Testo da tradurre (inglese) -->
22342
- <FHTextArea
22343
- [(ngModel)]="text"
22344
- [label]="'Testo da tradurre (inglese)' | translate"
22345
- [rows]="6"
22346
- [enabled]="!loading">
22347
- </FHTextArea>
22348
-
22349
- <!-- Pulsante Traduci -->
22350
- <div style="display:flex;justify-content:center;">
22351
- <button mat-flat-button color="primary" (click)="do_translate()" [disabled]="loading">
22352
- <mat-icon>translate</mat-icon>&nbsp;{{ 'Traduci' | translate }}
22353
- </button>
22354
- </div>
22355
-
22356
- <!-- Spinner durante la traduzione -->
22357
- <div *ngIf="loading"
22358
- style="display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px 0;">
22359
- <mat-spinner [diameter]="44"></mat-spinner>
22360
- <div style="margin-top:10px;color:#666;font-size:13px;">
22361
- {{ 'Traduzione in corso...' | translate }}
22362
- </div>
22363
- </div>
22364
-
22365
- <!-- Risultato -->
22366
- <div *ngIf="!loading && translation" style="display:flex;flex-direction:column;gap:6px;">
22367
- <FHTextArea
22368
- [(ngModel)]="translation"
22369
- [label]="'Traduzione' | translate"
22370
- [rows]="6"
22371
- [enabled]="false">
22372
- </FHTextArea>
22373
- <div style="display:flex;justify-content:flex-end;">
22374
- <button mat-stroked-button color="primary" (click)="copy()" [matTooltip]="'Copia' | translate">
22375
- <mat-icon>content_copy</mat-icon>&nbsp;{{ 'Copia' | translate }}
22376
- </button>
22377
- </div>
22378
- </div>
22379
-
22380
- </div>
22381
- </div>
22382
- </fh-dialog-base>
22321
+ ], template: `
22322
+ <fh-dialog-base
22323
+ [title]="title"
22324
+ [buttons]="buttons"
22325
+ [buttonsAlignment]="'center'"
22326
+ (beforeClose)="onBeforeClose($event)">
22327
+
22328
+ <div dialog-content class="scrollable-content">
22329
+ <div style="display:flex;flex-direction:column;gap:14px;width:640px;max-width:88vw;padding-top:6px;">
22330
+
22331
+ <!-- Lingua di destinazione -->
22332
+ <FHComboBox
22333
+ #langCombo
22334
+ [(ngModel)]="dest_lang"
22335
+ [label]="'Lingua di destinazione' | translate"
22336
+ [sql]="lang_values"
22337
+ [enabled]="!loading"
22338
+ (selchange)="onLangChange()">
22339
+ </FHComboBox>
22340
+
22341
+ <!-- Testo da tradurre (inglese) -->
22342
+ <FHTextArea
22343
+ [(ngModel)]="text"
22344
+ [label]="'Testo da tradurre (inglese)' | translate"
22345
+ [rows]="6"
22346
+ [enabled]="!loading">
22347
+ </FHTextArea>
22348
+
22349
+ <!-- Pulsante Traduci -->
22350
+ <div style="display:flex;justify-content:center;">
22351
+ <button mat-flat-button color="primary" (click)="do_translate()" [disabled]="loading">
22352
+ <mat-icon>translate</mat-icon>&nbsp;{{ 'Traduci' | translate }}
22353
+ </button>
22354
+ </div>
22355
+
22356
+ <!-- Spinner durante la traduzione -->
22357
+ <div *ngIf="loading"
22358
+ style="display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px 0;">
22359
+ <mat-spinner [diameter]="44"></mat-spinner>
22360
+ <div style="margin-top:10px;color:#666;font-size:13px;">
22361
+ {{ 'Traduzione in corso...' | translate }}
22362
+ </div>
22363
+ </div>
22364
+
22365
+ <!-- Risultato -->
22366
+ <div *ngIf="!loading && translation" style="display:flex;flex-direction:column;gap:6px;">
22367
+ <FHTextArea
22368
+ [(ngModel)]="translation"
22369
+ [label]="'Traduzione' | translate"
22370
+ [rows]="6"
22371
+ [enabled]="false">
22372
+ </FHTextArea>
22373
+ <div style="display:flex;justify-content:flex-end;">
22374
+ <button mat-stroked-button color="primary" (click)="copy()" [matTooltip]="'Copia' | translate">
22375
+ <mat-icon>content_copy</mat-icon>&nbsp;{{ 'Copia' | translate }}
22376
+ </button>
22377
+ </div>
22378
+ </div>
22379
+
22380
+ </div>
22381
+ </div>
22382
+ </fh-dialog-base>
22383
22383
  `, styles: [":host ::ng-deep .mat-mdc-dialog-content,:host ::ng-deep mat-dialog-content{flex:1 1 auto!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding:0!important}.scrollable-content{overflow-y:auto;overflow-x:hidden;padding-right:6px}\n"] }]
22384
22384
  }], ctorParameters: () => [{ type: i1$2.MatDialogRef }, { type: i1$1.HttpClient }, { type: i3$1.ToastrService }, { type: undefined, decorators: [{
22385
22385
  type: Inject,
@@ -29258,6 +29258,7 @@ class win_conferma_v2 {
29258
29258
  icon = '';
29259
29259
  color_font = '';
29260
29260
  color = '';
29261
+ background_color = '';
29261
29262
  nota_commento = '';
29262
29263
  title = 'COMMENTI';
29263
29264
  comm_notrequired = 0;
@@ -29286,6 +29287,8 @@ class win_conferma_v2 {
29286
29287
  this.color_font = data.color_font;
29287
29288
  if (data.color != null)
29288
29289
  this.color = data.color;
29290
+ if (data.background_color != null)
29291
+ this.background_color = data.background_color;
29289
29292
  }
29290
29293
  if (this.comm_notrequired == 2)
29291
29294
  this.nota_commento = '(COMMENTO NON OBBLIGATORIO)';
@@ -29348,7 +29351,7 @@ class win_conferma_v2 {
29348
29351
  <div
29349
29352
  class="custom-title-box"
29350
29353
  [style.border-color]="color"
29351
- [style.color]="color_font || '#1e2755'"
29354
+ [style.color]="background_color || '#1e2755'"
29352
29355
  >
29353
29356
  <i
29354
29357
  *ngIf="icon != null && icon != ''"
@@ -29410,7 +29413,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
29410
29413
  <div
29411
29414
  class="custom-title-box"
29412
29415
  [style.border-color]="color"
29413
- [style.color]="color_font || '#1e2755'"
29416
+ [style.color]="background_color || '#1e2755'"
29414
29417
  >
29415
29418
  <i
29416
29419
  *ngIf="icon != null && icon != ''"
@@ -31042,7 +31045,7 @@ class win_select_level_v2 {
31042
31045
  this.data = data;
31043
31046
  this.trans = data.map((v) => {
31044
31047
  if (!v.color)
31045
- v.color = '#FFF';
31048
+ v.color = '#1e2755';
31046
31049
  if (!v.color_font)
31047
31050
  v.color_font = '#1e2755';
31048
31051
  return v;
@@ -31092,7 +31095,7 @@ class win_select_level_v2 {
31092
31095
  [style.border-color]="app.background_color || '#ddd'"
31093
31096
  [style.border-left-color]="app.color"
31094
31097
  [style.background-color]="'#fafafa'"
31095
- [style.color]="app.color_font || '#1e2755'"
31098
+ [style.color]="app.color"
31096
31099
  (click)="sel(app)">
31097
31100
  <i *ngIf="app.icon && app.icon!=''" [ngClass]="'fa ' + app.icon" aria-hidden="true"></i>
31098
31101
  <span>{{ app.description | translate }}</span>
@@ -31124,7 +31127,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
31124
31127
  [style.border-color]="app.background_color || '#ddd'"
31125
31128
  [style.border-left-color]="app.color"
31126
31129
  [style.background-color]="'#fafafa'"
31127
- [style.color]="app.color_font || '#1e2755'"
31130
+ [style.color]="app.color"
31128
31131
  (click)="sel(app)">
31129
31132
  <i *ngIf="app.icon && app.icon!=''" [ngClass]="'fa ' + app.icon" aria-hidden="true"></i>
31130
31133
  <span>{{ app.description | translate }}</span>
@@ -31787,6 +31790,7 @@ class FHWorkflowForm {
31787
31790
  icon: o.icon,
31788
31791
  color_font: o.color_font,
31789
31792
  color: o.color,
31793
+ background_color: o.background_color,
31790
31794
  commento_default: '',
31791
31795
  comm_notrequired: o.comments_opt,
31792
31796
  utenti: sp,