@fluxhub/fluxhub-lib 19.0.176 → 19.0.177

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,
@@ -31042,7 +31042,7 @@ class win_select_level_v2 {
31042
31042
  this.data = data;
31043
31043
  this.trans = data.map((v) => {
31044
31044
  if (!v.color)
31045
- v.color = '#FFF';
31045
+ v.color = '#1e2755';
31046
31046
  if (!v.color_font)
31047
31047
  v.color_font = '#1e2755';
31048
31048
  return v;
@@ -31092,7 +31092,7 @@ class win_select_level_v2 {
31092
31092
  [style.border-color]="app.background_color || '#ddd'"
31093
31093
  [style.border-left-color]="app.color"
31094
31094
  [style.background-color]="'#fafafa'"
31095
- [style.color]="app.color_font || '#1e2755'"
31095
+ [style.color]="app.color"
31096
31096
  (click)="sel(app)">
31097
31097
  <i *ngIf="app.icon && app.icon!=''" [ngClass]="'fa ' + app.icon" aria-hidden="true"></i>
31098
31098
  <span>{{ app.description | translate }}</span>
@@ -31124,7 +31124,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
31124
31124
  [style.border-color]="app.background_color || '#ddd'"
31125
31125
  [style.border-left-color]="app.color"
31126
31126
  [style.background-color]="'#fafafa'"
31127
- [style.color]="app.color_font || '#1e2755'"
31127
+ [style.color]="app.color"
31128
31128
  (click)="sel(app)">
31129
31129
  <i *ngIf="app.icon && app.icon!=''" [ngClass]="'fa ' + app.icon" aria-hidden="true"></i>
31130
31130
  <span>{{ app.description | translate }}</span>