@ngx-smz/layout 21.10.0-next.28 → 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.
Files changed (43) hide show
  1. package/fesm2022/ngx-smz-layout-layout-configurator.entry-Dm9Xx7YB.mjs +101 -0
  2. package/fesm2022/ngx-smz-layout-layout-configurator.entry-Dm9Xx7YB.mjs.map +1 -0
  3. package/fesm2022/{ngx-smz-layout-layout-errors.entry-Bpp0Hw8y.mjs → ngx-smz-layout-layout-errors.entry-CQuwiz8W.mjs} +3 -3
  4. package/fesm2022/{ngx-smz-layout-layout-errors.entry-Bpp0Hw8y.mjs.map → ngx-smz-layout-layout-errors.entry-CQuwiz8W.mjs.map} +1 -1
  5. package/fesm2022/ngx-smz-layout-layout-footer.entry-BmXVGvze.mjs +135 -0
  6. package/fesm2022/ngx-smz-layout-layout-footer.entry-BmXVGvze.mjs.map +1 -0
  7. package/fesm2022/{ngx-smz-layout-layout-gallery.fixtures-yel7nOYX.mjs → ngx-smz-layout-layout-gallery.fixtures-BgO9_ncI.mjs} +34 -7
  8. package/fesm2022/ngx-smz-layout-layout-gallery.fixtures-BgO9_ncI.mjs.map +1 -0
  9. package/fesm2022/ngx-smz-layout-layout-menu.entry-DdTLZvao.mjs +237 -0
  10. package/fesm2022/ngx-smz-layout-layout-menu.entry-DdTLZvao.mjs.map +1 -0
  11. package/fesm2022/ngx-smz-layout-layout-shell.entry-qgGO3ZqB.mjs +205 -0
  12. package/fesm2022/ngx-smz-layout-layout-shell.entry-qgGO3ZqB.mjs.map +1 -0
  13. package/fesm2022/{ngx-smz-layout-layout-topbar.entry-CfSpHt5E.mjs → ngx-smz-layout-layout-topbar.entry-Bg3BEgJa.mjs} +158 -7
  14. package/fesm2022/ngx-smz-layout-layout-topbar.entry-Bg3BEgJa.mjs.map +1 -0
  15. package/fesm2022/{ngx-smz-layout-ngx-smz-layout-BEHAEWgI.mjs → ngx-smz-layout-ngx-smz-layout-CvjM-0jw.mjs} +945 -309
  16. package/fesm2022/ngx-smz-layout-ngx-smz-layout-CvjM-0jw.mjs.map +1 -0
  17. package/fesm2022/ngx-smz-layout.mjs +1 -1
  18. package/package.json +1 -1
  19. package/resources/layout/_core.scss +90 -4
  20. package/resources/layout/_footer.scss +1 -1
  21. package/resources/layout/_main.scss +10 -2
  22. package/resources/layout/_menu.scss +203 -34
  23. package/resources/layout/_mixins.scss +9 -8
  24. package/resources/layout/_preloading.scss +167 -5
  25. package/resources/layout/_responsive.scss +51 -15
  26. package/resources/layout/_topbar.scss +72 -34
  27. package/resources/layout/_typography.scss +14 -14
  28. package/resources/layout/_utils.scss +2 -2
  29. package/resources/layout/gallery-stage.scss +1 -1
  30. package/resources/layout/variables/_common.scss +9 -5
  31. package/resources/layout/variables/_dark.scss +0 -2
  32. package/resources/layout/variables/_legacy-common.scss +10 -8
  33. package/resources/layout/variables/_light.scss +0 -2
  34. package/types/ngx-smz-layout.d.ts +381 -52
  35. package/fesm2022/ngx-smz-layout-layout-footer.entry-CbNgTe0l.mjs +0 -51
  36. package/fesm2022/ngx-smz-layout-layout-footer.entry-CbNgTe0l.mjs.map +0 -1
  37. package/fesm2022/ngx-smz-layout-layout-gallery.fixtures-yel7nOYX.mjs.map +0 -1
  38. package/fesm2022/ngx-smz-layout-layout-menu.entry-BAzglN_V.mjs +0 -99
  39. package/fesm2022/ngx-smz-layout-layout-menu.entry-BAzglN_V.mjs.map +0 -1
  40. package/fesm2022/ngx-smz-layout-layout-shell.entry-CWxnFneU.mjs +0 -78
  41. package/fesm2022/ngx-smz-layout-layout-shell.entry-CWxnFneU.mjs.map +0 -1
  42. package/fesm2022/ngx-smz-layout-layout-topbar.entry-CfSpHt5E.mjs.map +0 -1
  43. package/fesm2022/ngx-smz-layout-ngx-smz-layout-BEHAEWgI.mjs.map +0 -1
