@ngx-smz/layout 21.1.21 → 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.
@@ -62,32 +62,32 @@ class SmzUILayout {
62
62
  /**
63
63
  * Writable menu graph from the host (`SMZ_UI_LAYOUT_CONFIG.sidebar`). Mutations here trigger {@link sidebar}.
64
64
  */
65
- sidebarWritable = signal([], ...(ngDevMode ? [{ debugName: "sidebarWritable" }] : /* istanbul ignore next */ []));
65
+ sidebarWritable = signal([], ...(ngDevMode ? [{ debugName: "sidebarWritable" }] : []));
66
66
  /**
67
67
  * Menu prepared for shells such as Hephaestus: entries denied by {@link SmzUILayoutConfigType.hasClaim}
68
68
  * use `visible: false` so templates only need visibility rules.
69
69
  */
70
- 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" }] : []));
71
71
  layoutFeature = null;
72
- footer = signal({}, ...(ngDevMode ? [{ debugName: "footer" }] : /* istanbul ignore next */ []));
72
+ footer = signal({}, ...(ngDevMode ? [{ debugName: "footer" }] : []));
73
73
  topbar = signal({
74
74
  showMenuToggle: true,
75
75
  showBackButton: true,
76
- }, ...(ngDevMode ? [{ debugName: "topbar" }] : /* istanbul ignore next */ []));
76
+ }, ...(ngDevMode ? [{ debugName: "topbar" }] : []));
77
77
  layout = signal({
78
78
  preset: 'Aura',
79
79
  primary: 'orange',
80
80
  surface: null,
81
81
  darkTheme: false,
82
82
  menuMode: 'static'
83
- }, ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
83
+ }, ...(ngDevMode ? [{ debugName: "layout" }] : []));
84
84
  state = signal({
85
85
  staticMenuDesktopInactive: false,
86
86
  overlayMenuActive: false,
87
87
  configSidebarVisible: false,
88
88
  staticMenuMobileActive: false,
89
89
  menuHoverActive: false
90
- }, ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
90
+ }, ...(ngDevMode ? [{ debugName: "state" }] : []));
91
91
  setConfig(config) {
92
92
  const { sidebar, footer, topbar } = config || {};
93
93
  this.layoutFeature = config ?? null;
@@ -101,10 +101,10 @@ class SmzUILayout {
101
101
  this.topbar = topbar;
102
102
  }
103
103
  }
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' });
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' });
106
106
  }
107
- 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: [{
108
108
  type: Injectable,
109
109
  args: [{ providedIn: 'root' }]
110
110
  }] });
@@ -273,13 +273,13 @@ class LayoutService {
273
273
  resetSource$ = this.resetSource.asObservable();
274
274
  configUpdate$ = this.configUpdate.asObservable();
275
275
  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 */ []));
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" }] : []));
283
283
  initialized = false;
