@ngx-smz/layout 21.1.21 → 21.9.0-next.1

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.
@@ -1,31 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
- import { signal, computed, Injectable, InjectionToken, provideAppInitializer, inject, makeEnvironmentProviders, effect, PLATFORM_ID, Component, EventEmitter, Output, Input, Directive, HostBinding, ViewChild } from '@angular/core';
2
+ import { signal, computed, Injectable, InjectionToken, provideAppInitializer, inject, makeEnvironmentProviders, effect, Component, EventEmitter, Output, Input, Directive, HostBinding, ViewChild } from '@angular/core';
3
3
  import * as i3 from '@angular/common';
4
4
  import { CommonModule, Location } from '@angular/common';
5
5
  import * as i1 from '@angular/router';
6
6
  import { Router, NavigationEnd, RouterModule } from '@angular/router';
7
7
  import { Subject, filter as filter$1 } from 'rxjs';
8
- import * as i3$2 from 'primeng/styleclass';
9
- import { StyleClassModule } from 'primeng/styleclass';
10
8
  import * as i2 from '@angular/forms';
11
9
  import { FormsModule } from '@angular/forms';
12
- import { updatePreset, updateSurfacePalette, $t } from '@primeuix/themes';
13
- import Aura from '@primeuix/themes/aura';
14
- import Lara from '@primeuix/themes/lara';
15
- import Nora from '@primeuix/themes/nora';
16
- import { PrimeNG } from 'primeng/config';
17
- import * as i3$1 from 'primeng/selectbutton';
18
- import { SelectButtonModule } from 'primeng/selectbutton';
10
+ import { SmzThemeService, SmzSelectButtonComponent, SmzStyleClassDirective, SmzTooltipDirective, SmzMenuListComponent, SmzButtonComponent, SmzRippleDirective } from '@ngx-smz/ui-kit';
19
11
  import { takeWhile, filter } from 'rxjs/operators';
20
- import * as i4 from 'primeng/tooltip';
21
- import { TooltipModule } from 'primeng/tooltip';
22
- import * as i5 from 'primeng/menu';
23
- import { MenuModule } from 'primeng/menu';
24
- import * as i1$1 from 'primeng/button';
25
- import { ButtonModule } from 'primeng/button';
26
12
  import { trigger, state, style, transition, animate } from '@angular/animations';
27
- import * as i4$1 from 'primeng/ripple';
28
- import { RippleModule } from 'primeng/ripple';
29
13
 
30
14
  /**
31
15
  * Clones the menu tree and sets `visible: false` where the host denies access via `hasClaim`.
@@ -62,32 +46,32 @@ class SmzUILayout {
62
46
  /**
63
47
  * Writable menu graph from the host (`SMZ_UI_LAYOUT_CONFIG.sidebar`). Mutations here trigger {@link sidebar}.
64
48
  */
65
- sidebarWritable = signal([], ...(ngDevMode ? [{ debugName: "sidebarWritable" }] : /* istanbul ignore next */ []));
49
+ sidebarWritable = signal([], ...(ngDevMode ? [{ debugName: "sidebarWritable" }] : []));
66
50
  /**
67
51
  * Menu prepared for shells such as Hephaestus: entries denied by {@link SmzUILayoutConfigType.hasClaim}
68
52
  * use `visible: false` so templates only need visibility rules.
69
53
  */
70
- sidebar = computed(() => cloneMenuItemsWithClaimVisibility(this.sidebarWritable(), this.layoutFeature?.hasClaim), ...(ngDevMode ? [{ debugName: "sidebar" }] : /* istanbul ignore next */ []));
54
+ sidebar = computed(() => cloneMenuItemsWithClaimVisibility(this.sidebarWritable(), this.layoutFeature?.hasClaim), ...(ngDevMode ? [{ debugName: "sidebar" }] : []));
71
55
  layoutFeature = null;
72
- footer = signal({}, ...(ngDevMode ? [{ debugName: "footer" }] : /* istanbul ignore next */ []));
56
+ footer = signal({}, ...(ngDevMode ? [{ debugName: "footer" }] : []));
73
57
  topbar = signal({
74
58
  showMenuToggle: true,
75
59
  showBackButton: true,
76
- }, ...(ngDevMode ? [{ debugName: "topbar" }] : /* istanbul ignore next */ []));
60
+ }, ...(ngDevMode ? [{ debugName: "topbar" }] : []));
77
61
  layout = signal({
78
62
  preset: 'Aura',
79
63
  primary: 'orange',
80
64
  surface: null,
81
65
  darkTheme: false,
82
66
  menuMode: 'static'
83
- }, ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
67
+ }, ...(ngDevMode ? [{ debugName: "layout" }] : []));
84
68
  state = signal({
85
69
  staticMenuDesktopInactive: false,
86
70
  overlayMenuActive: false,
87
71
  configSidebarVisible: false,
88
72
  staticMenuMobileActive: false,
89
73
  menuHoverActive: false
90
- }, ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
74
+ }, ...(ngDevMode ? [{ debugName: "state" }] : []));
91
75
  setConfig(config) {
92
76
  const { sidebar, footer, topbar } = config || {};
93
77
  this.layoutFeature = config ?? null;
@@ -101,10 +85,10 @@ class SmzUILayout {
101
85
  this.topbar = topbar;
102
86
  }
103
87
  }
104
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzUILayout, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
105
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzUILayout, providedIn: 'root' });
88
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzUILayout, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
89
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzUILayout, providedIn: 'root' });
106
90
  }
107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzUILayout, decorators: [{
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzUILayout, decorators: [{
108
92
  type: Injectable,
109
93
  args: [{ providedIn: 'root' }]
110
94
  }] });
@@ -273,13 +257,13 @@ class LayoutService {
273
257
  resetSource$ = this.resetSource.asObservable();
274
258
  configUpdate$ = this.configUpdate.asObservable();
275
259
  overlayOpen$ = this.overlayOpen.asObservable();
276
- theme = computed(() => (this.layoutConfig()?.darkTheme ? 'light' : 'dark'), ...(ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ []));
277
- isSidebarActive = computed(() => this.layoutState().overlayMenuActive || this.layoutState().staticMenuMobileActive, ...(ngDevMode ? [{ debugName: "isSidebarActive" }] : /* istanbul ignore next */ []));
278
- isDarkTheme = computed(() => this.layoutConfig().darkTheme, ...(ngDevMode ? [{ debugName: "isDarkTheme" }] : /* istanbul ignore next */ []));
279
- getPrimary = computed(() => this.layoutConfig().primary, ...(ngDevMode ? [{ debugName: "getPrimary" }] : /* istanbul ignore next */ []));
280
- getSurface = computed(() => this.layoutConfig().surface, ...(ngDevMode ? [{ debugName: "getSurface" }] : /* istanbul ignore next */ []));
281
- isOverlay = computed(() => this.layoutConfig().menuMode === 'overlay', ...(ngDevMode ? [{ debugName: "isOverlay" }] : /* istanbul ignore next */ []));
282
- transitionComplete = signal(false, ...(ngDevMode ? [{ debugName: "transitionComplete" }] : /* istanbul ignore next */ []));
260
+ theme = computed(() => (this.layoutConfig()?.darkTheme ? 'light' : 'dark'), ...(ngDevMode ? [{ debugName: "theme" }] : []));
261
+ isSidebarActive = computed(() => this.layoutState().overlayMenuActive || this.layoutState().staticMenuMobileActive, ...(ngDevMode ? [{ debugName: "isSidebarActive" }] : []));
262
+ isDarkTheme = computed(() => this.layoutConfig().darkTheme, ...(ngDevMode ? [{ debugName: "isDarkTheme" }] : []));
263
+ getPrimary = computed(() => this.layoutConfig().primary, ...(ngDevMode ? [{ debugName: "getPrimary" }] : []));
264
+ getSurface = computed(() => this.layoutConfig().surface, ...(ngDevMode ? [{ debugName: "getSurface" }] : []));
265
+ isOverlay = computed(() => this.layoutConfig().menuMode === 'overlay', ...(ngDevMode ? [{ debugName: "isOverlay" }] : []));
266
+ transitionComplete = signal(false, ...(ngDevMode ? [{ debugName: "transitionComplete" }] : []));
283
267
  initialized = false;
284
268
  constructor() {
285
269
  effect(() => {
@@ -363,38 +347,53 @@ class LayoutService {
363
347
  reset() {
364
348
  this.resetSource.next(true);
365
349
  }
366
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
367
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutService, providedIn: 'root' });
350
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: LayoutService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
351
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: LayoutService, providedIn: 'root' });
368
352
  }
369
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutService, decorators: [{
353
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: LayoutService, decorators: [{
370
354
  type: Injectable,
371
355
  args: [{
372
356
  providedIn: 'root'
373
357
  }]
374
358
  }], ctorParameters: () => [] });
375
359
 
