@ngx-smz/layout 21.1.20 → 21.2.0

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.
@@ -29,6 +29,7 @@ import { RippleModule } from 'primeng/ripple';
29
29
 
30
30
  /**
31
31
  * Clones the menu tree and sets `visible: false` where the host denies access via `hasClaim`.
32
+ * Parent items with a submenu are also hidden when every child is non-visible (e.g. all denied by claims).
32
33
  * Layout shells only need `visible` / `isVisible`; authorization stays in the injected callback.
33
34
  */
34
35
  function cloneMenuItemsWithClaimVisibility(items, hasClaim) {
@@ -47,6 +48,13 @@ function cloneMenuItemWithClaimVisibility(item, hasClaim) {
47
48
  if (claims != null && claims.length > 0 && hasClaim != null && !hasClaim(claims)) {
48
49
  cloned.visible = false;
49
50
  }
51
+ const nestedItems = cloned.items;
52
+ if (nestedItems != null && nestedItems.length > 0) {
53
+ const hasAnyVisibleChild = nestedItems.some((child) => child.visible !== false);
54
+ if (!hasAnyVisibleChild) {
55
+ cloned.visible = false;
56
+ }
57
+ }
50
58
  return cloned;
51
59
  }
52
60
 
@@ -54,32 +62,32 @@ class SmzUILayout {
54
62
  /**
55
63
  * Writable menu graph from the host (`SMZ_UI_LAYOUT_CONFIG.sidebar`). Mutations here trigger {@link sidebar}.
56
64
  */
57
- sidebarWritable = signal([], ...(ngDevMode ? [{ debugName: "sidebarWritable" }] : /* istanbul ignore next */ []));
65
+ sidebarWritable = signal([], ...(ngDevMode ? [{ debugName: "sidebarWritable" }] : []));
58
66
  /**
59
67
  * Menu prepared for shells such as Hephaestus: entries denied by {@link SmzUILayoutConfigType.hasClaim}
60
68
  * use `visible: false` so templates only need visibility rules.
61
69
  */
62
- sidebar = computed(() => cloneMenuItemsWithClaimVisibility(this.sidebarWritable(), this.layoutFeature?.hasClaim), ...(ngDevMode ? [{ debugName: "sidebar" }] : /* istanbul ignore next */ []));
70
+ sidebar = computed(() => cloneMenuItemsWithClaimVisibility(this.sidebarWritable(), this.layoutFeature?.hasClaim), ...(ngDevMode ? [{ debugName: "sidebar" }] : []));
63
71
  layoutFeature = null;
64
- footer = signal({}, ...(ngDevMode ? [{ debugName: "footer" }] : /* istanbul ignore next */ []));
72
+ footer = signal({}, ...(ngDevMode ? [{ debugName: "footer" }] : []));
65
73
  topbar = signal({
66
74
  showMenuToggle: true,
67
75
  showBackButton: true,
68
- }, ...(ngDevMode ? [{ debugName: "topbar" }] : /* istanbul ignore next */ []));
76
+ }, ...(ngDevMode ? [{ debugName: "topbar" }] : []));
69
77
  layout = signal({
70
78
  preset: 'Aura',
71
79
  primary: 'orange',
72
80
  surface: null,
73
81
  darkTheme: false,
74
82
  menuMode: 'static'
75
- }, ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
83
+ }, ...(ngDevMode ? [{ debugName: "layout" }] : []));
76
84
  state = signal({
77
85
  staticMenuDesktopInactive: false,
78
86
  overlayMenuActive: false,
79
87
  configSidebarVisible: false,
80
88
  staticMenuMobileActive: false,
81
89
  menuHoverActive: false
82
- }, ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
90
+ }, ...(ngDevMode ? [{ debugName: "state" }] : []));
83
91
  setConfig(config) {
84
92
  const { sidebar, footer, topbar } = config || {};
85
93
  this.layoutFeature = config ?? null;
@@ -93,10 +101,10 @@ class SmzUILayout {
93
101
  this.topbar = topbar;
94
102
  }
95
103
  }
96
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzUILayout, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
97
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzUILayout, providedIn: 'root' });
104
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzUILayout, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
105
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzUILayout, providedIn: 'root' });
98
106
  }
99
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzUILayout, decorators: [{
107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzUILayout, decorators: [{
100
108
  type: Injectable,
101
109
  args: [{ providedIn: 'root' }]
102
110
  }] });
