@fluxhub/fluxhub-lib 18.0.42 → 18.0.44
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.
- package/esm2022/lib/controls/dialog-base/dialog-base.component.mjs +3 -3
- package/esm2022/lib/wkf_engine/wkf-data-form.mjs +4 -1
- package/esm2022/lib/wkf_engine_v2/wkf-form-data.mjs +4 -1
- package/fesm2022/fluxhub-fluxhub-lib.mjs +8 -2
- package/fesm2022/fluxhub-fluxhub-lib.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -24015,7 +24015,7 @@ class DialogBaseComponent {
|
|
|
24015
24015
|
return this.buttons.filter((b) => b.alignLeft !== true);
|
|
24016
24016
|
}
|
|
24017
24017
|
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 });
|
|
24018
|
-
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 });
|
|
24018
|
+
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 $index) {\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 $index) {\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 });
|
|
24019
24019
|
}
|
|
24020
24020
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DialogBaseComponent, decorators: [{
|
|
24021
24021
|
type: Component,
|
|
@@ -24025,7 +24025,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
24025
24025
|
MatButtonModule,
|
|
24026
24026
|
MatIconModule,
|
|
24027
24027
|
TranslateModule,
|
|
24028
|
-
], 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
|
|
24028
|
+
], 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 $index) {\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 $index) {\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"] }]
|
|
24029
24029
|
}], ctorParameters: () => [{ type: i1$2.MatDialogRef }], propDecorators: { title: [{
|
|
24030
24030
|
type: Input
|
|
24031
24031
|
}], buttons: [{
|
|
@@ -39953,6 +39953,9 @@ class dati_aggiuntivi {
|
|
|
39953
39953
|
}
|
|
39954
39954
|
save_alreadypressed = false;
|
|
39955
39955
|
salva() {
|
|
39956
|
+
// app_info si carica in modo asincrono: un doppio clic sul salva dopo new -> edit arrivava prima
|
|
39957
|
+
if (this.app_info == null)
|
|
39958
|
+
return;
|
|
39956
39959
|
if (this.save_alreadypressed)
|
|
39957
39960
|
return;
|
|
39958
39961
|
this.save_alreadypressed = true;
|
|
@@ -43190,6 +43193,9 @@ class dati_aggiuntivi_v2 {
|
|
|
43190
43193
|
}
|
|
43191
43194
|
save_alreadypressed = false;
|
|
43192
43195
|
salva() {
|
|
43196
|
+
// app_info si carica in modo asincrono: un doppio clic sul salva dopo new -> edit arrivava prima
|
|
43197
|
+
if (this.app_info == null)
|
|
43198
|
+
return;
|
|
43193
43199
|
if (!this.can_save())
|
|
43194
43200
|
return;
|
|
43195
43201
|
if (this.save_alreadypressed)
|