284
284
  constructor() {
285
285
  effect(() => {
@@ -363,10 +363,10 @@ class LayoutService {
363
363
  reset() {
364
364
  this.resetSource.next(true);
365
365
  }
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' });
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' });
368
368
  }
369
- 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: [{
370
370
  type: Injectable,
371
371
  args: [{
372
372
  providedIn: 'root'
@@ -385,7 +385,7 @@ class AppConfigurator {
385
385
  platformId = inject(PLATFORM_ID);
386
386
  primeNG = inject(PrimeNG);
387
387
  presets = Object.keys(presets);
388
- showMenuModeButton = signal(!this.router.url.includes('auth'), ...(ngDevMode ? [{ debugName: "showMenuModeButton" }] : /* istanbul ignore next */ []));
388
+ showMenuModeButton = signal(!this.router.url.includes('auth'), ...(ngDevMode ? [{ debugName: "showMenuModeButton" }] : []));
389
389
  menuModeOptions = [
390
390
  { label: 'Static', value: 'static' },
391
391
  { label: 'Overlay', value: 'overlay' }
@@ -536,10 +536,10 @@ class AppConfigurator {
536
536
  ];
537
537
  selectedPrimaryColor = computed(() => {
538
538
  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 */ []));
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" }] : []));
543
543
  primaryColors = computed(() => {
544
544
  const presetPalette = presets[this.layoutService.layoutConfig().preset].primitive;
545
545
  const colors = ['emerald', 'green', 'lime', 'orange', 'amber', 'yellow', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose'];
@@ -551,7 +551,7 @@ class AppConfigurator {
551
551
  });
552
552
  });
553
553
  return palettes;
554
- }, ...(ngDevMode ? [{ debugName: "primaryColors" }] : /* istanbul ignore next */ []));
554
+ }, ...(ngDevMode ? [{ debugName: "primaryColors" }] : []));
555
555
  getPresetExt() {
556
556
  const color = this.primaryColors().find((c) => c.name === this.selectedPrimaryColor()) || {};
557
557
  const preset = this.layoutService.layoutConfig().preset;
@@ -708,8 +708,8 @@ class AppConfigurator {
708
708
  onMenuModeChange(event) {
709
709
  this.layoutService.layoutConfig.update((prev) => ({ ...prev, menuMode: event }));
710
710
  }
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: `
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: `
713
713
  <div class="flex flex-col gap-4">
714
714
  <div>
715
715
  <span class="text-sm text-muted-color font-semibold">Primary</span>
@@ -758,7 +758,7 @@ class AppConfigurator {
758
758
  </div>
759
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"] }] });
760
760
  }
761
- 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: [{
762
762
  type: Component,
763
763
  args: [{
764
764
  selector: 'app-configurator',
@@ -835,10 +835,10 @@ class InjectComponentService {
835
835
  getComponent(key) {
836
836
  return this.componentRefs.get(key);
837
837
  }
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' });
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' });
840
840
  }
841
- 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: [{
842
842
  type: Injectable,
843
843
  args: [{
844
844
  providedIn: 'root'
@@ -897,10 +897,10 @@ class ComponentInjectorDirective {
897
897
  ngOnDestroy() {
898
898
  this.removeComp();
899
899
  }
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 });
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 });
902
902
  }
903
- 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: [{
904
904
  type: Directive,
905
905
  args: [{
906
906
  selector: 'ng-template[componentInjector]',
@@ -920,7 +920,7 @@ class SmzLayoutLogging {
920
920
  production: false,
921
921
  level: 'debug',
922
922
  restrictedScopes: []
923
- }, ...(ngDevMode ? [{ debugName: "logging" }] : /* istanbul ignore next */ []));
923
+ }, ...(ngDevMode ? [{ debugName: "logging" }] : []));
924
924
  setConfig(config) {
925
925
  const { logging } = config || {};
926
926
  if (logging) {
@@ -928,10 +928,10 @@ class SmzLayoutLogging {
928
928
  }
929
929
  ;
930
930
  }
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' });
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' });
933
933
  }
934
- 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: [{
935
935
  type: Injectable,
936
936
  args: [{ providedIn: 'root' }]
937
937
  }] });
@@ -955,13 +955,13 @@ function provideSmzLayoutLogging(initializers) {
955
955
  // logging.service.ts
956
956
  class LoggingService {
957
957
  configFn = inject(SMZ_LAYOUT_LOGGING_CONFIG).logging;
958
- enabled = signal(this.configFn().enabled, ...(ngDevMode ? [{ debugName: "enabled" }] : /* istanbul ignore next */ []));
958
+ enabled = signal(this.configFn().enabled, ...(ngDevMode ? [{ debugName: "enabled" }] : []));
959
959
  // nível de each log: debug=0, info=1, warn=2, error=3
960
960
  levelRank = { debug: 0, info: 1, warn: 2, error: 3 };
961
961
  /** 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 */ []));
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" }] : []));
965
965
  /** toggle logging global */
966
966
  enable() { this.enabled.set(true); }
967
967
  disable() { this.enabled.set(false); }
@@ -1038,10 +1038,10 @@ class LoggingService {
1038
1038
  }
1039
1039
  };
1040
1040
  }
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' });
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' });
1043
1043
  }
1044
- 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: [{
1045
1045
  type: Injectable,
1046
1046
  args: [{ providedIn: 'root' }]
1047
1047
  }] });
@@ -1057,9 +1057,9 @@ var LoggingScope;
1057
1057
  class NavigationService {
1058
1058
  router = inject(Router);
1059
1059
  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 */ []));
1060
+ history = signal(['/'], ...(ngDevMode ? [{ debugName: "history" }] : []));
1061
+ isPopping = signal(false, ...(ngDevMode ? [{ debugName: "isPopping" }] : []));
1062
+ canGoBack = computed(() => this.history().length > 1, ...(ngDevMode ? [{ debugName: "canGoBack" }] : []));
1063
1063
  loggingService = inject(LoggingService);
1064
1064
  logger = this.loggingService.scoped(LoggingScope.NavigationService);
1065
1065
  constructor() {
@@ -1125,10 +1125,10 @@ class NavigationService {
1125
1125
  });
1126
1126
  this.location.back();
1127
1127
  }
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' });
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' });
1130
1130
  }
1131
- 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: [{
1132
1132
  type: Injectable,
1133
1133
  args: [{ providedIn: 'root' }]
1134
1134
  }], ctorParameters: () => [] });
