@ngx-smz/layout 19.4.3 → 21.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ngx-smz-layout.mjs +491 -489
- package/fesm2022/ngx-smz-layout.mjs.map +1 -1
- package/package.json +4 -10
- package/resources/layout/legacy-layout.scss +3 -0
- package/resources/layout/variables/_legacy-common.scss +55 -0
- package/types/ngx-smz-layout.d.ts +350 -0
- package/index.d.ts +0 -5
- package/lib/config/config.d.ts +0 -25
- package/lib/config/index.d.ts +0 -2
- package/lib/config/provide.d.ts +0 -4
- package/lib/errors/access.d.ts +0 -6
- package/lib/errors/error.d.ts +0 -6
- package/lib/errors/errors-pages-service.d.ts +0 -41
- package/lib/errors/errors.routes.d.ts +0 -2
- package/lib/errors/notfound.d.ts +0 -6
- package/lib/layout/component/app.configurator.d.ts +0 -97
- package/lib/layout/component/app.floatingconfigurator.d.ts +0 -9
- package/lib/layout/component/app.footer.d.ts +0 -21
- package/lib/layout/component/app.layout.d.ts +0 -31
- package/lib/layout/component/app.menu.d.ts +0 -9
- package/lib/layout/component/app.menuitem.d.ts +0 -27
- package/lib/layout/component/app.sidebar.d.ts +0 -8
- package/lib/layout/component/app.topbar.d.ts +0 -46
- package/lib/layout/service/layout.service.d.ts +0 -54
- package/lib/layout/service/navigation.service.d.ts +0 -17
- package/lib/layout/service/page-title.service.d.ts +0 -16
- package/lib/logging/config/config.d.ts +0 -12
- package/lib/logging/config/index.d.ts +0 -2
- package/lib/logging/config/provide.d.ts +0 -4
- package/lib/logging/logging-config.d.ts +0 -7
- package/lib/logging/logging-scope.d.ts +0 -4
- package/lib/logging/logging.service.d.ts +0 -33
- package/lib/shared/component-injector/directives/component-injector.directive.d.ts +0 -20
- package/lib/shared/component-injector/interfaces/inject-content.d.ts +0 -8
- package/lib/shared/component-injector/interfaces/injectable.d.ts +0 -35
- package/lib/shared/component-injector/services/inject-component.service.d.ts +0 -12
- package/public-api.d.ts +0 -17
|
@@ -9,10 +9,10 @@ import * as i3$1 from 'primeng/styleclass';
|
|
|
9
9
|
import { StyleClassModule } from 'primeng/styleclass';
|
|
10
10
|
import * as i2 from '@angular/forms';
|
|
11
11
|
import { FormsModule } from '@angular/forms';
|
|
12
|
-
import { updatePreset, updateSurfacePalette, $t } from '@
|
|
13
|
-
import Aura from '@
|
|
14
|
-
import Lara from '@
|
|
15
|
-
import Nora from '@
|
|
12
|
+
import { updatePreset, updateSurfacePalette, $t } from '@primeuix/themes';
|
|
13
|
+
import Aura from '@primeuix/themes/aura';
|
|
14
|
+
import Lara from '@primeuix/themes/lara';
|
|
15
|
+
import Nora from '@primeuix/themes/nora';
|
|
16
16
|
import { PrimeNG } from 'primeng/config';
|
|
17
17
|
import * as i3 from 'primeng/selectbutton';
|
|
18
18
|
import { SelectButtonModule } from 'primeng/selectbutton';
|
|
@@ -29,26 +29,26 @@ import { RippleModule } from 'primeng/ripple';
|
|
|
29
29
|
|
|
30
30
|
class SmzUILayout {
|
|
31
31
|
hasClaim = (claims) => false;
|
|
32
|
-
sidebar = signal([]);
|
|
33
|
-
footer = signal({});
|
|
32
|
+
sidebar = signal([], ...(ngDevMode ? [{ debugName: "sidebar" }] : []));
|
|
33
|
+
footer = signal({}, ...(ngDevMode ? [{ debugName: "footer" }] : []));
|
|
34
34
|
topbar = signal({
|
|
35
35
|
showMenuToggle: true,
|
|
36
36
|
showBackButton: true,
|
|
37
|
-
});
|
|
37
|
+
}, ...(ngDevMode ? [{ debugName: "topbar" }] : []));
|
|
38
38
|
layout = signal({
|
|
39
39
|
preset: 'Aura',
|
|
40
40
|
primary: 'orange',
|
|
41
41
|
surface: null,
|
|
42
42
|
darkTheme: false,
|
|
43
43
|
menuMode: 'static'
|
|
44
|
-
});
|
|
44
|
+
}, ...(ngDevMode ? [{ debugName: "layout" }] : []));
|
|
45
45
|
state = signal({
|
|
46
46
|
staticMenuDesktopInactive: false,
|
|
47
47
|
overlayMenuActive: false,
|
|
48
48
|
configSidebarVisible: false,
|
|
49
49
|
staticMenuMobileActive: false,
|
|
50
50
|
menuHoverActive: false
|
|
51
|
-
});
|
|
51
|
+
}, ...(ngDevMode ? [{ debugName: "state" }] : []));
|
|
52
52
|
setConfig(config) {
|
|
53
53
|
const { sidebar, footer, topbar, hasClaim } = config || {};
|
|
54
54
|
if (sidebar) {
|
|
@@ -68,10 +68,10 @@ class SmzUILayout {
|
|
|
68
68
|
}
|
|
69
69
|
;
|
|
70
70
|
}
|
|
71
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
72
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
71
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: SmzUILayout, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
72
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: SmzUILayout, providedIn: 'root' });
|
|
73
73
|
}
|
|
74
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: SmzUILayout, decorators: [{
|
|
75
75
|
type: Injectable,
|
|
76
76
|
args: [{ providedIn: 'root' }]
|
|
77
77
|
}] });
|
|
@@ -104,13 +104,13 @@ class LayoutService {
|
|
|
104
104
|
resetSource$ = this.resetSource.asObservable();
|
|
105
105
|
configUpdate$ = this.configUpdate.asObservable();
|
|
106
106
|
overlayOpen$ = this.overlayOpen.asObservable();
|
|
107
|
-
theme = computed(() => (this.layoutConfig()?.darkTheme ? 'light' : 'dark'));
|
|
108
|
-
isSidebarActive = computed(() => this.layoutState().overlayMenuActive || this.layoutState().staticMenuMobileActive);
|
|
109
|
-
isDarkTheme = computed(() => this.layoutConfig().darkTheme);
|
|
110
|
-
getPrimary = computed(() => this.layoutConfig().primary);
|
|
111
|
-
getSurface = computed(() => this.layoutConfig().surface);
|
|
112
|
-
isOverlay = computed(() => this.layoutConfig().menuMode === 'overlay');
|
|
113
|
-
transitionComplete = signal(false);
|
|
107
|
+
theme = computed(() => (this.layoutConfig()?.darkTheme ? 'light' : 'dark'), ...(ngDevMode ? [{ debugName: "theme" }] : []));
|
|
108
|
+
isSidebarActive = computed(() => this.layoutState().overlayMenuActive || this.layoutState().staticMenuMobileActive, ...(ngDevMode ? [{ debugName: "isSidebarActive" }] : []));
|
|
109
|
+
isDarkTheme = computed(() => this.layoutConfig().darkTheme, ...(ngDevMode ? [{ debugName: "isDarkTheme" }] : []));
|
|
110
|
+
getPrimary = computed(() => this.layoutConfig().primary, ...(ngDevMode ? [{ debugName: "getPrimary" }] : []));
|
|
111
|
+
getSurface = computed(() => this.layoutConfig().surface, ...(ngDevMode ? [{ debugName: "getSurface" }] : []));
|
|
112
|
+
isOverlay = computed(() => this.layoutConfig().menuMode === 'overlay', ...(ngDevMode ? [{ debugName: "isOverlay" }] : []));
|
|
113
|
+
transitionComplete = signal(false, ...(ngDevMode ? [{ debugName: "transitionComplete" }] : []));
|
|
114
114
|
initialized = false;
|
|
115
115
|
constructor() {
|
|
116
116
|
effect(() => {
|
|
@@ -194,10 +194,10 @@ class LayoutService {
|
|
|
194
194
|
reset() {
|
|
195
195
|
this.resetSource.next(true);
|
|
196
196
|
}
|
|
197
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
198
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
197
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: LayoutService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
198
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: LayoutService, providedIn: 'root' });
|
|
199
199
|
}
|
|
200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: LayoutService, decorators: [{
|
|
201
201
|
type: Injectable,
|
|
202
202
|
args: [{
|
|
203
203
|
providedIn: 'root'
|
|
@@ -216,7 +216,7 @@ class AppConfigurator {
|
|
|
216
216
|
platformId = inject(PLATFORM_ID);
|
|
217
217
|
primeNG = inject(PrimeNG);
|
|
218
218
|
presets = Object.keys(presets);
|
|
219
|
-
showMenuModeButton = signal(!this.router.url.includes('auth'));
|
|
219
|
+
showMenuModeButton = signal(!this.router.url.includes('auth'), ...(ngDevMode ? [{ debugName: "showMenuModeButton" }] : []));
|
|
220
220
|
menuModeOptions = [
|
|
221
221
|
{ label: 'Static', value: 'static' },
|
|
222
222
|
{ label: 'Overlay', value: 'overlay' }
|
|
@@ -367,10 +367,10 @@ class AppConfigurator {
|
|
|
367
367
|
];
|
|
368
368
|
selectedPrimaryColor = computed(() => {
|
|
369
369
|
return this.layoutService.layoutConfig().primary;
|
|
370
|
-
});
|
|
371
|
-
selectedSurfaceColor = computed(() => this.layoutService.layoutConfig().surface);
|
|
372
|
-
selectedPreset = computed(() => this.layoutService.layoutConfig().preset);
|
|
373
|
-
menuMode = computed(() => this.layoutService.layoutConfig().menuMode);
|
|
370
|
+
}, ...(ngDevMode ? [{ debugName: "selectedPrimaryColor" }] : []));
|
|
371
|
+
selectedSurfaceColor = computed(() => this.layoutService.layoutConfig().surface, ...(ngDevMode ? [{ debugName: "selectedSurfaceColor" }] : []));
|
|
372
|
+
selectedPreset = computed(() => this.layoutService.layoutConfig().preset, ...(ngDevMode ? [{ debugName: "selectedPreset" }] : []));
|
|
373
|
+
menuMode = computed(() => this.layoutService.layoutConfig().menuMode, ...(ngDevMode ? [{ debugName: "menuMode" }] : []));
|
|
374
374
|
primaryColors = computed(() => {
|
|
375
375
|
const presetPalette = presets[this.layoutService.layoutConfig().preset].primitive;
|
|
376
376
|
const colors = ['emerald', 'green', 'lime', 'orange', 'amber', 'yellow', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose'];
|
|
@@ -382,7 +382,7 @@ class AppConfigurator {
|
|
|
382
382
|
});
|
|
383
383
|
});
|
|
384
384
|
return palettes;
|
|
385
|
-
});
|
|
385
|
+
}, ...(ngDevMode ? [{ debugName: "primaryColors" }] : []));
|
|
386
386
|
getPresetExt() {
|
|
387
387
|
const color = this.primaryColors().find((c) => c.name === this.selectedPrimaryColor()) || {};
|
|
388
388
|
const preset = this.layoutService.layoutConfig().preset;
|
|
@@ -539,55 +539,57 @@ class AppConfigurator {
|
|
|
539
539
|
onMenuModeChange(event) {
|
|
540
540
|
this.layoutService.layoutConfig.update((prev) => ({ ...prev, menuMode: event }));
|
|
541
541
|
}
|
|
542
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
543
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
542
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AppConfigurator, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
543
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", 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: `
|
|
544
544
|
<div class="flex flex-col gap-4">
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
545
|
+
<div>
|
|
546
|
+
<span class="text-sm text-muted-color font-semibold">Primary</span>
|
|
547
|
+
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
548
|
+
@for (primaryColor of primaryColors(); track primaryColor.name) {
|
|
549
|
+
<button
|
|
550
|
+
type="button"
|
|
551
|
+
[title]="primaryColor.name"
|
|
552
|
+
(click)="updateColors($event, 'primary', primaryColor)"
|
|
553
|
+
[ngClass]="{ 'outline-primary': primaryColor.name === selectedPrimaryColor() }"
|
|
554
|
+
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
555
555
|
[style]="{
|
|
556
556
|
'background-color': primaryColor?.name === 'noir' ? 'var(--text-color)' : primaryColor?.palette?.['500']
|
|
557
557
|
}"
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
</div>
|
|
558
|
+
></button>
|
|
559
|
+
}
|
|
561
560
|
</div>
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
561
|
+
</div>
|
|
562
|
+
<div>
|
|
563
|
+
<span class="text-sm text-muted-color font-semibold">Surface</span>
|
|
564
|
+
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
565
|
+
@for (surface of surfaces; track surface.name) {
|
|
566
|
+
<button
|
|
567
|
+
type="button"
|
|
568
|
+
[title]="surface.name"
|
|
569
|
+
(click)="updateColors($event, 'surface', surface)"
|
|
570
|
+
[ngClass]="{ 'outline-primary': selectedSurfaceColor() ? selectedSurfaceColor() === surface.name : layoutService.layoutConfig().darkTheme ? surface.name === 'zinc' : surface.name === 'slate' }"
|
|
571
|
+
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
572
572
|
[style]="{
|
|
573
573
|
'background-color': surface?.name === 'noir' ? 'var(--text-color)' : surface?.palette?.['500']
|
|
574
574
|
}"
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
</div>
|
|
575
|
+
></button>
|
|
576
|
+
}
|
|
578
577
|
</div>
|
|
578
|
+
</div>
|
|
579
|
+
<div class="flex flex-col gap-2">
|
|
580
|
+
<span class="text-sm text-muted-color font-semibold">Presets</span>
|
|
581
|
+
<p-selectbutton [options]="presets" [ngModel]="selectedPreset()" (ngModelChange)="onPresetChange($event)" [allowEmpty]="false" size="small" />
|
|
582
|
+
</div>
|
|
583
|
+
@if (showMenuModeButton()) {
|
|
579
584
|
<div class="flex flex-col gap-2">
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
</div>
|
|
583
|
-
<div *ngIf="showMenuModeButton()" class="flex flex-col gap-2">
|
|
584
|
-
<span class="text-sm text-muted-color font-semibold">Menu Mode</span>
|
|
585
|
-
<p-selectbutton [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" size="small" />
|
|
585
|
+
<span class="text-sm text-muted-color font-semibold">Menu Mode</span>
|
|
586
|
+
<p-selectbutton [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" size="small" />
|
|
586
587
|
</div>
|
|
588
|
+
}
|
|
587
589
|
</div>
|
|
588
|
-
|
|
590
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.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.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"] }] });
|
|
589
591
|
}
|
|
590
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
592
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AppConfigurator, decorators: [{
|
|
591
593
|
type: Component,
|
|
592
594
|
args: [{
|
|
593
595
|
selector: 'app-configurator',
|
|
@@ -595,50 +597,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
595
597
|
imports: [CommonModule, FormsModule, SelectButtonModule],
|
|
596
598
|
template: `
|
|
597
599
|
<div class="flex flex-col gap-4">
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
600
|
+
<div>
|
|
601
|
+
<span class="text-sm text-muted-color font-semibold">Primary</span>
|
|
602
|
+
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
603
|
+
@for (primaryColor of primaryColors(); track primaryColor.name) {
|
|
604
|
+
<button
|
|
605
|
+
type="button"
|
|
606
|
+
[title]="primaryColor.name"
|
|
607
|
+
(click)="updateColors($event, 'primary', primaryColor)"
|
|
608
|
+
[ngClass]="{ 'outline-primary': primaryColor.name === selectedPrimaryColor() }"
|
|
609
|
+
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
608
610
|
[style]="{
|
|
609
611
|
'background-color': primaryColor?.name === 'noir' ? 'var(--text-color)' : primaryColor?.palette?.['500']
|
|
610
612
|
}"
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
</div>
|
|
613
|
+
></button>
|
|
614
|
+
}
|
|
614
615
|
</div>
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
616
|
+
</div>
|
|
617
|
+
<div>
|
|
618
|
+
<span class="text-sm text-muted-color font-semibold">Surface</span>
|
|
619
|
+
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
620
|
+
@for (surface of surfaces; track surface.name) {
|
|
621
|
+
<button
|
|
622
|
+
type="button"
|
|
623
|
+
[title]="surface.name"
|
|
624
|
+
(click)="updateColors($event, 'surface', surface)"
|
|
625
|
+
[ngClass]="{ 'outline-primary': selectedSurfaceColor() ? selectedSurfaceColor() === surface.name : layoutService.layoutConfig().darkTheme ? surface.name === 'zinc' : surface.name === 'slate' }"
|
|
626
|
+
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
625
627
|
[style]="{
|
|
626
628
|
'background-color': surface?.name === 'noir' ? 'var(--text-color)' : surface?.palette?.['500']
|
|
627
629
|
}"
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
</div>
|
|
630
|
+
></button>
|
|
631
|
+
}
|
|
631
632
|
</div>
|
|
633
|
+
</div>
|
|
634
|
+
<div class="flex flex-col gap-2">
|
|
635
|
+
<span class="text-sm text-muted-color font-semibold">Presets</span>
|
|
636
|
+
<p-selectbutton [options]="presets" [ngModel]="selectedPreset()" (ngModelChange)="onPresetChange($event)" [allowEmpty]="false" size="small" />
|
|
637
|
+
</div>
|
|
638
|
+
@if (showMenuModeButton()) {
|
|
632
639
|
<div class="flex flex-col gap-2">
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
</div>
|
|
636
|
-
<div *ngIf="showMenuModeButton()" class="flex flex-col gap-2">
|
|
637
|
-
<span class="text-sm text-muted-color font-semibold">Menu Mode</span>
|
|
638
|
-
<p-selectbutton [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" size="small" />
|
|
640
|
+
<span class="text-sm text-muted-color font-semibold">Menu Mode</span>
|
|
641
|
+
<p-selectbutton [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" size="small" />
|
|
639
642
|
</div>
|
|
643
|
+
}
|
|
640
644
|
</div>
|
|
641
|
-
|
|
645
|
+
`,
|
|
642
646
|
host: {
|
|
643
647
|
class: 'hidden absolute top-[3.25rem] right-0 w-72 p-4 bg-surface-0 dark:bg-surface-900 border border-surface rounded-border origin-top shadow-[0px_3px_5px_rgba(0,0,0,0.02),0px_0px_2px_rgba(0,0,0,0.05),0px_1px_4px_rgba(0,0,0,0.08)]'
|
|
644
648
|
}
|
|
@@ -662,10 +666,10 @@ class InjectComponentService {
|
|
|
662
666
|
getComponent(key) {
|
|
663
667
|
return this.componentRefs.get(key);
|
|
664
668
|
}
|
|
665
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
666
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
669
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: InjectComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
670
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: InjectComponentService, providedIn: 'root' });
|
|
667
671
|
}
|
|
668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
672
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: InjectComponentService, decorators: [{
|
|
669
673
|
type: Injectable,
|
|
670
674
|
args: [{
|
|
671
675
|
providedIn: 'root'
|
|
@@ -724,10 +728,10 @@ class ComponentInjectorDirective {
|
|
|
724
728
|
ngOnDestroy() {
|
|
725
729
|
this.removeComp();
|
|
726
730
|
}
|
|
727
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
728
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
731
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ComponentInjectorDirective, deps: [{ token: i0.ViewContainerRef }, { token: InjectComponentService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
732
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: ComponentInjectorDirective, isStandalone: true, selector: "ng-template[componentInjector]", inputs: { componentInjector: "componentInjector", context: "context" }, outputs: { componentCreated: "componentCreated" }, ngImport: i0 });
|
|
729
733
|
}
|
|
730
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
734
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ComponentInjectorDirective, decorators: [{
|
|
731
735
|
type: Directive,
|
|
732
736
|
args: [{
|
|
733
737
|
selector: 'ng-template[componentInjector]',
|
|
@@ -747,7 +751,7 @@ class SmzLayoutLogging {
|
|
|
747
751
|
production: false,
|
|
748
752
|
level: 'debug',
|
|
749
753
|
restrictedScopes: []
|
|
750
|
-
});
|
|
754
|
+
}, ...(ngDevMode ? [{ debugName: "logging" }] : []));
|
|
751
755
|
setConfig(config) {
|
|
752
756
|
const { logging } = config || {};
|
|
753
757
|
if (logging) {
|
|
@@ -755,10 +759,10 @@ class SmzLayoutLogging {
|
|
|
755
759
|
}
|
|
756
760
|
;
|
|
757
761
|
}
|
|
758
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
759
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
762
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: SmzLayoutLogging, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
763
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: SmzLayoutLogging, providedIn: 'root' });
|
|
760
764
|
}
|
|
761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
765
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: SmzLayoutLogging, decorators: [{
|
|
762
766
|
type: Injectable,
|
|
763
767
|
args: [{ providedIn: 'root' }]
|
|
764
768
|
}] });
|
|
@@ -782,13 +786,13 @@ function provideSmzLayoutLogging(initializers) {
|
|
|
782
786
|
// logging.service.ts
|
|
783
787
|
class LoggingService {
|
|
784
788
|
configFn = inject(SMZ_LAYOUT_LOGGING_CONFIG).logging;
|
|
785
|
-
enabled = signal(this.configFn().enabled);
|
|
789
|
+
enabled = signal(this.configFn().enabled, ...(ngDevMode ? [{ debugName: "enabled" }] : []));
|
|
786
790
|
// nível de each log: debug=0, info=1, warn=2, error=3
|
|
787
791
|
levelRank = { debug: 0, info: 1, warn: 2, error: 3 };
|
|
788
792
|
/** expose current settings */
|
|
789
|
-
isEnabled = computed(() => this.enabled());
|
|
790
|
-
currentLevel = computed(() => this.configFn().level ?? 'debug');
|
|
791
|
-
activeScopes = computed(() => this.configFn().restrictedScopes ?? []);
|
|
793
|
+
isEnabled = computed(() => this.enabled(), ...(ngDevMode ? [{ debugName: "isEnabled" }] : []));
|
|
794
|
+
currentLevel = computed(() => this.configFn().level ?? 'debug', ...(ngDevMode ? [{ debugName: "currentLevel" }] : []));
|
|
795
|
+
activeScopes = computed(() => this.configFn().restrictedScopes ?? [], ...(ngDevMode ? [{ debugName: "activeScopes" }] : []));
|
|
792
796
|
/** toggle logging global */
|
|
793
797
|
enable() { this.enabled.set(true); }
|
|
794
798
|
disable() { this.enabled.set(false); }
|
|
@@ -865,10 +869,10 @@ class LoggingService {
|
|
|
865
869
|
}
|
|
866
870
|
};
|
|
867
871
|
}
|
|
868
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
869
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
872
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: LoggingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
873
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: LoggingService, providedIn: 'root' });
|
|
870
874
|
}
|
|
871
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: LoggingService, decorators: [{
|
|
872
876
|
type: Injectable,
|
|
873
877
|
args: [{ providedIn: 'root' }]
|
|
874
878
|
}] });
|
|
@@ -884,9 +888,9 @@ var LoggingScope;
|
|
|
884
888
|
class NavigationService {
|
|
885
889
|
router = inject(Router);
|
|
886
890
|
location = inject(Location);
|
|
887
|
-
history = signal(['/']);
|
|
888
|
-
isPopping = signal(false);
|
|
889
|
-
canGoBack = computed(() => this.history().length > 1);
|
|
891
|
+
history = signal(['/'], ...(ngDevMode ? [{ debugName: "history" }] : []));
|
|
892
|
+
isPopping = signal(false, ...(ngDevMode ? [{ debugName: "isPopping" }] : []));
|
|
893
|
+
canGoBack = computed(() => this.history().length > 1, ...(ngDevMode ? [{ debugName: "canGoBack" }] : []));
|
|
890
894
|
loggingService = inject(LoggingService);
|
|
891
895
|
logger = this.loggingService.scoped(LoggingScope.NavigationService);
|
|
892
896
|
constructor() {
|
|
@@ -952,10 +956,10 @@ class NavigationService {
|
|
|
952
956
|
});
|
|
953
957
|
this.location.back();
|
|
954
958
|
}
|
|
955
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
956
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
959
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NavigationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
960
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NavigationService, providedIn: 'root' });
|
|
957
961
|
}
|
|
958
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
962
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NavigationService, decorators: [{
|
|
959
963
|
type: Injectable,
|
|
960
964
|
args: [{ providedIn: 'root' }]
|
|
961
965
|
}], ctorParameters: () => [] });
|
|
@@ -965,11 +969,11 @@ class PageTitleService {
|
|
|
965
969
|
loggingService = inject(LoggingService);
|
|
966
970
|
logger = this.loggingService.scoped(LoggingScope.PageTitleService);
|
|
967
971
|
// signal que guarda o título (ou null)
|
|
968
|
-
titleSignal = signal(null);
|
|
972
|
+
titleSignal = signal(null, ...(ngDevMode ? [{ debugName: "titleSignal" }] : []));
|
|
969
973
|
// string pura para template ('' quando null)
|
|
970
|
-
title = computed(() => this.titleSignal() ?? '');
|
|
974
|
+
title = computed(() => this.titleSignal() ?? '', ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
971
975
|
// boolean para visibilidade (false quando null)
|
|
972
|
-
hasTitle = computed(() => this.titleSignal() !== null);
|
|
976
|
+
hasTitle = computed(() => this.titleSignal() !== null, ...(ngDevMode ? [{ debugName: "hasTitle" }] : []));
|
|
973
977
|
constructor() {
|
|
974
978
|
// toda vez que uma navegação termina, atualiza o título
|
|
975
979
|
this.router.events
|
|
@@ -994,10 +998,10 @@ class PageTitleService {
|
|
|
994
998
|
: null;
|
|
995
999
|
this.titleSignal.set(title);
|
|
996
1000
|
}
|
|
997
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
998
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1001
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: PageTitleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1002
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: PageTitleService, providedIn: 'root' });
|
|
999
1003
|
}
|
|
1000
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1004
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: PageTitleService, decorators: [{
|
|
1001
1005
|
type: Injectable,
|
|
1002
1006
|
args: [{ providedIn: 'root' }]
|
|
1003
1007
|
}], ctorParameters: () => [] });
|
|
@@ -1014,214 +1018,182 @@ class AppTopbar {
|
|
|
1014
1018
|
handleMissingImage(event, placeholder) {
|
|
1015
1019
|
event.target.src = placeholder;
|
|
1016
1020
|
}
|
|
1017
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1018
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1019
|
-
|
|
1020
|
-
<div class="layout-topbar">
|
|
1021
|
-
<div class="layout-topbar-logo-container">
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
@
|
|
1056
|
-
<
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
<
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
<
|
|
1094
|
-
<
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
<p-menu #menu [model]="feature.menuItems" [popup]="true" />
|
|
1103
|
-
|
|
1104
|
-
@if (feature.avatar && feature.avatar() != null) {
|
|
1105
|
-
<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)"/>
|
|
1106
|
-
}
|
|
1107
|
-
@else {
|
|
1108
|
-
<button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [pTooltip]="feature.tooltip">
|
|
1109
|
-
<i [ngClass]="feature.icon()"></i>
|
|
1110
|
-
</button>
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
</div>
|
|
1114
|
-
|
|
1115
|
-
</div>
|
|
1116
|
-
</div>
|
|
1117
|
-
</ng-container>`, isInline: true, dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: StyleClassModule }, { kind: "directive", type: i3$1.StyleClass, selector: "[pStyleClass]", inputs: ["pStyleClass", "enterClass", "enterFromClass", "enterActiveClass", "enterToClass", "leaveClass", "leaveFromClass", "leaveActiveClass", "leaveToClass", "hideOnOutsideClick", "toggleClass", "hideOnEscape"] }, { 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", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "ngmodule", type: MenuModule }, { kind: "component", type: i5.Menu, selector: "p-menu", inputs: ["model", "popup", "style", "styleClass", "appendTo", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex"], outputs: ["onShow", "onHide", "onBlur", "onFocus"] }, { kind: "ngmodule", type: ButtonModule }] });
|
|
1021
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AppTopbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1022
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: AppTopbar, isStandalone: true, selector: "app-topbar", ngImport: i0, template: `
|
|
1023
|
+
@if (data(); as topbar) {
|
|
1024
|
+
<div class="layout-topbar">
|
|
1025
|
+
<div class="layout-topbar-logo-container">
|
|
1026
|
+
@if (topbar.showMenuToggle) {
|
|
1027
|
+
<button class="layout-menu-button layout-topbar-action" (click)="layoutService.onMenuToggle()">
|
|
1028
|
+
<i class="pi pi-bars"></i>
|
|
1029
|
+
</button>
|
|
1030
|
+
}
|
|
1031
|
+
<a class="layout-topbar-logo" routerLink="/">
|
|
1032
|
+
@if (topbar.logoPath?.light && !layoutService.isDarkTheme()) {
|
|
1033
|
+
<img [src]="topbar.logoPath?.light" [alt]="topbar.logoPath?.light" class="max-h-9 min-h-8" />
|
|
1034
|
+
}
|
|
1035
|
+
@if (topbar.logoPath?.dark && layoutService.isDarkTheme()) {
|
|
1036
|
+
<img [src]="topbar.logoPath?.dark" [alt]="topbar.logoPath?.dark" class="max-h-9 min-h-8" />
|
|
1037
|
+
}
|
|
1038
|
+
</a>
|
|
1039
|
+
@if (topbar.appName) {
|
|
1040
|
+
<span class="layout-topbar-app-name">{{ topbar.appName }}</span>
|
|
1041
|
+
}
|
|
1042
|
+
</div>
|
|
1043
|
+
<div class="layout-topbar-left-actions">
|
|
1044
|
+
@if (topbar.showBackButton || pageTitleService.hasTitle()) {
|
|
1045
|
+
<span class="topbar-separator"></span>
|
|
1046
|
+
}
|
|
1047
|
+
@if (topbar.showBackButton && navigationService.canGoBackSignal()) {
|
|
1048
|
+
<button class="layout-menu-button layout-topbar-action" (click)="navigationService.goBack()">
|
|
1049
|
+
<i class="pi pi-arrow-left"></i>
|
|
1050
|
+
</button>
|
|
1051
|
+
}
|
|
1052
|
+
@if (pageTitleService.hasTitle()) {
|
|
1053
|
+
<span class="layout-topbar-page-title">
|
|
1054
|
+
<span>{{ pageTitleService.title() }}</span>
|
|
1055
|
+
</span>
|
|
1056
|
+
}
|
|
1057
|
+
</div>
|
|
1058
|
+
<div class="layout-topbar-right-actions">
|
|
1059
|
+
<button class="layout-topbar-menu-button layout-topbar-action" pStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1060
|
+
<i class="pi pi-ellipsis-v"></i>
|
|
1061
|
+
</button>
|
|
1062
|
+
<div class="layout-topbar-menu hidden lg:block">
|
|
1063
|
+
<div class="layout-topbar-menu-content">
|
|
1064
|
+
@for (item of topbar.menuItems; track item) {
|
|
1065
|
+
@if (item.component != null) {
|
|
1066
|
+
<ng-template [componentInjector]="item.component"></ng-template>
|
|
1067
|
+
}
|
|
1068
|
+
@else {
|
|
1069
|
+
<button type="button" class="layout-topbar-action" (click)="item.callback()" [routerLink]="item.routerLink" [pTooltip]="item.tooltip">
|
|
1070
|
+
<i [ngClass]="item.icon"></i>
|
|
1071
|
+
<span>{{ item.label }}</span>
|
|
1072
|
+
</button>
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
</div>
|
|
1076
|
+
</div>
|
|
1077
|
+
<div class="layout-config-menu">
|
|
1078
|
+
@if (topbar.showDarkModeToggle) {
|
|
1079
|
+
<button type="button" class="layout-topbar-action" (click)="toggleDarkMode()" pTooltip="Dark/Light">
|
|
1080
|
+
<i [ngClass]="{ 'pi ': true, 'pi-moon': layoutService.isDarkTheme(), 'pi-sun': !layoutService.isDarkTheme() }"></i>
|
|
1081
|
+
</button>
|
|
1082
|
+
}
|
|
1083
|
+
@if (topbar.showConfigurator) {
|
|
1084
|
+
<div class="relative">
|
|
1085
|
+
<button class="layout-topbar-action layout-topbar-action-highlight" pTooltip="Configurações" pStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1086
|
+
<i class="pi pi-palette"></i>
|
|
1087
|
+
</button>
|
|
1088
|
+
<app-configurator></app-configurator>
|
|
1089
|
+
</div>
|
|
1090
|
+
}
|
|
1091
|
+
@for (feature of topbar.features; track feature) {
|
|
1092
|
+
<p-menu #menu [model]="feature.menuItems" [popup]="true" />
|
|
1093
|
+
@if (feature.avatar && feature.avatar() != null) {
|
|
1094
|
+
<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)"/>
|
|
1095
|
+
}
|
|
1096
|
+
@else {
|
|
1097
|
+
<button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [pTooltip]="feature.tooltip">
|
|
1098
|
+
<i [ngClass]="feature.icon()"></i>
|
|
1099
|
+
</button>
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
</div>
|
|
1103
|
+
</div>
|
|
1104
|
+
</div>
|
|
1105
|
+
}`, isInline: true, dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: StyleClassModule }, { kind: "directive", type: i3$1.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 }] });
|
|
1118
1106
|
}
|
|
1119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AppTopbar, decorators: [{
|
|
1120
1108
|
type: Component,
|
|
1121
1109
|
args: [{
|
|
1122
1110
|
selector: 'app-topbar',
|
|
1123
1111
|
standalone: true,
|
|
1124
1112
|
imports: [RouterModule, CommonModule, StyleClassModule, AppConfigurator, ComponentInjectorDirective, TooltipModule, MenuModule, ButtonModule],
|
|
1125
|
-
template: `
|
|
1126
|
-
|
|
1127
|
-
<div class="layout-topbar">
|
|
1128
|
-
<div class="layout-topbar-logo-container">
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
@
|
|
1163
|
-
<
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
<
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
<
|
|
1201
|
-
<
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
<p-menu #menu [model]="feature.menuItems" [popup]="true" />
|
|
1210
|
-
|
|
1211
|
-
@if (feature.avatar && feature.avatar() != null) {
|
|
1212
|
-
<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)"/>
|
|
1213
|
-
}
|
|
1214
|
-
@else {
|
|
1215
|
-
<button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [pTooltip]="feature.tooltip">
|
|
1216
|
-
<i [ngClass]="feature.icon()"></i>
|
|
1217
|
-
</button>
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
</div>
|
|
1221
|
-
|
|
1222
|
-
</div>
|
|
1223
|
-
</div>
|
|
1224
|
-
</ng-container>`
|
|
1113
|
+
template: `
|
|
1114
|
+
@if (data(); as topbar) {
|
|
1115
|
+
<div class="layout-topbar">
|
|
1116
|
+
<div class="layout-topbar-logo-container">
|
|
1117
|
+
@if (topbar.showMenuToggle) {
|
|
1118
|
+
<button class="layout-menu-button layout-topbar-action" (click)="layoutService.onMenuToggle()">
|
|
1119
|
+
<i class="pi pi-bars"></i>
|
|
1120
|
+
</button>
|
|
1121
|
+
}
|
|
1122
|
+
<a class="layout-topbar-logo" routerLink="/">
|
|
1123
|
+
@if (topbar.logoPath?.light && !layoutService.isDarkTheme()) {
|
|
1124
|
+
<img [src]="topbar.logoPath?.light" [alt]="topbar.logoPath?.light" class="max-h-9 min-h-8" />
|
|
1125
|
+
}
|
|
1126
|
+
@if (topbar.logoPath?.dark && layoutService.isDarkTheme()) {
|
|
1127
|
+
<img [src]="topbar.logoPath?.dark" [alt]="topbar.logoPath?.dark" class="max-h-9 min-h-8" />
|
|
1128
|
+
}
|
|
1129
|
+
</a>
|
|
1130
|
+
@if (topbar.appName) {
|
|
1131
|
+
<span class="layout-topbar-app-name">{{ topbar.appName }}</span>
|
|
1132
|
+
}
|
|
1133
|
+
</div>
|
|
1134
|
+
<div class="layout-topbar-left-actions">
|
|
1135
|
+
@if (topbar.showBackButton || pageTitleService.hasTitle()) {
|
|
1136
|
+
<span class="topbar-separator"></span>
|
|
1137
|
+
}
|
|
1138
|
+
@if (topbar.showBackButton && navigationService.canGoBackSignal()) {
|
|
1139
|
+
<button class="layout-menu-button layout-topbar-action" (click)="navigationService.goBack()">
|
|
1140
|
+
<i class="pi pi-arrow-left"></i>
|
|
1141
|
+
</button>
|
|
1142
|
+
}
|
|
1143
|
+
@if (pageTitleService.hasTitle()) {
|
|
1144
|
+
<span class="layout-topbar-page-title">
|
|
1145
|
+
<span>{{ pageTitleService.title() }}</span>
|
|
1146
|
+
</span>
|
|
1147
|
+
}
|
|
1148
|
+
</div>
|
|
1149
|
+
<div class="layout-topbar-right-actions">
|
|
1150
|
+
<button class="layout-topbar-menu-button layout-topbar-action" pStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1151
|
+
<i class="pi pi-ellipsis-v"></i>
|
|
1152
|
+
</button>
|
|
1153
|
+
<div class="layout-topbar-menu hidden lg:block">
|
|
1154
|
+
<div class="layout-topbar-menu-content">
|
|
1155
|
+
@for (item of topbar.menuItems; track item) {
|
|
1156
|
+
@if (item.component != null) {
|
|
1157
|
+
<ng-template [componentInjector]="item.component"></ng-template>
|
|
1158
|
+
}
|
|
1159
|
+
@else {
|
|
1160
|
+
<button type="button" class="layout-topbar-action" (click)="item.callback()" [routerLink]="item.routerLink" [pTooltip]="item.tooltip">
|
|
1161
|
+
<i [ngClass]="item.icon"></i>
|
|
1162
|
+
<span>{{ item.label }}</span>
|
|
1163
|
+
</button>
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
</div>
|
|
1167
|
+
</div>
|
|
1168
|
+
<div class="layout-config-menu">
|
|
1169
|
+
@if (topbar.showDarkModeToggle) {
|
|
1170
|
+
<button type="button" class="layout-topbar-action" (click)="toggleDarkMode()" pTooltip="Dark/Light">
|
|
1171
|
+
<i [ngClass]="{ 'pi ': true, 'pi-moon': layoutService.isDarkTheme(), 'pi-sun': !layoutService.isDarkTheme() }"></i>
|
|
1172
|
+
</button>
|
|
1173
|
+
}
|
|
1174
|
+
@if (topbar.showConfigurator) {
|
|
1175
|
+
<div class="relative">
|
|
1176
|
+
<button class="layout-topbar-action layout-topbar-action-highlight" pTooltip="Configurações" pStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1177
|
+
<i class="pi pi-palette"></i>
|
|
1178
|
+
</button>
|
|
1179
|
+
<app-configurator></app-configurator>
|
|
1180
|
+
</div>
|
|
1181
|
+
}
|
|
1182
|
+
@for (feature of topbar.features; track feature) {
|
|
1183
|
+
<p-menu #menu [model]="feature.menuItems" [popup]="true" />
|
|
1184
|
+
@if (feature.avatar && feature.avatar() != null) {
|
|
1185
|
+
<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)"/>
|
|
1186
|
+
}
|
|
1187
|
+
@else {
|
|
1188
|
+
<button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [pTooltip]="feature.tooltip">
|
|
1189
|
+
<i [ngClass]="feature.icon()"></i>
|
|
1190
|
+
</button>
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
</div>
|
|
1194
|
+
</div>
|
|
1195
|
+
</div>
|
|
1196
|
+
}`
|
|
1225
1197
|
}]
|
|
1226
1198
|
}] });
|
|
1227
1199
|
|
|
@@ -1303,47 +1275,58 @@ class AppMenuitem {
|
|
|
1303
1275
|
this.menuResetSubscription.unsubscribe();
|
|
1304
1276
|
}
|
|
1305
1277
|
}
|
|
1306
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1307
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1278
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AppMenuitem, deps: [{ token: i1$1.Router }, { token: LayoutService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1279
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", 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: `
|
|
1308
1280
|
<ng-container>
|
|
1309
|
-
|
|
1310
|
-
<
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1281
|
+
@if (root && item.visible !== false) {
|
|
1282
|
+
<div class="layout-menuitem-root-text">{{ item.label }}</div>
|
|
1283
|
+
}
|
|
1284
|
+
@if ((!item.routerLink || item.items) && item.visible !== false) {
|
|
1285
|
+
<a [attr.href]="item.url" (click)="itemClick($event)" [ngClass]="item.styleClass" [attr.target]="item.target" tabindex="0" pRipple>
|
|
1286
|
+
<i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
|
|
1287
|
+
<span class="layout-menuitem-text">{{ item.label }}</span>
|
|
1288
|
+
@if (item.items) {
|
|
1289
|
+
<i class="pi pi-fw pi-angle-down layout-submenu-toggler"></i>
|
|
1290
|
+
}
|
|
1314
1291
|
</a>
|
|
1292
|
+
}
|
|
1293
|
+
@if (item.routerLink && !item.items && item.visible !== false) {
|
|
1315
1294
|
<a
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
<i class="pi pi-fw pi-angle-down layout-submenu-toggler"
|
|
1295
|
+
(click)="itemClick($event)"
|
|
1296
|
+
[ngClass]="item.styleClass"
|
|
1297
|
+
[routerLink]="item.routerLink"
|
|
1298
|
+
routerLinkActive="active-route"
|
|
1299
|
+
[routerLinkActiveOptions]="item.routerLinkActiveOptions || { paths: 'exact', queryParams: 'ignored', matrixParams: 'ignored', fragment: 'ignored' }"
|
|
1300
|
+
[fragment]="item.fragment"
|
|
1301
|
+
[queryParamsHandling]="item.queryParamsHandling"
|
|
1302
|
+
[preserveFragment]="item.preserveFragment"
|
|
1303
|
+
[skipLocationChange]="item.skipLocationChange"
|
|
1304
|
+
[replaceUrl]="item.replaceUrl"
|
|
1305
|
+
[state]="item.state"
|
|
1306
|
+
[queryParams]="item.queryParams"
|
|
1307
|
+
[attr.target]="item.target"
|
|
1308
|
+
tabindex="0"
|
|
1309
|
+
pRipple
|
|
1310
|
+
>
|
|
1311
|
+
<i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
|
|
1312
|
+
<span class="layout-menuitem-text">{{ item.label }}</span>
|
|
1313
|
+
@if (item.items) {
|
|
1314
|
+
<i class="pi pi-fw pi-angle-down layout-submenu-toggler"></i>
|
|
1315
|
+
}
|
|
1336
1316
|
</a>
|
|
1317
|
+
}
|
|
1337
1318
|
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1319
|
+
@if (item.items && item.visible !== false) {
|
|
1320
|
+
<ul [@children]="submenuAnimation">
|
|
1321
|
+
@for (child of item.items; track child; let i = $index) {
|
|
1322
|
+
@if (hasClaim(child['claims'])) {
|
|
1323
|
+
<li app-menuitem [item]="child" [index]="i" [parentKey]="key" [class]="child['badgeClass']"></li>
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1344
1326
|
</ul>
|
|
1327
|
+
}
|
|
1345
1328
|
</ng-container>
|
|
1346
|
-
|
|
1329
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AppMenuitem, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "ngmodule", type: RippleModule }, { kind: "directive", type: i4$1.Ripple, selector: "[pRipple]" }], animations: [
|
|
1347
1330
|
trigger('children', [
|
|
1348
1331
|
state('collapsed', style({
|
|
1349
1332
|
height: '0'
|
|
@@ -1355,7 +1338,7 @@ class AppMenuitem {
|
|
|
1355
1338
|
])
|
|
1356
1339
|
] });
|
|
1357
1340
|
}
|
|
1358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AppMenuitem, decorators: [{
|
|
1359
1342
|
type: Component,
|
|
1360
1343
|
args: [{
|
|
1361
1344
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
@@ -1363,44 +1346,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1363
1346
|
imports: [CommonModule, RouterModule, RippleModule],
|
|
1364
1347
|
template: `
|
|
1365
1348
|
<ng-container>
|
|
1366
|
-
|
|
1367
|
-
<
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1349
|
+
@if (root && item.visible !== false) {
|
|
1350
|
+
<div class="layout-menuitem-root-text">{{ item.label }}</div>
|
|
1351
|
+
}
|
|
1352
|
+
@if ((!item.routerLink || item.items) && item.visible !== false) {
|
|
1353
|
+
<a [attr.href]="item.url" (click)="itemClick($event)" [ngClass]="item.styleClass" [attr.target]="item.target" tabindex="0" pRipple>
|
|
1354
|
+
<i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
|
|
1355
|
+
<span class="layout-menuitem-text">{{ item.label }}</span>
|
|
1356
|
+
@if (item.items) {
|
|
1357
|
+
<i class="pi pi-fw pi-angle-down layout-submenu-toggler"></i>
|
|
1358
|
+
}
|
|
1371
1359
|
</a>
|
|
1360
|
+
}
|
|
1361
|
+
@if (item.routerLink && !item.items && item.visible !== false) {
|
|
1372
1362
|
<a
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
<i class="pi pi-fw pi-angle-down layout-submenu-toggler"
|
|
1363
|
+
(click)="itemClick($event)"
|
|
1364
|
+
[ngClass]="item.styleClass"
|
|
1365
|
+
[routerLink]="item.routerLink"
|
|
1366
|
+
routerLinkActive="active-route"
|
|
1367
|
+
[routerLinkActiveOptions]="item.routerLinkActiveOptions || { paths: 'exact', queryParams: 'ignored', matrixParams: 'ignored', fragment: 'ignored' }"
|
|
1368
|
+
[fragment]="item.fragment"
|
|
1369
|
+
[queryParamsHandling]="item.queryParamsHandling"
|
|
1370
|
+
[preserveFragment]="item.preserveFragment"
|
|
1371
|
+
[skipLocationChange]="item.skipLocationChange"
|
|
1372
|
+
[replaceUrl]="item.replaceUrl"
|
|
1373
|
+
[state]="item.state"
|
|
1374
|
+
[queryParams]="item.queryParams"
|
|
1375
|
+
[attr.target]="item.target"
|
|
1376
|
+
tabindex="0"
|
|
1377
|
+
pRipple
|
|
1378
|
+
>
|
|
1379
|
+
<i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
|
|
1380
|
+
<span class="layout-menuitem-text">{{ item.label }}</span>
|
|
1381
|
+
@if (item.items) {
|
|
1382
|
+
<i class="pi pi-fw pi-angle-down layout-submenu-toggler"></i>
|
|
1383
|
+
}
|
|
1393
1384
|
</a>
|
|
1385
|
+
}
|
|
1394
1386
|
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1387
|
+
@if (item.items && item.visible !== false) {
|
|
1388
|
+
<ul [@children]="submenuAnimation">
|
|
1389
|
+
@for (child of item.items; track child; let i = $index) {
|
|
1390
|
+
@if (hasClaim(child['claims'])) {
|
|
1391
|
+
<li app-menuitem [item]="child" [index]="i" [parentKey]="key" [class]="child['badgeClass']"></li>
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1401
1394
|
</ul>
|
|
1395
|
+
}
|
|
1402
1396
|
</ng-container>
|
|
1403
|
-
|
|
1397
|
+
`,
|
|
1404
1398
|
animations: [
|
|
1405
1399
|
trigger('children', [
|
|
1406
1400
|
state('collapsed', style({
|
|
@@ -1433,26 +1427,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1433
1427
|
class AppMenu {
|
|
1434
1428
|
model = inject(SMZ_UI_LAYOUT_CONFIG).sidebar;
|
|
1435
1429
|
hasClaim = inject(SMZ_UI_LAYOUT_CONFIG).hasClaim;
|
|
1436
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1437
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1430
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AppMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1431
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: AppMenu, isStandalone: true, selector: "app-menu", ngImport: i0, template: `<ul class="layout-menu">
|
|
1432
|
+
@for (item of model(); track item; let i = $index) {
|
|
1433
|
+
@if (!item.separator && hasClaim(item['claims'])) {
|
|
1434
|
+
<li app-menuitem [item]="item" [index]="i" [root]="true"></li>
|
|
1435
|
+
}
|
|
1436
|
+
@if (item.separator) {
|
|
1437
|
+
<li class="menu-separator"></li>
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
</ul>`, isInline: true, dependencies: [{ kind: "component", type: AppMenuitem, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey"] }, { kind: "ngmodule", type: RouterModule }] });
|
|
1443
1441
|
}
|
|
1444
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1442
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AppMenu, decorators: [{
|
|
1445
1443
|
type: Component,
|
|
1446
1444
|
args: [{
|
|
1447
1445
|
selector: 'app-menu',
|
|
1448
1446
|
standalone: true,
|
|
1449
|
-
imports: [
|
|
1450
|
-
template: `<ul class="layout-menu">
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1447
|
+
imports: [AppMenuitem, RouterModule],
|
|
1448
|
+
template: `<ul class="layout-menu">
|
|
1449
|
+
@for (item of model(); track item; let i = $index) {
|
|
1450
|
+
@if (!item.separator && hasClaim(item['claims'])) {
|
|
1451
|
+
<li app-menuitem [item]="item" [index]="i" [root]="true"></li>
|
|
1452
|
+
}
|
|
1453
|
+
@if (item.separator) {
|
|
1454
|
+
<li class="menu-separator"></li>
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
</ul>`
|
|
1456
1458
|
}]
|
|
1457
1459
|
}] });
|
|
1458
1460
|
|
|
@@ -1461,12 +1463,12 @@ class AppSidebar {
|
|
|
1461
1463
|
constructor(el) {
|
|
1462
1464
|
this.el = el;
|
|
1463
1465
|
}
|
|
1464
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1465
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1466
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AppSidebar, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1467
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: AppSidebar, isStandalone: true, selector: "app-sidebar", ngImport: i0, template: ` <div class="layout-sidebar">
|
|
1466
1468
|
<app-menu></app-menu>
|
|
1467
1469
|
</div>`, isInline: true, dependencies: [{ kind: "component", type: AppMenu, selector: "app-menu" }] });
|
|
1468
1470
|
}
|
|
1469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AppSidebar, decorators: [{
|
|
1470
1472
|
type: Component,
|
|
1471
1473
|
args: [{
|
|
1472
1474
|
selector: 'app-sidebar',
|
|
@@ -1481,63 +1483,63 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1481
1483
|
class AppFooter {
|
|
1482
1484
|
data = inject(SMZ_UI_LAYOUT_CONFIG).footer;
|
|
1483
1485
|
layoutService = inject(LayoutService);
|
|
1484
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1485
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1486
|
-
|
|
1487
|
-
<div class="flex items-center justify-between px-0 py-4 gap-4 border-t border-surface-border">
|
|
1488
|
-
@if (footer.leftLogoPath?.light && !layoutService.isDarkTheme()) {
|
|
1489
|
-
|
|
1490
|
-
}
|
|
1491
|
-
@if (footer.leftLogoPath?.dark && layoutService.isDarkTheme()) {
|
|
1492
|
-
|
|
1493
|
-
}
|
|
1494
|
-
<div class="flex-1"></div>
|
|
1495
|
-
@if (footer.rightLogoPath?.light && !layoutService.isDarkTheme()) {
|
|
1496
|
-
|
|
1497
|
-
}
|
|
1498
|
-
@if (footer.rightLogoPath?.dark && layoutService.isDarkTheme()) {
|
|
1499
|
-
|
|
1500
|
-
}
|
|
1501
|
-
@if (footer.version) {
|
|
1502
|
-
|
|
1503
|
-
}
|
|
1504
|
-
@if (footer.copyright) {
|
|
1505
|
-
|
|
1506
|
-
}
|
|
1507
|
-
</div>
|
|
1508
|
-
</ng-container>
|
|
1509
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1486
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AppFooter, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1487
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: AppFooter, isStandalone: true, selector: "app-footer", ngImport: i0, template: `
|
|
1488
|
+
@if (data(); as footer) {
|
|
1489
|
+
<div class="flex items-center justify-between px-0 py-4 gap-4 border-t border-surface-border">
|
|
1490
|
+
@if (footer.leftLogoPath?.light && !layoutService.isDarkTheme()) {
|
|
1491
|
+
<img [src]="footer.leftLogoPath?.light" [alt]="footer.leftLogoPath?.light" class="max-h-7" />
|
|
1492
|
+
}
|
|
1493
|
+
@if (footer.leftLogoPath?.dark && layoutService.isDarkTheme()) {
|
|
1494
|
+
<img [src]="footer.leftLogoPath?.dark" [alt]="footer.leftLogoPath?.dark" class="max-h-7" />
|
|
1495
|
+
}
|
|
1496
|
+
<div class="flex-1"></div>
|
|
1497
|
+
@if (footer.rightLogoPath?.light && !layoutService.isDarkTheme()) {
|
|
1498
|
+
<img [src]="footer.rightLogoPath?.light" [alt]="footer.rightLogoPath?.light" class="max-h-7" />
|
|
1499
|
+
}
|
|
1500
|
+
@if (footer.rightLogoPath?.dark && layoutService.isDarkTheme()) {
|
|
1501
|
+
<img [src]="footer.rightLogoPath?.dark" [alt]="footer.rightLogoPath?.dark" class="max-h-7" />
|
|
1502
|
+
}
|
|
1503
|
+
@if (footer.version) {
|
|
1504
|
+
<span class="font-medium text-sm">{{ footer.version }}</span>
|
|
1505
|
+
}
|
|
1506
|
+
@if (footer.copyright) {
|
|
1507
|
+
<span class="font-medium text-sm">{{ footer.copyright }}</span>
|
|
1508
|
+
}
|
|
1509
|
+
</div>
|
|
1510
1510
|
}
|
|
1511
|
-
|
|
1511
|
+
`, isInline: true });
|
|
1512
|
+
}
|
|
1513
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AppFooter, decorators: [{
|
|
1512
1514
|
type: Component,
|
|
1513
1515
|
args: [{
|
|
1514
1516
|
standalone: true,
|
|
1515
1517
|
selector: 'app-footer',
|
|
1516
|
-
imports: [
|
|
1517
|
-
template: `
|
|
1518
|
-
|
|
1519
|
-
<div class="flex items-center justify-between px-0 py-4 gap-4 border-t border-surface-border">
|
|
1520
|
-
@if (footer.leftLogoPath?.light && !layoutService.isDarkTheme()) {
|
|
1521
|
-
|
|
1522
|
-
}
|
|
1523
|
-
@if (footer.leftLogoPath?.dark && layoutService.isDarkTheme()) {
|
|
1524
|
-
|
|
1525
|
-
}
|
|
1526
|
-
<div class="flex-1"></div>
|
|
1527
|
-
@if (footer.rightLogoPath?.light && !layoutService.isDarkTheme()) {
|
|
1528
|
-
|
|
1529
|
-
}
|
|
1530
|
-
@if (footer.rightLogoPath?.dark && layoutService.isDarkTheme()) {
|
|
1531
|
-
|
|
1532
|
-
}
|
|
1533
|
-
@if (footer.version) {
|
|
1534
|
-
|
|
1535
|
-
}
|
|
1536
|
-
@if (footer.copyright) {
|
|
1537
|
-
|
|
1538
|
-
}
|
|
1539
|
-
</div>
|
|
1540
|
-
|
|
1518
|
+
imports: [],
|
|
1519
|
+
template: `
|
|
1520
|
+
@if (data(); as footer) {
|
|
1521
|
+
<div class="flex items-center justify-between px-0 py-4 gap-4 border-t border-surface-border">
|
|
1522
|
+
@if (footer.leftLogoPath?.light && !layoutService.isDarkTheme()) {
|
|
1523
|
+
<img [src]="footer.leftLogoPath?.light" [alt]="footer.leftLogoPath?.light" class="max-h-7" />
|
|
1524
|
+
}
|
|
1525
|
+
@if (footer.leftLogoPath?.dark && layoutService.isDarkTheme()) {
|
|
1526
|
+
<img [src]="footer.leftLogoPath?.dark" [alt]="footer.leftLogoPath?.dark" class="max-h-7" />
|
|
1527
|
+
}
|
|
1528
|
+
<div class="flex-1"></div>
|
|
1529
|
+
@if (footer.rightLogoPath?.light && !layoutService.isDarkTheme()) {
|
|
1530
|
+
<img [src]="footer.rightLogoPath?.light" [alt]="footer.rightLogoPath?.light" class="max-h-7" />
|
|
1531
|
+
}
|
|
1532
|
+
@if (footer.rightLogoPath?.dark && layoutService.isDarkTheme()) {
|
|
1533
|
+
<img [src]="footer.rightLogoPath?.dark" [alt]="footer.rightLogoPath?.dark" class="max-h-7" />
|
|
1534
|
+
}
|
|
1535
|
+
@if (footer.version) {
|
|
1536
|
+
<span class="font-medium text-sm">{{ footer.version }}</span>
|
|
1537
|
+
}
|
|
1538
|
+
@if (footer.copyright) {
|
|
1539
|
+
<span class="font-medium text-sm">{{ footer.copyright }}</span>
|
|
1540
|
+
}
|
|
1541
|
+
</div>
|
|
1542
|
+
}
|
|
1541
1543
|
`
|
|
1542
1544
|
}]
|
|
1543
1545
|
}] });
|
|
@@ -1617,8 +1619,8 @@ class AppLayout {
|
|
|
1617
1619
|
this.menuOutsideClickListener();
|
|
1618
1620
|
}
|
|
1619
1621
|
}
|
|
1620
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1621
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1622
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AppLayout, deps: [{ token: LayoutService }, { token: i0.Renderer2 }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
1623
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", 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">
|
|
1622
1624
|
<app-topbar></app-topbar>
|
|
1623
1625
|
<app-sidebar></app-sidebar>
|
|
1624
1626
|
<div class="layout-main-container">
|
|
@@ -1630,7 +1632,7 @@ class AppLayout {
|
|
|
1630
1632
|
<div class="layout-mask animate-fadein"></div>
|
|
1631
1633
|
</div> `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.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$1.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: AppFooter, selector: "app-footer" }] });
|
|
1632
1634
|
}
|
|
1633
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AppLayout, decorators: [{
|
|
1634
1636
|
type: Component,
|
|
1635
1637
|
args: [{
|
|
1636
1638
|
selector: 'app-layout',
|
|
@@ -1658,12 +1660,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1658
1660
|
|
|
1659
1661
|
class AppFloatingConfigurator {
|
|
1660
1662
|
LayoutService = inject(LayoutService);
|
|
1661
|
-
isDarkTheme = computed(() => this.LayoutService.layoutConfig().darkTheme);
|
|
1663
|
+
isDarkTheme = computed(() => this.LayoutService.layoutConfig().darkTheme, ...(ngDevMode ? [{ debugName: "isDarkTheme" }] : []));
|
|
1662
1664
|
toggleDarkMode() {
|
|
1663
1665
|
this.LayoutService.layoutConfig.update((state) => ({ ...state, darkTheme: !state.darkTheme }));
|
|
1664
1666
|
}
|
|
1665
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1666
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1667
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AppFloatingConfigurator, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1668
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: AppFloatingConfigurator, isStandalone: true, selector: "app-floating-configurator", ngImport: i0, template: `
|
|
1667
1669
|
<div class="fixed flex gap-4 top-8 right-8">
|
|
1668
1670
|
<p-button type="button" (onClick)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'pi pi-moon' : 'pi pi-sun'" severity="secondary" />
|
|
1669
1671
|
<div class="relative">
|
|
@@ -1671,9 +1673,9 @@ class AppFloatingConfigurator {
|
|
|
1671
1673
|
<app-configurator />
|
|
1672
1674
|
</div>
|
|
1673
1675
|
</div>
|
|
1674
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$1.Button, selector: "p-button", inputs: ["
|
|
1676
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$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$1.StyleClass, selector: "[pStyleClass]", inputs: ["pStyleClass", "enterFromClass", "enterActiveClass", "enterToClass", "leaveFromClass", "leaveActiveClass", "leaveToClass", "hideOnOutsideClick", "toggleClass", "hideOnEscape", "hideOnResize", "resizeSelector"] }, { kind: "component", type: AppConfigurator, selector: "app-configurator" }] });
|
|
1675
1677
|
}
|
|
1676
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1678
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AppFloatingConfigurator, decorators: [{
|
|
1677
1679
|
type: Component,
|
|
1678
1680
|
args: [{
|
|
1679
1681
|
selector: 'app-floating-configurator',
|
|
@@ -1735,7 +1737,7 @@ class ErrorPagesConfigService {
|
|
|
1735
1737
|
},
|
|
1736
1738
|
]
|
|
1737
1739
|
}
|
|
1738
|
-
});
|
|
1740
|
+
}, ...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
1739
1741
|
// Método para atualizar dinamicamente a configuração de forma merge
|
|
1740
1742
|
updateConfig(newConfig) {
|
|
1741
1743
|
this.config.update((currentConfig) => ({
|
|
@@ -1747,18 +1749,18 @@ class ErrorPagesConfigService {
|
|
|
1747
1749
|
error: { ...currentConfig.error, ...newConfig.error }
|
|
1748
1750
|
}));
|
|
1749
1751
|
}
|
|
1750
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1751
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1752
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ErrorPagesConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1753
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ErrorPagesConfigService, providedIn: 'root' });
|
|
1752
1754
|
}
|
|
1753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ErrorPagesConfigService, decorators: [{
|
|
1754
1756
|
type: Injectable,
|
|
1755
1757
|
args: [{ providedIn: 'root' }]
|
|
1756
1758
|
}] });
|
|
1757
1759
|
|
|
1758
1760
|
class AccessPageComponent {
|
|
1759
1761
|
config = inject(ErrorPagesConfigService).config();
|
|
1760
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1761
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1762
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AccessPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1763
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: AccessPageComponent, isStandalone: true, selector: "app-access", ngImport: i0, template: `
|
|
1762
1764
|
<div class="bg-surface-50 dark:bg-surface-950 flex items-center justify-center min-h-screen min-w-[100vw] overflow-hidden">
|
|
1763
1765
|
<div class="flex flex-col items-center justify-center">
|
|
1764
1766
|
<div style="border-radius: 56px; padding: 0.3rem; background: linear-gradient(180deg, rgba(247, 149, 48, 0.4) 10%, rgba(247, 149, 48, 0) 30%)">
|
|
@@ -1779,9 +1781,9 @@ class AccessPageComponent {
|
|
|
1779
1781
|
</div>
|
|
1780
1782
|
</div>
|
|
1781
1783
|
</div>
|
|
1782
|
-
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$1.Button, selector: "p-button", inputs: ["
|
|
1784
|
+
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$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$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: RippleModule }] });
|
|
1783
1785
|
}
|
|
1784
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1786
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AccessPageComponent, decorators: [{
|
|
1785
1787
|
type: Component,
|
|
1786
1788
|
args: [{
|
|
1787
1789
|
selector: 'app-access',
|
|
@@ -1814,8 +1816,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1814
1816
|
|
|
1815
1817
|
class ErrorPageComponent {
|
|
1816
1818
|
config = inject(ErrorPagesConfigService).config();
|
|
1817
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1818
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1819
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ErrorPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1820
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: ErrorPageComponent, isStandalone: true, selector: "app-error", ngImport: i0, template: `
|
|
1819
1821
|
<div class="bg-surface-50 dark:bg-surface-950 flex items-center justify-center min-h-screen min-w-[100vw] overflow-hidden">
|
|
1820
1822
|
<div class="flex flex-col items-center justify-center">
|
|
1821
1823
|
<div style="border-radius: 56px; padding: 0.3rem; background: linear-gradient(180deg, rgba(233, 30, 99, 0.4) 10%, rgba(33, 150, 243, 0) 30%)">
|
|
@@ -1836,9 +1838,9 @@ class ErrorPageComponent {
|
|
|
1836
1838
|
</div>
|
|
1837
1839
|
</div>
|
|
1838
1840
|
</div>
|
|
1839
|
-
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$1.Button, selector: "p-button", inputs: ["
|
|
1841
|
+
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$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$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
|
1840
1842
|
}
|
|
1841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1843
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ErrorPageComponent, decorators: [{
|
|
1842
1844
|
type: Component,
|
|
1843
1845
|
args: [{
|
|
1844
1846
|
selector: 'app-error',
|
|
@@ -1871,8 +1873,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
1871
1873
|
|
|
1872
1874
|
class NotfoundPageComponent {
|
|
1873
1875
|
config = inject(ErrorPagesConfigService).config();
|
|
1874
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1875
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1876
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NotfoundPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1877
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: NotfoundPageComponent, isStandalone: true, selector: "app-notfound", ngImport: i0, template: `
|
|
1876
1878
|
<div class="flex items-center justify-center min-h-screen overflow-hidden">
|
|
1877
1879
|
<div class="flex flex-col items-center justify-center">
|
|
1878
1880
|
<div style="border-radius: 56px; padding: 0.3rem; background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color), transparent 60%) 10%, var(--surface-ground) 30%)">
|
|
@@ -1899,9 +1901,9 @@ class NotfoundPageComponent {
|
|
|
1899
1901
|
</div>
|
|
1900
1902
|
</div>
|
|
1901
1903
|
</div>
|
|
1902
|
-
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$1.Button, selector: "p-button", inputs: ["
|
|
1904
|
+
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$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"] }] });
|
|
1903
1905
|
}
|
|
1904
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1906
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NotfoundPageComponent, decorators: [{
|
|
1905
1907
|
type: Component,
|
|
1906
1908
|
args: [{
|
|
1907
1909
|
selector: 'app-notfound',
|