@fluxhub/fluxhub-lib 18.0.39 → 18.0.41

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Injectable, inject, forwardRef, EventEmitter, Component, Input, ViewChild, Output, Inject, Pipe, Directive, HostListener, ViewContainerRef, Optional, HostBinding, NgModule } from '@angular/core';
2
+ import { InjectionToken, Injectable, inject, forwardRef, EventEmitter, Component, Input, ViewChild, Output, Inject, Pipe, Directive, HostListener, ViewContainerRef, Optional, HostBinding, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
3
  import * as i1$1 from '@angular/common/http';
4
4
  import { HttpErrorResponse, HttpHeaders } from '@angular/common/http';
5
5
  import { map, catchError, flatMap, debounceTime, switchMap, filter, take, tap } from 'rxjs/operators';
@@ -15853,10 +15853,26 @@ class FHNumericFieldComponent {
15853
15853
  constructor(uti_s) {
15854
15854
  this.uti_s = uti_s;
15855
15855
  this.modelChangeSubject.pipe(debounceTime(300)).subscribe(value => {
15856
- this.onChange(value.split(this.suffixSymbol).join(""));
15856
+ // Al modello va sempre un numero (come in chg()), non la stringa formattata ("10.624,66"):
15857
+ // il testo nel campo non viene toccato. Se nel frattempo c'e' stato blur/invio/writeValue
15858
+ // il valore e' gia' stato propagato e questa emissione e' superata. (change) resta invariato.
15859
+ if (this.typingPending) {
15860
+ this.typingPending = false;
15861
+ const num = this.parseFormatted(value);
15862
+ if (num != null)
15863
+ this.onChange(num);
15864
+ }
15857
15865
  this.change.emit(value.split(this.suffixSymbol).join(""));
15858
15866
  });
15859
15867
  }
15868
+ typingPending = false;
15869
+ // Stesso parsing di chg(); null se il testo non e' (ancora) un numero, es. solo "-"
15870
+ parseFormatted(text) {
15871
+ if (text == null || text == "")
15872
+ return this.uti_s.round(0, this.decimal);
15873
+ const num = this.uti_s.round(parseFloat(text.split(".").join("").split(",").join(".").split(this.suffixSymbol).join("")), this.decimal);
15874
+ return isNaN(num) ? null : num;
15875
+ }
15860
15876
  keyDownFunctioncl(event) {
15861
15877
  //console.log(event);
15862
15878
  if (event.keyCode == 13) {
@@ -15865,6 +15881,7 @@ class FHNumericFieldComponent {
15865
15881
  }
15866
15882
  }
15867
15883
  modelch() {
15884
+ this.typingPending = true;
15868
15885
  setTimeout(() => {
15869
15886
  this.modelChangeSubject.next(this.formattedAmount);
15870
15887
  });
@@ -15893,11 +15910,13 @@ class FHNumericFieldComponent {
15893
15910
  this.formattedAmount = this.transform(this.value, this.decimal) + this.suffixSymbol;
15894
15911
  }
15895
15912
  this.chgf = true;
15913
+ this.typingPending = false;
15896
15914
  this.onChange(this.value);
15897
15915
  }
15898
15916
  writeValue(value) {
15899
15917
  if (value == null)
15900
15918
  value = 0.0;
15919
+ this.typingPending = false;
15901
15920
  this.innerValue = value;
15902
15921
  this.value = value;
15903
15922
  this.formattedAmount = this.transform(this.value, this.decimal) + this.suffixSymbol;
@@ -23867,6 +23886,158 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
23867
23886
  type: Input
23868
23887
  }] } });
23869
23888
 