376
- const presets = {
377
- Aura,
378
- Lara,
379
- Nora
360
+ /* Paletas do Tailwind usadas pelo seletor de cor primaria do configurador. */
361
+ const PRIMARY_PALETTES = {
362
+ emerald: { 50: '#ecfdf5', 100: '#d1fae5', 200: '#a7f3d0', 300: '#6ee7b7', 400: '#34d399', 500: '#10b981', 600: '#059669', 700: '#047857', 800: '#065f46', 900: '#064e3b', 950: '#022c22' },
363
+ green: { 50: '#f0fdf4', 100: '#dcfce7', 200: '#bbf7d0', 300: '#86efac', 400: '#4ade80', 500: '#22c55e', 600: '#16a34a', 700: '#15803d', 800: '#166534', 900: '#14532d', 950: '#052e16' },
364
+ lime: { 50: '#f7fee7', 100: '#ecfccb', 200: '#d9f99d', 300: '#bef264', 400: '#a3e635', 500: '#84cc16', 600: '#65a30d', 700: '#4d7c0f', 800: '#3f6212', 900: '#365314', 950: '#1a2e05' },
365
+ orange: { 50: '#fff7ed', 100: '#ffedd5', 200: '#fed7aa', 300: '#fdba74', 400: '#fb923c', 500: '#f97316', 600: '#ea580c', 700: '#c2410c', 800: '#9a3412', 900: '#7c2d12', 950: '#431407' },
366
+ amber: { 50: '#fffbeb', 100: '#fef3c7', 200: '#fde68a', 300: '#fcd34d', 400: '#fbbf24', 500: '#f59e0b', 600: '#d97706', 700: '#b45309', 800: '#92400e', 900: '#78350f', 950: '#451a03' },
367
+ yellow: { 50: '#fefce8', 100: '#fef9c3', 200: '#fef08a', 300: '#fde047', 400: '#facc15', 500: '#eab308', 600: '#ca8a04', 700: '#a16207', 800: '#854d0e', 900: '#713f12', 950: '#422006' },
368
+ teal: { 50: '#f0fdfa', 100: '#ccfbf1', 200: '#99f6e4', 300: '#5eead4', 400: '#2dd4bf', 500: '#14b8a6', 600: '#0d9488', 700: '#0f766e', 800: '#115e59', 900: '#134e4a', 950: '#042f2e' },
369
+ cyan: { 50: '#ecfeff', 100: '#cffafe', 200: '#a5f3fc', 300: '#67e8f9', 400: '#22d3ee', 500: '#06b6d4', 600: '#0891b2', 700: '#0e7490', 800: '#155e75', 900: '#164e63', 950: '#083344' },
370
+ sky: { 50: '#f0f9ff', 100: '#e0f2fe', 200: '#bae6fd', 300: '#7dd3fc', 400: '#38bdf8', 500: '#0ea5e9', 600: '#0284c7', 700: '#0369a1', 800: '#075985', 900: '#0c4a6e', 950: '#082f49' },
371
+ blue: { 50: '#eff6ff', 100: '#dbeafe', 200: '#bfdbfe', 300: '#93c5fd', 400: '#60a5fa', 500: '#3b82f6', 600: '#2563eb', 700: '#1d4ed8', 800: '#1e40af', 900: '#1e3a8a', 950: '#172554' },
372
+ indigo: { 50: '#eef2ff', 100: '#e0e7ff', 200: '#c7d2fe', 300: '#a5b4fc', 400: '#818cf8', 500: '#6366f1', 600: '#4f46e5', 700: '#4338ca', 800: '#3730a3', 900: '#312e81', 950: '#1e1b4b' },
373
+ violet: { 50: '#f5f3ff', 100: '#ede9fe', 200: '#ddd6fe', 300: '#c4b5fd', 400: '#a78bfa', 500: '#8b5cf6', 600: '#7c3aed', 700: '#6d28d9', 800: '#5b21b6', 900: '#4c1d95', 950: '#2e1065' },
374
+ purple: { 50: '#faf5ff', 100: '#f3e8ff', 200: '#e9d5ff', 300: '#d8b4fe', 400: '#c084fc', 500: '#a855f7', 600: '#9333ea', 700: '#7e22ce', 800: '#6b21a8', 900: '#581c87', 950: '#3b0764' },
375
+ fuchsia: { 50: '#fdf4ff', 100: '#fae8ff', 200: '#f5d0fe', 300: '#f0abfc', 400: '#e879f9', 500: '#d946ef', 600: '#c026d3', 700: '#a21caf', 800: '#86198f', 900: '#701a75', 950: '#4a044e' },
376
+ pink: { 50: '#fdf2f8', 100: '#fce7f3', 200: '#fbcfe8', 300: '#f9a8d4', 400: '#f472b6', 500: '#ec4899', 600: '#db2777', 700: '#be185d', 800: '#9d174d', 900: '#831843', 950: '#500724' },
377
+ rose: { 50: '#fff1f2', 100: '#ffe4e6', 200: '#fecdd3', 300: '#fda4af', 400: '#fb7185', 500: '#f43f5e', 600: '#e11d48', 700: '#be123c', 800: '#9f1239', 900: '#881337', 950: '#4c0519' },
380
378
  };
379
+
381
380
  class AppConfigurator {
382
381
  router = inject(Router);
383
- config = inject(PrimeNG);
384
382
  layoutService = inject(LayoutService);
385
- platformId = inject(PLATFORM_ID);
386
- primeNG = inject(PrimeNG);
387
- presets = Object.keys(presets);
388
- showMenuModeButton = signal(!this.router.url.includes('auth'), ...(ngDevMode ? [{ debugName: "showMenuModeButton" }] : /* istanbul ignore next */ []));
383
+ theme = inject(SmzThemeService);
384
+ showMenuModeButton = signal(!this.router.url.includes('auth'), ...(ngDevMode ? [{ debugName: "showMenuModeButton" }] : []));
389
385
  menuModeOptions = [
390
386
  { label: 'Static', value: 'static' },
391
387
  { label: 'Overlay', value: 'overlay' }
392
388
  ];
393
- ngOnInit() {
394
- // console.log(this.primeNG.theme());
395
- // if (isPlatformBrowser(this.platformId)) {
396
- // this.onPresetChange(this.layoutService.layoutConfig().preset);
397
- // }
389
+ constructor() {
390
+ // Reaplica cor primaria e superficie quando o modo claro/escuro muda (as sobrescritas inline vencem o CSS do tema).
391
+ effect(() => {
392
+ this.layoutService.layoutConfig().darkTheme;
393
+ this.layoutService.layoutConfig().primary;
394
+ this.layoutService.layoutConfig().surface;
395
+ queueMicrotask(() => this.applyCurrent());
396
+ });
398
397
  }
399
398
  surfaces = [
400
399
  {
@@ -536,151 +535,14 @@ class AppConfigurator {
536
535
  ];
537
536
  selectedPrimaryColor = computed(() => {
538
537
  return this.layoutService.layoutConfig().primary;
539
- }, ...(ngDevMode ? [{ debugName: "selectedPrimaryColor" }] : /* istanbul ignore next */ []));
540
- selectedSurfaceColor = computed(() => this.layoutService.layoutConfig().surface, ...(ngDevMode ? [{ debugName: "selectedSurfaceColor" }] : /* istanbul ignore next */ []));
541
- selectedPreset = computed(() => this.layoutService.layoutConfig().preset, ...(ngDevMode ? [{ debugName: "selectedPreset" }] : /* istanbul ignore next */ []));
542
- menuMode = computed(() => this.layoutService.layoutConfig().menuMode, ...(ngDevMode ? [{ debugName: "menuMode" }] : /* istanbul ignore next */ []));
538
+ }, ...(ngDevMode ? [{ debugName: "selectedPrimaryColor" }] : []));
539
+ selectedSurfaceColor = computed(() => this.layoutService.layoutConfig().surface, ...(ngDevMode ? [{ debugName: "selectedSurfaceColor" }] : []));
540
+ menuMode = computed(() => this.layoutService.layoutConfig().menuMode, ...(ngDevMode ? [{ debugName: "menuMode" }] : []));
543
541
  primaryColors = computed(() => {
544
- const presetPalette = presets[this.layoutService.layoutConfig().preset].primitive;
545
- const colors = ['emerald', 'green', 'lime', 'orange', 'amber', 'yellow', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose'];
546
542
  const palettes = [{ name: 'noir', palette: {} }];
547
- colors.forEach((color) => {
548
- palettes.push({
549
- name: color,
550
- palette: presetPalette?.[color]
551
- });
552
- });
543
+ Object.entries(PRIMARY_PALETTES).forEach(([name, palette]) => palettes.push({ name, palette }));
553
544
  return palettes;
554
- }, ...(ngDevMode ? [{ debugName: "primaryColors" }] : /* istanbul ignore next */ []));
555
- getPresetExt() {
556
- const color = this.primaryColors().find((c) => c.name === this.selectedPrimaryColor()) || {};
557
- const preset = this.layoutService.layoutConfig().preset;
558
- if (color.name === 'noir') {
559
- return {
560
- semantic: {
561
- primary: {
562
- 50: '{surface.50}',
563
- 100: '{surface.100}',
564
- 200: '{surface.200}',
565
- 300: '{surface.300}',
566
- 400: '{surface.400}',
567
- 500: '{surface.500}',
568
- 600: '{surface.600}',
569
- 700: '{surface.700}',
570
- 800: '{surface.800}',
571
- 900: '{surface.900}',
572
- 950: '{surface.950}'
573
- },
574
- colorScheme: {
575
- light: {
576
- primary: {
577
- color: '{primary.950}',
578
- contrastColor: '#ffffff',
579
- hoverColor: '{primary.800}',
580
- activeColor: '{primary.700}'
581
- },
582
- highlight: {
583
- background: '{primary.950}',
584
- focusBackground: '{primary.700}',
585
- color: '#ffffff',
586
- focusColor: '#ffffff'
587
- }
588
- },
589
- dark: {
590
- primary: {
591
- color: '{primary.50}',
592
- contrastColor: '{primary.950}',
593
- hoverColor: '{primary.200}',
594
- activeColor: '{primary.300}'
595
- },
596
- highlight: {
597
- background: '{primary.50}',
598
- focusBackground: '{primary.300}',
599
- color: '{primary.950}',
600
- focusColor: '{primary.950}'
601
- }
602
- }
603
- }
604
- }
605
- };
606
- }
607
- else {
608
- if (preset === 'Nora') {
609
- return {
610
- semantic: {
611
- primary: color.palette,
612
- colorScheme: {
613
- light: {
614
- primary: {
615
- color: '{primary.600}',
616
- contrastColor: '#ffffff',
617
- hoverColor: '{primary.700}',
618
- activeColor: '{primary.800}'
619
- },
620
- highlight: {
621
- background: '{primary.600}',
622
- focusBackground: '{primary.700}',
623
- color: '#ffffff',
624
- focusColor: '#ffffff'
625
- }
626
- },
627
- dark: {
628
- primary: {
629
- color: '{primary.500}',
630
- contrastColor: '{surface.900}',
631
- hoverColor: '{primary.400}',
632
- activeColor: '{primary.300}'
633
- },
634
- highlight: {
635
- background: '{primary.500}',
636
- focusBackground: '{primary.400}',
637
- color: '{surface.900}',
638
- focusColor: '{surface.900}'
639
- }
640
- }
641
- }
642
- }
643
- };
644
- }
645
- else {
646
- return {
647
- semantic: {
648
- primary: color.palette,
649
- colorScheme: {
650
- light: {
651
- primary: {
652
- color: '{primary.500}',
653
- contrastColor: '#ffffff',
654
- hoverColor: '{primary.600}',
655
- activeColor: '{primary.700}'
656
- },
657
- highlight: {
658
- background: '{primary.50}',
659
- focusBackground: '{primary.100}',
660
- color: '{primary.700}',
661
- focusColor: '{primary.800}'
662
- }
663
- },
664
- dark: {
665
- primary: {
666
- color: '{primary.400}',
667
- contrastColor: '{surface.900}',
668
- hoverColor: '{primary.300}',
669
- activeColor: '{primary.200}'
670
- },
671
- highlight: {
672
- background: 'color-mix(in srgb, {primary.400}, transparent 84%)',
673
- focusBackground: 'color-mix(in srgb, {primary.400}, transparent 76%)',
674
- color: 'rgba(255,255,255,.87)',
675
- focusColor: 'rgba(255,255,255,.87)'
676
- }
677
- }
678
- }
679
- }
680
- };
681
- }
682
- }
683
- }
545
+ }, ...(ngDevMode ? [{ debugName: "primaryColors" }] : []));
684
546
  updateColors(event, type, color) {
685
547
  if (type === 'primary') {
686
548
  this.layoutService.layoutConfig.update((state) => ({ ...state, primary: color.name }));
@@ -688,135 +550,131 @@ class AppConfigurator {
688
550
  else if (type === 'surface') {
689
551
  this.layoutService.layoutConfig.update((state) => ({ ...state, surface: color.name }));
690
552
  }
691
- this.applyTheme(type, color);
692
553
  event.stopPropagation();
693
554
  }
694
- applyTheme(type, color) {
695
- if (type === 'primary') {
696
- updatePreset(this.getPresetExt());
697
- }
698
- else if (type === 'surface') {
699
- updateSurfacePalette(color.palette);
700
- }
701
- }
702
- onPresetChange(event) {
703
- this.layoutService.layoutConfig.update((state) => ({ ...state, preset: event }));
704
- const preset = presets[event];
705
- const surfacePalette = this.surfaces.find((s) => s.name === this.selectedSurfaceColor())?.palette;
706
- $t().preset(preset).preset(this.getPresetExt()).surfacePalette(surfacePalette).use({ useDefaultOptions: true });
707
- }
708
555
  onMenuModeChange(event) {
709
556
  this.layoutService.layoutConfig.update((prev) => ({ ...prev, menuMode: event }));
710
557
  }
711
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppConfigurator, deps: [], target: i0.ɵɵFactoryTarget.Component });
712
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: AppConfigurator, isStandalone: true, selector: "app-configurator", host: { classAttribute: "hidden absolute top-[3.25rem] right-0 w-72 p-4 bg-surface-0 dark:bg-surface-900 border border-surface rounded-border origin-top shadow-[0px_3px_5px_rgba(0,0,0,0.02),0px_0px_2px_rgba(0,0,0,0.05),0px_1px_4px_rgba(0,0,0,0.08)]" }, ngImport: i0, template: `
713
- <div class="flex flex-col gap-4">
714
- <div>
715
- <span class="text-sm text-muted-color font-semibold">Primary</span>
716
- <div class="pt-2 flex gap-2 flex-wrap justify-start">
717
- @for (primaryColor of primaryColors(); track primaryColor.name) {
718
- <button
719
- type="button"
720
- [title]="primaryColor.name"
721
- (click)="updateColors($event, 'primary', primaryColor)"
722
- [ngClass]="{ 'outline-primary': primaryColor.name === selectedPrimaryColor() }"
723
- class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
724
- [style]="{
725
- 'background-color': primaryColor?.name === 'noir' ? 'var(--text-color)' : primaryColor?.palette?.['500']
726
- }"
727
- ></button>
728
- }
729
- </div>
730
- </div>
731
- <div>
732
- <span class="text-sm text-muted-color font-semibold">Surface</span>
733
- <div class="pt-2 flex gap-2 flex-wrap justify-start">
734
- @for (surface of surfaces; track surface.name) {
735
- <button
736
- type="button"
737
- [title]="surface.name"
738
- (click)="updateColors($event, 'surface', surface)"
739
- [ngClass]="{ 'outline-primary': selectedSurfaceColor() ? selectedSurfaceColor() === surface.name : layoutService.layoutConfig().darkTheme ? surface.name === 'zinc' : surface.name === 'slate' }"
740
- class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
741
- [style]="{
742
- 'background-color': surface?.name === 'noir' ? 'var(--text-color)' : surface?.palette?.['500']
743
- }"
744
- ></button>
745
- }
746
- </div>
747
- </div>
748
- <div class="flex flex-col gap-2">
749
- <span class="text-sm text-muted-color font-semibold">Presets</span>
750
- <p-selectbutton [options]="presets" [ngModel]="selectedPreset()" (ngModelChange)="onPresetChange($event)" [allowEmpty]="false" size="small" />
751
- </div>
752
- @if (showMenuModeButton()) {
753
- <div class="flex flex-col gap-2">
754
- <span class="text-sm text-muted-color font-semibold">Menu Mode</span>
755
- <p-selectbutton [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" size="small" />
756
- </div>
757
- }
758
- </div>
759
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SelectButtonModule }, { kind: "component", type: i3$1.SelectButton, selector: "p-selectButton, p-selectbutton, p-select-button", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "unselectable", "tabindex", "multiple", "allowEmpty", "styleClass", "ariaLabelledBy", "dataKey", "autofocus", "size", "fluid"], outputs: ["onOptionClick", "onChange"] }] });
558
+ applyCurrent() {
559
+ const config = this.layoutService.layoutConfig();
560
+ const dark = !!config.darkTheme;
561
+ this.theme.reset();
562
+ const primary = this.primaryColors().find((c) => c.name === config.primary);
563
+ if (primary?.name === 'noir') {
564
+ this.theme.setPrimaryPalette(dark ? { 500: '#f8fafc', 400: '#f8fafc', 300: '#e2e8f0', 200: '#cbd5e1', 600: '#1e293b', 700: '#334155' } : { 500: '#0f172a', 600: '#1e293b', 700: '#334155' }, dark);
565
+ }
566
+ else if (primary?.palette && Object.keys(primary.palette).length) {
567
+ this.theme.setPrimaryPalette(primary.palette, dark);
568
+ }
569
+ const surface = this.surfaces.find((s) => s.name === config.surface)?.palette;
570
+ if (surface) {
571
+ const p = surface;
572
+ this.theme.setColors(dark
573
+ ? { 'surface-0': p[950], 'surface-1': p[900], 'surface-2': p[800], 'surface-3': p[700], fg: p[50], 'fg-muted': p[300], 'fg-subtle': p[400], line: p[700], 'line-strong': p[600] }
574
+ : { 'surface-0': p[50], 'surface-1': p[0], 'surface-2': p[0], 'surface-3': p[100], fg: p[900], 'fg-muted': p[600], 'fg-subtle': p[400], line: p[200], 'line-strong': p[300] });
575
+ }
576
+ }
577
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppConfigurator, deps: [], target: i0.ɵɵFactoryTarget.Component });
578
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AppConfigurator, isStandalone: true, selector: "app-configurator", host: { classAttribute: "hidden absolute top-[3.25rem] right-0 w-72 p-4 bg-surface-0 dark:bg-surface-900 border border-surface rounded-border origin-top shadow-[0px_3px_5px_rgba(0,0,0,0.02),0px_0px_2px_rgba(0,0,0,0.05),0px_1px_4px_rgba(0,0,0,0.08)]" }, ngImport: i0, template: `
579
+ <div class="flex flex-col gap-4">
580
+ <div>
581
+ <span class="text-sm text-muted-color font-semibold">Primary</span>
582
+ <div class="pt-2 flex gap-2 flex-wrap justify-start">
583
+ @for (primaryColor of primaryColors(); track primaryColor.name) {
584
+ <button
585
+ type="button"
586
+ [title]="primaryColor.name"
587
+ (click)="updateColors($event, 'primary', primaryColor)"
588
+ [ngClass]="{ 'outline-primary': primaryColor.name === selectedPrimaryColor() }"
589
+ class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
590
+ [style]="{
591
+ 'background-color': primaryColor?.name === 'noir' ? 'var(--text-color)' : primaryColor?.palette?.['500']
592
+ }"
593
+ ></button>
594
+ }
595
+ </div>
596
+ </div>
597
+ <div>
598
+ <span class="text-sm text-muted-color font-semibold">Surface</span>
599
+ <div class="pt-2 flex gap-2 flex-wrap justify-start">
600
+ @for (surface of surfaces; track surface.name) {
601
+ <button
602
+ type="button"
603
+ [title]="surface.name"
604
+ (click)="updateColors($event, 'surface', surface)"
605
+ [ngClass]="{ 'outline-primary': selectedSurfaceColor() ? selectedSurfaceColor() === surface.name : layoutService.layoutConfig().darkTheme ? surface.name === 'zinc' : surface.name === 'slate' }"
606
+ class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
607
+ [style]="{
608
+ 'background-color': surface?.name === 'noir' ? 'var(--text-color)' : surface?.palette?.['500']
609
+ }"
610
+ ></button>
611
+ }
612
+ </div>
613
+ </div>
614
+ @if (showMenuModeButton()) {
615
+ <div class="flex flex-col gap-2">
616
+ <span class="text-sm text-muted-color font-semibold">Menu Mode</span>
617
+ <ui-select-button [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" size="small"></ui-select-button>
618
+ </div>
619
+ }
620
+ </div>
621
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: SmzSelectButtonComponent, selector: "ui-select-button", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "dataKey", "multiple", "allowEmpty", "size", "styleClass", "appendTo"], outputs: ["changed"] }] });
760
622
  }