@@ -265,13 +273,13 @@ class LayoutService {
265
273
  resetSource$ = this.resetSource.asObservable();
266
274
  configUpdate$ = this.configUpdate.asObservable();
267
275
  overlayOpen$ = this.overlayOpen.asObservable();
268
- theme = computed(() => (this.layoutConfig()?.darkTheme ? 'light' : 'dark'), ...(ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ []));
269
- isSidebarActive = computed(() => this.layoutState().overlayMenuActive || this.layoutState().staticMenuMobileActive, ...(ngDevMode ? [{ debugName: "isSidebarActive" }] : /* istanbul ignore next */ []));
270
- isDarkTheme = computed(() => this.layoutConfig().darkTheme, ...(ngDevMode ? [{ debugName: "isDarkTheme" }] : /* istanbul ignore next */ []));
271
- getPrimary = computed(() => this.layoutConfig().primary, ...(ngDevMode ? [{ debugName: "getPrimary" }] : /* istanbul ignore next */ []));
272
- getSurface = computed(() => this.layoutConfig().surface, ...(ngDevMode ? [{ debugName: "getSurface" }] : /* istanbul ignore next */ []));
273
- isOverlay = computed(() => this.layoutConfig().menuMode === 'overlay', ...(ngDevMode ? [{ debugName: "isOverlay" }] : /* istanbul ignore next */ []));
274
- transitionComplete = signal(false, ...(ngDevMode ? [{ debugName: "transitionComplete" }] : /* istanbul ignore next */ []));
276
+ theme = computed(() => (this.layoutConfig()?.darkTheme ? 'light' : 'dark'), ...(ngDevMode ? [{ debugName: "theme" }] : []));
277
+ isSidebarActive = computed(() => this.layoutState().overlayMenuActive || this.layoutState().staticMenuMobileActive, ...(ngDevMode ? [{ debugName: "isSidebarActive" }] : []));
278
+ isDarkTheme = computed(() => this.layoutConfig().darkTheme, ...(ngDevMode ? [{ debugName: "isDarkTheme" }] : []));
279
+ getPrimary = computed(() => this.layoutConfig().primary, ...(ngDevMode ? [{ debugName: "getPrimary" }] : []));
280
+ getSurface = computed(() => this.layoutConfig().surface, ...(ngDevMode ? [{ debugName: "getSurface" }] : []));
281
+ isOverlay = computed(() => this.layoutConfig().menuMode === 'overlay', ...(ngDevMode ? [{ debugName: "isOverlay" }] : []));
282
+ transitionComplete = signal(false, ...(ngDevMode ? [{ debugName: "transitionComplete" }] : []));
275
283
  initialized = false;
276
284
  constructor() {
277
285
  effect(() => {
@@ -355,10 +363,10 @@ class LayoutService {
355
363
  reset() {
356
364
  this.resetSource.next(true);
357
365
  }
358
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
359
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutService, providedIn: 'root' });
366
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: LayoutService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
367
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: LayoutService, providedIn: 'root' });
360
368
  }
