@ngx-smz/layout 21.10.0-next.2 → 21.10.0-next.21
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/README.md +19 -63
- package/fesm2022/ngx-smz-layout.mjs +470 -461
- package/fesm2022/ngx-smz-layout.mjs.map +1 -1
- package/package.json +6 -1
- package/resources/layout/_core.scss +24 -24
- package/resources/layout/_footer.scss +8 -8
- package/resources/layout/_main.scss +13 -13
- package/resources/layout/_menu.scss +160 -160
- package/resources/layout/_mixins.scss +15 -15
- package/resources/layout/_preloading.scss +47 -47
- package/resources/layout/_responsive.scss +117 -117
- package/resources/layout/_topbar.scss +204 -204
- package/resources/layout/_typography.scss +68 -68
- package/resources/layout/_utils.scss +25 -25
- package/resources/layout/layout.scss +13 -13
- package/resources/layout/legacy-layout.scss +2 -2
- package/resources/layout/variables/_legacy-common.scss +55 -55
- package/types/ngx-smz-layout.d.ts +17 -25
|
@@ -46,32 +46,32 @@ class SmzUILayout {
|
|
|
46
46
|
/**
|
|
47
47
|
* Writable menu graph from the host (`SMZ_UI_LAYOUT_CONFIG.sidebar`). Mutations here trigger {@link sidebar}.
|
|
48
48
|
*/
|
|
49
|
-
sidebarWritable = signal([], ...(ngDevMode ? [{ debugName: "sidebarWritable" }] : []));
|
|
49
|
+
sidebarWritable = signal([], ...(ngDevMode ? [{ debugName: "sidebarWritable" }] : /* istanbul ignore next */ []));
|
|
50
50
|
/**
|
|
51
51
|
* Menu prepared for shells such as Hephaestus: entries denied by {@link SmzUILayoutConfigType.hasClaim}
|
|
52
52
|
* use `visible: false` so templates only need visibility rules.
|
|
53
53
|
*/
|
|
54
|
-
sidebar = computed(() => cloneMenuItemsWithClaimVisibility(this.sidebarWritable(), this.layoutFeature?.hasClaim), ...(ngDevMode ? [{ debugName: "sidebar" }] : []));
|
|
54
|
+
sidebar = computed(() => cloneMenuItemsWithClaimVisibility(this.sidebarWritable(), this.layoutFeature?.hasClaim), ...(ngDevMode ? [{ debugName: "sidebar" }] : /* istanbul ignore next */ []));
|
|
55
55
|
layoutFeature = null;
|
|
56
|
-
footer = signal({}, ...(ngDevMode ? [{ debugName: "footer" }] : []));
|
|
56
|
+
footer = signal({}, ...(ngDevMode ? [{ debugName: "footer" }] : /* istanbul ignore next */ []));
|
|
57
57
|
topbar = signal({
|
|
58
58
|
showMenuToggle: true,
|
|
59
59
|
showBackButton: true,
|
|
60
|
-
}, ...(ngDevMode ? [{ debugName: "topbar" }] : []));
|
|
60
|
+
}, ...(ngDevMode ? [{ debugName: "topbar" }] : /* istanbul ignore next */ []));
|
|
61
61
|
layout = signal({
|
|
62
62
|
preset: 'Aura',
|
|
63
63
|
primary: 'orange',
|
|
64
64
|
surface: null,
|
|
65
65
|
darkTheme: false,
|
|
66
66
|
menuMode: 'static'
|
|
67
|
-
}, ...(ngDevMode ? [{ debugName: "layout" }] : []));
|
|
67
|
+
}, ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
68
68
|
state = signal({
|
|
69
69
|
staticMenuDesktopInactive: false,
|
|
70
70
|
overlayMenuActive: false,
|
|
71
71
|
configSidebarVisible: false,
|
|
72
72
|
staticMenuMobileActive: false,
|
|
73
73
|
menuHoverActive: false
|
|
74
|
-
}, ...(ngDevMode ? [{ debugName: "state" }] : []));
|
|
74
|
+
}, ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
75
75
|
setConfig(config) {
|
|
76
76
|
const { sidebar, footer, topbar } = config || {};
|
|
77
77
|
this.layoutFeature = config ?? null;
|
|
@@ -85,10 +85,10 @@ class SmzUILayout {
|
|
|
85
85
|
this.topbar = topbar;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
89
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
88
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzUILayout, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
89
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzUILayout, providedIn: 'root' });
|
|
90
90
|
}
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzUILayout, decorators: [{
|
|
92
92
|
type: Injectable,
|
|
93
93
|
args: [{ providedIn: 'root' }]
|
|
94
94
|
}] });
|
|
@@ -238,6 +238,13 @@ class SmzUILayoutProvisionBuilder {
|
|
|
238
238
|
function configureSmzUILayout() {
|
|
239
239
|
return new SmzUILayoutProvisionBuilder();
|
|
240
240
|
}
|
|
241
|
+
/**
|
|
242
|
+
* Registers layout feature objects and applies them on bootstrap.
|
|
243
|
+
*
|
|
244
|
+
* Prefer {@link configureSmzUILayout} with granular `.withSidebar()` / … for readability.
|
|
245
|
+
*
|
|
246
|
+
* @param resolveHasClaim Optional factory run **during app initialization** (injection context).
|
|
247
|
+
*/
|
|
241
248
|
function provideSmzUILayout(initializers, resolveHasClaim) {
|
|
242
249
|
const builder = configureSmzUILayout().withFeatures(initializers);
|
|
243
250
|
return resolveHasClaim != null
|
|
@@ -257,13 +264,13 @@ class LayoutService {
|
|
|
257
264
|
resetSource$ = this.resetSource.asObservable();
|
|
258
265
|
configUpdate$ = this.configUpdate.asObservable();
|
|
259
266
|
overlayOpen$ = this.overlayOpen.asObservable();
|
|
260
|
-
theme = computed(() => (this.layoutConfig()?.darkTheme ? 'light' : 'dark'), ...(ngDevMode ? [{ debugName: "theme" }] : []));
|
|
261
|
-
isSidebarActive = computed(() => this.layoutState().overlayMenuActive || this.layoutState().staticMenuMobileActive, ...(ngDevMode ? [{ debugName: "isSidebarActive" }] : []));
|
|
262
|
-
isDarkTheme = computed(() => this.layoutConfig().darkTheme, ...(ngDevMode ? [{ debugName: "isDarkTheme" }] : []));
|
|
263
|
-
getPrimary = computed(() => this.layoutConfig().primary, ...(ngDevMode ? [{ debugName: "getPrimary" }] : []));
|
|
264
|
-
getSurface = computed(() => this.layoutConfig().surface, ...(ngDevMode ? [{ debugName: "getSurface" }] : []));
|
|
265
|
-
isOverlay = computed(() => this.layoutConfig().menuMode === 'overlay', ...(ngDevMode ? [{ debugName: "isOverlay" }] : []));
|
|
266
|
-
transitionComplete = signal(false, ...(ngDevMode ? [{ debugName: "transitionComplete" }] : []));
|
|
267
|
+
theme = computed(() => (this.layoutConfig()?.darkTheme ? 'light' : 'dark'), ...(ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ []));
|
|
268
|
+
isSidebarActive = computed(() => this.layoutState().overlayMenuActive || this.layoutState().staticMenuMobileActive, ...(ngDevMode ? [{ debugName: "isSidebarActive" }] : /* istanbul ignore next */ []));
|
|
269
|
+
isDarkTheme = computed(() => this.layoutConfig().darkTheme, ...(ngDevMode ? [{ debugName: "isDarkTheme" }] : /* istanbul ignore next */ []));
|
|
270
|
+
getPrimary = computed(() => this.layoutConfig().primary, ...(ngDevMode ? [{ debugName: "getPrimary" }] : /* istanbul ignore next */ []));
|
|
271
|
+
getSurface = computed(() => this.layoutConfig().surface, ...(ngDevMode ? [{ debugName: "getSurface" }] : /* istanbul ignore next */ []));
|
|
272
|
+
isOverlay = computed(() => this.layoutConfig().menuMode === 'overlay', ...(ngDevMode ? [{ debugName: "isOverlay" }] : /* istanbul ignore next */ []));
|
|
273
|
+
transitionComplete = signal(false, ...(ngDevMode ? [{ debugName: "transitionComplete" }] : /* istanbul ignore next */ []));
|
|
267
274
|
initialized = false;
|
|
268
275
|
constructor() {
|
|
269
276
|
effect(() => {
|
|
@@ -282,7 +289,7 @@ class LayoutService {
|
|
|
282
289
|
});
|
|
283
290
|
}
|
|
284
291
|
handleDarkModeTransition(config) {
|
|
285
|
-
if (document.startViewTransition) {
|
|
292
|
+
if (typeof document.startViewTransition === 'function') {
|
|
286
293
|
this.startViewTransition(config);
|
|
287
294
|
}
|
|
288
295
|
else {
|
|
@@ -301,8 +308,8 @@ class LayoutService {
|
|
|
301
308
|
.catch(() => { });
|
|
302
309
|
}
|
|
303
310
|
toggleDarkMode(config) {
|
|
304
|
-
const
|
|
305
|
-
if (
|
|
311
|
+
const effectiveConfig = config || this.layoutConfig();
|
|
312
|
+
if (effectiveConfig.darkTheme) {
|
|
306
313
|
document.documentElement.classList.add('app-dark');
|
|
307
314
|
}
|
|
308
315
|
else {
|
|
@@ -347,10 +354,10 @@ class LayoutService {
|
|
|
347
354
|
reset() {
|
|
348
355
|
this.resetSource.next(true);
|
|
349
356
|
}
|
|
350
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
351
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
357
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
358
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutService, providedIn: 'root' });
|
|
352
359
|
}
|
|
353
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LayoutService, decorators: [{
|
|
354
361
|
type: Injectable,
|
|
355
362
|
args: [{
|
|
356
363
|
providedIn: 'root'
|
|
@@ -381,7 +388,7 @@ class AppConfigurator {
|
|
|
381
388
|
router = inject(Router);
|
|
382
389
|
layoutService = inject(LayoutService);
|
|
383
390
|
theme = inject(SmzThemeService);
|
|
384
|
-
showMenuModeButton = signal(!this.router.url.includes('auth'), ...(ngDevMode ? [{ debugName: "showMenuModeButton" }] : []));
|
|
391
|
+
showMenuModeButton = signal(!this.router.url.includes('auth'), ...(ngDevMode ? [{ debugName: "showMenuModeButton" }] : /* istanbul ignore next */ []));
|
|
385
392
|
menuModeOptions = [
|
|
386
393
|
{ label: 'Static', value: 'static' },
|
|
387
394
|
{ label: 'Overlay', value: 'overlay' }
|
|
@@ -389,9 +396,8 @@ class AppConfigurator {
|
|
|
389
396
|
constructor() {
|
|
390
397
|
// Reaplica cor primaria e superficie quando o modo claro/escuro muda (as sobrescritas inline vencem o CSS do tema).
|
|
391
398
|
effect(() => {
|
|
392
|
-
|
|
393
|
-
this.layoutService.layoutConfig()
|
|
394
|
-
this.layoutService.layoutConfig().surface;
|
|
399
|
+
// Reading the signal registers the dependency: any config change (dark theme, primary, surface) re-applies the colors.
|
|
400
|
+
this.layoutService.layoutConfig();
|
|
395
401
|
queueMicrotask(() => this.applyCurrent());
|
|
396
402
|
});
|
|
397
403
|
}
|
|
@@ -533,16 +539,14 @@ class AppConfigurator {
|
|
|
533
539
|
}
|
|
534
540
|
}
|
|
535
541
|
];
|
|
536
|
-
selectedPrimaryColor = computed(() => {
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
selectedSurfaceColor = computed(() => this.layoutService.layoutConfig().surface, ...(ngDevMode ? [{ debugName: "selectedSurfaceColor" }] : []));
|
|
540
|
-
menuMode = computed(() => this.layoutService.layoutConfig().menuMode, ...(ngDevMode ? [{ debugName: "menuMode" }] : []));
|
|
542
|
+
selectedPrimaryColor = computed(() => this.layoutService.layoutConfig().primary, ...(ngDevMode ? [{ debugName: "selectedPrimaryColor" }] : /* istanbul ignore next */ []));
|
|
543
|
+
selectedSurfaceColor = computed(() => this.layoutService.layoutConfig().surface, ...(ngDevMode ? [{ debugName: "selectedSurfaceColor" }] : /* istanbul ignore next */ []));
|
|
544
|
+
menuMode = computed(() => this.layoutService.layoutConfig().menuMode, ...(ngDevMode ? [{ debugName: "menuMode" }] : /* istanbul ignore next */ []));
|
|
541
545
|
primaryColors = computed(() => {
|
|
542
546
|
const palettes = [{ name: 'noir', palette: {} }];
|
|
543
547
|
Object.entries(PRIMARY_PALETTES).forEach(([name, palette]) => palettes.push({ name, palette }));
|
|
544
548
|
return palettes;
|
|
545
|
-
}, ...(ngDevMode ? [{ debugName: "primaryColors" }] : []));
|
|
549
|
+
}, ...(ngDevMode ? [{ debugName: "primaryColors" }] : /* istanbul ignore next */ []));
|
|
546
550
|
updateColors(event, type, color) {
|
|
547
551
|
if (type === 'primary') {
|
|
548
552
|
this.layoutService.layoutConfig.update((state) => ({ ...state, primary: color.name }));
|
|
@@ -574,8 +578,8 @@ class AppConfigurator {
|
|
|
574
578
|
: { 'surface-0': p[50], 'surface-1': p[0], 'surface-2': p[0], 'surface-3': p[100], fg: p[900], 'fg-muted': p[600], 'fg-subtle': p[400], line: p[200], 'line-strong': p[300] });
|
|
575
579
|
}
|
|
576
580
|
}
|
|
577
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
578
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
581
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppConfigurator, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
582
|
+
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: `
|
|
579
583
|
<div class="flex flex-col gap-4">
|
|
580
584
|
<div>
|
|
581
585
|
<span class="text-sm text-muted-color font-semibold">Primary</span>
|
|
@@ -620,7 +624,7 @@ class AppConfigurator {
|
|
|
620
624
|
</div>
|
|
621
625
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: SmzSelectButtonComponent, selector: "ui-select-button", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "dataKey", "multiple", "allowEmpty", "size", "styleClass", "appendTo"], outputs: ["changed"] }] });
|
|
622
626
|
}
|
|
623
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
627
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppConfigurator, decorators: [{
|
|
624
628
|
type: Component,
|
|
625
629
|
args: [{
|
|
626
630
|
selector: 'app-configurator',
|
|
@@ -693,10 +697,10 @@ class InjectComponentService {
|
|
|
693
697
|
getComponent(key) {
|
|
694
698
|
return this.componentRefs.get(key);
|
|
695
699
|
}
|
|
696
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
697
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
700
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: InjectComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
701
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: InjectComponentService, providedIn: 'root' });
|
|
698
702
|
}
|
|
699
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
703
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: InjectComponentService, decorators: [{
|
|
700
704
|
type: Injectable,
|
|
701
705
|
args: [{
|
|
702
706
|
providedIn: 'root'
|
|
@@ -735,7 +739,7 @@ class ComponentInjectorDirective {
|
|
|
735
739
|
const instanceOutput = Reflect.get(instance, output.key);
|
|
736
740
|
if (instanceOutput != null) {
|
|
737
741
|
instanceOutput
|
|
738
|
-
.pipe(takeWhile(
|
|
742
|
+
.pipe(takeWhile(() => this.isActive))
|
|
739
743
|
.subscribe((event) => {
|
|
740
744
|
if (output.callback != null)
|
|
741
745
|
output.callback(event);
|
|
@@ -755,12 +759,13 @@ class ComponentInjectorDirective {
|
|
|
755
759
|
ngOnDestroy() {
|
|
756
760
|
this.removeComp();
|
|
757
761
|
}
|
|
758
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
759
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
762
|
+
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 });
|
|
763
|
+
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 });
|
|
760
764
|
}
|
|
761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
765
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ComponentInjectorDirective, decorators: [{
|
|
762
766
|
type: Directive,
|
|
763
767
|
args: [{
|
|
768
|
+
// eslint-disable-next-line @angular-eslint/directive-selector -- public attribute selector; renaming it would break consumer templates
|
|
764
769
|
selector: 'ng-template[componentInjector]',
|
|
765
770
|
standalone: true,
|
|
766
771
|
}]
|
|
@@ -778,18 +783,17 @@ class SmzLayoutLogging {
|
|
|
778
783
|
production: false,
|
|
779
784
|
level: 'debug',
|
|
780
785
|
restrictedScopes: []
|
|
781
|
-
}, ...(ngDevMode ? [{ debugName: "logging" }] : []));
|
|
786
|
+
}, ...(ngDevMode ? [{ debugName: "logging" }] : /* istanbul ignore next */ []));
|
|
782
787
|
setConfig(config) {
|
|
783
788
|
const { logging } = config || {};
|
|
784
789
|
if (logging) {
|
|
785
790
|
this.logging = logging;
|
|
786
791
|
}
|
|
787
|
-
;
|
|
788
792
|
}
|
|
789
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
790
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
793
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzLayoutLogging, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
794
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzLayoutLogging, providedIn: 'root' });
|
|
791
795
|
}
|
|
792
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
796
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzLayoutLogging, decorators: [{
|
|
793
797
|
type: Injectable,
|
|
794
798
|
args: [{ providedIn: 'root' }]
|
|
795
799
|
}] });
|
|
@@ -811,15 +815,16 @@ function provideSmzLayoutLogging(initializers) {
|
|
|
811
815
|
}
|
|
812
816
|
|
|
813
817
|
// logging.service.ts
|
|
818
|
+
/* eslint-disable no-console -- LoggingService is the console wrapper; forwarding to console is its purpose */
|
|
814
819
|
class LoggingService {
|
|
815
820
|
configFn = inject(SMZ_LAYOUT_LOGGING_CONFIG).logging;
|
|
816
|
-
enabled = signal(this.configFn().enabled, ...(ngDevMode ? [{ debugName: "enabled" }] : []));
|
|
821
|
+
enabled = signal(this.configFn().enabled, ...(ngDevMode ? [{ debugName: "enabled" }] : /* istanbul ignore next */ []));
|
|
817
822
|
// nível de each log: debug=0, info=1, warn=2, error=3
|
|
818
823
|
levelRank = { debug: 0, info: 1, warn: 2, error: 3 };
|
|
819
824
|
/** expose current settings */
|
|
820
|
-
isEnabled = computed(() => this.enabled(), ...(ngDevMode ? [{ debugName: "isEnabled" }] : []));
|
|
821
|
-
currentLevel = computed(() => this.configFn().level ?? 'debug', ...(ngDevMode ? [{ debugName: "currentLevel" }] : []));
|
|
822
|
-
activeScopes = computed(() => this.configFn().restrictedScopes ?? [], ...(ngDevMode ? [{ debugName: "activeScopes" }] : []));
|
|
825
|
+
isEnabled = computed(() => this.enabled(), ...(ngDevMode ? [{ debugName: "isEnabled" }] : /* istanbul ignore next */ []));
|
|
826
|
+
currentLevel = computed(() => this.configFn().level ?? 'debug', ...(ngDevMode ? [{ debugName: "currentLevel" }] : /* istanbul ignore next */ []));
|
|
827
|
+
activeScopes = computed(() => this.configFn().restrictedScopes ?? [], ...(ngDevMode ? [{ debugName: "activeScopes" }] : /* istanbul ignore next */ []));
|
|
823
828
|
/** toggle logging global */
|
|
824
829
|
enable() { this.enabled.set(true); }
|
|
825
830
|
disable() { this.enabled.set(false); }
|
|
@@ -896,10 +901,10 @@ class LoggingService {
|
|
|
896
901
|
}
|
|
897
902
|
};
|
|
898
903
|
}
|
|
899
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
900
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
904
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LoggingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
905
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LoggingService, providedIn: 'root' });
|
|
901
906
|
}
|
|
902
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
907
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: LoggingService, decorators: [{
|
|
903
908
|
type: Injectable,
|
|
904
909
|
args: [{ providedIn: 'root' }]
|
|
905
910
|
}] });
|
|
@@ -915,9 +920,9 @@ var LoggingScope;
|
|
|
915
920
|
class NavigationService {
|
|
916
921
|
router = inject(Router);
|
|
917
922
|
location = inject(Location);
|
|
918
|
-
history = signal(['/'], ...(ngDevMode ? [{ debugName: "history" }] : []));
|
|
919
|
-
isPopping = signal(false, ...(ngDevMode ? [{ debugName: "isPopping" }] : []));
|
|
920
|
-
canGoBack = computed(() => this.history().length > 1, ...(ngDevMode ? [{ debugName: "canGoBack" }] : []));
|
|
923
|
+
history = signal(['/'], ...(ngDevMode ? [{ debugName: "history" }] : /* istanbul ignore next */ []));
|
|
924
|
+
isPopping = signal(false, ...(ngDevMode ? [{ debugName: "isPopping" }] : /* istanbul ignore next */ []));
|
|
925
|
+
canGoBack = computed(() => this.history().length > 1, ...(ngDevMode ? [{ debugName: "canGoBack" }] : /* istanbul ignore next */ []));
|
|
921
926
|
loggingService = inject(LoggingService);
|
|
922
927
|
logger = this.loggingService.scoped(LoggingScope.NavigationService);
|
|
923
928
|
constructor() {
|
|
@@ -983,10 +988,10 @@ class NavigationService {
|
|
|
983
988
|
});
|
|
984
989
|
this.location.back();
|
|
985
990
|
}
|
|
986
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
987
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
991
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: NavigationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
992
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: NavigationService, providedIn: 'root' });
|
|
988
993
|
}
|
|
989
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
994
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: NavigationService, decorators: [{
|
|
990
995
|
type: Injectable,
|
|
991
996
|
args: [{ providedIn: 'root' }]
|
|
992
997
|
}], ctorParameters: () => [] });
|
|
@@ -996,11 +1001,11 @@ class PageTitleService {
|
|
|
996
1001
|
loggingService = inject(LoggingService);
|
|
997
1002
|
logger = this.loggingService.scoped(LoggingScope.PageTitleService);
|
|
998
1003
|
// signal que guarda o título (ou null)
|
|
999
|
-
titleSignal = signal(null, ...(ngDevMode ? [{ debugName: "titleSignal" }] : []));
|
|
1004
|
+
titleSignal = signal(null, ...(ngDevMode ? [{ debugName: "titleSignal" }] : /* istanbul ignore next */ []));
|
|
1000
1005
|
// string pura para template ('' quando null)
|
|
1001
|
-
title = computed(() => this.titleSignal() ?? '', ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
1006
|
+
title = computed(() => this.titleSignal() ?? '', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
1002
1007
|
// boolean para visibilidade (false quando null)
|
|
1003
|
-
hasTitle = computed(() => this.titleSignal() !== null, ...(ngDevMode ? [{ debugName: "hasTitle" }] : []));
|
|
1008
|
+
hasTitle = computed(() => this.titleSignal() !== null, ...(ngDevMode ? [{ debugName: "hasTitle" }] : /* istanbul ignore next */ []));
|
|
1004
1009
|
constructor() {
|
|
1005
1010
|
// toda vez que uma navegação termina, atualiza o título
|
|
1006
1011
|
this.router.events
|
|
@@ -1025,10 +1030,10 @@ class PageTitleService {
|
|
|
1025
1030
|
: null;
|
|
1026
1031
|
this.titleSignal.set(title);
|
|
1027
1032
|
}
|
|
1028
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1029
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
1033
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: PageTitleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1034
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: PageTitleService, providedIn: 'root' });
|
|
1030
1035
|
}
|
|
1031
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1036
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: PageTitleService, decorators: [{
|
|
1032
1037
|
type: Injectable,
|
|
1033
1038
|
args: [{ providedIn: 'root' }]
|
|
1034
1039
|
}], ctorParameters: () => [] });
|
|
@@ -1044,8 +1049,8 @@ class AppTopbar {
|
|
|
1044
1049
|
handleMissingImage(event, placeholder) {
|
|
1045
1050
|
event.target.src = placeholder;
|
|
1046
1051
|
}
|
|
1047
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1048
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1052
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppTopbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1053
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: AppTopbar, isStandalone: true, selector: "app-topbar", ngImport: i0, template: `
|
|
1049
1054
|
@if (data(); as topbar) {
|
|
1050
1055
|
<div class="layout-topbar">
|
|
1051
1056
|
<div class="layout-topbar-logo-container">
|
|
@@ -1108,7 +1113,8 @@ class AppTopbar {
|
|
|
1108
1113
|
}
|
|
1109
1114
|
@if (topbar.showConfigurator) {
|
|
1110
1115
|
<div class="relative">
|
|
1111
|
-
<button class="layout-topbar-action layout-topbar-action-highlight" smzTooltip="Configurações"
|
|
1116
|
+
<button class="layout-topbar-action layout-topbar-action-highlight" smzTooltip="Configurações"
|
|
1117
|
+
smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1112
1118
|
<i class="fa-solid fa-palette"></i>
|
|
1113
1119
|
</button>
|
|
1114
1120
|
<app-configurator></app-configurator>
|
|
@@ -1132,7 +1138,7 @@ class AppTopbar {
|
|
|
1132
1138
|
</div>
|
|
1133
1139
|
}`, isInline: true, dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: SmzStyleClassDirective, selector: "[smzStyleClass]", inputs: ["smzStyleClass", "enterFromClass", "enterActiveClass", "enterToClass", "leaveFromClass", "leaveActiveClass", "leaveToClass", "hideOnOutsideClick", "toggleClass"] }, { kind: "component", type: AppConfigurator, selector: "app-configurator" }, { kind: "directive", type: ComponentInjectorDirective, selector: "ng-template[componentInjector]", inputs: ["componentInjector", "context"], outputs: ["componentCreated"] }, { kind: "directive", type: SmzTooltipDirective, selector: "[smzTooltip]", inputs: ["smzTooltip", "tooltipPosition", "showDelay", "hideDelay", "tooltipEvent", "escape", "tooltipStyleClass", "tooltipZIndex", "tooltipDisabled", "tooltipOptions", "appendTo"] }, { kind: "component", type: SmzMenuListComponent, selector: "ui-menu", inputs: ["model", "popup", "style", "styleClass", "autoZIndex", "appendTo", "baseZIndex"], outputs: ["shown", "hidden"] }] });
|
|
1134
1140
|
}
|
|
1135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppTopbar, decorators: [{
|
|
1136
1142
|
type: Component,
|
|
1137
1143
|
args: [{
|
|
1138
1144
|
selector: 'app-topbar',
|
|
@@ -1201,7 +1207,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1201
1207
|
}
|
|
1202
1208
|
@if (topbar.showConfigurator) {
|
|
1203
1209
|
<div class="relative">
|
|
1204
|
-
<button class="layout-topbar-action layout-topbar-action-highlight" smzTooltip="Configurações"
|
|
1210
|
+
<button class="layout-topbar-action layout-topbar-action-highlight" smzTooltip="Configurações"
|
|
1211
|
+
smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1205
1212
|
<i class="fa-solid fa-palette"></i>
|
|
1206
1213
|
</button>
|
|
1207
1214
|
<app-configurator></app-configurator>
|
|
@@ -1256,7 +1263,7 @@ class AppMenuitem {
|
|
|
1256
1263
|
this.menuResetSubscription = this.layoutService.resetSource$.subscribe(() => {
|
|
1257
1264
|
this.active = false;
|
|
1258
1265
|
});
|
|
1259
|
-
this.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe((
|
|
1266
|
+
this.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe(() => {
|
|
1260
1267
|
if (this.item.routerLink) {
|
|
1261
1268
|
this.updateActiveStateFromRoute();
|
|
1262
1269
|
}
|
|
@@ -1269,7 +1276,7 @@ class AppMenuitem {
|
|
|
1269
1276
|
}
|
|
1270
1277
|
}
|
|
1271
1278
|
updateActiveStateFromRoute() {
|
|
1272
|
-
|
|
1279
|
+
const activeRoute = this.router.isActive(this.item.routerLink[0], { paths: 'exact', queryParams: 'ignored', matrixParams: 'ignored', fragment: 'ignored' });
|
|
1273
1280
|
if (activeRoute) {
|
|
1274
1281
|
this.layoutService.onMenuStateChange({ key: this.key, routeEvent: true });
|
|
1275
1282
|
}
|
|
@@ -1304,57 +1311,57 @@ class AppMenuitem {
|
|
|
1304
1311
|
this.menuResetSubscription.unsubscribe();
|
|
1305
1312
|
}
|
|
1306
1313
|
}
|
|
1307
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1308
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1309
|
-
<ng-container>
|
|
1310
|
-
@if (root && item.visible !== false) {
|
|
1311
|
-
<div class="layout-menuitem-root-text">{{ item.label }}</div>
|
|
1312
|
-
}
|
|
1313
|
-
@if ((!item.routerLink || item.items) && item.visible !== false) {
|
|
1314
|
-
<a [attr.href]="item.url" (click)="itemClick($event)" [ngClass]="item.styleClass" [attr.target]="item.target" tabindex="0" smzRipple>
|
|
1315
|
-
<i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
|
|
1316
|
-
<span class="layout-menuitem-text">{{ item.label }}</span>
|
|
1317
|
-
@if (item.items) {
|
|
1318
|
-
<i class="fa-solid fa-fw fa-angle-down layout-submenu-toggler"></i>
|
|
1319
|
-
}
|
|
1320
|
-
</a>
|
|
1321
|
-
}
|
|
1322
|
-
@if (item.routerLink && !item.items && item.visible !== false) {
|
|
1323
|
-
<a
|
|
1324
|
-
(click)="itemClick($event)"
|
|
1325
|
-
[ngClass]="item.styleClass"
|
|
1326
|
-
[routerLink]="item.routerLink"
|
|
1327
|
-
routerLinkActive="active-route"
|
|
1328
|
-
[routerLinkActiveOptions]="item.routerLinkActiveOptions || { paths: 'exact', queryParams: 'ignored', matrixParams: 'ignored', fragment: 'ignored' }"
|
|
1329
|
-
[fragment]="item.fragment"
|
|
1330
|
-
[queryParamsHandling]="item.queryParamsHandling"
|
|
1331
|
-
[preserveFragment]="item.preserveFragment"
|
|
1332
|
-
[skipLocationChange]="item.skipLocationChange"
|
|
1333
|
-
[replaceUrl]="item.replaceUrl"
|
|
1334
|
-
[state]="item.state"
|
|
1335
|
-
[queryParams]="item.queryParams"
|
|
1336
|
-
[attr.target]="item.target"
|
|
1337
|
-
tabindex="0"
|
|
1338
|
-
smzRipple
|
|
1339
|
-
>
|
|
1340
|
-
<i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
|
|
1341
|
-
<span class="layout-menuitem-text">{{ item.label }}</span>
|
|
1342
|
-
@if (item.items) {
|
|
1343
|
-
<i class="fa-solid fa-fw fa-angle-down layout-submenu-toggler"></i>
|
|
1344
|
-
}
|
|
1345
|
-
</a>
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
@if (item.items && item.visible !== false) {
|
|
1349
|
-
<ul [@children]="submenuAnimation">
|
|
1350
|
-
@for (child of item.items; track child; let i = $index) {
|
|
1351
|
-
@if (child.visible !== false) {
|
|
1352
|
-
<li app-menuitem [item]="child" [index]="i" [parentKey]="key" [class]="child['badgeClass']"></li>
|
|
1353
|
-
}
|
|
1354
|
-
}
|
|
1355
|
-
</ul>
|
|
1356
|
-
}
|
|
1357
|
-
</ng-container>
|
|
1314
|
+
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 });
|
|
1315
|
+
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: `
|
|
1316
|
+
<ng-container>
|
|
1317
|
+
@if (root && item.visible !== false) {
|
|
1318
|
+
<div class="layout-menuitem-root-text">{{ item.label }}</div>
|
|
1319
|
+
}
|
|
1320
|
+
@if ((!item.routerLink || item.items) && item.visible !== false) {
|
|
1321
|
+
<a [attr.href]="item.url" (click)="itemClick($event)" [ngClass]="item.styleClass" [attr.target]="item.target" tabindex="0" smzRipple>
|
|
1322
|
+
<i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
|
|
1323
|
+
<span class="layout-menuitem-text">{{ item.label }}</span>
|
|
1324
|
+
@if (item.items) {
|
|
1325
|
+
<i class="fa-solid fa-fw fa-angle-down layout-submenu-toggler"></i>
|
|
1326
|
+
}
|
|
1327
|
+
</a>
|
|
1328
|
+
}
|
|
1329
|
+
@if (item.routerLink && !item.items && item.visible !== false) {
|
|
1330
|
+
<a
|
|
1331
|
+
(click)="itemClick($event)"
|
|
1332
|
+
[ngClass]="item.styleClass"
|
|
1333
|
+
[routerLink]="item.routerLink"
|
|
1334
|
+
routerLinkActive="active-route"
|
|
1335
|
+
[routerLinkActiveOptions]="item.routerLinkActiveOptions || { paths: 'exact', queryParams: 'ignored', matrixParams: 'ignored', fragment: 'ignored' }"
|
|
1336
|
+
[fragment]="item.fragment"
|
|
1337
|
+
[queryParamsHandling]="item.queryParamsHandling"
|
|
1338
|
+
[preserveFragment]="item.preserveFragment"
|
|
1339
|
+
[skipLocationChange]="item.skipLocationChange"
|
|
1340
|
+
[replaceUrl]="item.replaceUrl"
|
|
1341
|
+
[state]="item.state"
|
|
1342
|
+
[queryParams]="item.queryParams"
|
|
1343
|
+
[attr.target]="item.target"
|
|
1344
|
+
tabindex="0"
|
|
1345
|
+
smzRipple
|
|
1346
|
+
>
|
|
1347
|
+
<i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
|
|
1348
|
+
<span class="layout-menuitem-text">{{ item.label }}</span>
|
|
1349
|
+
@if (item.items) {
|
|
1350
|
+
<i class="fa-solid fa-fw fa-angle-down layout-submenu-toggler"></i>
|
|
1351
|
+
}
|
|
1352
|
+
</a>
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
@if (item.items && item.visible !== false) {
|
|
1356
|
+
<ul [@children]="submenuAnimation">
|
|
1357
|
+
@for (child of item.items; track child; let i = $index) {
|
|
1358
|
+
@if (child.visible !== false) {
|
|
1359
|
+
<li app-menuitem [item]="child" [index]="i" [parentKey]="key" [class]="child['badgeClass']"></li>
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
</ul>
|
|
1363
|
+
}
|
|
1364
|
+
</ng-container>
|
|
1358
1365
|
`, isInline: true, dependencies: [{ kind: "component", type: AppMenuitem, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: SmzRippleDirective, selector: "[smzRipple]" }], animations: [
|
|
1359
1366
|
trigger('children', [
|
|
1360
1367
|
state('collapsed', style({
|
|
@@ -1367,62 +1374,62 @@ class AppMenuitem {
|
|
|
1367
1374
|
])
|
|
1368
1375
|
] });
|
|
1369
1376
|
}
|
|
1370
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppMenuitem, decorators: [{
|
|
1371
1378
|
type: Component,
|
|
1372
1379
|
args: [{
|
|
1373
1380
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
1374
1381
|
selector: '[app-menuitem]',
|
|
1375
1382
|
imports: [CommonModule, RouterModule, SmzRippleDirective],
|
|
1376
|
-
template: `
|
|
1377
|
-
<ng-container>
|
|
1378
|
-
@if (root && item.visible !== false) {
|
|
1379
|
-
<div class="layout-menuitem-root-text">{{ item.label }}</div>
|
|
1380
|
-
}
|
|
1381
|
-
@if ((!item.routerLink || item.items) && item.visible !== false) {
|
|
1382
|
-
<a [attr.href]="item.url" (click)="itemClick($event)" [ngClass]="item.styleClass" [attr.target]="item.target" tabindex="0" smzRipple>
|
|
1383
|
-
<i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
|
|
1384
|
-
<span class="layout-menuitem-text">{{ item.label }}</span>
|
|
1385
|
-
@if (item.items) {
|
|
1386
|
-
<i class="fa-solid fa-fw fa-angle-down layout-submenu-toggler"></i>
|
|
1387
|
-
}
|
|
1388
|
-
</a>
|
|
1389
|
-
}
|
|
1390
|
-
@if (item.routerLink && !item.items && item.visible !== false) {
|
|
1391
|
-
<a
|
|
1392
|
-
(click)="itemClick($event)"
|
|
1393
|
-
[ngClass]="item.styleClass"
|
|
1394
|
-
[routerLink]="item.routerLink"
|
|
1395
|
-
routerLinkActive="active-route"
|
|
1396
|
-
[routerLinkActiveOptions]="item.routerLinkActiveOptions || { paths: 'exact', queryParams: 'ignored', matrixParams: 'ignored', fragment: 'ignored' }"
|
|
1397
|
-
[fragment]="item.fragment"
|
|
1398
|
-
[queryParamsHandling]="item.queryParamsHandling"
|
|
1399
|
-
[preserveFragment]="item.preserveFragment"
|
|
1400
|
-
[skipLocationChange]="item.skipLocationChange"
|
|
1401
|
-
[replaceUrl]="item.replaceUrl"
|
|
1402
|
-
[state]="item.state"
|
|
1403
|
-
[queryParams]="item.queryParams"
|
|
1404
|
-
[attr.target]="item.target"
|
|
1405
|
-
tabindex="0"
|
|
1406
|
-
smzRipple
|
|
1407
|
-
>
|
|
1408
|
-
<i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
|
|
1409
|
-
<span class="layout-menuitem-text">{{ item.label }}</span>
|
|
1410
|
-
@if (item.items) {
|
|
1411
|
-
<i class="fa-solid fa-fw fa-angle-down layout-submenu-toggler"></i>
|
|
1412
|
-
}
|
|
1413
|
-
</a>
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
@if (item.items && item.visible !== false) {
|
|
1417
|
-
<ul [@children]="submenuAnimation">
|
|
1418
|
-
@for (child of item.items; track child; let i = $index) {
|
|
1419
|
-
@if (child.visible !== false) {
|
|
1420
|
-
<li app-menuitem [item]="child" [index]="i" [parentKey]="key" [class]="child['badgeClass']"></li>
|
|
1421
|
-
}
|
|
1422
|
-
}
|
|
1423
|
-
</ul>
|
|
1424
|
-
}
|
|
1425
|
-
</ng-container>
|
|
1383
|
+
template: `
|
|
1384
|
+
<ng-container>
|
|
1385
|
+
@if (root && item.visible !== false) {
|
|
1386
|
+
<div class="layout-menuitem-root-text">{{ item.label }}</div>
|
|
1387
|
+
}
|
|
1388
|
+
@if ((!item.routerLink || item.items) && item.visible !== false) {
|
|
1389
|
+
<a [attr.href]="item.url" (click)="itemClick($event)" [ngClass]="item.styleClass" [attr.target]="item.target" tabindex="0" smzRipple>
|
|
1390
|
+
<i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
|
|
1391
|
+
<span class="layout-menuitem-text">{{ item.label }}</span>
|
|
1392
|
+
@if (item.items) {
|
|
1393
|
+
<i class="fa-solid fa-fw fa-angle-down layout-submenu-toggler"></i>
|
|
1394
|
+
}
|
|
1395
|
+
</a>
|
|
1396
|
+
}
|
|
1397
|
+
@if (item.routerLink && !item.items && item.visible !== false) {
|
|
1398
|
+
<a
|
|
1399
|
+
(click)="itemClick($event)"
|
|
1400
|
+
[ngClass]="item.styleClass"
|
|
1401
|
+
[routerLink]="item.routerLink"
|
|
1402
|
+
routerLinkActive="active-route"
|
|
1403
|
+
[routerLinkActiveOptions]="item.routerLinkActiveOptions || { paths: 'exact', queryParams: 'ignored', matrixParams: 'ignored', fragment: 'ignored' }"
|
|
1404
|
+
[fragment]="item.fragment"
|
|
1405
|
+
[queryParamsHandling]="item.queryParamsHandling"
|
|
1406
|
+
[preserveFragment]="item.preserveFragment"
|
|
1407
|
+
[skipLocationChange]="item.skipLocationChange"
|
|
1408
|
+
[replaceUrl]="item.replaceUrl"
|
|
1409
|
+
[state]="item.state"
|
|
1410
|
+
[queryParams]="item.queryParams"
|
|
1411
|
+
[attr.target]="item.target"
|
|
1412
|
+
tabindex="0"
|
|
1413
|
+
smzRipple
|
|
1414
|
+
>
|
|
1415
|
+
<i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
|
|
1416
|
+
<span class="layout-menuitem-text">{{ item.label }}</span>
|
|
1417
|
+
@if (item.items) {
|
|
1418
|
+
<i class="fa-solid fa-fw fa-angle-down layout-submenu-toggler"></i>
|
|
1419
|
+
}
|
|
1420
|
+
</a>
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
@if (item.items && item.visible !== false) {
|
|
1424
|
+
<ul [@children]="submenuAnimation">
|
|
1425
|
+
@for (child of item.items; track child; let i = $index) {
|
|
1426
|
+
@if (child.visible !== false) {
|
|
1427
|
+
<li app-menuitem [item]="child" [index]="i" [parentKey]="key" [class]="child['badgeClass']"></li>
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
</ul>
|
|
1431
|
+
}
|
|
1432
|
+
</ng-container>
|
|
1426
1433
|
`,
|
|
1427
1434
|
animations: [
|
|
1428
1435
|
trigger('children', [
|
|
@@ -1455,33 +1462,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1455
1462
|
|
|
1456
1463
|
class AppMenu {
|
|
1457
1464
|
model = inject(SmzUILayout).sidebar;
|
|
1458
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1459
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1460
|
-
@for (item of model(); track item; let i = $index) {
|
|
1461
|
-
@if (!item.separator && item.visible !== false) {
|
|
1462
|
-
<li app-menuitem [item]="item" [index]="i" [root]="true"></li>
|
|
1463
|
-
}
|
|
1464
|
-
@if (item.separator) {
|
|
1465
|
-
<li class="menu-separator"></li>
|
|
1466
|
-
}
|
|
1467
|
-
}
|
|
1465
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1466
|
+
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">
|
|
1467
|
+
@for (item of model(); track item; let i = $index) {
|
|
1468
|
+
@if (!item.separator && item.visible !== false) {
|
|
1469
|
+
<li app-menuitem [item]="item" [index]="i" [root]="true"></li>
|
|
1470
|
+
}
|
|
1471
|
+
@if (item.separator) {
|
|
1472
|
+
<li class="menu-separator"></li>
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1468
1475
|
</ul>`, isInline: true, dependencies: [{ kind: "component", type: AppMenuitem, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey"] }, { kind: "ngmodule", type: RouterModule }] });
|
|
1469
1476
|
}
|
|
1470
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppMenu, decorators: [{
|
|
1471
1478
|
type: Component,
|
|
1472
1479
|
args: [{
|
|
1473
1480
|
selector: 'app-menu',
|
|
1474
1481
|
standalone: true,
|
|
1475
1482
|
imports: [AppMenuitem, RouterModule],
|
|
1476
|
-
template: `<ul class="layout-menu">
|
|
1477
|
-
@for (item of model(); track item; let i = $index) {
|
|
1478
|
-
@if (!item.separator && item.visible !== false) {
|
|
1479
|
-
<li app-menuitem [item]="item" [index]="i" [root]="true"></li>
|
|
1480
|
-
}
|
|
1481
|
-
@if (item.separator) {
|
|
1482
|
-
<li class="menu-separator"></li>
|
|
1483
|
-
}
|
|
1484
|
-
}
|
|
1483
|
+
template: `<ul class="layout-menu">
|
|
1484
|
+
@for (item of model(); track item; let i = $index) {
|
|
1485
|
+
@if (!item.separator && item.visible !== false) {
|
|
1486
|
+
<li app-menuitem [item]="item" [index]="i" [root]="true"></li>
|
|
1487
|
+
}
|
|
1488
|
+
@if (item.separator) {
|
|
1489
|
+
<li class="menu-separator"></li>
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1485
1492
|
</ul>`
|
|
1486
1493
|
}]
|
|
1487
1494
|
}] });
|
|
@@ -1491,19 +1498,19 @@ class AppSidebar {
|
|
|
1491
1498
|
constructor(el) {
|
|
1492
1499
|
this.el = el;
|
|
1493
1500
|
}
|
|
1494
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1495
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1496
|
-
<app-menu></app-menu>
|
|
1501
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppSidebar, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1502
|
+
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">
|
|
1503
|
+
<app-menu></app-menu>
|
|
1497
1504
|
</div>`, isInline: true, dependencies: [{ kind: "component", type: AppMenu, selector: "app-menu" }] });
|
|
1498
1505
|
}
|
|
1499
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppSidebar, decorators: [{
|
|
1500
1507
|
type: Component,
|
|
1501
1508
|
args: [{
|
|
1502
1509
|
selector: 'app-sidebar',
|
|
1503
1510
|
standalone: true,
|
|
1504
1511
|
imports: [AppMenu],
|
|
1505
|
-
template: ` <div class="layout-sidebar">
|
|
1506
|
-
<app-menu></app-menu>
|
|
1512
|
+
template: ` <div class="layout-sidebar">
|
|
1513
|
+
<app-menu></app-menu>
|
|
1507
1514
|
</div>`
|
|
1508
1515
|
}]
|
|
1509
1516
|
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
@@ -1511,63 +1518,63 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1511
1518
|
class AppFooter {
|
|
1512
1519
|
data = inject(SMZ_UI_LAYOUT_CONFIG).footer;
|
|
1513
1520
|
layoutService = inject(LayoutService);
|
|
1514
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1515
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1516
|
-
@if (data(); as footer) {
|
|
1517
|
-
<div class="flex items-center justify-between px-0 py-4 gap-4 border-t border-surface-border">
|
|
1518
|
-
@if (footer.leftLogoPath?.light && !layoutService.isDarkTheme()) {
|
|
1519
|
-
<img [src]="footer.leftLogoPath?.light" [alt]="footer.leftLogoPath?.light" class="max-h-7" />
|
|
1520
|
-
}
|
|
1521
|
-
@if (footer.leftLogoPath?.dark && layoutService.isDarkTheme()) {
|
|
1522
|
-
<img [src]="footer.leftLogoPath?.dark" [alt]="footer.leftLogoPath?.dark" class="max-h-7" />
|
|
1523
|
-
}
|
|
1524
|
-
<div class="flex-1"></div>
|
|
1525
|
-
@if (footer.rightLogoPath?.light && !layoutService.isDarkTheme()) {
|
|
1526
|
-
<img [src]="footer.rightLogoPath?.light" [alt]="footer.rightLogoPath?.light" class="max-h-7" />
|
|
1527
|
-
}
|
|
1528
|
-
@if (footer.rightLogoPath?.dark && layoutService.isDarkTheme()) {
|
|
1529
|
-
<img [src]="footer.rightLogoPath?.dark" [alt]="footer.rightLogoPath?.dark" class="max-h-7" />
|
|
1530
|
-
}
|
|
1531
|
-
@if (footer.version) {
|
|
1532
|
-
<span class="font-medium text-sm">{{ footer.version }}</span>
|
|
1533
|
-
}
|
|
1534
|
-
@if (footer.copyright) {
|
|
1535
|
-
<span class="font-medium text-sm">{{ footer.copyright }}</span>
|
|
1536
|
-
}
|
|
1537
|
-
</div>
|
|
1538
|
-
}
|
|
1521
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppFooter, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1522
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: AppFooter, isStandalone: true, selector: "app-footer", ngImport: i0, template: `
|
|
1523
|
+
@if (data(); as footer) {
|
|
1524
|
+
<div class="flex items-center justify-between px-0 py-4 gap-4 border-t border-surface-border">
|
|
1525
|
+
@if (footer.leftLogoPath?.light && !layoutService.isDarkTheme()) {
|
|
1526
|
+
<img [src]="footer.leftLogoPath?.light" [alt]="footer.leftLogoPath?.light" class="max-h-7" />
|
|
1527
|
+
}
|
|
1528
|
+
@if (footer.leftLogoPath?.dark && layoutService.isDarkTheme()) {
|
|
1529
|
+
<img [src]="footer.leftLogoPath?.dark" [alt]="footer.leftLogoPath?.dark" class="max-h-7" />
|
|
1530
|
+
}
|
|
1531
|
+
<div class="flex-1"></div>
|
|
1532
|
+
@if (footer.rightLogoPath?.light && !layoutService.isDarkTheme()) {
|
|
1533
|
+
<img [src]="footer.rightLogoPath?.light" [alt]="footer.rightLogoPath?.light" class="max-h-7" />
|
|
1534
|
+
}
|
|
1535
|
+
@if (footer.rightLogoPath?.dark && layoutService.isDarkTheme()) {
|
|
1536
|
+
<img [src]="footer.rightLogoPath?.dark" [alt]="footer.rightLogoPath?.dark" class="max-h-7" />
|
|
1537
|
+
}
|
|
1538
|
+
@if (footer.version) {
|
|
1539
|
+
<span class="font-medium text-sm">{{ footer.version }}</span>
|
|
1540
|
+
}
|
|
1541
|
+
@if (footer.copyright) {
|
|
1542
|
+
<span class="font-medium text-sm">{{ footer.copyright }}</span>
|
|
1543
|
+
}
|
|
1544
|
+
</div>
|
|
1545
|
+
}
|
|
1539
1546
|
`, isInline: true });
|
|
1540
1547
|
}
|
|
1541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppFooter, decorators: [{
|
|
1542
1549
|
type: Component,
|
|
1543
1550
|
args: [{
|
|
1544
1551
|
standalone: true,
|
|
1545
1552
|
selector: 'app-footer',
|
|
1546
1553
|
imports: [],
|
|
1547
|
-
template: `
|
|
1548
|
-
@if (data(); as footer) {
|
|
1549
|
-
<div class="flex items-center justify-between px-0 py-4 gap-4 border-t border-surface-border">
|
|
1550
|
-
@if (footer.leftLogoPath?.light && !layoutService.isDarkTheme()) {
|
|
1551
|
-
<img [src]="footer.leftLogoPath?.light" [alt]="footer.leftLogoPath?.light" class="max-h-7" />
|
|
1552
|
-
}
|
|
1553
|
-
@if (footer.leftLogoPath?.dark && layoutService.isDarkTheme()) {
|
|
1554
|
-
<img [src]="footer.leftLogoPath?.dark" [alt]="footer.leftLogoPath?.dark" class="max-h-7" />
|
|
1555
|
-
}
|
|
1556
|
-
<div class="flex-1"></div>
|
|
1557
|
-
@if (footer.rightLogoPath?.light && !layoutService.isDarkTheme()) {
|
|
1558
|
-
<img [src]="footer.rightLogoPath?.light" [alt]="footer.rightLogoPath?.light" class="max-h-7" />
|
|
1559
|
-
}
|
|
1560
|
-
@if (footer.rightLogoPath?.dark && layoutService.isDarkTheme()) {
|
|
1561
|
-
<img [src]="footer.rightLogoPath?.dark" [alt]="footer.rightLogoPath?.dark" class="max-h-7" />
|
|
1562
|
-
}
|
|
1563
|
-
@if (footer.version) {
|
|
1564
|
-
<span class="font-medium text-sm">{{ footer.version }}</span>
|
|
1565
|
-
}
|
|
1566
|
-
@if (footer.copyright) {
|
|
1567
|
-
<span class="font-medium text-sm">{{ footer.copyright }}</span>
|
|
1568
|
-
}
|
|
1569
|
-
</div>
|
|
1570
|
-
}
|
|
1554
|
+
template: `
|
|
1555
|
+
@if (data(); as footer) {
|
|
1556
|
+
<div class="flex items-center justify-between px-0 py-4 gap-4 border-t border-surface-border">
|
|
1557
|
+
@if (footer.leftLogoPath?.light && !layoutService.isDarkTheme()) {
|
|
1558
|
+
<img [src]="footer.leftLogoPath?.light" [alt]="footer.leftLogoPath?.light" class="max-h-7" />
|
|
1559
|
+
}
|
|
1560
|
+
@if (footer.leftLogoPath?.dark && layoutService.isDarkTheme()) {
|
|
1561
|
+
<img [src]="footer.leftLogoPath?.dark" [alt]="footer.leftLogoPath?.dark" class="max-h-7" />
|
|
1562
|
+
}
|
|
1563
|
+
<div class="flex-1"></div>
|
|
1564
|
+
@if (footer.rightLogoPath?.light && !layoutService.isDarkTheme()) {
|
|
1565
|
+
<img [src]="footer.rightLogoPath?.light" [alt]="footer.rightLogoPath?.light" class="max-h-7" />
|
|
1566
|
+
}
|
|
1567
|
+
@if (footer.rightLogoPath?.dark && layoutService.isDarkTheme()) {
|
|
1568
|
+
<img [src]="footer.rightLogoPath?.dark" [alt]="footer.rightLogoPath?.dark" class="max-h-7" />
|
|
1569
|
+
}
|
|
1570
|
+
@if (footer.version) {
|
|
1571
|
+
<span class="font-medium text-sm">{{ footer.version }}</span>
|
|
1572
|
+
}
|
|
1573
|
+
@if (footer.copyright) {
|
|
1574
|
+
<span class="font-medium text-sm">{{ footer.copyright }}</span>
|
|
1575
|
+
}
|
|
1576
|
+
</div>
|
|
1577
|
+
}
|
|
1571
1578
|
`
|
|
1572
1579
|
}]
|
|
1573
1580
|
}] });
|
|
@@ -1648,39 +1655,39 @@ class AppLayout {
|
|
|
1648
1655
|
this.menuOutsideClickListener();
|
|
1649
1656
|
}
|
|
1650
1657
|
}
|
|
1651
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1652
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1653
|
-
<app-topbar></app-topbar>
|
|
1654
|
-
@if (layoutService.layoutConfig().showSidebar !== false) {
|
|
1655
|
-
<app-sidebar></app-sidebar>
|
|
1656
|
-
}
|
|
1657
|
-
<div class="layout-main-container">
|
|
1658
|
-
<div class="layout-main relative">
|
|
1659
|
-
<router-outlet></router-outlet>
|
|
1660
|
-
</div>
|
|
1661
|
-
<app-footer></app-footer>
|
|
1662
|
-
</div>
|
|
1663
|
-
<div class="layout-mask animate-fadein"></div>
|
|
1658
|
+
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 });
|
|
1659
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.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">
|
|
1660
|
+
<app-topbar></app-topbar>
|
|
1661
|
+
@if (layoutService.layoutConfig().showSidebar !== false) {
|
|
1662
|
+
<app-sidebar></app-sidebar>
|
|
1663
|
+
}
|
|
1664
|
+
<div class="layout-main-container">
|
|
1665
|
+
<div class="layout-main relative">
|
|
1666
|
+
<router-outlet></router-outlet>
|
|
1667
|
+
</div>
|
|
1668
|
+
<app-footer></app-footer>
|
|
1669
|
+
</div>
|
|
1670
|
+
<div class="layout-mask animate-fadein"></div>
|
|
1664
1671
|
</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" }] });
|
|
1665
1672
|
}
|
|
1666
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppLayout, decorators: [{
|
|
1667
1674
|
type: Component,
|
|
1668
1675
|
args: [{
|
|
1669
1676
|
selector: 'app-layout',
|
|
1670
1677
|
standalone: true,
|
|
1671
1678
|
imports: [CommonModule, AppTopbar, AppSidebar, RouterModule, AppFooter],
|
|
1672
|
-
template: `<div class="layout-wrapper" [ngClass]="containerClass">
|
|
1673
|
-
<app-topbar></app-topbar>
|
|
1674
|
-
@if (layoutService.layoutConfig().showSidebar !== false) {
|
|
1675
|
-
<app-sidebar></app-sidebar>
|
|
1676
|
-
}
|
|
1677
|
-
<div class="layout-main-container">
|
|
1678
|
-
<div class="layout-main relative">
|
|
1679
|
-
<router-outlet></router-outlet>
|
|
1680
|
-
</div>
|
|
1681
|
-
<app-footer></app-footer>
|
|
1682
|
-
</div>
|
|
1683
|
-
<div class="layout-mask animate-fadein"></div>
|
|
1679
|
+
template: `<div class="layout-wrapper" [ngClass]="containerClass">
|
|
1680
|
+
<app-topbar></app-topbar>
|
|
1681
|
+
@if (layoutService.layoutConfig().showSidebar !== false) {
|
|
1682
|
+
<app-sidebar></app-sidebar>
|
|
1683
|
+
}
|
|
1684
|
+
<div class="layout-main-container">
|
|
1685
|
+
<div class="layout-main relative">
|
|
1686
|
+
<router-outlet></router-outlet>
|
|
1687
|
+
</div>
|
|
1688
|
+
<app-footer></app-footer>
|
|
1689
|
+
</div>
|
|
1690
|
+
<div class="layout-mask animate-fadein"></div>
|
|
1684
1691
|
</div> `
|
|
1685
1692
|
}]
|
|
1686
1693
|
}], ctorParameters: () => [{ type: LayoutService }, { type: i0.Renderer2 }, { type: i1.Router }], propDecorators: { appSidebar: [{
|
|
@@ -1693,22 +1700,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1693
1700
|
|
|
1694
1701
|
class AppFloatingConfigurator {
|
|
1695
1702
|
LayoutService = inject(LayoutService);
|
|
1696
|
-
isDarkTheme = computed(() => this.LayoutService.layoutConfig().darkTheme, ...(ngDevMode ? [{ debugName: "isDarkTheme" }] : []));
|
|
1703
|
+
isDarkTheme = computed(() => this.LayoutService.layoutConfig().darkTheme, ...(ngDevMode ? [{ debugName: "isDarkTheme" }] : /* istanbul ignore next */ []));
|
|
1697
1704
|
toggleDarkMode() {
|
|
1698
1705
|
this.LayoutService.layoutConfig.update((state) => ({ ...state, darkTheme: !state.darkTheme }));
|
|
1699
1706
|
}
|
|
1700
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1701
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1707
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppFloatingConfigurator, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1708
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.5", type: AppFloatingConfigurator, isStandalone: true, selector: "app-floating-configurator", ngImport: i0, template: `
|
|
1702
1709
|
<div class="fixed flex gap-4 top-8 right-8">
|
|
1703
1710
|
<button smzButton type="button" (click)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'fa-solid fa-moon' : 'fa-solid fa-sun'" severity="secondary"></button>
|
|
1704
1711
|
<div class="relative">
|
|
1705
|
-
<button smzButton icon="fa-solid fa-palette" smzStyleClass="@next"
|
|
1712
|
+
<button smzButton icon="fa-solid fa-palette" smzStyleClass="@next"
|
|
1713
|
+
enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true" type="button" rounded></button>
|
|
1706
1714
|
<app-configurator />
|
|
1707
1715
|
</div>
|
|
1708
1716
|
</div>
|
|
1709
1717
|
`, isInline: true, dependencies: [{ kind: "component", type: SmzButtonComponent, selector: "button[smzButton], a[smzButton]", inputs: ["label", "icon", "iconPosition", "severity", "variant", "size", "text", "outlined", "rounded", "loading", "styleClass"] }, { kind: "directive", type: SmzStyleClassDirective, selector: "[smzStyleClass]", inputs: ["smzStyleClass", "enterFromClass", "enterActiveClass", "enterToClass", "leaveFromClass", "leaveActiveClass", "leaveToClass", "hideOnOutsideClick", "toggleClass"] }, { kind: "component", type: AppConfigurator, selector: "app-configurator" }] });
|
|
1710
1718
|
}
|
|
1711
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppFloatingConfigurator, decorators: [{
|
|
1712
1720
|
type: Component,
|
|
1713
1721
|
args: [{
|
|
1714
1722
|
selector: 'app-floating-configurator',
|
|
@@ -1717,7 +1725,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1717
1725
|
<div class="fixed flex gap-4 top-8 right-8">
|
|
1718
1726
|
<button smzButton type="button" (click)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'fa-solid fa-moon' : 'fa-solid fa-sun'" severity="secondary"></button>
|
|
1719
1727
|
<div class="relative">
|
|
1720
|
-
<button smzButton icon="fa-solid fa-palette" smzStyleClass="@next"
|
|
1728
|
+
<button smzButton icon="fa-solid fa-palette" smzStyleClass="@next"
|
|
1729
|
+
enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true" type="button" rounded></button>
|
|
1721
1730
|
<app-configurator />
|
|
1722
1731
|
</div>
|
|
1723
1732
|
</div>
|
|
@@ -1773,7 +1782,7 @@ class ErrorPagesConfigService {
|
|
|
1773
1782
|
},
|
|
1774
1783
|
]
|
|
1775
1784
|
}
|
|
1776
|
-
}, ...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
1785
|
+
}, ...(ngDevMode ? [{ debugName: "config" }] : /* istanbul ignore next */ []));
|
|
1777
1786
|
// Método para atualizar dinamicamente a configuração de forma merge
|
|
1778
1787
|
updateConfig(newConfig) {
|
|
1779
1788
|
this.config.update((currentConfig) => ({
|
|
@@ -1785,223 +1794,223 @@ class ErrorPagesConfigService {
|
|
|
1785
1794
|
error: { ...currentConfig.error, ...newConfig.error }
|
|
1786
1795
|
}));
|
|
1787
1796
|
}
|
|
1788
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1789
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
1797
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ErrorPagesConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1798
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ErrorPagesConfigService, providedIn: 'root' });
|
|
1790
1799
|
}
|
|
1791
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1800
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ErrorPagesConfigService, decorators: [{
|
|
1792
1801
|
type: Injectable,
|
|
1793
1802
|
args: [{ providedIn: 'root' }]
|
|
1794
1803
|
}] });
|
|
1795
1804
|
|
|
1796
1805
|
class AccessPageComponent {
|
|
1797
1806
|
config = inject(ErrorPagesConfigService).config();
|
|
1798
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1799
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1800
|
-
<div class="relative m-0
|
|
1801
|
-
|
|
1802
|
-
<div class="
|
|
1803
|
-
<div class="
|
|
1804
|
-
<div class="
|
|
1805
|
-
<div class="
|
|
1806
|
-
<div class="
|
|
1807
|
-
<div class="
|
|
1808
|
-
@for (button of config.access.buttons; track button) {
|
|
1809
|
-
<button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
|
|
1810
|
-
}
|
|
1811
|
-
</div>
|
|
1812
|
-
</div>
|
|
1813
|
-
</div>
|
|
1814
|
-
|
|
1815
|
-
<div class="
|
|
1816
|
-
<img class="m-0 h-screen w-full object-cover p-0" [src]="config.access.backgroundPath" alt="" />
|
|
1817
|
-
</div>
|
|
1818
|
-
</div>
|
|
1807
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AccessPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1808
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: AccessPageComponent, isStandalone: true, selector: "app-access", ngImport: i0, template: `
|
|
1809
|
+
<div class="relative m-0 flex flex-wrap h-screen w-screen items-center justify-center overflow-hidden p-0">
|
|
1810
|
+
|
|
1811
|
+
<div class="flex flex-wrap justify-center items-center w-full flex-none lg:w-6/12 h-full bg-surface-ground p-2">
|
|
1812
|
+
<div class="flex flex-wrap w-8/12 flex-none items-center -mt-2 -mx-2">
|
|
1813
|
+
<div class="w-full flex-none p-0 text-[5em] font-bold leading-tight text-text-color">{{ config.access.title }}</div>
|
|
1814
|
+
<div class="w-4/12 flex-none mb-[2em] w-[30%] rounded border-b-4 border-solid border-b-[#f44336] p-0"></div>
|
|
1815
|
+
<div class="w-full flex-none mb-[2em] max-w-prose p-0 text-[1.4em] font-medium leading-relaxed text-text-color">{{ config.access.message }}</div>
|
|
1816
|
+
<div class="flex flex-wrap items-center justify-start gap-2">
|
|
1817
|
+
@for (button of config.access.buttons; track button) {
|
|
1818
|
+
<button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
|
|
1819
|
+
}
|
|
1820
|
+
</div>
|
|
1821
|
+
</div>
|
|
1822
|
+
</div>
|
|
1823
|
+
|
|
1824
|
+
<div class="w-full flex-none m-0 p-0 lg:w-6/12">
|
|
1825
|
+
<img class="m-0 h-screen w-full object-cover p-0" [src]="config.access.backgroundPath" alt="" />
|
|
1826
|
+
</div>
|
|
1827
|
+
</div>
|
|
1819
1828
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: SmzButtonComponent, selector: "button[smzButton], a[smzButton]", inputs: ["label", "icon", "iconPosition", "severity", "variant", "size", "text", "outlined", "rounded", "loading", "styleClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
|
1820
1829
|
}
|
|
1821
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1830
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AccessPageComponent, decorators: [{
|
|
1822
1831
|
type: Component,
|
|
1823
1832
|
args: [{
|
|
1824
1833
|
selector: 'app-access',
|
|
1825
1834
|
standalone: true,
|
|
1826
1835
|
imports: [CommonModule, SmzButtonComponent, RouterModule, SmzRippleDirective, SmzButtonComponent],
|
|
1827
|
-
template: `
|
|
1828
|
-
<div class="relative m-0
|
|
1829
|
-
|
|
1830
|
-
<div class="
|
|
1831
|
-
<div class="
|
|
1832
|
-
<div class="
|
|
1833
|
-
<div class="
|
|
1834
|
-
<div class="
|
|
1835
|
-
<div class="
|
|
1836
|
-
@for (button of config.access.buttons; track button) {
|
|
1837
|
-
<button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
|
|
1838
|
-
}
|
|
1839
|
-
</div>
|
|
1840
|
-
</div>
|
|
1841
|
-
</div>
|
|
1842
|
-
|
|
1843
|
-
<div class="
|
|
1844
|
-
<img class="m-0 h-screen w-full object-cover p-0" [src]="config.access.backgroundPath" alt="" />
|
|
1845
|
-
</div>
|
|
1846
|
-
</div>
|
|
1836
|
+
template: `
|
|
1837
|
+
<div class="relative m-0 flex flex-wrap h-screen w-screen items-center justify-center overflow-hidden p-0">
|
|
1838
|
+
|
|
1839
|
+
<div class="flex flex-wrap justify-center items-center w-full flex-none lg:w-6/12 h-full bg-surface-ground p-2">
|
|
1840
|
+
<div class="flex flex-wrap w-8/12 flex-none items-center -mt-2 -mx-2">
|
|
1841
|
+
<div class="w-full flex-none p-0 text-[5em] font-bold leading-tight text-text-color">{{ config.access.title }}</div>
|
|
1842
|
+
<div class="w-4/12 flex-none mb-[2em] w-[30%] rounded border-b-4 border-solid border-b-[#f44336] p-0"></div>
|
|
1843
|
+
<div class="w-full flex-none mb-[2em] max-w-prose p-0 text-[1.4em] font-medium leading-relaxed text-text-color">{{ config.access.message }}</div>
|
|
1844
|
+
<div class="flex flex-wrap items-center justify-start gap-2">
|
|
1845
|
+
@for (button of config.access.buttons; track button) {
|
|
1846
|
+
<button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
|
|
1847
|
+
}
|
|
1848
|
+
</div>
|
|
1849
|
+
</div>
|
|
1850
|
+
</div>
|
|
1851
|
+
|
|
1852
|
+
<div class="w-full flex-none m-0 p-0 lg:w-6/12">
|
|
1853
|
+
<img class="m-0 h-screen w-full object-cover p-0" [src]="config.access.backgroundPath" alt="" />
|
|
1854
|
+
</div>
|
|
1855
|
+
</div>
|
|
1847
1856
|
`
|
|
1848
1857
|
}]
|
|
1849
1858
|
}] });
|
|
1850
1859
|
|
|
1851
1860
|
class ErrorPageComponent {
|
|
1852
1861
|
config = inject(ErrorPagesConfigService).config();
|
|
1853
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1854
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1855
|
-
<div class="relative m-0
|
|
1856
|
-
|
|
1857
|
-
<div class="
|
|
1858
|
-
<div class="
|
|
1859
|
-
<div class="
|
|
1860
|
-
<div class="
|
|
1861
|
-
<div class="
|
|
1862
|
-
<div class="
|
|
1863
|
-
@for (button of config.error.buttons; track button) {
|
|
1864
|
-
<button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
|
|
1865
|
-
}
|
|
1866
|
-
</div>
|
|
1867
|
-
</div>
|
|
1868
|
-
</div>
|
|
1869
|
-
|
|
1870
|
-
<div class="
|
|
1871
|
-
<img class="m-0 h-screen w-full object-cover p-0" [src]="config.error.backgroundPath" alt="" />
|
|
1872
|
-
</div>
|
|
1873
|
-
</div>
|
|
1862
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ErrorPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1863
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: ErrorPageComponent, isStandalone: true, selector: "app-error", ngImport: i0, template: `
|
|
1864
|
+
<div class="relative m-0 flex flex-wrap h-screen w-screen items-center justify-center overflow-hidden p-0">
|
|
1865
|
+
|
|
1866
|
+
<div class="flex flex-wrap justify-center items-center w-full flex-none lg:w-6/12 h-full bg-surface-ground p-2">
|
|
1867
|
+
<div class="flex flex-wrap w-8/12 flex-none items-center -mt-2 -mx-2">
|
|
1868
|
+
<div class="w-full flex-none p-0 text-[5em] font-bold leading-tight text-text-color">{{ config.error.title }}</div>
|
|
1869
|
+
<div class="w-4/12 flex-none mb-[2em] w-[30%] rounded border-b-4 border-solid border-b-[#f44336] p-0"></div>
|
|
1870
|
+
<div class="w-full flex-none mb-[2em] max-w-prose p-0 text-[1.4em] font-medium leading-relaxed text-text-color">{{ config.error.message }}</div>
|
|
1871
|
+
<div class="flex flex-wrap items-center justify-start gap-2">
|
|
1872
|
+
@for (button of config.error.buttons; track button) {
|
|
1873
|
+
<button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
|
|
1874
|
+
}
|
|
1875
|
+
</div>
|
|
1876
|
+
</div>
|
|
1877
|
+
</div>
|
|
1878
|
+
|
|
1879
|
+
<div class="w-full flex-none m-0 p-0 lg:w-6/12">
|
|
1880
|
+
<img class="m-0 h-screen w-full object-cover p-0" [src]="config.error.backgroundPath" alt="" />
|
|
1881
|
+
</div>
|
|
1882
|
+
</div>
|
|
1874
1883
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: SmzButtonComponent, selector: "button[smzButton], a[smzButton]", inputs: ["label", "icon", "iconPosition", "severity", "variant", "size", "text", "outlined", "rounded", "loading", "styleClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
|
1875
1884
|
}
|
|
1876
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1885
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ErrorPageComponent, decorators: [{
|
|
1877
1886
|
type: Component,
|
|
1878
1887
|
args: [{
|
|
1879
1888
|
selector: 'app-error',
|
|
1880
1889
|
imports: [CommonModule, SmzButtonComponent, SmzRippleDirective, RouterModule, SmzButtonComponent],
|
|
1881
1890
|
standalone: true,
|
|
1882
|
-
template: `
|
|
1883
|
-
<div class="relative m-0
|
|
1884
|
-
|
|
1885
|
-
<div class="
|
|
1886
|
-
<div class="
|
|
1887
|
-
<div class="
|
|
1888
|
-
<div class="
|
|
1889
|
-
<div class="
|
|
1890
|
-
<div class="
|
|
1891
|
-
@for (button of config.error.buttons; track button) {
|
|
1892
|
-
<button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
|
|
1893
|
-
}
|
|
1894
|
-
</div>
|
|
1895
|
-
</div>
|
|
1896
|
-
</div>
|
|
1897
|
-
|
|
1898
|
-
<div class="
|
|
1899
|
-
<img class="m-0 h-screen w-full object-cover p-0" [src]="config.error.backgroundPath" alt="" />
|
|
1900
|
-
</div>
|
|
1901
|
-
</div>
|
|
1891
|
+
template: `
|
|
1892
|
+
<div class="relative m-0 flex flex-wrap h-screen w-screen items-center justify-center overflow-hidden p-0">
|
|
1893
|
+
|
|
1894
|
+
<div class="flex flex-wrap justify-center items-center w-full flex-none lg:w-6/12 h-full bg-surface-ground p-2">
|
|
1895
|
+
<div class="flex flex-wrap w-8/12 flex-none items-center -mt-2 -mx-2">
|
|
1896
|
+
<div class="w-full flex-none p-0 text-[5em] font-bold leading-tight text-text-color">{{ config.error.title }}</div>
|
|
1897
|
+
<div class="w-4/12 flex-none mb-[2em] w-[30%] rounded border-b-4 border-solid border-b-[#f44336] p-0"></div>
|
|
1898
|
+
<div class="w-full flex-none mb-[2em] max-w-prose p-0 text-[1.4em] font-medium leading-relaxed text-text-color">{{ config.error.message }}</div>
|
|
1899
|
+
<div class="flex flex-wrap items-center justify-start gap-2">
|
|
1900
|
+
@for (button of config.error.buttons; track button) {
|
|
1901
|
+
<button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
|
|
1902
|
+
}
|
|
1903
|
+
</div>
|
|
1904
|
+
</div>
|
|
1905
|
+
</div>
|
|
1906
|
+
|
|
1907
|
+
<div class="w-full flex-none m-0 p-0 lg:w-6/12">
|
|
1908
|
+
<img class="m-0 h-screen w-full object-cover p-0" [src]="config.error.backgroundPath" alt="" />
|
|
1909
|
+
</div>
|
|
1910
|
+
</div>
|
|
1902
1911
|
`
|
|
1903
1912
|
}]
|
|
1904
1913
|
}] });
|
|
1905
1914
|
|
|
1906
1915
|
class NotfoundPageComponent {
|
|
1907
1916
|
config = inject(ErrorPagesConfigService).config();
|
|
1908
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1909
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1910
|
-
<div class="relative m-0
|
|
1911
|
-
|
|
1912
|
-
<div class="
|
|
1913
|
-
<div class="grid
|
|
1914
|
-
<div class="col-12 p-0 text-[5em] font-bold leading-tight text-text-color">{{ config.notfound.code }}</div>
|
|
1915
|
-
<div class="col-4 mb-[2em] w-[30%] rounded border-b-4 border-solid border-b-[#f44336] p-0"></div>
|
|
1916
|
-
<div class="col-12 mb-2 p-0 text-[1.4em] font-medium leading-relaxed text-text-color">{{ config.notfound.title }}</div>
|
|
1917
|
-
<div class="col-12 mb-8 max-w-prose p-0 text-base font-medium leading-relaxed text-text-color">{{ config.notfound.message }}</div>
|
|
1918
|
-
|
|
1919
|
-
@for (link of config.notfound.links; track link.url) {
|
|
1920
|
-
<a
|
|
1921
|
-
[routerLink]="link.url"
|
|
1922
|
-
class="col-12 flex w-full items-center border-0 border-b border-solid border-surface-border py-6 last:border-b-0 no-underline"
|
|
1923
|
-
>
|
|
1924
|
-
<span
|
|
1925
|
-
class="flex h-14 w-14 shrink-0 items-center justify-center rounded-lg border-2 border-solid border-primary-color text-primary-color"
|
|
1926
|
-
>
|
|
1927
|
-
<i class="text-2xl" [class]="link.icon"></i>
|
|
1928
|
-
</span>
|
|
1929
|
-
|
|
1930
|
-
<span class="ml-6 flex min-w-0 flex-col">
|
|
1931
|
-
<span class="mb-0 block font-medium text-text-color lg:text-xl">{{ link.title }}</span>
|
|
1932
|
-
<span class="text-text-color-secondary lg:text-xl">{{ link.description }}</span>
|
|
1933
|
-
</span>
|
|
1934
|
-
</a>
|
|
1935
|
-
}
|
|
1936
|
-
|
|
1937
|
-
<div class="col-12
|
|
1938
|
-
@for (button of config.notfound.buttons; track button.url) {
|
|
1939
|
-
<button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
|
|
1940
|
-
}
|
|
1941
|
-
</div>
|
|
1942
|
-
</div>
|
|
1943
|
-
</div>
|
|
1944
|
-
|
|
1945
|
-
<div class="
|
|
1946
|
-
<img
|
|
1947
|
-
class="m-0 h-screen w-full object-cover p-0"
|
|
1948
|
-
[src]="config.notfound.backgroundPath"
|
|
1949
|
-
alt=""
|
|
1950
|
-
/>
|
|
1951
|
-
</div>
|
|
1952
|
-
</div>
|
|
1917
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: NotfoundPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1918
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: NotfoundPageComponent, isStandalone: true, selector: "app-notfound", ngImport: i0, template: `
|
|
1919
|
+
<div class="relative m-0 flex flex-wrap h-screen w-screen items-center justify-center overflow-hidden p-0">
|
|
1920
|
+
|
|
1921
|
+
<div class="flex flex-wrap justify-center items-center w-full flex-none lg:w-6/12 h-full bg-surface-ground p-2">
|
|
1922
|
+
<div class="grid grid-cols-12 w-8/12 flex-none items-center gap-4 pb-2">
|
|
1923
|
+
<div class="col-span-12 p-0 text-[5em] font-bold leading-tight text-text-color min-w-0">{{ config.notfound.code }}</div>
|
|
1924
|
+
<div class="col-span-4 mb-[2em] w-[30%] rounded border-b-4 border-solid border-b-[#f44336] p-0 min-w-0"></div>
|
|
1925
|
+
<div class="col-span-12 mb-2 p-0 text-[1.4em] font-medium leading-relaxed text-text-color min-w-0">{{ config.notfound.title }}</div>
|
|
1926
|
+
<div class="col-span-12 mb-8 max-w-prose p-0 text-base font-medium leading-relaxed text-text-color min-w-0">{{ config.notfound.message }}</div>
|
|
1927
|
+
|
|
1928
|
+
@for (link of config.notfound.links; track link.url) {
|
|
1929
|
+
<a
|
|
1930
|
+
[routerLink]="link.url"
|
|
1931
|
+
class="col-span-12 flex w-full items-center border-0 border-b border-solid border-surface-border py-6 last:border-b-0 no-underline min-w-0"
|
|
1932
|
+
>
|
|
1933
|
+
<span
|
|
1934
|
+
class="flex h-14 w-14 shrink-0 items-center justify-center rounded-lg border-2 border-solid border-primary-color text-primary-color"
|
|
1935
|
+
>
|
|
1936
|
+
<i class="text-2xl" [class]="link.icon"></i>
|
|
1937
|
+
</span>
|
|
1938
|
+
|
|
1939
|
+
<span class="ml-6 flex min-w-0 flex-col">
|
|
1940
|
+
<span class="mb-0 block font-medium text-text-color lg:text-xl">{{ link.title }}</span>
|
|
1941
|
+
<span class="text-text-color-secondary lg:text-xl">{{ link.description }}</span>
|
|
1942
|
+
</span>
|
|
1943
|
+
</a>
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
<div class="col-span-12 flex flex-wrap items-center justify-start min-w-0 gap-2">
|
|
1947
|
+
@for (button of config.notfound.buttons; track button.url) {
|
|
1948
|
+
<button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
|
|
1949
|
+
}
|
|
1950
|
+
</div>
|
|
1951
|
+
</div>
|
|
1952
|
+
</div>
|
|
1953
|
+
|
|
1954
|
+
<div class="w-full flex-none m-0 p-0 lg:w-6/12">
|
|
1955
|
+
<img
|
|
1956
|
+
class="m-0 h-screen w-full object-cover p-0"
|
|
1957
|
+
[src]="config.notfound.backgroundPath"
|
|
1958
|
+
alt=""
|
|
1959
|
+
/>
|
|
1960
|
+
</div>
|
|
1961
|
+
</div>
|
|
1953
1962
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: SmzButtonComponent, selector: "button[smzButton], a[smzButton]", inputs: ["label", "icon", "iconPosition", "severity", "variant", "size", "text", "outlined", "rounded", "loading", "styleClass"] }] });
|
|
1954
1963
|
}
|
|
1955
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1964
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: NotfoundPageComponent, decorators: [{
|
|
1956
1965
|
type: Component,
|
|
1957
1966
|
args: [{
|
|
1958
1967
|
selector: 'app-notfound',
|
|
1959
1968
|
standalone: true,
|
|
1960
1969
|
imports: [CommonModule, RouterModule, SmzButtonComponent, SmzRippleDirective],
|
|
1961
|
-
template: `
|
|
1962
|
-
<div class="relative m-0
|
|
1963
|
-
|
|
1964
|
-
<div class="
|
|
1965
|
-
<div class="grid
|
|
1966
|
-
<div class="col-12 p-0 text-[5em] font-bold leading-tight text-text-color">{{ config.notfound.code }}</div>
|
|
1967
|
-
<div class="col-4 mb-[2em] w-[30%] rounded border-b-4 border-solid border-b-[#f44336] p-0"></div>
|
|
1968
|
-
<div class="col-12 mb-2 p-0 text-[1.4em] font-medium leading-relaxed text-text-color">{{ config.notfound.title }}</div>
|
|
1969
|
-
<div class="col-12 mb-8 max-w-prose p-0 text-base font-medium leading-relaxed text-text-color">{{ config.notfound.message }}</div>
|
|
1970
|
-
|
|
1971
|
-
@for (link of config.notfound.links; track link.url) {
|
|
1972
|
-
<a
|
|
1973
|
-
[routerLink]="link.url"
|
|
1974
|
-
class="col-12 flex w-full items-center border-0 border-b border-solid border-surface-border py-6 last:border-b-0 no-underline"
|
|
1975
|
-
>
|
|
1976
|
-
<span
|
|
1977
|
-
class="flex h-14 w-14 shrink-0 items-center justify-center rounded-lg border-2 border-solid border-primary-color text-primary-color"
|
|
1978
|
-
>
|
|
1979
|
-
<i class="text-2xl" [class]="link.icon"></i>
|
|
1980
|
-
</span>
|
|
1981
|
-
|
|
1982
|
-
<span class="ml-6 flex min-w-0 flex-col">
|
|
1983
|
-
<span class="mb-0 block font-medium text-text-color lg:text-xl">{{ link.title }}</span>
|
|
1984
|
-
<span class="text-text-color-secondary lg:text-xl">{{ link.description }}</span>
|
|
1985
|
-
</span>
|
|
1986
|
-
</a>
|
|
1987
|
-
}
|
|
1988
|
-
|
|
1989
|
-
<div class="col-12
|
|
1990
|
-
@for (button of config.notfound.buttons; track button.url) {
|
|
1991
|
-
<button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
|
|
1992
|
-
}
|
|
1993
|
-
</div>
|
|
1994
|
-
</div>
|
|
1995
|
-
</div>
|
|
1996
|
-
|
|
1997
|
-
<div class="
|
|
1998
|
-
<img
|
|
1999
|
-
class="m-0 h-screen w-full object-cover p-0"
|
|
2000
|
-
[src]="config.notfound.backgroundPath"
|
|
2001
|
-
alt=""
|
|
2002
|
-
/>
|
|
2003
|
-
</div>
|
|
2004
|
-
</div>
|
|
1970
|
+
template: `
|
|
1971
|
+
<div class="relative m-0 flex flex-wrap h-screen w-screen items-center justify-center overflow-hidden p-0">
|
|
1972
|
+
|
|
1973
|
+
<div class="flex flex-wrap justify-center items-center w-full flex-none lg:w-6/12 h-full bg-surface-ground p-2">
|
|
1974
|
+
<div class="grid grid-cols-12 w-8/12 flex-none items-center gap-4 pb-2">
|
|
1975
|
+
<div class="col-span-12 p-0 text-[5em] font-bold leading-tight text-text-color min-w-0">{{ config.notfound.code }}</div>
|
|
1976
|
+
<div class="col-span-4 mb-[2em] w-[30%] rounded border-b-4 border-solid border-b-[#f44336] p-0 min-w-0"></div>
|
|
1977
|
+
<div class="col-span-12 mb-2 p-0 text-[1.4em] font-medium leading-relaxed text-text-color min-w-0">{{ config.notfound.title }}</div>
|
|
1978
|
+
<div class="col-span-12 mb-8 max-w-prose p-0 text-base font-medium leading-relaxed text-text-color min-w-0">{{ config.notfound.message }}</div>
|
|
1979
|
+
|
|
1980
|
+
@for (link of config.notfound.links; track link.url) {
|
|
1981
|
+
<a
|
|
1982
|
+
[routerLink]="link.url"
|
|
1983
|
+
class="col-span-12 flex w-full items-center border-0 border-b border-solid border-surface-border py-6 last:border-b-0 no-underline min-w-0"
|
|
1984
|
+
>
|
|
1985
|
+
<span
|
|
1986
|
+
class="flex h-14 w-14 shrink-0 items-center justify-center rounded-lg border-2 border-solid border-primary-color text-primary-color"
|
|
1987
|
+
>
|
|
1988
|
+
<i class="text-2xl" [class]="link.icon"></i>
|
|
1989
|
+
</span>
|
|
1990
|
+
|
|
1991
|
+
<span class="ml-6 flex min-w-0 flex-col">
|
|
1992
|
+
<span class="mb-0 block font-medium text-text-color lg:text-xl">{{ link.title }}</span>
|
|
1993
|
+
<span class="text-text-color-secondary lg:text-xl">{{ link.description }}</span>
|
|
1994
|
+
</span>
|
|
1995
|
+
</a>
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
<div class="col-span-12 flex flex-wrap items-center justify-start min-w-0 gap-2">
|
|
1999
|
+
@for (button of config.notfound.buttons; track button.url) {
|
|
2000
|
+
<button smzButton [label]="button.label" [routerLink]="button.url" (click)="button.command()" class="mt-8" [severity]="button.severity"></button>
|
|
2001
|
+
}
|
|
2002
|
+
</div>
|
|
2003
|
+
</div>
|
|
2004
|
+
</div>
|
|
2005
|
+
|
|
2006
|
+
<div class="w-full flex-none m-0 p-0 lg:w-6/12">
|
|
2007
|
+
<img
|
|
2008
|
+
class="m-0 h-screen w-full object-cover p-0"
|
|
2009
|
+
[src]="config.notfound.backgroundPath"
|
|
2010
|
+
alt=""
|
|
2011
|
+
/>
|
|
2012
|
+
</div>
|
|
2013
|
+
</div>
|
|
2005
2014
|
`
|
|
2006
2015
|
}]
|
|
2007
2016
|
}] });
|