@@ -1,16 +1,26 @@
1
1
  import * as i0 from '@angular/core';
2
- import { signal, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { SmzGalleryCaseComponent, SmzGallerySectionComponent } from '@ngx-smz/core';
4
- import { b as GALLERY_AVATAR, c as GALLERY_LOGO, S as SmzLayoutGalleryStageComponent } from './ngx-smz-layout-layout-gallery.fixtures-yel7nOYX.mjs';
2
+ import { inject, signal, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { SMZ_GALLERY_SCENE, SmzGalleryCaseComponent, SmzGallerySectionComponent } from '@ngx-smz/core';
4
+ import { of } from 'rxjs';
5
+ import { s as smzTopbarNotificationsAvailable } from './ngx-smz-layout-ngx-smz-layout-CvjM-0jw.mjs';
6
+ import { b as GALLERY_AVATAR, c as GALLERY_LOGO, S as SmzLayoutGalleryStageComponent } from './ngx-smz-layout-layout-gallery.fixtures-BgO9_ncI.mjs';
5
7
 
6
8
  function noop() { }
7
9
  /**
8
10
  * Galeria: topbar isolada (`app-topbar`), um caso por combinação do contrato `Topbar`. O título da página e
9
11
  * o botão voltar dependem de `PageTitleService` e `NavigationService`; o palco os fixa por `pageTitle` e
10
- * `canGoBack`. Os menus de perfil (popup) ficam fechados. `showConfigurator` fica de fora: o `AppConfigurator`
11
- * chama `SmzThemeService.reset()` ao nascer e apagaria as sobrescritas de tema feitas pela galeria.
12
+ * `canGoBack`. Os menus de perfil (popup) ficam fechados. `showConfigurator` fica na entrada
13
+ * `layout-configurator`, que abre o painel.
14
+ *
15
+ * Cenas: `slots` (conteúdo extra por template: `headerExtras` e a variante por orientação; o palco entrega os
16
+ * templates direto à topbar, como `<app-layout>` faz com os que recebe por projeção), `profile` (mensagem e nome do
17
+ * usuário ao lado do perfil, por texto fixo, `Signal` e `Observable`) e `notifications` (sino do core; depende da
18
+ * configuração de notificações e do estado `ui.notifications` do app hospedeiro, que a galeria não fornece: sem a
19
+ * configuração, a cena mostra um aviso no lugar da topbar).
12
20
  */
13
21
  class LayoutTopbarGalleryEntryComponent {
22
+ scene = inject(SMZ_GALLERY_SCENE);
23
+ notificationsAvailable = smzTopbarNotificationsAvailable();
14
24
  profileItems = [
15
25
  { label: 'Meu perfil', icon: 'fa-solid fa-user' },
16
26
  { label: 'Sair', icon: 'fa-solid fa-right-from-bracket' },
@@ -68,8 +78,93 @@ class LayoutTopbarGalleryEntryComponent {
68
78
  pageTitle: 'Clientes',
69
79
  canGoBack: true,
70
80
  };
81
+ slotsBrand = {
82
+ topbar: { showMenuToggle: true, logoPath: GALLERY_LOGO, appName: 'Gestão Comercial' },
83
+ };
84
+ profile = [
85
+ {
86
+ label: 'profileMessage e username (texto fixo) com ícone',
87
+ config: { topbar: { logoPath: GALLERY_LOGO, features: [{ ...this.iconFeature, profileMessage: 'Olá, ', username: 'Maria Souza' }] } },
88
+ },
89
+ {
90
+ label: 'profileMessage e username (Signal) com avatar',
91
+ config: { topbar: { logoPath: GALLERY_LOGO, features: [{ ...this.avatarFeature, profileMessage: signal('Bem-vinda, '), username: signal('Maria Souza') }] } },
92
+ },
93
+ {
94
+ label: 'só username (Observable), sem mensagem',
95
+ config: { topbar: { logoPath: GALLERY_LOGO, features: [{ ...this.avatarFeature, username: of('Maria Souza') }] } },
96
+ },
97
+ {
98
+ label: 'nome longo (cortado com reticências)',
99
+ config: {
100
+ topbar: {
101
+ logoPath: GALLERY_LOGO,
102
+ features: [{ ...this.avatarFeature, profileMessage: 'Olá, ', username: 'Maria Aparecida de Souza Albuquerque Cavalcanti' }],
103
+ },
104
+ },
105
+ },
106
+ {
107
+ label: 'completo: menuItems, modo escuro e perfil com nome',
108
+ config: { ...this.complete, topbar: { ...this.complete.topbar, features: [{ ...this.avatarFeature, profileMessage: 'Olá, ', username: 'Maria Souza' }] } },
109
+ },
110
+ ];
111
+ notifications = {
112
+ topbar: { showMenuToggle: true, logoPath: GALLERY_LOGO, showNotifications: true, features: [this.avatarFeature] },
113
+ };
71
114
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutTopbarGalleryEntryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
72
115
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: LayoutTopbarGalleryEntryComponent, isStandalone: true, selector: "smz-gallery-layout-topbar-entry", host: { classAttribute: "flex flex-col gap-8" }, ngImport: i0, template: `
116
+ @switch (scene()) {
117
+ @case ('slots') {
118
+ <ng-template #extras>
119
+ <span class="text-ui-md leading-5 text-ui-fg-muted">Unidade</span>
120
+ <span class="rounded-pill border border-ui-line px-3 py-1 text-ui-xs leading-4 text-ui-fg">Matriz · Rio de Janeiro</span>
121
+ </ng-template>
122
+ <ng-template #landscape>
123
+ <span class="rounded-pill border border-ui-line px-3 py-1 text-ui-xs leading-4 text-ui-fg">Paisagem: unidade Matriz · Rio de Janeiro</span>
124
+ </ng-template>
125
+ <ng-template #portrait>
126
+ <span class="rounded-pill border border-ui-line px-3 py-1 text-ui-xs leading-4 text-ui-fg">Retrato: Matriz</span>
127
+ </ng-template>
128
+
129
+ <smz-gallery-section label="Conteúdo extra por template" [columns]="1">
130
+ <smz-gallery-case label="headerExtras (o mesmo template nas duas orientações)">
131
+ <smz-gallery-layout-stage piece="topbar" height="4rem" [config]="slotsBrand" [inputs]="{ headerExtras: extras }" />
132
+ </smz-gallery-case>
133
+ <smz-gallery-case label="headerExtras ao lado de menuItems, modo escuro e perfil">
134
+ <smz-gallery-layout-stage piece="topbar" height="4rem" [config]="complete" [inputs]="{ headerExtras: extras }" />
135
+ </smz-gallery-case>
136
+ <smz-gallery-case label="headerExtrasLandscape e headerExtrasPortrait (a tela da galeria está em paisagem)">
137
+ <smz-gallery-layout-stage piece="topbar" height="4rem" [config]="slotsBrand" [inputs]="{ headerExtrasLandscape: landscape, headerExtrasPortrait: portrait }" />
138
+ </smz-gallery-case>
139
+ <smz-gallery-case label="headerExtrasLandscape tem precedência sobre headerExtras">
140
+ <smz-gallery-layout-stage piece="topbar" height="4rem" [config]="slotsBrand" [inputs]="{ headerExtras: extras, headerExtrasLandscape: landscape }" />
141
+ </smz-gallery-case>
142
+ </smz-gallery-section>
143
+ }
144
+ @case ('profile') {
145
+ <smz-gallery-section label="Perfil: mensagem e nome do usuário" [columns]="1">
146
+ @for (item of profile; track item.label) {
147
+ <smz-gallery-case [label]="item.label">
148
+ <smz-gallery-layout-stage piece="topbar" height="4rem" [config]="item.config" />
149
+ </smz-gallery-case>
150
+ }
151
+ <smz-gallery-case label="foco visível no texto do perfil" force="focus-visible" target=".layout-topbar-profile-text">
152
+ <smz-gallery-layout-stage piece="topbar" height="4rem" [config]="profile[0].config" />
153
+ </smz-gallery-case>
154
+ </smz-gallery-section>
155
+ }
156
+ @case ('notifications') {
157
+ <smz-gallery-section label="Notificações na topbar" [columns]="1">
158
+ <smz-gallery-case label="showNotifications · sino do core antes do perfil">
159
+ @if (notificationsAvailable) {
160
+ <smz-gallery-layout-stage piece="topbar" height="4rem" [config]="notifications" />
161
+ } @else {
162
+ <span class="text-ui-md leading-5 text-ui-fg-muted">Este app não configura as notificações do core; a topbar não cria o sino.</span>
163
+ }
164
+ </smz-gallery-case>
165
+ </smz-gallery-section>
166
+ }
167
+ @default {
73
168
  <smz-gallery-section label="Marca: alternador de menu, logotipo e nome" [columns]="1">
74
169
  @for (item of brand; track item.label) {
75
170
  <smz-gallery-case [label]="item.label">
@@ -108,7 +203,9 @@ class LayoutTopbarGalleryEntryComponent {
108
203
  <smz-gallery-layout-stage piece="topbar" height="4rem" [config]="complete" />
109
204
  </smz-gallery-case>
110
205
  </smz-gallery-section>
111
- `, 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 });
206
+ }
207
+ }
208
+ `, 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 });
112
209
  }
113
210
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutTopbarGalleryEntryComponent, decorators: [{
114
211
  type: Component,
@@ -118,6 +215,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
118
215
  imports: [SmzGalleryCaseComponent, SmzGallerySectionComponent, SmzLayoutGalleryStageComponent],
119
216
  host: { class: 'flex flex-col gap-8' },
120
217
  template: `