761
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppConfigurator, decorators: [{
623
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppConfigurator, decorators: [{
762
624
  type: Component,
763
625
  args: [{
764
626
  selector: 'app-configurator',
765
627
  standalone: true,
766
- imports: [CommonModule, FormsModule, SelectButtonModule],
767
- template: `
768
- <div class="flex flex-col gap-4">
769
- <div>
770
- <span class="text-sm text-muted-color font-semibold">Primary</span>
771
- <div class="pt-2 flex gap-2 flex-wrap justify-start">
772
- @for (primaryColor of primaryColors(); track primaryColor.name) {
773
- <button
774
- type="button"
775
- [title]="primaryColor.name"
776
- (click)="updateColors($event, 'primary', primaryColor)"
777
- [ngClass]="{ 'outline-primary': primaryColor.name === selectedPrimaryColor() }"
778
- class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
779
- [style]="{
780
- 'background-color': primaryColor?.name === 'noir' ? 'var(--text-color)' : primaryColor?.palette?.['500']
781
- }"
782
- ></button>
783
- }
784
- </div>
785
- </div>
786
- <div>
787
- <span class="text-sm text-muted-color font-semibold">Surface</span>
788
- <div class="pt-2 flex gap-2 flex-wrap justify-start">
789
- @for (surface of surfaces; track surface.name) {
790
- <button
791
- type="button"
792
- [title]="surface.name"
793
- (click)="updateColors($event, 'surface', surface)"
794
- [ngClass]="{ 'outline-primary': selectedSurfaceColor() ? selectedSurfaceColor() === surface.name : layoutService.layoutConfig().darkTheme ? surface.name === 'zinc' : surface.name === 'slate' }"
795
- class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
796
- [style]="{
797
- 'background-color': surface?.name === 'noir' ? 'var(--text-color)' : surface?.palette?.['500']
798
- }"
799
- ></button>
800
- }
801
- </div>
802
- </div>
803
- <div class="flex flex-col gap-2">
804
- <span class="text-sm text-muted-color font-semibold">Presets</span>
805
- <p-selectbutton [options]="presets" [ngModel]="selectedPreset()" (ngModelChange)="onPresetChange($event)" [allowEmpty]="false" size="small" />
806
- </div>
807
- @if (showMenuModeButton()) {
808
- <div class="flex flex-col gap-2">
809
- <span class="text-sm text-muted-color font-semibold">Menu Mode</span>
810
- <p-selectbutton [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" size="small" />
811
- </div>
812
- }
813
- </div>
628
+ imports: [CommonModule, FormsModule, SmzSelectButtonComponent],
629
+ template: `
630
+ <div class="flex flex-col gap-4">
631
+ <div>
632
+ <span class="text-sm text-muted-color font-semibold">Primary</span>
633
+ <div class="pt-2 flex gap-2 flex-wrap justify-start">
634
+ @for (primaryColor of primaryColors(); track primaryColor.name) {
635
+ <button
636
+ type="button"
637
+ [title]="primaryColor.name"
638
+ (click)="updateColors($event, 'primary', primaryColor)"
639
+ [ngClass]="{ 'outline-primary': primaryColor.name === selectedPrimaryColor() }"
640
+ class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
641
+ [style]="{
642
+ 'background-color': primaryColor?.name === 'noir' ? 'var(--text-color)' : primaryColor?.palette?.['500']
643
+ }"
644
+ ></button>
645
+ }
646
+ </div>
647
+ </div>
648
+ <div>
649
+ <span class="text-sm text-muted-color font-semibold">Surface</span>
650
+ <div class="pt-2 flex gap-2 flex-wrap justify-start">
651
+ @for (surface of surfaces; track surface.name) {
652
+ <button
653
+ type="button"
654
+ [title]="surface.name"
655
+ (click)="updateColors($event, 'surface', surface)"
656
+ [ngClass]="{ 'outline-primary': selectedSurfaceColor() ? selectedSurfaceColor() === surface.name : layoutService.layoutConfig().darkTheme ? surface.name === 'zinc' : surface.name === 'slate' }"
657
+ class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
658
+ [style]="{
659
+ 'background-color': surface?.name === 'noir' ? 'var(--text-color)' : surface?.palette?.['500']
660
+ }"
661
+ ></button>
662
+ }
663
+ </div>
664
+ </div>
665
+ @if (showMenuModeButton()) {
666
+ <div class="flex flex-col gap-2">
667
+ <span class="text-sm text-muted-color font-semibold">Menu Mode</span>
668
+ <ui-select-button [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" size="small"></ui-select-button>
669
+ </div>
670
+ }
671
+ </div>
814
672
  `,
815
673
  host: {
816
674
  class: 'hidden absolute top-[3.25rem] right-0 w-72 p-4 bg-surface-0 dark:bg-surface-900 border border-surface rounded-border origin-top shadow-[0px_3px_5px_rgba(0,0,0,0.02),0px_0px_2px_rgba(0,0,0,0.05),0px_1px_4px_rgba(0,0,0,0.08)]'
817
675
  }
818
676
  }]
819
- }] });
677
+ }], ctorParameters: () => [] });
820
678
 
821
679
  class InjectComponentService {
822
680
  componentRefs = new Map();
@@ -835,10 +693,10 @@ class InjectComponentService {
835
693
  getComponent(key) {
836
694
  return this.componentRefs.get(key);
837
695
  }
838
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: InjectComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
839
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: InjectComponentService, providedIn: 'root' });
696
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InjectComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
697
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InjectComponentService, providedIn: 'root' });
840
698
  }
841
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: InjectComponentService, decorators: [{
699
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InjectComponentService, decorators: [{
842
700
  type: Injectable,
843
701
  args: [{
844
702
  providedIn: 'root'
@@ -897,10 +755,10 @@ class ComponentInjectorDirective {
897
755
  ngOnDestroy() {
898
756
  this.removeComp();
899
757
  }
900
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ComponentInjectorDirective, deps: [{ token: i0.ViewContainerRef }, { token: InjectComponentService }], target: i0.ɵɵFactoryTarget.Directive });
901
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.5", type: ComponentInjectorDirective, isStandalone: true, selector: "ng-template[componentInjector]", inputs: { componentInjector: "componentInjector", context: "context" }, outputs: { componentCreated: "componentCreated" }, ngImport: i0 });
758
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ComponentInjectorDirective, deps: [{ token: i0.ViewContainerRef }, { token: InjectComponentService }], target: i0.ɵɵFactoryTarget.Directive });
759
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: ComponentInjectorDirective, isStandalone: true, selector: "ng-template[componentInjector]", inputs: { componentInjector: "componentInjector", context: "context" }, outputs: { componentCreated: "componentCreated" }, ngImport: i0 });
902
760
  }
903
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ComponentInjectorDirective, decorators: [{
761
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ComponentInjectorDirective, decorators: [{
904
762
  type: Directive,
905
763
  args: [{
906
764
  selector: 'ng-template[componentInjector]',
@@ -920,7 +778,7 @@ class SmzLayoutLogging {
920
778
  production: false,
921
779
  level: 'debug',
922
780
  restrictedScopes: []
923
- }, ...(ngDevMode ? [{ debugName: "logging" }] : /* istanbul ignore next */ []));
781
+ }, ...(ngDevMode ? [{ debugName: "logging" }] : []));
924
782
  setConfig(config) {
925
783
  const { logging } = config || {};
926
784
  if (logging) {
@@ -928,10 +786,10 @@ class SmzLayoutLogging {
928
786
  }
929
787
  ;
930
788
  }
931
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzLayoutLogging, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
932
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzLayoutLogging, providedIn: 'root' });
789
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzLayoutLogging, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
790
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzLayoutLogging, providedIn: 'root' });
933
791
  }
934
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzLayoutLogging, decorators: [{
792
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzLayoutLogging, decorators: [{
935
793
  type: Injectable,
936
794
  args: [{ providedIn: 'root' }]
937
795
  }] });
@@ -955,13 +813,13 @@ function provideSmzLayoutLogging(initializers) {
955
813
  // logging.service.ts
956
814
  class LoggingService {
957
815
  configFn = inject(SMZ_LAYOUT_LOGGING_CONFIG).logging;
958
- enabled = signal(this.configFn().enabled, ...(ngDevMode ? [{ debugName: "enabled" }] : /* istanbul ignore next */ []));
816
+ enabled = signal(this.configFn().enabled, ...(ngDevMode ? [{ debugName: "enabled" }] : []));
959
817
  // nível de each log: debug=0, info=1, warn=2, error=3
960
818
  levelRank = { debug: 0, info: 1, warn: 2, error: 3 };
961
819
  /** expose current settings */
962
- isEnabled = computed(() => this.enabled(), ...(ngDevMode ? [{ debugName: "isEnabled" }] : /* istanbul ignore next */ []));
963
- currentLevel = computed(() => this.configFn().level ?? 'debug', ...(ngDevMode ? [{ debugName: "currentLevel" }] : /* istanbul ignore next */ []));
964
- activeScopes = computed(() => this.configFn().restrictedScopes ?? [], ...(ngDevMode ? [{ debugName: "activeScopes" }] : /* istanbul ignore next */ []));
820
+ isEnabled = computed(() => this.enabled(), ...(ngDevMode ? [{ debugName: "isEnabled" }] : []));
821
+ currentLevel = computed(() => this.configFn().level ?? 'debug', ...(ngDevMode ? [{ debugName: "currentLevel" }] : []));
822
+ activeScopes = computed(() => this.configFn().restrictedScopes ?? [], ...(ngDevMode ? [{ debugName: "activeScopes" }] : []));
965
823
  /** toggle logging global */
966
824
  enable() { this.enabled.set(true); }
967
825
  disable() { this.enabled.set(false); }
@@ -1038,10 +896,10 @@ class LoggingService {
1038
896
  }
1039
897
  };
1040
898
  }
1041
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LoggingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1042
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LoggingService, providedIn: 'root' });
899
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: LoggingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
900
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: LoggingService, providedIn: 'root' });
1043
901
  }
1044
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LoggingService, decorators: [{
902
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: LoggingService, decorators: [{
1045
903
  type: Injectable,
1046
904
  args: [{ providedIn: 'root' }]
1047
905
  }] });
@@ -1057,9 +915,9 @@ var LoggingScope;
1057
915
  class NavigationService {
1058
916
  router = inject(Router);
1059
917
  location = inject(Location);
1060
- history = signal(['/'], ...(ngDevMode ? [{ debugName: "history" }] : /* istanbul ignore next */ []));
1061
- isPopping = signal(false, ...(ngDevMode ? [{ debugName: "isPopping" }] : /* istanbul ignore next */ []));
1062
- canGoBack = computed(() => this.history().length > 1, ...(ngDevMode ? [{ debugName: "canGoBack" }] : /* istanbul ignore next */ []));
918
+ history = signal(['/'], ...(ngDevMode ? [{ debugName: "history" }] : []));
919
+ isPopping = signal(false, ...(ngDevMode ? [{ debugName: "isPopping" }] : []));
920
+ canGoBack = computed(() => this.history().length > 1, ...(ngDevMode ? [{ debugName: "canGoBack" }] : []));
1063
921
  loggingService = inject(LoggingService);
1064
922
  logger = this.loggingService.scoped(LoggingScope.NavigationService);
1065
923
  constructor() {
@@ -1125,10 +983,10 @@ class NavigationService {
1125
983
  });
1126
984
  this.location.back();
1127
985
  }
1128
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: NavigationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1129
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: NavigationService, providedIn: 'root' });
986
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: NavigationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
987
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: NavigationService, providedIn: 'root' });
1130
988
  }
1131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: NavigationService, decorators: [{
989
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: NavigationService, decorators: [{
1132
990
  type: Injectable,
1133
991
  args: [{ providedIn: 'root' }]
1134
992
  }], ctorParameters: () => [] });
@@ -1138,11 +996,11 @@ class PageTitleService {
1138
996
  loggingService = inject(LoggingService);
1139
997
  logger = this.loggingService.scoped(LoggingScope.PageTitleService);
1140
998
  // signal que guarda o título (ou null)
1141
- titleSignal = signal(null, ...(ngDevMode ? [{ debugName: "titleSignal" }] : /* istanbul ignore next */ []));
999
+ titleSignal = signal(null, ...(ngDevMode ? [{ debugName: "titleSignal" }] : []));
1142
1000
  // string pura para template ('' quando null)
1143
- title = computed(() => this.titleSignal() ?? '', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
1001
+ title = computed(() => this.titleSignal() ?? '', ...(ngDevMode ? [{ debugName: "title" }] : []));
1144
1002
  // boolean para visibilidade (false quando null)
1145
- hasTitle = computed(() => this.titleSignal() !== null, ...(ngDevMode ? [{ debugName: "hasTitle" }] : /* istanbul ignore next */ []));
1003
+ hasTitle = computed(() => this.titleSignal() !== null, ...(ngDevMode ? [{ debugName: "hasTitle" }] : []));
1146
1004
  constructor() {
1147
1005
  // toda vez que uma navegação termina, atualiza o título
1148
1006
  this.router.events
@@ -1167,16 +1025,15 @@ class PageTitleService {
1167
1025
  : null;
1168
1026
  this.titleSignal.set(title);
1169
1027
  }
1170
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: PageTitleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1171
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: PageTitleService, providedIn: 'root' });
1028
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: PageTitleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1029
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: PageTitleService, providedIn: 'root' });
1172
1030
  }
1173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: PageTitleService, decorators: [{
1031
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: PageTitleService, decorators: [{
1174
1032
  type: Injectable,
1175
1033
  args: [{ providedIn: 'root' }]
1176
1034
  }], ctorParameters: () => [] });
1177
1035
 
1178
1036
  class AppTopbar {
1179
- primeNG = inject(PrimeNG);
1180
1037
  data = inject(SMZ_UI_LAYOUT_CONFIG).topbar;
1181
1038
  layoutService = inject(LayoutService);
1182
1039
  navigationService = inject(NavigationService);
@@ -1187,181 +1044,185 @@ class AppTopbar {
1187
1044
  handleMissingImage(event, placeholder) {
1188
1045
  event.target.src = placeholder;
1189
1046
  }
1190
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppTopbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
1191
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: AppTopbar, isStandalone: true, selector: "app-topbar", ngImport: i0, template: `
1192
- @if (data(); as topbar) {
1193
- <div class="layout-topbar">
1194
- <div class="layout-topbar-logo-container">
1195
- @if (topbar.showMenuToggle) {
1196
- <button class="layout-menu-button layout-topbar-action" (click)="layoutService.onMenuToggle()">
1197
- <i class="pi pi-bars"></i>
1198
- </button>
1199
- }
1200
- <a class="layout-topbar-logo" routerLink="/">
1201
- @if (topbar.logoPath?.light && !layoutService.isDarkTheme()) {
1202
- <img [src]="topbar.logoPath?.light" [alt]="topbar.logoPath?.light" class="max-h-9 min-h-8" />
1203
- }
1204
- @if (topbar.logoPath?.dark && layoutService.isDarkTheme()) {
1205
- <img [src]="topbar.logoPath?.dark" [alt]="topbar.logoPath?.dark" class="max-h-9 min-h-8" />
1206
- }
1207
- </a>
1208
- @if (topbar.appName) {
1209
- <span class="layout-topbar-app-name">{{ topbar.appName }}</span>
1210
- }
1211
- </div>
1212
- <div class="layout-topbar-left-actions">
1213
- @if (topbar.showBackButton || pageTitleService.hasTitle()) {
1214
- <span class="topbar-separator"></span>
1215
- }
1216
- @if (topbar.showBackButton && navigationService.canGoBackSignal()) {
1217
- <button class="layout-menu-button layout-topbar-action" (click)="navigationService.goBack()">
1218
- <i class="pi pi-arrow-left"></i>
1219
- </button>
1220
- }
1221
- @if (pageTitleService.hasTitle()) {
1222
- <span class="layout-topbar-page-title">
1223
- <span>{{ pageTitleService.title() }}</span>
1224
- </span>
1225
- }
1226
- </div>
1227
- <div class="layout-topbar-right-actions">
1228
- <button class="layout-topbar-menu-button layout-topbar-action" pStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
1229
- <i class="pi pi-ellipsis-v"></i>
1230
- </button>
1231
- <div class="layout-topbar-menu hidden lg:block">
1232
- <div class="layout-topbar-menu-content">
1233
- @for (item of topbar.menuItems; track item) {
1234
- @if (item.component != null) {
1235
- <ng-template [componentInjector]="item.component"></ng-template>
1236
- }
1237
- @else {
1238
- <button type="button" class="layout-topbar-action" (click)="item.callback()" [routerLink]="item.routerLink" [pTooltip]="item.tooltip">
1239
- <i [ngClass]="item.icon"></i>
1240
- <span>{{ item.label }}</span>
1241
- </button>
1242
- }
1243
- }
1244
- </div>
1245
- </div>
1246
- <div class="layout-config-menu">
1247
- @if (topbar.showDarkModeToggle) {
1248
- <button type="button" class="layout-topbar-action" (click)="toggleDarkMode()" pTooltip="Dark/Light">
1249
- <i [ngClass]="{ 'pi ': true, 'pi-moon': layoutService.isDarkTheme(), 'pi-sun': !layoutService.isDarkTheme() }"></i>
1250
- </button>
1251
- }
1252
- @if (topbar.showConfigurator) {
1253
- <div class="relative">
1254
- <button class="layout-topbar-action layout-topbar-action-highlight" pTooltip="Configurações" pStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
1255
- <i class="pi pi-palette"></i>
1256
- </button>
1257
- <app-configurator></app-configurator>
1258
- </div>
1259
- }
1260
- @for (feature of topbar.features; track feature) {
1261
- <p-menu #menu [model]="feature.menuItems" [popup]="true" />
1262
- @if (feature.avatar && feature.avatar() != null) {
1263
- <img [src]="feature.avatar()" [alt]="feature.label" class="layout-topbar-action w-8 h-8 rounded-full" (click)="menu.toggle($event)" [pTooltip]="feature.tooltip" (error)="handleMissingImage($event, feature.placeholder)"/>
1264
- }
1265
- @else {
1266
- <button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [pTooltip]="feature.tooltip">
1267
- <i [ngClass]="feature.icon()"></i>
1268
- </button>
1269
- }
1270
- }
1271
- </div>
1272
- </div>
1273
- </div>
1274
- }`, isInline: true, dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: StyleClassModule }, { kind: "directive", type: i3$2.StyleClass, selector: "[pStyleClass]", inputs: ["pStyleClass", "enterFromClass", "enterActiveClass", "enterToClass", "leaveFromClass", "leaveActiveClass", "leaveToClass", "hideOnOutsideClick", "toggleClass", "hideOnEscape", "hideOnResize", "resizeSelector"] }, { kind: "component", type: AppConfigurator, selector: "app-configurator" }, { kind: "directive", type: ComponentInjectorDirective, selector: "ng-template[componentInjector]", inputs: ["componentInjector", "context"], outputs: ["componentCreated"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "ngmodule", type: MenuModule }, { kind: "component", type: i5.Menu, selector: "p-menu", inputs: ["model", "popup", "style", "styleClass", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex", "appendTo", "motionOptions"], outputs: ["onShow", "onHide", "onBlur", "onFocus"] }, { kind: "ngmodule", type: ButtonModule }] });
1047
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppTopbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
1048
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AppTopbar, isStandalone: true, selector: "app-topbar", ngImport: i0, template: `
1049
+ @if (data(); as topbar) {
1050
+ <div class="layout-topbar">
1051
+ <div class="layout-topbar-logo-container">
1052
+ @if (topbar.showMenuToggle) {
1053
+ <button class="layout-menu-button layout-topbar-action" (click)="layoutService.onMenuToggle()">
1054
+ <i class="fa-solid fa-bars"></i>
1055
+ </button>
1056
+ }
1057
+ <a class="layout-topbar-logo" routerLink="/">
1058
+ @if (topbar.logoPath?.light && !layoutService.isDarkTheme()) {
1059
+ <img [src]="topbar.logoPath?.light" [alt]="topbar.logoPath?.light" class="max-h-9 min-h-8" />
1060
+ }
1061
+ @if (topbar.logoPath?.dark && layoutService.isDarkTheme()) {
1062
+ <img [src]="topbar.logoPath?.dark" [alt]="topbar.logoPath?.dark" class="max-h-9 min-h-8" />
1063
+ }
1064
+ </a>
1065
+ @if (topbar.appName) {
1066
+ <span class="layout-topbar-app-name">{{ topbar.appName }}</span>
1067
+ }
1068
+ </div>
1069
+ <div class="layout-topbar-left-actions">
1070
+ @if (topbar.showBackButton || pageTitleService.hasTitle()) {
1071
+ <span class="topbar-separator"></span>
1072
+ }
1073
+ @if (topbar.showBackButton && navigationService.canGoBackSignal()) {
1074
+ <button class="layout-menu-button layout-topbar-action" (click)="navigationService.goBack()">
1075
+ <i class="fa-solid fa-arrow-left"></i>
1076
+ </button>
1077
+ }
1078
+ @if (pageTitleService.hasTitle()) {
1079
+ <span class="layout-topbar-page-title">
1080
+ <span>{{ pageTitleService.title() }}</span>
1081
+ </span>
1082
+ }
1083
+ </div>
1084
+ <div class="layout-topbar-right-actions">
1085
+ <button class="layout-topbar-menu-button layout-topbar-action" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
1086
+ <i class="fa-solid fa-ellipsis-vertical"></i>
1087
+ </button>
1088
+ <div class="layout-topbar-menu hidden lg:block">
1089
+ <div class="layout-topbar-menu-content">
1090
+ @for (item of topbar.menuItems; track item) {
1091
+ @if (item.component != null) {
1092
+ <ng-template [componentInjector]="item.component"></ng-template>
1093
+ }
1094
+ @else {
1095
+ <button type="button" class="layout-topbar-action" (click)="item.callback()" [routerLink]="item.routerLink" [smzTooltip]="item.tooltip">
1096
+ <i [ngClass]="item.icon"></i>
1097
+ <span>{{ item.label }}</span>
1098
+ </button>
1099
+ }
1100
+ }
1101
+ </div>
1102
+ </div>
1103
+ <div class="layout-config-menu">
1104
+ @if (topbar.showDarkModeToggle) {
1105
+ <button type="button" class="layout-topbar-action" (click)="toggleDarkMode()" smzTooltip="Dark/Light">
1106
+ <i [ngClass]="{ 'fa-solid': true, 'fa-moon': layoutService.isDarkTheme(), 'fa-sun': !layoutService.isDarkTheme() }"></i>
1107
+ </button>
1108
+ }
1109
+ @if (topbar.showConfigurator) {
1110
+ <div class="relative">
1111
+ <button class="layout-topbar-action layout-topbar-action-highlight" smzTooltip="Configurações" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
1112
+ <i class="fa-solid fa-palette"></i>
1113
+ </button>
1114
+ <app-configurator></app-configurator>
1115
+ </div>
1116
+ }
1117
+ @if (topbar.showProfileMenu !== false) {
1118
+ @for (feature of topbar.features; track feature) {
1119
+ <ui-menu #menu [model]="feature.menuItems" [popup]="true"></ui-menu>
1120
+ @if (feature.avatar && feature.avatar() != null) {
1121
+ <img [src]="feature.avatar()" [alt]="feature.label" class="layout-topbar-action w-8 h-8 rounded-full" (click)="menu.toggle($event)" [smzTooltip]="feature.tooltip" (error)="handleMissingImage($event, feature.placeholder)"/>
1122
+ }
1123
+ @else {
1124
+ <button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [smzTooltip]="feature.tooltip">
1125
+ <i [ngClass]="feature.icon()"></i>
1126
+ </button>
1127
+ }
1128
+ }
1129
+ }
1130
+ </div>
1131
+ </div>
1132
+ </div>
1133
+ }`, isInline: true, dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: SmzStyleClassDirective, selector: "[smzStyleClass]", inputs: ["smzStyleClass", "enterFromClass", "enterActiveClass", "enterToClass", "leaveFromClass", "leaveActiveClass", "leaveToClass", "hideOnOutsideClick", "toggleClass"] }, { kind: "component", type: AppConfigurator, selector: "app-configurator" }, { kind: "directive", type: ComponentInjectorDirective, selector: "ng-template[componentInjector]", inputs: ["componentInjector", "context"], outputs: ["componentCreated"] }, { kind: "directive", type: SmzTooltipDirective, selector: "[smzTooltip]", inputs: ["smzTooltip", "tooltipPosition", "showDelay", "hideDelay", "tooltipEvent", "escape", "tooltipStyleClass", "tooltipZIndex", "tooltipDisabled", "tooltipOptions", "appendTo"] }, { kind: "component", type: SmzMenuListComponent, selector: "ui-menu", inputs: ["model", "popup", "style", "styleClass", "autoZIndex", "appendTo", "baseZIndex"], outputs: ["shown", "hidden"] }] });
1275
1134
  }
1276
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppTopbar, decorators: [{
1135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppTopbar, decorators: [{
1277
1136
  type: Component,
1278
1137
  args: [{
1279
1138
  selector: 'app-topbar',
1280
1139
  standalone: true,
1281
- imports: [RouterModule, CommonModule, StyleClassModule, AppConfigurator, ComponentInjectorDirective, TooltipModule, MenuModule, ButtonModule],
1282
- template: `
1283
- @if (data(); as topbar) {
1284
- <div class="layout-topbar">
1285
- <div class="layout-topbar-logo-container">
1286
- @if (topbar.showMenuToggle) {
1287
- <button class="layout-menu-button layout-topbar-action" (click)="layoutService.onMenuToggle()">
1288
- <i class="pi pi-bars"></i>
1289
- </button>
1290
- }
1291
- <a class="layout-topbar-logo" routerLink="/">
1292
- @if (topbar.logoPath?.light && !layoutService.isDarkTheme()) {
1293
- <img [src]="topbar.logoPath?.light" [alt]="topbar.logoPath?.light" class="max-h-9 min-h-8" />
1294
- }
1295
- @if (topbar.logoPath?.dark && layoutService.isDarkTheme()) {
1296
- <img [src]="topbar.logoPath?.dark" [alt]="topbar.logoPath?.dark" class="max-h-9 min-h-8" />
1297
- }
1298
- </a>
1299
- @if (topbar.appName) {
1300
- <span class="layout-topbar-app-name">{{ topbar.appName }}</span>
1301
- }
1302
- </div>
1303
- <div class="layout-topbar-left-actions">
1304
- @if (topbar.showBackButton || pageTitleService.hasTitle()) {
1305
- <span class="topbar-separator"></span>
1306
- }
1307
- @if (topbar.showBackButton && navigationService.canGoBackSignal()) {
1308
- <button class="layout-menu-button layout-topbar-action" (click)="navigationService.goBack()">
1309
- <i class="pi pi-arrow-left"></i>
1310
- </button>
1311
- }
1312
- @if (pageTitleService.hasTitle()) {
1313
- <span class="layout-topbar-page-title">
1314
- <span>{{ pageTitleService.title() }}</span>
1315
- </span>
1316
- }
1317
- </div>
1318
- <div class="layout-topbar-right-actions">
1319
- <button class="layout-topbar-menu-button layout-topbar-action" pStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
1320
- <i class="pi pi-ellipsis-v"></i>
1321
- </button>
1322
- <div class="layout-topbar-menu hidden lg:block">
1323
- <div class="layout-topbar-menu-content">
1324
- @for (item of topbar.menuItems; track item) {
1325
- @if (item.component != null) {
1326
- <ng-template [componentInjector]="item.component"></ng-template>
1327
- }
1328
- @else {
1329
- <button type="button" class="layout-topbar-action" (click)="item.callback()" [routerLink]="item.routerLink" [pTooltip]="item.tooltip">
1330
- <i [ngClass]="item.icon"></i>
1331
- <span>{{ item.label }}</span>
1332
- </button>
1333
- }
1334
- }
1335
- </div>
1336
- </div>
1337
- <div class="layout-config-menu">
1338
- @if (topbar.showDarkModeToggle) {
1339
- <button type="button" class="layout-topbar-action" (click)="toggleDarkMode()" pTooltip="Dark/Light">
1340
- <i [ngClass]="{ 'pi ': true, 'pi-moon': layoutService.isDarkTheme(), 'pi-sun': !layoutService.isDarkTheme() }"></i>
1341
- </button>
1342
- }
1343
- @if (topbar.showConfigurator) {
1344
- <div class="relative">
1345
- <button class="layout-topbar-action layout-topbar-action-highlight" pTooltip="Configurações" pStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
1346
- <i class="pi pi-palette"></i>
1347
- </button>
1348
- <app-configurator></app-configurator>
1349
- </div>
1350
- }
1351
- @for (feature of topbar.features; track feature) {
1352
- <p-menu #menu [model]="feature.menuItems" [popup]="true" />
1353
- @if (feature.avatar && feature.avatar() != null) {
1354
- <img [src]="feature.avatar()" [alt]="feature.label" class="layout-topbar-action w-8 h-8 rounded-full" (click)="menu.toggle($event)" [pTooltip]="feature.tooltip" (error)="handleMissingImage($event, feature.placeholder)"/>
1355
- }
1356
- @else {
1357
- <button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [pTooltip]="feature.tooltip">
1358
- <i [ngClass]="feature.icon()"></i>
1359
- </button>
1360
- }
1361
- }
1362
- </div>
1363
- </div>
1364
- </div>
1140
+ imports: [RouterModule, CommonModule, SmzStyleClassDirective, AppConfigurator, ComponentInjectorDirective, SmzTooltipDirective, SmzMenuListComponent, SmzButtonComponent],
1141
+ template: `
1142
+ @if (data(); as topbar) {
1143
+ <div class="layout-topbar">
1144
+ <div class="layout-topbar-logo-container">
1145
+ @if (topbar.showMenuToggle) {
1146
+ <button class="layout-menu-button layout-topbar-action" (click)="layoutService.onMenuToggle()">
1147
+ <i class="fa-solid fa-bars"></i>
1148
+ </button>
1149
+ }
1150
+ <a class="layout-topbar-logo" routerLink="/">
1151
+ @if (topbar.logoPath?.light && !layoutService.isDarkTheme()) {
1152
+ <img [src]="topbar.logoPath?.light" [alt]="topbar.logoPath?.light" class="max-h-9 min-h-8" />
1153
+ }
1154
+ @if (topbar.logoPath?.dark && layoutService.isDarkTheme()) {
1155
+ <img [src]="topbar.logoPath?.dark" [alt]="topbar.logoPath?.dark" class="max-h-9 min-h-8" />
1156
+ }
1157
+ </a>
1158
+ @if (topbar.appName) {
1159
+ <span class="layout-topbar-app-name">{{ topbar.appName }}</span>
1160
+ }
1161
+ </div>
1162
+ <div class="layout-topbar-left-actions">
1163
+ @if (topbar.showBackButton || pageTitleService.hasTitle()) {
1164
+ <span class="topbar-separator"></span>
1165
+ }
1166
+ @if (topbar.showBackButton && navigationService.canGoBackSignal()) {
1167
+ <button class="layout-menu-button layout-topbar-action" (click)="navigationService.goBack()">
1168
+ <i class="fa-solid fa-arrow-left"></i>
1169
+ </button>
1170
+ }
1171
+ @if (pageTitleService.hasTitle()) {
1172
+ <span class="layout-topbar-page-title">
1173
+ <span>{{ pageTitleService.title() }}</span>
1174
+ </span>
1175
+ }
1176
+ </div>
1177
+ <div class="layout-topbar-right-actions">
1178
+ <button class="layout-topbar-menu-button layout-topbar-action" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
1179
+ <i class="fa-solid fa-ellipsis-vertical"></i>
1180
+ </button>
1181
+ <div class="layout-topbar-menu hidden lg:block">
1182
+ <div class="layout-topbar-menu-content">
1183
+ @for (item of topbar.menuItems; track item) {
1184
+ @if (item.component != null) {
1185
+ <ng-template [componentInjector]="item.component"></ng-template>
1186
+ }
1187
+ @else {
1188
+ <button type="button" class="layout-topbar-action" (click)="item.callback()" [routerLink]="item.routerLink" [smzTooltip]="item.tooltip">
1189
+ <i [ngClass]="item.icon"></i>
1190
+ <span>{{ item.label }}</span>
1191
+ </button>
1192
+ }
1193
+ }
1194
+ </div>
1195
+ </div>
1196
+ <div class="layout-config-menu">
1197
+ @if (topbar.showDarkModeToggle) {
1198
+ <button type="button" class="layout-topbar-action" (click)="toggleDarkMode()" smzTooltip="Dark/Light">
1199
+ <i [ngClass]="{ 'fa-solid': true, 'fa-moon': layoutService.isDarkTheme(), 'fa-sun': !layoutService.isDarkTheme() }"></i>
1200
+ </button>
1201
+ }
1202
+ @if (topbar.showConfigurator) {
1203
+ <div class="relative">
1204
+ <button class="layout-topbar-action layout-topbar-action-highlight" smzTooltip="Configurações" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
1205
+ <i class="fa-solid fa-palette"></i>
1206
+ </button>
1207
+ <app-configurator></app-configurator>
1208
+ </div>
1209
+ }
1210
+ @if (topbar.showProfileMenu !== false) {
1211
+ @for (feature of topbar.features; track feature) {
1212
+ <ui-menu #menu [model]="feature.menuItems" [popup]="true"></ui-menu>
1213
+ @if (feature.avatar && feature.avatar() != null) {
1214
+ <img [src]="feature.avatar()" [alt]="feature.label" class="layout-topbar-action w-8 h-8 rounded-full" (click)="menu.toggle($event)" [smzTooltip]="feature.tooltip" (error)="handleMissingImage($event, feature.placeholder)"/>
1215
+ }
1216
+ @else {
1217
+ <button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [smzTooltip]="feature.tooltip">
1218
+ <i [ngClass]="feature.icon()"></i>
1219
+ </button>
1220
+ }
1221
+ }
1222
+ }
1223
+ </div>
1224
+ </div>
1225
+ </div>
1365
1226
  }`
1366
1227
  }]
1367
1228
  }] });
