@ngx-smz/layout 21.10.0-next.27 → 21.10.0-next.29
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/ngx-smz-layout-layout-configurator.entry-Dm9Xx7YB.mjs +101 -0
- package/fesm2022/ngx-smz-layout-layout-configurator.entry-Dm9Xx7YB.mjs.map +1 -0
- package/fesm2022/{ngx-smz-layout-layout-errors.entry-Bpp0Hw8y.mjs → ngx-smz-layout-layout-errors.entry-CQuwiz8W.mjs} +3 -3
- package/fesm2022/{ngx-smz-layout-layout-errors.entry-Bpp0Hw8y.mjs.map → ngx-smz-layout-layout-errors.entry-CQuwiz8W.mjs.map} +1 -1
- package/fesm2022/ngx-smz-layout-layout-footer.entry-BmXVGvze.mjs +135 -0
- package/fesm2022/ngx-smz-layout-layout-footer.entry-BmXVGvze.mjs.map +1 -0
- package/fesm2022/{ngx-smz-layout-layout-gallery.fixtures-yel7nOYX.mjs → ngx-smz-layout-layout-gallery.fixtures-BgO9_ncI.mjs} +34 -7
- package/fesm2022/ngx-smz-layout-layout-gallery.fixtures-BgO9_ncI.mjs.map +1 -0
- package/fesm2022/ngx-smz-layout-layout-menu.entry-DdTLZvao.mjs +237 -0
- package/fesm2022/ngx-smz-layout-layout-menu.entry-DdTLZvao.mjs.map +1 -0
- package/fesm2022/ngx-smz-layout-layout-shell.entry-qgGO3ZqB.mjs +205 -0
- package/fesm2022/ngx-smz-layout-layout-shell.entry-qgGO3ZqB.mjs.map +1 -0
- package/fesm2022/{ngx-smz-layout-layout-topbar.entry-CfSpHt5E.mjs → ngx-smz-layout-layout-topbar.entry-Bg3BEgJa.mjs} +158 -7
- package/fesm2022/ngx-smz-layout-layout-topbar.entry-Bg3BEgJa.mjs.map +1 -0
- package/fesm2022/{ngx-smz-layout-ngx-smz-layout-BEHAEWgI.mjs → ngx-smz-layout-ngx-smz-layout-CvjM-0jw.mjs} +945 -309
- package/fesm2022/ngx-smz-layout-ngx-smz-layout-CvjM-0jw.mjs.map +1 -0
- package/fesm2022/ngx-smz-layout.mjs +1 -1
- package/package.json +1 -1
- package/resources/layout/_core.scss +90 -4
- package/resources/layout/_footer.scss +1 -1
- package/resources/layout/_main.scss +10 -2
- package/resources/layout/_menu.scss +203 -34
- package/resources/layout/_mixins.scss +9 -8
- package/resources/layout/_preloading.scss +167 -5
- package/resources/layout/_responsive.scss +51 -15
- package/resources/layout/_topbar.scss +72 -34
- package/resources/layout/_typography.scss +14 -14
- package/resources/layout/_utils.scss +2 -2
- package/resources/layout/gallery-stage.scss +1 -1
- package/resources/layout/variables/_common.scss +9 -5
- package/resources/layout/variables/_dark.scss +0 -2
- package/resources/layout/variables/_legacy-common.scss +10 -8
- package/resources/layout/variables/_light.scss +0 -2
- package/types/ngx-smz-layout.d.ts +381 -52
- package/fesm2022/ngx-smz-layout-layout-footer.entry-CbNgTe0l.mjs +0 -51
- package/fesm2022/ngx-smz-layout-layout-footer.entry-CbNgTe0l.mjs.map +0 -1
- package/fesm2022/ngx-smz-layout-layout-gallery.fixtures-yel7nOYX.mjs.map +0 -1
- package/fesm2022/ngx-smz-layout-layout-menu.entry-BAzglN_V.mjs +0 -99
- package/fesm2022/ngx-smz-layout-layout-menu.entry-BAzglN_V.mjs.map +0 -1
- package/fesm2022/ngx-smz-layout-layout-shell.entry-CWxnFneU.mjs +0 -78
- package/fesm2022/ngx-smz-layout-layout-shell.entry-CWxnFneU.mjs.map +0 -1
- package/fesm2022/ngx-smz-layout-layout-topbar.entry-CfSpHt5E.mjs.map +0 -1
- package/fesm2022/ngx-smz-layout-ngx-smz-layout-BEHAEWgI.mjs.map +0 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, ElementRef, afterEveryRender, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { SmzGalleryCaseComponent, SmzGallerySectionComponent } from '@ngx-smz/core';
|
|
4
|
+
import { S as SMZ_UI_LAYOUT_CONFIG } from './ngx-smz-layout-ngx-smz-layout-CvjM-0jw.mjs';
|
|
5
|
+
import { c as GALLERY_LOGO, S as SmzLayoutGalleryStageComponent } from './ngx-smz-layout-layout-gallery.fixtures-BgO9_ncI.mjs';
|
|
6
|
+
|
|
7
|
+
/** Classe que mantém o painel fechado; no app, quem a tira é o botão da topbar (`smzStyleClass`). */
|
|
8
|
+
const CLOSED_CLASS = 'hidden';
|
|
9
|
+
/**
|
|
10
|
+
* Galeria: painel do configurador (`app-configurator`: cor primária, superfície e modo do menu), aberto.
|
|
11
|
+
* Mostra os três tokens do grupo `configurator`: a distância ao topo (`offset`), a sombra do painel (`shadow`) e o
|
|
12
|
+
* peso dos rótulos das seções (`label.fontWeight`).
|
|
13
|
+
*
|
|
14
|
+
* No app o painel nasce fechado (classe `hidden`) e abre pelo botão da topbar. Aqui a entrada tira a classe depois de
|
|
15
|
+
* cada renderização, sem clique, para a captura não depender de animação nem de foco.
|
|
16
|
+
*
|
|
17
|
+
* O painel não aplica escolhas: os palcos ficam dentro de um bloco `inert` (sem clique nem teclado), então o tema do
|
|
18
|
+
* app não muda enquanto a galeria captura as outras cenas. A cor primária e a superfície que o app hospedeiro já
|
|
19
|
+
* escolheu (quando ele usa `configureSmzUILayout()`) são repassadas ao palco: o configurador nasce com a mesma
|
|
20
|
+
* escolha e não desfaz o que o configurador do app escreveu no tema.
|
|
21
|
+
*/
|
|
22
|
+
class LayoutConfiguratorGalleryEntryComponent {
|
|
23
|
+
host = inject(ElementRef);
|
|
24
|
+
/** Escolha de cor do app hospedeiro, quando ele configura o layout; sem ela, o painel não marca paleta nenhuma. */
|
|
25
|
+
appChoice = this.readAppChoice();
|
|
26
|
+
panels = [
|
|
27
|
+
{ label: 'menu static', config: { layout: { ...this.appChoice, menuMode: 'static' } } },
|
|
28
|
+
{ label: 'menu overlay', config: { layout: { ...this.appChoice, menuMode: 'overlay' } } },
|
|
29
|
+
];
|
|
30
|
+
topbar = {
|
|
31
|
+
topbar: { showMenuToggle: true, logoPath: GALLERY_LOGO, appName: 'Gestão Comercial', showConfigurator: true, showDarkModeToggle: true },
|
|
32
|
+
layout: { ...this.appChoice },
|
|
33
|
+
};
|
|
34
|
+
constructor() {
|
|
35
|
+
// O palco recria a peça quando o modo claro/escuro muda, e ela volta fechada: reabre a cada renderização.
|
|
36
|
+
afterEveryRender(() => {
|
|
37
|
+
for (const panel of Array.from(this.host.nativeElement.querySelectorAll('app-configurator')))
|
|
38
|
+
panel.classList.remove(CLOSED_CLASS);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
readAppChoice() {
|
|
42
|
+
const app = inject(SMZ_UI_LAYOUT_CONFIG, { optional: true })?.layout();
|
|
43
|
+
const choice = {};
|
|
44
|
+
if (app?.primary != null)
|
|
45
|
+
choice.primary = app.primary;
|
|
46
|
+
if (app?.surface != null)
|
|
47
|
+
choice.surface = app.surface;
|
|
48
|
+
return choice;
|
|
49
|
+
}
|
|
50
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutConfiguratorGalleryEntryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
51
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: LayoutConfiguratorGalleryEntryComponent, isStandalone: true, selector: "smz-gallery-layout-configurator-entry", host: { classAttribute: "flex flex-col gap-8" }, ngImport: i0, template: `
|
|
52
|
+
<smz-gallery-section label="Painel do configurador aberto" [columns]="2">
|
|
53
|
+
@for (item of panels; track item.label) {
|
|
54
|
+
<smz-gallery-case [label]="item.label">
|
|
55
|
+
<div inert>
|
|
56
|
+
<smz-gallery-layout-stage piece="configurator" width="20rem" height="22rem" [config]="item.config" />
|
|
57
|
+
</div>
|
|
58
|
+
</smz-gallery-case>
|
|
59
|
+
}
|
|
60
|
+
</smz-gallery-section>
|
|
61
|
+
|
|
62
|
+
<smz-gallery-section label="Na topbar (showConfigurator)" [columns]="1">
|
|
63
|
+
<smz-gallery-case label="painel aberto abaixo do botão de configurações">
|
|
64
|
+
<div inert>
|
|
65
|
+
<smz-gallery-layout-stage piece="topbar" height="22rem" [config]="topbar" />
|
|
66
|
+
</div>
|
|
67
|
+
</smz-gallery-case>
|
|
68
|
+
</smz-gallery-section>
|
|
69
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SmzGalleryCaseComponent, selector: "smz-gallery-case", inputs: ["label", "force", "target"] }, { kind: "component", type: SmzGallerySectionComponent, selector: "smz-gallery-section", inputs: ["label", "columns"] }, { kind: "component", type: SmzLayoutGalleryStageComponent, selector: "smz-gallery-layout-stage", inputs: ["piece", "config", "width", "height", "scale", "inputs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
70
|
+
}
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutConfiguratorGalleryEntryComponent, decorators: [{
|
|
72
|
+
type: Component,
|
|
73
|
+
args: [{
|
|
74
|
+
selector: 'smz-gallery-layout-configurator-entry',
|
|
75
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
76
|
+
imports: [SmzGalleryCaseComponent, SmzGallerySectionComponent, SmzLayoutGalleryStageComponent],
|
|
77
|
+
host: { class: 'flex flex-col gap-8' },
|
|
78
|
+
template: `
|
|
79
|
+
<smz-gallery-section label="Painel do configurador aberto" [columns]="2">
|
|
80
|
+
@for (item of panels; track item.label) {
|
|
81
|
+
<smz-gallery-case [label]="item.label">
|
|
82
|
+
<div inert>
|
|
83
|
+
<smz-gallery-layout-stage piece="configurator" width="20rem" height="22rem" [config]="item.config" />
|
|
84
|
+
</div>
|
|
85
|
+
</smz-gallery-case>
|
|
86
|
+
}
|
|
87
|
+
</smz-gallery-section>
|
|
88
|
+
|
|
89
|
+
<smz-gallery-section label="Na topbar (showConfigurator)" [columns]="1">
|
|
90
|
+
<smz-gallery-case label="painel aberto abaixo do botão de configurações">
|
|
91
|
+
<div inert>
|
|
92
|
+
<smz-gallery-layout-stage piece="topbar" height="22rem" [config]="topbar" />
|
|
93
|
+
</div>
|
|
94
|
+
</smz-gallery-case>
|
|
95
|
+
</smz-gallery-section>
|
|
96
|
+
`,
|
|
97
|
+
}]
|
|
98
|
+
}], ctorParameters: () => [] });
|
|
99
|
+
|
|
100
|
+
export { LayoutConfiguratorGalleryEntryComponent };
|
|
101
|
+
//# sourceMappingURL=ngx-smz-layout-layout-configurator.entry-Dm9Xx7YB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-smz-layout-layout-configurator.entry-Dm9Xx7YB.mjs","sources":["../../../projects/ngx-smz-ui-layout/src/lib/gallery/entries/layout-configurator.entry.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, afterEveryRender, inject } from '@angular/core';\nimport { SmzGalleryCaseComponent, SmzGallerySectionComponent } from '@ngx-smz/core';\nimport { SMZ_UI_LAYOUT_CONFIG } from '../../config/provide';\nimport { LayoutConfig } from '../../layout/service/layout.service';\nimport { SmzLayoutGalleryStageComponent, SmzLayoutGalleryStageConfig } from '../layout-gallery-stage.component';\nimport { GALLERY_LOGO } from '../layout-gallery.fixtures';\n\ninterface ConfiguratorCase {\n label: string;\n config: SmzLayoutGalleryStageConfig;\n}\n\n/** Classe que mantém o painel fechado; no app, quem a tira é o botão da topbar (`smzStyleClass`). */\nconst CLOSED_CLASS = 'hidden';\n\n/**\n * Galeria: painel do configurador (`app-configurator`: cor primária, superfície e modo do menu), aberto.\n * Mostra os três tokens do grupo `configurator`: a distância ao topo (`offset`), a sombra do painel (`shadow`) e o\n * peso dos rótulos das seções (`label.fontWeight`).\n *\n * No app o painel nasce fechado (classe `hidden`) e abre pelo botão da topbar. Aqui a entrada tira a classe depois de\n * cada renderização, sem clique, para a captura não depender de animação nem de foco.\n *\n * O painel não aplica escolhas: os palcos ficam dentro de um bloco `inert` (sem clique nem teclado), então o tema do\n * app não muda enquanto a galeria captura as outras cenas. A cor primária e a superfície que o app hospedeiro já\n * escolheu (quando ele usa `configureSmzUILayout()`) são repassadas ao palco: o configurador nasce com a mesma\n * escolha e não desfaz o que o configurador do app escreveu no tema.\n */\n@Component({\n selector: 'smz-gallery-layout-configurator-entry',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SmzGalleryCaseComponent, SmzGallerySectionComponent, SmzLayoutGalleryStageComponent],\n host: { class: 'flex flex-col gap-8' },\n template: `\n <smz-gallery-section label=\"Painel do configurador aberto\" [columns]=\"2\">\n @for (item of panels; track item.label) {\n <smz-gallery-case [label]=\"item.label\">\n <div inert>\n <smz-gallery-layout-stage piece=\"configurator\" width=\"20rem\" height=\"22rem\" [config]=\"item.config\" />\n </div>\n </smz-gallery-case>\n }\n </smz-gallery-section>\n\n <smz-gallery-section label=\"Na topbar (showConfigurator)\" [columns]=\"1\">\n <smz-gallery-case label=\"painel aberto abaixo do botão de configurações\">\n <div inert>\n <smz-gallery-layout-stage piece=\"topbar\" height=\"22rem\" [config]=\"topbar\" />\n </div>\n </smz-gallery-case>\n </smz-gallery-section>\n `,\n})\nexport class LayoutConfiguratorGalleryEntryComponent {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** Escolha de cor do app hospedeiro, quando ele configura o layout; sem ela, o painel não marca paleta nenhuma. */\n private readonly appChoice = this.readAppChoice();\n\n protected readonly panels: ConfiguratorCase[] = [\n { label: 'menu static', config: { layout: { ...this.appChoice, menuMode: 'static' } } },\n { label: 'menu overlay', config: { layout: { ...this.appChoice, menuMode: 'overlay' } } },\n ];\n\n protected readonly topbar: SmzLayoutGalleryStageConfig = {\n topbar: { showMenuToggle: true, logoPath: GALLERY_LOGO, appName: 'Gestão Comercial', showConfigurator: true, showDarkModeToggle: true },\n layout: { ...this.appChoice },\n };\n\n constructor() {\n // O palco recria a peça quando o modo claro/escuro muda, e ela volta fechada: reabre a cada renderização.\n afterEveryRender(() => {\n for (const panel of Array.from(this.host.nativeElement.querySelectorAll('app-configurator'))) panel.classList.remove(CLOSED_CLASS);\n });\n }\n\n private readAppChoice(): Pick<LayoutConfig, 'primary' | 'surface'> {\n const app = inject(SMZ_UI_LAYOUT_CONFIG, { optional: true })?.layout();\n const choice: Pick<LayoutConfig, 'primary' | 'surface'> = {};\n if (app?.primary != null) choice.primary = app.primary;\n if (app?.surface != null) choice.surface = app.surface;\n\n return choice;\n }\n}\n"],"names":[],"mappings":";;;;;;AAYA;AACA,MAAM,YAAY,GAAG,QAAQ;AAE7B;;;;;;;;;;;;AAYG;MA0BU,uCAAuC,CAAA;AACjC,IAAA,IAAI,GAAG,MAAM,CAA0B,UAAU,CAAC;;AAGlD,IAAA,SAAS,GAAG,IAAI,CAAC,aAAa,EAAE;AAE9B,IAAA,MAAM,GAAuB;QAC9C,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;QACvF,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE;KAC1F;AAEkB,IAAA,MAAM,GAAgC;QACvD,MAAM,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE;AACvI,QAAA,MAAM,EAAE,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE;KAC9B;AAED,IAAA,WAAA,GAAA;;QAEE,gBAAgB,CAAC,MAAK;AACpB,YAAA,KAAK,MAAM,KAAK,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;AAAE,gBAAA,KAAK,CAAC,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A,EAAA,IAAA,EAAE,8BAA8B,EAAA,QAAA,EAAA,0BAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAsBlF,uCAAuC,EAAA,UAAA,EAAA,CAAA;kBAzBnD,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uCAAuC;oBACjD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,uBAAuB,EAAE,0BAA0B,EAAE,8BAA8B,CAAC;AAC9F,oBAAA,IAAI,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE;AACtC,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;AAkBT,EAAA,CAAA;AACF,iBAAA;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { inject, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
import { SMZ_GALLERY_SCENE, SmzGalleryCaseComponent, SmzGallerySectionComponent } from '@ngx-smz/core';
|
|
4
|
-
import {
|
|
4
|
+
import { h as GALLERY_ERRORS_FULL, i as GALLERY_ERRORS, S as SmzLayoutGalleryStageComponent } from './ngx-smz-layout-layout-gallery.fixtures-BgO9_ncI.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Galeria: páginas de erro, acesso restrito e não encontrada. As páginas são `w-screen h-screen`, então cada
|
|
@@ -26,7 +26,7 @@ class LayoutErrorsGalleryEntryComponent {
|
|
|
26
26
|
<smz-gallery-layout-stage width="100vw" height="100vh" [piece]="current.piece" [scale]="0.5" [config]="current.config" />
|
|
27
27
|
</smz-gallery-case>
|
|
28
28
|
</smz-gallery-section>
|
|
29
|
-
`, isInline: true, dependencies: [{ kind: "component", type: SmzGalleryCaseComponent, selector: "smz-gallery-case", inputs: ["label", "force", "target"] }, { kind: "component", type: SmzGallerySectionComponent, selector: "smz-gallery-section", inputs: ["label", "columns"] }, { kind: "component", type: SmzLayoutGalleryStageComponent, selector: "smz-gallery-layout-stage", inputs: ["piece", "config", "width", "height", "scale"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
29
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SmzGalleryCaseComponent, selector: "smz-gallery-case", inputs: ["label", "force", "target"] }, { kind: "component", type: SmzGallerySectionComponent, selector: "smz-gallery-section", inputs: ["label", "columns"] }, { kind: "component", type: SmzLayoutGalleryStageComponent, selector: "smz-gallery-layout-stage", inputs: ["piece", "config", "width", "height", "scale", "inputs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
30
30
|
}
|
|
31
31
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutErrorsGalleryEntryComponent, decorators: [{
|
|
32
32
|
type: Component,
|
|
@@ -46,4 +46,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
46
46
|
}] });
|
|
47
47
|
|
|
48
48
|
export { LayoutErrorsGalleryEntryComponent };
|
|
49
|
-
//# sourceMappingURL=ngx-smz-layout-layout-errors.entry-
|
|
49
|
+
//# sourceMappingURL=ngx-smz-layout-layout-errors.entry-CQuwiz8W.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-smz-layout-layout-errors.entry-
|
|
1
|
+
{"version":3,"file":"ngx-smz-layout-layout-errors.entry-CQuwiz8W.mjs","sources":["../../../projects/ngx-smz-ui-layout/src/lib/gallery/entries/layout-errors.entry.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { SMZ_GALLERY_SCENE, SmzGalleryCaseComponent, SmzGallerySectionComponent } from '@ngx-smz/core';\nimport { SmzLayoutGalleryPiece, SmzLayoutGalleryStageComponent, SmzLayoutGalleryStageConfig } from '../layout-gallery-stage.component';\nimport { GALLERY_ERRORS, GALLERY_ERRORS_FULL } from '../layout-gallery.fixtures';\n\ninterface ErrorScene {\n section: string;\n label: string;\n piece: SmzLayoutGalleryPiece;\n config: SmzLayoutGalleryStageConfig;\n}\n\n/**\n * Galeria: páginas de erro, acesso restrito e não encontrada. As páginas são `w-screen h-screen`, então cada\n * cena desenha uma delas no tamanho da viewport e reduz à metade dentro da caixa. A imagem de fundo\n * (`backgroundPath`) é um SVG embutido.\n */\n@Component({\n selector: 'smz-gallery-layout-errors-entry',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SmzGalleryCaseComponent, SmzGallerySectionComponent, SmzLayoutGalleryStageComponent],\n host: { class: 'flex flex-col gap-8' },\n template: `\n <smz-gallery-section [label]=\"current.section\" [columns]=\"1\">\n <smz-gallery-case [label]=\"current.label\">\n <smz-gallery-layout-stage width=\"100vw\" height=\"100vh\" [piece]=\"current.piece\" [scale]=\"0.5\" [config]=\"current.config\" />\n </smz-gallery-case>\n </smz-gallery-section>\n `,\n})\nexport class LayoutErrorsGalleryEntryComponent {\n protected readonly scene = inject(SMZ_GALLERY_SCENE);\n\n private readonly scenes: Record<string, ErrorScene> = {\n default: { section: 'Erro', label: 'ErrorPageComponent · um botão danger', piece: 'error', config: { errors: GALLERY_ERRORS } },\n 'error-buttons': { section: 'Erro com vários botões', label: 'ErrorPageComponent · todas as severidades de botão', piece: 'error', config: { errors: GALLERY_ERRORS_FULL } },\n access: { section: 'Acesso restrito', label: 'AccessPageComponent', piece: 'access', config: { errors: GALLERY_ERRORS } },\n notfound: { section: 'Não encontrada', label: 'NotfoundPageComponent · sem atalhos', piece: 'notfound', config: { errors: GALLERY_ERRORS } },\n 'notfound-links': { section: 'Não encontrada com atalhos', label: 'NotfoundPageComponent · links e dois botões', piece: 'notfound', config: { errors: GALLERY_ERRORS_FULL } },\n };\n\n // A entrada é recriada a cada troca de cena (o host da galeria recarrega o componente).\n protected readonly current = this.scenes[this.scene()] ?? this.scenes['default'];\n}\n"],"names":[],"mappings":";;;;;AAYA;;;;AAIG;MAcU,iCAAiC,CAAA;AACzB,IAAA,KAAK,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAEnC,IAAA,MAAM,GAA+B;QACpD,OAAO,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,sCAAsC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE;QAC/H,eAAe,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE,KAAK,EAAE,oDAAoD,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,EAAE;QAC5K,MAAM,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAAE,qBAAqB,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE;QACzH,QAAQ,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,qCAAqC,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE;QAC5I,gBAAgB,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE,KAAK,EAAE,6CAA6C,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,EAAE;KAC9K;;AAGkB,IAAA,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;uGAZrE,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAjC,IAAA,OAAA,IAAA,G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 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { SMZ_GALLERY_SCENE, SmzGalleryCaseComponent, SmzGallerySectionComponent } from '@ngx-smz/core';
|
|
4
|
+
import { c as GALLERY_LOGO, b as GALLERY_AVATAR, f as GALLERY_BACKGROUND, S as SmzLayoutGalleryStageComponent } from './ngx-smz-layout-layout-gallery.fixtures-BgO9_ncI.mjs';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Galeria: rodapé (`app-footer`), um caso por combinação do contrato `Footer`. O logotipo segue o modo claro/escuro.
|
|
8
|
+
*
|
|
9
|
+
* Cenas: `texts-and-images` (texto livre dos dois lados e imagens de marca à direita) e `slot` (conteúdo extra por
|
|
10
|
+
* template `footerExtras`; o palco entrega o template direto ao rodapé, como `<app-layout>` faz com o que recebe por
|
|
11
|
+
* projeção).
|
|
12
|
+
*/
|
|
13
|
+
class LayoutFooterGalleryEntryComponent {
|
|
14
|
+
scene = inject(SMZ_GALLERY_SCENE);
|
|
15
|
+
cases = [
|
|
16
|
+
{ label: 'vazio (só a linha superior)', config: { footer: {} } },
|
|
17
|
+
{ label: 'versão', config: { footer: { version: 'v21.10.0' } } },
|
|
18
|
+
{ label: 'copyright', config: { footer: { copyright: '© 2026 Gestão Comercial' } } },
|
|
19
|
+
{ label: 'versão e copyright', config: { footer: { version: 'v21.10.0', copyright: '© 2026 Gestão Comercial' } } },
|
|
20
|
+
{ label: 'logotipo à esquerda e versão', config: { footer: { leftLogoPath: GALLERY_LOGO, version: 'v21.10.0' } } },
|
|
21
|
+
{ label: 'logotipo à direita', config: { footer: { rightLogoPath: GALLERY_LOGO } } },
|
|
22
|
+
{
|
|
23
|
+
label: 'completo: logotipos à esquerda e à direita, versão e copyright',
|
|
24
|
+
config: { footer: { leftLogoPath: GALLERY_LOGO, rightLogoPath: GALLERY_LOGO, version: 'v21.10.0', copyright: '© 2026 Gestão Comercial' } },
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
images = [GALLERY_LOGO.light, GALLERY_AVATAR, GALLERY_BACKGROUND];
|
|
28
|
+
empty = { footer: {} };
|
|
29
|
+
complete = {
|
|
30
|
+
footer: {
|
|
31
|
+
leftLogoPath: GALLERY_LOGO,
|
|
32
|
+
leftSideText: 'Gestão Comercial',
|
|
33
|
+
rightSideText: 'Desenvolvido pela equipe de produto',
|
|
34
|
+
rightSideImages: this.images,
|
|
35
|
+
version: 'v21.10.0',
|
|
36
|
+
copyright: '© 2026 Gestão Comercial',
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
textsAndImages = [
|
|
40
|
+
{ label: 'leftSideText', config: { footer: { leftSideText: 'Gestão Comercial' } } },
|
|
41
|
+
{ label: 'rightSideText', config: { footer: { rightSideText: 'Desenvolvido pela equipe de produto' } } },
|
|
42
|
+
{ label: 'leftSideText e rightSideText', config: { footer: { leftSideText: 'Gestão Comercial', rightSideText: 'Desenvolvido pela equipe de produto' } } },
|
|
43
|
+
{ label: 'logotipo à esquerda seguido de leftSideText', config: { footer: { leftLogoPath: GALLERY_LOGO, leftSideText: 'Gestão Comercial' } } },
|
|
44
|
+
{ label: 'rightSideImages (três imagens, classe padrão max-w-24)', config: { footer: { rightSideImages: this.images } } },
|
|
45
|
+
{ label: 'rightSideImages com rightSideImageStyleClass (max-w-12)', config: { footer: { rightSideImages: this.images, rightSideImageStyleClass: 'max-w-12' } } },
|
|
46
|
+
{ label: 'completo: logotipo, textos, imagens, versão e copyright', config: this.complete },
|
|
47
|
+
];
|
|
48
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutFooterGalleryEntryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
49
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: LayoutFooterGalleryEntryComponent, isStandalone: true, selector: "smz-gallery-layout-footer-entry", host: { classAttribute: "flex flex-col gap-8" }, ngImport: i0, template: `
|
|
50
|
+
@switch (scene()) {
|
|
51
|
+
@case ('texts-and-images') {
|
|
52
|
+
<smz-gallery-section label="Rodapé: texto livre e imagens de marca" [columns]="1">
|
|
53
|
+
@for (item of textsAndImages; track item.label) {
|
|
54
|
+
<smz-gallery-case [label]="item.label">
|
|
55
|
+
<smz-gallery-layout-stage piece="footer" [config]="item.config" />
|
|
56
|
+
</smz-gallery-case>
|
|
57
|
+
}
|
|
58
|
+
</smz-gallery-section>
|
|
59
|
+
}
|
|
60
|
+
@case ('slot') {
|
|
61
|
+
<ng-template #extras>
|
|
62
|
+
<span class="text-ui-md leading-5 text-ui-primary">Política de privacidade</span>
|
|
63
|
+
<span class="rounded-pill border border-ui-line px-3 py-1 text-ui-xs leading-4 text-ui-fg">Ambiente de homologação</span>
|
|
64
|
+
</ng-template>
|
|
65
|
+
|
|
66
|
+
<smz-gallery-section label="Rodapé: conteúdo extra por template" [columns]="1">
|
|
67
|
+
<smz-gallery-case label="footerExtras sozinho">
|
|
68
|
+
<smz-gallery-layout-stage piece="footer" [config]="empty" [inputs]="{ footerExtras: extras }" />
|
|
69
|
+
</smz-gallery-case>
|
|
70
|
+
<smz-gallery-case label="footerExtras entre o texto da direita e as imagens, com versão e copyright">
|
|
71
|
+
<smz-gallery-layout-stage piece="footer" [config]="complete" [inputs]="{ footerExtras: extras }" />
|
|
72
|
+
</smz-gallery-case>
|
|
73
|
+
</smz-gallery-section>
|
|
74
|
+
}
|
|
75
|
+
@default {
|
|
76
|
+
<smz-gallery-section label="Rodapé" [columns]="1">
|
|
77
|
+
@for (item of cases; track item.label) {
|
|
78
|
+
<smz-gallery-case [label]="item.label">
|
|
79
|
+
<smz-gallery-layout-stage piece="footer" [config]="item.config" />
|
|
80
|
+
</smz-gallery-case>
|
|
81
|
+
}
|
|
82
|
+
</smz-gallery-section>
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SmzGalleryCaseComponent, selector: "smz-gallery-case", inputs: ["label", "force", "target"] }, { kind: "component", type: SmzGallerySectionComponent, selector: "smz-gallery-section", inputs: ["label", "columns"] }, { kind: "component", type: SmzLayoutGalleryStageComponent, selector: "smz-gallery-layout-stage", inputs: ["piece", "config", "width", "height", "scale", "inputs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
86
|
+
}
|
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutFooterGalleryEntryComponent, decorators: [{
|
|
88
|
+
type: Component,
|
|
89
|
+
args: [{
|
|
90
|
+
selector: 'smz-gallery-layout-footer-entry',
|
|
91
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
92
|
+
imports: [SmzGalleryCaseComponent, SmzGallerySectionComponent, SmzLayoutGalleryStageComponent],
|
|
93
|
+
host: { class: 'flex flex-col gap-8' },
|
|
94
|
+
template: `
|
|
95
|
+
@switch (scene()) {
|
|
96
|
+
@case ('texts-and-images') {
|
|
97
|
+
<smz-gallery-section label="Rodapé: texto livre e imagens de marca" [columns]="1">
|
|
98
|
+
@for (item of textsAndImages; track item.label) {
|
|
99
|
+
<smz-gallery-case [label]="item.label">
|
|
100
|
+
<smz-gallery-layout-stage piece="footer" [config]="item.config" />
|
|
101
|
+
</smz-gallery-case>
|
|
102
|
+
}
|
|
103
|
+
</smz-gallery-section>
|
|
104
|
+
}
|
|
105
|
+
@case ('slot') {
|
|
106
|
+
<ng-template #extras>
|
|
107
|
+
<span class="text-ui-md leading-5 text-ui-primary">Política de privacidade</span>
|
|
108
|
+
<span class="rounded-pill border border-ui-line px-3 py-1 text-ui-xs leading-4 text-ui-fg">Ambiente de homologação</span>
|
|
109
|
+
</ng-template>
|
|
110
|
+
|
|
111
|
+
<smz-gallery-section label="Rodapé: conteúdo extra por template" [columns]="1">
|
|
112
|
+
<smz-gallery-case label="footerExtras sozinho">
|
|
113
|
+
<smz-gallery-layout-stage piece="footer" [config]="empty" [inputs]="{ footerExtras: extras }" />
|
|
114
|
+
</smz-gallery-case>
|
|
115
|
+
<smz-gallery-case label="footerExtras entre o texto da direita e as imagens, com versão e copyright">
|
|
116
|
+
<smz-gallery-layout-stage piece="footer" [config]="complete" [inputs]="{ footerExtras: extras }" />
|
|
117
|
+
</smz-gallery-case>
|
|
118
|
+
</smz-gallery-section>
|
|
119
|
+
}
|
|
120
|
+
@default {
|
|
121
|
+
<smz-gallery-section label="Rodapé" [columns]="1">
|
|
122
|
+
@for (item of cases; track item.label) {
|
|
123
|
+
<smz-gallery-case [label]="item.label">
|
|
124
|
+
<smz-gallery-layout-stage piece="footer" [config]="item.config" />
|
|
125
|
+
</smz-gallery-case>
|
|
126
|
+
}
|
|
127
|
+
</smz-gallery-section>
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
`,
|
|
131
|
+
}]
|
|
132
|
+
}] });
|
|
133
|
+
|
|
134
|
+
export { LayoutFooterGalleryEntryComponent };
|
|
135
|
+
//# sourceMappingURL=ngx-smz-layout-layout-footer.entry-BmXVGvze.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-smz-layout-layout-footer.entry-BmXVGvze.mjs","sources":["../../../projects/ngx-smz-ui-layout/src/lib/gallery/entries/layout-footer.entry.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { SMZ_GALLERY_SCENE, SmzGalleryCaseComponent, SmzGallerySectionComponent } from '@ngx-smz/core';\nimport { SmzLayoutGalleryStageComponent, SmzLayoutGalleryStageConfig } from '../layout-gallery-stage.component';\nimport { GALLERY_AVATAR, GALLERY_BACKGROUND, GALLERY_LOGO } from '../layout-gallery.fixtures';\n\ninterface FooterCase {\n label: string;\n config: SmzLayoutGalleryStageConfig;\n}\n\n/**\n * Galeria: rodapé (`app-footer`), um caso por combinação do contrato `Footer`. O logotipo segue o modo claro/escuro.\n *\n * Cenas: `texts-and-images` (texto livre dos dois lados e imagens de marca à direita) e `slot` (conteúdo extra por\n * template `footerExtras`; o palco entrega o template direto ao rodapé, como `<app-layout>` faz com o que recebe por\n * projeção).\n */\n@Component({\n selector: 'smz-gallery-layout-footer-entry',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SmzGalleryCaseComponent, SmzGallerySectionComponent, SmzLayoutGalleryStageComponent],\n host: { class: 'flex flex-col gap-8' },\n template: `\n @switch (scene()) {\n @case ('texts-and-images') {\n <smz-gallery-section label=\"Rodapé: texto livre e imagens de marca\" [columns]=\"1\">\n @for (item of textsAndImages; track item.label) {\n <smz-gallery-case [label]=\"item.label\">\n <smz-gallery-layout-stage piece=\"footer\" [config]=\"item.config\" />\n </smz-gallery-case>\n }\n </smz-gallery-section>\n }\n @case ('slot') {\n <ng-template #extras>\n <span class=\"text-ui-md leading-5 text-ui-primary\">Política de privacidade</span>\n <span class=\"rounded-pill border border-ui-line px-3 py-1 text-ui-xs leading-4 text-ui-fg\">Ambiente de homologação</span>\n </ng-template>\n\n <smz-gallery-section label=\"Rodapé: conteúdo extra por template\" [columns]=\"1\">\n <smz-gallery-case label=\"footerExtras sozinho\">\n <smz-gallery-layout-stage piece=\"footer\" [config]=\"empty\" [inputs]=\"{ footerExtras: extras }\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"footerExtras entre o texto da direita e as imagens, com versão e copyright\">\n <smz-gallery-layout-stage piece=\"footer\" [config]=\"complete\" [inputs]=\"{ footerExtras: extras }\" />\n </smz-gallery-case>\n </smz-gallery-section>\n }\n @default {\n <smz-gallery-section label=\"Rodapé\" [columns]=\"1\">\n @for (item of cases; track item.label) {\n <smz-gallery-case [label]=\"item.label\">\n <smz-gallery-layout-stage piece=\"footer\" [config]=\"item.config\" />\n </smz-gallery-case>\n }\n </smz-gallery-section>\n }\n }\n `,\n})\nexport class LayoutFooterGalleryEntryComponent {\n protected readonly scene = inject(SMZ_GALLERY_SCENE);\n\n protected readonly cases: FooterCase[] = [\n { label: 'vazio (só a linha superior)', config: { footer: {} } },\n { label: 'versão', config: { footer: { version: 'v21.10.0' } } },\n { label: 'copyright', config: { footer: { copyright: '© 2026 Gestão Comercial' } } },\n { label: 'versão e copyright', config: { footer: { version: 'v21.10.0', copyright: '© 2026 Gestão Comercial' } } },\n { label: 'logotipo à esquerda e versão', config: { footer: { leftLogoPath: GALLERY_LOGO, version: 'v21.10.0' } } },\n { label: 'logotipo à direita', config: { footer: { rightLogoPath: GALLERY_LOGO } } },\n {\n label: 'completo: logotipos à esquerda e à direita, versão e copyright',\n config: { footer: { leftLogoPath: GALLERY_LOGO, rightLogoPath: GALLERY_LOGO, version: 'v21.10.0', copyright: '© 2026 Gestão Comercial' } },\n },\n ];\n\n private readonly images = [GALLERY_LOGO.light, GALLERY_AVATAR, GALLERY_BACKGROUND];\n\n protected readonly empty: SmzLayoutGalleryStageConfig = { footer: {} };\n\n protected readonly complete: SmzLayoutGalleryStageConfig = {\n footer: {\n leftLogoPath: GALLERY_LOGO,\n leftSideText: 'Gestão Comercial',\n rightSideText: 'Desenvolvido pela equipe de produto',\n rightSideImages: this.images,\n version: 'v21.10.0',\n copyright: '© 2026 Gestão Comercial',\n },\n };\n\n protected readonly textsAndImages: FooterCase[] = [\n { label: 'leftSideText', config: { footer: { leftSideText: 'Gestão Comercial' } } },\n { label: 'rightSideText', config: { footer: { rightSideText: 'Desenvolvido pela equipe de produto' } } },\n { label: 'leftSideText e rightSideText', config: { footer: { leftSideText: 'Gestão Comercial', rightSideText: 'Desenvolvido pela equipe de produto' } } },\n { label: 'logotipo à esquerda seguido de leftSideText', config: { footer: { leftLogoPath: GALLERY_LOGO, leftSideText: 'Gestão Comercial' } } },\n { label: 'rightSideImages (três imagens, classe padrão max-w-24)', config: { footer: { rightSideImages: this.images } } },\n { label: 'rightSideImages com rightSideImageStyleClass (max-w-12)', config: { footer: { rightSideImages: this.images, rightSideImageStyleClass: 'max-w-12' } } },\n { label: 'completo: logotipo, textos, imagens, versão e cop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AqB,EAAE;AACtC,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCT,EAAA,CAAA;AACF,iBAAA;;;;;"}
|
|
@@ -2,13 +2,14 @@ import { NgComponentOutlet } from '@angular/common';
|
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { input, computed, inject, Injector, ChangeDetectorRef, DestroyRef, afterRenderEffect, signal, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
4
|
import { SmzThemeService } from '@ngx-smz/ui-kit';
|
|
5
|
-
import { N as NotfoundPageComponent, A as AccessPageComponent, E as ErrorPageComponent, a as
|
|
5
|
+
import { N as NotfoundPageComponent, A as AccessPageComponent, E as ErrorPageComponent, a as AppConfigurator, b as AppFooter, c as AppSidebar, d as AppTopbar, e as AppLayout, S as SMZ_UI_LAYOUT_CONFIG, L as LayoutService, f as SmzUILayout, P as PageTitleService, g as NavigationService, R as RouteLayoutService, h as LayoutLoaderService, i as ErrorPagesConfigService } from './ngx-smz-layout-ngx-smz-layout-CvjM-0jw.mjs';
|
|
6
6
|
|
|
7
7
|
const PIECES = {
|
|
8
8
|
layout: AppLayout,
|
|
9
9
|
topbar: AppTopbar,
|
|
10
10
|
sidebar: AppSidebar,
|
|
11
11
|
footer: AppFooter,
|
|
12
|
+
configurator: AppConfigurator,
|
|
12
13
|
error: ErrorPageComponent,
|
|
13
14
|
access: AccessPageComponent,
|
|
14
15
|
notfound: NotfoundPageComponent,
|
|
@@ -28,6 +29,8 @@ class SmzLayoutGalleryStageComponent {
|
|
|
28
29
|
width = input('100%', ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
|
|
29
30
|
height = input('auto', ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
|
|
30
31
|
scale = input(1, ...(ngDevMode ? [{ debugName: "scale" }] : /* istanbul ignore next */ []));
|
|
32
|
+
/** Inputs da peça (por exemplo os templates de slot que `<app-layout>` repassa à topbar e ao rodapé). */
|
|
33
|
+
inputs = input(undefined, ...(ngDevMode ? [{ debugName: "inputs" }] : /* istanbul ignore next */ []));
|
|
31
34
|
component = computed(() => PIECES[this.piece()], ...(ngDevMode ? [{ debugName: "component" }] : /* istanbul ignore next */ []));
|
|
32
35
|
scaled = computed(() => this.scale() !== 1, ...(ngDevMode ? [{ debugName: "scaled" }] : /* istanbul ignore next */ []));
|
|
33
36
|
boxWidth = computed(() => (this.scaled() ? `calc(${this.width()} * ${this.scale()})` : this.width()), ...(ngDevMode ? [{ debugName: "boxWidth" }] : /* istanbul ignore next */ []));
|
|
@@ -64,6 +67,12 @@ class SmzLayoutGalleryStageComponent {
|
|
|
64
67
|
}),
|
|
65
68
|
hasClaim: config.hasClaim,
|
|
66
69
|
};
|
|
70
|
+
if (config.loader != null)
|
|
71
|
+
feature.loader = signal(config.loader, ...(ngDevMode ? [{ debugName: "loader" }] : /* istanbul ignore next */ []));
|
|
72
|
+
if (config.toast != null)
|
|
73
|
+
feature.toast = signal(config.toast, ...(ngDevMode ? [{ debugName: "toast" }] : /* istanbul ignore next */ []));
|
|
74
|
+
if (config.assistance != null)
|
|
75
|
+
feature.assistance = signal(config.assistance, ...(ngDevMode ? [{ debugName: "assistance" }] : /* istanbul ignore next */ []));
|
|
67
76
|
const pageTitle = {
|
|
68
77
|
title: signal(config.pageTitle ?? ''),
|
|
69
78
|
hasTitle: signal(config.pageTitle != null),
|
|
@@ -87,6 +96,24 @@ class SmzLayoutGalleryStageComponent {
|
|
|
87
96
|
},
|
|
88
97
|
{ provide: PageTitleService, useValue: pageTitle },
|
|
89
98
|
{ provide: NavigationService, useValue: navigation },
|
|
99
|
+
{
|
|
100
|
+
// O palco não navega: o layout "da rota" é imposto, e o `data.layout` da rota da galeria não vaza para a peça.
|
|
101
|
+
provide: RouteLayoutService,
|
|
102
|
+
useFactory: () => {
|
|
103
|
+
const routeLayout = new RouteLayoutService();
|
|
104
|
+
routeLayout.set(config.routeLayout ?? {});
|
|
105
|
+
return routeLayout;
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
provide: LayoutLoaderService,
|
|
110
|
+
useFactory: () => {
|
|
111
|
+
const loader = new LayoutLoaderService();
|
|
112
|
+
if (config.loader != null)
|
|
113
|
+
loader.show();
|
|
114
|
+
return loader;
|
|
115
|
+
},
|
|
116
|
+
},
|
|
90
117
|
{
|
|
91
118
|
provide: ErrorPagesConfigService,
|
|
92
119
|
useFactory: () => {
|
|
@@ -101,10 +128,10 @@ class SmzLayoutGalleryStageComponent {
|
|
|
101
128
|
return injector;
|
|
102
129
|
}
|
|
103
130
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzLayoutGalleryStageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
104
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.5", type: SmzLayoutGalleryStageComponent, isStandalone: true, selector: "smz-gallery-layout-stage", inputs: { piece: { classPropertyName: "piece", publicName: "piece", isSignal: true, isRequired: true, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, scale: { classPropertyName: "scale", publicName: "scale", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "block w-full min-w-0" }, ngImport: i0, template: `
|
|
131
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.5", type: SmzLayoutGalleryStageComponent, isStandalone: true, selector: "smz-gallery-layout-stage", inputs: { piece: { classPropertyName: "piece", publicName: "piece", isSignal: true, isRequired: true, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, scale: { classPropertyName: "scale", publicName: "scale", isSignal: true, isRequired: false, transformFunction: null }, inputs: { classPropertyName: "inputs", publicName: "inputs", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "block w-full min-w-0" }, ngImport: i0, template: `
|
|
105
132
|
<div class="relative max-w-full overflow-hidden border border-ui-line" data-smz-gallery-layout-stage [style.width]="boxWidth()" [style.height]="boxHeight()">
|
|
106
133
|
<div [style.width]="scaled() ? width() : '100%'" [style.height]="scaled() ? height() : '100%'" [style.transform]="transform()" [style.transform-origin]="'top left'">
|
|
107
|
-
<ng-container [ngComponentOutlet]="component()" [ngComponentOutletInjector]="injector()" />
|
|
134
|
+
<ng-container [ngComponentOutlet]="component()" [ngComponentOutletInjector]="injector()" [ngComponentOutletInputs]="inputs()" />
|
|
108
135
|
</div>
|
|
109
136
|
</div>
|
|
110
137
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
@@ -119,12 +146,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
119
146
|
template: `
|
|
120
147
|
<div class="relative max-w-full overflow-hidden border border-ui-line" data-smz-gallery-layout-stage [style.width]="boxWidth()" [style.height]="boxHeight()">
|
|
121
148
|
<div [style.width]="scaled() ? width() : '100%'" [style.height]="scaled() ? height() : '100%'" [style.transform]="transform()" [style.transform-origin]="'top left'">
|
|
122
|
-
<ng-container [ngComponentOutlet]="component()" [ngComponentOutletInjector]="injector()" />
|
|
149
|
+
<ng-container [ngComponentOutlet]="component()" [ngComponentOutletInjector]="injector()" [ngComponentOutletInputs]="inputs()" />
|
|
123
150
|
</div>
|
|
124
151
|
</div>
|
|
125
152
|
`,
|
|
126
153
|
}]
|
|
127
|
-
}], ctorParameters: () => [], propDecorators: { piece: [{ type: i0.Input, args: [{ isSignal: true, alias: "piece", required: true }] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], scale: [{ type: i0.Input, args: [{ isSignal: true, alias: "scale", required: false }] }] } });
|
|
154
|
+
}], ctorParameters: () => [], propDecorators: { piece: [{ type: i0.Input, args: [{ isSignal: true, alias: "piece", required: true }] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], scale: [{ type: i0.Input, args: [{ isSignal: true, alias: "scale", required: false }] }], inputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputs", required: false }] }] } });
|
|
128
155
|
|
|
129
156
|
/** Dados fixos compartilhados pelas entradas da galeria do layout. Imagens embutidas: nada de rede. */
|
|
130
157
|
function svgDataUri(svg) {
|
|
@@ -296,5 +323,5 @@ const GALLERY_ERRORS_FULL = {
|
|
|
296
323
|
},
|
|
297
324
|
};
|
|
298
325
|
|
|
299
|
-
export { GALLERY_FOOTER as G, SmzLayoutGalleryStageComponent as S, GALLERY_TOPBAR as a, GALLERY_AVATAR as b, GALLERY_LOGO as c, galleryDeepMenu as d, GALLERY_MENU_SHORT as e,
|
|
300
|
-
//# sourceMappingURL=ngx-smz-layout-layout-gallery.fixtures-
|
|
326
|
+
export { GALLERY_FOOTER as G, SmzLayoutGalleryStageComponent as S, GALLERY_TOPBAR as a, GALLERY_AVATAR as b, GALLERY_LOGO as c, galleryDeepMenu as d, GALLERY_MENU_SHORT as e, GALLERY_BACKGROUND as f, galleryMenu as g, GALLERY_ERRORS_FULL as h, GALLERY_ERRORS as i };
|
|
327
|
+
//# sourceMappingURL=ngx-smz-layout-layout-gallery.fixtures-BgO9_ncI.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-smz-layout-layout-gallery.fixtures-BgO9_ncI.mjs","sources":["../../../projects/ngx-smz-ui-layout/src/lib/gallery/layout-gallery-stage.component.ts","../../../projects/ngx-smz-ui-layout/src/lib/gallery/layout-gallery.fixtures.ts"],"sourcesContent":["import { NgComponentOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, DestroyableInjector, Injector, Type, afterRenderEffect, computed, inject, input, signal } from '@angular/core';\nimport { SmzThemeService, SmzUiMenuItem } from '@ngx-smz/ui-kit';\nimport { SmzUILayout, SmzUILayoutConfigType } from '../config/config';\nimport { SMZ_UI_LAYOUT_CONFIG } from '../config/provide';\nimport { AccessPageComponent } from '../errors/access';\nimport { ErrorPageComponent } from '../errors/error';\nimport { ErrorPagesConfig, ErrorPagesConfigService } from '../errors/errors-pages-service';\nimport { NotfoundPageComponent } from '../errors/notfound';\nimport { AppConfigurator } from '../layout/component/app.configurator';\nimport { AppFooter, Footer } from '../layout/component/app.footer';\nimport { AppLayout } from '../layout/component/app.layout';\nimport { AppSidebar } from '../layout/component/app.sidebar';\nimport { AppTopbar, Topbar } from '../layout/component/app.topbar';\nimport { LayoutConfig, LayoutService, LayoutState } from '../layout/service/layout.service';\nimport { NavigationService } from '../layout/service/navigation.service';\nimport { PageTitleService } from '../layout/service/page-title.service';\nimport type { LayoutToast } from '../config/config';\nimport type { LayoutAssistance } from '../layout/component/app.assistance';\nimport type { LayoutLoader } from '../layout/component/app.loader';\nimport { LayoutLoaderService } from '../layout/service/layout-loader.service';\nimport { LayoutRouteData, RouteLayoutService } from '../layout/service/route-layout.service';\n\nexport type SmzLayoutGalleryPiece = 'layout' | 'topbar' | 'sidebar' | 'footer' | 'configurator' | 'error' | 'access' | 'notfound';\n\n/** Configuração de um palco: os mesmos dados que o app entrega em `configureSmzUILayout()`, como valores simples. */\nexport interface SmzLayoutGalleryStageConfig {\n sidebar?: SmzUiMenuItem[];\n footer?: Footer;\n topbar?: Topbar;\n layout?: LayoutConfig;\n state?: LayoutState;\n hasClaim?: (claims: string[]) => boolean;\n /** Título da página na topbar. No app vem de `data.title` da rota (`PageTitleService`). */\n pageTitle?: string;\n /** Habilita o botão voltar da topbar. No app vem do histórico de navegação (`NavigationService`). */\n canGoBack?: boolean;\n errors?: Partial<ErrorPagesConfig>;\n /** Loader da casca (`withLoader`). No palco ele fica visível o tempo todo; no app, até a primeira navegação terminar. */\n loader?: LayoutLoader;\n /** Toast da casca (`withToast`). */\n toast?: LayoutToast;\n /** Assistência da casca (`withAssistance`). */\n assistance?: LayoutAssistance;\n /** Layout por rota. No app vem de `data.layout` da rota ativa; o palco impõe o valor com `RouteLayoutService.set()`. */\n routeLayout?: LayoutRouteData;\n}\n\nconst PIECES: Record<SmzLayoutGalleryPiece, Type<unknown>> = {\n layout: AppLayout,\n topbar: AppTopbar,\n sidebar: AppSidebar,\n footer: AppFooter,\n configurator: AppConfigurator,\n error: ErrorPageComponent,\n access: AccessPageComponent,\n notfound: NotfoundPageComponent,\n};\n\n/**\n * Palco da galeria para as peças do shell: renderiza uma peça dentro de uma caixa com borda, com a\n * configuração do layout fornecida por um injector próprio (o app da galeria não precisa de\n * `configureSmzUILayout()`), de modo que cada caso tem o seu `LayoutService`.\n *\n * A caixa interna tem `transform`, então os filhos com `position: fixed` (topbar, sidebar, máscara) ficam\n * presos nela. Com `scale` diferente de 1, `width` e `height` devem ser em unidades de viewport: a peça é\n * desenhada nesse tamanho e reduzida (páginas de erro, que são `w-screen h-screen`).\n */\n@Component({\n selector: 'smz-gallery-layout-stage',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgComponentOutlet],\n host: { class: 'block w-full min-w-0' },\n template: `\n <div class=\"relative max-w-full overflow-hidden border border-ui-line\" data-smz-gallery-layout-stage [style.width]=\"boxWidth()\" [style.height]=\"boxHeight()\">\n <div [style.width]=\"scaled() ? width() : '100%'\" [style.height]=\"scaled() ? height() : '100%'\" [style.transform]=\"transform()\" [style.transform-origin]=\"'top left'\">\n <ng-container [ngComponentOutlet]=\"component()\" [ngComponentOutletInjector]=\"injector()\" [ngComponentOutletInputs]=\"inputs()\" />\n </div>\n </div>\n `,\n})\nexport class SmzLayoutGalleryStageComponent {\n public readonly piece = input.required<SmzLayoutGalleryPiece>();\n public readonly config = input<SmzLayoutGalleryStageConfig>({});\n public readonly width = input('100%');\n public readonly height = input('auto');\n public readonly scale = input(1);\n /** Inputs da peça (por exemplo os templates de slot que `<app-layout>` repassa à topbar e ao rodapé). */\n public readonly inputs = input<Record<string, unknown> | undefined>(undefined);\n\n protected readonly component = computed(() => PIECES[this.piece()]);\n protected readonly scaled = computed(() => this.scale() !== 1);\n protected readonly boxWidth = computed(() => (this.scaled() ? `calc(${this.width()} * ${this.scale()})` : this.width()));\n protected readonly boxHeight = computed(() => (this.scaled() ? `calc(${this.height()} * ${this.scale()})` : this.height()));\n protected readonly transform = computed(() => (this.scaled() ? `scale(${this.scale()})` : 'translateZ(0)'));\n protected readonly injector = computed(() => this.createInjector(this.config(), this.theme.mode() === 'dark' || this.theme.isDark()));\n\n private readonly theme = inject(SmzThemeService);\n private readonly parent = inject(Injector);\n private readonly changeDetector = inject(ChangeDetectorRef);\n private readonly created: DestroyableInjector[] = [];\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.created.forEach((injector) => injector.destroy()));\n\n // `AppMenuitem` marca o item ativo dentro de um `Promise.then`, sem sinal nem `markForCheck`. Sem zone.js\n // isso não é desenhado; esta volta extra de detecção garante o submenu da rota ativa expandido na captura.\n afterRenderEffect(() => {\n this.injector();\n queueMicrotask(() => this.changeDetector.markForCheck());\n });\n }\n\n private createInjector(config: SmzLayoutGalleryStageConfig, dark: boolean): DestroyableInjector {\n const feature: SmzUILayoutConfigType = {\n sidebar: signal(config.sidebar ?? []),\n footer: signal(config.footer ?? {}),\n topbar: signal(config.topbar ?? {}),\n // Sem `primary`/`surface`: o configurador não reaplica paleta sobre o tema da galeria.\n layout: signal({ menuMode: 'static', darkTheme: dark, ...config.layout }),\n state: signal({\n staticMenuDesktopInactive: false,\n overlayMenuActive: false,\n configSidebarVisible: false,\n staticMenuMobileActive: false,\n menuHoverActive: false,\n ...config.state,\n }),\n hasClaim: config.hasClaim,\n };\n if (config.loader != null) feature.loader = signal(config.loader);\n if (config.toast != null) feature.toast = signal(config.toast);\n if (config.assistance != null) feature.assistance = signal(config.assistance);\n const pageTitle: Pick<PageTitleService, 'title' | 'hasTitle'> = {\n title: signal(config.pageTitle ?? ''),\n hasTitle: signal(config.pageTitle != null),\n };\n const navigation: Pick<NavigationService, 'canGoBackSignal' | 'goBack'> = {\n canGoBackSignal: (): boolean => config.canGoBack === true,\n goBack: (): void => {},\n };\n\n const injector = Injector.create({\n parent: this.parent,\n providers: [\n { provide: SMZ_UI_LAYOUT_CONFIG, useValue: feature },\n LayoutService,\n {\n provide: SmzUILayout,\n useFactory: (): SmzUILayout => {\n const layout = new SmzUILayout();\n layout.setConfig(feature);\n\n return layout;\n },\n },\n { provide: PageTitleService, useValue: pageTitle },\n { provide: NavigationService, useValue: navigation },\n {\n // O palco não navega: o layout \"da rota\" é imposto, e o `data.layout` da rota da galeria não vaza para a peça.\n provide: RouteLayoutService,\n useFactory: (): RouteLayoutService => {\n const routeLayout = new RouteLayoutService();\n routeLayout.set(config.routeLayout ?? {});\n\n return routeLayout;\n },\n },\n {\n provide: LayoutLoaderService,\n useFactory: (): LayoutLoaderService => {\n const loader = new LayoutLoaderService();\n if (config.loader != null) loader.show();\n\n return loader;\n },\n },\n {\n provide: ErrorPagesConfigService,\n useFactory: (): ErrorPagesConfigService => {\n const errors = new ErrorPagesConfigService();\n errors.updateConfig(config.errors ?? {});\n\n return errors;\n },\n },\n ],\n });\n this.created.push(injector);\n\n return injector;\n }\n}\n","import { SmzUiMenuItem } from '@ngx-smz/ui-kit';\nimport { ErrorPagesConfig } from '../errors/errors-pages-service';\nimport { Footer } from '../layout/component/app.footer';\nimport { Topbar } from '../layout/component/app.topbar';\n\n/** Dados fixos compartilhados pelas entradas da galeria do layout. Imagens embutidas: nada de rede. */\n\nfunction svgDataUri(svg: string): string {\n return `data:image/svg+xml,${encodeURIComponent(svg)}`;\n}\n\nfunction logo(fill: string): string {\n return svgDataUri(\n `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"120\" height=\"32\" viewBox=\"0 0 120 32\"><rect width=\"32\" height=\"32\" rx=\"8\" fill=\"${fill}\"/><rect x=\"42\" y=\"10\" width=\"78\" height=\"12\" rx=\"6\" fill=\"${fill}\"/></svg>`,\n );\n}\n\nexport const GALLERY_LOGO = { light: logo('#475569'), dark: logo('#cbd5e1') };\n\nexport const GALLERY_AVATAR = svgDataUri(\n '<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"64\" height=\"64\" viewBox=\"0 0 64 64\"><rect width=\"64\" height=\"64\" fill=\"#94a3b8\"/>' +\n '<circle cx=\"32\" cy=\"24\" r=\"12\" fill=\"#f1f5f9\"/><rect x=\"10\" y=\"42\" width=\"44\" height=\"30\" rx=\"15\" fill=\"#f1f5f9\"/></svg>',\n);\n\nexport const GALLERY_BACKGROUND = svgDataUri(\n '<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"64\" height=\"64\" viewBox=\"0 0 64 64\"><rect width=\"64\" height=\"64\" fill=\"#94a3b8\"/>' +\n '<rect width=\"32\" height=\"32\" fill=\"#64748b\"/><rect x=\"32\" y=\"32\" width=\"32\" height=\"32\" fill=\"#64748b\"/></svg>',\n);\n\nfunction noop(): void {}\n\n/**\n * Menu lateral completo. `activePath` é a rota atual (a da própria galeria): o item \"Categorias\" aponta\n * para ela, fica com `active-route` e expande os ancestrais.\n */\nexport function galleryMenu(activePath: string): SmzUiMenuItem[] {\n return [\n {\n label: 'Início',\n items: [\n { label: 'Painel', icon: 'fa-solid fa-fw fa-house', command: noop },\n { label: 'Agenda', icon: 'fa-solid fa-fw fa-calendar', command: noop },\n ],\n },\n {\n label: 'Cadastros',\n items: [\n { label: 'Clientes', icon: 'fa-solid fa-fw fa-users', command: noop },\n { label: 'Fornecedores', icon: 'fa-solid fa-fw fa-truck', command: noop },\n {\n label: 'Produtos',\n icon: 'fa-solid fa-fw fa-box',\n items: [\n { label: 'Categorias', icon: 'fa-solid fa-fw fa-tags', routerLink: [activePath] },\n { label: 'Marcas', icon: 'fa-solid fa-fw fa-bookmark', command: noop },\n ],\n },\n {\n label: 'Tabelas de preço',\n icon: 'fa-solid fa-fw fa-table-list',\n items: [\n { label: 'Varejo', icon: 'fa-solid fa-fw fa-store', command: noop },\n { label: 'Atacado', icon: 'fa-solid fa-fw fa-warehouse', command: noop },\n ],\n },\n ],\n },\n { separator: true },\n {\n label: 'Relatórios',\n items: [\n { label: 'Vendas', icon: 'fa-solid fa-fw fa-chart-line', command: noop },\n { label: 'Estoque (desabilitado)', icon: 'fa-solid fa-fw fa-boxes-stacked', disabled: true },\n { label: 'Auditoria (oculto)', icon: 'fa-solid fa-fw fa-shield-halved', visible: false },\n { label: 'Financeiro (claim)', icon: 'fa-solid fa-fw fa-coins', claims: ['financeiro'], command: noop },\n ],\n },\n {\n label: 'Administração (claim)',\n items: [{ label: 'Usuários', icon: 'fa-solid fa-fw fa-user-gear', claims: ['administrador'], command: noop }],\n },\n ];\n}\n\n/** Menu curto, sem rota ativa: tudo recolhido. */\nexport const GALLERY_MENU_SHORT: SmzUiMenuItem[] = [\n {\n label: 'Cadastros',\n items: [\n { label: 'Clientes', icon: 'fa-solid fa-fw fa-users', command: noop },\n { label: 'Fornecedores', icon: 'fa-solid fa-fw fa-truck', command: noop },\n {\n label: 'Produtos',\n icon: 'fa-solid fa-fw fa-box',\n items: [{ label: 'Categorias', icon: 'fa-solid fa-fw fa-tags', command: noop }],\n },\n ],\n },\n];\n\n/** Seis níveis de submenu, com a rota ativa no último: cobre os recuos por nível. */\nexport function galleryDeepMenu(activePath: string): SmzUiMenuItem[] {\n const labels = ['Brasil', 'Sudeste', 'Rio de Janeiro', 'Capital', 'Zona Sul', 'Botafogo'];\n let node: SmzUiMenuItem = { label: 'Loja 12', icon: 'fa-solid fa-fw fa-store', routerLink: [activePath] };\n for (const label of [...labels].reverse()) {\n node = { label, icon: 'fa-solid fa-fw fa-location-dot', items: [node, { label: `Outras em ${label}`, icon: 'fa-solid fa-fw fa-ellipsis', command: noop }] };\n }\n\n return [{ label: 'Unidades', items: [node] }];\n}\n\nexport const GALLERY_TOPBAR: Topbar = {\n showMenuToggle: true,\n showBackButton: false,\n showConfigurator: false,\n showDarkModeToggle: true,\n showProfileMenu: true,\n logoPath: GALLERY_LOGO,\n appName: 'Gestão Comercial',\n menuItems: [\n { icon: 'fa-solid fa-bell', label: 'Notificações', tooltip: 'Notificações', callback: noop },\n { icon: 'fa-solid fa-circle-question', label: 'Ajuda', tooltip: 'Ajuda', callback: noop },\n ],\n features: [],\n};\n\nexport const GALLERY_FOOTER: Footer = {\n leftLogoPath: GALLERY_LOGO,\n version: 'v21.10.0',\n copyright: '© 2026 Gestão Comercial',\n};\n\nexport const GALLERY_ERRORS: Partial<ErrorPagesConfig> = {\n error: {\n icon: 'fa-solid fa-fw fa-circle-exclamation',\n title: 'Ocorreu um erro',\n message: 'Ocorreu um erro ao carregar a página.',\n imagePath: GALLERY_BACKGROUND,\n backgroundPath: GALLERY_BACKGROUND,\n buttons: [{ label: 'Voltar para a home', url: '/', command: noop, severity: 'danger' }],\n },\n access: {\n icon: 'fa-solid fa-fw fa-lock',\n title: 'Acesso restrito',\n message: 'Você não tem permissão para acessar esta página.',\n imagePath: GALLERY_BACKGROUND,\n backgroundPath: GALLERY_BACKGROUND,\n buttons: [{ label: 'Voltar para a home', url: '/', command: noop, severity: 'warn' }],\n },\n notfound: {\n code: 404,\n title: 'Página não encontrada',\n message: 'A página que você está procurando não foi encontrada.',\n backgroundPath: GALLERY_BACKGROUND,\n links: [],\n buttons: [{ label: 'Voltar para a home', url: '/', command: noop, severity: 'warn' }],\n },\n};\n\n/** Página 404 com atalhos e mais de um botão; erro com todas as severidades de botão. */\nexport const GALLERY_ERRORS_FULL: Partial<ErrorPagesConfig> = {\n ...GALLERY_ERRORS,\n error: {\n icon: 'fa-solid fa-fw fa-circle-exclamation',\n title: 'Ocorreu um erro',\n message: 'Não foi possível concluir a operação. Tente novamente em alguns minutos ou fale com o suporte.',\n imagePath: GALLERY_BACKGROUND,\n backgroundPath: GALLERY_BACKGROUND,\n buttons: [\n { label: 'Primary', url: '/', command: noop, severity: 'primary' },\n { label: 'Secondary', url: '/', command: noop, severity: 'secondary' },\n { label: 'Success', url: '/', command: noop, severity: 'success' },\n { label: 'Info', url: '/', command: noop, severity: 'info' },\n { label: 'Warn', url: '/', command: noop, severity: 'warn' },\n { label: 'Danger', url: '/', command: noop, severity: 'danger' },\n { label: 'Help', url: '/', command: noop, severity: 'help' },\n { label: 'Contrast', url: '/', command: noop, severity: 'contrast' },\n ],\n },\n notfound: {\n code: 404,\n title: 'Página não encontrada',\n message: 'O endereço pode ter mudado. Veja se um destes atalhos ajuda.',\n backgroundPath: GALLERY_BACKGROUND,\n links: [\n { icon: 'fa-solid fa-users', title: 'Clientes', description: 'Cadastro e histórico de clientes', url: '/clientes' },\n { icon: 'fa-solid fa-chart-line', title: 'Relatórios', description: 'Vendas, estoque e financeiro', url: '/relatorios' },\n ],\n buttons: [\n { label: 'Voltar para a home', url: '/', command: noop, severity: 'warn' },\n { label: 'Falar com o suporte', url: '/', command: noop, severity: 'secondary' },\n ],\n },\n};\n"],"names":[],"mappings":";;;;;;AAgDA,MAAM,MAAM,GAAiD;AAC3D,IAAA,MAAM,EAAE,SAAS;AACjB,IAAA,MAAM,EAAE,SAAS;AACjB,IAAA,OAAO,EAAE,UAAU;AACnB,IAAA,MAAM,EAAE,SAAS;AACjB,IAAA,YAAY,EAAE,eAAe;AAC7B,IAAA,KAAK,EAAE,k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