structra-ui 0.2.95 → 0.2.97
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/fesm2022/structra-ui.mjs
CHANGED
|
@@ -12428,11 +12428,11 @@ class FormSectionComponent {
|
|
|
12428
12428
|
return this.titulo.trim().length > 0 || this.subtitulo.trim().length > 0;
|
|
12429
12429
|
}
|
|
12430
12430
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FormSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12431
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: FormSectionComponent, isStandalone: true, selector: "app-form-section", inputs: { titulo: "titulo", subtitulo: "subtitulo", dense: ["dense", "dense", booleanAttribute], divider: ["divider", "divider", booleanAttribute], variant: "variant", align: "align", maxWidth: "maxWidth", fullWidth: ["fullWidth", "fullWidth", booleanAttribute], radius: "radius", elevated: ["elevated", "elevated", booleanAttribute], size: "size", tamanhoCampoMobile: ["tamanhoCampoMobile", "tamanhoCampoMobile", booleanAttribute] }, host: { properties: { "class": "this.hostClass", "style.max-width": "this.hostMaxWidth", "style.margin-inline": "this.hostMarginInline" } }, usesOnChanges: true, ngImport: i0, template: "@if (showHeader) {\n<header class=\"form-section__header\">\n @if (titulo.trim()) {\n <h2 class=\"form-section__title\">{{ titulo }}</h2>\n }\n @if (subtitulo.trim()) {\n <p class=\"form-section__subtitle\">{{ subtitulo }}</p>\n }\n</header>\n}\n<div class=\"form-section__content form-section__body\">\n <ng-content />\n</div>", styles: ["@charset \"UTF-8\";:host{display:block;width:100%;min-width:0;box-sizing:border-box}.form-section{width:100%;min-width:0;box-sizing:border-box;font-family:var(--structra-font-family)}.form-section__header{margin:0 0 .55rem;padding:0}.form-section__title{margin:0 0 .2rem;font-size:1.05rem;font-weight:600;line-height:1.35;color:var(--app-color-text-primary, #1a2f45)}.form-section__subtitle{margin:0;font-size:.85rem;font-weight:var(--form-section-subtitle-weight, var(--structra-body-weight));line-height:1.4;color:var(--app-color-text-muted, #525252)}.form-section__content,.form-section__body{display:flex;flex-direction:column;gap:.4rem;min-width:0;box-sizing:border-box}:host.form-section--align-center .form-section__header{text-align:center}:host.form-section--inline{width:fit-content;max-width:100%}:host.form-section--panel,:host.form-section--card{--form-section-surface-border: var(--app-color-border-subtle, rgba(26, 47, 69, .12));--form-section-surface-bg: var(--app-color-elevated-surface, var(--app-color-surface));--form-section-surface-shadow: 0 .4rem 1.25rem rgba(15, 23, 42, .08);--form-section-surface-padding-x: .5rem;--form-section-surface-padding-y: 1rem;padding:var(--form-section-surface-padding-y) var(--form-section-surface-padding-x);border:1px solid var(--form-section-surface-border);background:var(--form-section-surface-bg);box-shadow:var(--form-section-surface-shadow)}:host.form-section--panel{--form-section-surface-shadow: 0 .15rem .45rem rgba(15, 23, 42, .04);--form-section-surface-padding-y: .75rem}:host.form-section--panel .form-section__header{margin-bottom:.55rem}:host.form-section--panel .form-section__body{gap:.4rem}:host.form-section--card{--form-section-surface-padding-x: 1.25rem;--form-section-surface-padding-y: 1.25rem;--form-section-surface-shadow: 0 .35rem 1rem rgba(15, 23, 42, .06)}:host.form-section--card.form-section--elevated{--form-section-surface-shadow: 0 .8rem 2rem -1.1rem rgba(15, 23, 42, .28)}:host.form-section--radius-none{border-radius:0}:host.form-section--radius-sm{border-radius:var(--radius-sm, 8px)}:host.form-section--radius-md{border-radius:var(--radius-md, 12px)}:host.form-section--radius-lg{border-radius:var(--radius-lg, 16px)}:host.form-section--radius-xl{border-radius:var(--radius-xl, 22px)}:host.form-section--dense .form-section__header{margin-bottom:.55rem}:host.form-section--dense .form-section__title{font-size:1rem}:host.form-section--dense .form-section__body{gap:.4rem}:host.form-section--dense.form-section--panel,:host.form-section--dense.form-section--card{--form-section-surface-padding-x: .4rem;--form-section-surface-padding-y: .65rem}:host.form-section--divider{padding-bottom:1.75rem;margin-bottom:1.75rem;border-bottom:1px solid var(--app-color-border, #e5e5e5)}:host.form-section--dense.form-section--divider{padding-bottom:1.25rem;margin-bottom:1.25rem}:host.form-section--typography-sm .form-section__title{font-size:.95rem}:host.form-section--typography-sm .form-section__subtitle{font-size:.82rem}:host.form-section--dense.form-section--typography-sm .form-section__title{font-size:.92rem}:host.form-section--typography-lg .form-section__title{font-size:1.12rem}:host.form-section--typography-lg .form-section__subtitle{font-size:.9rem}:host.form-section--dense.form-section--typography-lg .form-section__title{font-size:1.08rem}:host-context(app-form-group):host.form-section--panel,:host-context(app-form-group):host.form-section--card{--form-section-surface-padding-x: .2rem;--form-section-surface-padding-y: .4rem;--form-section-surface-shadow: none;border-color:transparent;background:transparent}:host-context(app-form-group):host.form-section--panel .form-section__header,:host-context(app-form-group):host.form-section--card .form-section__header{margin-bottom:.55rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12431
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: FormSectionComponent, isStandalone: true, selector: "app-form-section", inputs: { titulo: "titulo", subtitulo: "subtitulo", dense: ["dense", "dense", booleanAttribute], divider: ["divider", "divider", booleanAttribute], variant: "variant", align: "align", maxWidth: "maxWidth", fullWidth: ["fullWidth", "fullWidth", booleanAttribute], radius: "radius", elevated: ["elevated", "elevated", booleanAttribute], size: "size", tamanhoCampoMobile: ["tamanhoCampoMobile", "tamanhoCampoMobile", booleanAttribute] }, host: { properties: { "class": "this.hostClass", "style.max-width": "this.hostMaxWidth", "style.margin-inline": "this.hostMarginInline" } }, usesOnChanges: true, ngImport: i0, template: "@if (showHeader) {\n<header class=\"form-section__header\">\n @if (titulo.trim()) {\n <h2 class=\"form-section__title\">{{ titulo }}</h2>\n }\n @if (subtitulo.trim()) {\n <p class=\"form-section__subtitle\">{{ subtitulo }}</p>\n }\n</header>\n}\n<div class=\"form-section__content form-section__body\">\n <ng-content />\n</div>", styles: ["@charset \"UTF-8\";:host{display:block;width:100%;min-width:0;box-sizing:border-box}.form-section{width:100%;min-width:0;box-sizing:border-box;font-family:var(--structra-font-family)}.form-section__header{margin:0 0 .55rem;padding:0}.form-section__title{margin:0 0 .2rem;font-size:1.05rem;font-weight:600;line-height:1.35;color:var(--app-color-text-primary, #1a2f45)}.form-section__subtitle{margin:0;font-size:.85rem;font-weight:var(--form-section-subtitle-weight, var(--structra-body-weight));line-height:1.4;color:var(--app-color-text-muted, #525252)}.form-section__content,.form-section__body{display:flex;flex-direction:column;gap:.4rem;min-width:0;box-sizing:border-box}:host.form-section--align-center .form-section__header{text-align:center}:host.form-section--inline{width:fit-content;max-width:100%}:host.form-section--panel,:host.form-section--card{--form-section-surface-border: var(--app-color-border-subtle, rgba(26, 47, 69, .12));--form-section-surface-bg: var(--app-color-elevated-surface, var(--app-color-surface));--form-section-surface-shadow: 0 .4rem 1.25rem rgba(15, 23, 42, .08);--form-section-surface-padding-x: .5rem;--form-section-surface-padding-y: 1rem;padding:var(--form-section-surface-padding-y) var(--form-section-surface-padding-x);border:1px solid var(--form-section-surface-border);background:var(--form-section-surface-bg);box-shadow:var(--form-section-surface-shadow)}:host.form-section--panel{--form-section-surface-shadow: 0 .15rem .45rem rgba(15, 23, 42, .04);--form-section-surface-padding-y: .75rem}:host.form-section--panel .form-section__header{margin-bottom:.55rem}:host.form-section--panel .form-section__body{gap:.4rem}:host.form-section--card{--form-section-surface-padding-x: 1.25rem;--form-section-surface-padding-y: 1.25rem;--form-section-surface-shadow: 0 .35rem 1rem rgba(15, 23, 42, .06)}:host.form-section--card.form-section--elevated{--form-section-surface-shadow: 0 .8rem 2rem -1.1rem rgba(15, 23, 42, .28)}:host.form-section--radius-none{border-radius:0}:host.form-section--radius-sm{border-radius:var(--radius-sm, 8px)}:host.form-section--radius-md{border-radius:var(--radius-md, 12px)}:host.form-section--radius-lg{border-radius:var(--radius-lg, 16px)}:host.form-section--radius-xl{border-radius:var(--radius-xl, 22px)}:host.form-section--dense .form-section__header{margin-bottom:.55rem}:host.form-section--dense .form-section__title{font-size:1rem}:host.form-section--dense .form-section__body{gap:.4rem}:host.form-section--dense.form-section--panel,:host.form-section--dense.form-section--card{--form-section-surface-padding-x: .4rem;--form-section-surface-padding-y: .65rem}:host.form-section--divider{padding-bottom:1.75rem;margin-bottom:1.75rem;border-bottom:1px solid var(--app-color-border, #e5e5e5)}:host.form-section--dense.form-section--divider{padding-bottom:1.25rem;margin-bottom:1.25rem}:host.form-section--typography-sm .form-section__title{font-size:.95rem}:host.form-section--typography-sm .form-section__subtitle{font-size:.82rem}:host.form-section--dense.form-section--typography-sm .form-section__title{font-size:.92rem}:host.form-section--typography-lg .form-section__title{font-size:1.12rem}:host.form-section--typography-lg .form-section__subtitle{font-size:.9rem}:host.form-section--dense.form-section--typography-lg .form-section__title{font-size:1.08rem}:host-context(app-form-group):host.form-section--panel,:host-context(app-form-group):host.form-section--card{--form-section-surface-padding-x: .2rem;--form-section-surface-padding-y: .4rem;--form-section-surface-shadow: none;border-color:transparent;background:transparent}:host-context(app-form-group):host.form-section--panel .form-section__header,:host-context(app-form-group):host.form-section--card .form-section__header{margin-bottom:.55rem}:host-context(.cadastro-page-shell__tab-panel):host.cadastro-fields-base__section.form-section--panel,:host-context(.cadastro-page-shell__tab-panel):host.cadastro-fields-base__section.form-section--card{--form-section-surface-padding-x: 0;--form-section-surface-padding-y: 0;--form-section-surface-shadow: none;padding:0;border:none;background:transparent;box-shadow:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12432
12432
|
}
|
|
12433
12433
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FormSectionComponent, decorators: [{
|
|
12434
12434
|
type: Component,
|
|
12435
|
-
args: [{ selector: 'app-form-section', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (showHeader) {\n<header class=\"form-section__header\">\n @if (titulo.trim()) {\n <h2 class=\"form-section__title\">{{ titulo }}</h2>\n }\n @if (subtitulo.trim()) {\n <p class=\"form-section__subtitle\">{{ subtitulo }}</p>\n }\n</header>\n}\n<div class=\"form-section__content form-section__body\">\n <ng-content />\n</div>", styles: ["@charset \"UTF-8\";:host{display:block;width:100%;min-width:0;box-sizing:border-box}.form-section{width:100%;min-width:0;box-sizing:border-box;font-family:var(--structra-font-family)}.form-section__header{margin:0 0 .55rem;padding:0}.form-section__title{margin:0 0 .2rem;font-size:1.05rem;font-weight:600;line-height:1.35;color:var(--app-color-text-primary, #1a2f45)}.form-section__subtitle{margin:0;font-size:.85rem;font-weight:var(--form-section-subtitle-weight, var(--structra-body-weight));line-height:1.4;color:var(--app-color-text-muted, #525252)}.form-section__content,.form-section__body{display:flex;flex-direction:column;gap:.4rem;min-width:0;box-sizing:border-box}:host.form-section--align-center .form-section__header{text-align:center}:host.form-section--inline{width:fit-content;max-width:100%}:host.form-section--panel,:host.form-section--card{--form-section-surface-border: var(--app-color-border-subtle, rgba(26, 47, 69, .12));--form-section-surface-bg: var(--app-color-elevated-surface, var(--app-color-surface));--form-section-surface-shadow: 0 .4rem 1.25rem rgba(15, 23, 42, .08);--form-section-surface-padding-x: .5rem;--form-section-surface-padding-y: 1rem;padding:var(--form-section-surface-padding-y) var(--form-section-surface-padding-x);border:1px solid var(--form-section-surface-border);background:var(--form-section-surface-bg);box-shadow:var(--form-section-surface-shadow)}:host.form-section--panel{--form-section-surface-shadow: 0 .15rem .45rem rgba(15, 23, 42, .04);--form-section-surface-padding-y: .75rem}:host.form-section--panel .form-section__header{margin-bottom:.55rem}:host.form-section--panel .form-section__body{gap:.4rem}:host.form-section--card{--form-section-surface-padding-x: 1.25rem;--form-section-surface-padding-y: 1.25rem;--form-section-surface-shadow: 0 .35rem 1rem rgba(15, 23, 42, .06)}:host.form-section--card.form-section--elevated{--form-section-surface-shadow: 0 .8rem 2rem -1.1rem rgba(15, 23, 42, .28)}:host.form-section--radius-none{border-radius:0}:host.form-section--radius-sm{border-radius:var(--radius-sm, 8px)}:host.form-section--radius-md{border-radius:var(--radius-md, 12px)}:host.form-section--radius-lg{border-radius:var(--radius-lg, 16px)}:host.form-section--radius-xl{border-radius:var(--radius-xl, 22px)}:host.form-section--dense .form-section__header{margin-bottom:.55rem}:host.form-section--dense .form-section__title{font-size:1rem}:host.form-section--dense .form-section__body{gap:.4rem}:host.form-section--dense.form-section--panel,:host.form-section--dense.form-section--card{--form-section-surface-padding-x: .4rem;--form-section-surface-padding-y: .65rem}:host.form-section--divider{padding-bottom:1.75rem;margin-bottom:1.75rem;border-bottom:1px solid var(--app-color-border, #e5e5e5)}:host.form-section--dense.form-section--divider{padding-bottom:1.25rem;margin-bottom:1.25rem}:host.form-section--typography-sm .form-section__title{font-size:.95rem}:host.form-section--typography-sm .form-section__subtitle{font-size:.82rem}:host.form-section--dense.form-section--typography-sm .form-section__title{font-size:.92rem}:host.form-section--typography-lg .form-section__title{font-size:1.12rem}:host.form-section--typography-lg .form-section__subtitle{font-size:.9rem}:host.form-section--dense.form-section--typography-lg .form-section__title{font-size:1.08rem}:host-context(app-form-group):host.form-section--panel,:host-context(app-form-group):host.form-section--card{--form-section-surface-padding-x: .2rem;--form-section-surface-padding-y: .4rem;--form-section-surface-shadow: none;border-color:transparent;background:transparent}:host-context(app-form-group):host.form-section--panel .form-section__header,:host-context(app-form-group):host.form-section--card .form-section__header{margin-bottom:.55rem}\n"] }]
|
|
12435
|
+
args: [{ selector: 'app-form-section', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (showHeader) {\n<header class=\"form-section__header\">\n @if (titulo.trim()) {\n <h2 class=\"form-section__title\">{{ titulo }}</h2>\n }\n @if (subtitulo.trim()) {\n <p class=\"form-section__subtitle\">{{ subtitulo }}</p>\n }\n</header>\n}\n<div class=\"form-section__content form-section__body\">\n <ng-content />\n</div>", styles: ["@charset \"UTF-8\";:host{display:block;width:100%;min-width:0;box-sizing:border-box}.form-section{width:100%;min-width:0;box-sizing:border-box;font-family:var(--structra-font-family)}.form-section__header{margin:0 0 .55rem;padding:0}.form-section__title{margin:0 0 .2rem;font-size:1.05rem;font-weight:600;line-height:1.35;color:var(--app-color-text-primary, #1a2f45)}.form-section__subtitle{margin:0;font-size:.85rem;font-weight:var(--form-section-subtitle-weight, var(--structra-body-weight));line-height:1.4;color:var(--app-color-text-muted, #525252)}.form-section__content,.form-section__body{display:flex;flex-direction:column;gap:.4rem;min-width:0;box-sizing:border-box}:host.form-section--align-center .form-section__header{text-align:center}:host.form-section--inline{width:fit-content;max-width:100%}:host.form-section--panel,:host.form-section--card{--form-section-surface-border: var(--app-color-border-subtle, rgba(26, 47, 69, .12));--form-section-surface-bg: var(--app-color-elevated-surface, var(--app-color-surface));--form-section-surface-shadow: 0 .4rem 1.25rem rgba(15, 23, 42, .08);--form-section-surface-padding-x: .5rem;--form-section-surface-padding-y: 1rem;padding:var(--form-section-surface-padding-y) var(--form-section-surface-padding-x);border:1px solid var(--form-section-surface-border);background:var(--form-section-surface-bg);box-shadow:var(--form-section-surface-shadow)}:host.form-section--panel{--form-section-surface-shadow: 0 .15rem .45rem rgba(15, 23, 42, .04);--form-section-surface-padding-y: .75rem}:host.form-section--panel .form-section__header{margin-bottom:.55rem}:host.form-section--panel .form-section__body{gap:.4rem}:host.form-section--card{--form-section-surface-padding-x: 1.25rem;--form-section-surface-padding-y: 1.25rem;--form-section-surface-shadow: 0 .35rem 1rem rgba(15, 23, 42, .06)}:host.form-section--card.form-section--elevated{--form-section-surface-shadow: 0 .8rem 2rem -1.1rem rgba(15, 23, 42, .28)}:host.form-section--radius-none{border-radius:0}:host.form-section--radius-sm{border-radius:var(--radius-sm, 8px)}:host.form-section--radius-md{border-radius:var(--radius-md, 12px)}:host.form-section--radius-lg{border-radius:var(--radius-lg, 16px)}:host.form-section--radius-xl{border-radius:var(--radius-xl, 22px)}:host.form-section--dense .form-section__header{margin-bottom:.55rem}:host.form-section--dense .form-section__title{font-size:1rem}:host.form-section--dense .form-section__body{gap:.4rem}:host.form-section--dense.form-section--panel,:host.form-section--dense.form-section--card{--form-section-surface-padding-x: .4rem;--form-section-surface-padding-y: .65rem}:host.form-section--divider{padding-bottom:1.75rem;margin-bottom:1.75rem;border-bottom:1px solid var(--app-color-border, #e5e5e5)}:host.form-section--dense.form-section--divider{padding-bottom:1.25rem;margin-bottom:1.25rem}:host.form-section--typography-sm .form-section__title{font-size:.95rem}:host.form-section--typography-sm .form-section__subtitle{font-size:.82rem}:host.form-section--dense.form-section--typography-sm .form-section__title{font-size:.92rem}:host.form-section--typography-lg .form-section__title{font-size:1.12rem}:host.form-section--typography-lg .form-section__subtitle{font-size:.9rem}:host.form-section--dense.form-section--typography-lg .form-section__title{font-size:1.08rem}:host-context(app-form-group):host.form-section--panel,:host-context(app-form-group):host.form-section--card{--form-section-surface-padding-x: .2rem;--form-section-surface-padding-y: .4rem;--form-section-surface-shadow: none;border-color:transparent;background:transparent}:host-context(app-form-group):host.form-section--panel .form-section__header,:host-context(app-form-group):host.form-section--card .form-section__header{margin-bottom:.55rem}:host-context(.cadastro-page-shell__tab-panel):host.cadastro-fields-base__section.form-section--panel,:host-context(.cadastro-page-shell__tab-panel):host.cadastro-fields-base__section.form-section--card{--form-section-surface-padding-x: 0;--form-section-surface-padding-y: 0;--form-section-surface-shadow: none;padding:0;border:none;background:transparent;box-shadow:none}\n"] }]
|
|
12436
12436
|
}], ctorParameters: () => [], propDecorators: { titulo: [{
|
|
12437
12437
|
type: Input,
|
|
12438
12438
|
args: [{ required: true }]
|
|
@@ -45096,7 +45096,7 @@ class CadastroMetadataPageComponent {
|
|
|
45096
45096
|
return o != null && o.trim() !== '' ? o.trim() : (c.runtime.subtitulo?.() ?? '');
|
|
45097
45097
|
}
|
|
45098
45098
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CadastroMetadataPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
45099
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: CadastroMetadataPageComponent, isStandalone: true, selector: "app-cadastro-metadata-page", inputs: { entityName: { classPropertyName: "entityName", publicName: "entityName", isSignal: true, isRequired: true, transformFunction: null }, entityLabel: { classPropertyName: "entityLabel", publicName: "entityLabel", isSignal: true, isRequired: true, transformFunction: null }, cadastro: { classPropertyName: "cadastro", publicName: "cadastro", isSignal: true, isRequired: false, transformFunction: null }, initError: { classPropertyName: "initError", publicName: "initError", isSignal: true, isRequired: false, transformFunction: null }, initLoading: { classPropertyName: "initLoading", publicName: "initLoading", isSignal: true, isRequired: false, transformFunction: null }, validationUi: { classPropertyName: "validationUi", publicName: "validationUi", isSignal: true, isRequired: false, transformFunction: null }, searchSelectBindings: { classPropertyName: "searchSelectBindings", publicName: "searchSelectBindings", isSignal: true, isRequired: false, transformFunction: null }, listSelectBindings: { classPropertyName: "listSelectBindings", publicName: "listSelectBindings", isSignal: true, isRequired: false, transformFunction: null }, multiselectBindings: { classPropertyName: "multiselectBindings", publicName: "multiselectBindings", isSignal: true, isRequired: false, transformFunction: null }, metadataCamposReply: { classPropertyName: "metadataCamposReply", publicName: "metadataCamposReply", isSignal: true, isRequired: false, transformFunction: null }, redirectReturnUrl: { classPropertyName: "redirectReturnUrl", publicName: "redirectReturnUrl", isSignal: true, isRequired: false, transformFunction: null }, painelMaxWidthHint: { classPropertyName: "painelMaxWidthHint", publicName: "painelMaxWidthHint", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, corpoCentralizado: { classPropertyName: "corpoCentralizado", publicName: "corpoCentralizado", isSignal: true, isRequired: false, transformFunction: null }, cabecalhoPaginaVisivel: { classPropertyName: "cabecalhoPaginaVisivel", publicName: "cabecalhoPaginaVisivel", isSignal: true, isRequired: false, transformFunction: null }, toolbarInterno: { classPropertyName: "toolbarInterno", publicName: "toolbarInterno", isSignal: true, isRequired: false, transformFunction: null }, embeddedInReferenciaDialog: { classPropertyName: "embeddedInReferenciaDialog", publicName: "embeddedInReferenciaDialog", isSignal: true, isRequired: false, transformFunction: null }, suppressInternalPageTabs: { classPropertyName: "suppressInternalPageTabs", publicName: "suppressInternalPageTabs", isSignal: true, isRequired: false, transformFunction: null }, externalShellTabKey: { classPropertyName: "externalShellTabKey", publicName: "externalShellTabKey", isSignal: true, isRequired: false, transformFunction: null }, embeddedInPageShell: { classPropertyName: "embeddedInPageShell", publicName: "embeddedInPageShell", isSignal: true, isRequired: false, transformFunction: null }, headerSecondaryAction: { classPropertyName: "headerSecondaryAction", publicName: "headerSecondaryAction", isSignal: true, isRequired: false, transformFunction: null }, tituloSection: { classPropertyName: "tituloSection", publicName: "tituloSection", isSignal: true, isRequired: false, transformFunction: null }, subtituloSection: { classPropertyName: "subtituloSection", publicName: "subtituloSection", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { salvarSubmit: "salvarSubmit", toolbarButtonClick: "toolbarButtonClick", headerSecondaryActionClick: "headerSecondaryActionClick" }, host: { properties: { "class.cadastro-metadata-page--referencia-dialog": "embeddedInReferenciaDialog()", "class.cadastro-metadata-page--embedded-page-shell": "embeddedInPageShell()" }, classAttribute: "cadastro-metadata-page" }, ngImport: i0, template: "<app-cadastro-base-page class=\"cadastro-metadata-page__shell\" [cadastroInitError]=\"initError()\"\n [cadastroInitLoading]=\"initLoading()\" [runtime]=\"cadastro()?.runtime ?? null\"\n [shellTopbarReserveDuplicar]=\"cadastro()?.duplicateTopbarEnabled === true\"\n [toolbarInterno]=\"toolbarInterno()\"\n [embeddedInReferenciaDialog]=\"embeddedInReferenciaDialog()\"\n [corpoCentralizado]=\"formularioCorpoCentralizado()\" [cabecalhoPaginaVisivel]=\"cabecalhoPaginaVisivel()\"\n [validationUi]=\"validationUi()\" [skeletonPanelMaxWidth]=\"painelMaxWidthCss()\"\n [headerSecondaryAction]=\"headerSecondaryAction()\"\n (headerSecondaryActionClick)=\"headerSecondaryActionClick.emit()\">\n <ng-template #cadastroShellTopbarEnd>\n @if (!embeddedInReferenciaDialog()) {\n @if (cadastro(); as c) {\n <div class=\"cadastro-metadata-page__topbar-actions cadastro-shell-topbar-actions-row flex flex-wrap items-center justify-end gap-2\">\n @if (headerSecondaryActionVisible()) {\n @let headerAction = headerSecondaryAction()!;\n <app-button type=\"button\" class=\"cadastro-shell-topbar-btn-header-secondary\" variant=\"secondary\" size=\"md\"\n [fullWidth]=\"false\"\n [disabled]=\"headerAction.disabled || c.runtime.loading() || c.runtime.salvando() || c.runtime.excluindo()\"\n (click)=\"headerSecondaryActionClick.emit()\"\n [attr.aria-label]=\"headerAction.label\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n @if (headerAction.icon?.trim()) {\n <i [class]=\"headerAction.icon!.trim() + ' cadastro-shell-topbar-btn-icon'\" aria-hidden=\"true\"></i>\n }\n <span class=\"cadastro-shell-topbar-btn-label\">{{ headerAction.label }}</span>\n </span>\n </app-button>\n }\n @if (c.runtime.exibirToolbarSalvar) {\n <app-button type=\"button\" class=\"cadastro-shell-topbar-btn-salvar\" variant=\"success\" size=\"md\"\n [fullWidth]=\"false\" [disabled]=\"c.runtime.loading() || c.runtime.salvando()\"\n [loading]=\"c.runtime.salvando()\" (click)=\"c.runtime.salvar()\" [attr.aria-label]=\"'Salvar'\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n <i class=\"fa-solid fa-floppy-disk cadastro-shell-topbar-btn-icon\" aria-hidden=\"true\"></i>\n <span class=\"cadastro-shell-topbar-btn-label\">Salvar</span>\n </span>\n </app-button>\n }\n @if (c.runtime.exibirToolbarNovo && c.runtime.duplicar && c.runtime.podeDuplicar()) {\n <app-button type=\"button\" variant=\"secondary\" size=\"md\" [fullWidth]=\"false\"\n [disabled]=\"c.runtime.loading() || c.runtime.salvando() || c.runtime.excluindo()\"\n (click)=\"c.runtime.duplicar!()\" [attr.aria-label]=\"'Duplicar'\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n <i class=\"fa-solid fa-copy cadastro-shell-topbar-btn-icon\" aria-hidden=\"true\"></i>\n <span class=\"cadastro-shell-topbar-btn-label\">Duplicar</span>\n </span>\n </app-button>\n }\n @if (c.runtime.exibirToolbarNovo) {\n <app-button type=\"button\" variant=\"secondary\" size=\"md\" [fullWidth]=\"false\"\n [disabled]=\"!c.runtime.podeNovo()\"\n (click)=\"c.runtime.novo()\" [attr.aria-label]=\"'Novo registro'\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n <i class=\"fa-solid fa-file cadastro-shell-topbar-btn-icon\" aria-hidden=\"true\"></i>\n <span class=\"cadastro-shell-topbar-btn-label\">Novo</span>\n </span>\n </app-button>\n }\n @if (c.runtime.exibirToolbarExcluir && c.runtime.podeExcluir() && c.runtime.excluir) {\n <app-button type=\"button\" variant=\"danger\" size=\"md\" [fullWidth]=\"false\"\n [disabled]=\"c.runtime.salvando() || c.runtime.excluindo()\" [loading]=\"c.runtime.excluindo()\"\n (click)=\"c.runtime.excluir!()\" [attr.aria-label]=\"'Excluir'\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n <i class=\"fa-solid fa-trash-can cadastro-shell-topbar-btn-icon\" aria-hidden=\"true\"></i>\n <span class=\"cadastro-shell-topbar-btn-label\">Excluir</span>\n </span>\n </app-button>\n }\n @for (btn of toolbarButtonsEfectivos(); track btn.actionId) {\n @if (toolbarButtonVisible(c, btn)) {\n <app-button type=\"button\" size=\"md\" [fullWidth]=\"false\"\n [variant]=\"toolbarButtonVariant(btn.variant)\"\n [disabled]=\"toolbarButtonDisabled(c, btn)\"\n (click)=\"toolbarButtonClick.emit(btn)\"\n [attr.aria-label]=\"btn.label\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n @if (btn.iconClass.trim()) {\n <i [class]=\"btn.iconClass + ' cadastro-shell-topbar-btn-icon'\" aria-hidden=\"true\"></i>\n }\n <span class=\"cadastro-shell-topbar-btn-label\">{{ btn.label }}</span>\n </span>\n </app-button>\n }\n }\n </div>\n }\n }\n </ng-template>\n @if (cadastro(); as c) {\n <form [formGroup]=\"c.form\" (ngSubmit)=\"salvarSubmit.emit()\" novalidate\n class=\"cadastro-metadata-page__form flex w-full flex-col gap-2\"\n [class.mx-auto]=\"formularioCorpoCentralizado()\"\n [style.max-width]=\"formularioPainelMaxWidthCss()\">\n <app-form-section class=\"cadastro-metadata-page__section w-full\" [divider]=\"false\"\n [variant]=\"embeddedInPageShell() ? 'plain' : 'panel'\"\n [titulo]=\"sectionTitulo(c)\" [subtitulo]=\"sectionSubtitulo(c)\">\n <app-cadastro-fields-base [metadata]=\"metadataLayoutParaCampos()\"\n [camposMetadata]=\"camposMetadataCapa(c)\" [form]=\"c.form\" [runtime]=\"c.runtime\"\n [formKey]=\"entityName()\" [cadastroUiRegistry]=\"c.uiRegistry\" [searchSelectBindings]=\"searchSelectBindings()\"\n [listSelectBindings]=\"listSelectBindings()\" [multiselectBindings]=\"multiselectBindings()\"\n [redirectReturnUrl]=\"redirectReturnUrl()\" [formGridColumns]=\"formGridColumnsParaCampos()\"\n [sectionToolbarButtonsByKey]=\"c.sectionToolbarButtonsByKey ?? {}\"\n [sectionToolbarButtonDisabled]=\"c.sectionToolbarButtonDisabled ?? null\"\n (sectionToolbarButtonClick)=\"toolbarButtonClick.emit($event)\" />\n @if (layoutPageTabsOrdenadas().length > 0) {\n <app-form-tabs class=\"cadastro-metadata-page__tabs w-full\" [activeKey]=\"activeCadastroPageTabKey()\"\n (activeKeyChange)=\"onActiveCadastroTabChange($event)\" tablistAriaLabel=\"Sec\u00E7\u00F5es do cadastro\"\n variant=\"default\">\n @for (tab of layoutPageTabsOrdenadas(); track tab.key) {\n <app-form-tab [key]=\"tab.key\" [tabTitle]=\"tab.label\" [tabIconClass]=\"tab.icon\"\n [warning]=\"tabTemAvisoInvalidoVisivel(c, tab.key)\">\n @if (camposMetadataParaTab(c, tab.key).length > 0) {\n <app-cadastro-fields-base [metadata]=\"metadataLayoutParaCampos()\"\n [camposMetadata]=\"camposMetadataParaTab(c, tab.key)\" [form]=\"c.form\" [runtime]=\"c.runtime\"\n [formKey]=\"entityName()\" [cadastroUiRegistry]=\"c.uiRegistry\" [searchSelectBindings]=\"searchSelectBindings()\"\n [listSelectBindings]=\"listSelectBindings()\" [multiselectBindings]=\"multiselectBindings()\"\n [redirectReturnUrl]=\"redirectReturnUrl()\" [formGridColumns]=\"formGridColumnsParaCampos()\"\n [sectionToolbarButtonsByKey]=\"c.sectionToolbarButtonsByKey ?? {}\"\n [sectionToolbarButtonDisabled]=\"c.sectionToolbarButtonDisabled ?? null\"\n (sectionToolbarButtonClick)=\"toolbarButtonClick.emit($event)\" />\n } @else {\n <div class=\"cadastro-metadata-page__tab-empty px-2 py-8 text-center text-sm text-slate-500\">\n Sem conte\u00FAdo nesta sec\u00E7\u00E3o.\n </div>\n }\n </app-form-tab>\n }\n </app-form-tabs>\n }\n </app-form-section>\n </form>\n }\n</app-cadastro-base-page>\n", styles: ["@charset \"UTF-8\";:host{display:flex;flex-direction:column;flex:1 1 0%;min-height:0;width:100%;min-width:0;box-sizing:border-box}.cadastro-metadata-page__shell{flex:1 1 0%;min-height:0;width:100%;min-width:0;box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;overflow-y:auto}:host.cadastro-metadata-page--referencia-dialog .cadastro-metadata-page__shell{padding-inline:0;padding-block:.25rem .35rem;overflow-y:visible}@media(max-width:767.98px){:host.cadastro-metadata-page--referencia-dialog .cadastro-metadata-page__shell{padding-inline:0;padding-block:.2rem .35rem}}.cadastro-metadata-page__form{display:flex;flex-direction:column;gap:.5rem;box-sizing:border-box;width:100%;margin-inline:auto}:host ::ng-deep .cadastro-metadata-page__section.form-section--panel .form-section__body{gap:.4rem}:host ::ng-deep .cadastro-metadata-page__tabs .form-tab__panel{gap:.4rem}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__shell{padding:0;overflow-y:visible}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__form{width:100%;max-width:none!important;margin-inline:0!important;gap:.4rem}:host.cadastro-metadata-page--embedded-page-shell .cadastro-base-page__body{width:100%;max-width:none;min-width:0}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section.form-section--plain,:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section.form-section--panel{width:100%;max-width:none;margin:0;padding:0;border:none;border-radius:0;background:transparent;box-shadow:none}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section .form-section__header{display:none}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section .form-section__content,:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section .form-section__body{padding:0}\n", "@charset \"UTF-8\";.cadastro-shell-topbar-actions-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem}.cadastro-shell-topbar-btn-inner{display:inline-flex;align-items:center;gap:.375rem}.cadastro-shell-topbar-btn-icon{font-size:1.05rem;line-height:1;flex-shrink:0}.cadastro-shell-topbar-btn-label{white-space:nowrap}:host ::ng-deep app-button.cadastro-shell-topbar-btn-header-secondary.base-button--secondary .base-button__native{border-color:var(--ui-button-secondary-border, var(--app-color-border-strong));background:var(--ui-button-secondary-bg, var(--app-color-surface-alt))}:host ::ng-deep app-button.cadastro-shell-topbar-btn-header-secondary.base-button--secondary .base-button__native:hover:not(:disabled){border-color:var(--ui-button-secondary-border-hover, var(--ui-button-secondary-border, var(--app-color-border)));background:var(--ui-button-secondary-bg-hover, var(--app-color-button-secondary-hover-bg))}@media(max-width:767.98px){.cadastro-shell-topbar-actions-row .cadastro-shell-topbar-btn-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.cadastro-shell-topbar-actions-row .cadastro-shell-topbar-btn-inner{gap:0}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: CadastroBasePageComponent, selector: "app-cadastro-base-page", inputs: ["runtime", "cadastroInitError", "cadastroInitLoading", "skeletonPanelMaxWidth", "toolbarInterno", "embeddedInReferenciaDialog", "corpoCentralizado", "cabecalhoPaginaVisivel", "validationUi", "validationSummaryPinned", "headerSecondaryAction", "validationSummaryTitle", "shellTopbarReserveDuplicar"], outputs: ["headerSecondaryActionClick"] }, { kind: "component", type: ButtonComponent, selector: "app-button" }, { kind: "component", type: FormSectionComponent, selector: "app-form-section", inputs: ["titulo", "subtitulo", "dense", "divider", "variant", "align", "maxWidth", "fullWidth", "radius", "elevated", "size", "tamanhoCampoMobile"] }, { kind: "component", type: FormTabsComponent, selector: "app-form-tabs", inputs: ["activeKey", "keepAlive", "stretch", "variant", "size", "tamanhoCampoMobile", "tablistAriaLabel", "validationLinkItems", "validationLinkActive"], outputs: ["activeKeyChange"] }, { kind: "component", type: FormTabComponent, selector: "app-form-tab", inputs: ["key", "tabTitle", "tabIconClass", "disabled", "warning", "validationLinkFieldIds"] }, { kind: "component", type: CadastroFieldsBaseComponent, selector: "app-cadastro-fields-base", inputs: ["metadata", "camposMetadata", "form", "runtime", "searchSelectBindings", "listSelectBindings", "multiselectBindings", "redirectReturnUrl", "formGridColumns", "cadastroUiRegistry", "formKey", "sectionToolbarButtonsByKey", "sectionToolbarButtonDisabled"], outputs: ["sectionToolbarButtonClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
45099
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: CadastroMetadataPageComponent, isStandalone: true, selector: "app-cadastro-metadata-page", inputs: { entityName: { classPropertyName: "entityName", publicName: "entityName", isSignal: true, isRequired: true, transformFunction: null }, entityLabel: { classPropertyName: "entityLabel", publicName: "entityLabel", isSignal: true, isRequired: true, transformFunction: null }, cadastro: { classPropertyName: "cadastro", publicName: "cadastro", isSignal: true, isRequired: false, transformFunction: null }, initError: { classPropertyName: "initError", publicName: "initError", isSignal: true, isRequired: false, transformFunction: null }, initLoading: { classPropertyName: "initLoading", publicName: "initLoading", isSignal: true, isRequired: false, transformFunction: null }, validationUi: { classPropertyName: "validationUi", publicName: "validationUi", isSignal: true, isRequired: false, transformFunction: null }, searchSelectBindings: { classPropertyName: "searchSelectBindings", publicName: "searchSelectBindings", isSignal: true, isRequired: false, transformFunction: null }, listSelectBindings: { classPropertyName: "listSelectBindings", publicName: "listSelectBindings", isSignal: true, isRequired: false, transformFunction: null }, multiselectBindings: { classPropertyName: "multiselectBindings", publicName: "multiselectBindings", isSignal: true, isRequired: false, transformFunction: null }, metadataCamposReply: { classPropertyName: "metadataCamposReply", publicName: "metadataCamposReply", isSignal: true, isRequired: false, transformFunction: null }, redirectReturnUrl: { classPropertyName: "redirectReturnUrl", publicName: "redirectReturnUrl", isSignal: true, isRequired: false, transformFunction: null }, painelMaxWidthHint: { classPropertyName: "painelMaxWidthHint", publicName: "painelMaxWidthHint", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, corpoCentralizado: { classPropertyName: "corpoCentralizado", publicName: "corpoCentralizado", isSignal: true, isRequired: false, transformFunction: null }, cabecalhoPaginaVisivel: { classPropertyName: "cabecalhoPaginaVisivel", publicName: "cabecalhoPaginaVisivel", isSignal: true, isRequired: false, transformFunction: null }, toolbarInterno: { classPropertyName: "toolbarInterno", publicName: "toolbarInterno", isSignal: true, isRequired: false, transformFunction: null }, embeddedInReferenciaDialog: { classPropertyName: "embeddedInReferenciaDialog", publicName: "embeddedInReferenciaDialog", isSignal: true, isRequired: false, transformFunction: null }, suppressInternalPageTabs: { classPropertyName: "suppressInternalPageTabs", publicName: "suppressInternalPageTabs", isSignal: true, isRequired: false, transformFunction: null }, externalShellTabKey: { classPropertyName: "externalShellTabKey", publicName: "externalShellTabKey", isSignal: true, isRequired: false, transformFunction: null }, embeddedInPageShell: { classPropertyName: "embeddedInPageShell", publicName: "embeddedInPageShell", isSignal: true, isRequired: false, transformFunction: null }, headerSecondaryAction: { classPropertyName: "headerSecondaryAction", publicName: "headerSecondaryAction", isSignal: true, isRequired: false, transformFunction: null }, tituloSection: { classPropertyName: "tituloSection", publicName: "tituloSection", isSignal: true, isRequired: false, transformFunction: null }, subtituloSection: { classPropertyName: "subtituloSection", publicName: "subtituloSection", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { salvarSubmit: "salvarSubmit", toolbarButtonClick: "toolbarButtonClick", headerSecondaryActionClick: "headerSecondaryActionClick" }, host: { properties: { "class.cadastro-metadata-page--referencia-dialog": "embeddedInReferenciaDialog()", "class.cadastro-metadata-page--embedded-page-shell": "embeddedInPageShell()" }, classAttribute: "cadastro-metadata-page" }, ngImport: i0, template: "<app-cadastro-base-page class=\"cadastro-metadata-page__shell\" [cadastroInitError]=\"initError()\"\n [cadastroInitLoading]=\"initLoading()\" [runtime]=\"cadastro()?.runtime ?? null\"\n [shellTopbarReserveDuplicar]=\"cadastro()?.duplicateTopbarEnabled === true\"\n [toolbarInterno]=\"toolbarInterno()\"\n [embeddedInReferenciaDialog]=\"embeddedInReferenciaDialog()\"\n [corpoCentralizado]=\"formularioCorpoCentralizado()\" [cabecalhoPaginaVisivel]=\"cabecalhoPaginaVisivel()\"\n [validationUi]=\"validationUi()\" [skeletonPanelMaxWidth]=\"painelMaxWidthCss()\"\n [headerSecondaryAction]=\"headerSecondaryAction()\"\n (headerSecondaryActionClick)=\"headerSecondaryActionClick.emit()\">\n <ng-template #cadastroShellTopbarEnd>\n @if (!embeddedInReferenciaDialog()) {\n @if (cadastro(); as c) {\n <div class=\"cadastro-metadata-page__topbar-actions cadastro-shell-topbar-actions-row flex flex-wrap items-center justify-end gap-2\">\n @if (headerSecondaryActionVisible()) {\n @let headerAction = headerSecondaryAction()!;\n <app-button type=\"button\" class=\"cadastro-shell-topbar-btn-header-secondary\" variant=\"secondary\" size=\"md\"\n [fullWidth]=\"false\"\n [disabled]=\"headerAction.disabled || c.runtime.loading() || c.runtime.salvando() || c.runtime.excluindo()\"\n (click)=\"headerSecondaryActionClick.emit()\"\n [attr.aria-label]=\"headerAction.label\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n @if (headerAction.icon?.trim()) {\n <i [class]=\"headerAction.icon!.trim() + ' cadastro-shell-topbar-btn-icon'\" aria-hidden=\"true\"></i>\n }\n <span class=\"cadastro-shell-topbar-btn-label\">{{ headerAction.label }}</span>\n </span>\n </app-button>\n }\n @if (c.runtime.exibirToolbarSalvar) {\n <app-button type=\"button\" class=\"cadastro-shell-topbar-btn-salvar\" variant=\"success\" size=\"md\"\n [fullWidth]=\"false\" [disabled]=\"c.runtime.loading() || c.runtime.salvando()\"\n [loading]=\"c.runtime.salvando()\" (click)=\"c.runtime.salvar()\" [attr.aria-label]=\"'Salvar'\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n <i class=\"fa-solid fa-floppy-disk cadastro-shell-topbar-btn-icon\" aria-hidden=\"true\"></i>\n <span class=\"cadastro-shell-topbar-btn-label\">Salvar</span>\n </span>\n </app-button>\n }\n @if (c.runtime.exibirToolbarNovo && c.runtime.duplicar && c.runtime.podeDuplicar()) {\n <app-button type=\"button\" variant=\"secondary\" size=\"md\" [fullWidth]=\"false\"\n [disabled]=\"c.runtime.loading() || c.runtime.salvando() || c.runtime.excluindo()\"\n (click)=\"c.runtime.duplicar!()\" [attr.aria-label]=\"'Duplicar'\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n <i class=\"fa-solid fa-copy cadastro-shell-topbar-btn-icon\" aria-hidden=\"true\"></i>\n <span class=\"cadastro-shell-topbar-btn-label\">Duplicar</span>\n </span>\n </app-button>\n }\n @if (c.runtime.exibirToolbarNovo) {\n <app-button type=\"button\" variant=\"secondary\" size=\"md\" [fullWidth]=\"false\"\n [disabled]=\"!c.runtime.podeNovo()\"\n (click)=\"c.runtime.novo()\" [attr.aria-label]=\"'Novo registro'\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n <i class=\"fa-solid fa-file cadastro-shell-topbar-btn-icon\" aria-hidden=\"true\"></i>\n <span class=\"cadastro-shell-topbar-btn-label\">Novo</span>\n </span>\n </app-button>\n }\n @if (c.runtime.exibirToolbarExcluir && c.runtime.podeExcluir() && c.runtime.excluir) {\n <app-button type=\"button\" variant=\"danger\" size=\"md\" [fullWidth]=\"false\"\n [disabled]=\"c.runtime.salvando() || c.runtime.excluindo()\" [loading]=\"c.runtime.excluindo()\"\n (click)=\"c.runtime.excluir!()\" [attr.aria-label]=\"'Excluir'\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n <i class=\"fa-solid fa-trash-can cadastro-shell-topbar-btn-icon\" aria-hidden=\"true\"></i>\n <span class=\"cadastro-shell-topbar-btn-label\">Excluir</span>\n </span>\n </app-button>\n }\n @for (btn of toolbarButtonsEfectivos(); track btn.actionId) {\n @if (toolbarButtonVisible(c, btn)) {\n <app-button type=\"button\" size=\"md\" [fullWidth]=\"false\"\n [variant]=\"toolbarButtonVariant(btn.variant)\"\n [disabled]=\"toolbarButtonDisabled(c, btn)\"\n (click)=\"toolbarButtonClick.emit(btn)\"\n [attr.aria-label]=\"btn.label\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n @if (btn.iconClass.trim()) {\n <i [class]=\"btn.iconClass + ' cadastro-shell-topbar-btn-icon'\" aria-hidden=\"true\"></i>\n }\n <span class=\"cadastro-shell-topbar-btn-label\">{{ btn.label }}</span>\n </span>\n </app-button>\n }\n }\n </div>\n }\n }\n </ng-template>\n @if (cadastro(); as c) {\n <form [formGroup]=\"c.form\" (ngSubmit)=\"salvarSubmit.emit()\" novalidate\n class=\"cadastro-metadata-page__form flex w-full flex-col gap-2\"\n [class.mx-auto]=\"formularioCorpoCentralizado()\"\n [style.max-width]=\"formularioPainelMaxWidthCss()\">\n <app-form-section class=\"cadastro-metadata-page__section w-full\" [divider]=\"false\"\n [variant]=\"embeddedInPageShell() ? 'plain' : 'panel'\"\n [titulo]=\"sectionTitulo(c)\" [subtitulo]=\"sectionSubtitulo(c)\">\n <app-cadastro-fields-base [metadata]=\"metadataLayoutParaCampos()\"\n [camposMetadata]=\"camposMetadataCapa(c)\" [form]=\"c.form\" [runtime]=\"c.runtime\"\n [formKey]=\"entityName()\" [cadastroUiRegistry]=\"c.uiRegistry\" [searchSelectBindings]=\"searchSelectBindings()\"\n [listSelectBindings]=\"listSelectBindings()\" [multiselectBindings]=\"multiselectBindings()\"\n [redirectReturnUrl]=\"redirectReturnUrl()\" [formGridColumns]=\"formGridColumnsParaCampos()\"\n [sectionToolbarButtonsByKey]=\"c.sectionToolbarButtonsByKey ?? {}\"\n [sectionToolbarButtonDisabled]=\"c.sectionToolbarButtonDisabled ?? null\"\n (sectionToolbarButtonClick)=\"toolbarButtonClick.emit($event)\" />\n @if (layoutPageTabsOrdenadas().length > 0) {\n <app-form-tabs class=\"cadastro-metadata-page__tabs w-full\" [activeKey]=\"activeCadastroPageTabKey()\"\n (activeKeyChange)=\"onActiveCadastroTabChange($event)\" tablistAriaLabel=\"Sec\u00E7\u00F5es do cadastro\"\n variant=\"default\">\n @for (tab of layoutPageTabsOrdenadas(); track tab.key) {\n <app-form-tab [key]=\"tab.key\" [tabTitle]=\"tab.label\" [tabIconClass]=\"tab.icon\"\n [warning]=\"tabTemAvisoInvalidoVisivel(c, tab.key)\">\n @if (camposMetadataParaTab(c, tab.key).length > 0) {\n <app-cadastro-fields-base [metadata]=\"metadataLayoutParaCampos()\"\n [camposMetadata]=\"camposMetadataParaTab(c, tab.key)\" [form]=\"c.form\" [runtime]=\"c.runtime\"\n [formKey]=\"entityName()\" [cadastroUiRegistry]=\"c.uiRegistry\" [searchSelectBindings]=\"searchSelectBindings()\"\n [listSelectBindings]=\"listSelectBindings()\" [multiselectBindings]=\"multiselectBindings()\"\n [redirectReturnUrl]=\"redirectReturnUrl()\" [formGridColumns]=\"formGridColumnsParaCampos()\"\n [sectionToolbarButtonsByKey]=\"c.sectionToolbarButtonsByKey ?? {}\"\n [sectionToolbarButtonDisabled]=\"c.sectionToolbarButtonDisabled ?? null\"\n (sectionToolbarButtonClick)=\"toolbarButtonClick.emit($event)\" />\n } @else {\n <div class=\"cadastro-metadata-page__tab-empty px-2 py-8 text-center text-sm text-slate-500\">\n Sem conte\u00FAdo nesta sec\u00E7\u00E3o.\n </div>\n }\n </app-form-tab>\n }\n </app-form-tabs>\n }\n </app-form-section>\n </form>\n }\n</app-cadastro-base-page>\n", styles: ["@charset \"UTF-8\";:host{display:flex;flex-direction:column;flex:1 1 0%;min-height:0;width:100%;min-width:0;box-sizing:border-box}.cadastro-metadata-page__shell{flex:1 1 0%;min-height:0;width:100%;min-width:0;box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;overflow-y:auto}:host.cadastro-metadata-page--referencia-dialog .cadastro-metadata-page__shell{padding-inline:0;padding-block:.25rem .35rem;overflow-y:visible}@media(max-width:767.98px){:host.cadastro-metadata-page--referencia-dialog .cadastro-metadata-page__shell{padding-inline:0;padding-block:.2rem .35rem}}.cadastro-metadata-page__form{display:flex;flex-direction:column;gap:.5rem;box-sizing:border-box;width:100%;margin-inline:auto}:host ::ng-deep .cadastro-metadata-page__section.form-section--panel .form-section__body{gap:.4rem}:host ::ng-deep .cadastro-metadata-page__tabs .form-tab__panel{gap:.4rem}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__shell{padding:0;overflow-y:visible}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__form{width:100%;max-width:none!important;margin-inline:0!important;gap:.4rem}:host.cadastro-metadata-page--embedded-page-shell .cadastro-base-page__body{width:100%;max-width:none;min-width:0}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section.form-section--plain,:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section.form-section--panel,:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section.form-section--card{width:100%;max-width:none;margin:0;padding:0;border:none;border-radius:0;background:transparent;box-shadow:none}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section .form-section__header{display:none}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section .form-section__content,:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section .form-section__body{padding:0}:host.cadastro-metadata-page--embedded-page-shell ::ng-deep .cadastro-fields-base__section.form-section--panel,:host.cadastro-metadata-page--embedded-page-shell ::ng-deep .cadastro-fields-base__section.form-section--card{width:100%;max-width:none;margin:0;padding:0;border:none;border-radius:0;background:transparent;box-shadow:none}\n", "@charset \"UTF-8\";.cadastro-shell-topbar-actions-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem}.cadastro-shell-topbar-btn-inner{display:inline-flex;align-items:center;gap:.375rem}.cadastro-shell-topbar-btn-icon{font-size:1.05rem;line-height:1;flex-shrink:0}.cadastro-shell-topbar-btn-label{white-space:nowrap}:host ::ng-deep app-button.cadastro-shell-topbar-btn-header-secondary.base-button--secondary .base-button__native{border-color:var(--ui-button-secondary-border, var(--app-color-border-strong));background:var(--ui-button-secondary-bg, var(--app-color-surface-alt))}:host ::ng-deep app-button.cadastro-shell-topbar-btn-header-secondary.base-button--secondary .base-button__native:hover:not(:disabled){border-color:var(--ui-button-secondary-border-hover, var(--ui-button-secondary-border, var(--app-color-border)));background:var(--ui-button-secondary-bg-hover, var(--app-color-button-secondary-hover-bg))}@media(max-width:767.98px){.cadastro-shell-topbar-actions-row .cadastro-shell-topbar-btn-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.cadastro-shell-topbar-actions-row .cadastro-shell-topbar-btn-inner{gap:0}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: CadastroBasePageComponent, selector: "app-cadastro-base-page", inputs: ["runtime", "cadastroInitError", "cadastroInitLoading", "skeletonPanelMaxWidth", "toolbarInterno", "embeddedInReferenciaDialog", "corpoCentralizado", "cabecalhoPaginaVisivel", "validationUi", "validationSummaryPinned", "headerSecondaryAction", "validationSummaryTitle", "shellTopbarReserveDuplicar"], outputs: ["headerSecondaryActionClick"] }, { kind: "component", type: ButtonComponent, selector: "app-button" }, { kind: "component", type: FormSectionComponent, selector: "app-form-section", inputs: ["titulo", "subtitulo", "dense", "divider", "variant", "align", "maxWidth", "fullWidth", "radius", "elevated", "size", "tamanhoCampoMobile"] }, { kind: "component", type: FormTabsComponent, selector: "app-form-tabs", inputs: ["activeKey", "keepAlive", "stretch", "variant", "size", "tamanhoCampoMobile", "tablistAriaLabel", "validationLinkItems", "validationLinkActive"], outputs: ["activeKeyChange"] }, { kind: "component", type: FormTabComponent, selector: "app-form-tab", inputs: ["key", "tabTitle", "tabIconClass", "disabled", "warning", "validationLinkFieldIds"] }, { kind: "component", type: CadastroFieldsBaseComponent, selector: "app-cadastro-fields-base", inputs: ["metadata", "camposMetadata", "form", "runtime", "searchSelectBindings", "listSelectBindings", "multiselectBindings", "redirectReturnUrl", "formGridColumns", "cadastroUiRegistry", "formKey", "sectionToolbarButtonsByKey", "sectionToolbarButtonDisabled"], outputs: ["sectionToolbarButtonClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
45100
45100
|
}
|
|
45101
45101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CadastroMetadataPageComponent, decorators: [{
|
|
45102
45102
|
type: Component,
|
|
@@ -45113,7 +45113,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
45113
45113
|
class: 'cadastro-metadata-page',
|
|
45114
45114
|
'[class.cadastro-metadata-page--referencia-dialog]': 'embeddedInReferenciaDialog()',
|
|
45115
45115
|
'[class.cadastro-metadata-page--embedded-page-shell]': 'embeddedInPageShell()',
|
|
45116
|
-
}, template: "<app-cadastro-base-page class=\"cadastro-metadata-page__shell\" [cadastroInitError]=\"initError()\"\n [cadastroInitLoading]=\"initLoading()\" [runtime]=\"cadastro()?.runtime ?? null\"\n [shellTopbarReserveDuplicar]=\"cadastro()?.duplicateTopbarEnabled === true\"\n [toolbarInterno]=\"toolbarInterno()\"\n [embeddedInReferenciaDialog]=\"embeddedInReferenciaDialog()\"\n [corpoCentralizado]=\"formularioCorpoCentralizado()\" [cabecalhoPaginaVisivel]=\"cabecalhoPaginaVisivel()\"\n [validationUi]=\"validationUi()\" [skeletonPanelMaxWidth]=\"painelMaxWidthCss()\"\n [headerSecondaryAction]=\"headerSecondaryAction()\"\n (headerSecondaryActionClick)=\"headerSecondaryActionClick.emit()\">\n <ng-template #cadastroShellTopbarEnd>\n @if (!embeddedInReferenciaDialog()) {\n @if (cadastro(); as c) {\n <div class=\"cadastro-metadata-page__topbar-actions cadastro-shell-topbar-actions-row flex flex-wrap items-center justify-end gap-2\">\n @if (headerSecondaryActionVisible()) {\n @let headerAction = headerSecondaryAction()!;\n <app-button type=\"button\" class=\"cadastro-shell-topbar-btn-header-secondary\" variant=\"secondary\" size=\"md\"\n [fullWidth]=\"false\"\n [disabled]=\"headerAction.disabled || c.runtime.loading() || c.runtime.salvando() || c.runtime.excluindo()\"\n (click)=\"headerSecondaryActionClick.emit()\"\n [attr.aria-label]=\"headerAction.label\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n @if (headerAction.icon?.trim()) {\n <i [class]=\"headerAction.icon!.trim() + ' cadastro-shell-topbar-btn-icon'\" aria-hidden=\"true\"></i>\n }\n <span class=\"cadastro-shell-topbar-btn-label\">{{ headerAction.label }}</span>\n </span>\n </app-button>\n }\n @if (c.runtime.exibirToolbarSalvar) {\n <app-button type=\"button\" class=\"cadastro-shell-topbar-btn-salvar\" variant=\"success\" size=\"md\"\n [fullWidth]=\"false\" [disabled]=\"c.runtime.loading() || c.runtime.salvando()\"\n [loading]=\"c.runtime.salvando()\" (click)=\"c.runtime.salvar()\" [attr.aria-label]=\"'Salvar'\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n <i class=\"fa-solid fa-floppy-disk cadastro-shell-topbar-btn-icon\" aria-hidden=\"true\"></i>\n <span class=\"cadastro-shell-topbar-btn-label\">Salvar</span>\n </span>\n </app-button>\n }\n @if (c.runtime.exibirToolbarNovo && c.runtime.duplicar && c.runtime.podeDuplicar()) {\n <app-button type=\"button\" variant=\"secondary\" size=\"md\" [fullWidth]=\"false\"\n [disabled]=\"c.runtime.loading() || c.runtime.salvando() || c.runtime.excluindo()\"\n (click)=\"c.runtime.duplicar!()\" [attr.aria-label]=\"'Duplicar'\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n <i class=\"fa-solid fa-copy cadastro-shell-topbar-btn-icon\" aria-hidden=\"true\"></i>\n <span class=\"cadastro-shell-topbar-btn-label\">Duplicar</span>\n </span>\n </app-button>\n }\n @if (c.runtime.exibirToolbarNovo) {\n <app-button type=\"button\" variant=\"secondary\" size=\"md\" [fullWidth]=\"false\"\n [disabled]=\"!c.runtime.podeNovo()\"\n (click)=\"c.runtime.novo()\" [attr.aria-label]=\"'Novo registro'\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n <i class=\"fa-solid fa-file cadastro-shell-topbar-btn-icon\" aria-hidden=\"true\"></i>\n <span class=\"cadastro-shell-topbar-btn-label\">Novo</span>\n </span>\n </app-button>\n }\n @if (c.runtime.exibirToolbarExcluir && c.runtime.podeExcluir() && c.runtime.excluir) {\n <app-button type=\"button\" variant=\"danger\" size=\"md\" [fullWidth]=\"false\"\n [disabled]=\"c.runtime.salvando() || c.runtime.excluindo()\" [loading]=\"c.runtime.excluindo()\"\n (click)=\"c.runtime.excluir!()\" [attr.aria-label]=\"'Excluir'\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n <i class=\"fa-solid fa-trash-can cadastro-shell-topbar-btn-icon\" aria-hidden=\"true\"></i>\n <span class=\"cadastro-shell-topbar-btn-label\">Excluir</span>\n </span>\n </app-button>\n }\n @for (btn of toolbarButtonsEfectivos(); track btn.actionId) {\n @if (toolbarButtonVisible(c, btn)) {\n <app-button type=\"button\" size=\"md\" [fullWidth]=\"false\"\n [variant]=\"toolbarButtonVariant(btn.variant)\"\n [disabled]=\"toolbarButtonDisabled(c, btn)\"\n (click)=\"toolbarButtonClick.emit(btn)\"\n [attr.aria-label]=\"btn.label\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n @if (btn.iconClass.trim()) {\n <i [class]=\"btn.iconClass + ' cadastro-shell-topbar-btn-icon'\" aria-hidden=\"true\"></i>\n }\n <span class=\"cadastro-shell-topbar-btn-label\">{{ btn.label }}</span>\n </span>\n </app-button>\n }\n }\n </div>\n }\n }\n </ng-template>\n @if (cadastro(); as c) {\n <form [formGroup]=\"c.form\" (ngSubmit)=\"salvarSubmit.emit()\" novalidate\n class=\"cadastro-metadata-page__form flex w-full flex-col gap-2\"\n [class.mx-auto]=\"formularioCorpoCentralizado()\"\n [style.max-width]=\"formularioPainelMaxWidthCss()\">\n <app-form-section class=\"cadastro-metadata-page__section w-full\" [divider]=\"false\"\n [variant]=\"embeddedInPageShell() ? 'plain' : 'panel'\"\n [titulo]=\"sectionTitulo(c)\" [subtitulo]=\"sectionSubtitulo(c)\">\n <app-cadastro-fields-base [metadata]=\"metadataLayoutParaCampos()\"\n [camposMetadata]=\"camposMetadataCapa(c)\" [form]=\"c.form\" [runtime]=\"c.runtime\"\n [formKey]=\"entityName()\" [cadastroUiRegistry]=\"c.uiRegistry\" [searchSelectBindings]=\"searchSelectBindings()\"\n [listSelectBindings]=\"listSelectBindings()\" [multiselectBindings]=\"multiselectBindings()\"\n [redirectReturnUrl]=\"redirectReturnUrl()\" [formGridColumns]=\"formGridColumnsParaCampos()\"\n [sectionToolbarButtonsByKey]=\"c.sectionToolbarButtonsByKey ?? {}\"\n [sectionToolbarButtonDisabled]=\"c.sectionToolbarButtonDisabled ?? null\"\n (sectionToolbarButtonClick)=\"toolbarButtonClick.emit($event)\" />\n @if (layoutPageTabsOrdenadas().length > 0) {\n <app-form-tabs class=\"cadastro-metadata-page__tabs w-full\" [activeKey]=\"activeCadastroPageTabKey()\"\n (activeKeyChange)=\"onActiveCadastroTabChange($event)\" tablistAriaLabel=\"Sec\u00E7\u00F5es do cadastro\"\n variant=\"default\">\n @for (tab of layoutPageTabsOrdenadas(); track tab.key) {\n <app-form-tab [key]=\"tab.key\" [tabTitle]=\"tab.label\" [tabIconClass]=\"tab.icon\"\n [warning]=\"tabTemAvisoInvalidoVisivel(c, tab.key)\">\n @if (camposMetadataParaTab(c, tab.key).length > 0) {\n <app-cadastro-fields-base [metadata]=\"metadataLayoutParaCampos()\"\n [camposMetadata]=\"camposMetadataParaTab(c, tab.key)\" [form]=\"c.form\" [runtime]=\"c.runtime\"\n [formKey]=\"entityName()\" [cadastroUiRegistry]=\"c.uiRegistry\" [searchSelectBindings]=\"searchSelectBindings()\"\n [listSelectBindings]=\"listSelectBindings()\" [multiselectBindings]=\"multiselectBindings()\"\n [redirectReturnUrl]=\"redirectReturnUrl()\" [formGridColumns]=\"formGridColumnsParaCampos()\"\n [sectionToolbarButtonsByKey]=\"c.sectionToolbarButtonsByKey ?? {}\"\n [sectionToolbarButtonDisabled]=\"c.sectionToolbarButtonDisabled ?? null\"\n (sectionToolbarButtonClick)=\"toolbarButtonClick.emit($event)\" />\n } @else {\n <div class=\"cadastro-metadata-page__tab-empty px-2 py-8 text-center text-sm text-slate-500\">\n Sem conte\u00FAdo nesta sec\u00E7\u00E3o.\n </div>\n }\n </app-form-tab>\n }\n </app-form-tabs>\n }\n </app-form-section>\n </form>\n }\n</app-cadastro-base-page>\n", styles: ["@charset \"UTF-8\";:host{display:flex;flex-direction:column;flex:1 1 0%;min-height:0;width:100%;min-width:0;box-sizing:border-box}.cadastro-metadata-page__shell{flex:1 1 0%;min-height:0;width:100%;min-width:0;box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;overflow-y:auto}:host.cadastro-metadata-page--referencia-dialog .cadastro-metadata-page__shell{padding-inline:0;padding-block:.25rem .35rem;overflow-y:visible}@media(max-width:767.98px){:host.cadastro-metadata-page--referencia-dialog .cadastro-metadata-page__shell{padding-inline:0;padding-block:.2rem .35rem}}.cadastro-metadata-page__form{display:flex;flex-direction:column;gap:.5rem;box-sizing:border-box;width:100%;margin-inline:auto}:host ::ng-deep .cadastro-metadata-page__section.form-section--panel .form-section__body{gap:.4rem}:host ::ng-deep .cadastro-metadata-page__tabs .form-tab__panel{gap:.4rem}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__shell{padding:0;overflow-y:visible}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__form{width:100%;max-width:none!important;margin-inline:0!important;gap:.4rem}:host.cadastro-metadata-page--embedded-page-shell .cadastro-base-page__body{width:100%;max-width:none;min-width:0}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section.form-section--plain,:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section.form-section--panel{width:100%;max-width:none;margin:0;padding:0;border:none;border-radius:0;background:transparent;box-shadow:none}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section .form-section__header{display:none}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section .form-section__content,:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section .form-section__body{padding:0}\n", "@charset \"UTF-8\";.cadastro-shell-topbar-actions-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem}.cadastro-shell-topbar-btn-inner{display:inline-flex;align-items:center;gap:.375rem}.cadastro-shell-topbar-btn-icon{font-size:1.05rem;line-height:1;flex-shrink:0}.cadastro-shell-topbar-btn-label{white-space:nowrap}:host ::ng-deep app-button.cadastro-shell-topbar-btn-header-secondary.base-button--secondary .base-button__native{border-color:var(--ui-button-secondary-border, var(--app-color-border-strong));background:var(--ui-button-secondary-bg, var(--app-color-surface-alt))}:host ::ng-deep app-button.cadastro-shell-topbar-btn-header-secondary.base-button--secondary .base-button__native:hover:not(:disabled){border-color:var(--ui-button-secondary-border-hover, var(--ui-button-secondary-border, var(--app-color-border)));background:var(--ui-button-secondary-bg-hover, var(--app-color-button-secondary-hover-bg))}@media(max-width:767.98px){.cadastro-shell-topbar-actions-row .cadastro-shell-topbar-btn-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.cadastro-shell-topbar-actions-row .cadastro-shell-topbar-btn-inner{gap:0}}\n"] }]
|
|
45116
|
+
}, template: "<app-cadastro-base-page class=\"cadastro-metadata-page__shell\" [cadastroInitError]=\"initError()\"\n [cadastroInitLoading]=\"initLoading()\" [runtime]=\"cadastro()?.runtime ?? null\"\n [shellTopbarReserveDuplicar]=\"cadastro()?.duplicateTopbarEnabled === true\"\n [toolbarInterno]=\"toolbarInterno()\"\n [embeddedInReferenciaDialog]=\"embeddedInReferenciaDialog()\"\n [corpoCentralizado]=\"formularioCorpoCentralizado()\" [cabecalhoPaginaVisivel]=\"cabecalhoPaginaVisivel()\"\n [validationUi]=\"validationUi()\" [skeletonPanelMaxWidth]=\"painelMaxWidthCss()\"\n [headerSecondaryAction]=\"headerSecondaryAction()\"\n (headerSecondaryActionClick)=\"headerSecondaryActionClick.emit()\">\n <ng-template #cadastroShellTopbarEnd>\n @if (!embeddedInReferenciaDialog()) {\n @if (cadastro(); as c) {\n <div class=\"cadastro-metadata-page__topbar-actions cadastro-shell-topbar-actions-row flex flex-wrap items-center justify-end gap-2\">\n @if (headerSecondaryActionVisible()) {\n @let headerAction = headerSecondaryAction()!;\n <app-button type=\"button\" class=\"cadastro-shell-topbar-btn-header-secondary\" variant=\"secondary\" size=\"md\"\n [fullWidth]=\"false\"\n [disabled]=\"headerAction.disabled || c.runtime.loading() || c.runtime.salvando() || c.runtime.excluindo()\"\n (click)=\"headerSecondaryActionClick.emit()\"\n [attr.aria-label]=\"headerAction.label\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n @if (headerAction.icon?.trim()) {\n <i [class]=\"headerAction.icon!.trim() + ' cadastro-shell-topbar-btn-icon'\" aria-hidden=\"true\"></i>\n }\n <span class=\"cadastro-shell-topbar-btn-label\">{{ headerAction.label }}</span>\n </span>\n </app-button>\n }\n @if (c.runtime.exibirToolbarSalvar) {\n <app-button type=\"button\" class=\"cadastro-shell-topbar-btn-salvar\" variant=\"success\" size=\"md\"\n [fullWidth]=\"false\" [disabled]=\"c.runtime.loading() || c.runtime.salvando()\"\n [loading]=\"c.runtime.salvando()\" (click)=\"c.runtime.salvar()\" [attr.aria-label]=\"'Salvar'\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n <i class=\"fa-solid fa-floppy-disk cadastro-shell-topbar-btn-icon\" aria-hidden=\"true\"></i>\n <span class=\"cadastro-shell-topbar-btn-label\">Salvar</span>\n </span>\n </app-button>\n }\n @if (c.runtime.exibirToolbarNovo && c.runtime.duplicar && c.runtime.podeDuplicar()) {\n <app-button type=\"button\" variant=\"secondary\" size=\"md\" [fullWidth]=\"false\"\n [disabled]=\"c.runtime.loading() || c.runtime.salvando() || c.runtime.excluindo()\"\n (click)=\"c.runtime.duplicar!()\" [attr.aria-label]=\"'Duplicar'\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n <i class=\"fa-solid fa-copy cadastro-shell-topbar-btn-icon\" aria-hidden=\"true\"></i>\n <span class=\"cadastro-shell-topbar-btn-label\">Duplicar</span>\n </span>\n </app-button>\n }\n @if (c.runtime.exibirToolbarNovo) {\n <app-button type=\"button\" variant=\"secondary\" size=\"md\" [fullWidth]=\"false\"\n [disabled]=\"!c.runtime.podeNovo()\"\n (click)=\"c.runtime.novo()\" [attr.aria-label]=\"'Novo registro'\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n <i class=\"fa-solid fa-file cadastro-shell-topbar-btn-icon\" aria-hidden=\"true\"></i>\n <span class=\"cadastro-shell-topbar-btn-label\">Novo</span>\n </span>\n </app-button>\n }\n @if (c.runtime.exibirToolbarExcluir && c.runtime.podeExcluir() && c.runtime.excluir) {\n <app-button type=\"button\" variant=\"danger\" size=\"md\" [fullWidth]=\"false\"\n [disabled]=\"c.runtime.salvando() || c.runtime.excluindo()\" [loading]=\"c.runtime.excluindo()\"\n (click)=\"c.runtime.excluir!()\" [attr.aria-label]=\"'Excluir'\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n <i class=\"fa-solid fa-trash-can cadastro-shell-topbar-btn-icon\" aria-hidden=\"true\"></i>\n <span class=\"cadastro-shell-topbar-btn-label\">Excluir</span>\n </span>\n </app-button>\n }\n @for (btn of toolbarButtonsEfectivos(); track btn.actionId) {\n @if (toolbarButtonVisible(c, btn)) {\n <app-button type=\"button\" size=\"md\" [fullWidth]=\"false\"\n [variant]=\"toolbarButtonVariant(btn.variant)\"\n [disabled]=\"toolbarButtonDisabled(c, btn)\"\n (click)=\"toolbarButtonClick.emit(btn)\"\n [attr.aria-label]=\"btn.label\">\n <span class=\"cadastro-shell-topbar-btn-inner\">\n @if (btn.iconClass.trim()) {\n <i [class]=\"btn.iconClass + ' cadastro-shell-topbar-btn-icon'\" aria-hidden=\"true\"></i>\n }\n <span class=\"cadastro-shell-topbar-btn-label\">{{ btn.label }}</span>\n </span>\n </app-button>\n }\n }\n </div>\n }\n }\n </ng-template>\n @if (cadastro(); as c) {\n <form [formGroup]=\"c.form\" (ngSubmit)=\"salvarSubmit.emit()\" novalidate\n class=\"cadastro-metadata-page__form flex w-full flex-col gap-2\"\n [class.mx-auto]=\"formularioCorpoCentralizado()\"\n [style.max-width]=\"formularioPainelMaxWidthCss()\">\n <app-form-section class=\"cadastro-metadata-page__section w-full\" [divider]=\"false\"\n [variant]=\"embeddedInPageShell() ? 'plain' : 'panel'\"\n [titulo]=\"sectionTitulo(c)\" [subtitulo]=\"sectionSubtitulo(c)\">\n <app-cadastro-fields-base [metadata]=\"metadataLayoutParaCampos()\"\n [camposMetadata]=\"camposMetadataCapa(c)\" [form]=\"c.form\" [runtime]=\"c.runtime\"\n [formKey]=\"entityName()\" [cadastroUiRegistry]=\"c.uiRegistry\" [searchSelectBindings]=\"searchSelectBindings()\"\n [listSelectBindings]=\"listSelectBindings()\" [multiselectBindings]=\"multiselectBindings()\"\n [redirectReturnUrl]=\"redirectReturnUrl()\" [formGridColumns]=\"formGridColumnsParaCampos()\"\n [sectionToolbarButtonsByKey]=\"c.sectionToolbarButtonsByKey ?? {}\"\n [sectionToolbarButtonDisabled]=\"c.sectionToolbarButtonDisabled ?? null\"\n (sectionToolbarButtonClick)=\"toolbarButtonClick.emit($event)\" />\n @if (layoutPageTabsOrdenadas().length > 0) {\n <app-form-tabs class=\"cadastro-metadata-page__tabs w-full\" [activeKey]=\"activeCadastroPageTabKey()\"\n (activeKeyChange)=\"onActiveCadastroTabChange($event)\" tablistAriaLabel=\"Sec\u00E7\u00F5es do cadastro\"\n variant=\"default\">\n @for (tab of layoutPageTabsOrdenadas(); track tab.key) {\n <app-form-tab [key]=\"tab.key\" [tabTitle]=\"tab.label\" [tabIconClass]=\"tab.icon\"\n [warning]=\"tabTemAvisoInvalidoVisivel(c, tab.key)\">\n @if (camposMetadataParaTab(c, tab.key).length > 0) {\n <app-cadastro-fields-base [metadata]=\"metadataLayoutParaCampos()\"\n [camposMetadata]=\"camposMetadataParaTab(c, tab.key)\" [form]=\"c.form\" [runtime]=\"c.runtime\"\n [formKey]=\"entityName()\" [cadastroUiRegistry]=\"c.uiRegistry\" [searchSelectBindings]=\"searchSelectBindings()\"\n [listSelectBindings]=\"listSelectBindings()\" [multiselectBindings]=\"multiselectBindings()\"\n [redirectReturnUrl]=\"redirectReturnUrl()\" [formGridColumns]=\"formGridColumnsParaCampos()\"\n [sectionToolbarButtonsByKey]=\"c.sectionToolbarButtonsByKey ?? {}\"\n [sectionToolbarButtonDisabled]=\"c.sectionToolbarButtonDisabled ?? null\"\n (sectionToolbarButtonClick)=\"toolbarButtonClick.emit($event)\" />\n } @else {\n <div class=\"cadastro-metadata-page__tab-empty px-2 py-8 text-center text-sm text-slate-500\">\n Sem conte\u00FAdo nesta sec\u00E7\u00E3o.\n </div>\n }\n </app-form-tab>\n }\n </app-form-tabs>\n }\n </app-form-section>\n </form>\n }\n</app-cadastro-base-page>\n", styles: ["@charset \"UTF-8\";:host{display:flex;flex-direction:column;flex:1 1 0%;min-height:0;width:100%;min-width:0;box-sizing:border-box}.cadastro-metadata-page__shell{flex:1 1 0%;min-height:0;width:100%;min-width:0;box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;overflow-y:auto}:host.cadastro-metadata-page--referencia-dialog .cadastro-metadata-page__shell{padding-inline:0;padding-block:.25rem .35rem;overflow-y:visible}@media(max-width:767.98px){:host.cadastro-metadata-page--referencia-dialog .cadastro-metadata-page__shell{padding-inline:0;padding-block:.2rem .35rem}}.cadastro-metadata-page__form{display:flex;flex-direction:column;gap:.5rem;box-sizing:border-box;width:100%;margin-inline:auto}:host ::ng-deep .cadastro-metadata-page__section.form-section--panel .form-section__body{gap:.4rem}:host ::ng-deep .cadastro-metadata-page__tabs .form-tab__panel{gap:.4rem}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__shell{padding:0;overflow-y:visible}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__form{width:100%;max-width:none!important;margin-inline:0!important;gap:.4rem}:host.cadastro-metadata-page--embedded-page-shell .cadastro-base-page__body{width:100%;max-width:none;min-width:0}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section.form-section--plain,:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section.form-section--panel,:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section.form-section--card{width:100%;max-width:none;margin:0;padding:0;border:none;border-radius:0;background:transparent;box-shadow:none}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section .form-section__header{display:none}:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section .form-section__content,:host.cadastro-metadata-page--embedded-page-shell .cadastro-metadata-page__section .form-section__body{padding:0}:host.cadastro-metadata-page--embedded-page-shell ::ng-deep .cadastro-fields-base__section.form-section--panel,:host.cadastro-metadata-page--embedded-page-shell ::ng-deep .cadastro-fields-base__section.form-section--card{width:100%;max-width:none;margin:0;padding:0;border:none;border-radius:0;background:transparent;box-shadow:none}\n", "@charset \"UTF-8\";.cadastro-shell-topbar-actions-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem}.cadastro-shell-topbar-btn-inner{display:inline-flex;align-items:center;gap:.375rem}.cadastro-shell-topbar-btn-icon{font-size:1.05rem;line-height:1;flex-shrink:0}.cadastro-shell-topbar-btn-label{white-space:nowrap}:host ::ng-deep app-button.cadastro-shell-topbar-btn-header-secondary.base-button--secondary .base-button__native{border-color:var(--ui-button-secondary-border, var(--app-color-border-strong));background:var(--ui-button-secondary-bg, var(--app-color-surface-alt))}:host ::ng-deep app-button.cadastro-shell-topbar-btn-header-secondary.base-button--secondary .base-button__native:hover:not(:disabled){border-color:var(--ui-button-secondary-border-hover, var(--ui-button-secondary-border, var(--app-color-border)));background:var(--ui-button-secondary-bg-hover, var(--app-color-button-secondary-hover-bg))}@media(max-width:767.98px){.cadastro-shell-topbar-actions-row .cadastro-shell-topbar-btn-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.cadastro-shell-topbar-actions-row .cadastro-shell-topbar-btn-inner{gap:0}}\n"] }]
|
|
45117
45117
|
}], ctorParameters: () => [], propDecorators: { entityName: [{ type: i0.Input, args: [{ isSignal: true, alias: "entityName", required: true }] }], entityLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "entityLabel", required: true }] }], cadastro: [{ type: i0.Input, args: [{ isSignal: true, alias: "cadastro", required: false }] }], initError: [{ type: i0.Input, args: [{ isSignal: true, alias: "initError", required: false }] }], initLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "initLoading", required: false }] }], validationUi: [{ type: i0.Input, args: [{ isSignal: true, alias: "validationUi", required: false }] }], searchSelectBindings: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchSelectBindings", required: false }] }], listSelectBindings: [{ type: i0.Input, args: [{ isSignal: true, alias: "listSelectBindings", required: false }] }], multiselectBindings: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiselectBindings", required: false }] }], metadataCamposReply: [{ type: i0.Input, args: [{ isSignal: true, alias: "metadataCamposReply", required: false }] }], redirectReturnUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "redirectReturnUrl", required: false }] }], painelMaxWidthHint: [{ type: i0.Input, args: [{ isSignal: true, alias: "painelMaxWidthHint", required: false }] }], maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }], corpoCentralizado: [{ type: i0.Input, args: [{ isSignal: true, alias: "corpoCentralizado", required: false }] }], cabecalhoPaginaVisivel: [{ type: i0.Input, args: [{ isSignal: true, alias: "cabecalhoPaginaVisivel", required: false }] }], toolbarInterno: [{ type: i0.Input, args: [{ isSignal: true, alias: "toolbarInterno", required: false }] }], embeddedInReferenciaDialog: [{ type: i0.Input, args: [{ isSignal: true, alias: "embeddedInReferenciaDialog", required: false }] }], suppressInternalPageTabs: [{ type: i0.Input, args: [{ isSignal: true, alias: "suppressInternalPageTabs", required: false }] }], externalShellTabKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "externalShellTabKey", required: false }] }], embeddedInPageShell: [{ type: i0.Input, args: [{ isSignal: true, alias: "embeddedInPageShell", required: false }] }], salvarSubmit: [{ type: i0.Output, args: ["salvarSubmit"] }], toolbarButtonClick: [{ type: i0.Output, args: ["toolbarButtonClick"] }], headerSecondaryAction: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerSecondaryAction", required: false }] }], headerSecondaryActionClick: [{ type: i0.Output, args: ["headerSecondaryActionClick"] }], tituloSection: [{ type: i0.Input, args: [{ isSignal: true, alias: "tituloSection", required: false }] }], subtituloSection: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtituloSection", required: false }] }] } });
|
|
45118
45118
|
|
|
45119
45119
|
function resolveStructraPageInputExpression(expression, ctx) {
|
|
@@ -47024,14 +47024,12 @@ class StructraReportPageBaseComponent {
|
|
|
47024
47024
|
if (!cached?.length) {
|
|
47025
47025
|
return;
|
|
47026
47026
|
}
|
|
47027
|
-
this.applyTreeNodes(cached
|
|
47027
|
+
this.applyTreeNodes(cached);
|
|
47028
47028
|
}
|
|
47029
|
-
applyTreeNodes(nodes
|
|
47029
|
+
applyTreeNodes(nodes) {
|
|
47030
47030
|
this.treeNodes.set(nodes);
|
|
47031
47031
|
this.loadingTree.set(false);
|
|
47032
|
-
|
|
47033
|
-
this.treeLoaded.emit(nodes);
|
|
47034
|
-
}
|
|
47032
|
+
this.treeLoaded.emit(nodes);
|
|
47035
47033
|
if (!this.effectiveSelectedId()) {
|
|
47036
47034
|
const initial = resolveInitialReportId(nodes, {
|
|
47037
47035
|
preferredId: this.initialReportId,
|
|
@@ -47058,7 +47056,7 @@ class StructraReportPageBaseComponent {
|
|
|
47058
47056
|
const nodes = this.useCache
|
|
47059
47057
|
? await this.treeCache.getOrFetch(this.cacheKey, fetcher, { force })
|
|
47060
47058
|
: await fetcher();
|
|
47061
|
-
this.applyTreeNodes(nodes
|
|
47059
|
+
this.applyTreeNodes(nodes);
|
|
47062
47060
|
}
|
|
47063
47061
|
catch (error) {
|
|
47064
47062
|
this.treeLoadError.emit(error);
|