@@ -1443,18 +1304,18 @@ class AppMenuitem {
1443
1304
  this.menuResetSubscription.unsubscribe();
1444
1305
  }
1445
1306
  }
1446
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppMenuitem, deps: [{ token: i1.Router }, { token: LayoutService }], target: i0.ɵɵFactoryTarget.Component });
1447
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: AppMenuitem, isStandalone: true, selector: "[app-menuitem]", inputs: { item: "item", index: "index", root: "root", parentKey: "parentKey" }, host: { properties: { "class.layout-root-menuitem": "this.root", "class.active-menuitem": "this.activeClass" } }, ngImport: i0, template: `
1307
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppMenuitem, deps: [{ token: i1.Router }, { token: LayoutService }], target: i0.ɵɵFactoryTarget.Component });
1308
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AppMenuitem, isStandalone: true, selector: "[app-menuitem]", inputs: { item: "item", index: "index", root: "root", parentKey: "parentKey" }, host: { properties: { "class.layout-root-menuitem": "this.root", "class.active-menuitem": "this.activeClass" } }, ngImport: i0, template: `
1448
1309
  <ng-container>
1449
1310
  @if (root && item.visible !== false) {
1450
1311
  <div class="layout-menuitem-root-text">{{ item.label }}</div>
1451
1312
  }