23889
+ /**
23890
+ * Componente base riutilizzabile per le dialog
23891
+ *
23892
+ * Esempio di utilizzo:
23893
+ * ```typescript
23894
+ * const dialogRef = this.dialog.open(MyDialogComponent, {
23895
+ * width: '900px',
23896
+ * maxWidth: '95vw',
23897
+ * maxHeight: '85vh',
23898
+ * data: { ... }
23899
+ * });
23900
+ * ```
23901
+ *
23902
+ * Nel template del componente:
23903
+ * ```html
23904
+ * <fh-dialog-base
23905
+ * [title]="'Titolo Dialog'"
23906
+ * [buttons]="buttons"
23907
+ * [canValidate]="canSave"
23908
+ * (beforeClose)="onBeforeClose($event)"
23909
+ * (buttonClick)="onButtonClick($event)">
23910
+ *
23911
+ * <!-- Contenuto proiettato -->
23912
+ * <div dialog-content>
23913
+ * <p>Contenuto della dialog</p>
23914
+ * </div>
23915
+ * </fh-dialog-base>
23916
+ * ```
23917
+ */
23918
+ class DialogBaseComponent {
23919
+ dialogRef;
23920
+ /**
23921
+ * Titolo della dialog
23922
+ */
23923
+ title = '';
23924
+ /**
23925
+ * Configurazione dei pulsanti
23926
+ */
23927
+ buttons = [];
23928
+ /**
23929
+ * Mostra il pulsante X di chiusura nell'header
23930
+ */
23931
+ showCloseButton = true;
23932
+ /**
23933
+ * Funzione di validazione personalizzata
23934
+ * Restituisce true se la validazione è OK, false altrimenti
23935
+ * Usato per disabilitare i pulsanti che hanno requireValidation = true
23936
+ */
23937
+ canValidate = true;
23938
+ /**
23939
+ * Allineamento dei pulsanti nel footer
23940
+ * 'space-between': pulsanti distribuiti tra sinistra e destra (default)
23941
+ * 'center': pulsanti centrati
23942
+ * 'flex-end': pulsanti allineati a destra
23943
+ * 'flex-start': pulsanti allineati a sinistra
23944
+ */
23945
+ buttonsAlignment = 'space-between';
23946
+ /**
23947
+ * Evento emesso quando viene cliccato un pulsante
23948
+ * Payload: returnValue del pulsante
23949
+ */
23950
+ buttonClick = new EventEmitter();
23951
+ /**
23952
+ * Evento emesso prima della chiusura della dialog
23953
+ * Permette di validare e impedire la chiusura chiamando preventDefault()
23954
+ */
23955
+ beforeClose = new EventEmitter();
23956
+ constructor(dialogRef) {
23957
+ this.dialogRef = dialogRef;
23958
+ }
23959
+ /**
23960
+ * Gestisce il click sul pulsante X di chiusura
23961
+ */
23962
+ onCloseClick() {
23963
+ this.closeDialog(undefined);
23964
+ }
23965
+ /**
23966
+ * Gestisce il click su un pulsante della dialog
23967
+ */
23968
+ onButtonClick(button) {
23969
+ // Emetti evento per permettere al componente padre di gestire il click
23970
+ this.buttonClick.emit(button.returnValue);
23971
+ // Chiudi la dialog con il valore di ritorno del pulsante
23972
+ this.closeDialog(button.returnValue);
23973
+ }
23974
+ /**
23975
+ * Chiude la dialog dopo aver validato
23976
+ */
23977
+ closeDialog(returnValue) {
23978
+ let preventClose = false;
23979
+ const event = {
23980
+ returnValue,
23981
+ preventDefault: () => {
23982
+ preventClose = true;
23983
+ },
23984
+ };
23985
+ // Emetti evento beforeClose per permettere validazione
23986
+ this.beforeClose.emit(event);
23987
+ // Chiudi solo se non è stato chiamato preventDefault()
23988
+ if (!preventClose) {
23989
+ this.dialogRef.close(returnValue);
23990
+ }
23991
+ }
23992
+ /**
23993
+ * Verifica se la validazione è OK
23994
+ */
23995
+ isValid() {
23996
+ if (typeof this.canValidate === 'function') {
23997
+ return this.canValidate();
23998
+ }
23999
+ return this.canValidate;
24000
+ }
24001
+ /**
24002
+ * Ottiene i pulsanti allineati a sinistra
24003
+ */
24004
+ getLeftButtons() {
24005
+ return this.buttons.filter((b) => b.alignLeft === true);
24006
+ }
24007
+ /**
24008
+ * Ottiene i pulsanti allineati a destra
24009
+ */
24010
+ getRightButtons() {
24011
+ return this.buttons.filter((b) => b.alignLeft !== true);
24012
+ }
24013
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DialogBaseComponent, deps: [{ token: i1$2.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
24014
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DialogBaseComponent, isStandalone: true, selector: "fh-dialog-base", inputs: { title: "title", buttons: "buttons", showCloseButton: "showCloseButton", canValidate: "canValidate", buttonsAlignment: "buttonsAlignment" }, outputs: { buttonClick: "buttonClick", beforeClose: "beforeClose" }, ngImport: i0, template: "<div\n style=\"\n display: flex;\n flex-direction: column;\n width: 100%;\n max-height: 85vh;\n overflow: hidden;\n box-sizing: border-box;\n \"\n>\n <!-- Header -->\n <div class=\"dialog_header\">\n <div\n style=\"\n flex: 1;\n display: flex;\n align-items: center;\n padding-left: 20px;\n overflow: hidden;\n \"\n >\n <span\n style=\"overflow: hidden; text-overflow: ellipsis; white-space: nowrap\"\n >{{ title | translate }}</span\n >\n </div>\n @if (showCloseButton) {\n <div\n style=\"\n display: flex;\n align-items: center;\n justify-content: center;\n padding-right: 10px;\n flex-shrink: 0;\n \"\n >\n <mat-icon style=\"cursor: pointer; color: #fff\" (click)=\"onCloseClick()\">\n close\n </mat-icon>\n </div>\n }\n </div>\n <hr />\n\n <!-- Content (Content Projection) -->\n <mat-dialog-content>\n <!-- padding-top 24px: la label flottante di un mat-form-field sporge SOPRA il bordo del campo,\n e questo wrapper (overflow-y:auto) la taglierebbe quando il campo e' il primo elemento del\n dialog. Servono 24px e non i ~10px del Material di serie perche' i portali comprimono i\n form-field (.mat-mdc-form-field-infix con padding ridotto): la label flotta piu' in alto. -->\n <div\n style=\"\n padding: 24px 10px 8px;\n overflow-y: auto;\n overflow-x: hidden;\n flex: 1 1 auto;\n box-sizing: border-box;\n word-wrap: break-word;\n \"\n >\n <ng-content select=\"[dialog-content]\"></ng-content>\n </div>\n </mat-dialog-content>\n\n <!-- Actions -->\n <mat-dialog-actions\n [style.padding]=\"'16px 20px'\"\n [style.display]=\"'flex'\"\n [style.justify-content]=\"buttonsAlignment\"\n [style.overflow]=\"'hidden'\"\n [style.box-sizing]=\"'border-box'\"\n [style.flex-wrap]=\"'wrap'\"\n [style.gap]=\"'10px'\"\n >\n <!-- Pulsanti allineati a sinistra (es. Elimina) -->\n <div style=\"display: flex; flex-direction: row; gap: 10px; flex-wrap: wrap\">\n @for (button of getLeftButtons(); track button) {\n @if (button.type === \"raised\" || !button.type) {\n <button\n mat-raised-button\n [color]=\"button.color\"\n [disabled]=\"button.disabled\"\n [class]=\"button.cssClass\"\n [class.dialog-button-sized]=\"button.minWidth && button.minWidth > 0\"\n [ngStyle]=\"\n button.minWidth && button.minWidth > 0\n ? { 'min-width': button.minWidth + 'px' }\n : {}\n \"\n (click)=\"onButtonClick(button)\"\n >\n @if (button.icon) {\n <mat-icon>{{ button.icon }}</mat-icon>\n }\n {{ button.text | translate }}\n </button>\n }\n @if (button.type === \"stroked\") {\n <button\n mat-stroked-button\n [color]=\"button.color\"\n [disabled]=\"button.disabled\"\n [class]=\"button.cssClass\"\n [class.dialog-button-sized]=\"button.minWidth && button.minWidth > 0\"\n [ngStyle]=\"\n button.minWidth && button.minWidth > 0\n ? { 'min-width': button.minWidth + 'px' }\n : {}\n \"\n (click)=\"onButtonClick(button)\"\n >\n @if (button.icon) {\n <mat-icon>{{ button.icon }}</mat-icon>\n }\n {{ button.text | translate }}\n </button>\n }\n @if (button.type === \"flat\") {\n <button\n mat-flat-button\n [color]=\"button.color\"\n [disabled]=\"button.disabled\"\n [class]=\"button.cssClass\"\n [class.dialog-button-sized]=\"button.minWidth && button.minWidth > 0\"\n [ngStyle]=\"\n button.minWidth && button.minWidth > 0\n ? { 'min-width': button.minWidth + 'px' }\n : {}\n \"\n (click)=\"onButtonClick(button)\"\n >\n @if (button.icon) {\n <mat-icon>{{ button.icon }}</mat-icon>\n }\n {{ button.text | translate }}\n </button>\n }\n @if (button.type === \"icon\") {\n <button\n mat-icon-button\n [color]=\"button.color\"\n [disabled]=\"button.disabled\"\n [class]=\"button.cssClass\"\n [class.dialog-button-sized]=\"button.minWidth && button.minWidth > 0\"\n [ngStyle]=\"\n button.minWidth && button.minWidth > 0\n ? { 'min-width': button.minWidth + 'px' }\n : {}\n \"\n (click)=\"onButtonClick(button)\"\n >\n @if (button.icon) {\n <mat-icon>{{ button.icon }}</mat-icon>\n }\n {{ button.text | translate }}\n </button>\n }\n }\n </div>\n\n <!-- Pulsanti allineati a destra (default) -->\n <div style=\"display: flex; flex-direction: row; gap: 10px; flex-wrap: wrap\">\n @for (button of getRightButtons(); track button) {\n @if (button.type === \"raised\" || !button.type) {\n <button\n mat-raised-button\n [color]=\"button.color\"\n [disabled]=\"button.disabled\"\n [class]=\"button.cssClass\"\n [class.dialog-button-sized]=\"button.minWidth && button.minWidth > 0\"\n [ngStyle]=\"\n button.minWidth && button.minWidth > 0\n ? { 'min-width': button.minWidth + 'px' }\n : {}\n \"\n (click)=\"onButtonClick(button)\"\n >\n @if (button.icon) {\n <mat-icon>{{ button.icon }}</mat-icon>\n }\n {{ button.text | translate }}\n </button>\n }\n @if (button.type === \"stroked\") {\n <button\n mat-stroked-button\n [color]=\"button.color\"\n [disabled]=\"button.disabled\"\n [class]=\"button.cssClass\"\n [class.dialog-button-sized]=\"button.minWidth && button.minWidth > 0\"\n [ngStyle]=\"\n button.minWidth && button.minWidth > 0\n ? { 'min-width': button.minWidth + 'px' }\n : {}\n \"\n (click)=\"onButtonClick(button)\"\n >\n @if (button.icon) {\n <mat-icon>{{ button.icon }}</mat-icon>\n }\n {{ button.text | translate }}\n </button>\n }\n @if (button.type === \"flat\") {\n <button\n mat-flat-button\n [color]=\"button.color\"\n [disabled]=\"button.disabled\"\n [class]=\"button.cssClass\"\n [class.dialog-button-sized]=\"button.minWidth && button.minWidth > 0\"\n [ngStyle]=\"\n button.minWidth && button.minWidth > 0\n ? { 'min-width': button.minWidth + 'px' }\n : {}\n \"\n (click)=\"onButtonClick(button)\"\n >\n @if (button.icon) {\n <mat-icon>{{ button.icon }}</mat-icon>\n }\n {{ button.text | translate }}\n </button>\n }\n @if (button.type === \"icon\") {\n <button\n mat-icon-button\n [color]=\"button.color\"\n [disabled]=\"button.disabled\"\n [class]=\"button.cssClass\"\n [class.dialog-button-sized]=\"button.minWidth && button.minWidth > 0\"\n [ngStyle]=\"\n button.minWidth && button.minWidth > 0\n ? { 'min-width': button.minWidth + 'px' }\n : {}\n \"\n (click)=\"onButtonClick(button)\"\n >\n @if (button.icon) {\n <mat-icon>{{ button.icon }}</mat-icon>\n }\n {{ button.text | translate }}\n </button>\n }\n }\n </div>\n </mat-dialog-actions>\n</div>\n", styles: [":host{display:block}button mat-icon{margin-right:8px}button.mat-icon-button mat-icon{margin-right:0}::ng-deep mat-dialog-actions button.dialog-button-sized{min-width:110px!important}.mat-mdc-dialog-content{max-height:100%!important;min-height:0!important;flex:1 1 auto!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding:0!important}.mat-mdc-dialog-content>div{flex:1 1 auto!important;min-height:0!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i5$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i5$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i9.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Default });
24015
+ }
24016
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DialogBaseComponent, decorators: [{
24017
+ type: Component,
24018
+ args: [{ selector: 'fh-dialog-base', standalone: true, imports: [
24019
+ CommonModule,
24020
+ MatDialogModule,
24021
+ MatButtonModule,
24022
+ MatIconModule,
24023
+ TranslateModule,
24024
+ ], changeDetection: ChangeDetectionStrategy.Default, template: "<div\n style=\"\n display: flex;\n flex-direction: column;\n width: 100%;\n max-height: 85vh;\n overflow: hidden;\n box-sizing: border-box;\n \"\n>\n <!-- Header -->\n <div class=\"dialog_header\">\n <div\n style=\"\n flex: 1;\n display: flex;\n align-items: center;\n padding-left: 20px;\n overflow: hidden;\n \"\n >\n <span\n style=\"overflow: hidden; text-overflow: ellipsis; white-space: nowrap\"\n >{{ title | translate }}</span\n >\n </div>\n @if (showCloseButton) {\n <div\n style=\"\n display: flex;\n align-items: center;\n justify-content: center;\n padding-right: 10px;\n flex-shrink: 0;\n \"\n >\n <mat-icon style=\"cursor: pointer; color: #fff\" (click)=\"onCloseClick()\">\n close\n </mat-icon>\n </div>\n }\n </div>\n <hr />\n\n <!-- Content (Content Projection) -->\n <mat-dialog-content>\n <!-- padding-top 24px: la label flottante di un mat-form-field sporge SOPRA il bordo del campo,\n e questo wrapper (overflow-y:auto) la taglierebbe quando il campo e' il primo elemento del\n dialog. Servono 24px e non i ~10px del Material di serie perche' i portali comprimono i\n form-field (.mat-mdc-form-field-infix con padding ridotto): la label flotta piu' in alto. -->\n <div\n style=\"\n padding: 24px 10px 8px;\n overflow-y: auto;\n overflow-x: hidden;\n flex: 1 1 auto;\n box-sizing: border-box;\n word-wrap: break-word;\n \"\n >\n <ng-content select=\"[dialog-content]\"></ng-content>\n </div>\n </mat-dialog-content>\n\n <!-- Actions -->\n <mat-dialog-actions\n [style.padding]=\"'16px 20px'\"\n [style.display]=\"'flex'\"\n [style.justify-content]=\"buttonsAlignment\"\n [style.overflow]=\"'hidden'\"\n [style.box-sizing]=\"'border-box'\"\n [style.flex-wrap]=\"'wrap'\"\n [style.gap]=\"'10px'\"\n >\n <!-- Pulsanti allineati a sinistra (es. Elimina) -->\n <div style=\"display: flex; flex-direction: row; gap: 10px; flex-wrap: wrap\">\n @for (button of getLeftButtons(); track button) {\n @if (button.type === \"raised\" || !button.type) {\n <button\n mat-raised-button\n [color]=\"button.color\"\n [disabled]=\"button.disabled\"\n [class]=\"button.cssClass\"\n [class.dialog-button-sized]=\"button.minWidth && button.minWidth > 0\"\n [ngStyle]=\"\n button.minWidth && button.minWidth > 0\n ? { 'min-width': button.minWidth + 'px' }\n : {}\n \"\n (click)=\"onButtonClick(button)\"\n >\n @if (button.icon) {\n <mat-icon>{{ button.icon }}</mat-icon>\n }\n {{ button.text | translate }}\n </button>\n }\n @if (button.type === \"stroked\") {\n <button\n mat-stroked-button\n [color]=\"button.color\"\n [disabled]=\"button.disabled\"\n [class]=\"button.cssClass\"\n [class.dialog-button-sized]=\"button.minWidth && button.minWidth > 0\"\n [ngStyle]=\"\n button.minWidth && button.minWidth > 0\n ? { 'min-width': button.minWidth + 'px' }\n : {}\n \"\n (click)=\"onButtonClick(button)\"\n >\n @if (button.icon) {\n <mat-icon>{{ button.icon }}</mat-icon>\n }\n {{ button.text | translate }}\n </button>\n }\n @if (button.type === \"flat\") {\n <button\n mat-flat-button\n [color]=\"button.color\"\n [disabled]=\"button.disabled\"\n [class]=\"button.cssClass\"\n [class.dialog-button-sized]=\"button.minWidth && button.minWidth > 0\"\n [ngStyle]=\"\n button.minWidth && button.minWidth > 0\n ? { 'min-width': button.minWidth + 'px' }\n : {}\n \"\n (click)=\"onButtonClick(button)\"\n >\n @if (button.icon) {\n <mat-icon>{{ button.icon }}</mat-icon>\n }\n {{ button.text | translate }}\n </button>\n }\n @if (button.type === \"icon\") {\n <button\n mat-icon-button\n [color]=\"button.color\"\n [disabled]=\"button.disabled\"\n [class]=\"button.cssClass\"\n [class.dialog-button-sized]=\"button.minWidth && button.minWidth > 0\"\n [ngStyle]=\"\n button.minWidth && button.minWidth > 0\n ? { 'min-width': button.minWidth + 'px' }\n : {}\n \"\n (click)=\"onButtonClick(button)\"\n >\n @if (button.icon) {\n <mat-icon>{{ button.icon }}</mat-icon>\n }\n {{ button.text | translate }}\n </button>\n }\n }\n </div>\n\n <!-- Pulsanti allineati a destra (default) -->\n <div style=\"display: flex; flex-direction: row; gap: 10px; flex-wrap: wrap\">\n @for (button of getRightButtons(); track button) {\n @if (button.type === \"raised\" || !button.type) {\n <button\n mat-raised-button\n [color]=\"button.color\"\n [disabled]=\"button.disabled\"\n [class]=\"button.cssClass\"\n [class.dialog-button-sized]=\"button.minWidth && button.minWidth > 0\"\n [ngStyle]=\"\n button.minWidth && button.minWidth > 0\n ? { 'min-width': button.minWidth + 'px' }\n : {}\n \"\n (click)=\"onButtonClick(button)\"\n >\n @if (button.icon) {\n <mat-icon>{{ button.icon }}</mat-icon>\n }\n {{ button.text | translate }}\n </button>\n }\n @if (button.type === \"stroked\") {\n <button\n mat-stroked-button\n [color]=\"button.color\"\n [disabled]=\"button.disabled\"\n [class]=\"button.cssClass\"\n [class.dialog-button-sized]=\"button.minWidth && button.minWidth > 0\"\n [ngStyle]=\"\n button.minWidth && button.minWidth > 0\n ? { 'min-width': button.minWidth + 'px' }\n : {}\n \"\n (click)=\"onButtonClick(button)\"\n >\n @if (button.icon) {\n <mat-icon>{{ button.icon }}</mat-icon>\n }\n {{ button.text | translate }}\n </button>\n }\n @if (button.type === \"flat\") {\n <button\n mat-flat-button\n [color]=\"button.color\"\n [disabled]=\"button.disabled\"\n [class]=\"button.cssClass\"\n [class.dialog-button-sized]=\"button.minWidth && button.minWidth > 0\"\n [ngStyle]=\"\n button.minWidth && button.minWidth > 0\n ? { 'min-width': button.minWidth + 'px' }\n : {}\n \"\n (click)=\"onButtonClick(button)\"\n >\n @if (button.icon) {\n <mat-icon>{{ button.icon }}</mat-icon>\n }\n {{ button.text | translate }}\n </button>\n }\n @if (button.type === \"icon\") {\n <button\n mat-icon-button\n [color]=\"button.color\"\n [disabled]=\"button.disabled\"\n [class]=\"button.cssClass\"\n [class.dialog-button-sized]=\"button.minWidth && button.minWidth > 0\"\n [ngStyle]=\"\n button.minWidth && button.minWidth > 0\n ? { 'min-width': button.minWidth + 'px' }\n : {}\n \"\n (click)=\"onButtonClick(button)\"\n >\n @if (button.icon) {\n <mat-icon>{{ button.icon }}</mat-icon>\n }\n {{ button.text | translate }}\n </button>\n }\n }\n </div>\n </mat-dialog-actions>\n</div>\n", styles: [":host{display:block}button mat-icon{margin-right:8px}button.mat-icon-button mat-icon{margin-right:0}::ng-deep mat-dialog-actions button.dialog-button-sized{min-width:110px!important}.mat-mdc-dialog-content{max-height:100%!important;min-height:0!important;flex:1 1 auto!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding:0!important}.mat-mdc-dialog-content>div{flex:1 1 auto!important;min-height:0!important}\n"] }]
24025
+ }], ctorParameters: () => [{ type: i1$2.MatDialogRef }], propDecorators: { title: [{
24026
+ type: Input
24027
+ }], buttons: [{
24028
+ type: Input
24029
+ }], showCloseButton: [{
24030
+ type: Input
24031
+ }], canValidate: [{
24032
+ type: Input
24033
+ }], buttonsAlignment: [{
24034
+ type: Input
24035
+ }], buttonClick: [{
24036
+ type: Output
24037
+ }], beforeClose: [{
24038
+ type: Output
24039
+ }] } });
24040
+
23870
24041
  class fh_win_ask_number {
23871
24042
  dialogRef;
23872
24043
  toastr;
@@ -46451,5 +46622,5 @@ const KNOWN_EXT = "3G2|3GA|3GP|7Z|AA|AAC|AC|ACCDB|ACCDT|ADN|AI|AIF|AIFC|AIFF|AIT
46451
46622
  * Generated bundle index. Do not edit.
46452
46623
  */
46453
46624
 
46454
- export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHColorPickerComponent, FHComboboxComponent, FHComboboxComponentFilter, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridComponentN, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHImagePreview, FHListComponent, FHLogPanelComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHRichTextComponent, FHRoleManager, FHTableManager, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHUsersPickerComponent, FH_ERROR_REPORTER, FH_EVENT_ID_HEADER, FH_MONITORING_DEFAULTS, FH_MONITORING_IGNORE_ERRORS, FH_ROUTE_HEADER, FSInput, FSResult, FileService, FluxhublibModule, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, SafePipe, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, dati_aggiuntivi_v2, fhHandledError, fhIsHandled, fhMonitoringBeforeBreadcrumb, fhMonitoringBeforeSend, fh_win_app_logs, fh_win_ask_big_text, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_richtext, fh_win_ask_text, fh_win_auto_complete, fh_win_combo, fh_win_confirm, fh_win_error, fh_win_grid_selection, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_select_by_grid, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log, fh_win_show_log_dett, fh_win_time_slider, fh_win_upload, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, win_insert_commento, win_salva_annulla, wkf_header_bar, wkf_header_bar_v2, wkfapp, wkfapp_v2 };
46625
+ export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, DialogBaseComponent, FHAutoCompleteComponent, FHCheckBox, FHColorPickerComponent, FHComboboxComponent, FHComboboxComponentFilter, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridComponentN, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHImagePreview, FHListComponent, FHLogPanelComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHRichTextComponent, FHRoleManager, FHTableManager, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHUsersPickerComponent, FH_ERROR_REPORTER, FH_EVENT_ID_HEADER, FH_MONITORING_DEFAULTS, FH_MONITORING_IGNORE_ERRORS, FH_ROUTE_HEADER, FSInput, FSResult, FileService, FluxhublibModule, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, SafePipe, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, dati_aggiuntivi_v2, fhHandledError, fhIsHandled, fhMonitoringBeforeBreadcrumb, fhMonitoringBeforeSend, fh_win_app_logs, fh_win_ask_big_text, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_richtext, fh_win_ask_text, fh_win_auto_complete, fh_win_combo, fh_win_confirm, fh_win_error, fh_win_grid_selection, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_select_by_grid, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log, fh_win_show_log_dett, fh_win_time_slider, fh_win_upload, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, win_insert_commento, win_salva_annulla, wkf_header_bar, wkf_header_bar_v2, wkfapp, wkfapp_v2 };
46455
46626
  //# sourceMappingURL=fluxhub-fluxhub-lib.mjs.map