361
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutService, decorators: [{
369
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: LayoutService, decorators: [{
362
370
  type: Injectable,
363
371
  args: [{
364
372
  providedIn: 'root'
@@ -377,7 +385,7 @@ class AppConfigurator {
377
385
  platformId = inject(PLATFORM_ID);
378
386
  primeNG = inject(PrimeNG);
379
387
  presets = Object.keys(presets);
380
- showMenuModeButton = signal(!this.router.url.includes('auth'), ...(ngDevMode ? [{ debugName: "showMenuModeButton" }] : /* istanbul ignore next */ []));
388
+ showMenuModeButton = signal(!this.router.url.includes('auth'), ...(ngDevMode ? [{ debugName: "showMenuModeButton" }] : []));
381
389
  menuModeOptions = [
382
390
  { label: 'Static', value: 'static' },
383
391
  { label: 'Overlay', value: 'overlay' }
@@ -528,10 +536,10 @@ class AppConfigurator {
528
536
  ];
529
537
  selectedPrimaryColor = computed(() => {
530
538
  return this.layoutService.layoutConfig().primary;
531
- }, ...(ngDevMode ? [{ debugName: "selectedPrimaryColor" }] : /* istanbul ignore next */ []));
532
- selectedSurfaceColor = computed(() => this.layoutService.layoutConfig().surface, ...(ngDevMode ? [{ debugName: "selectedSurfaceColor" }] : /* istanbul ignore next */ []));
533
- selectedPreset = computed(() => this.layoutService.layoutConfig().preset, ...(ngDevMode ? [{ debugName: "selectedPreset" }] : /* istanbul ignore next */ []));
534
- menuMode = computed(() => this.layoutService.layoutConfig().menuMode, ...(ngDevMode ? [{ debugName: "menuMode" }] : /* istanbul ignore next */ []));
539
+ }, ...(ngDevMode ? [{ debugName: "selectedPrimaryColor" }] : []));
540
+ selectedSurfaceColor = computed(() => this.layoutService.layoutConfig().surface, ...(ngDevMode ? [{ debugName: "selectedSurfaceColor" }] : []));
541
+ selectedPreset = computed(() => this.layoutService.layoutConfig().preset, ...(ngDevMode ? [{ debugName: "selectedPreset" }] : []));
542
+ menuMode = computed(() => this.layoutService.layoutConfig().menuMode, ...(ngDevMode ? [{ debugName: "menuMode" }] : []));
535
543
  primaryColors = computed(() => {
536
544
  const presetPalette = presets[this.layoutService.layoutConfig().preset].primitive;
537
545
  const colors = ['emerald', 'green', 'lime', 'orange', 'amber', 'yellow', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose'];
@@ -543,7 +551,7 @@ class AppConfigurator {
543
551
  });
544
552
  });
545
553
  return palettes;
546
- }, ...(ngDevMode ? [{ debugName: "primaryColors" }] : /* istanbul ignore next */ []));
554
+ }, ...(ngDevMode ? [{ debugName: "primaryColors" }] : []));
547
555
  getPresetExt() {
548
556
  const color = this.primaryColors().find((c) => c.name === this.selectedPrimaryColor()) || {};
549
557
  const preset = this.layoutService.layoutConfig().preset;
@@ -700,8 +708,8 @@ class AppConfigurator {
700
708
  onMenuModeChange(event) {
701
709
  this.layoutService.layoutConfig.update((prev) => ({ ...prev, menuMode: event }));
702
710
  }
703
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppConfigurator, deps: [], target: i0.ɵɵFactoryTarget.Component });
704
- 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: `
711
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppConfigurator, deps: [], target: i0.ɵɵFactoryTarget.Component });
712
+ 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: `
705
713
  <div class="flex flex-col gap-4">
706
714
  <div>
707
715
  <span class="text-sm text-muted-color font-semibold">Primary</span>
@@ -750,7 +758,7 @@ class AppConfigurator {
750
758
  </div>
751
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"] }] });
752
760
  }
753
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppConfigurator, decorators: [{
761
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppConfigurator, decorators: [{
754
762
  type: Component,
755
763
  args: [{
756
764
  selector: 'app-configurator',
@@ -827,10 +835,10 @@ class InjectComponentService {
827
835
  getComponent(key) {
828
836
  return this.componentRefs.get(key);
829
837
  }
830
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: InjectComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
831
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: InjectComponentService, providedIn: 'root' });
838
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InjectComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
839
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InjectComponentService, providedIn: 'root' });
832
840
  }
833
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: InjectComponentService, decorators: [{
841
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InjectComponentService, decorators: [{
834
842
  type: Injectable,
835
843
  args: [{
836
844
  providedIn: 'root'
@@ -889,10 +897,10 @@ class ComponentInjectorDirective {
889
897
  ngOnDestroy() {
890
898
  this.removeComp();
891
899
  }
892
- 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 });
893
- 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 });
900
+ 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 });
901
+ 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 });
894
902
  }
895
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ComponentInjectorDirective, decorators: [{
903
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ComponentInjectorDirective, decorators: [{
896
904
  type: Directive,
897
905
  args: [{
898
906
  selector: 'ng-template[componentInjector]',
@@ -912,7 +920,7 @@ class SmzLayoutLogging {
912
920
  production: false,
913
921
  level: 'debug',
914
922
  restrictedScopes: []
915
- }, ...(ngDevMode ? [{ debugName: "logging" }] : /* istanbul ignore next */ []));
923
+ }, ...(ngDevMode ? [{ debugName: "logging" }] : []));
916
924
  setConfig(config) {
917
925
  const { logging } = config || {};
918
926
  if (logging) {
@@ -920,10 +928,10 @@ class SmzLayoutLogging {
920
928
  }
921
929
  ;
922
930
  }
923
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzLayoutLogging, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
924
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzLayoutLogging, providedIn: 'root' });
931
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzLayoutLogging, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
932
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzLayoutLogging, providedIn: 'root' });
925
933
  }
926
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzLayoutLogging, decorators: [{
934
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzLayoutLogging, decorators: [{
927
935
  type: Injectable,
928
936
  args: [{ providedIn: 'root' }]
929
937
  }] });
@@ -947,13 +955,13 @@ function provideSmzLayoutLogging(initializers) {
947
955
  // logging.service.ts
948
956
  class LoggingService {
949
957
  configFn = inject(SMZ_LAYOUT_LOGGING_CONFIG).logging;
950
- enabled = signal(this.configFn().enabled, ...(ngDevMode ? [{ debugName: "enabled" }] : /* istanbul ignore next */ []));
958
+ enabled = signal(this.configFn().enabled, ...(ngDevMode ? [{ debugName: "enabled" }] : []));
951
959
  // nível de each log: debug=0, info=1, warn=2, error=3
952
960
  levelRank = { debug: 0, info: 1, warn: 2, error: 3 };
953
961
  /** expose current settings */
954
- isEnabled = computed(() => this.enabled(), ...(ngDevMode ? [{ debugName: "isEnabled" }] : /* istanbul ignore next */ []));
955
- currentLevel = computed(() => this.configFn().level ?? 'debug', ...(ngDevMode ? [{ debugName: "currentLevel" }] : /* istanbul ignore next */ []));
956
- activeScopes = computed(() => this.configFn().restrictedScopes ?? [], ...(ngDevMode ? [{ debugName: "activeScopes" }] : /* istanbul ignore next */ []));
962
+ isEnabled = computed(() => this.enabled(), ...(ngDevMode ? [{ debugName: "isEnabled" }] : []));
963
+ currentLevel = computed(() => this.configFn().level ?? 'debug', ...(ngDevMode ? [{ debugName: "currentLevel" }] : []));
964
+ activeScopes = computed(() => this.configFn().restrictedScopes ?? [], ...(ngDevMode ? [{ debugName: "activeScopes" }] : []));
957
965
  /** toggle logging global */
958
966
  enable() { this.enabled.set(true); }
959
967
  disable() { this.enabled.set(false); }
@@ -1030,10 +1038,10 @@ class LoggingService {
1030
1038
  }
1031
1039
  };
1032
1040
  }
1033
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LoggingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1034
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LoggingService, providedIn: 'root' });
1041
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: LoggingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1042
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: LoggingService, providedIn: 'root' });
1035
1043
  }