1452
1313
  @if ((!item.routerLink || item.items) && item.visible !== false) {
1453
- <a [attr.href]="item.url" (click)="itemClick($event)" [ngClass]="item.styleClass" [attr.target]="item.target" tabindex="0" pRipple>
1314
+ <a [attr.href]="item.url" (click)="itemClick($event)" [ngClass]="item.styleClass" [attr.target]="item.target" tabindex="0" smzRipple>
1454
1315
  <i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
1455
1316
  <span class="layout-menuitem-text">{{ item.label }}</span>
1456
1317
  @if (item.items) {
1457
- <i class="pi pi-fw pi-angle-down layout-submenu-toggler"></i>
1318
+ <i class="fa-solid fa-fw fa-angle-down layout-submenu-toggler"></i>
1458
1319
  }
1459
1320
  </a>
1460
1321
  }
@@ -1474,12 +1335,12 @@ class AppMenuitem {
1474
1335
  [queryParams]="item.queryParams"
1475
1336
  [attr.target]="item.target"
1476
1337
  tabindex="0"
1477
- pRipple
1338
+ smzRipple
1478
1339
  >
1479
1340
  <i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
1480
1341
  <span class="layout-menuitem-text">{{ item.label }}</span>
1481
1342
  @if (item.items) {
1482
- <i class="pi pi-fw pi-angle-down layout-submenu-toggler"></i>
1343
+ <i class="fa-solid fa-fw fa-angle-down layout-submenu-toggler"></i>
1483
1344
  }
1484
1345
  </a>
1485
1346
  }
