@fluxhub/fluxhub-lib 22.0.19 → 22.0.20
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.
|
@@ -2148,7 +2148,7 @@ class DialogBaseComponent {
|
|
|
2148
2148
|
return this.buttons.filter((b) => b.alignLeft !== true);
|
|
2149
2149
|
}
|
|
2150
2150
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: DialogBaseComponent, deps: [{ token: i1$2.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2151
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", 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: i10.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: i8.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
2151
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", 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: i10.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: i8.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
2152
2152
|
}
|
|
2153
2153
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: DialogBaseComponent, decorators: [{
|
|
2154
2154
|
type: Component,
|
|
@@ -2158,7 +2158,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
2158
2158
|
MatButtonModule,
|
|
2159
2159
|
MatIconModule,
|
|
2160
2160
|
TranslateModule,
|
|
2161
|
-
], changeDetection: ChangeDetectionStrategy.Eager, 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
|
|
2161
|
+
], changeDetection: ChangeDetectionStrategy.Eager, 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"] }]
|
|
2162
2162
|
}], ctorParameters: () => [{ type: i1$2.MatDialogRef }], propDecorators: { title: [{
|
|
2163
2163
|
type: Input
|
|
2164
2164
|
}], buttons: [{
|