@@ -1138,11 +1138,11 @@ class PageTitleService {
1138
1138
  loggingService = inject(LoggingService);
1139
1139
  logger = this.loggingService.scoped(LoggingScope.PageTitleService);
1140
1140
  // signal que guarda o título (ou null)
1141
- titleSignal = signal(null, ...(ngDevMode ? [{ debugName: "titleSignal" }] : /* istanbul ignore next */ []));
1141
+ titleSignal = signal(null, ...(ngDevMode ? [{ debugName: "titleSignal" }] : []));
1142
1142
  // string pura para template ('' quando null)
1143
- title = computed(() => this.titleSignal() ?? '', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
1143
+ title = computed(() => this.titleSignal() ?? '', ...(ngDevMode ? [{ debugName: "title" }] : []));
1144
1144
  // boolean para visibilidade (false quando null)
1145
- hasTitle = computed(() => this.titleSignal() !== null, ...(ngDevMode ? [{ debugName: "hasTitle" }] : /* istanbul ignore next */ []));
1145
+ hasTitle = computed(() => this.titleSignal() !== null, ...(ngDevMode ? [{ debugName: "hasTitle" }] : []));
1146
1146
  constructor() {
1147
1147
  // toda vez que uma navegação termina, atualiza o título
1148
1148
  this.router.events
@@ -1167,10 +1167,10 @@ class PageTitleService {
1167
1167
  : null;
1168
1168
  this.titleSignal.set(title);
1169
1169
  }
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' });
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' });
1172
1172
  }
1173
- 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: [{
1174
1174
  type: Injectable,
1175
1175
  args: [{ providedIn: 'root' }]
1176
1176
  }], ctorParameters: () => [] });
@@ -1187,8 +1187,8 @@ class AppTopbar {
1187
1187
  handleMissingImage(event, placeholder) {
1188
1188
  event.target.src = placeholder;
1189
1189
  }
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: `
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: `
1192
1192
  @if (data(); as topbar) {
1193
1193
  <div class="layout-topbar">
1194
1194
  <div class="layout-topbar-logo-container">
@@ -1257,23 +1257,25 @@ class AppTopbar {
1257
1257
  <app-configurator></app-configurator>
1258
1258
  </div>
1259
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)"/>
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>
1264
1270
  }
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
1271
  }
1270
- }
1272
+ }
1271
1273
  </div>
1272
1274
  </div>
1273
1275
  </div>
1274
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 }] });
1275
1277
  }
1276
- 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: [{
1277
1279
  type: Component,
1278
1280
  args: [{
1279
1281
  selector: 'app-topbar',
@@ -1348,17 +1350,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1348
1350
  <app-configurator></app-configurator>
1349
1351
  </div>
1350
1352
  }
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)"/>
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>
1355
1363
  }
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
1364
  }
1361
- }
1365
+ }
1362
1366
  </div>
1363
1367
  </div>
1364
1368
  </div>
@@ -1443,8 +1447,8 @@ class AppMenuitem {
1443
1447
  this.menuResetSubscription.unsubscribe();
1444
1448
  }
1445
1449
  }
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: `
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: `
1448
1452
  <ng-container>
1449
1453
  @if (root && item.visible !== false) {
1450
1454
  <div class="layout-menuitem-root-text">{{ item.label }}</div>
@@ -1506,7 +1510,7 @@ class AppMenuitem {
1506
1510
  ])
1507
1511
  ] });
1508
1512
  }