@@ -1494,7 +1355,7 @@ class AppMenuitem {
1494
1355
  </ul>
1495
1356
  }
1496
1357
  </ng-container>
1497
- `, isInline: true, dependencies: [{ kind: "component", type: AppMenuitem, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "ngmodule", type: RippleModule }, { kind: "directive", type: i4$1.Ripple, selector: "[pRipple]" }], animations: [
1358
+ `, isInline: true, dependencies: [{ kind: "component", type: AppMenuitem, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: SmzRippleDirective, selector: "[smzRipple]" }], animations: [
1498
1359
  trigger('children', [
1499
1360
  state('collapsed', style({
1500
1361
  height: '0'
@@ -1506,23 +1367,23 @@ class AppMenuitem {
1506
1367
  ])
1507
1368
  ] });
1508
1369
  }
1509
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppMenuitem, decorators: [{
1370
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppMenuitem, decorators: [{
1510
1371
  type: Component,
1511
1372
  args: [{
1512
1373
  // eslint-disable-next-line @angular-eslint/component-selector
1513
1374
  selector: '[app-menuitem]',
1514
- imports: [CommonModule, RouterModule, RippleModule],
1375
+ imports: [CommonModule, RouterModule, SmzRippleDirective],
1515
1376
  template: `
1516
1377
  <ng-container>
1517
1378
  @if (root && item.visible !== false) {
1518
1379
  <div class="layout-menuitem-root-text">{{ item.label }}</div>
1519
1380
  }
1520
1381
  @if ((!item.routerLink || item.items) && item.visible !== false) {
1521
- <a [attr.href]="item.url" (click)="itemClick($event)" [ngClass]="item.styleClass" [attr.target]="item.target" tabindex="0" pRipple>
1382
+ <a [attr.href]="item.url" (click)="itemClick($event)" [ngClass]="item.styleClass" [attr.target]="item.target" tabindex="0" smzRipple>
1522
1383
  <i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
1523
1384
  <span class="layout-menuitem-text">{{ item.label }}</span>
1524
1385
  @if (item.items) {
1525
- <i class="pi pi-fw pi-angle-down layout-submenu-toggler"></i>
1386
+ <i class="fa-solid fa-fw fa-angle-down layout-submenu-toggler"></i>
1526
1387
  }
1527
1388
  </a>
1528
1389
  }
@@ -1542,12 +1403,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1542
1403
  [queryParams]="item.queryParams"
1543
1404
  [attr.target]="item.target"
1544
1405
  tabindex="0"
1545
- pRipple
1406
+ smzRipple
1546
1407
  >
1547
1408
  <i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
1548
1409
  <span class="layout-menuitem-text">{{ item.label }}</span>
1549
1410
  @if (item.items) {
1550
- <i class="pi pi-fw pi-angle-down layout-submenu-toggler"></i>
1411
+ <i class="fa-solid fa-fw fa-angle-down layout-submenu-toggler"></i>
1551
1412
  }
1552
1413
  </a>
1553
1414
  }
@@ -1594,8 +1455,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1594
1455
 
1595
1456
  class AppMenu {
1596
1457
  model = inject(SmzUILayout).sidebar;
1597
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
1598
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: AppMenu, isStandalone: true, selector: "app-menu", ngImport: i0, template: `<ul class="layout-menu">
1458
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
1459
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AppMenu, isStandalone: true, selector: "app-menu", ngImport: i0, template: `<ul class="layout-menu">
1599
1460
  @for (item of model(); track item; let i = $index) {
1600
1461
  @if (!item.separator && item.visible !== false) {
1601
1462
  <li app-menuitem [item]="item" [index]="i" [root]="true"></li>
@@ -1606,7 +1467,7 @@ class AppMenu {
1606
1467
  }
1607
1468
  </ul>`, isInline: true, dependencies: [{ kind: "component", type: AppMenuitem, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey"] }, { kind: "ngmodule", type: RouterModule }] });
1608
1469
  }
1609
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppMenu, decorators: [{
1470
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppMenu, decorators: [{
1610
1471
  type: Component,
1611
1472
  args: [{
1612
1473
  selector: 'app-menu',
@@ -1630,12 +1491,12 @@ class AppSidebar {
1630
1491
  constructor(el) {
1631
1492
  this.el = el;
1632
1493
  }
1633
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppSidebar, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
1634
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.5", type: AppSidebar, isStandalone: true, selector: "app-sidebar", ngImport: i0, template: ` <div class="layout-sidebar">
1494
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppSidebar, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
1495
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.1", type: AppSidebar, isStandalone: true, selector: "app-sidebar", ngImport: i0, template: ` <div class="layout-sidebar">
1635
1496
  <app-menu></app-menu>
1636
1497
  </div>`, isInline: true, dependencies: [{ kind: "component", type: AppMenu, selector: "app-menu" }] });
1637
1498
  }
1638
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppSidebar, decorators: [{
1499
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppSidebar, decorators: [{
1639
1500
  type: Component,
1640
1501
  args: [{
1641
1502
  selector: 'app-sidebar',
@@ -1650,8 +1511,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1650
1511
  class AppFooter {
1651
1512
  data = inject(SMZ_UI_LAYOUT_CONFIG).footer;
1652
1513
  layoutService = inject(LayoutService);
1653
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppFooter, deps: [], target: i0.ɵɵFactoryTarget.Component });
1654
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: AppFooter, isStandalone: true, selector: "app-footer", ngImport: i0, template: `
1514
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppFooter, deps: [], target: i0.ɵɵFactoryTarget.Component });
1515
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AppFooter, isStandalone: true, selector: "app-footer", ngImport: i0, template: `
1655
1516
  @if (data(); as footer) {
1656
1517
  <div class="flex items-center justify-between px-0 py-4 gap-4 border-t border-surface-border">
1657
1518
  @if (footer.leftLogoPath?.light && !layoutService.isDarkTheme()) {
@@ -1677,7 +1538,7 @@ class AppFooter {
1677
1538
  }
1678
1539
  `, isInline: true });
1679
1540
  }
1680
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppFooter, decorators: [{
1541
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppFooter, decorators: [{
1681
1542
  type: Component,
1682
1543
  args: [{
1683
1544
  standalone: true,
@@ -1775,7 +1636,8 @@ class AppLayout {
1775
1636
  'layout-static': this.layoutService.layoutConfig().menuMode === 'static',
1776
1637
  'layout-static-inactive': this.layoutService.layoutState().staticMenuDesktopInactive && this.layoutService.layoutConfig().menuMode === 'static',
1777
1638
  'layout-overlay-active': this.layoutService.layoutState().overlayMenuActive,
1778
- 'layout-mobile-active': this.layoutService.layoutState().staticMenuMobileActive
1639
+ 'layout-mobile-active': this.layoutService.layoutState().staticMenuMobileActive,
1640
+ 'layout-sidebar-hidden': this.layoutService.layoutConfig().showSidebar === false
1779
1641
  };
1780
1642
  }
1781
1643
  ngOnDestroy() {
@@ -1786,10 +1648,12 @@ class AppLayout {
1786
1648
  this.menuOutsideClickListener();
1787
1649
  }
1788
1650
  }
1789
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppLayout, deps: [{ token: LayoutService }, { token: i0.Renderer2 }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Component });
1790
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.5", type: AppLayout, isStandalone: true, selector: "app-layout", viewQueries: [{ propertyName: "appSidebar", first: true, predicate: AppSidebar, descendants: true }, { propertyName: "appTopBar", first: true, predicate: AppTopbar, descendants: true }], ngImport: i0, template: `<div class="layout-wrapper" [ngClass]="containerClass">
1651
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppLayout, deps: [{ token: LayoutService }, { token: i0.Renderer2 }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Component });
1652
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AppLayout, isStandalone: true, selector: "app-layout", viewQueries: [{ propertyName: "appSidebar", first: true, predicate: AppSidebar, descendants: true }, { propertyName: "appTopBar", first: true, predicate: AppTopbar, descendants: true }], ngImport: i0, template: `<div class="layout-wrapper" [ngClass]="containerClass">
1791
1653
  <app-topbar></app-topbar>
1792
- <app-sidebar></app-sidebar>
1654
+ @if (layoutService.layoutConfig().showSidebar !== false) {
1655
+ <app-sidebar></app-sidebar>
1656
+ }
1793
1657
  <div class="layout-main-container">
1794
1658
  <div class="layout-main relative">
1795
1659
  <router-outlet></router-outlet>
@@ -1799,7 +1663,7 @@ class AppLayout {
1799
1663
  <div class="layout-mask animate-fadein"></div>
1800
1664
  </div> `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: AppTopbar, selector: "app-topbar" }, { kind: "component", type: AppSidebar, selector: "app-sidebar" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: AppFooter, selector: "app-footer" }] });
1801
1665
  }
1802
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppLayout, decorators: [{
1666
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppLayout, decorators: [{
1803
1667
  type: Component,
1804
1668
  args: [{
1805
1669
  selector: 'app-layout',
@@ -1807,7 +1671,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1807
1671
  imports: [CommonModule, AppTopbar, AppSidebar, RouterModule, AppFooter],
1808
1672
  template: `<div class="layout-wrapper" [ngClass]="containerClass">
1809
1673
  <app-topbar></app-topbar>
1810
- <app-sidebar></app-sidebar>
1674
+ @if (layoutService.layoutConfig().showSidebar !== false) {
1675
+ <app-sidebar></app-sidebar>
1676
+ }
1811
1677
  <div class="layout-main-container">
1812
1678
  <div class="layout-main relative">
1813
1679
  <router-outlet></router-outlet>
@@ -1827,34 +1693,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1827
1693
 
1828
1694
  class AppFloatingConfigurator {
1829
1695
  LayoutService = inject(LayoutService);
1830
- isDarkTheme = computed(() => this.LayoutService.layoutConfig().darkTheme, ...(ngDevMode ? [{ debugName: "isDarkTheme" }] : /* istanbul ignore next */ []));
1696
+ isDarkTheme = computed(() => this.LayoutService.layoutConfig().darkTheme, ...(ngDevMode ? [{ debugName: "isDarkTheme" }] : []));
1831
1697
  toggleDarkMode() {
1832
1698
  this.LayoutService.layoutConfig.update((state) => ({ ...state, darkTheme: !state.darkTheme }));
1833
1699
  }
1834
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppFloatingConfigurator, deps: [], target: i0.ɵɵFactoryTarget.Component });
1835
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.5", type: AppFloatingConfigurator, isStandalone: true, selector: "app-floating-configurator", ngImport: i0, template: `
1836
- <div class="fixed flex gap-4 top-8 right-8">
1837
- <p-button type="button" (onClick)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'pi pi-moon' : 'pi pi-sun'" severity="secondary" />
1838
- <div class="relative">
1839
- <p-button icon="pi pi-palette" pStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true" type="button" rounded />
1840
- <app-configurator />
1841
- </div>
1842
- </div>
1843
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: StyleClassModule }, { kind: "directive", type: i3$2.StyleClass, selector: "[pStyleClass]", inputs: ["pStyleClass", "enterFromClass", "enterActiveClass", "enterToClass", "leaveFromClass", "leaveActiveClass", "leaveToClass", "hideOnOutsideClick", "toggleClass", "hideOnEscape", "hideOnResize", "resizeSelector"] }, { kind: "component", type: AppConfigurator, selector: "app-configurator" }] });
1700
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppFloatingConfigurator, deps: [], target: i0.ɵɵFactoryTarget.Component });
1701
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.1", type: AppFloatingConfigurator, isStandalone: true, selector: "app-floating-configurator", ngImport: i0, template: `
1702
+ <div class="fixed flex gap-4 top-8 right-8">
1703
+ <button smzButton type="button" (click)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'fa-solid fa-moon' : 'fa-solid fa-sun'" severity="secondary"></button>
1704
+ <div class="relative">
1705
+ <button smzButton icon="fa-solid fa-palette" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true" type="button" rounded></button>
1706
+ <app-configurator />
1707
+ </div>
1708
+ </div>
1709
+ `, isInline: true, dependencies: [{ kind: "component", type: SmzButtonComponent, selector: "button[smzButton], a[smzButton]", inputs: ["label", "icon", "iconPosition", "severity", "variant", "size", "text", "outlined", "rounded", "loading", "styleClass"] }, { kind: "directive", type: SmzStyleClassDirective, selector: "[smzStyleClass]", inputs: ["smzStyleClass", "enterFromClass", "enterActiveClass", "enterToClass", "leaveFromClass", "leaveActiveClass", "leaveToClass", "hideOnOutsideClick", "toggleClass"] }, { kind: "component", type: AppConfigurator, selector: "app-configurator" }] });
1844
1710
  }
1845
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppFloatingConfigurator, decorators: [{
1711
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppFloatingConfigurator, decorators: [{
1846
1712
  type: Component,
1847
1713
  args: [{
1848
1714
  selector: 'app-floating-configurator',
1849
- imports: [ButtonModule, StyleClassModule, AppConfigurator],
1850
- template: `
1851
- <div class="fixed flex gap-4 top-8 right-8">
1852
- <p-button type="button" (onClick)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'pi pi-moon' : 'pi pi-sun'" severity="secondary" />
1853
- <div class="relative">
1854
- <p-button icon="pi pi-palette" pStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true" type="button" rounded />
1855
- <app-configurator />
1856
- </div>
1857
- </div>
1715
+ imports: [SmzButtonComponent, SmzStyleClassDirective, AppConfigurator],
1716
+ template: `
1717
+ <div class="fixed flex gap-4 top-8 right-8">
1718
+ <button smzButton type="button" (click)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'fa-solid fa-moon' : 'fa-solid fa-sun'" severity="secondary"></button>
1719
+ <div class="relative">
1720
+ <button smzButton icon="fa-solid fa-palette" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true" type="button" rounded></button>
1721
+ <app-configurator />
1722
+ </div>
1723
+ </div>
1858
1724
  `
1859
1725
  }]
1860
1726
  }] });
@@ -1878,7 +1744,7 @@ class ErrorPagesConfigService {
1878
1744
  ]
1879
1745
  },
1880
1746
  access: {
1881
- icon: 'pi pi-fw pi-lock',
1747
+ icon: 'fa-solid fa-fw fa-lock',
1882
1748
  title: 'Acesso restrito',
1883
1749
  message: 'Acesso restrito',
1884
1750
  imagePath: 'assets/images/asset-access.svg',
@@ -1893,7 +1759,7 @@ class ErrorPagesConfigService {
1893
1759
  ]
1894
1760
  },
1895
1761
  error: {
1896
- icon: 'pi pi-fw pi-exclamation-circle',
1762
+ icon: 'fa-solid fa-fw fa-circle-exclamation',
1897
1763
  title: 'Ocorreu um erro',
1898
1764
  message: 'Ocorreu um erro ao carregar a página.',
1899
1765
  imagePath: 'assets/images/asset-error.svg',
@@ -1907,7 +1773,7 @@ class ErrorPagesConfigService {
1907
1773
  },
1908
1774
  ]
1909
1775
  }