1036
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LoggingService, decorators: [{
1044
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: LoggingService, decorators: [{
1037
1045
  type: Injectable,
1038
1046
  args: [{ providedIn: 'root' }]
1039
1047
  }] });
@@ -1049,9 +1057,9 @@ var LoggingScope;
1049
1057
  class NavigationService {
1050
1058
  router = inject(Router);
1051
1059
  location = inject(Location);
1052
- history = signal(['/'], ...(ngDevMode ? [{ debugName: "history" }] : /* istanbul ignore next */ []));
1053
- isPopping = signal(false, ...(ngDevMode ? [{ debugName: "isPopping" }] : /* istanbul ignore next */ []));
1054
- canGoBack = computed(() => this.history().length > 1, ...(ngDevMode ? [{ debugName: "canGoBack" }] : /* istanbul ignore next */ []));
1060
+ history = signal(['/'], ...(ngDevMode ? [{ debugName: "history" }] : []));
1061
+ isPopping = signal(false, ...(ngDevMode ? [{ debugName: "isPopping" }] : []));
1062
+ canGoBack = computed(() => this.history().length > 1, ...(ngDevMode ? [{ debugName: "canGoBack" }] : []));
1055
1063
  loggingService = inject(LoggingService);
1056
1064
  logger = this.loggingService.scoped(LoggingScope.NavigationService);
1057
1065
  constructor() {
@@ -1117,10 +1125,10 @@ class NavigationService {
1117
1125
  });
1118
1126
  this.location.back();
1119
1127
  }
1120
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: NavigationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1121
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: NavigationService, providedIn: 'root' });
1128
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: NavigationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1129
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: NavigationService, providedIn: 'root' });
1122
1130
  }