1509
- 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: [{
1510
1514
  type: Component,
1511
1515
  args: [{
1512
1516
  // eslint-disable-next-line @angular-eslint/component-selector
@@ -1594,8 +1598,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1594
1598
 
1595
1599
  class AppMenu {
1596
1600
  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">
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">
1599
1603
  @for (item of model(); track item; let i = $index) {
1600
1604
  @if (!item.separator && item.visible !== false) {
1601
1605
  <li app-menuitem [item]="item" [index]="i" [root]="true"></li>
@@ -1606,7 +1610,7 @@ class AppMenu {
1606
1610
  }
1607
1611
  </ul>`, isInline: true, dependencies: [{ kind: "component", type: AppMenuitem, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey"] }, { kind: "ngmodule", type: RouterModule }] });
1608
1612
  }
1609
- 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: [{
1610
1614
  type: Component,
1611
1615
  args: [{
1612
1616
  selector: 'app-menu',
@@ -1630,12 +1634,12 @@ class AppSidebar {
1630
1634
  constructor(el) {
1631
1635
  this.el = el;
1632
1636
  }
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">
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">
1635
1639
  <app-menu></app-menu>
1636
1640
  </div>`, isInline: true, dependencies: [{ kind: "component", type: AppMenu, selector: "app-menu" }] });
1637
1641
  }
1638
- 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: [{
1639
1643
  type: Component,
1640
1644
  args: [{
1641
1645
  selector: 'app-sidebar',
@@ -1650,8 +1654,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1650
1654
  class AppFooter {
1651
1655
  data = inject(SMZ_UI_LAYOUT_CONFIG).footer;
1652
1656
  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: `
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: `
1655
1659
  @if (data(); as footer) {
1656
1660
  <div class="flex items-center justify-between px-0 py-4 gap-4 border-t border-surface-border">
1657
1661
  @if (footer.leftLogoPath?.light && !layoutService.isDarkTheme()) {
@@ -1677,7 +1681,7 @@ class AppFooter {
1677
1681
  }
1678
1682
  `, isInline: true });
1679
1683
  }
1680
- 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: [{
1681
1685
  type: Component,
1682
1686
  args: [{
1683
1687
  standalone: true,
@@ -1775,7 +1779,8 @@ class AppLayout {
1775
1779
  'layout-static': this.layoutService.layoutConfig().menuMode === 'static',
1776
1780
  'layout-static-inactive': this.layoutService.layoutState().staticMenuDesktopInactive && this.layoutService.layoutConfig().menuMode === 'static',
1777
1781
  'layout-overlay-active': this.layoutService.layoutState().overlayMenuActive,
1778
- 'layout-mobile-active': this.layoutService.layoutState().staticMenuMobileActive
1782
+ 'layout-mobile-active': this.layoutService.layoutState().staticMenuMobileActive,
1783
+ 'layout-sidebar-hidden': this.layoutService.layoutConfig().showSidebar === false
1779
1784
  };
1780
1785
  }
1781
1786
  ngOnDestroy() {
@@ -1786,10 +1791,12 @@ class AppLayout {
1786
1791
  this.menuOutsideClickListener();
1787
1792
  }
1788
1793
  }
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">
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">
1791
1796
  <app-topbar></app-topbar>
1792
- <app-sidebar></app-sidebar>
1797
+ @if (layoutService.layoutConfig().showSidebar !== false) {
1798
+ <app-sidebar></app-sidebar>
1799
+ }
1793
1800
  <div class="layout-main-container">
1794
1801
  <div class="layout-main relative">
1795
1802
  <router-outlet></router-outlet>
@@ -1799,7 +1806,7 @@ class AppLayout {
1799
1806
  <div class="layout-mask animate-fadein"></div>
1800
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" }] });
1801
1808
  }
1802
- 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: [{
1803
1810
  type: Component,
1804
1811
  args: [{
1805
1812
  selector: 'app-layout',
@@ -1807,7 +1814,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1807
1814
  imports: [CommonModule, AppTopbar, AppSidebar, RouterModule, AppFooter],
1808
1815
  template: `<div class="layout-wrapper" [ngClass]="containerClass">
1809
1816
  <app-topbar></app-topbar>
1810
- <app-sidebar></app-sidebar>
1817
+ @if (layoutService.layoutConfig().showSidebar !== false) {
1818
+ <app-sidebar></app-sidebar>
1819
+ }
1811
1820
  <div class="layout-main-container">
1812
1821
  <div class="layout-main relative">
1813
1822
  <router-outlet></router-outlet>
@@ -1827,12 +1836,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1827
1836
 
1828
1837
  class AppFloatingConfigurator {
1829
1838
  LayoutService = inject(LayoutService);
1830
- isDarkTheme = computed(() => this.LayoutService.layoutConfig().darkTheme, ...(ngDevMode ? [{ debugName: "isDarkTheme" }] : /* istanbul ignore next */ []));
1839
+ isDarkTheme = computed(() => this.LayoutService.layoutConfig().darkTheme, ...(ngDevMode ? [{ debugName: "isDarkTheme" }] : []));
1831
1840
  toggleDarkMode() {
1832
1841
  this.LayoutService.layoutConfig.update((state) => ({ ...state, darkTheme: !state.darkTheme }));
1833
1842
  }
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: `
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: `
1836
1845
  <div class="fixed flex gap-4 top-8 right-8">
1837
1846
  <p-button type="button" (onClick)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'pi pi-moon' : 'pi pi-sun'" severity="secondary" />
1838
1847
  <div class="relative">
@@ -1842,7 +1851,7 @@ class AppFloatingConfigurator {
1842
1851
  </div>
1843
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" }] });
1844
1853
  }
1845
- 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: [{
1846
1855
  type: Component,
1847
1856
  args: [{
1848
1857
  selector: 'app-floating-configurator',
@@ -1907,7 +1916,7 @@ class ErrorPagesConfigService {
1907
1916
  },
1908
1917
  ]
1909
1918
  }
1910
- }, ...(ngDevMode ? [{ debugName: "config" }] : /* istanbul ignore next */ []));
1919
+ }, ...(ngDevMode ? [{ debugName: "config" }] : []));
1911
1920
  // Método para atualizar dinamicamente a configuração de forma merge
1912
1921
  updateConfig(newConfig) {
1913
1922
  this.config.update((currentConfig) => ({
@@ -1919,18 +1928,18 @@ class ErrorPagesConfigService {
1919
1928
  error: { ...currentConfig.error, ...newConfig.error }
1920
1929
  }));
1921
1930
  }
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' });
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' });
1924
1933
  }
1925
- 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: [{
1926
1935
  type: Injectable,
1927
1936
  args: [{ providedIn: 'root' }]
1928
1937
  }] });
1929
1938
 
1930
1939
  class AccessPageComponent {
1931
1940
  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: `
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: `
1934
1943
  <div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
1935
1944
 
1936
1945
  <div class="grid justify-center items-center col-12 lg:col-6 grid-nogutter h-full bg-surface-ground">
@@ -1952,7 +1961,7 @@ class AccessPageComponent {
1952
1961
  </div>
1953
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 }] });
1954
1963
  }
1955
- 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: [{
1956
1965
  type: Component,
1957
1966
  args: [{
1958
1967
  selector: 'app-access',
@@ -1984,8 +1993,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
1984
1993
 
1985
1994
  class ErrorPageComponent {
1986
1995
  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: `
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: `
1989
1998
  <div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
1990
1999
 
1991
2000
  <div class="grid justify-center items-center col-12 lg:col-6 grid-nogutter h-full bg-surface-ground">
@@ -2007,7 +2016,7 @@ class ErrorPageComponent {
2007
2016
  </div>
2008
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"] }] });
2009
2018
  }
2010
- 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: [{
2011
2020
  type: Component,
2012
2021
  args: [{
2013
2022
  selector: 'app-error',
@@ -2039,8 +2048,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
2039
2048
 
2040
2049
  class NotfoundPageComponent {
2041
2050
  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: `
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: `
2044
2053
  <div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
2045
2054
 
2046
2055
  <div class="grid justify-center items-center col-12 lg:col-6 grid-nogutter h-full bg-surface-ground">
@@ -2092,7 +2101,7 @@ class NotfoundPageComponent {
2092
2101
  </div>
2093
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 }] });
2094
2103
  }
2095
- 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: [{
2096
2105
  type: Component,
2097
2106
  args: [{
2098
2107
  selector: 'app-notfound',