@ngx-smz/layout 21.10.0-next.15 → 21.10.0-next.17
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 -19
- package/fesm2022/ngx-smz-layout.mjs +638 -638
- 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/_common.scss +20 -20
- package/resources/layout/variables/_dark.scss +5 -5
- package/resources/layout/variables/_legacy-common.scss +55 -55
- package/resources/layout/variables/_light.scss +5 -5
|
@@ -579,49 +579,49 @@ class AppConfigurator {
|
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
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: `
|
|
583
|
-
<div class="flex flex-col gap-4">
|
|
584
|
-
<div>
|
|
585
|
-
<span class="text-sm text-muted-color font-semibold">Primary</span>
|
|
586
|
-
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
587
|
-
@for (primaryColor of primaryColors(); track primaryColor.name) {
|
|
588
|
-
<button
|
|
589
|
-
type="button"
|
|
590
|
-
[title]="primaryColor.name"
|
|
591
|
-
(click)="updateColors($event, 'primary', primaryColor)"
|
|
592
|
-
[ngClass]="{ 'outline-primary': primaryColor.name === selectedPrimaryColor() }"
|
|
593
|
-
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
594
|
-
[style]="{
|
|
595
|
-
'background-color': primaryColor?.name === 'noir' ? 'var(--text-color)' : primaryColor?.palette?.['500']
|
|
596
|
-
}"
|
|
597
|
-
></button>
|
|
598
|
-
}
|
|
599
|
-
</div>
|
|
600
|
-
</div>
|
|
601
|
-
<div>
|
|
602
|
-
<span class="text-sm text-muted-color font-semibold">Surface</span>
|
|
603
|
-
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
604
|
-
@for (surface of surfaces; track surface.name) {
|
|
605
|
-
<button
|
|
606
|
-
type="button"
|
|
607
|
-
[title]="surface.name"
|
|
608
|
-
(click)="updateColors($event, 'surface', surface)"
|
|
609
|
-
[ngClass]="{ 'outline-primary': selectedSurfaceColor() ? selectedSurfaceColor() === surface.name : layoutService.layoutConfig().darkTheme ? surface.name === 'zinc' : surface.name === 'slate' }"
|
|
610
|
-
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
611
|
-
[style]="{
|
|
612
|
-
'background-color': surface?.name === 'noir' ? 'var(--text-color)' : surface?.palette?.['500']
|
|
613
|
-
}"
|
|
614
|
-
></button>
|
|
615
|
-
}
|
|
616
|
-
</div>
|
|
617
|
-
</div>
|
|
618
|
-
@if (showMenuModeButton()) {
|
|
619
|
-
<div class="flex flex-col gap-2">
|
|
620
|
-
<span class="text-sm text-muted-color font-semibold">Menu Mode</span>
|
|
621
|
-
<ui-select-button [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" size="small"></ui-select-button>
|
|
622
|
-
</div>
|
|
623
|
-
}
|
|
624
|
-
</div>
|
|
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: `
|
|
583
|
+
<div class="flex flex-col gap-4">
|
|
584
|
+
<div>
|
|
585
|
+
<span class="text-sm text-muted-color font-semibold">Primary</span>
|
|
586
|
+
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
587
|
+
@for (primaryColor of primaryColors(); track primaryColor.name) {
|
|
588
|
+
<button
|
|
589
|
+
type="button"
|
|
590
|
+
[title]="primaryColor.name"
|
|
591
|
+
(click)="updateColors($event, 'primary', primaryColor)"
|
|
592
|
+
[ngClass]="{ 'outline-primary': primaryColor.name === selectedPrimaryColor() }"
|
|
593
|
+
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
594
|
+
[style]="{
|
|
595
|
+
'background-color': primaryColor?.name === 'noir' ? 'var(--text-color)' : primaryColor?.palette?.['500']
|
|
596
|
+
}"
|
|
597
|
+
></button>
|
|
598
|
+
}
|
|
599
|
+
</div>
|
|
600
|
+
</div>
|
|
601
|
+
<div>
|
|
602
|
+
<span class="text-sm text-muted-color font-semibold">Surface</span>
|
|
603
|
+
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
604
|
+
@for (surface of surfaces; track surface.name) {
|
|
605
|
+
<button
|
|
606
|
+
type="button"
|
|
607
|
+
[title]="surface.name"
|
|
608
|
+
(click)="updateColors($event, 'surface', surface)"
|
|
609
|
+
[ngClass]="{ 'outline-primary': selectedSurfaceColor() ? selectedSurfaceColor() === surface.name : layoutService.layoutConfig().darkTheme ? surface.name === 'zinc' : surface.name === 'slate' }"
|
|
610
|
+
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
611
|
+
[style]="{
|
|
612
|
+
'background-color': surface?.name === 'noir' ? 'var(--text-color)' : surface?.palette?.['500']
|
|
613
|
+
}"
|
|
614
|
+
></button>
|
|
615
|
+
}
|
|
616
|
+
</div>
|
|
617
|
+
</div>
|
|
618
|
+
@if (showMenuModeButton()) {
|
|
619
|
+
<div class="flex flex-col gap-2">
|
|
620
|
+
<span class="text-sm text-muted-color font-semibold">Menu Mode</span>
|
|
621
|
+
<ui-select-button [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" size="small"></ui-select-button>
|
|
622
|
+
</div>
|
|
623
|
+
}
|
|
624
|
+
</div>
|
|
625
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"] }] });
|
|
626
626
|
}
|
|
627
627
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppConfigurator, decorators: [{
|
|
@@ -630,49 +630,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
630
630
|
selector: 'app-configurator',
|
|
631
631
|
standalone: true,
|
|
632
632
|
imports: [CommonModule, FormsModule, SmzSelectButtonComponent],
|
|
633
|
-
template: `
|
|
634
|
-
<div class="flex flex-col gap-4">
|
|
635
|
-
<div>
|
|
636
|
-
<span class="text-sm text-muted-color font-semibold">Primary</span>
|
|
637
|
-
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
638
|
-
@for (primaryColor of primaryColors(); track primaryColor.name) {
|
|
639
|
-
<button
|
|
640
|
-
type="button"
|
|
641
|
-
[title]="primaryColor.name"
|
|
642
|
-
(click)="updateColors($event, 'primary', primaryColor)"
|
|
643
|
-
[ngClass]="{ 'outline-primary': primaryColor.name === selectedPrimaryColor() }"
|
|
644
|
-
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
645
|
-
[style]="{
|
|
646
|
-
'background-color': primaryColor?.name === 'noir' ? 'var(--text-color)' : primaryColor?.palette?.['500']
|
|
647
|
-
}"
|
|
648
|
-
></button>
|
|
649
|
-
}
|
|
650
|
-
</div>
|
|
651
|
-
</div>
|
|
652
|
-
<div>
|
|
653
|
-
<span class="text-sm text-muted-color font-semibold">Surface</span>
|
|
654
|
-
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
655
|
-
@for (surface of surfaces; track surface.name) {
|
|
656
|
-
<button
|
|
657
|
-
type="button"
|
|
658
|
-
[title]="surface.name"
|
|
659
|
-
(click)="updateColors($event, 'surface', surface)"
|
|
660
|
-
[ngClass]="{ 'outline-primary': selectedSurfaceColor() ? selectedSurfaceColor() === surface.name : layoutService.layoutConfig().darkTheme ? surface.name === 'zinc' : surface.name === 'slate' }"
|
|
661
|
-
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
662
|
-
[style]="{
|
|
663
|
-
'background-color': surface?.name === 'noir' ? 'var(--text-color)' : surface?.palette?.['500']
|
|
664
|
-
}"
|
|
665
|
-
></button>
|
|
666
|
-
}
|
|
667
|
-
</div>
|
|
668
|
-
</div>
|
|
669
|
-
@if (showMenuModeButton()) {
|
|
670
|
-
<div class="flex flex-col gap-2">
|
|
671
|
-
<span class="text-sm text-muted-color font-semibold">Menu Mode</span>
|
|
672
|
-
<ui-select-button [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" size="small"></ui-select-button>
|
|
673
|
-
</div>
|
|
674
|
-
}
|
|
675
|
-
</div>
|
|
633
|
+
template: `
|
|
634
|
+
<div class="flex flex-col gap-4">
|
|
635
|
+
<div>
|
|
636
|
+
<span class="text-sm text-muted-color font-semibold">Primary</span>
|
|
637
|
+
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
638
|
+
@for (primaryColor of primaryColors(); track primaryColor.name) {
|
|
639
|
+
<button
|
|
640
|
+
type="button"
|
|
641
|
+
[title]="primaryColor.name"
|
|
642
|
+
(click)="updateColors($event, 'primary', primaryColor)"
|
|
643
|
+
[ngClass]="{ 'outline-primary': primaryColor.name === selectedPrimaryColor() }"
|
|
644
|
+
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
645
|
+
[style]="{
|
|
646
|
+
'background-color': primaryColor?.name === 'noir' ? 'var(--text-color)' : primaryColor?.palette?.['500']
|
|
647
|
+
}"
|
|
648
|
+
></button>
|
|
649
|
+
}
|
|
650
|
+
</div>
|
|
651
|
+
</div>
|
|
652
|
+
<div>
|
|
653
|
+
<span class="text-sm text-muted-color font-semibold">Surface</span>
|
|
654
|
+
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
655
|
+
@for (surface of surfaces; track surface.name) {
|
|
656
|
+
<button
|
|
657
|
+
type="button"
|
|
658
|
+
[title]="surface.name"
|
|
659
|
+
(click)="updateColors($event, 'surface', surface)"
|
|
660
|
+
[ngClass]="{ 'outline-primary': selectedSurfaceColor() ? selectedSurfaceColor() === surface.name : layoutService.layoutConfig().darkTheme ? surface.name === 'zinc' : surface.name === 'slate' }"
|
|
661
|
+
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
662
|
+
[style]="{
|
|
663
|
+
'background-color': surface?.name === 'noir' ? 'var(--text-color)' : surface?.palette?.['500']
|
|
664
|
+
}"
|
|
665
|
+
></button>
|
|
666
|
+
}
|
|
667
|
+
</div>
|
|
668
|
+
</div>
|
|
669
|
+
@if (showMenuModeButton()) {
|
|
670
|
+
<div class="flex flex-col gap-2">
|
|
671
|
+
<span class="text-sm text-muted-color font-semibold">Menu Mode</span>
|
|
672
|
+
<ui-select-button [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" size="small"></ui-select-button>
|
|
673
|
+
</div>
|
|
674
|
+
}
|
|
675
|
+
</div>
|
|
676
676
|
`,
|
|
677
677
|
host: {
|
|
678
678
|
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)]'
|
|
@@ -1050,92 +1050,92 @@ class AppTopbar {
|
|
|
1050
1050
|
event.target.src = placeholder;
|
|
1051
1051
|
}
|
|
1052
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: `
|
|
1054
|
-
@if (data(); as topbar) {
|
|
1055
|
-
<div class="layout-topbar">
|
|
1056
|
-
<div class="layout-topbar-logo-container">
|
|
1057
|
-
@if (topbar.showMenuToggle) {
|
|
1058
|
-
<button class="layout-menu-button layout-topbar-action" (click)="layoutService.onMenuToggle()">
|
|
1059
|
-
<i class="fa-solid fa-bars"></i>
|
|
1060
|
-
</button>
|
|
1061
|
-
}
|
|
1062
|
-
<a class="layout-topbar-logo" routerLink="/">
|
|
1063
|
-
@if (topbar.logoPath?.light && !layoutService.isDarkTheme()) {
|
|
1064
|
-
<img [src]="topbar.logoPath?.light" [alt]="topbar.logoPath?.light" class="max-h-9 min-h-8" />
|
|
1065
|
-
}
|
|
1066
|
-
@if (topbar.logoPath?.dark && layoutService.isDarkTheme()) {
|
|
1067
|
-
<img [src]="topbar.logoPath?.dark" [alt]="topbar.logoPath?.dark" class="max-h-9 min-h-8" />
|
|
1068
|
-
}
|
|
1069
|
-
</a>
|
|
1070
|
-
@if (topbar.appName) {
|
|
1071
|
-
<span class="layout-topbar-app-name">{{ topbar.appName }}</span>
|
|
1072
|
-
}
|
|
1073
|
-
</div>
|
|
1074
|
-
<div class="layout-topbar-left-actions">
|
|
1075
|
-
@if (topbar.showBackButton || pageTitleService.hasTitle()) {
|
|
1076
|
-
<span class="topbar-separator"></span>
|
|
1077
|
-
}
|
|
1078
|
-
@if (topbar.showBackButton && navigationService.canGoBackSignal()) {
|
|
1079
|
-
<button class="layout-menu-button layout-topbar-action" (click)="navigationService.goBack()">
|
|
1080
|
-
<i class="fa-solid fa-arrow-left"></i>
|
|
1081
|
-
</button>
|
|
1082
|
-
}
|
|
1083
|
-
@if (pageTitleService.hasTitle()) {
|
|
1084
|
-
<span class="layout-topbar-page-title">
|
|
1085
|
-
<span>{{ pageTitleService.title() }}</span>
|
|
1086
|
-
</span>
|
|
1087
|
-
}
|
|
1088
|
-
</div>
|
|
1089
|
-
<div class="layout-topbar-right-actions">
|
|
1090
|
-
<button class="layout-topbar-menu-button layout-topbar-action" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1091
|
-
<i class="fa-solid fa-ellipsis-vertical"></i>
|
|
1092
|
-
</button>
|
|
1093
|
-
<div class="layout-topbar-menu hidden lg:block">
|
|
1094
|
-
<div class="layout-topbar-menu-content">
|
|
1095
|
-
@for (item of topbar.menuItems; track item) {
|
|
1096
|
-
@if (item.component != null) {
|
|
1097
|
-
<ng-template [componentInjector]="item.component"></ng-template>
|
|
1098
|
-
}
|
|
1099
|
-
@else {
|
|
1100
|
-
<button type="button" class="layout-topbar-action" (click)="item.callback()" [routerLink]="item.routerLink" [smzTooltip]="item.tooltip">
|
|
1101
|
-
<i [ngClass]="item.icon"></i>
|
|
1102
|
-
<span>{{ item.label }}</span>
|
|
1103
|
-
</button>
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
</div>
|
|
1107
|
-
</div>
|
|
1108
|
-
<div class="layout-config-menu">
|
|
1109
|
-
@if (topbar.showDarkModeToggle) {
|
|
1110
|
-
<button type="button" class="layout-topbar-action" (click)="toggleDarkMode()" smzTooltip="Dark/Light">
|
|
1111
|
-
<i [ngClass]="{ 'fa-solid': true, 'fa-moon': layoutService.isDarkTheme(), 'fa-sun': !layoutService.isDarkTheme() }"></i>
|
|
1112
|
-
</button>
|
|
1113
|
-
}
|
|
1114
|
-
@if (topbar.showConfigurator) {
|
|
1115
|
-
<div class="relative">
|
|
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">
|
|
1118
|
-
<i class="fa-solid fa-palette"></i>
|
|
1119
|
-
</button>
|
|
1120
|
-
<app-configurator></app-configurator>
|
|
1121
|
-
</div>
|
|
1122
|
-
}
|
|
1123
|
-
@if (topbar.showProfileMenu !== false) {
|
|
1124
|
-
@for (feature of topbar.features; track feature) {
|
|
1125
|
-
<ui-menu #menu [model]="feature.menuItems" [popup]="true"></ui-menu>
|
|
1126
|
-
@if (feature.avatar && feature.avatar() != null) {
|
|
1127
|
-
<img [src]="feature.avatar()" [alt]="feature.label" class="layout-topbar-action w-8 h-8 rounded-full" (click)="menu.toggle($event)" [smzTooltip]="feature.tooltip" (error)="handleMissingImage($event, feature.placeholder)"/>
|
|
1128
|
-
}
|
|
1129
|
-
@else {
|
|
1130
|
-
<button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [smzTooltip]="feature.tooltip">
|
|
1131
|
-
<i [ngClass]="feature.icon()"></i>
|
|
1132
|
-
</button>
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
</div>
|
|
1137
|
-
</div>
|
|
1138
|
-
</div>
|
|
1053
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: AppTopbar, isStandalone: true, selector: "app-topbar", ngImport: i0, template: `
|
|
1054
|
+
@if (data(); as topbar) {
|
|
1055
|
+
<div class="layout-topbar">
|
|
1056
|
+
<div class="layout-topbar-logo-container">
|
|
1057
|
+
@if (topbar.showMenuToggle) {
|
|
1058
|
+
<button class="layout-menu-button layout-topbar-action" (click)="layoutService.onMenuToggle()">
|
|
1059
|
+
<i class="fa-solid fa-bars"></i>
|
|
1060
|
+
</button>
|
|
1061
|
+
}
|
|
1062
|
+
<a class="layout-topbar-logo" routerLink="/">
|
|
1063
|
+
@if (topbar.logoPath?.light && !layoutService.isDarkTheme()) {
|
|
1064
|
+
<img [src]="topbar.logoPath?.light" [alt]="topbar.logoPath?.light" class="max-h-9 min-h-8" />
|
|
1065
|
+
}
|
|
1066
|
+
@if (topbar.logoPath?.dark && layoutService.isDarkTheme()) {
|
|
1067
|
+
<img [src]="topbar.logoPath?.dark" [alt]="topbar.logoPath?.dark" class="max-h-9 min-h-8" />
|
|
1068
|
+
}
|
|
1069
|
+
</a>
|
|
1070
|
+
@if (topbar.appName) {
|
|
1071
|
+
<span class="layout-topbar-app-name">{{ topbar.appName }}</span>
|
|
1072
|
+
}
|
|
1073
|
+
</div>
|
|
1074
|
+
<div class="layout-topbar-left-actions">
|
|
1075
|
+
@if (topbar.showBackButton || pageTitleService.hasTitle()) {
|
|
1076
|
+
<span class="topbar-separator"></span>
|
|
1077
|
+
}
|
|
1078
|
+
@if (topbar.showBackButton && navigationService.canGoBackSignal()) {
|
|
1079
|
+
<button class="layout-menu-button layout-topbar-action" (click)="navigationService.goBack()">
|
|
1080
|
+
<i class="fa-solid fa-arrow-left"></i>
|
|
1081
|
+
</button>
|
|
1082
|
+
}
|
|
1083
|
+
@if (pageTitleService.hasTitle()) {
|
|
1084
|
+
<span class="layout-topbar-page-title">
|
|
1085
|
+
<span>{{ pageTitleService.title() }}</span>
|
|
1086
|
+
</span>
|
|
1087
|
+
}
|
|
1088
|
+
</div>
|
|
1089
|
+
<div class="layout-topbar-right-actions">
|
|
1090
|
+
<button class="layout-topbar-menu-button layout-topbar-action" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1091
|
+
<i class="fa-solid fa-ellipsis-vertical"></i>
|
|
1092
|
+
</button>
|
|
1093
|
+
<div class="layout-topbar-menu hidden lg:block">
|
|
1094
|
+
<div class="layout-topbar-menu-content">
|
|
1095
|
+
@for (item of topbar.menuItems; track item) {
|
|
1096
|
+
@if (item.component != null) {
|
|
1097
|
+
<ng-template [componentInjector]="item.component"></ng-template>
|
|
1098
|
+
}
|
|
1099
|
+
@else {
|
|
1100
|
+
<button type="button" class="layout-topbar-action" (click)="item.callback()" [routerLink]="item.routerLink" [smzTooltip]="item.tooltip">
|
|
1101
|
+
<i [ngClass]="item.icon"></i>
|
|
1102
|
+
<span>{{ item.label }}</span>
|
|
1103
|
+
</button>
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
</div>
|
|
1107
|
+
</div>
|
|
1108
|
+
<div class="layout-config-menu">
|
|
1109
|
+
@if (topbar.showDarkModeToggle) {
|
|
1110
|
+
<button type="button" class="layout-topbar-action" (click)="toggleDarkMode()" smzTooltip="Dark/Light">
|
|
1111
|
+
<i [ngClass]="{ 'fa-solid': true, 'fa-moon': layoutService.isDarkTheme(), 'fa-sun': !layoutService.isDarkTheme() }"></i>
|
|
1112
|
+
</button>
|
|
1113
|
+
}
|
|
1114
|
+
@if (topbar.showConfigurator) {
|
|
1115
|
+
<div class="relative">
|
|
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">
|
|
1118
|
+
<i class="fa-solid fa-palette"></i>
|
|
1119
|
+
</button>
|
|
1120
|
+
<app-configurator></app-configurator>
|
|
1121
|
+
</div>
|
|
1122
|
+
}
|
|
1123
|
+
@if (topbar.showProfileMenu !== false) {
|
|
1124
|
+
@for (feature of topbar.features; track feature) {
|
|
1125
|
+
<ui-menu #menu [model]="feature.menuItems" [popup]="true"></ui-menu>
|
|
1126
|
+
@if (feature.avatar && feature.avatar() != null) {
|
|
1127
|
+
<img [src]="feature.avatar()" [alt]="feature.label" class="layout-topbar-action w-8 h-8 rounded-full" (click)="menu.toggle($event)" [smzTooltip]="feature.tooltip" (error)="handleMissingImage($event, feature.placeholder)"/>
|
|
1128
|
+
}
|
|
1129
|
+
@else {
|
|
1130
|
+
<button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [smzTooltip]="feature.tooltip">
|
|
1131
|
+
<i [ngClass]="feature.icon()"></i>
|
|
1132
|
+
</button>
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
</div>
|
|
1137
|
+
</div>
|
|
1138
|
+
</div>
|
|
1139
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"] }] });
|
|
1140
1140
|
}
|
|
1141
1141
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppTopbar, decorators: [{
|
|
@@ -1144,92 +1144,92 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1144
1144
|
selector: 'app-topbar',
|
|
1145
1145
|
standalone: true,
|
|
1146
1146
|
imports: [RouterModule, CommonModule, SmzStyleClassDirective, AppConfigurator, ComponentInjectorDirective, SmzTooltipDirective, SmzMenuListComponent, SmzButtonComponent],
|
|
1147
|
-
template: `
|
|
1148
|
-
@if (data(); as topbar) {
|
|
1149
|
-
<div class="layout-topbar">
|
|
1150
|
-
<div class="layout-topbar-logo-container">
|
|
1151
|
-
@if (topbar.showMenuToggle) {
|
|
1152
|
-
<button class="layout-menu-button layout-topbar-action" (click)="layoutService.onMenuToggle()">
|
|
1153
|
-
<i class="fa-solid fa-bars"></i>
|
|
1154
|
-
</button>
|
|
1155
|
-
}
|
|
1156
|
-
<a class="layout-topbar-logo" routerLink="/">
|
|
1157
|
-
@if (topbar.logoPath?.light && !layoutService.isDarkTheme()) {
|
|
1158
|
-
<img [src]="topbar.logoPath?.light" [alt]="topbar.logoPath?.light" class="max-h-9 min-h-8" />
|
|
1159
|
-
}
|
|
1160
|
-
@if (topbar.logoPath?.dark && layoutService.isDarkTheme()) {
|
|
1161
|
-
<img [src]="topbar.logoPath?.dark" [alt]="topbar.logoPath?.dark" class="max-h-9 min-h-8" />
|
|
1162
|
-
}
|
|
1163
|
-
</a>
|
|
1164
|
-
@if (topbar.appName) {
|
|
1165
|
-
<span class="layout-topbar-app-name">{{ topbar.appName }}</span>
|
|
1166
|
-
}
|
|
1167
|
-
</div>
|
|
1168
|
-
<div class="layout-topbar-left-actions">
|
|
1169
|
-
@if (topbar.showBackButton || pageTitleService.hasTitle()) {
|
|
1170
|
-
<span class="topbar-separator"></span>
|
|
1171
|
-
}
|
|
1172
|
-
@if (topbar.showBackButton && navigationService.canGoBackSignal()) {
|
|
1173
|
-
<button class="layout-menu-button layout-topbar-action" (click)="navigationService.goBack()">
|
|
1174
|
-
<i class="fa-solid fa-arrow-left"></i>
|
|
1175
|
-
</button>
|
|
1176
|
-
}
|
|
1177
|
-
@if (pageTitleService.hasTitle()) {
|
|
1178
|
-
<span class="layout-topbar-page-title">
|
|
1179
|
-
<span>{{ pageTitleService.title() }}</span>
|
|
1180
|
-
</span>
|
|
1181
|
-
}
|
|
1182
|
-
</div>
|
|
1183
|
-
<div class="layout-topbar-right-actions">
|
|
1184
|
-
<button class="layout-topbar-menu-button layout-topbar-action" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1185
|
-
<i class="fa-solid fa-ellipsis-vertical"></i>
|
|
1186
|
-
</button>
|
|
1187
|
-
<div class="layout-topbar-menu hidden lg:block">
|
|
1188
|
-
<div class="layout-topbar-menu-content">
|
|
1189
|
-
@for (item of topbar.menuItems; track item) {
|
|
1190
|
-
@if (item.component != null) {
|
|
1191
|
-
<ng-template [componentInjector]="item.component"></ng-template>
|
|
1192
|
-
}
|
|
1193
|
-
@else {
|
|
1194
|
-
<button type="button" class="layout-topbar-action" (click)="item.callback()" [routerLink]="item.routerLink" [smzTooltip]="item.tooltip">
|
|
1195
|
-
<i [ngClass]="item.icon"></i>
|
|
1196
|
-
<span>{{ item.label }}</span>
|
|
1197
|
-
</button>
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
</div>
|
|
1201
|
-
</div>
|
|
1202
|
-
<div class="layout-config-menu">
|
|
1203
|
-
@if (topbar.showDarkModeToggle) {
|
|
1204
|
-
<button type="button" class="layout-topbar-action" (click)="toggleDarkMode()" smzTooltip="Dark/Light">
|
|
1205
|
-
<i [ngClass]="{ 'fa-solid': true, 'fa-moon': layoutService.isDarkTheme(), 'fa-sun': !layoutService.isDarkTheme() }"></i>
|
|
1206
|
-
</button>
|
|
1207
|
-
}
|
|
1208
|
-
@if (topbar.showConfigurator) {
|
|
1209
|
-
<div class="relative">
|
|
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">
|
|
1212
|
-
<i class="fa-solid fa-palette"></i>
|
|
1213
|
-
</button>
|
|
1214
|
-
<app-configurator></app-configurator>
|
|
1215
|
-
</div>
|
|
1216
|
-
}
|
|
1217
|
-
@if (topbar.showProfileMenu !== false) {
|
|
1218
|
-
@for (feature of topbar.features; track feature) {
|
|
1219
|
-
<ui-menu #menu [model]="feature.menuItems" [popup]="true"></ui-menu>
|
|
1220
|
-
@if (feature.avatar && feature.avatar() != null) {
|
|
1221
|
-
<img [src]="feature.avatar()" [alt]="feature.label" class="layout-topbar-action w-8 h-8 rounded-full" (click)="menu.toggle($event)" [smzTooltip]="feature.tooltip" (error)="handleMissingImage($event, feature.placeholder)"/>
|
|
1222
|
-
}
|
|
1223
|
-
@else {
|
|
1224
|
-
<button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [smzTooltip]="feature.tooltip">
|
|
1225
|
-
<i [ngClass]="feature.icon()"></i>
|
|
1226
|
-
</button>
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
}
|
|
1230
|
-
</div>
|
|
1231
|
-
</div>
|
|
1232
|
-
</div>
|
|
1147
|
+
template: `
|
|
1148
|
+
@if (data(); as topbar) {
|
|
1149
|
+
<div class="layout-topbar">
|
|
1150
|
+
<div class="layout-topbar-logo-container">
|
|
1151
|
+
@if (topbar.showMenuToggle) {
|
|
1152
|
+
<button class="layout-menu-button layout-topbar-action" (click)="layoutService.onMenuToggle()">
|
|
1153
|
+
<i class="fa-solid fa-bars"></i>
|
|
1154
|
+
</button>
|
|
1155
|
+
}
|
|
1156
|
+
<a class="layout-topbar-logo" routerLink="/">
|
|
1157
|
+
@if (topbar.logoPath?.light && !layoutService.isDarkTheme()) {
|
|
1158
|
+
<img [src]="topbar.logoPath?.light" [alt]="topbar.logoPath?.light" class="max-h-9 min-h-8" />
|
|
1159
|
+
}
|
|
1160
|
+
@if (topbar.logoPath?.dark && layoutService.isDarkTheme()) {
|
|
1161
|
+
<img [src]="topbar.logoPath?.dark" [alt]="topbar.logoPath?.dark" class="max-h-9 min-h-8" />
|
|
1162
|
+
}
|
|
1163
|
+
</a>
|
|
1164
|
+
@if (topbar.appName) {
|
|
1165
|
+
<span class="layout-topbar-app-name">{{ topbar.appName }}</span>
|
|
1166
|
+
}
|
|
1167
|
+
</div>
|
|
1168
|
+
<div class="layout-topbar-left-actions">
|
|
1169
|
+
@if (topbar.showBackButton || pageTitleService.hasTitle()) {
|
|
1170
|
+
<span class="topbar-separator"></span>
|
|
1171
|
+
}
|
|
1172
|
+
@if (topbar.showBackButton && navigationService.canGoBackSignal()) {
|
|
1173
|
+
<button class="layout-menu-button layout-topbar-action" (click)="navigationService.goBack()">
|
|
1174
|
+
<i class="fa-solid fa-arrow-left"></i>
|
|
1175
|
+
</button>
|
|
1176
|
+
}
|
|
1177
|
+
@if (pageTitleService.hasTitle()) {
|
|
1178
|
+
<span class="layout-topbar-page-title">
|
|
1179
|
+
<span>{{ pageTitleService.title() }}</span>
|
|
1180
|
+
</span>
|
|
1181
|
+
}
|
|
1182
|
+
</div>
|
|
1183
|
+
<div class="layout-topbar-right-actions">
|
|
1184
|
+
<button class="layout-topbar-menu-button layout-topbar-action" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1185
|
+
<i class="fa-solid fa-ellipsis-vertical"></i>
|
|
1186
|
+
</button>
|
|
1187
|
+
<div class="layout-topbar-menu hidden lg:block">
|
|
1188
|
+
<div class="layout-topbar-menu-content">
|
|
1189
|
+
@for (item of topbar.menuItems; track item) {
|
|
1190
|
+
@if (item.component != null) {
|
|
1191
|
+
<ng-template [componentInjector]="item.component"></ng-template>
|
|
1192
|
+
}
|
|
1193
|
+
@else {
|
|
1194
|
+
<button type="button" class="layout-topbar-action" (click)="item.callback()" [routerLink]="item.routerLink" [smzTooltip]="item.tooltip">
|
|
1195
|
+
<i [ngClass]="item.icon"></i>
|
|
1196
|
+
<span>{{ item.label }}</span>
|
|
1197
|
+
</button>
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
</div>
|
|
1201
|
+
</div>
|
|
1202
|
+
<div class="layout-config-menu">
|
|
1203
|
+
@if (topbar.showDarkModeToggle) {
|
|
1204
|
+
<button type="button" class="layout-topbar-action" (click)="toggleDarkMode()" smzTooltip="Dark/Light">
|
|
1205
|
+
<i [ngClass]="{ 'fa-solid': true, 'fa-moon': layoutService.isDarkTheme(), 'fa-sun': !layoutService.isDarkTheme() }"></i>
|
|
1206
|
+
</button>
|
|
1207
|
+
}
|
|
1208
|
+
@if (topbar.showConfigurator) {
|
|
1209
|
+
<div class="relative">
|
|
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">
|
|
1212
|
+
<i class="fa-solid fa-palette"></i>
|
|
1213
|
+
</button>
|
|
1214
|
+
<app-configurator></app-configurator>
|
|
1215
|
+
</div>
|
|
1216
|
+
}
|
|
1217
|
+
@if (topbar.showProfileMenu !== false) {
|
|
1218
|
+
@for (feature of topbar.features; track feature) {
|
|
1219
|
+
<ui-menu #menu [model]="feature.menuItems" [popup]="true"></ui-menu>
|
|
1220
|
+
@if (feature.avatar && feature.avatar() != null) {
|
|
1221
|
+
<img [src]="feature.avatar()" [alt]="feature.label" class="layout-topbar-action w-8 h-8 rounded-full" (click)="menu.toggle($event)" [smzTooltip]="feature.tooltip" (error)="handleMissingImage($event, feature.placeholder)"/>
|
|
1222
|
+
}
|
|
1223
|
+
@else {
|
|
1224
|
+
<button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [smzTooltip]="feature.tooltip">
|
|
1225
|
+
<i [ngClass]="feature.icon()"></i>
|
|
1226
|
+
</button>
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
</div>
|
|
1231
|
+
</div>
|
|
1232
|
+
</div>
|
|
1233
1233
|
}`
|
|
1234
1234
|
}]
|
|
1235
1235
|
}] });
|
|
@@ -1312,56 +1312,56 @@ class AppMenuitem {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
}
|
|
1314
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>
|
|
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>
|
|
1365
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: [
|
|
1366
1366
|
trigger('children', [
|
|
1367
1367
|
state('collapsed', style({
|
|
@@ -1380,56 +1380,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1380
1380
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
1381
1381
|
selector: '[app-menuitem]',
|
|
1382
1382
|
imports: [CommonModule, RouterModule, SmzRippleDirective],
|
|
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>
|
|
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>
|
|
1433
1433
|
`,
|
|
1434
1434
|
animations: [
|
|
1435
1435
|
trigger('children', [
|
|
@@ -1463,15 +1463,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1463
1463
|
class AppMenu {
|
|
1464
1464
|
model = inject(SmzUILayout).sidebar;
|
|
1465
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
|
-
}
|
|
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
|
+
}
|
|
1475
1475
|
</ul>`, isInline: true, dependencies: [{ kind: "component", type: AppMenuitem, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey"] }, { kind: "ngmodule", type: RouterModule }] });
|
|
1476
1476
|
}
|
|
1477
1477
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppMenu, decorators: [{
|
|
@@ -1480,15 +1480,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1480
1480
|
selector: 'app-menu',
|
|
1481
1481
|
standalone: true,
|
|
1482
1482
|
imports: [AppMenuitem, RouterModule],
|
|
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
|
-
}
|
|
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
|
+
}
|
|
1492
1492
|
</ul>`
|
|
1493
1493
|
}]
|
|
1494
1494
|
}] });
|
|
@@ -1499,8 +1499,8 @@ class AppSidebar {
|
|
|
1499
1499
|
this.el = el;
|
|
1500
1500
|
}
|
|
1501
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>
|
|
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>
|
|
1504
1504
|
</div>`, isInline: true, dependencies: [{ kind: "component", type: AppMenu, selector: "app-menu" }] });
|
|
1505
1505
|
}
|
|
1506
1506
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppSidebar, decorators: [{
|
|
@@ -1509,8 +1509,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1509
1509
|
selector: 'app-sidebar',
|
|
1510
1510
|
standalone: true,
|
|
1511
1511
|
imports: [AppMenu],
|
|
1512
|
-
template: ` <div class="layout-sidebar">
|
|
1513
|
-
<app-menu></app-menu>
|
|
1512
|
+
template: ` <div class="layout-sidebar">
|
|
1513
|
+
<app-menu></app-menu>
|
|
1514
1514
|
</div>`
|
|
1515
1515
|
}]
|
|
1516
1516
|
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
@@ -1519,30 +1519,30 @@ class AppFooter {
|
|
|
1519
1519
|
data = inject(SMZ_UI_LAYOUT_CONFIG).footer;
|
|
1520
1520
|
layoutService = inject(LayoutService);
|
|
1521
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
|
-
}
|
|
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
|
+
}
|
|
1546
1546
|
`, isInline: true });
|
|
1547
1547
|
}
|
|
1548
1548
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppFooter, decorators: [{
|
|
@@ -1551,30 +1551,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1551
1551
|
standalone: true,
|
|
1552
1552
|
selector: 'app-footer',
|
|
1553
1553
|
imports: [],
|
|
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
|
-
}
|
|
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
|
+
}
|
|
1578
1578
|
`
|
|
1579
1579
|
}]
|
|
1580
1580
|
}] });
|
|
@@ -1656,18 +1656,18 @@ class AppLayout {
|
|
|
1656
1656
|
}
|
|
1657
1657
|
}
|
|
1658
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>
|
|
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>
|
|
1671
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" }] });
|
|
1672
1672
|
}
|
|
1673
1673
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppLayout, decorators: [{
|
|
@@ -1676,18 +1676,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1676
1676
|
selector: 'app-layout',
|
|
1677
1677
|
standalone: true,
|
|
1678
1678
|
imports: [CommonModule, AppTopbar, AppSidebar, RouterModule, AppFooter],
|
|
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>
|
|
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>
|
|
1691
1691
|
</div> `
|
|
1692
1692
|
}]
|
|
1693
1693
|
}], ctorParameters: () => [{ type: LayoutService }, { type: i0.Renderer2 }, { type: i1.Router }], propDecorators: { appSidebar: [{
|
|
@@ -1705,15 +1705,15 @@ class AppFloatingConfigurator {
|
|
|
1705
1705
|
this.LayoutService.layoutConfig.update((state) => ({ ...state, darkTheme: !state.darkTheme }));
|
|
1706
1706
|
}
|
|
1707
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: `
|
|
1709
|
-
<div class="fixed flex gap-4 top-8 right-8">
|
|
1710
|
-
<button smzButton type="button" (click)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'fa-solid fa-moon' : 'fa-solid fa-sun'" severity="secondary"></button>
|
|
1711
|
-
<div class="relative">
|
|
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>
|
|
1714
|
-
<app-configurator />
|
|
1715
|
-
</div>
|
|
1716
|
-
</div>
|
|
1708
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.5", type: AppFloatingConfigurator, isStandalone: true, selector: "app-floating-configurator", ngImport: i0, template: `
|
|
1709
|
+
<div class="fixed flex gap-4 top-8 right-8">
|
|
1710
|
+
<button smzButton type="button" (click)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'fa-solid fa-moon' : 'fa-solid fa-sun'" severity="secondary"></button>
|
|
1711
|
+
<div class="relative">
|
|
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>
|
|
1714
|
+
<app-configurator />
|
|
1715
|
+
</div>
|
|
1716
|
+
</div>
|
|
1717
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" }] });
|
|
1718
1718
|
}
|
|
1719
1719
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AppFloatingConfigurator, decorators: [{
|
|
@@ -1721,15 +1721,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1721
1721
|
args: [{
|
|
1722
1722
|
selector: 'app-floating-configurator',
|
|
1723
1723
|
imports: [SmzButtonComponent, SmzStyleClassDirective, AppConfigurator],
|
|
1724
|
-
template: `
|
|
1725
|
-
<div class="fixed flex gap-4 top-8 right-8">
|
|
1726
|
-
<button smzButton type="button" (click)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'fa-solid fa-moon' : 'fa-solid fa-sun'" severity="secondary"></button>
|
|
1727
|
-
<div class="relative">
|
|
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>
|
|
1730
|
-
<app-configurator />
|
|
1731
|
-
</div>
|
|
1732
|
-
</div>
|
|
1724
|
+
template: `
|
|
1725
|
+
<div class="fixed flex gap-4 top-8 right-8">
|
|
1726
|
+
<button smzButton type="button" (click)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'fa-solid fa-moon' : 'fa-solid fa-sun'" severity="secondary"></button>
|
|
1727
|
+
<div class="relative">
|
|
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>
|
|
1730
|
+
<app-configurator />
|
|
1731
|
+
</div>
|
|
1732
|
+
</div>
|
|
1733
1733
|
`
|
|
1734
1734
|
}]
|
|
1735
1735
|
}] });
|
|
@@ -1805,26 +1805,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1805
1805
|
class AccessPageComponent {
|
|
1806
1806
|
config = inject(ErrorPagesConfigService).config();
|
|
1807
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>
|
|
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>
|
|
1828
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"] }] });
|
|
1829
1829
|
}
|
|
1830
1830
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AccessPageComponent, decorators: [{
|
|
@@ -1833,26 +1833,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1833
1833
|
selector: 'app-access',
|
|
1834
1834
|
standalone: true,
|
|
1835
1835
|
imports: [CommonModule, SmzButtonComponent, RouterModule, SmzRippleDirective, SmzButtonComponent],
|
|
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>
|
|
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>
|
|
1856
1856
|
`
|
|
1857
1857
|
}]
|
|
1858
1858
|
}] });
|
|
@@ -1860,26 +1860,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1860
1860
|
class ErrorPageComponent {
|
|
1861
1861
|
config = inject(ErrorPagesConfigService).config();
|
|
1862
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>
|
|
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>
|
|
1883
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"] }] });
|
|
1884
1884
|
}
|
|
1885
1885
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ErrorPageComponent, decorators: [{
|
|
@@ -1888,26 +1888,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1888
1888
|
selector: 'app-error',
|
|
1889
1889
|
imports: [CommonModule, SmzButtonComponent, SmzRippleDirective, RouterModule, SmzButtonComponent],
|
|
1890
1890
|
standalone: true,
|
|
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>
|
|
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>
|
|
1911
1911
|
`
|
|
1912
1912
|
}]
|
|
1913
1913
|
}] });
|
|
@@ -1915,50 +1915,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1915
1915
|
class NotfoundPageComponent {
|
|
1916
1916
|
config = inject(ErrorPagesConfigService).config();
|
|
1917
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>
|
|
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>
|
|
1962
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"] }] });
|
|
1963
1963
|
}
|
|
1964
1964
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: NotfoundPageComponent, decorators: [{
|
|
@@ -1967,50 +1967,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1967
1967
|
selector: 'app-notfound',
|
|
1968
1968
|
standalone: true,
|
|
1969
1969
|
imports: [CommonModule, RouterModule, SmzButtonComponent, SmzRippleDirective],
|
|
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>
|
|
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>
|
|
2014
2014
|
`
|
|
2015
2015
|
}]
|
|
2016
2016
|
}] });
|