1123
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: NavigationService, decorators: [{
1131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: NavigationService, decorators: [{
1124
1132
  type: Injectable,
1125
1133
  args: [{ providedIn: 'root' }]
1126
1134
  }], ctorParameters: () => [] });
@@ -1130,11 +1138,11 @@ class PageTitleService {
1130
1138
  loggingService = inject(LoggingService);
1131
1139
  logger = this.loggingService.scoped(LoggingScope.PageTitleService);
1132
1140
  // signal que guarda o título (ou null)
1133
- titleSignal = signal(null, ...(ngDevMode ? [{ debugName: "titleSignal" }] : /* istanbul ignore next */ []));
1141
+ titleSignal = signal(null, ...(ngDevMode ? [{ debugName: "titleSignal" }] : []));
1134
1142
  // string pura para template ('' quando null)
1135
- title = computed(() => this.titleSignal() ?? '', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
1143
+ title = computed(() => this.titleSignal() ?? '', ...(ngDevMode ? [{ debugName: "title" }] : []));
1136
1144
  // boolean para visibilidade (false quando null)
1137
- hasTitle = computed(() => this.titleSignal() !== null, ...(ngDevMode ? [{ debugName: "hasTitle" }] : /* istanbul ignore next */ []));
1145
+ hasTitle = computed(() => this.titleSignal() !== null, ...(ngDevMode ? [{ debugName: "hasTitle" }] : []));
1138
1146
  constructor() {
1139
1147
  // toda vez que uma navegação termina, atualiza o título
1140
1148
  this.router.events
@@ -1159,10 +1167,10 @@ class PageTitleService {
1159
1167
  : null;
1160
1168
  this.titleSignal.set(title);
1161
1169
  }
1162
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: PageTitleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1163
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: PageTitleService, providedIn: 'root' });
1170
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: PageTitleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1171
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: PageTitleService, providedIn: 'root' });
1164
1172
  }
1165
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: PageTitleService, decorators: [{
1173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: PageTitleService, decorators: [{
1166
1174
  type: Injectable,
1167
1175
  args: [{ providedIn: 'root' }]
1168
1176
  }], ctorParameters: () => [] });
