@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,237 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { SMZ_GALLERY_SCENE, SmzGalleryCaseComponent, SmzGallerySectionComponent } from '@ngx-smz/core';
|
|
5
|
+
import { g as galleryMenu, d as galleryDeepMenu, e as GALLERY_MENU_SHORT, S as SmzLayoutGalleryStageComponent } from './ngx-smz-layout-layout-gallery.fixtures-BgO9_ncI.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Galeria: menu lateral (`app-sidebar` com `app-menu`/`app-menuitem`). O submenu só expande por clique ou
|
|
9
|
+
* pela rota ativa (`expanded` do item é ignorado), então o caso expandido usa um item cujo `routerLink` é a
|
|
10
|
+
* rota da própria galeria. `disabled` não tem estilo próprio e `badge` não é desenhado pelo `app-menuitem`.
|
|
11
|
+
*
|
|
12
|
+
* Cenas dos outros modos de menu (`menuMode`), todas acima do ponto de quebra do menu (abaixo dele o painel é a
|
|
13
|
+
* gaveta, que depende da viewport e não é coberta): `horizontal` e `horizontal-open` (barra abaixo da topbar),
|
|
14
|
+
* `slim` e `slim-hover` (só ícones) e `widths` (larguras pela configuração). Nesses modos o painel flutuante abre
|
|
15
|
+
* por clique, por `:hover` (slim) ou já aberto com `expanded` no item, que é como as cenas o mostram.
|
|
16
|
+
*/
|
|
17
|
+
class LayoutMenuGalleryEntryComponent {
|
|
18
|
+
scene = inject(SMZ_GALLERY_SCENE);
|
|
19
|
+
path = inject(Router).url.split(/[?#]/)[0];
|
|
20
|
+
full = { sidebar: galleryMenu(this.path) };
|
|
21
|
+
denied = { sidebar: galleryMenu(this.path), hasClaim: () => false };
|
|
22
|
+
deep = { sidebar: galleryDeepMenu(this.path) };
|
|
23
|
+
short = { sidebar: GALLERY_MENU_SHORT };
|
|
24
|
+
horizontal = { sidebar: galleryMenu(this.path), layout: { menuMode: 'horizontal' } };
|
|
25
|
+
horizontalOpen = { sidebar: this.menuWithOpenGroup(), layout: { menuMode: 'horizontal' } };
|
|
26
|
+
slim = { sidebar: galleryMenu(this.path), layout: { menuMode: 'slim' } };
|
|
27
|
+
slimDenied = { ...this.slim, hasClaim: () => false };
|
|
28
|
+
slimShort = { sidebar: GALLERY_MENU_SHORT, layout: { menuMode: 'slim' } };
|
|
29
|
+
slimOpen = { sidebar: this.menuWithOpenItem(), layout: { menuMode: 'slim' } };
|
|
30
|
+
narrow = { sidebar: GALLERY_MENU_SHORT, layout: { menuMode: 'static', sidebarWidth: '14rem' } };
|
|
31
|
+
slimNarrow = { sidebar: GALLERY_MENU_SHORT, layout: { menuMode: 'slim', sidebarSlimWidth: '4.5rem' } };
|
|
32
|
+
/** Menu completo com o grupo "Cadastros" (o da rota ativa) aberto: no menu horizontal, o painel dele. */
|
|
33
|
+
menuWithOpenGroup() {
|
|
34
|
+
return galleryMenu(this.path).map((group) => (group.label === 'Cadastros' ? { ...group, expanded: true } : group));
|
|
35
|
+
}
|
|
36
|
+
/** Só o grupo "Cadastros", com o item "Produtos" (o da rota ativa) aberto: no menu slim, o painel dele. */
|
|
37
|
+
menuWithOpenItem() {
|
|
38
|
+
return galleryMenu(this.path)
|
|
39
|
+
.filter((group) => group.label === 'Cadastros')
|
|
40
|
+
.map((group) => ({ ...group, items: group.items?.map((item) => (item.label === 'Produtos' ? { ...item, expanded: true } : item)) }));
|
|
41
|
+
}
|
|
42
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutMenuGalleryEntryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
43
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: LayoutMenuGalleryEntryComponent, isStandalone: true, selector: "smz-gallery-layout-menu-entry", host: { classAttribute: "flex flex-col gap-8" }, ngImport: i0, template: `
|
|
44
|
+
@switch (scene()) {
|
|
45
|
+
@case ('horizontal') {
|
|
46
|
+
<smz-gallery-section label="Menu horizontal: barra abaixo da topbar" [columns]="1">
|
|
47
|
+
<smz-gallery-case label="menuMode horizontal · grupos da raiz na barra, o grupo da rota ativa (Cadastros) destacado, painéis fechados">
|
|
48
|
+
<smz-gallery-layout-stage piece="sidebar" height="12rem" [config]="horizontal" />
|
|
49
|
+
</smz-gallery-case>
|
|
50
|
+
<smz-gallery-case label="hover em um grupo" force="hover" target=".layout-menu > li:nth-child(1) > a">
|
|
51
|
+
<smz-gallery-layout-stage piece="sidebar" height="12rem" [config]="horizontal" />
|
|
52
|
+
</smz-gallery-case>
|
|
53
|
+
<smz-gallery-case label="foco em um grupo" force="focus" target=".layout-menu > li:nth-child(4) > a">
|
|
54
|
+
<smz-gallery-layout-stage piece="sidebar" height="12rem" [config]="horizontal" />
|
|
55
|
+
</smz-gallery-case>
|
|
56
|
+
</smz-gallery-section>
|
|
57
|
+
}
|
|
58
|
+
@case ('horizontal-open') {
|
|
59
|
+
<smz-gallery-section label="Menu horizontal: painel de um grupo aberto" [columns]="1">
|
|
60
|
+
<smz-gallery-case label="grupo Cadastros aberto (clique, ou expanded no item) · submenu da rota ativa expandido dentro do painel">
|
|
61
|
+
<smz-gallery-layout-stage piece="sidebar" height="30rem" [config]="horizontalOpen" />
|
|
62
|
+
</smz-gallery-case>
|
|
63
|
+
</smz-gallery-section>
|
|
64
|
+
}
|
|
65
|
+
@case ('slim') {
|
|
66
|
+
<smz-gallery-section label="Menu slim: só ícones" [columns]="3">
|
|
67
|
+
<smz-gallery-case label="menuMode slim · grupos sem título, item que contém a rota ativa (Produtos) destacado">
|
|
68
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="100vh" [config]="slim" />
|
|
69
|
+
</smz-gallery-case>
|
|
70
|
+
<smz-gallery-case label="hasClaim negando tudo: itens com claims somem">
|
|
71
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="100vh" [config]="slimDenied" />
|
|
72
|
+
</smz-gallery-case>
|
|
73
|
+
</smz-gallery-section>
|
|
74
|
+
}
|
|
75
|
+
@case ('slim-hover') {
|
|
76
|
+
<smz-gallery-section label="Menu slim: rótulo e submenu ao lado do item" [columns]="3">
|
|
77
|
+
<smz-gallery-case label="hover em item sem submenu: rótulo ao lado" force="hover" target=".layout-menu > li:nth-child(1) > ul > li:nth-child(1)">
|
|
78
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="22rem" [config]="slimShort" />
|
|
79
|
+
</smz-gallery-case>
|
|
80
|
+
<smz-gallery-case label="hover em item com submenu: rótulo e painel do submenu" force="hover" target=".layout-menu > li:nth-child(1) > ul > li:nth-child(3)">
|
|
81
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="22rem" [config]="slimShort" />
|
|
82
|
+
</smz-gallery-case>
|
|
83
|
+
<smz-gallery-case label="painel fixado (clique, ou expanded no item) com a rota ativa dentro">
|
|
84
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="30rem" [config]="slimOpen" />
|
|
85
|
+
</smz-gallery-case>
|
|
86
|
+
</smz-gallery-section>
|
|
87
|
+
}
|
|
88
|
+
@case ('widths') {
|
|
89
|
+
<smz-gallery-section label="Larguras pela configuração" [columns]="3">
|
|
90
|
+
<smz-gallery-case label="menuMode static · sidebarWidth 14rem">
|
|
91
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="22rem" [config]="narrow" />
|
|
92
|
+
</smz-gallery-case>
|
|
93
|
+
<smz-gallery-case label="menuMode slim · sidebarSlimWidth 4.5rem">
|
|
94
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="22rem" [config]="slimNarrow" />
|
|
95
|
+
</smz-gallery-case>
|
|
96
|
+
</smz-gallery-section>
|
|
97
|
+
}
|
|
98
|
+
@default {
|
|
99
|
+
<smz-gallery-section label="Painel da sidebar (altura da viewport)" [columns]="3">
|
|
100
|
+
<smz-gallery-case label="grupos, separador, rota ativa (Categorias) com submenu expandido, submenu recolhido, item desabilitado">
|
|
101
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="100vh" [config]="full" />
|
|
102
|
+
</smz-gallery-case>
|
|
103
|
+
<smz-gallery-case label="hasClaim negando tudo: itens com claims somem, e o grupo sem filho visível também">
|
|
104
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="100vh" [config]="denied" />
|
|
105
|
+
</smz-gallery-case>
|
|
106
|
+
<smz-gallery-case label="seis níveis de submenu, rota ativa no último">
|
|
107
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="100vh" [config]="deep" />
|
|
108
|
+
</smz-gallery-case>
|
|
109
|
+
</smz-gallery-section>
|
|
110
|
+
|
|
111
|
+
<smz-gallery-section label="Estados de um item" [columns]="3">
|
|
112
|
+
<smz-gallery-case label="padrão (sem rota ativa, submenu recolhido)">
|
|
113
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="22rem" [config]="short" />
|
|
114
|
+
</smz-gallery-case>
|
|
115
|
+
<smz-gallery-case label="hover em item" force="hover" target=".layout-menu ul li:nth-child(1) > a">
|
|
116
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="22rem" [config]="short" />
|
|
117
|
+
</smz-gallery-case>
|
|
118
|
+
<smz-gallery-case label="foco em item" force="focus" target=".layout-menu ul li:nth-child(2) > a">
|
|
119
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="22rem" [config]="short" />
|
|
120
|
+
</smz-gallery-case>
|
|
121
|
+
<smz-gallery-case label="hover em item com submenu" force="hover" target=".layout-menu ul li:nth-child(3) > a">
|
|
122
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="22rem" [config]="short" />
|
|
123
|
+
</smz-gallery-case>
|
|
124
|
+
<smz-gallery-case label="hover no item da rota ativa" force="hover" target=".layout-menu a.active-route">
|
|
125
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="36rem" [config]="full" />
|
|
126
|
+
</smz-gallery-case>
|
|
127
|
+
<smz-gallery-case label="foco no item da rota ativa" force="focus" target=".layout-menu a.active-route">
|
|
128
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="36rem" [config]="full" />
|
|
129
|
+
</smz-gallery-case>
|
|
130
|
+
</smz-gallery-section>
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
`, 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 });
|
|
134
|
+
}
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutMenuGalleryEntryComponent, decorators: [{
|
|
136
|
+
type: Component,
|
|
137
|
+
args: [{
|
|
138
|
+
selector: 'smz-gallery-layout-menu-entry',
|
|
139
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
140
|
+
imports: [SmzGalleryCaseComponent, SmzGallerySectionComponent, SmzLayoutGalleryStageComponent],
|
|
141
|
+
host: { class: 'flex flex-col gap-8' },
|
|
142
|
+
template: `
|
|
143
|
+
@switch (scene()) {
|
|
144
|
+
@case ('horizontal') {
|
|
145
|
+
<smz-gallery-section label="Menu horizontal: barra abaixo da topbar" [columns]="1">
|
|
146
|
+
<smz-gallery-case label="menuMode horizontal · grupos da raiz na barra, o grupo da rota ativa (Cadastros) destacado, painéis fechados">
|
|
147
|
+
<smz-gallery-layout-stage piece="sidebar" height="12rem" [config]="horizontal" />
|
|
148
|
+
</smz-gallery-case>
|
|
149
|
+
<smz-gallery-case label="hover em um grupo" force="hover" target=".layout-menu > li:nth-child(1) > a">
|
|
150
|
+
<smz-gallery-layout-stage piece="sidebar" height="12rem" [config]="horizontal" />
|
|
151
|
+
</smz-gallery-case>
|
|
152
|
+
<smz-gallery-case label="foco em um grupo" force="focus" target=".layout-menu > li:nth-child(4) > a">
|
|
153
|
+
<smz-gallery-layout-stage piece="sidebar" height="12rem" [config]="horizontal" />
|
|
154
|
+
</smz-gallery-case>
|
|
155
|
+
</smz-gallery-section>
|
|
156
|
+
}
|
|
157
|
+
@case ('horizontal-open') {
|
|
158
|
+
<smz-gallery-section label="Menu horizontal: painel de um grupo aberto" [columns]="1">
|
|
159
|
+
<smz-gallery-case label="grupo Cadastros aberto (clique, ou expanded no item) · submenu da rota ativa expandido dentro do painel">
|
|
160
|
+
<smz-gallery-layout-stage piece="sidebar" height="30rem" [config]="horizontalOpen" />
|
|
161
|
+
</smz-gallery-case>
|
|
162
|
+
</smz-gallery-section>
|
|
163
|
+
}
|
|
164
|
+
@case ('slim') {
|
|
165
|
+
<smz-gallery-section label="Menu slim: só ícones" [columns]="3">
|
|
166
|
+
<smz-gallery-case label="menuMode slim · grupos sem título, item que contém a rota ativa (Produtos) destacado">
|
|
167
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="100vh" [config]="slim" />
|
|
168
|
+
</smz-gallery-case>
|
|
169
|
+
<smz-gallery-case label="hasClaim negando tudo: itens com claims somem">
|
|
170
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="100vh" [config]="slimDenied" />
|
|
171
|
+
</smz-gallery-case>
|
|
172
|
+
</smz-gallery-section>
|
|
173
|
+
}
|
|
174
|
+
@case ('slim-hover') {
|
|
175
|
+
<smz-gallery-section label="Menu slim: rótulo e submenu ao lado do item" [columns]="3">
|
|
176
|
+
<smz-gallery-case label="hover em item sem submenu: rótulo ao lado" force="hover" target=".layout-menu > li:nth-child(1) > ul > li:nth-child(1)">
|
|
177
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="22rem" [config]="slimShort" />
|
|
178
|
+
</smz-gallery-case>
|
|
179
|
+
<smz-gallery-case label="hover em item com submenu: rótulo e painel do submenu" force="hover" target=".layout-menu > li:nth-child(1) > ul > li:nth-child(3)">
|
|
180
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="22rem" [config]="slimShort" />
|
|
181
|
+
</smz-gallery-case>
|
|
182
|
+
<smz-gallery-case label="painel fixado (clique, ou expanded no item) com a rota ativa dentro">
|
|
183
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="30rem" [config]="slimOpen" />
|
|
184
|
+
</smz-gallery-case>
|
|
185
|
+
</smz-gallery-section>
|
|
186
|
+
}
|
|
187
|
+
@case ('widths') {
|
|
188
|
+
<smz-gallery-section label="Larguras pela configuração" [columns]="3">
|
|
189
|
+
<smz-gallery-case label="menuMode static · sidebarWidth 14rem">
|
|
190
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="22rem" [config]="narrow" />
|
|
191
|
+
</smz-gallery-case>
|
|
192
|
+
<smz-gallery-case label="menuMode slim · sidebarSlimWidth 4.5rem">
|
|
193
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="22rem" [config]="slimNarrow" />
|
|
194
|
+
</smz-gallery-case>
|
|
195
|
+
</smz-gallery-section>
|
|
196
|
+
}
|
|
197
|
+
@default {
|
|
198
|
+
<smz-gallery-section label="Painel da sidebar (altura da viewport)" [columns]="3">
|
|
199
|
+
<smz-gallery-case label="grupos, separador, rota ativa (Categorias) com submenu expandido, submenu recolhido, item desabilitado">
|
|
200
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="100vh" [config]="full" />
|
|
201
|
+
</smz-gallery-case>
|
|
202
|
+
<smz-gallery-case label="hasClaim negando tudo: itens com claims somem, e o grupo sem filho visível também">
|
|
203
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="100vh" [config]="denied" />
|
|
204
|
+
</smz-gallery-case>
|
|
205
|
+
<smz-gallery-case label="seis níveis de submenu, rota ativa no último">
|
|
206
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="100vh" [config]="deep" />
|
|
207
|
+
</smz-gallery-case>
|
|
208
|
+
</smz-gallery-section>
|
|
209
|
+
|
|
210
|
+
<smz-gallery-section label="Estados de um item" [columns]="3">
|
|
211
|
+
<smz-gallery-case label="padrão (sem rota ativa, submenu recolhido)">
|
|
212
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="22rem" [config]="short" />
|
|
213
|
+
</smz-gallery-case>
|
|
214
|
+
<smz-gallery-case label="hover em item" force="hover" target=".layout-menu ul li:nth-child(1) > a">
|
|
215
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="22rem" [config]="short" />
|
|
216
|
+
</smz-gallery-case>
|
|
217
|
+
<smz-gallery-case label="foco em item" force="focus" target=".layout-menu ul li:nth-child(2) > a">
|
|
218
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="22rem" [config]="short" />
|
|
219
|
+
</smz-gallery-case>
|
|
220
|
+
<smz-gallery-case label="hover em item com submenu" force="hover" target=".layout-menu ul li:nth-child(3) > a">
|
|
221
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="22rem" [config]="short" />
|
|
222
|
+
</smz-gallery-case>
|
|
223
|
+
<smz-gallery-case label="hover no item da rota ativa" force="hover" target=".layout-menu a.active-route">
|
|
224
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="36rem" [config]="full" />
|
|
225
|
+
</smz-gallery-case>
|
|
226
|
+
<smz-gallery-case label="foco no item da rota ativa" force="focus" target=".layout-menu a.active-route">
|
|
227
|
+
<smz-gallery-layout-stage piece="sidebar" width="24rem" height="36rem" [config]="full" />
|
|
228
|
+
</smz-gallery-case>
|
|
229
|
+
</smz-gallery-section>
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
`,
|
|
233
|
+
}]
|
|
234
|
+
}] });
|
|
235
|
+
|
|
236
|
+
export { LayoutMenuGalleryEntryComponent };
|
|
237
|
+
//# sourceMappingURL=ngx-smz-layout-layout-menu.entry-DdTLZvao.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-smz-layout-layout-menu.entry-DdTLZvao.mjs","sources":["../../../projects/ngx-smz-ui-layout/src/lib/gallery/entries/layout-menu.entry.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { SMZ_GALLERY_SCENE, SmzGalleryCaseComponent, SmzGallerySectionComponent } from '@ngx-smz/core';\nimport { SmzUiMenuItem } from '@ngx-smz/ui-kit';\nimport { SmzLayoutGalleryStageComponent, SmzLayoutGalleryStageConfig } from '../layout-gallery-stage.component';\nimport { GALLERY_MENU_SHORT, galleryDeepMenu, galleryMenu } from '../layout-gallery.fixtures';\n\n/**\n * Galeria: menu lateral (`app-sidebar` com `app-menu`/`app-menuitem`). O submenu só expande por clique ou\n * pela rota ativa (`expanded` do item é ignorado), então o caso expandido usa um item cujo `routerLink` é a\n * rota da própria galeria. `disabled` não tem estilo próprio e `badge` não é desenhado pelo `app-menuitem`.\n *\n * Cenas dos outros modos de menu (`menuMode`), todas acima do ponto de quebra do menu (abaixo dele o painel é a\n * gaveta, que depende da viewport e não é coberta): `horizontal` e `horizontal-open` (barra abaixo da topbar),\n * `slim` e `slim-hover` (só ícones) e `widths` (larguras pela configuração). Nesses modos o painel flutuante abre\n * por clique, por `:hover` (slim) ou já aberto com `expanded` no item, que é como as cenas o mostram.\n */\n@Component({\n selector: 'smz-gallery-layout-menu-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 ('horizontal') {\n <smz-gallery-section label=\"Menu horizontal: barra abaixo da topbar\" [columns]=\"1\">\n <smz-gallery-case label=\"menuMode horizontal · grupos da raiz na barra, o grupo da rota ativa (Cadastros) destacado, painéis fechados\">\n <smz-gallery-layout-stage piece=\"sidebar\" height=\"12rem\" [config]=\"horizontal\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"hover em um grupo\" force=\"hover\" target=\".layout-menu > li:nth-child(1) > a\">\n <smz-gallery-layout-stage piece=\"sidebar\" height=\"12rem\" [config]=\"horizontal\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"foco em um grupo\" force=\"focus\" target=\".layout-menu > li:nth-child(4) > a\">\n <smz-gallery-layout-stage piece=\"sidebar\" height=\"12rem\" [config]=\"horizontal\" />\n </smz-gallery-case>\n </smz-gallery-section>\n }\n @case ('horizontal-open') {\n <smz-gallery-section label=\"Menu horizontal: painel de um grupo aberto\" [columns]=\"1\">\n <smz-gallery-case label=\"grupo Cadastros aberto (clique, ou expanded no item) · submenu da rota ativa expandido dentro do painel\">\n <smz-gallery-layout-stage piece=\"sidebar\" height=\"30rem\" [config]=\"horizontalOpen\" />\n </smz-gallery-case>\n </smz-gallery-section>\n }\n @case ('slim') {\n <smz-gallery-section label=\"Menu slim: só ícones\" [columns]=\"3\">\n <smz-gallery-case label=\"menuMode slim · grupos sem título, item que contém a rota ativa (Produtos) destacado\">\n <smz-gallery-layout-stage piece=\"sidebar\" width=\"24rem\" height=\"100vh\" [config]=\"slim\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"hasClaim negando tudo: itens com claims somem\">\n <smz-gallery-layout-stage piece=\"sidebar\" width=\"24rem\" height=\"100vh\" [config]=\"slimDenied\" />\n </smz-gallery-case>\n </smz-gallery-section>\n }\n @case ('slim-hover') {\n <smz-gallery-section label=\"Menu slim: rótulo e submenu ao lado do item\" [columns]=\"3\">\n <smz-gallery-case label=\"hover em item sem submenu: rótulo ao lado\" force=\"hover\" target=\".layout-menu > li:nth-child(1) > ul > li:nth-child(1)\">\n <smz-gallery-layout-stage piece=\"sidebar\" width=\"24rem\" height=\"22rem\" [config]=\"slimShort\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"hover em item com submenu: rótulo e painel do submenu\" force=\"hover\" target=\".layout-menu > li:nth-child(1) > ul > li:nth-child(3)\">\n <smz-gallery-layout-stage piece=\"sidebar\" width=\"24rem\" height=\"22rem\" [config]=\"slimShort\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"painel fixado (clique, ou expanded no item) com a rota ativa dentro\">\n <smz-gallery-layout-stage piece=\"sidebar\" width=\"24rem\" height=\"30rem\" [config]=\"slimOpen\" />\n </smz-gallery-case>\n </smz-gallery-section>\n }\n @case ('widths') {\n <smz-gallery-section label=\"Larguras pela configuração\" [columns]=\"3\">\n <smz-gallery-case label=\"menuMode static · sidebarWidth 14rem\">\n <smz-gallery-layout-stage piece=\"sidebar\" width=\"24rem\" height=\"22rem\" [config]=\"narrow\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"menuMode slim · sidebarSlimWidth 4.5rem\">\n <smz-gallery-layout-stage piece=\"sidebar\" width=\"24rem\" height=\"22rem\" [config]=\"slimNarrow\" />\n </smz-gallery-case>\n </smz-gallery-section>\n }\n @default {\n <smz-gallery-section label=\"Painel da sidebar (altura da viewport)\" [columns]=\"3\">\n <smz-gallery-case label=\"grupos, separador, rota ativa (Categorias) com submenu expandido, submenu recolhido, item desabilitado\">\n <smz-gallery-layout-stage piece=\"sidebar\" width=\"24rem\" height=\"100vh\" [config]=\"full\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"hasClaim negando tudo: itens com claims somem, e o grupo sem filho visível também\">\n <smz-gallery-layout-stage piece=\"sidebar\" width=\"24rem\" height=\"100vh\" [config]=\"denied\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"seis níveis de submenu, rota ativa no último\">\n <smz-gallery-layout-stage piece=\"sidebar\" width=\"24rem\" height=\"100vh\" [config]=\"deep\" />\n </smz-gallery-case>\n </smz-gallery-section>\n\n <smz-gallery-section label=\"Estados de um item\" [columns]=\"3\">\n <smz-gallery-case label=\"padrão (sem rota ativa, submenu recolhido)\">\n <smz-gallery-layout-stage piece=\"sidebar\" width=\"24rem\" height=\"22rem\" [config]=\"short\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"hover em item\" force=\"hover\" target=\".layout-menu ul li:nth-child(1) > a\">\n <smz-gallery-layout-stage piece=\"sidebar\" width=\"24rem\" height=\"22rem\" [config]=\"short\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"foco em item\" force=\"focus\" target=\".layout-menu ul li:nth-child(2) > a\">\n <smz-gallery-layout-stage piece=\"sidebar\" width=\"24rem\" height=\"22rem\" [config]=\"short\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"hover em item com submenu\" force=\"hover\" target=\".layout-menu ul li:nth-child(3) > a\">\n <smz-gallery-layout-stage piece=\"sidebar\" width=\"24rem\" height=\"22rem\" [config]=\"short\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"hover no item da rota ativa\" force=\"hover\" target=\".layout-menu a.active-route\">\n <smz-gallery-layout-stage piece=\"sidebar\" width=\"24rem\" height=\"36rem\" [config]=\"full\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"foco no item da rota ativa\" force=\"focus\" target=\".layout-menu a.active-route\">\n <smz-gallery-layout-stage piece=\"sidebar\" width=\"24rem\" height=\"36rem\" [config]=\"full\" />\n </smz-gallery-case>\n </smz-gallery-section>\n }\n }\n `,\n})\nexport class LayoutMenuGalleryEntryComponent {\n protected readonly scene = inject(SMZ_GALLERY_SCENE);\n\n private readonly path = inject(Router).url.split(/[?#]/)[0];\n\n protected readonly full: SmzLayoutGalleryStageConfig = { sidebar: galleryMenu(this.path) };\n protected readonly denied: SmzLayoutGalleryStageConfig = { sidebar: galleryMenu(this.path), hasClaim: (): boolean => false };\n protected readonly deep: SmzLayoutGalleryStageConfig = { sidebar: galleryDeepMenu(this.path) };\n protected readonly short: SmzLayoutGalleryStageConfig = { sidebar: GALLERY_MENU_SHORT };\n\n protected readonly horizontal: SmzLayoutGalleryStageConfig = { sidebar: galleryMenu(this.path), layout: { menuMode: 'horizontal' } };\n protected readonly horizontalOpen: SmzLayoutGalleryStageConfig = { sidebar: this.menuWithOpenGroup(), layout: { menuMode: 'horizontal' } };\n protected readonly slim: SmzLayoutGalleryStageConfig = { sidebar: galleryMenu(this.path), layout: { menuMode: 'slim' } };\n protected readonly slimDenied: SmzLayoutGalleryStageConfig = { ...this.slim, hasClaim: (): boolean => false };\n protected readonly slimShort: SmzLayoutGalleryStageConfig = { sidebar: GALLERY_MENU_SHORT, layout: { menuMode: 'slim' } };\n protected readonly slimOpen: SmzLayoutGalleryStageConfig = { sidebar: this.menuWithOpenItem(), layout: { menuMode: 'slim' } };\n protected readonly narrow: SmzLayoutGalleryStageConfig = { sidebar: GALLERY_MENU_SHORT, layout: { menuMode: 'static', sidebarWidth: '14rem' } };\n protected readonly slimNarrow: SmzLayoutGalleryStageConfig = { sidebar: GALLERY_MENU_SHORT, layout: { menuMode: 'slim', sidebarSlimWidth: '4.5rem' } };\n\n /** Menu completo com o grupo \"Cadastros\" (o da rota ativa) aberto: no menu horizontal, o painel dele. */\n private menuWithOpenGroup(): SmzUiMenuItem[] {\n return galleryMenu(this.path).map((group) => (group.label === 'Cadastros' ? { ...group, expanded: true } : group));\n }\n\n /** Só o grupo \"Cadastros\", com o item \"Produtos\" (o da rota ativa) aberto: no menu slim, o painel dele. */\n private menuWithOpenItem(): SmzUiMenuItem[] {\n return galleryMenu(this.path)\n .filter((group) => group.label === 'Cadastros')\n .map((group) => ({ ...group, items: group.items?.map((item) => (item.label === 'Produtos' ? { ...item, expanded: true } : item)) }));\n }\n}\n"],"names":[],"mappings":";;;;;;AAOA;;;;;;;;;AASG;MAkGU,+BAA+B,CAAA;AACvB,IAAA,KAAK,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAEnC,IAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAExC,IAAI,GAAgC,EAAE,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;AACvE,IAAA,MAAM,GAAgC,EAAE,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,MAAe,KAAK,EAAE;IACzG,IAAI,GAAgC,EAAE,OAAO,EAAE,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;AAC3E,IAAA,KAAK,GAAgC,EAAE,OAAO,EAAE,kBAAkB,EAAE;AAEpE,IAAA,UAAU,GAAgC,EAAE,OAAO,EAAE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AA,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;;2FA8FlF,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAjG3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,+BAA+B;oBACzC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0FT,EAAA,CAAA;AACF,iBAAA;;;;;"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { SMZ_GALLERY_SCENE, SmzGalleryCaseComponent, SmzGallerySectionComponent } from '@ngx-smz/core';
|
|
5
|
+
import { G as GALLERY_FOOTER, a as GALLERY_TOPBAR, g as galleryMenu, S as SmzLayoutGalleryStageComponent } from './ngx-smz-layout-layout-gallery.fixtures-BgO9_ncI.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Galeria: `<app-layout>` inteiro (topbar, sidebar, área principal e rodapé) dentro de uma caixa com a
|
|
9
|
+
* altura da viewport. Uma cena por modo/estado de menu, porque cada `<app-layout>` traz um `<router-outlet>`.
|
|
10
|
+
* A área principal fica vazia: o conteúdo do shell vem do `<router-outlet>`, que aqui não tem rota filha.
|
|
11
|
+
* As regras de `max-width: 991px` (menu móvel) dependem da viewport, não da caixa, e não são cobertas.
|
|
12
|
+
*
|
|
13
|
+
* As cenas `loader*`, `route-*` e `assistance` mostram o que a casca monta por configuração (`withLoader`,
|
|
14
|
+
* `withAssistance`) e o layout por rota. O palco não navega: o `data.layout` da cena entra por `routeLayout`, que o
|
|
15
|
+
* palco impõe com `RouteLayoutService.set()`.
|
|
16
|
+
*
|
|
17
|
+
* As cenas `content` e `preloader` não usam `<app-layout>`: mostram o CSS global da casca que nenhuma peça desenha
|
|
18
|
+
* (`.card` e a tipografia de `_typography.scss`; a tela de pré-carregamento de `_preloading.scss`), dentro de uma
|
|
19
|
+
* caixa com o mesmo atributo do palco.
|
|
20
|
+
*/
|
|
21
|
+
class LayoutShellGalleryEntryComponent {
|
|
22
|
+
scene = inject(SMZ_GALLERY_SCENE);
|
|
23
|
+
path = inject(Router).url.split(/[?#]/)[0];
|
|
24
|
+
base = {
|
|
25
|
+
sidebar: galleryMenu(this.path),
|
|
26
|
+
topbar: GALLERY_TOPBAR,
|
|
27
|
+
footer: GALLERY_FOOTER,
|
|
28
|
+
pageTitle: 'Categorias',
|
|
29
|
+
};
|
|
30
|
+
scenes = {
|
|
31
|
+
default: {
|
|
32
|
+
section: 'Menu estático',
|
|
33
|
+
label: 'menuMode static · sidebar visível',
|
|
34
|
+
config: { ...this.base, layout: { menuMode: 'static' } },
|
|
35
|
+
},
|
|
36
|
+
'static-inactive': {
|
|
37
|
+
section: 'Menu estático recolhido',
|
|
38
|
+
label: 'menuMode static · staticMenuDesktopInactive',
|
|
39
|
+
config: { ...this.base, layout: { menuMode: 'static' }, state: { staticMenuDesktopInactive: true } },
|
|
40
|
+
},
|
|
41
|
+
overlay: {
|
|
42
|
+
section: 'Menu overlay fechado',
|
|
43
|
+
label: 'menuMode overlay',
|
|
44
|
+
config: { ...this.base, layout: { menuMode: 'overlay' } },
|
|
45
|
+
},
|
|
46
|
+
'overlay-active': {
|
|
47
|
+
section: 'Menu overlay aberto',
|
|
48
|
+
label: 'menuMode overlay · overlayMenuActive',
|
|
49
|
+
config: { ...this.base, layout: { menuMode: 'overlay' }, state: { overlayMenuActive: true } },
|
|
50
|
+
},
|
|
51
|
+
'no-sidebar': {
|
|
52
|
+
section: 'Sem sidebar',
|
|
53
|
+
label: 'showSidebar false · topbar sem alternador de menu',
|
|
54
|
+
config: { ...this.base, topbar: { ...GALLERY_TOPBAR, showMenuToggle: false }, layout: { menuMode: 'static', showSidebar: false } },
|
|
55
|
+
},
|
|
56
|
+
'menu-horizontal': {
|
|
57
|
+
section: 'Menu horizontal',
|
|
58
|
+
label: 'menuMode horizontal · barra abaixo da topbar, alternador de menu oculto, área principal abaixo da barra',
|
|
59
|
+
config: { ...this.base, layout: { menuMode: 'horizontal' } },
|
|
60
|
+
},
|
|
61
|
+
'menu-slim': {
|
|
62
|
+
section: 'Menu slim',
|
|
63
|
+
label: 'menuMode slim · sidebar só com ícones, alternador de menu oculto, área principal recuada pela largura slim',
|
|
64
|
+
config: { ...this.base, layout: { menuMode: 'slim' } },
|
|
65
|
+
},
|
|
66
|
+
'sidebar-width': {
|
|
67
|
+
section: 'Largura da sidebar pela configuração',
|
|
68
|
+
label: 'menuMode static · sidebarWidth 14rem (sobrescreve o token layout.sidebar.width)',
|
|
69
|
+
config: { ...this.base, layout: { menuMode: 'static', sidebarWidth: '14rem' } },
|
|
70
|
+
},
|
|
71
|
+
loader: {
|
|
72
|
+
section: 'Loader da casca: cube',
|
|
73
|
+
label: 'withLoader · type cube · título e mensagem padrão (os cubos pulsam com a animação)',
|
|
74
|
+
config: { ...this.base, layout: { menuMode: 'static' }, loader: { type: 'cube' } },
|
|
75
|
+
},
|
|
76
|
+
'loader-square': {
|
|
77
|
+
section: 'Loader da casca: square',
|
|
78
|
+
label: 'withLoader · type square · título e mensagem da configuração',
|
|
79
|
+
config: { ...this.base, layout: { menuMode: 'static' }, loader: { type: 'square', title: 'Gestão Comercial', message: 'Carregando os cadastros da sua unidade' } },
|
|
80
|
+
},
|
|
81
|
+
'route-full': {
|
|
82
|
+
section: 'Layout por rota: full',
|
|
83
|
+
label: 'data.layout · mode full · hideFooter · contentPadding 0 · contentStyleClass bg-ui-surface-1',
|
|
84
|
+
config: { ...this.base, layout: { menuMode: 'static' }, routeLayout: { mode: 'full', hideFooter: true, contentPadding: '0', contentStyleClass: 'bg-ui-surface-1' } },
|
|
85
|
+
},
|
|
86
|
+
'route-topbar-only': {
|
|
87
|
+
section: 'Layout por rota: topbar-only',
|
|
88
|
+
label: 'data.layout · mode topbar-only · sem menu e sem rodapé',
|
|
89
|
+
config: { ...this.base, topbar: { ...GALLERY_TOPBAR, showMenuToggle: false }, layout: { menuMode: 'static' }, routeLayout: { mode: 'topbar-only' } },
|
|
90
|
+
},
|
|
91
|
+
'route-menu-only': {
|
|
92
|
+
section: 'Layout por rota: menu-only',
|
|
93
|
+
label: 'data.layout · mode menu-only · sem topbar e sem rodapé',
|
|
94
|
+
config: { ...this.base, layout: { menuMode: 'static' }, routeLayout: { mode: 'menu-only' } },
|
|
95
|
+
},
|
|
96
|
+
assistance: {
|
|
97
|
+
section: 'Assistência',
|
|
98
|
+
label: 'withAssistance · botão flutuante em right-bottom (o painel abre em um overlay, fora do palco)',
|
|
99
|
+
config: { ...this.base, layout: { menuMode: 'static' }, assistance: { buttonPosition: 'right-bottom', position: 'right' } },
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
// A entrada é recriada a cada troca de cena (o host da galeria recarrega o componente).
|
|
103
|
+
current = this.scenes[this.scene()] ?? this.scenes['default'];
|
|
104
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutShellGalleryEntryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
105
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: LayoutShellGalleryEntryComponent, isStandalone: true, selector: "smz-gallery-layout-shell-entry", host: { classAttribute: "flex flex-col gap-8" }, ngImport: i0, template: `
|
|
106
|
+
@switch (scene()) {
|
|
107
|
+
@case ('content') {
|
|
108
|
+
<smz-gallery-section label="Conteúdo: cartão e tipografia" [columns]="1">
|
|
109
|
+
<smz-gallery-case label=".card com h1 a h6, parágrafo, mark, blockquote e hr">
|
|
110
|
+
<div class="relative max-w-full overflow-hidden border border-ui-line p-8" data-smz-gallery-layout-stage>
|
|
111
|
+
<div class="card">
|
|
112
|
+
<h1>Título de nível 1</h1>
|
|
113
|
+
<h2>Título de nível 2</h2>
|
|
114
|
+
<h3>Título de nível 3</h3>
|
|
115
|
+
<h4>Título de nível 4</h4>
|
|
116
|
+
<h5>Título de nível 5</h5>
|
|
117
|
+
<h6>Título de nível 6</h6>
|
|
118
|
+
<p>Parágrafo do conteúdo, com um <mark>texto marcado</mark> no meio da frase.</p>
|
|
119
|
+
<blockquote>Citação em bloco, com a barra lateral.</blockquote>
|
|
120
|
+
<hr />
|
|
121
|
+
<p>Último parágrafo do cartão.</p>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
</smz-gallery-case>
|
|
125
|
+
</smz-gallery-section>
|
|
126
|
+
}
|
|
127
|
+
@case ('preloader') {
|
|
128
|
+
<smz-gallery-section label="Pré-carregamento" [columns]="1">
|
|
129
|
+
<smz-gallery-case label=".preloader · tela cheia, reduzida à metade (os anéis só aparecem com a animação)">
|
|
130
|
+
<div class="relative max-w-full overflow-hidden border border-ui-line" data-smz-gallery-layout-stage [style.width]="'calc(100vw * 0.5)'" [style.height]="'calc(100vh * 0.5)'">
|
|
131
|
+
<div [style.width]="'100vw'" [style.height]="'100vh'" [style.transform]="'scale(0.5)'" [style.transform-origin]="'top left'">
|
|
132
|
+
<div class="preloader">
|
|
133
|
+
<div class="preloader-content"></div>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
</smz-gallery-case>
|
|
138
|
+
</smz-gallery-section>
|
|
139
|
+
}
|
|
140
|
+
@default {
|
|
141
|
+
<smz-gallery-section [label]="current.section" [columns]="1">
|
|
142
|
+
<smz-gallery-case [label]="current.label">
|
|
143
|
+
<smz-gallery-layout-stage piece="layout" height="100vh" [config]="current.config" />
|
|
144
|
+
</smz-gallery-case>
|
|
145
|
+
</smz-gallery-section>
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
`, 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 });
|
|
149
|
+
}
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutShellGalleryEntryComponent, decorators: [{
|
|
151
|
+
type: Component,
|
|
152
|
+
args: [{
|
|
153
|
+
selector: 'smz-gallery-layout-shell-entry',
|
|
154
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
155
|
+
imports: [SmzGalleryCaseComponent, SmzGallerySectionComponent, SmzLayoutGalleryStageComponent],
|
|
156
|
+
host: { class: 'flex flex-col gap-8' },
|
|
157
|
+
template: `
|
|
158
|
+
@switch (scene()) {
|
|
159
|
+
@case ('content') {
|
|
160
|
+
<smz-gallery-section label="Conteúdo: cartão e tipografia" [columns]="1">
|
|
161
|
+
<smz-gallery-case label=".card com h1 a h6, parágrafo, mark, blockquote e hr">
|
|
162
|
+
<div class="relative max-w-full overflow-hidden border border-ui-line p-8" data-smz-gallery-layout-stage>
|
|
163
|
+
<div class="card">
|
|
164
|
+
<h1>Título de nível 1</h1>
|
|
165
|
+
<h2>Título de nível 2</h2>
|
|
166
|
+
<h3>Título de nível 3</h3>
|
|
167
|
+
<h4>Título de nível 4</h4>
|
|
168
|
+
<h5>Título de nível 5</h5>
|
|
169
|
+
<h6>Título de nível 6</h6>
|
|
170
|
+
<p>Parágrafo do conteúdo, com um <mark>texto marcado</mark> no meio da frase.</p>
|
|
171
|
+
<blockquote>Citação em bloco, com a barra lateral.</blockquote>
|
|
172
|
+
<hr />
|
|
173
|
+
<p>Último parágrafo do cartão.</p>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</smz-gallery-case>
|
|
177
|
+
</smz-gallery-section>
|
|
178
|
+
}
|
|
179
|
+
@case ('preloader') {
|
|
180
|
+
<smz-gallery-section label="Pré-carregamento" [columns]="1">
|
|
181
|
+
<smz-gallery-case label=".preloader · tela cheia, reduzida à metade (os anéis só aparecem com a animação)">
|
|
182
|
+
<div class="relative max-w-full overflow-hidden border border-ui-line" data-smz-gallery-layout-stage [style.width]="'calc(100vw * 0.5)'" [style.height]="'calc(100vh * 0.5)'">
|
|
183
|
+
<div [style.width]="'100vw'" [style.height]="'100vh'" [style.transform]="'scale(0.5)'" [style.transform-origin]="'top left'">
|
|
184
|
+
<div class="preloader">
|
|
185
|
+
<div class="preloader-content"></div>
|
|
186
|
+
</div>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</smz-gallery-case>
|
|
190
|
+
</smz-gallery-section>
|
|
191
|
+
}
|
|
192
|
+
@default {
|
|
193
|
+
<smz-gallery-section [label]="current.section" [columns]="1">
|
|
194
|
+
<smz-gallery-case [label]="current.label">
|
|
195
|
+
<smz-gallery-layout-stage piece="layout" height="100vh" [config]="current.config" />
|
|
196
|
+
</smz-gallery-case>
|
|
197
|
+
</smz-gallery-section>
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
`,
|
|
201
|
+
}]
|
|
202
|
+
}] });
|
|
203
|
+
|
|
204
|
+
export { LayoutShellGalleryEntryComponent };
|
|
205
|
+
//# sourceMappingURL=ngx-smz-layout-layout-shell.entry-qgGO3ZqB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-smz-layout-layout-shell.entry-qgGO3ZqB.mjs","sources":["../../../projects/ngx-smz-ui-layout/src/lib/gallery/entries/layout-shell.entry.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { SMZ_GALLERY_SCENE, SmzGalleryCaseComponent, SmzGallerySectionComponent } from '@ngx-smz/core';\nimport { SmzLayoutGalleryStageComponent, SmzLayoutGalleryStageConfig } from '../layout-gallery-stage.component';\nimport { GALLERY_FOOTER, GALLERY_TOPBAR, galleryMenu } from '../layout-gallery.fixtures';\n\ninterface ShellScene {\n section: string;\n label: string;\n config: SmzLayoutGalleryStageConfig;\n}\n\n/**\n * Galeria: `<app-layout>` inteiro (topbar, sidebar, área principal e rodapé) dentro de uma caixa com a\n * altura da viewport. Uma cena por modo/estado de menu, porque cada `<app-layout>` traz um `<router-outlet>`.\n * A área principal fica vazia: o conteúdo do shell vem do `<router-outlet>`, que aqui não tem rota filha.\n * As regras de `max-width: 991px` (menu móvel) dependem da viewport, não da caixa, e não são cobertas.\n *\n * As cenas `loader*`, `route-*` e `assistance` mostram o que a casca monta por configuração (`withLoader`,\n * `withAssistance`) e o layout por rota. O palco não navega: o `data.layout` da cena entra por `routeLayout`, que o\n * palco impõe com `RouteLayoutService.set()`.\n *\n * As cenas `content` e `preloader` não usam `<app-layout>`: mostram o CSS global da casca que nenhuma peça desenha\n * (`.card` e a tipografia de `_typography.scss`; a tela de pré-carregamento de `_preloading.scss`), dentro de uma\n * caixa com o mesmo atributo do palco.\n */\n@Component({\n selector: 'smz-gallery-layout-shell-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 ('content') {\n <smz-gallery-section label=\"Conteúdo: cartão e tipografia\" [columns]=\"1\">\n <smz-gallery-case label=\".card com h1 a h6, parágrafo, mark, blockquote e hr\">\n <div class=\"relative max-w-full overflow-hidden border border-ui-line p-8\" data-smz-gallery-layout-stage>\n <div class=\"card\">\n <h1>Título de nível 1</h1>\n <h2>Título de nível 2</h2>\n <h3>Título de nível 3</h3>\n <h4>Título de nível 4</h4>\n <h5>Título de nível 5</h5>\n <h6>Título de nível 6</h6>\n <p>Parágrafo do conteúdo, com um <mark>texto marcado</mark> no meio da frase.</p>\n <blockquote>Citação em bloco, com a barra lateral.</blockquote>\n <hr />\n <p>Último parágrafo do cartão.</p>\n </div>\n </div>\n </smz-gallery-case>\n </smz-gallery-section>\n }\n @case ('preloader') {\n <smz-gallery-section label=\"Pré-carregamento\" [columns]=\"1\">\n <smz-gallery-case label=\".preloader · tela cheia, reduzida à metade (os anéis só aparecem com a animação)\">\n <div class=\"relative max-w-full overflow-hidden border border-ui-line\" data-smz-gallery-layout-stage [style.width]=\"'calc(100vw * 0.5)'\" [style.height]=\"'calc(100vh * 0.5)'\">\n <div [style.width]=\"'100vw'\" [style.height]=\"'100vh'\" [style.transform]=\"'scale(0.5)'\" [style.transform-origin]=\"'top left'\">\n <div class=\"preloader\">\n <div class=\"preloader-content\"></div>\n </div>\n </div>\n </div>\n </smz-gallery-case>\n </smz-gallery-section>\n }\n @default {\n <smz-gallery-section [label]=\"current.section\" [columns]=\"1\">\n <smz-gallery-case [label]=\"current.label\">\n <smz-gallery-layout-stage piece=\"layout\" height=\"100vh\" [config]=\"current.config\" />\n </smz-gallery-case>\n </smz-gallery-section>\n }\n }\n `,\n})\nexport class LayoutShellGalleryEntryComponent {\n protected readonly scene = inject(SMZ_GALLERY_SCENE);\n\n private readonly path = inject(Router).url.split(/[?#]/)[0];\n private readonly base: SmzLayoutGalleryStageConfig = {\n sidebar: galleryMenu(this.path),\n topbar: GALLERY_TOPBAR,\n footer: GALLERY_FOOTER,\n pageTitle: 'Categorias',\n };\n\n private readonly scenes: Record<string, ShellScene> = {\n default: {\n section: 'Menu estático',\n label: 'menuMode static · sidebar visível',\n config: { ...this.base, layout: { menuMode: 'static' } },\n },\n 'static-inactive': {\n section: 'Menu estático recolhido',\n label: 'menuMode static · staticMenuDesktopInactive',\n config: { ...this.base, layout: { menuMode: 'static' }, state: { staticMenuDesktopInactive: true } },\n },\n overlay: {\n section: 'Menu overlay fechado',\n label: 'menuMode overlay',\n config: { ...this.base, layout: { menuMode: 'overlay' } },\n },\n 'overlay-active': {\n section: 'Menu overlay aberto',\n label: 'menuMode overlay · overlayMenuActive',\n config: { ...this.base, layout: { menuMode: 'overlay' }, state: { overlayMenuActive: true } },\n },\n 'no-sidebar': {\n section: 'Sem sidebar',\n label: 'showSidebar false · topbar sem alternador de menu',\n config: { ...this.base, topbar: { ...GALLERY_TOPBAR, showMenuToggle: false }, layout: { menuMode: 'static', showSidebar: false } },\n },\n 'menu-horizontal': {\n section: 'Menu horizontal',\n label: 'menuMode horizontal · barra abaixo da topbar, alternador de menu oculto, área principal abaixo da barra',\n config: { ...this.base, layout: { menuMode: 'horizontal' } },\n },\n 'menu-slim': {\n section: 'Menu slim',\n label: 'menuMode slim · sidebar só com ícones, alternador de menu oculto, área principal recuada pela largura slim',\n config: { ...this.base, layout: { menuMode: 'slim' } },\n },\n 'sidebar-width': {\n section: 'Largura da sidebar pela configuração',\n label: 'menuMode static · sidebarWidth 14rem (sobrescreve o token layout.sidebar.width)',\n config: { ...this.base, layout: { menuMode: 'static', sidebarWidth: '14rem' } },\n },\n loader: {\n section: 'Loader da casca: cube',\n label: 'withLoader · type cube · título e mensagem padrão (os cubos pulsam com a animação)',\n config: { ...this.base, layout: { menuMode: 'static' }, loader: { type: 'cube' } },\n },\n 'loader-square': {\n section: 'Loader da casca: square',\n label: 'withLoader · type square · título e mensagem da configuração',\n config: { ...this.base, layout: { menuMode: 'static' }, loader: { type: 'square', title: 'Gestão Comercial', message: 'Carregando os cadastros da sua unidade' } },\n },\n 'route-full': {\n section: 'Layout por rota: full',\n label: 'data.layout · mode full · hideFooter · contentPadding 0 · contentStyleClass bg-ui-surface-1',\n config: { ...this.base, layout: { menuMode: 'static' }, routeLayout: { mode: 'full', hideFooter: true, contentPadding: '0', contentStyleClass: 'bg-ui-surface-1' } },\n },\n 'route-topbar-only': {\n section: 'Layout por rota: topbar-only',\n label: 'data.layout · mode topbar-only · sem menu e sem rodapé',\n config: { ...this.base, topbar: { ...GALLERY_TOPBAR, showMenuToggle: false }, layout: { menuMode: 'static' }, routeLayout: { mode: 'topbar-only' } },\n },\n 'route-menu-only': {\n section: 'Layout por rota: menu-only',\n label: 'data.layout · mode menu-only · sem topbar e sem rodapé',\n config: { ...this.base, layout: { menuMode: 'static' }, routeLayout: { mode: 'menu-only' } },\n },\n assistance: {\n section: 'Assistência',\n label: 'withAssistance · botão flutuante em right-bottom (o painel abre em um overlay, fora do palco)',\n config: { ...this.base, layout: { menuMode: 'static' }, assistance: { buttonPosition: 'right-bottom', position: 'right' } },\n },\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;;;;;;;;;;;;;AAaG;MAmDU,gCAAgC,CAAA;AACxB,IAAA,KAAK,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAEnC,IAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC1C,IAAA,IAAI,GAAgC;AACnD,QAAA,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC;AAC/B,QAAA,MAAM,EAAE,cAAc;AACtB,QAAA,MAAM,EAAE,cAAc;AACtB,QAAA,SAAS,EAAE,YAAY;KACxB;AAEgB,IAAA,MAAM,GAA+B;AACpD,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,eAAe;AACxB,YAAA,KAAK,EAAE,mCAAmC;AAC1C,YAAA,MAAM,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