@ngx-smz/layout 21.9.0-next.19 → 21.9.0-next.20
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.
|
@@ -575,49 +575,49 @@ class AppConfigurator {
|
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppConfigurator, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
578
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AppConfigurator, isStandalone: true, selector: "app-configurator", host: { classAttribute: "hidden absolute top-[3.25rem] right-0 w-72 p-4 bg-surface-0 dark:bg-surface-900 border border-surface rounded-border origin-top shadow-[0px_3px_5px_rgba(0,0,0,0.02),0px_0px_2px_rgba(0,0,0,0.05),0px_1px_4px_rgba(0,0,0,0.08)]" }, ngImport: i0, template: `
|
|
579
|
-
<div class="flex flex-col gap-4">
|
|
580
|
-
<div>
|
|
581
|
-
<span class="text-sm text-muted-color font-semibold">Primary</span>
|
|
582
|
-
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
583
|
-
@for (primaryColor of primaryColors(); track primaryColor.name) {
|
|
584
|
-
<button
|
|
585
|
-
type="button"
|
|
586
|
-
[title]="primaryColor.name"
|
|
587
|
-
(click)="updateColors($event, 'primary', primaryColor)"
|
|
588
|
-
[ngClass]="{ 'outline-primary': primaryColor.name === selectedPrimaryColor() }"
|
|
589
|
-
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
590
|
-
[style]="{
|
|
591
|
-
'background-color': primaryColor?.name === 'noir' ? 'var(--text-color)' : primaryColor?.palette?.['500']
|
|
592
|
-
}"
|
|
593
|
-
></button>
|
|
594
|
-
}
|
|
595
|
-
</div>
|
|
596
|
-
</div>
|
|
597
|
-
<div>
|
|
598
|
-
<span class="text-sm text-muted-color font-semibold">Surface</span>
|
|
599
|
-
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
600
|
-
@for (surface of surfaces; track surface.name) {
|
|
601
|
-
<button
|
|
602
|
-
type="button"
|
|
603
|
-
[title]="surface.name"
|
|
604
|
-
(click)="updateColors($event, 'surface', surface)"
|
|
605
|
-
[ngClass]="{ 'outline-primary': selectedSurfaceColor() ? selectedSurfaceColor() === surface.name : layoutService.layoutConfig().darkTheme ? surface.name === 'zinc' : surface.name === 'slate' }"
|
|
606
|
-
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
607
|
-
[style]="{
|
|
608
|
-
'background-color': surface?.name === 'noir' ? 'var(--text-color)' : surface?.palette?.['500']
|
|
609
|
-
}"
|
|
610
|
-
></button>
|
|
611
|
-
}
|
|
612
|
-
</div>
|
|
613
|
-
</div>
|
|
614
|
-
@if (showMenuModeButton()) {
|
|
615
|
-
<div class="flex flex-col gap-2">
|
|
616
|
-
<span class="text-sm text-muted-color font-semibold">Menu Mode</span>
|
|
617
|
-
<ui-select-button [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" size="small"></ui-select-button>
|
|
618
|
-
</div>
|
|
619
|
-
}
|
|
620
|
-
</div>
|
|
578
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AppConfigurator, isStandalone: true, selector: "app-configurator", host: { classAttribute: "hidden absolute top-[3.25rem] right-0 w-72 p-4 bg-surface-0 dark:bg-surface-900 border border-surface rounded-border origin-top shadow-[0px_3px_5px_rgba(0,0,0,0.02),0px_0px_2px_rgba(0,0,0,0.05),0px_1px_4px_rgba(0,0,0,0.08)]" }, ngImport: i0, template: `
|
|
579
|
+
<div class="flex flex-col gap-4">
|
|
580
|
+
<div>
|
|
581
|
+
<span class="text-sm text-muted-color font-semibold">Primary</span>
|
|
582
|
+
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
583
|
+
@for (primaryColor of primaryColors(); track primaryColor.name) {
|
|
584
|
+
<button
|
|
585
|
+
type="button"
|
|
586
|
+
[title]="primaryColor.name"
|
|
587
|
+
(click)="updateColors($event, 'primary', primaryColor)"
|
|
588
|
+
[ngClass]="{ 'outline-primary': primaryColor.name === selectedPrimaryColor() }"
|
|
589
|
+
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
590
|
+
[style]="{
|
|
591
|
+
'background-color': primaryColor?.name === 'noir' ? 'var(--text-color)' : primaryColor?.palette?.['500']
|
|
592
|
+
}"
|
|
593
|
+
></button>
|
|
594
|
+
}
|
|
595
|
+
</div>
|
|
596
|
+
</div>
|
|
597
|
+
<div>
|
|
598
|
+
<span class="text-sm text-muted-color font-semibold">Surface</span>
|
|
599
|
+
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
600
|
+
@for (surface of surfaces; track surface.name) {
|
|
601
|
+
<button
|
|
602
|
+
type="button"
|
|
603
|
+
[title]="surface.name"
|
|
604
|
+
(click)="updateColors($event, 'surface', surface)"
|
|
605
|
+
[ngClass]="{ 'outline-primary': selectedSurfaceColor() ? selectedSurfaceColor() === surface.name : layoutService.layoutConfig().darkTheme ? surface.name === 'zinc' : surface.name === 'slate' }"
|
|
606
|
+
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
607
|
+
[style]="{
|
|
608
|
+
'background-color': surface?.name === 'noir' ? 'var(--text-color)' : surface?.palette?.['500']
|
|
609
|
+
}"
|
|
610
|
+
></button>
|
|
611
|
+
}
|
|
612
|
+
</div>
|
|
613
|
+
</div>
|
|
614
|
+
@if (showMenuModeButton()) {
|
|
615
|
+
<div class="flex flex-col gap-2">
|
|
616
|
+
<span class="text-sm text-muted-color font-semibold">Menu Mode</span>
|
|
617
|
+
<ui-select-button [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" size="small"></ui-select-button>
|
|
618
|
+
</div>
|
|
619
|
+
}
|
|
620
|
+
</div>
|
|
621
621
|
`, 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
622
|
}
|
|
623
623
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppConfigurator, decorators: [{
|
|
@@ -626,49 +626,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
626
626
|
selector: 'app-configurator',
|
|
627
627
|
standalone: true,
|
|
628
628
|
imports: [CommonModule, FormsModule, SmzSelectButtonComponent],
|
|
629
|
-
template: `
|
|
630
|
-
<div class="flex flex-col gap-4">
|
|
631
|
-
<div>
|
|
632
|
-
<span class="text-sm text-muted-color font-semibold">Primary</span>
|
|
633
|
-
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
634
|
-
@for (primaryColor of primaryColors(); track primaryColor.name) {
|
|
635
|
-
<button
|
|
636
|
-
type="button"
|
|
637
|
-
[title]="primaryColor.name"
|
|
638
|
-
(click)="updateColors($event, 'primary', primaryColor)"
|
|
639
|
-
[ngClass]="{ 'outline-primary': primaryColor.name === selectedPrimaryColor() }"
|
|
640
|
-
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
641
|
-
[style]="{
|
|
642
|
-
'background-color': primaryColor?.name === 'noir' ? 'var(--text-color)' : primaryColor?.palette?.['500']
|
|
643
|
-
}"
|
|
644
|
-
></button>
|
|
645
|
-
}
|
|
646
|
-
</div>
|
|
647
|
-
</div>
|
|
648
|
-
<div>
|
|
649
|
-
<span class="text-sm text-muted-color font-semibold">Surface</span>
|
|
650
|
-
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
651
|
-
@for (surface of surfaces; track surface.name) {
|
|
652
|
-
<button
|
|
653
|
-
type="button"
|
|
654
|
-
[title]="surface.name"
|
|
655
|
-
(click)="updateColors($event, 'surface', surface)"
|
|
656
|
-
[ngClass]="{ 'outline-primary': selectedSurfaceColor() ? selectedSurfaceColor() === surface.name : layoutService.layoutConfig().darkTheme ? surface.name === 'zinc' : surface.name === 'slate' }"
|
|
657
|
-
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
658
|
-
[style]="{
|
|
659
|
-
'background-color': surface?.name === 'noir' ? 'var(--text-color)' : surface?.palette?.['500']
|
|
660
|
-
}"
|
|
661
|
-
></button>
|
|
662
|
-
}
|
|
663
|
-
</div>
|
|
664
|
-
</div>
|
|
665
|
-
@if (showMenuModeButton()) {
|
|
666
|
-
<div class="flex flex-col gap-2">
|
|
667
|
-
<span class="text-sm text-muted-color font-semibold">Menu Mode</span>
|
|
668
|
-
<ui-select-button [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" size="small"></ui-select-button>
|
|
669
|
-
</div>
|
|
670
|
-
}
|
|
671
|
-
</div>
|
|
629
|
+
template: `
|
|
630
|
+
<div class="flex flex-col gap-4">
|
|
631
|
+
<div>
|
|
632
|
+
<span class="text-sm text-muted-color font-semibold">Primary</span>
|
|
633
|
+
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
634
|
+
@for (primaryColor of primaryColors(); track primaryColor.name) {
|
|
635
|
+
<button
|
|
636
|
+
type="button"
|
|
637
|
+
[title]="primaryColor.name"
|
|
638
|
+
(click)="updateColors($event, 'primary', primaryColor)"
|
|
639
|
+
[ngClass]="{ 'outline-primary': primaryColor.name === selectedPrimaryColor() }"
|
|
640
|
+
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
641
|
+
[style]="{
|
|
642
|
+
'background-color': primaryColor?.name === 'noir' ? 'var(--text-color)' : primaryColor?.palette?.['500']
|
|
643
|
+
}"
|
|
644
|
+
></button>
|
|
645
|
+
}
|
|
646
|
+
</div>
|
|
647
|
+
</div>
|
|
648
|
+
<div>
|
|
649
|
+
<span class="text-sm text-muted-color font-semibold">Surface</span>
|
|
650
|
+
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
651
|
+
@for (surface of surfaces; track surface.name) {
|
|
652
|
+
<button
|
|
653
|
+
type="button"
|
|
654
|
+
[title]="surface.name"
|
|
655
|
+
(click)="updateColors($event, 'surface', surface)"
|
|
656
|
+
[ngClass]="{ 'outline-primary': selectedSurfaceColor() ? selectedSurfaceColor() === surface.name : layoutService.layoutConfig().darkTheme ? surface.name === 'zinc' : surface.name === 'slate' }"
|
|
657
|
+
class="border-none w-5 h-5 rounded-full p-0 cursor-pointer outline-none outline-offset-1"
|
|
658
|
+
[style]="{
|
|
659
|
+
'background-color': surface?.name === 'noir' ? 'var(--text-color)' : surface?.palette?.['500']
|
|
660
|
+
}"
|
|
661
|
+
></button>
|
|
662
|
+
}
|
|
663
|
+
</div>
|
|
664
|
+
</div>
|
|
665
|
+
@if (showMenuModeButton()) {
|
|
666
|
+
<div class="flex flex-col gap-2">
|
|
667
|
+
<span class="text-sm text-muted-color font-semibold">Menu Mode</span>
|
|
668
|
+
<ui-select-button [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" size="small"></ui-select-button>
|
|
669
|
+
</div>
|
|
670
|
+
}
|
|
671
|
+
</div>
|
|
672
672
|
`,
|
|
673
673
|
host: {
|
|
674
674
|
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)]'
|
|
@@ -1045,91 +1045,91 @@ class AppTopbar {
|
|
|
1045
1045
|
event.target.src = placeholder;
|
|
1046
1046
|
}
|
|
1047
1047
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppTopbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1048
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AppTopbar, isStandalone: true, selector: "app-topbar", ngImport: i0, template: `
|
|
1049
|
-
@if (data(); as topbar) {
|
|
1050
|
-
<div class="layout-topbar">
|
|
1051
|
-
<div class="layout-topbar-logo-container">
|
|
1052
|
-
@if (topbar.showMenuToggle) {
|
|
1053
|
-
<button class="layout-menu-button layout-topbar-action" (click)="layoutService.onMenuToggle()">
|
|
1054
|
-
<i class="fa-solid fa-bars"></i>
|
|
1055
|
-
</button>
|
|
1056
|
-
}
|
|
1057
|
-
<a class="layout-topbar-logo" routerLink="/">
|
|
1058
|
-
@if (topbar.logoPath?.light && !layoutService.isDarkTheme()) {
|
|
1059
|
-
<img [src]="topbar.logoPath?.light" [alt]="topbar.logoPath?.light" class="max-h-9 min-h-8" />
|
|
1060
|
-
}
|
|
1061
|
-
@if (topbar.logoPath?.dark && layoutService.isDarkTheme()) {
|
|
1062
|
-
<img [src]="topbar.logoPath?.dark" [alt]="topbar.logoPath?.dark" class="max-h-9 min-h-8" />
|
|
1063
|
-
}
|
|
1064
|
-
</a>
|
|
1065
|
-
@if (topbar.appName) {
|
|
1066
|
-
<span class="layout-topbar-app-name">{{ topbar.appName }}</span>
|
|
1067
|
-
}
|
|
1068
|
-
</div>
|
|
1069
|
-
<div class="layout-topbar-left-actions">
|
|
1070
|
-
@if (topbar.showBackButton || pageTitleService.hasTitle()) {
|
|
1071
|
-
<span class="topbar-separator"></span>
|
|
1072
|
-
}
|
|
1073
|
-
@if (topbar.showBackButton && navigationService.canGoBackSignal()) {
|
|
1074
|
-
<button class="layout-menu-button layout-topbar-action" (click)="navigationService.goBack()">
|
|
1075
|
-
<i class="fa-solid fa-arrow-left"></i>
|
|
1076
|
-
</button>
|
|
1077
|
-
}
|
|
1078
|
-
@if (pageTitleService.hasTitle()) {
|
|
1079
|
-
<span class="layout-topbar-page-title">
|
|
1080
|
-
<span>{{ pageTitleService.title() }}</span>
|
|
1081
|
-
</span>
|
|
1082
|
-
}
|
|
1083
|
-
</div>
|
|
1084
|
-
<div class="layout-topbar-right-actions">
|
|
1085
|
-
<button class="layout-topbar-menu-button layout-topbar-action" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1086
|
-
<i class="fa-solid fa-ellipsis-vertical"></i>
|
|
1087
|
-
</button>
|
|
1088
|
-
<div class="layout-topbar-menu hidden lg:block">
|
|
1089
|
-
<div class="layout-topbar-menu-content">
|
|
1090
|
-
@for (item of topbar.menuItems; track item) {
|
|
1091
|
-
@if (item.component != null) {
|
|
1092
|
-
<ng-template [componentInjector]="item.component"></ng-template>
|
|
1093
|
-
}
|
|
1094
|
-
@else {
|
|
1095
|
-
<button type="button" class="layout-topbar-action" (click)="item.callback()" [routerLink]="item.routerLink" [smzTooltip]="item.tooltip">
|
|
1096
|
-
<i [ngClass]="item.icon"></i>
|
|
1097
|
-
<span>{{ item.label }}</span>
|
|
1098
|
-
</button>
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
</div>
|
|
1102
|
-
</div>
|
|
1103
|
-
<div class="layout-config-menu">
|
|
1104
|
-
@if (topbar.showDarkModeToggle) {
|
|
1105
|
-
<button type="button" class="layout-topbar-action" (click)="toggleDarkMode()" smzTooltip="Dark/Light">
|
|
1106
|
-
<i [ngClass]="{ 'fa-solid': true, 'fa-moon': layoutService.isDarkTheme(), 'fa-sun': !layoutService.isDarkTheme() }"></i>
|
|
1107
|
-
</button>
|
|
1108
|
-
}
|
|
1109
|
-
@if (topbar.showConfigurator) {
|
|
1110
|
-
<div class="relative">
|
|
1111
|
-
<button class="layout-topbar-action layout-topbar-action-highlight" smzTooltip="Configurações" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1112
|
-
<i class="fa-solid fa-palette"></i>
|
|
1113
|
-
</button>
|
|
1114
|
-
<app-configurator></app-configurator>
|
|
1115
|
-
</div>
|
|
1116
|
-
}
|
|
1117
|
-
@if (topbar.showProfileMenu !== false) {
|
|
1118
|
-
@for (feature of topbar.features; track feature) {
|
|
1119
|
-
<ui-menu #menu [model]="feature.menuItems" [popup]="true"></ui-menu>
|
|
1120
|
-
@if (feature.avatar && feature.avatar() != null) {
|
|
1121
|
-
<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)"/>
|
|
1122
|
-
}
|
|
1123
|
-
@else {
|
|
1124
|
-
<button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [smzTooltip]="feature.tooltip">
|
|
1125
|
-
<i [ngClass]="feature.icon()"></i>
|
|
1126
|
-
</button>
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
</div>
|
|
1131
|
-
</div>
|
|
1132
|
-
</div>
|
|
1048
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AppTopbar, isStandalone: true, selector: "app-topbar", ngImport: i0, template: `
|
|
1049
|
+
@if (data(); as topbar) {
|
|
1050
|
+
<div class="layout-topbar">
|
|
1051
|
+
<div class="layout-topbar-logo-container">
|
|
1052
|
+
@if (topbar.showMenuToggle) {
|
|
1053
|
+
<button class="layout-menu-button layout-topbar-action" (click)="layoutService.onMenuToggle()">
|
|
1054
|
+
<i class="fa-solid fa-bars"></i>
|
|
1055
|
+
</button>
|
|
1056
|
+
}
|
|
1057
|
+
<a class="layout-topbar-logo" routerLink="/">
|
|
1058
|
+
@if (topbar.logoPath?.light && !layoutService.isDarkTheme()) {
|
|
1059
|
+
<img [src]="topbar.logoPath?.light" [alt]="topbar.logoPath?.light" class="max-h-9 min-h-8" />
|
|
1060
|
+
}
|
|
1061
|
+
@if (topbar.logoPath?.dark && layoutService.isDarkTheme()) {
|
|
1062
|
+
<img [src]="topbar.logoPath?.dark" [alt]="topbar.logoPath?.dark" class="max-h-9 min-h-8" />
|
|
1063
|
+
}
|
|
1064
|
+
</a>
|
|
1065
|
+
@if (topbar.appName) {
|
|
1066
|
+
<span class="layout-topbar-app-name">{{ topbar.appName }}</span>
|
|
1067
|
+
}
|
|
1068
|
+
</div>
|
|
1069
|
+
<div class="layout-topbar-left-actions">
|
|
1070
|
+
@if (topbar.showBackButton || pageTitleService.hasTitle()) {
|
|
1071
|
+
<span class="topbar-separator"></span>
|
|
1072
|
+
}
|
|
1073
|
+
@if (topbar.showBackButton && navigationService.canGoBackSignal()) {
|
|
1074
|
+
<button class="layout-menu-button layout-topbar-action" (click)="navigationService.goBack()">
|
|
1075
|
+
<i class="fa-solid fa-arrow-left"></i>
|
|
1076
|
+
</button>
|
|
1077
|
+
}
|
|
1078
|
+
@if (pageTitleService.hasTitle()) {
|
|
1079
|
+
<span class="layout-topbar-page-title">
|
|
1080
|
+
<span>{{ pageTitleService.title() }}</span>
|
|
1081
|
+
</span>
|
|
1082
|
+
}
|
|
1083
|
+
</div>
|
|
1084
|
+
<div class="layout-topbar-right-actions">
|
|
1085
|
+
<button class="layout-topbar-menu-button layout-topbar-action" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1086
|
+
<i class="fa-solid fa-ellipsis-vertical"></i>
|
|
1087
|
+
</button>
|
|
1088
|
+
<div class="layout-topbar-menu hidden lg:block">
|
|
1089
|
+
<div class="layout-topbar-menu-content">
|
|
1090
|
+
@for (item of topbar.menuItems; track item) {
|
|
1091
|
+
@if (item.component != null) {
|
|
1092
|
+
<ng-template [componentInjector]="item.component"></ng-template>
|
|
1093
|
+
}
|
|
1094
|
+
@else {
|
|
1095
|
+
<button type="button" class="layout-topbar-action" (click)="item.callback()" [routerLink]="item.routerLink" [smzTooltip]="item.tooltip">
|
|
1096
|
+
<i [ngClass]="item.icon"></i>
|
|
1097
|
+
<span>{{ item.label }}</span>
|
|
1098
|
+
</button>
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
</div>
|
|
1102
|
+
</div>
|
|
1103
|
+
<div class="layout-config-menu">
|
|
1104
|
+
@if (topbar.showDarkModeToggle) {
|
|
1105
|
+
<button type="button" class="layout-topbar-action" (click)="toggleDarkMode()" smzTooltip="Dark/Light">
|
|
1106
|
+
<i [ngClass]="{ 'fa-solid': true, 'fa-moon': layoutService.isDarkTheme(), 'fa-sun': !layoutService.isDarkTheme() }"></i>
|
|
1107
|
+
</button>
|
|
1108
|
+
}
|
|
1109
|
+
@if (topbar.showConfigurator) {
|
|
1110
|
+
<div class="relative">
|
|
1111
|
+
<button class="layout-topbar-action layout-topbar-action-highlight" smzTooltip="Configurações" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1112
|
+
<i class="fa-solid fa-palette"></i>
|
|
1113
|
+
</button>
|
|
1114
|
+
<app-configurator></app-configurator>
|
|
1115
|
+
</div>
|
|
1116
|
+
}
|
|
1117
|
+
@if (topbar.showProfileMenu !== false) {
|
|
1118
|
+
@for (feature of topbar.features; track feature) {
|
|
1119
|
+
<ui-menu #menu [model]="feature.menuItems" [popup]="true"></ui-menu>
|
|
1120
|
+
@if (feature.avatar && feature.avatar() != null) {
|
|
1121
|
+
<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)"/>
|
|
1122
|
+
}
|
|
1123
|
+
@else {
|
|
1124
|
+
<button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [smzTooltip]="feature.tooltip">
|
|
1125
|
+
<i [ngClass]="feature.icon()"></i>
|
|
1126
|
+
</button>
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
</div>
|
|
1131
|
+
</div>
|
|
1132
|
+
</div>
|
|
1133
1133
|
}`, 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
1134
|
}
|
|
1135
1135
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppTopbar, decorators: [{
|
|
@@ -1138,91 +1138,91 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1138
1138
|
selector: 'app-topbar',
|
|
1139
1139
|
standalone: true,
|
|
1140
1140
|
imports: [RouterModule, CommonModule, SmzStyleClassDirective, AppConfigurator, ComponentInjectorDirective, SmzTooltipDirective, SmzMenuListComponent, SmzButtonComponent],
|
|
1141
|
-
template: `
|
|
1142
|
-
@if (data(); as topbar) {
|
|
1143
|
-
<div class="layout-topbar">
|
|
1144
|
-
<div class="layout-topbar-logo-container">
|
|
1145
|
-
@if (topbar.showMenuToggle) {
|
|
1146
|
-
<button class="layout-menu-button layout-topbar-action" (click)="layoutService.onMenuToggle()">
|
|
1147
|
-
<i class="fa-solid fa-bars"></i>
|
|
1148
|
-
</button>
|
|
1149
|
-
}
|
|
1150
|
-
<a class="layout-topbar-logo" routerLink="/">
|
|
1151
|
-
@if (topbar.logoPath?.light && !layoutService.isDarkTheme()) {
|
|
1152
|
-
<img [src]="topbar.logoPath?.light" [alt]="topbar.logoPath?.light" class="max-h-9 min-h-8" />
|
|
1153
|
-
}
|
|
1154
|
-
@if (topbar.logoPath?.dark && layoutService.isDarkTheme()) {
|
|
1155
|
-
<img [src]="topbar.logoPath?.dark" [alt]="topbar.logoPath?.dark" class="max-h-9 min-h-8" />
|
|
1156
|
-
}
|
|
1157
|
-
</a>
|
|
1158
|
-
@if (topbar.appName) {
|
|
1159
|
-
<span class="layout-topbar-app-name">{{ topbar.appName }}</span>
|
|
1160
|
-
}
|
|
1161
|
-
</div>
|
|
1162
|
-
<div class="layout-topbar-left-actions">
|
|
1163
|
-
@if (topbar.showBackButton || pageTitleService.hasTitle()) {
|
|
1164
|
-
<span class="topbar-separator"></span>
|
|
1165
|
-
}
|
|
1166
|
-
@if (topbar.showBackButton && navigationService.canGoBackSignal()) {
|
|
1167
|
-
<button class="layout-menu-button layout-topbar-action" (click)="navigationService.goBack()">
|
|
1168
|
-
<i class="fa-solid fa-arrow-left"></i>
|
|
1169
|
-
</button>
|
|
1170
|
-
}
|
|
1171
|
-
@if (pageTitleService.hasTitle()) {
|
|
1172
|
-
<span class="layout-topbar-page-title">
|
|
1173
|
-
<span>{{ pageTitleService.title() }}</span>
|
|
1174
|
-
</span>
|
|
1175
|
-
}
|
|
1176
|
-
</div>
|
|
1177
|
-
<div class="layout-topbar-right-actions">
|
|
1178
|
-
<button class="layout-topbar-menu-button layout-topbar-action" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1179
|
-
<i class="fa-solid fa-ellipsis-vertical"></i>
|
|
1180
|
-
</button>
|
|
1181
|
-
<div class="layout-topbar-menu hidden lg:block">
|
|
1182
|
-
<div class="layout-topbar-menu-content">
|
|
1183
|
-
@for (item of topbar.menuItems; track item) {
|
|
1184
|
-
@if (item.component != null) {
|
|
1185
|
-
<ng-template [componentInjector]="item.component"></ng-template>
|
|
1186
|
-
}
|
|
1187
|
-
@else {
|
|
1188
|
-
<button type="button" class="layout-topbar-action" (click)="item.callback()" [routerLink]="item.routerLink" [smzTooltip]="item.tooltip">
|
|
1189
|
-
<i [ngClass]="item.icon"></i>
|
|
1190
|
-
<span>{{ item.label }}</span>
|
|
1191
|
-
</button>
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
</div>
|
|
1195
|
-
</div>
|
|
1196
|
-
<div class="layout-config-menu">
|
|
1197
|
-
@if (topbar.showDarkModeToggle) {
|
|
1198
|
-
<button type="button" class="layout-topbar-action" (click)="toggleDarkMode()" smzTooltip="Dark/Light">
|
|
1199
|
-
<i [ngClass]="{ 'fa-solid': true, 'fa-moon': layoutService.isDarkTheme(), 'fa-sun': !layoutService.isDarkTheme() }"></i>
|
|
1200
|
-
</button>
|
|
1201
|
-
}
|
|
1202
|
-
@if (topbar.showConfigurator) {
|
|
1203
|
-
<div class="relative">
|
|
1204
|
-
<button class="layout-topbar-action layout-topbar-action-highlight" smzTooltip="Configurações" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1205
|
-
<i class="fa-solid fa-palette"></i>
|
|
1206
|
-
</button>
|
|
1207
|
-
<app-configurator></app-configurator>
|
|
1208
|
-
</div>
|
|
1209
|
-
}
|
|
1210
|
-
@if (topbar.showProfileMenu !== false) {
|
|
1211
|
-
@for (feature of topbar.features; track feature) {
|
|
1212
|
-
<ui-menu #menu [model]="feature.menuItems" [popup]="true"></ui-menu>
|
|
1213
|
-
@if (feature.avatar && feature.avatar() != null) {
|
|
1214
|
-
<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)"/>
|
|
1215
|
-
}
|
|
1216
|
-
@else {
|
|
1217
|
-
<button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [smzTooltip]="feature.tooltip">
|
|
1218
|
-
<i [ngClass]="feature.icon()"></i>
|
|
1219
|
-
</button>
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
</div>
|
|
1224
|
-
</div>
|
|
1225
|
-
</div>
|
|
1141
|
+
template: `
|
|
1142
|
+
@if (data(); as topbar) {
|
|
1143
|
+
<div class="layout-topbar">
|
|
1144
|
+
<div class="layout-topbar-logo-container">
|
|
1145
|
+
@if (topbar.showMenuToggle) {
|
|
1146
|
+
<button class="layout-menu-button layout-topbar-action" (click)="layoutService.onMenuToggle()">
|
|
1147
|
+
<i class="fa-solid fa-bars"></i>
|
|
1148
|
+
</button>
|
|
1149
|
+
}
|
|
1150
|
+
<a class="layout-topbar-logo" routerLink="/">
|
|
1151
|
+
@if (topbar.logoPath?.light && !layoutService.isDarkTheme()) {
|
|
1152
|
+
<img [src]="topbar.logoPath?.light" [alt]="topbar.logoPath?.light" class="max-h-9 min-h-8" />
|
|
1153
|
+
}
|
|
1154
|
+
@if (topbar.logoPath?.dark && layoutService.isDarkTheme()) {
|
|
1155
|
+
<img [src]="topbar.logoPath?.dark" [alt]="topbar.logoPath?.dark" class="max-h-9 min-h-8" />
|
|
1156
|
+
}
|
|
1157
|
+
</a>
|
|
1158
|
+
@if (topbar.appName) {
|
|
1159
|
+
<span class="layout-topbar-app-name">{{ topbar.appName }}</span>
|
|
1160
|
+
}
|
|
1161
|
+
</div>
|
|
1162
|
+
<div class="layout-topbar-left-actions">
|
|
1163
|
+
@if (topbar.showBackButton || pageTitleService.hasTitle()) {
|
|
1164
|
+
<span class="topbar-separator"></span>
|
|
1165
|
+
}
|
|
1166
|
+
@if (topbar.showBackButton && navigationService.canGoBackSignal()) {
|
|
1167
|
+
<button class="layout-menu-button layout-topbar-action" (click)="navigationService.goBack()">
|
|
1168
|
+
<i class="fa-solid fa-arrow-left"></i>
|
|
1169
|
+
</button>
|
|
1170
|
+
}
|
|
1171
|
+
@if (pageTitleService.hasTitle()) {
|
|
1172
|
+
<span class="layout-topbar-page-title">
|
|
1173
|
+
<span>{{ pageTitleService.title() }}</span>
|
|
1174
|
+
</span>
|
|
1175
|
+
}
|
|
1176
|
+
</div>
|
|
1177
|
+
<div class="layout-topbar-right-actions">
|
|
1178
|
+
<button class="layout-topbar-menu-button layout-topbar-action" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1179
|
+
<i class="fa-solid fa-ellipsis-vertical"></i>
|
|
1180
|
+
</button>
|
|
1181
|
+
<div class="layout-topbar-menu hidden lg:block">
|
|
1182
|
+
<div class="layout-topbar-menu-content">
|
|
1183
|
+
@for (item of topbar.menuItems; track item) {
|
|
1184
|
+
@if (item.component != null) {
|
|
1185
|
+
<ng-template [componentInjector]="item.component"></ng-template>
|
|
1186
|
+
}
|
|
1187
|
+
@else {
|
|
1188
|
+
<button type="button" class="layout-topbar-action" (click)="item.callback()" [routerLink]="item.routerLink" [smzTooltip]="item.tooltip">
|
|
1189
|
+
<i [ngClass]="item.icon"></i>
|
|
1190
|
+
<span>{{ item.label }}</span>
|
|
1191
|
+
</button>
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
</div>
|
|
1195
|
+
</div>
|
|
1196
|
+
<div class="layout-config-menu">
|
|
1197
|
+
@if (topbar.showDarkModeToggle) {
|
|
1198
|
+
<button type="button" class="layout-topbar-action" (click)="toggleDarkMode()" smzTooltip="Dark/Light">
|
|
1199
|
+
<i [ngClass]="{ 'fa-solid': true, 'fa-moon': layoutService.isDarkTheme(), 'fa-sun': !layoutService.isDarkTheme() }"></i>
|
|
1200
|
+
</button>
|
|
1201
|
+
}
|
|
1202
|
+
@if (topbar.showConfigurator) {
|
|
1203
|
+
<div class="relative">
|
|
1204
|
+
<button class="layout-topbar-action layout-topbar-action-highlight" smzTooltip="Configurações" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true">
|
|
1205
|
+
<i class="fa-solid fa-palette"></i>
|
|
1206
|
+
</button>
|
|
1207
|
+
<app-configurator></app-configurator>
|
|
1208
|
+
</div>
|
|
1209
|
+
}
|
|
1210
|
+
@if (topbar.showProfileMenu !== false) {
|
|
1211
|
+
@for (feature of topbar.features; track feature) {
|
|
1212
|
+
<ui-menu #menu [model]="feature.menuItems" [popup]="true"></ui-menu>
|
|
1213
|
+
@if (feature.avatar && feature.avatar() != null) {
|
|
1214
|
+
<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)"/>
|
|
1215
|
+
}
|
|
1216
|
+
@else {
|
|
1217
|
+
<button type="button" class="layout-topbar-action" (click)="menu.toggle($event)" [smzTooltip]="feature.tooltip">
|
|
1218
|
+
<i [ngClass]="feature.icon()"></i>
|
|
1219
|
+
</button>
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
</div>
|
|
1224
|
+
</div>
|
|
1225
|
+
</div>
|
|
1226
1226
|
}`
|
|
1227
1227
|
}]
|
|
1228
1228
|
}] });
|
|
@@ -1698,14 +1698,14 @@ class AppFloatingConfigurator {
|
|
|
1698
1698
|
this.LayoutService.layoutConfig.update((state) => ({ ...state, darkTheme: !state.darkTheme }));
|
|
1699
1699
|
}
|
|
1700
1700
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppFloatingConfigurator, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1701
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.1", type: AppFloatingConfigurator, isStandalone: true, selector: "app-floating-configurator", ngImport: i0, template: `
|
|
1702
|
-
<div class="fixed flex gap-4 top-8 right-8">
|
|
1703
|
-
<button smzButton type="button" (click)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'fa-solid fa-moon' : 'fa-solid fa-sun'" severity="secondary"></button>
|
|
1704
|
-
<div class="relative">
|
|
1705
|
-
<button smzButton icon="fa-solid fa-palette" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true" type="button" rounded></button>
|
|
1706
|
-
<app-configurator />
|
|
1707
|
-
</div>
|
|
1708
|
-
</div>
|
|
1701
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.1", type: AppFloatingConfigurator, isStandalone: true, selector: "app-floating-configurator", ngImport: i0, template: `
|
|
1702
|
+
<div class="fixed flex gap-4 top-8 right-8">
|
|
1703
|
+
<button smzButton type="button" (click)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'fa-solid fa-moon' : 'fa-solid fa-sun'" severity="secondary"></button>
|
|
1704
|
+
<div class="relative">
|
|
1705
|
+
<button smzButton icon="fa-solid fa-palette" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true" type="button" rounded></button>
|
|
1706
|
+
<app-configurator />
|
|
1707
|
+
</div>
|
|
1708
|
+
</div>
|
|
1709
1709
|
`, 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
1710
|
}
|
|
1711
1711
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppFloatingConfigurator, decorators: [{
|
|
@@ -1713,14 +1713,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1713
1713
|
args: [{
|
|
1714
1714
|
selector: 'app-floating-configurator',
|
|
1715
1715
|
imports: [SmzButtonComponent, SmzStyleClassDirective, AppConfigurator],
|
|
1716
|
-
template: `
|
|
1717
|
-
<div class="fixed flex gap-4 top-8 right-8">
|
|
1718
|
-
<button smzButton type="button" (click)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'fa-solid fa-moon' : 'fa-solid fa-sun'" severity="secondary"></button>
|
|
1719
|
-
<div class="relative">
|
|
1720
|
-
<button smzButton icon="fa-solid fa-palette" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true" type="button" rounded></button>
|
|
1721
|
-
<app-configurator />
|
|
1722
|
-
</div>
|
|
1723
|
-
</div>
|
|
1716
|
+
template: `
|
|
1717
|
+
<div class="fixed flex gap-4 top-8 right-8">
|
|
1718
|
+
<button smzButton type="button" (click)="toggleDarkMode()" [rounded]="true" [icon]="isDarkTheme() ? 'fa-solid fa-moon' : 'fa-solid fa-sun'" severity="secondary"></button>
|
|
1719
|
+
<div class="relative">
|
|
1720
|
+
<button smzButton icon="fa-solid fa-palette" smzStyleClass="@next" enterFromClass="hidden" enterActiveClass="animate-scalein" leaveToClass="hidden" leaveActiveClass="animate-fadeout" [hideOnOutsideClick]="true" type="button" rounded></button>
|
|
1721
|
+
<app-configurator />
|
|
1722
|
+
</div>
|
|
1723
|
+
</div>
|
|
1724
1724
|
`
|
|
1725
1725
|
}]
|
|
1726
1726
|
}] });
|