1910
- }, ...(ngDevMode ? [{ debugName: "config" }] : /* istanbul ignore next */ []));
1776
+ }, ...(ngDevMode ? [{ debugName: "config" }] : []));
1911
1777
  // Método para atualizar dinamicamente a configuração de forma merge
1912
1778
  updateConfig(newConfig) {
1913
1779
  this.config.update((currentConfig) => ({
@@ -1919,18 +1785,18 @@ class ErrorPagesConfigService {
1919
1785
  error: { ...currentConfig.error, ...newConfig.error }
1920
1786
  }));
1921
1787
  }
1922
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ErrorPagesConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1923
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ErrorPagesConfigService, providedIn: 'root' });
1788
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ErrorPagesConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1789
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ErrorPagesConfigService, providedIn: 'root' });
1924
1790
  }
1925
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ErrorPagesConfigService, decorators: [{
1791
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ErrorPagesConfigService, decorators: [{
1926
1792
  type: Injectable,
1927
1793
  args: [{ providedIn: 'root' }]
1928
1794
  }] });
1929
1795
 
1930
1796
  class AccessPageComponent {
1931
1797
  config = inject(ErrorPagesConfigService).config();
1932
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AccessPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1933
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: AccessPageComponent, isStandalone: true, selector: "app-access", ngImport: i0, template: `
1798
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AccessPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1799
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AccessPageComponent, isStandalone: true, selector: "app-access", ngImport: i0, template: `
1934
1800
  <div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
1935
1801
 
1936
1802
  <div class="grid justify-center items-center col-12 lg:col-6 grid-nogutter h-full bg-surface-ground">
@@ -1940,7 +1806,7 @@ class AccessPageComponent {
1940
1806
  <div class="col-12 mb-[2em] max-w-prose p-0 text-[1.4em] font-medium leading-relaxed text-text-color">{{ config.access.message }}</div>
1941
1807
  <div class="grid grid-nogutter items-center justify-start gap-2">
1942
1808
  @for (button of config.access.buttons; track button) {
1943
- <p-button [label]="button.label" [routerLink]="button.url" (onClick)="button.command()" class="mt-8" [severity]="button.severity" />
1809
+ <button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
1944
1810
  }
1945
1811
  </div>
1946
1812
  </div>
@@ -1950,14 +1816,14 @@ class AccessPageComponent {
1950
1816
  <img class="m-0 h-screen w-full object-cover p-0" [src]="config.access.backgroundPath" alt="" />
1951
1817
  </div>
1952
1818
  </div>
1953
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: RippleModule }] });
1819
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: SmzButtonComponent, selector: "button[smzButton], a[smzButton]", inputs: ["label", "icon", "iconPosition", "severity", "variant", "size", "text", "outlined", "rounded", "loading", "styleClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
1954
1820
  }
