@fluxhub/fluxhub-lib 22.0.18 → 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.
|
@@ -167,11 +167,21 @@ function fhEventId(h) {
|
|
|
167
167
|
* Se il chiamante non lo gestisce arriverebbe a Rustrak come "Error: No error message",
|
|
168
168
|
* doppione del KO: il portale lo riconosce con fhIsHandled() e lo scarta.
|
|
169
169
|
*/
|
|
170
|
-
function fhHandledError() {
|
|
170
|
+
function fhHandledError(serverMsg) {
|
|
171
171
|
const e = new Error();
|
|
172
172
|
e.fhHandled = true;
|
|
173
|
+
// Il testo del KO (es. il messaggio di un trigger: «MM: istruzioni rilasciate…») resta
|
|
174
|
+
// leggibile dal chiamante che spegne il toast e vuole mostrare il motivo a modo suo.
|
|
175
|
+
// Non va in message: l'errore resterebbe uguale per i filtri di Rustrak, ma si
|
|
176
|
+
// confonderebbe con quelli non gestiti nei log della console.
|
|
177
|
+
if (serverMsg)
|
|
178
|
+
e.serverMsg = serverMsg;
|
|
173
179
|
return e;
|
|
174
180
|
}
|
|
181
|
+
/** Il testo del KO portato da fhHandledError, se c'e'. */
|
|
182
|
+
function fhServerMsg(err) {
|
|
183
|
+
return err?.serverMsg || '';
|
|
184
|
+
}
|
|
175
185
|
function fhIsHandled(err) {
|
|
176
186
|
return !!err?.fhHandled;
|
|
177
187
|
}
|
|
@@ -1837,7 +1847,7 @@ class QueryService {
|
|
|
1837
1847
|
&& err.message.indexOf('Could not connect (sequence)') == -1)))
|
|
1838
1848
|
this.toastr.error(queryp.sql + ' ' + err.message);
|
|
1839
1849
|
}
|
|
1840
|
-
throw fhHandledError();
|
|
1850
|
+
throw fhHandledError(err.message);
|
|
1841
1851
|
}
|
|
1842
1852
|
if (this.app_s.COMPANY_KEY == 'COCIF_')
|
|
1843
1853
|
if (!!res)
|
|
@@ -2138,7 +2148,7 @@ class DialogBaseComponent {
|
|
|
2138
2148
|
return this.buttons.filter((b) => b.alignLeft !== true);
|
|
2139
2149
|
}
|
|
2140
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 });
|
|
2141
|
-
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 });
|
|
2142
2152
|
}
|
|
2143
2153
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: DialogBaseComponent, decorators: [{
|
|
2144
2154
|
type: Component,
|
|
@@ -2148,7 +2158,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
2148
2158
|
MatButtonModule,
|
|
2149
2159
|
MatIconModule,
|
|
2150
2160
|
TranslateModule,
|
|
2151
|
-
], 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"] }]
|
|
2152
2162
|
}], ctorParameters: () => [{ type: i1$2.MatDialogRef }], propDecorators: { title: [{
|
|
2153
2163
|
type: Input
|
|
2154
2164
|
}], buttons: [{
|
|
@@ -2566,7 +2576,7 @@ class OdbcService {
|
|
|
2566
2576
|
&& err.message.indexOf('Could not connect (sequence)') == -1))
|
|
2567
2577
|
this.toastr.error(queryp.sql + ' ' + err.message);
|
|
2568
2578
|
}
|
|
2569
|
-
throw fhHandledError();
|
|
2579
|
+
throw fhHandledError(err.message);
|
|
2570
2580
|
}
|
|
2571
2581
|
return res || new QGResult();
|
|
2572
2582
|
}), catchError((err) => {
|
|
@@ -10246,7 +10256,7 @@ class GridService {
|
|
|
10246
10256
|
if (displayError) {
|
|
10247
10257
|
this.toastr.error(err.message);
|
|
10248
10258
|
}
|
|
10249
|
-
throw fhHandledError();
|
|
10259
|
+
throw fhHandledError(err.message);
|
|
10250
10260
|
}
|
|
10251
10261
|
if (this.app_s.COMPANY_KEY == 'COCIF_')
|
|
10252
10262
|
if (!!res)
|
|
@@ -10319,7 +10329,7 @@ class FileService {
|
|
|
10319
10329
|
if (displayError) {
|
|
10320
10330
|
this.toastr.error(err.message);
|
|
10321
10331
|
}
|
|
10322
|
-
throw fhHandledError();
|
|
10332
|
+
throw fhHandledError(err.message);
|
|
10323
10333
|
}
|
|
10324
10334
|
return res || new QGResult();
|
|
10325
10335
|
}), catchError((err) => {
|
|
@@ -40123,7 +40133,7 @@ class QueryOpenService {
|
|
|
40123
40133
|
&& err.message.indexOf('Could not connect (sequence)') == -1)))
|
|
40124
40134
|
this.toastr.error(queryp.sql + ' ' + err.message);
|
|
40125
40135
|
}
|
|
40126
|
-
throw fhHandledError();
|
|
40136
|
+
throw fhHandledError(err.message);
|
|
40127
40137
|
}
|
|
40128
40138
|
if (this.app_s.COMPANY_KEY == 'COCIF_')
|
|
40129
40139
|
if (!!res)
|
|
@@ -43551,5 +43561,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
43551
43561
|
* Generated bundle index. Do not edit.
|
|
43552
43562
|
*/
|
|
43553
43563
|
|
|
43554
|
-
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, BpmnEditorComponent, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, DialogBaseComponent, FHAiAssistantComponent, FHAiChatComponent, FHAiService, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHIconPickerComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMailArchivedComponent, FHMailPreviewComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHToolBarCustomAction, FHToolbarCommandType, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSearchListComponent, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowTasksPanel, FHWorkflowView, FH_ERROR_REPORTER, FH_EVENT_ID_HEADER, FH_MONITORING_DEFAULTS, FH_MONITORING_IGNORE_ERRORS, FH_ROUTE_HEADER, FSInput, FSResult, FileService, GridService, LocalDBService, MonthYearPickerComponent, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryOpenService, QueryService, RegistrationService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService, YearPickerComponent, createButtonCommand, createCheckboxCommand, createSpacerCommand, createTableManagerCommand, fhHandledError, fhIsHandled, fhMonitoringBeforeBreadcrumb, fhMonitoringBeforeSend, fh_win_translate, wkfField };
|
|
43564
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, BpmnEditorComponent, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, DialogBaseComponent, FHAiAssistantComponent, FHAiChatComponent, FHAiService, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHIconPickerComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMailArchivedComponent, FHMailPreviewComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHToolBarCustomAction, FHToolbarCommandType, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSearchListComponent, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowTasksPanel, FHWorkflowView, FH_ERROR_REPORTER, FH_EVENT_ID_HEADER, FH_MONITORING_DEFAULTS, FH_MONITORING_IGNORE_ERRORS, FH_ROUTE_HEADER, FSInput, FSResult, FileService, GridService, LocalDBService, MonthYearPickerComponent, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryOpenService, QueryService, RegistrationService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService, YearPickerComponent, createButtonCommand, createCheckboxCommand, createSpacerCommand, createTableManagerCommand, fhHandledError, fhIsHandled, fhMonitoringBeforeBreadcrumb, fhMonitoringBeforeSend, fhServerMsg, fh_win_translate, wkfField };
|
|
43555
43565
|
//# sourceMappingURL=fluxhub-fluxhub-lib.mjs.map
|