@@ -1179,8 +1187,8 @@ class AppTopbar {
1179
1187
  handleMissingImage(event, placeholder) {
1180
1188
  event.target.src = placeholder;
1181
1189
  }
1182
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppTopbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
1183
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: AppTopbar, isStandalone: true, selector: "app-topbar", ngImport: i0, template: `
1190
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppTopbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
1191
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AppTopbar, isStandalone: true, selector: "app-topbar", ngImport: i0, template: `
1184
1192
  @if (data(); as topbar) {
1185
1193
  <div class="layout-topbar">
1186
1194
  <div class="layout-topbar-logo-container">
@@ -1249,23 +1257,25 @@ class AppTopbar {
1249
1257
  <app-configurator></app-configurator>
1250
1258
  </div>
1251
1259
  }
1252
- @for (feature of topbar.features; track feature) {
1253
- <p-menu #menu [model]="feature.menuItems" [popup]="true" />
1254
- @if (feature.avatar && feature.avatar() != null) {
1255
- <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)"/>
1260
+ @if (topbar.showProfileMenu !== false) {
1261
+ @for (feature of topbar.features; track feature) {
1262
+ <p-menu #menu [model]="feature.menuItems" [popup]="true" />
1263
+ @if (feature.avatar && feature.avatar() != null) {
1264
+ <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)"/>
1265
+ }
1266
+ @else {
1267
+ <button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [pTooltip]="feature.tooltip">
1268
+ <i [ngClass]="feature.icon()"></i>
1269
+ </button>
1256
1270
  }
1257
- @else {
1258
- <button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [pTooltip]="feature.tooltip">
1259
- <i [ngClass]="feature.icon()"></i>
1260
- </button>
1261
1271
  }
1262
- }
1272
+ }
1263
1273
  </div>
1264
1274
  </div>
1265
1275
  </div>
1266
1276
  }`, 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 }] });
1267
1277
  }
1268
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppTopbar, decorators: [{
1278
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppTopbar, decorators: [{
1269
1279
  type: Component,
1270
1280
  args: [{
1271
1281
  selector: 'app-topbar',
@@ -1340,17 +1350,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1340
1350
  <app-configurator></app-configurator>
1341
1351
  </div>
1342
1352
  }
1343
- @for (feature of topbar.features; track feature) {
1344
- <p-menu #menu [model]="feature.menuItems" [popup]="true" />
1345
- @if (feature.avatar && feature.avatar() != null) {
1346
- <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)"/>
1353
+ @if (topbar.showProfileMenu !== false) {
1354
+ @for (feature of topbar.features; track feature) {
1355
+ <p-menu #menu [model]="feature.menuItems" [popup]="true" />
1356
+ @if (feature.avatar && feature.avatar() != null) {
1357
+ <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)"/>
1358
+ }
1359
+ @else {
1360
+ <button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [pTooltip]="feature.tooltip">
1361
+ <i [ngClass]="feature.icon()"></i>
1362
+ </button>
1347
1363
  }
1348
- @else {
1349
- <button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [pTooltip]="feature.tooltip">
1350
- <i [ngClass]="feature.icon()"></i>
1351
- </button>
1352
1364
  }
1353
- }
1365
+ }
1354
1366
  </div>
1355
1367
  </div>
1356
1368
  </div>
@@ -1435,8 +1447,8 @@ class AppMenuitem {
1435
1447
  this.menuResetSubscription.unsubscribe();
1436
1448
  }
1437
1449
  }
1438
- 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 });
1439
- 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: `
1450
+ 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 });
1451
+ 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: `
1440
1452
  <ng-container>
1441
1453
  @if (root && item.visible !== false) {
1442
1454
  <div class="layout-menuitem-root-text">{{ item.label }}</div>
@@ -1498,7 +1510,7 @@ class AppMenuitem {
1498
1510
  ])
1499
1511
  ] });
1500
1512
  }
1501
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppMenuitem, decorators: [{
1513
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppMenuitem, decorators: [{
1502
1514
  type: Component,
1503
1515
  args: [{
1504
1516
  // eslint-disable-next-line @angular-eslint/component-selector
@@ -1586,8 +1598,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1586
1598
 
1587
1599
  class AppMenu {
1588
1600
  model = inject(SmzUILayout).sidebar;
1589
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
1590
- 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">
1601
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
1602
+ 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">
1591
1603
  @for (item of model(); track item; let i = $index) {
1592
1604
  @if (!item.separator && item.visible !== false) {
1593
1605
  <li app-menuitem [item]="item" [index]="i" [root]="true"></li>
@@ -1598,7 +1610,7 @@ class AppMenu {
1598
1610
  }
1599
1611
  </ul>`, isInline: true, dependencies: [{ kind: "component", type: AppMenuitem, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey"] }, { kind: "ngmodule", type: RouterModule }] });
1600
1612
  }
1601
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppMenu, decorators: [{
1613
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppMenu, decorators: [{
1602
1614
  type: Component,
1603
1615
  args: [{
1604
1616
  selector: 'app-menu',
@@ -1622,12 +1634,12 @@ class AppSidebar {
1622
1634
  constructor(el) {
1623
1635
  this.el = el;
1624
1636
  }
1625
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppSidebar, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
1626
- 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">
1637
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppSidebar, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
1638
+ 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">
1627
1639
  <app-menu></app-menu>
1628
1640
  </div>`, isInline: true, dependencies: [{ kind: "component", type: AppMenu, selector: "app-menu" }] });
1629
1641
  }
1630
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppSidebar, decorators: [{
1642
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppSidebar, decorators: [{
1631
1643
  type: Component,
1632
1644
  args: [{
1633
1645
  selector: 'app-sidebar',
@@ -1642,8 +1654,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1642
1654
  class AppFooter {
1643
1655
  data = inject(SMZ_UI_LAYOUT_CONFIG).footer;
1644
1656
  layoutService = inject(LayoutService);
1645
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppFooter, deps: [], target: i0.ɵɵFactoryTarget.Component });
1646
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: AppFooter, isStandalone: true, selector: "app-footer", ngImport: i0, template: `
1657
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppFooter, deps: [], target: i0.ɵɵFactoryTarget.Component });
1658
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AppFooter, isStandalone: true, selector: "app-footer", ngImport: i0, template: `
1647
1659
  @if (data(); as footer) {
1648
1660
  <div class="flex items-center justify-between px-0 py-4 gap-4 border-t border-surface-border">
1649
1661
  @if (footer.leftLogoPath?.light && !layoutService.isDarkTheme()) {
@@ -1669,7 +1681,7 @@ class AppFooter {
1669
1681
  }
1670
1682
  `, isInline: true });
1671
1683
  }
1672
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppFooter, decorators: [{
1684
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppFooter, decorators: [{
1673
1685
  type: Component,
1674
1686
  args: [{
1675
1687
  standalone: true,
@@ -1767,7 +1779,8 @@ class AppLayout {
1767
1779
  'layout-static': this.layoutService.layoutConfig().menuMode === 'static',
1768
1780
  'layout-static-inactive': this.layoutService.layoutState().staticMenuDesktopInactive && this.layoutService.layoutConfig().menuMode === 'static',
1769
1781
  'layout-overlay-active': this.layoutService.layoutState().overlayMenuActive,
1770
- 'layout-mobile-active': this.layoutService.layoutState().staticMenuMobileActive
1782
+ 'layout-mobile-active': this.layoutService.layoutState().staticMenuMobileActive,
1783
+ 'layout-sidebar-hidden': this.layoutService.layoutConfig().showSidebar === false
1771
1784
  };
1772
1785
  }
1773
1786
  ngOnDestroy() {
@@ -1778,10 +1791,12 @@ class AppLayout {
1778
1791
  this.menuOutsideClickListener();
1779
1792
  }
1780
1793
  }
1781
- 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 });
1782
- 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">
1794
+ 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 });
1795
+ 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">
1783
1796
  <app-topbar></app-topbar>
1784
- <app-sidebar></app-sidebar>
1797
+ @if (layoutService.layoutConfig().showSidebar !== false) {
1798
+ <app-sidebar></app-sidebar>
1799
+ }
1785
1800
  <div class="layout-main-container">
1786
1801
  <div class="layout-main relative">
1787
1802
  <router-outlet></router-outlet>
@@ -1791,7 +1806,7 @@ class AppLayout {
1791
1806
  <div class="layout-mask animate-fadein"></div>
1792
1807
  </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" }] });
1793
1808
  }
1794
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppLayout, decorators: [{
1809
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppLayout, decorators: [{
1795
1810
  type: Component,
1796
1811
  args: [{
1797
1812
  selector: 'app-layout',
@@ -1799,7 +1814,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1799
1814
  imports: [CommonModule, AppTopbar, AppSidebar, RouterModule, AppFooter],
1800
1815
  template: `<div class="layout-wrapper" [ngClass]="containerClass">
1801
1816
  <app-topbar></app-topbar>
1802
- <app-sidebar></app-sidebar>
1817
+ @if (layoutService.layoutConfig().showSidebar !== false) {
1818
+ <app-sidebar></app-sidebar>
1819
+ }
1803
1820
  <div class="layout-main-container">
1804
1821
  <div class="layout-main relative">
1805
1822
  <router-outlet></router-outlet>
@@ -1819,12 +1836,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1819
1836
 
1820
1837
  class AppFloatingConfigurator {
1821
1838
  LayoutService = inject(LayoutService);
1822
- isDarkTheme = computed(() => this.LayoutService.layoutConfig().darkTheme, ...(ngDevMode ? [{ debugName: "isDarkTheme" }] : /* istanbul ignore next */ []));
1839
+ isDarkTheme = computed(() => this.LayoutService.layoutConfig().darkTheme, ...(ngDevMode ? [{ debugName: "isDarkTheme" }] : []));
1823
1840
  toggleDarkMode() {
1824
1841
  this.LayoutService.layoutConfig.update((state) => ({ ...state, darkTheme: !state.darkTheme }));
1825
1842
  }
1826
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppFloatingConfigurator, deps: [], target: i0.ɵɵFactoryTarget.Component });
1827
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.5", type: AppFloatingConfigurator, isStandalone: true, selector: "app-floating-configurator", ngImport: i0, template: `
1843
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppFloatingConfigurator, deps: [], target: i0.ɵɵFactoryTarget.Component });
1844
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.1", type: AppFloatingConfigurator, isStandalone: true, selector: "app-floating-configurator", ngImport: i0, template: `
1828
1845
  <div class="fixed flex gap-4 top-8 right-8">
1829
1846
  <p-button type="button" (onClick)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'pi pi-moon' : 'pi pi-sun'" severity="secondary" />
1830
1847
  <div class="relative">
@@ -1834,7 +1851,7 @@ class AppFloatingConfigurator {
1834
1851
  </div>
1835
1852
  `, 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" }] });
1836
1853
  }
1837
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppFloatingConfigurator, decorators: [{
1854
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppFloatingConfigurator, decorators: [{
1838
1855
  type: Component,
1839
1856
  args: [{
1840
1857
  selector: 'app-floating-configurator',
@@ -1899,7 +1916,7 @@ class ErrorPagesConfigService {
1899
1916
  },
1900
1917
  ]
1901
1918
  }
1902
- }, ...(ngDevMode ? [{ debugName: "config" }] : /* istanbul ignore next */ []));
1919
+ }, ...(ngDevMode ? [{ debugName: "config" }] : []));
1903
1920
  // Método para atualizar dinamicamente a configuração de forma merge
1904
1921
  updateConfig(newConfig) {
1905
1922
  this.config.update((currentConfig) => ({
@@ -1911,18 +1928,18 @@ class ErrorPagesConfigService {
1911
1928
  error: { ...currentConfig.error, ...newConfig.error }
1912
1929
  }));
1913
1930
  }
1914
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ErrorPagesConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1915
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ErrorPagesConfigService, providedIn: 'root' });
1931
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ErrorPagesConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1932
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ErrorPagesConfigService, providedIn: 'root' });
1916
1933
  }
1917
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ErrorPagesConfigService, decorators: [{
1934
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ErrorPagesConfigService, decorators: [{
1918
1935
  type: Injectable,
1919
1936
  args: [{ providedIn: 'root' }]
1920
1937
  }] });
1921
1938
 
1922
1939
  class AccessPageComponent {
1923
1940
  config = inject(ErrorPagesConfigService).config();
1924
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AccessPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1925
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: AccessPageComponent, isStandalone: true, selector: "app-access", ngImport: i0, template: `
1941
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AccessPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1942
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AccessPageComponent, isStandalone: true, selector: "app-access", ngImport: i0, template: `
1926
1943
  <div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
1927
1944
 
1928
1945
  <div class="grid justify-center items-center col-12 lg:col-6 grid-nogutter h-full bg-surface-ground">
@@ -1944,7 +1961,7 @@ class AccessPageComponent {
1944
1961
  </div>
1945
1962
  `, 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 }] });
1946
1963
  }
1947
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AccessPageComponent, decorators: [{
1964
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AccessPageComponent, decorators: [{
1948
1965
  type: Component,
1949
1966
  args: [{
1950
1967
  selector: 'app-access',
@@ -1976,8 +1993,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1976
1993
 
1977
1994
  class ErrorPageComponent {
1978
1995
  config = inject(ErrorPagesConfigService).config();
1979
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ErrorPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1980
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: ErrorPageComponent, isStandalone: true, selector: "app-error", ngImport: i0, template: `
1996
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ErrorPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1997
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: ErrorPageComponent, isStandalone: true, selector: "app-error", ngImport: i0, template: `
1981
1998
  <div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
1982
1999
 
1983
2000
  <div class="grid justify-center items-center col-12 lg:col-6 grid-nogutter h-full bg-surface-ground">
@@ -1999,7 +2016,7 @@ class ErrorPageComponent {
1999
2016
  </div>
2000
2017
  `, 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"] }] });
2001
2018
  }
2002
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ErrorPageComponent, decorators: [{
2019
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ErrorPageComponent, decorators: [{
2003
2020
  type: Component,
2004
2021
  args: [{
2005
2022
  selector: 'app-error',
@@ -2031,8 +2048,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
2031
2048
 
2032
2049
  class NotfoundPageComponent {
2033
2050
  config = inject(ErrorPagesConfigService).config();
2034
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: NotfoundPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2035
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: NotfoundPageComponent, isStandalone: true, selector: "app-notfound", ngImport: i0, template: `
2051
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: NotfoundPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2052
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: NotfoundPageComponent, isStandalone: true, selector: "app-notfound", ngImport: i0, template: `
2036
2053
  <div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
2037
2054
 
2038
2055
  <div class="grid justify-center items-center col-12 lg:col-6 grid-nogutter h-full bg-surface-ground">
@@ -2084,7 +2101,7 @@ class NotfoundPageComponent {
2084
2101
  </div>
2085
2102
  `, 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 }] });
2086
2103
  }
2087
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: NotfoundPageComponent, decorators: [{
2104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: NotfoundPageComponent, decorators: [{
2088
2105
  type: Component,
2089
2106
  args: [{
2090
2107
  selector: 'app-notfound',