1955
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AccessPageComponent, decorators: [{
1821
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AccessPageComponent, decorators: [{
1956
1822
  type: Component,
1957
1823
  args: [{
1958
1824
  selector: 'app-access',
1959
1825
  standalone: true,
1960
- imports: [CommonModule, ButtonModule, RouterModule, RippleModule, ButtonModule],
1826
+ imports: [CommonModule, SmzButtonComponent, RouterModule, SmzRippleDirective, SmzButtonComponent],
1961
1827
  template: `
1962
1828
  <div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
1963
1829
 
@@ -1968,7 +1834,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1968
1834
  <div class="col-12 mb-[2em] max-w-prose p-0 text-[1.4em] font-medium leading-relaxed text-text-color">{{ config.access.message }}</div>
1969
1835
  <div class="grid grid-nogutter items-center justify-start gap-2">
1970
1836
  @for (button of config.access.buttons; track button) {
1971
- <p-button [label]="button.label" [routerLink]="button.url" (onClick)="button.command()" class="mt-8" [severity]="button.severity" />
1837
+ <button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
1972
1838
  }
1973
1839
  </div>
1974
1840
  </div>
@@ -1984,8 +1850,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1984
1850
 
1985
1851
  class ErrorPageComponent {
1986
1852
  config = inject(ErrorPagesConfigService).config();
1987
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ErrorPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1988
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: ErrorPageComponent, isStandalone: true, selector: "app-error", ngImport: i0, template: `
1853
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ErrorPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1854
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: ErrorPageComponent, isStandalone: true, selector: "app-error", ngImport: i0, template: `
1989
1855
  <div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
1990
1856
 
1991
1857
  <div class="grid justify-center items-center col-12 lg:col-6 grid-nogutter h-full bg-surface-ground">
@@ -1995,7 +1861,7 @@ class ErrorPageComponent {
1995
1861
  <div class="col-12 mb-[2em] max-w-prose p-0 text-[1.4em] font-medium leading-relaxed text-text-color">{{ config.error.message }}</div>
1996
1862
  <div class="grid grid-nogutter items-center justify-start gap-2">
1997
1863
  @for (button of config.error.buttons; track button) {
1998
- <p-button [label]="button.label" [routerLink]="button.url" (onClick)="button.command()" class="mt-8" [severity]="button.severity" />
1864
+ <button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
1999
1865
  }
2000
1866
  </div>
2001
1867
  </div>
@@ -2005,13 +1871,13 @@ class ErrorPageComponent {
2005
1871
  <img class="m-0 h-screen w-full object-cover p-0" [src]="config.error.backgroundPath" alt="" />
2006
1872
  </div>
2007
1873
  </div>
2008
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: RippleModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
1874
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: SmzButtonComponent, selector: "button[smzButton], a[smzButton]", inputs: ["label", "icon", "iconPosition", "severity", "variant", "size", "text", "outlined", "rounded", "loading", "styleClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
2009
1875
  }
2010
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ErrorPageComponent, decorators: [{
1876
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ErrorPageComponent, decorators: [{
2011
1877
  type: Component,
2012
1878
  args: [{
2013
1879
  selector: 'app-error',
2014
- imports: [CommonModule, ButtonModule, RippleModule, RouterModule, ButtonModule],
1880
+ imports: [CommonModule, SmzButtonComponent, SmzRippleDirective, RouterModule, SmzButtonComponent],
2015
1881
  standalone: true,
2016
1882
  template: `
2017
1883
  <div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
@@ -2023,7 +1889,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
2023
1889
  <div class="col-12 mb-[2em] max-w-prose p-0 text-[1.4em] font-medium leading-relaxed text-text-color">{{ config.error.message }}</div>
2024
1890
  <div class="grid grid-nogutter items-center justify-start gap-2">
2025
1891
  @for (button of config.error.buttons; track button) {
2026
- <p-button [label]="button.label" [routerLink]="button.url" (onClick)="button.command()" class="mt-8" [severity]="button.severity" />
1892
+ <button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
2027
1893
  }
2028
1894
  </div>
2029
1895
  </div>
@@ -2039,8 +1905,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
2039
1905
 
2040
1906
  class NotfoundPageComponent {
2041
1907
  config = inject(ErrorPagesConfigService).config();
2042
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: NotfoundPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2043
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: NotfoundPageComponent, isStandalone: true, selector: "app-notfound", ngImport: i0, template: `
1908
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: NotfoundPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1909
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: NotfoundPageComponent, isStandalone: true, selector: "app-notfound", ngImport: i0, template: `
2044
1910
  <div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
2045
1911
 
2046
1912
  <div class="grid justify-center items-center col-12 lg:col-6 grid-nogutter h-full bg-surface-ground">
@@ -2070,13 +1936,7 @@ class NotfoundPageComponent {
2070
1936
 
2071
1937
  <div class="col-12 grid grid-nogutter items-center justify-start gap-2">
2072
1938
  @for (button of config.notfound.buttons; track button.url) {
2073
- <p-button
2074
- [label]="button.label"
2075
- [routerLink]="button.url"
2076
- (onClick)="button.command()"
2077
- class="mt-8"
2078
- [severity]="button.severity"
2079
- />
1939
+ <button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
2080
1940
  }
2081
1941
  </div>
2082
1942
  </div>
@@ -2090,14 +1950,14 @@ class NotfoundPageComponent {
2090
1950
  />
2091
1951
  </div>
2092
1952
  </div>
2093
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: RippleModule }] });
1953
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: SmzButtonComponent, selector: "button[smzButton], a[smzButton]", inputs: ["label", "icon", "iconPosition", "severity", "variant", "size", "text", "outlined", "rounded", "loading", "styleClass"] }] });
2094
1954
  }
2095
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: NotfoundPageComponent, decorators: [{
1955
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: NotfoundPageComponent, decorators: [{
2096
1956
  type: Component,
2097
1957
  args: [{
2098
1958
  selector: 'app-notfound',
2099
1959
  standalone: true,
2100
- imports: [CommonModule, RouterModule, ButtonModule, RippleModule],
1960
+ imports: [CommonModule, RouterModule, SmzButtonComponent, SmzRippleDirective],
2101
1961
  template: `
2102
1962
  <div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
2103
1963
 
@@ -2128,13 +1988,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
2128
1988
 
2129
1989
  <div class="col-12 grid grid-nogutter items-center justify-start gap-2">
2130
1990
  @for (button of config.notfound.buttons; track button.url) {
2131
- <p-button
2132
- [label]="button.label"
2133
- [routerLink]="button.url"
2134
- (onClick)="button.command()"
2135
- class="mt-8"
2136
- [severity]="button.severity"
2137
- />
1991
+ <button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
2138
1992
  }
2139
1993
  </div>
2140
1994
  </div>