218
+ @switch (scene()) {
219
+ @case ('slots') {
220
+ <ng-template #extras>
221
+ <span class="text-ui-md leading-5 text-ui-fg-muted">Unidade</span>
222
+ <span class="rounded-pill border border-ui-line px-3 py-1 text-ui-xs leading-4 text-ui-fg">Matriz · Rio de Janeiro</span>
223
+ </ng-template>
224
+ <ng-template #landscape>
225
+ <span class="rounded-pill border border-ui-line px-3 py-1 text-ui-xs leading-4 text-ui-fg">Paisagem: unidade Matriz · Rio de Janeiro</span>
226
+ </ng-template>
227
+ <ng-template #portrait>
228
+ <span class="rounded-pill border border-ui-line px-3 py-1 text-ui-xs leading-4 text-ui-fg">Retrato: Matriz</span>
229
+ </ng-template>
230
+
231
+ <smz-gallery-section label="Conteúdo extra por template" [columns]="1">
232
+ <smz-gallery-case label="headerExtras (o mesmo template nas duas orientações)">
233
+ <smz-gallery-layout-stage piece="topbar" height="4rem" [config]="slotsBrand" [inputs]="{ headerExtras: extras }" />
234
+ </smz-gallery-case>
235
+ <smz-gallery-case label="headerExtras ao lado de menuItems, modo escuro e perfil">
236
+ <smz-gallery-layout-stage piece="topbar" height="4rem" [config]="complete" [inputs]="{ headerExtras: extras }" />
237
+ </smz-gallery-case>
238
+ <smz-gallery-case label="headerExtrasLandscape e headerExtrasPortrait (a tela da galeria está em paisagem)">
239
+ <smz-gallery-layout-stage piece="topbar" height="4rem" [config]="slotsBrand" [inputs]="{ headerExtrasLandscape: landscape, headerExtrasPortrait: portrait }" />
240
+ </smz-gallery-case>
241
+ <smz-gallery-case label="headerExtrasLandscape tem precedência sobre headerExtras">
242
+ <smz-gallery-layout-stage piece="topbar" height="4rem" [config]="slotsBrand" [inputs]="{ headerExtras: extras, headerExtrasLandscape: landscape }" />
243
+ </smz-gallery-case>
244
+ </smz-gallery-section>
245
+ }
246
+ @case ('profile') {
247
+ <smz-gallery-section label="Perfil: mensagem e nome do usuário" [columns]="1">
248
+ @for (item of profile; track item.label) {
249
+ <smz-gallery-case [label]="item.label">
250
+ <smz-gallery-layout-stage piece="topbar" height="4rem" [config]="item.config" />
251
+ </smz-gallery-case>
252
+ }
253
+ <smz-gallery-case label="foco visível no texto do perfil" force="focus-visible" target=".layout-topbar-profile-text">
254
+ <smz-gallery-layout-stage piece="topbar" height="4rem" [config]="profile[0].config" />
255
+ </smz-gallery-case>
256
+ </smz-gallery-section>
257
+ }
258
+ @case ('notifications') {
259
+ <smz-gallery-section label="Notificações na topbar" [columns]="1">
260
+ <smz-gallery-case label="showNotifications · sino do core antes do perfil">
261
+ @if (notificationsAvailable) {
262
+ <smz-gallery-layout-stage piece="topbar" height="4rem" [config]="notifications" />
263
+ } @else {
264
+ <span class="text-ui-md leading-5 text-ui-fg-muted">Este app não configura as notificações do core; a topbar não cria o sino.</span>
265
+ }
266
+ </smz-gallery-case>
267
+ </smz-gallery-section>
268
+ }
269
+ @default {
121
270
  <smz-gallery-section label="Marca: alternador de menu, logotipo e nome" [columns]="1">
122
271
  @for (item of brand; track item.label) {
123
272
  <smz-gallery-case [label]="item.label">
@@ -156,9 +305,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
156
305
  <smz-gallery-layout-stage piece="topbar" height="4rem" [config]="complete" />
157
306
  </smz-gallery-case>
158
307
  </smz-gallery-section>
308
+ }
309
+ }
159
310
  `,
160
311
  }]
161
312
  }] });
162
313
 
163
314
  export { LayoutTopbarGalleryEntryComponent };
164
- //# sourceMappingURL=ngx-smz-layout-layout-topbar.entry-CfSpHt5E.mjs.map
315
+ //# sourceMappingURL=ngx-smz-layout-layout-topbar.entry-Bg3BEgJa.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-smz-layout-layout-topbar.entry-Bg3BEgJa.mjs","sources":["../../../projects/ngx-smz-ui-layout/src/lib/gallery/entries/layout-topbar.entry.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';\nimport { SMZ_GALLERY_SCENE, SmzGalleryCaseComponent, SmzGallerySectionComponent } from '@ngx-smz/core';\nimport { SmzUiMenuItem } from '@ngx-smz/ui-kit';\nimport { of } from 'rxjs';\nimport { Topbar } from '../../layout/component/app.topbar';\nimport { smzTopbarNotificationsAvailable } from '../../layout/component/app.topbar-notifications';\nimport { SmzLayoutGalleryStageComponent, SmzLayoutGalleryStageConfig } from '../layout-gallery-stage.component';\nimport { GALLERY_AVATAR, GALLERY_LOGO } from '../layout-gallery.fixtures';\n\ninterface TopbarCase {\n label: string;\n config: SmzLayoutGalleryStageConfig;\n}\n\nfunction noop(): void {}\n\n/**\n * Galeria: topbar isolada (`app-topbar`), um caso por combinação do contrato `Topbar`. O título da página e\n * o botão voltar dependem de `PageTitleService` e `NavigationService`; o palco os fixa por `pageTitle` e\n * `canGoBack`. Os menus de perfil (popup) ficam fechados. `showConfigurator` fica na entrada\n * `layout-configurator`, que abre o painel.\n *\n * Cenas: `slots` (conteúdo extra por template: `headerExtras` e a variante por orientação; o palco entrega os\n * templates direto à topbar, como `<app-layout>` faz com os que recebe por projeção), `profile` (mensagem e nome do\n * usuário ao lado do perfil, por texto fixo, `Signal` e `Observable`) e `notifications` (sino do core; depende da\n * configuração de notificações e do estado `ui.notifications` do app hospedeiro, que a galeria não fornece: sem a\n * configuração, a cena mostra um aviso no lugar da topbar).\n */\n@Component({\n selector: 'smz-gallery-layout-topbar-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 ('slots') {\n <ng-template #extras>\n <span class=\"text-ui-md leading-5 text-ui-fg-muted\">Unidade</span>\n <span class=\"rounded-pill border border-ui-line px-3 py-1 text-ui-xs leading-4 text-ui-fg\">Matriz · Rio de Janeiro</span>\n </ng-template>\n <ng-template #landscape>\n <span class=\"rounded-pill border border-ui-line px-3 py-1 text-ui-xs leading-4 text-ui-fg\">Paisagem: unidade Matriz · Rio de Janeiro</span>\n </ng-template>\n <ng-template #portrait>\n <span class=\"rounded-pill border border-ui-line px-3 py-1 text-ui-xs leading-4 text-ui-fg\">Retrato: Matriz</span>\n </ng-template>\n\n <smz-gallery-section label=\"Conteúdo extra por template\" [columns]=\"1\">\n <smz-gallery-case label=\"headerExtras (o mesmo template nas duas orientações)\">\n <smz-gallery-layout-stage piece=\"topbar\" height=\"4rem\" [config]=\"slotsBrand\" [inputs]=\"{ headerExtras: extras }\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"headerExtras ao lado de menuItems, modo escuro e perfil\">\n <smz-gallery-layout-stage piece=\"topbar\" height=\"4rem\" [config]=\"complete\" [inputs]=\"{ headerExtras: extras }\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"headerExtrasLandscape e headerExtrasPortrait (a tela da galeria está em paisagem)\">\n <smz-gallery-layout-stage piece=\"topbar\" height=\"4rem\" [config]=\"slotsBrand\" [inputs]=\"{ headerExtrasLandscape: landscape, headerExtrasPortrait: portrait }\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"headerExtrasLandscape tem precedência sobre headerExtras\">\n <smz-gallery-layout-stage piece=\"topbar\" height=\"4rem\" [config]=\"slotsBrand\" [inputs]=\"{ headerExtras: extras, headerExtrasLandscape: landscape }\" />\n </smz-gallery-case>\n </smz-gallery-section>\n }\n @case ('profile') {\n <smz-gallery-section label=\"Perfil: mensagem e nome do usuário\" [columns]=\"1\">\n @for (item of profile; track item.label) {\n <smz-gallery-case [label]=\"item.label\">\n <smz-gallery-layout-stage piece=\"topbar\" height=\"4rem\" [config]=\"item.config\" />\n </smz-gallery-case>\n }\n <smz-gallery-case label=\"foco visível no texto do perfil\" force=\"focus-visible\" target=\".layout-topbar-profile-text\">\n <smz-gallery-layout-stage piece=\"topbar\" height=\"4rem\" [config]=\"profile[0].config\" />\n </smz-gallery-case>\n </smz-gallery-section>\n }\n @case ('notifications') {\n <smz-gallery-section label=\"Notificações na topbar\" [columns]=\"1\">\n <smz-gallery-case label=\"showNotifications · sino do core antes do perfil\">\n @if (notificationsAvailable) {\n <smz-gallery-layout-stage piece=\"topbar\" height=\"4rem\" [config]=\"notifications\" />\n } @else {\n <span class=\"text-ui-md leading-5 text-ui-fg-muted\">Este app não configura as notificações do core; a topbar não cria o sino.</span>\n }\n </smz-gallery-case>\n </smz-gallery-section>\n }\n @default {\n <smz-gallery-section label=\"Marca: alternador de menu, logotipo e nome\" [columns]=\"1\">\n @for (item of brand; track item.label) {\n <smz-gallery-case [label]=\"item.label\">\n <smz-gallery-layout-stage piece=\"topbar\" height=\"4rem\" [config]=\"item.config\" />\n </smz-gallery-case>\n }\n </smz-gallery-section>\n\n <smz-gallery-section label=\"Navegação: voltar e título da página\" [columns]=\"1\">\n @for (item of navigation; track item.label) {\n <smz-gallery-case [label]=\"item.label\">\n <smz-gallery-layout-stage piece=\"topbar\" height=\"4rem\" [config]=\"item.config\" />\n </smz-gallery-case>\n }\n </smz-gallery-section>\n\n <smz-gallery-section label=\"Ações à direita\" [columns]=\"1\">\n @for (item of actions; track item.label) {\n <smz-gallery-case [label]=\"item.label\">\n <smz-gallery-layout-stage piece=\"topbar\" height=\"4rem\" [config]=\"item.config\" />\n </smz-gallery-case>\n }\n </smz-gallery-section>\n\n <smz-gallery-section label=\"Estados de uma ação\" [columns]=\"1\">\n <smz-gallery-case label=\"hover no alternador de menu\" force=\"hover\" target=\".layout-menu-button\">\n <smz-gallery-layout-stage piece=\"topbar\" height=\"4rem\" [config]=\"complete\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"foco visível no alternador de menu\" force=\"focus-visible\" target=\".layout-menu-button\">\n <smz-gallery-layout-stage piece=\"topbar\" height=\"4rem\" [config]=\"complete\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"hover em ação de menuItems\" force=\"hover\" target=\".layout-topbar-menu-content .layout-topbar-action\">\n <smz-gallery-layout-stage piece=\"topbar\" height=\"4rem\" [config]=\"complete\" />\n </smz-gallery-case>\n <smz-gallery-case label=\"foco visível no logotipo\" force=\"focus-visible\" target=\".layout-topbar-logo\">\n <smz-gallery-layout-stage piece=\"topbar\" height=\"4rem\" [config]=\"complete\" />\n </smz-gallery-case>\n </smz-gallery-section>\n }\n }\n `,\n})\nexport class LayoutTopbarGalleryEntryComponent {\n protected readonly scene = inject(SMZ_GALLERY_SCENE);\n protected readonly notificationsAvailable = smzTopbarNotificationsAvailable();\n\n private readonly profileItems: SmzUiMenuItem[] = [\n { label: 'Meu perfil', icon: 'fa-solid fa-user' },\n { label: 'Sair', icon: 'fa-solid fa-right-from-bracket' },\n ];\n\n private readonly menuItems: Topbar['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 { icon: 'fa-solid fa-gear', label: 'Preferências', tooltip: 'Preferências', callback: noop },\n ];\n\n private readonly iconFeature: NonNullable<Topbar['features']>[number] = {\n icon: signal('fa-solid fa-user'),\n label: 'Maria Souza',\n tooltip: 'Maria Souza',\n menuItems: this.profileItems,\n };\n\n private readonly avatarFeature: NonNullable<Topbar['features']>[number] = {\n avatar: signal(GALLERY_AVATAR),\n placeholder: GALLERY_AVATAR,\n label: 'Maria Souza',\n tooltip: 'Maria Souza',\n menuItems: this.profileItems,\n };\n\n protected readonly brand: TopbarCase[] = [\n { label: 'alternador de menu, logotipo e nome do app', config: { topbar: { showMenuToggle: true, logoPath: GALLERY_LOGO, appName: 'Gestão Comercial' } } },\n { label: 'logotipo e nome do app, sem alternador', config: { topbar: { showMenuToggle: false, logoPath: GALLERY_LOGO, appName: 'Gestão Comercial' } } },\n { label: 'só logotipo', config: { topbar: { logoPath: GALLERY_LOGO } } },\n { label: 'só nome do app', config: { topbar: { appName: 'Gestão Comercial' } } },\n { label: 'alternador de menu sem marca', config: { topbar: { showMenuToggle: true } } },\n ];\n\n protected readonly navigation: TopbarCase[] = [\n { label: 'título da página', config: { topbar: { showMenuToggle: true, logoPath: GALLERY_LOGO }, pageTitle: 'Clientes' } },\n { label: 'showBackButton com histórico e título', config: { topbar: { showMenuToggle: true, logoPath: GALLERY_LOGO, showBackButton: true }, pageTitle: 'Clientes', canGoBack: true } },\n { label: 'showBackButton sem histórico (só o separador)', config: { topbar: { showMenuToggle: true, logoPath: GALLERY_LOGO, showBackButton: true } } },\n { label: 'showBackButton com histórico, sem título', config: { topbar: { showMenuToggle: true, logoPath: GALLERY_LOGO, showBackButton: true }, canGoBack: true } },\n ];\n\n protected readonly actions: TopbarCase[] = [\n { label: 'menuItems (ícone; rótulo só no menu móvel)', config: { topbar: { logoPath: GALLERY_LOGO, menuItems: this.menuItems } } },\n { label: 'showDarkModeToggle', config: { topbar: { logoPath: GALLERY_LOGO, showDarkModeToggle: true } } },\n { label: 'perfil com ícone', config: { topbar: { logoPath: GALLERY_LOGO, features: [this.iconFeature] } } },\n { label: 'perfil com avatar', config: { topbar: { logoPath: GALLERY_LOGO, features: [this.avatarFeature] } } },\n { label: 'dois recursos de perfil (avatar e ícone)', config: { topbar: { logoPath: GALLERY_LOGO, features: [this.avatarFeature, this.iconFeature] } } },\n { label: 'showProfileMenu false (perfil configurado, oculto)', config: { topbar: { logoPath: GALLERY_LOGO, showProfileMenu: false, features: [this.avatarFeature] } } },\n ];\n\n protected readonly complete: SmzLayoutGalleryStageConfig = {\n topbar: {\n showMenuToggle: true,\n showBackButton: true,\n showDarkModeToggle: true,\n showProfileMenu: true,\n logoPath: GALLERY_LOGO,\n appName: 'Gestão Comercial',\n menuItems: this.menuItems,\n features: [this.avatarFeature],\n },\n pageTitle: 'Clientes',\n canGoBack: true,\n };\n\n protected readonly slotsBrand: SmzLayoutGalleryStageConfig = {\n topbar: { showMenuToggle: true, logoPath: GALLERY_LOGO, appName: 'Gestão Comercial' },\n };\n\n protected readonly profile: TopbarCase[] = [\n {\n label: 'profileMessage e username (texto fixo) com ícone',\n config: { topbar: { logoPath: GALLERY_LOGO, features: [{ ...this.iconFeature, profileMessage: 'Olá, ', username: 'Maria Souza' }] } },\n },\n {\n label: 'profileMessage e username (Signal) com avatar',\n config: { topbar: { logoPath: GALLERY_LOGO, features: [{ ...this.avatarFeature, profileMessage: signal('Bem-vinda, '), username: signal('Maria Souza') }] } },\n },\n {\n label: 'só username (Observable), sem mensagem',\n config: { topbar: { logoPath: GALLERY_LOGO, features: [{ ...this.avatarFeature, username: of('Maria Souza') }] } },\n },\n {\n label: 'nome longo (cortado com reticências)',\n config: {\n topbar: {\n logoPath: GALLERY_LOGO,\n features: [{ ...this.avatarFeature, profileMessage: 'Olá, ', username: 'Maria Aparecida de Souza Albuquerque Cavalcanti' }],\n },\n },\n },\n {\n label: 'completo: menuItems, modo escuro e perfil com nome',\n config: { ...this.complete, topbar: { ...this.complete.topbar, features: [{ ...this.avatarFeature, profileMessage: 'Olá, ', username: 'Maria Souza' }] } },\n },\n ];\n\n protected readonly notifications: SmzLayoutGalleryStageConfig = {\n topbar: { showMenuToggle: true, logoPath: GALLERY_LOGO, showNotifications: true, features: [this.avatarFeature] },\n };\n}\n"],"names":[],"mappings":";;;;;;;AAcA,SAAS,IAAI,KAAU;AAEvB;;;;;;;;;;;AAWG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