sagittarius-admin-template 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +174 -2
- package/fesm2022/sagittarius-admin-template.mjs +399 -0
- package/fesm2022/sagittarius-admin-template.mjs.map +1 -0
- package/index.d.ts +203 -0
- package/package.json +56 -3
- package/styles/sagittarius-admin.scss +496 -0
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, inject, input, computed, signal, ViewContainerRef, ViewChild, Component, Injectable, Injector, DestroyRef, reflectComponentType, output, HostListener } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/material/button';
|
|
4
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
+
import * as i1 from '@angular/material/icon';
|
|
6
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
7
|
+
import * as i5 from '@angular/material/menu';
|
|
8
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
9
|
+
import * as i2$1 from '@angular/router';
|
|
10
|
+
import { RouterLink, Router, NavigationStart, RouterModule } from '@angular/router';
|
|
11
|
+
import * as i1$1 from '@angular/common';
|
|
12
|
+
import { PlatformLocation } from '@angular/common';
|
|
13
|
+
import { filter } from 'rxjs';
|
|
14
|
+
import * as i3 from '@angular/material/tooltip';
|
|
15
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
16
|
+
|
|
17
|
+
/** Anglické texty (predvolené). */
|
|
18
|
+
const SG_ADMIN_LABELS_EN = {
|
|
19
|
+
openMenu: 'Open menu',
|
|
20
|
+
closeMenu: 'Close menu',
|
|
21
|
+
expandMenu: 'Pin menu',
|
|
22
|
+
collapseMenu: 'Collapse menu',
|
|
23
|
+
userMenu: 'User menu',
|
|
24
|
+
drawerClose: 'Close',
|
|
25
|
+
drawerBack: 'Back',
|
|
26
|
+
drawerFullPage: 'Open as full page',
|
|
27
|
+
};
|
|
28
|
+
/** Slovenské texty. */
|
|
29
|
+
const SG_ADMIN_LABELS_SK = {
|
|
30
|
+
openMenu: 'Otvoriť menu',
|
|
31
|
+
closeMenu: 'Zavrieť menu',
|
|
32
|
+
expandMenu: 'Pripnúť menu',
|
|
33
|
+
collapseMenu: 'Zbaliť menu',
|
|
34
|
+
userMenu: 'Používateľské menu',
|
|
35
|
+
drawerClose: 'Zavrieť',
|
|
36
|
+
drawerBack: 'Späť',
|
|
37
|
+
drawerFullPage: 'Otvoriť na celej stránke',
|
|
38
|
+
};
|
|
39
|
+
/** Texty layoutu; default `SG_ADMIN_LABELS_EN`. Nastav cez `provideSgAdminLabels()`. */
|
|
40
|
+
const SG_ADMIN_LABELS = new InjectionToken('SG_ADMIN_LABELS', {
|
|
41
|
+
providedIn: 'root',
|
|
42
|
+
factory: () => SG_ADMIN_LABELS_EN,
|
|
43
|
+
});
|
|
44
|
+
/**
|
|
45
|
+
* Nastaví texty layoutu. Chýbajúce kľúče sa doplnia z angličtiny.
|
|
46
|
+
*
|
|
47
|
+
* ```ts
|
|
48
|
+
* providers: [provideSgAdminLabels(SG_ADMIN_LABELS_SK)]
|
|
49
|
+
* providers: [provideSgAdminLabels({ drawerClose: 'Schließen' })]
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
function provideSgAdminLabels(labels) {
|
|
53
|
+
return { provide: SG_ADMIN_LABELS, useValue: { ...SG_ADMIN_LABELS_EN, ...labels } };
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
class DrawerContent {
|
|
57
|
+
vc;
|
|
58
|
+
labels = inject(SG_ADMIN_LABELS);
|
|
59
|
+
pos = input(0, ...(ngDevMode ? [{ debugName: "pos" }] : []));
|
|
60
|
+
drawerRef = input.required(...(ngDevMode ? [{ debugName: "drawerRef" }] : []));
|
|
61
|
+
fullPageIcon = input('open_in_full', ...(ngDevMode ? [{ debugName: "fullPageIcon" }] : []));
|
|
62
|
+
/** Ak chýba, použije sa `SgAdminLabels.drawerFullPage`. */
|
|
63
|
+
fullPageLabelInput = input(undefined, ...(ngDevMode ? [{ debugName: "fullPageLabelInput", alias: 'fullPageLabel' }] : [{ alias: 'fullPageLabel' }]));
|
|
64
|
+
fullPageLabel = computed(() => this.fullPageLabelInput() ?? this.labels.drawerFullPage, ...(ngDevMode ? [{ debugName: "fullPageLabel" }] : []));
|
|
65
|
+
animating = signal(true, ...(ngDevMode ? [{ debugName: "animating" }] : []));
|
|
66
|
+
loadComponent(component, injector) {
|
|
67
|
+
this.vc.clear();
|
|
68
|
+
return this.vc.createComponent(component, { injector });
|
|
69
|
+
}
|
|
70
|
+
onAnimationEnd(event) {
|
|
71
|
+
// animationend bubble-uje aj z obsahu – reaguj len na vlastnú animáciu
|
|
72
|
+
if (event.target === event.currentTarget) {
|
|
73
|
+
this.animating.set(false);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
close() {
|
|
77
|
+
this.drawerRef().close();
|
|
78
|
+
}
|
|
79
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DrawerContent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
80
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: DrawerContent, isStandalone: true, selector: "lib-drawer-content", inputs: { pos: { classPropertyName: "pos", publicName: "pos", isSignal: true, isRequired: false, transformFunction: null }, drawerRef: { classPropertyName: "drawerRef", publicName: "drawerRef", isSignal: true, isRequired: true, transformFunction: null }, fullPageIcon: { classPropertyName: "fullPageIcon", publicName: "fullPageIcon", isSignal: true, isRequired: false, transformFunction: null }, fullPageLabelInput: { classPropertyName: "fullPageLabelInput", publicName: "fullPageLabel", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "vc", first: true, predicate: ["vc"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<div class=\"sg-admin-theme-drawer-wrapper\" [class.animating]=\"animating()\" (animationend)=\"onAnimationEnd($event)\">\n <div class=\"sg-admin-theme-drawer-header\">\n <div class=\"sg-admin-theme-drawer-close\">\n <button matIconButton (click)=\"close()\" [attr.aria-label]=\"pos() ? labels.drawerBack : labels.drawerClose\">\n <mat-icon>{{ pos() ? 'arrow_back' : 'close' }}</mat-icon>\n </button>\n </div>\n <div class=\"sg-admin-theme-drawer-title\">{{ drawerRef().title() }}</div>\n <div class=\"sg-admin-theme-drawer-actions\">\n @if (drawerRef().fullPageUrl(); as url) {\n <!-- routerLink = imperat\u00EDvna navig\u00E1cia -> DrawerComponent zavrie v\u0161etky vrstvy;\n replaceUrl nahrad\u00ED z\u00E1znam hist\u00F3rie drawera, tak\u017Ee Sp\u00E4\u0165 vedie na p\u00F4vodn\u00FA str\u00E1nku -->\n <a matIconButton class=\"sg-admin-theme-drawer-full-page\" [routerLink]=\"url\" [replaceUrl]=\"true\"\n [matTooltip]=\"fullPageLabel()\" [attr.aria-label]=\"fullPageLabel()\">\n <mat-icon>{{ fullPageIcon() }}</mat-icon>\n </a>\n }\n </div>\n </div>\n <div class=\"sg-admin-theme-drawer-body\">\n <ng-template #vc></ng-template>\n </div>\n</div>\n", styles: [":host{display:contents}*{box-sizing:border-box}.sg-admin-theme-drawer-wrapper{display:flex;flex-direction:column;position:absolute;inset:0;z-index:9;background:var(--sg-bg);animation:sg-drawer-in .22s cubic-bezier(.2,0,0,1)}.sg-admin-theme-drawer-header{min-height:var(--sg-drawer-header-height);max-height:var(--sg-drawer-header-height);display:flex;gap:8px;padding:0 12px 0 6px;align-items:center;overflow:hidden;background:var(--sg-surface);border-bottom:1px solid var(--sg-border);position:relative;z-index:1}.sg-admin-theme-drawer-header .sg-admin-theme-drawer-close button,.sg-admin-theme-drawer-header .sg-admin-theme-drawer-full-page{color:var(--sg-text-muted)}.sg-admin-theme-drawer-header .sg-admin-theme-drawer-title{flex-grow:1;font-size:16px;font-weight:600;color:var(--sg-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sg-admin-theme-drawer-header .sg-admin-theme-drawer-actions{display:flex;align-items:center;gap:8px}.sg-admin-theme-drawer-body{display:flex;flex-direction:column;flex-grow:1;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--sg-scrollbar) transparent}@keyframes sg-drawer-in{0%{transform:translate(24px);opacity:0}to{transform:none;opacity:1}}@media (prefers-reduced-motion: no-preference){.sg-admin-theme-drawer-wrapper.animating .sg-admin-theme-drawer-body{overflow:hidden}}@media (prefers-reduced-motion: reduce){.sg-admin-theme-drawer-wrapper{animation:none}}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
|
81
|
+
}
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DrawerContent, decorators: [{
|
|
83
|
+
type: Component,
|
|
84
|
+
args: [{ selector: 'lib-drawer-content', imports: [
|
|
85
|
+
MatIconModule,
|
|
86
|
+
MatButtonModule,
|
|
87
|
+
MatTooltipModule,
|
|
88
|
+
RouterLink,
|
|
89
|
+
], template: "<div class=\"sg-admin-theme-drawer-wrapper\" [class.animating]=\"animating()\" (animationend)=\"onAnimationEnd($event)\">\n <div class=\"sg-admin-theme-drawer-header\">\n <div class=\"sg-admin-theme-drawer-close\">\n <button matIconButton (click)=\"close()\" [attr.aria-label]=\"pos() ? labels.drawerBack : labels.drawerClose\">\n <mat-icon>{{ pos() ? 'arrow_back' : 'close' }}</mat-icon>\n </button>\n </div>\n <div class=\"sg-admin-theme-drawer-title\">{{ drawerRef().title() }}</div>\n <div class=\"sg-admin-theme-drawer-actions\">\n @if (drawerRef().fullPageUrl(); as url) {\n <!-- routerLink = imperat\u00EDvna navig\u00E1cia -> DrawerComponent zavrie v\u0161etky vrstvy;\n replaceUrl nahrad\u00ED z\u00E1znam hist\u00F3rie drawera, tak\u017Ee Sp\u00E4\u0165 vedie na p\u00F4vodn\u00FA str\u00E1nku -->\n <a matIconButton class=\"sg-admin-theme-drawer-full-page\" [routerLink]=\"url\" [replaceUrl]=\"true\"\n [matTooltip]=\"fullPageLabel()\" [attr.aria-label]=\"fullPageLabel()\">\n <mat-icon>{{ fullPageIcon() }}</mat-icon>\n </a>\n }\n </div>\n </div>\n <div class=\"sg-admin-theme-drawer-body\">\n <ng-template #vc></ng-template>\n </div>\n</div>\n", styles: [":host{display:contents}*{box-sizing:border-box}.sg-admin-theme-drawer-wrapper{display:flex;flex-direction:column;position:absolute;inset:0;z-index:9;background:var(--sg-bg);animation:sg-drawer-in .22s cubic-bezier(.2,0,0,1)}.sg-admin-theme-drawer-header{min-height:var(--sg-drawer-header-height);max-height:var(--sg-drawer-header-height);display:flex;gap:8px;padding:0 12px 0 6px;align-items:center;overflow:hidden;background:var(--sg-surface);border-bottom:1px solid var(--sg-border);position:relative;z-index:1}.sg-admin-theme-drawer-header .sg-admin-theme-drawer-close button,.sg-admin-theme-drawer-header .sg-admin-theme-drawer-full-page{color:var(--sg-text-muted)}.sg-admin-theme-drawer-header .sg-admin-theme-drawer-title{flex-grow:1;font-size:16px;font-weight:600;color:var(--sg-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sg-admin-theme-drawer-header .sg-admin-theme-drawer-actions{display:flex;align-items:center;gap:8px}.sg-admin-theme-drawer-body{display:flex;flex-direction:column;flex-grow:1;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--sg-scrollbar) transparent}@keyframes sg-drawer-in{0%{transform:translate(24px);opacity:0}to{transform:none;opacity:1}}@media (prefers-reduced-motion: no-preference){.sg-admin-theme-drawer-wrapper.animating .sg-admin-theme-drawer-body{overflow:hidden}}@media (prefers-reduced-motion: reduce){.sg-admin-theme-drawer-wrapper{animation:none}}\n"] }]
|
|
90
|
+
}], propDecorators: { vc: [{
|
|
91
|
+
type: ViewChild,
|
|
92
|
+
args: ['vc', { read: ViewContainerRef, static: true }]
|
|
93
|
+
}] } });
|
|
94
|
+
|
|
95
|
+
class DrawerService {
|
|
96
|
+
location;
|
|
97
|
+
host;
|
|
98
|
+
app;
|
|
99
|
+
constructor(location) {
|
|
100
|
+
this.location = location;
|
|
101
|
+
}
|
|
102
|
+
setHost(component, app) {
|
|
103
|
+
this.host = component;
|
|
104
|
+
this.app = app;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Otvorí komponent v draweri nad obsahom. Každé ďalšie volanie pridá novú vrstvu.
|
|
108
|
+
* Otvorenie pridá záznam do histórie, takže tlačidlo Späť v prehliadači zatvorí vrchnú vrstvu.
|
|
109
|
+
*
|
|
110
|
+
* @param data vstupy komponentu (signal `input()` aj bežné properties)
|
|
111
|
+
*/
|
|
112
|
+
open(component, data, options) {
|
|
113
|
+
if (!this.host || !this.app) {
|
|
114
|
+
throw new Error('Drawer host not initialized - <lib-sagittarius-admin> must be rendered');
|
|
115
|
+
}
|
|
116
|
+
const { component: compRef, drawerRef } = this.host.loadComponent(component, data, options);
|
|
117
|
+
this.app.openDrawer();
|
|
118
|
+
this.location.go(this.location.path(true));
|
|
119
|
+
return { componentInstance: compRef.instance, drawerRef, close: () => drawerRef.close() };
|
|
120
|
+
}
|
|
121
|
+
/** Zatvorí vrchnú vrstvu drawera. */
|
|
122
|
+
closeTop() {
|
|
123
|
+
this.location.back();
|
|
124
|
+
}
|
|
125
|
+
/** Zatvorí všetky vrstvy (bez práce s históriou). */
|
|
126
|
+
closeAll() {
|
|
127
|
+
this.host?.closeAll();
|
|
128
|
+
}
|
|
129
|
+
/** @internal volá DrawerComponent, keď zanikne posledná vrstva */
|
|
130
|
+
close() {
|
|
131
|
+
this.app?.closeDrawer();
|
|
132
|
+
}
|
|
133
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DrawerService, deps: [{ token: i1$1.Location }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
134
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DrawerService, providedIn: 'root' });
|
|
135
|
+
}
|
|
136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DrawerService, decorators: [{
|
|
137
|
+
type: Injectable,
|
|
138
|
+
args: [{
|
|
139
|
+
providedIn: 'root'
|
|
140
|
+
}]
|
|
141
|
+
}], ctorParameters: () => [{ type: i1$1.Location }] });
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Referencia na otvorený drawer. Komponent zobrazený v draweri ju získa cez `inject(DrawerRef)`.
|
|
145
|
+
*/
|
|
146
|
+
class DrawerRef {
|
|
147
|
+
closeFn;
|
|
148
|
+
title = signal('', ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
149
|
+
/** URL samostatnej stránky; ak je nastavená, hlavička drawera zobrazí ikonu na jej otvorenie. */
|
|
150
|
+
fullPageUrl = signal(null, ...(ngDevMode ? [{ debugName: "fullPageUrl" }] : []));
|
|
151
|
+
constructor(closeFn) {
|
|
152
|
+
this.closeFn = closeFn;
|
|
153
|
+
}
|
|
154
|
+
/** Zatvorí tento drawer (krok späť v histórii prehliadača). */
|
|
155
|
+
close() {
|
|
156
|
+
this.closeFn();
|
|
157
|
+
}
|
|
158
|
+
setTitle(title) {
|
|
159
|
+
this.title.set(title);
|
|
160
|
+
}
|
|
161
|
+
/** Nastaví (alebo `null` = skryje) odkaz na samostatnú stránku v hlavičke drawera. */
|
|
162
|
+
setFullPageUrl(url) {
|
|
163
|
+
this.fullPageUrl.set(url);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
class DrawerComponent {
|
|
168
|
+
vc;
|
|
169
|
+
drawerService = inject(DrawerService);
|
|
170
|
+
injector = inject(Injector);
|
|
171
|
+
layers = [];
|
|
172
|
+
constructor() {
|
|
173
|
+
const location = inject(PlatformLocation);
|
|
174
|
+
const destroyRef = inject(DestroyRef);
|
|
175
|
+
// Späť v prehliadači zatvorí vrchnú vrstvu
|
|
176
|
+
const unlisten = location.onPopState(() => this.close());
|
|
177
|
+
// Navigácia v aplikácii (napr. klik v menu) zatvorí všetky vrstvy
|
|
178
|
+
const sub = inject(Router, { optional: true })?.events
|
|
179
|
+
.pipe(filter((e) => e instanceof NavigationStart && e.navigationTrigger === 'imperative'))
|
|
180
|
+
.subscribe(() => this.closeAll());
|
|
181
|
+
destroyRef.onDestroy(() => {
|
|
182
|
+
unlisten();
|
|
183
|
+
sub?.unsubscribe();
|
|
184
|
+
this.layers.forEach(l => l.wrapper.destroy());
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
close() {
|
|
188
|
+
const layer = this.layers.pop();
|
|
189
|
+
if (!layer) {
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
layer.wrapper.destroy();
|
|
193
|
+
if (!this.layers.length) {
|
|
194
|
+
this.drawerService.close();
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
closeAll() {
|
|
198
|
+
if (!this.layers.length) {
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
while (this.layers.length) {
|
|
202
|
+
this.layers.pop().wrapper.destroy();
|
|
203
|
+
}
|
|
204
|
+
this.drawerService.close();
|
|
205
|
+
}
|
|
206
|
+
loadComponent(component, data, options) {
|
|
207
|
+
const drawerRef = new DrawerRef(() => window.history.back());
|
|
208
|
+
drawerRef.setTitle(options?.title ?? '');
|
|
209
|
+
drawerRef.setFullPageUrl(options?.fullPageUrl ?? null);
|
|
210
|
+
const wrapper = this.vc.createComponent(DrawerContent);
|
|
211
|
+
wrapper.setInput('pos', this.layers.length);
|
|
212
|
+
wrapper.setInput('drawerRef', drawerRef);
|
|
213
|
+
if (options?.fullPageIcon) {
|
|
214
|
+
wrapper.setInput('fullPageIcon', options.fullPageIcon);
|
|
215
|
+
}
|
|
216
|
+
if (options?.fullPageLabel) {
|
|
217
|
+
wrapper.setInput('fullPageLabel', options.fullPageLabel);
|
|
218
|
+
}
|
|
219
|
+
const injector = Injector.create({
|
|
220
|
+
providers: [{ provide: DrawerRef, useValue: drawerRef }],
|
|
221
|
+
parent: this.injector,
|
|
222
|
+
});
|
|
223
|
+
const comp = wrapper.instance.loadComponent(component, injector);
|
|
224
|
+
if (data) {
|
|
225
|
+
const inputs = new Set(reflectComponentType(component)?.inputs.map(i => i.templateName) ?? []);
|
|
226
|
+
for (const [key, value] of Object.entries(data)) {
|
|
227
|
+
if (inputs.has(key)) {
|
|
228
|
+
comp.setInput(key, value);
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
comp.instance[key] = value;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
// Spätná kompatibilita: komponent bez vlastnej metódy close() dostane close z drawera
|
|
235
|
+
if (!('close' in comp.instance)) {
|
|
236
|
+
comp.instance['close'] = () => drawerRef.close();
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
this.layers.push({ wrapper, component: comp, drawerRef });
|
|
240
|
+
return { component: comp, drawerRef };
|
|
241
|
+
}
|
|
242
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
243
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: DrawerComponent, isStandalone: true, selector: "lib-drawer-component", viewQueries: [{ propertyName: "vc", first: true, predicate: ["vc"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<ng-template #vc></ng-template>\n", styles: [""] });
|
|
244
|
+
}
|
|
245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DrawerComponent, decorators: [{
|
|
246
|
+
type: Component,
|
|
247
|
+
args: [{ selector: 'lib-drawer-component', imports: [], template: "<ng-template #vc></ng-template>\n" }]
|
|
248
|
+
}], ctorParameters: () => [], propDecorators: { vc: [{
|
|
249
|
+
type: ViewChild,
|
|
250
|
+
args: ['vc', { read: ViewContainerRef, static: true }]
|
|
251
|
+
}] } });
|
|
252
|
+
|
|
253
|
+
const MOBILE_BREAKPOINT = 800;
|
|
254
|
+
const COLLAPSED_STORAGE_KEY = 'sg-admin-sidebar-collapsed';
|
|
255
|
+
class SagittariusAdmin {
|
|
256
|
+
drawerService;
|
|
257
|
+
/** Názov aplikácie v hlavičke sidebaru. */
|
|
258
|
+
appTitle = input('Sagittarius', ...(ngDevMode ? [{ debugName: "appTitle" }] : []));
|
|
259
|
+
/** Skratka zobrazená v zbalenom sidebare (default: iniciály z `appTitle`). */
|
|
260
|
+
appShortTitle = input(...(ngDevMode ? [undefined, { debugName: "appShortTitle" }] : []));
|
|
261
|
+
/** URL loga; bez neho sa zobrazí farebný štvorec so skratkou. */
|
|
262
|
+
logoUrl = input(...(ngDevMode ? [undefined, { debugName: "logoUrl" }] : []));
|
|
263
|
+
/** Routa, kam vedie klik na logo. */
|
|
264
|
+
homeRoute = input('/', ...(ngDevMode ? [{ debugName: "homeRoute" }] : []));
|
|
265
|
+
menuItems = input([], ...(ngDevMode ? [{ debugName: "menuItems" }] : []));
|
|
266
|
+
user = input(null, ...(ngDevMode ? [{ debugName: "user" }] : []));
|
|
267
|
+
userMenuItems = input([], ...(ngDevMode ? [{ debugName: "userMenuItems" }] : []));
|
|
268
|
+
/** Pamätať si zbalenie sidebaru v localStorage. */
|
|
269
|
+
persistSidebarState = input(true, ...(ngDevMode ? [{ debugName: "persistSidebarState" }] : []));
|
|
270
|
+
/** Emituje sa pri kliknutí na položku user menu (popri jej `action`). */
|
|
271
|
+
userMenuItemClick = output();
|
|
272
|
+
/** Texty layoutu (`provideSgAdminLabels`). */
|
|
273
|
+
labels = inject(SG_ADMIN_LABELS);
|
|
274
|
+
isHandset = signal(false, ...(ngDevMode ? [{ debugName: "isHandset" }] : []));
|
|
275
|
+
sidebarOpen = signal(false, ...(ngDevMode ? [{ debugName: "sidebarOpen" }] : []));
|
|
276
|
+
sidebarCollapsed = signal(false, ...(ngDevMode ? [{ debugName: "sidebarCollapsed" }] : []));
|
|
277
|
+
hovered = signal(false, ...(ngDevMode ? [{ debugName: "hovered" }] : []));
|
|
278
|
+
drawerOpen = signal(false, ...(ngDevMode ? [{ debugName: "drawerOpen" }] : []));
|
|
279
|
+
noHover = false;
|
|
280
|
+
/** Zbalenie platí len na desktope, na mobile je sidebar vždy v plnej šírke. */
|
|
281
|
+
collapsed = computed(() => this.sidebarCollapsed() && !this.isHandset(), ...(ngDevMode ? [{ debugName: "collapsed" }] : []));
|
|
282
|
+
shortTitle = computed(() => this.appShortTitle() ?? initials(this.appTitle()), ...(ngDevMode ? [{ debugName: "shortTitle" }] : []));
|
|
283
|
+
userInitials = computed(() => {
|
|
284
|
+
const user = this.user();
|
|
285
|
+
return user ? user.initials ?? initials(user.name) : '';
|
|
286
|
+
}, ...(ngDevMode ? [{ debugName: "userInitials" }] : []));
|
|
287
|
+
drawerComponent;
|
|
288
|
+
constructor(drawerService) {
|
|
289
|
+
this.drawerService = drawerService;
|
|
290
|
+
}
|
|
291
|
+
ngOnInit() {
|
|
292
|
+
if (this.persistSidebarState()) {
|
|
293
|
+
this.sidebarCollapsed.set(readStorage(COLLAPSED_STORAGE_KEY) === 'true');
|
|
294
|
+
}
|
|
295
|
+
this.calculateWidth();
|
|
296
|
+
}
|
|
297
|
+
ngAfterViewInit() {
|
|
298
|
+
this.drawerService.setHost(this.drawerComponent, this);
|
|
299
|
+
}
|
|
300
|
+
onResize() {
|
|
301
|
+
this.calculateWidth();
|
|
302
|
+
}
|
|
303
|
+
openSidebar() {
|
|
304
|
+
this.sidebarOpen.set(true);
|
|
305
|
+
}
|
|
306
|
+
closeSidebar() {
|
|
307
|
+
this.sidebarOpen.set(false);
|
|
308
|
+
}
|
|
309
|
+
toggleSidebar() {
|
|
310
|
+
this.sidebarCollapsed.update(v => !v);
|
|
311
|
+
if (this.persistSidebarState()) {
|
|
312
|
+
writeStorage(COLLAPSED_STORAGE_KEY, String(this.sidebarCollapsed()));
|
|
313
|
+
}
|
|
314
|
+
// Po prepnutí krátko ignorujeme hover, aby sa sidebar hneď znova nerozbalil
|
|
315
|
+
this.noHover = true;
|
|
316
|
+
this.hovered.set(false);
|
|
317
|
+
setTimeout(() => this.noHover = false, 300);
|
|
318
|
+
}
|
|
319
|
+
setHovered(value) {
|
|
320
|
+
if (!this.noHover) {
|
|
321
|
+
this.hovered.set(value);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
onNavigate() {
|
|
325
|
+
if (this.isHandset()) {
|
|
326
|
+
this.closeSidebar();
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
onUserMenuItem(item) {
|
|
330
|
+
item.action?.();
|
|
331
|
+
this.userMenuItemClick.emit(item);
|
|
332
|
+
}
|
|
333
|
+
openDrawer() {
|
|
334
|
+
this.drawerOpen.set(true);
|
|
335
|
+
}
|
|
336
|
+
closeDrawer() {
|
|
337
|
+
this.drawerOpen.set(false);
|
|
338
|
+
}
|
|
339
|
+
calculateWidth() {
|
|
340
|
+
const handset = window.innerWidth <= MOBILE_BREAKPOINT;
|
|
341
|
+
this.isHandset.set(handset);
|
|
342
|
+
if (!handset) {
|
|
343
|
+
this.sidebarOpen.set(false);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SagittariusAdmin, deps: [{ token: DrawerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
347
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: SagittariusAdmin, isStandalone: true, selector: "lib-sagittarius-admin", inputs: { appTitle: { classPropertyName: "appTitle", publicName: "appTitle", isSignal: true, isRequired: false, transformFunction: null }, appShortTitle: { classPropertyName: "appShortTitle", publicName: "appShortTitle", isSignal: true, isRequired: false, transformFunction: null }, logoUrl: { classPropertyName: "logoUrl", publicName: "logoUrl", isSignal: true, isRequired: false, transformFunction: null }, homeRoute: { classPropertyName: "homeRoute", publicName: "homeRoute", isSignal: true, isRequired: false, transformFunction: null }, menuItems: { classPropertyName: "menuItems", publicName: "menuItems", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: false, transformFunction: null }, userMenuItems: { classPropertyName: "userMenuItems", publicName: "userMenuItems", isSignal: true, isRequired: false, transformFunction: null }, persistSidebarState: { classPropertyName: "persistSidebarState", publicName: "persistSidebarState", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { userMenuItemClick: "userMenuItemClick" }, host: { listeners: { "window:resize": "onResize()" } }, viewQueries: [{ propertyName: "drawerComponent", first: true, predicate: DrawerComponent, descendants: true }], ngImport: i0, template: "<div class=\"sg-admin-theme\" [class.isHandset]=\"isHandset()\" [class.isDesktop]=\"!isHandset()\">\n <aside class=\"sg-admin-theme-sidebar\" [class.open]=\"sidebarOpen()\" [class.collapsed]=\"collapsed()\"\n [class.expanded]=\"!collapsed()\">\n <div class=\"sg-admin-theme-sidebar-wrapper\" [class.hover]=\"hovered()\" [class.no-hover]=\"!hovered()\"\n (mouseenter)=\"setHovered(true)\" (mouseleave)=\"setHovered(false)\">\n <div class=\"sg-admin-theme-sidebar-header\">\n <a class=\"sg-admin-theme-brand\" [routerLink]=\"homeRoute()\" (click)=\"onNavigate()\">\n <span class=\"sg-admin-theme-brand-mark\">\n @if (logoUrl()) {\n <img [src]=\"logoUrl()\" alt=\"\">\n } @else {\n {{ shortTitle() }}\n }\n </span>\n <span class=\"sg-admin-theme-sidebar-header-logo-lg\">{{ appTitle() }}</span>\n </a>\n <button matIconButton class=\"mobile-only sg-admin-theme-sidebar-header-menu-button\" (click)=\"closeSidebar()\"\n [attr.aria-label]=\"labels.closeMenu\">\n <mat-icon>close</mat-icon>\n </button>\n @if (collapsed()) {\n @if (hovered()) {\n <button matIconButton class=\"pc-only sg-admin-theme-sidebar-header-menu-button\" (click)=\"toggleSidebar()\"\n [attr.aria-label]=\"labels.expandMenu\">\n <mat-icon>keyboard_double_arrow_right</mat-icon>\n </button>\n }\n } @else {\n <button matIconButton class=\"pc-only sg-admin-theme-sidebar-header-menu-button\" (click)=\"toggleSidebar()\"\n [attr.aria-label]=\"labels.collapseMenu\">\n <mat-icon>keyboard_double_arrow_left</mat-icon>\n </button>\n }\n </div>\n <div class=\"sg-admin-theme-sidebar-body\">\n @if (user(); as u) {\n <div class=\"sg-admin-theme-sidebar-profile\">\n <div class=\"sg-admin-theme-sidebar-profile-header\">\n <div class=\"sg-admin-theme-sidebar-profile-header-avatar\">\n @if (u.avatarUrl) {\n <img [src]=\"u.avatarUrl\" alt=\"\">\n } @else {\n {{ userInitials() }}\n }\n </div>\n </div>\n <div class=\"sg-admin-theme-sidebar-profile-footer\">\n <div class=\"sg-admin-theme-sidebar-profile-footer-name\">{{ u.name }}</div>\n @if (u.subtitle) {\n <div class=\"sg-admin-theme-sidebar-profile-footer-subtitle\">{{ u.subtitle }}</div>\n }\n </div>\n </div>\n }\n <nav>\n @for (item of menuItems(); track $index) {\n @if (item.spacer) {\n <div class=\"sg-admin-theme-sidebar-nav-item-spacer\">\n <span class=\"sg-admin-theme-sidebar-nav-item-icon\"></span>\n <span class=\"sg-admin-theme-sidebar-nav-item-label\">{{ item.label }}</span>\n </div>\n } @else {\n <a class=\"sg-admin-theme-sidebar-nav-item\" [routerLink]=\"item.route\" routerLinkActive=\"active\"\n [routerLinkActiveOptions]=\"{ exact: !!item.exact }\" (click)=\"onNavigate()\" [attr.title]=\"item.label\">\n <span class=\"sg-admin-theme-sidebar-nav-item-wrapper\">\n <mat-icon class=\"sg-admin-theme-sidebar-nav-item-icon\">{{ item.icon || 'circle' }}</mat-icon>\n <span class=\"sg-admin-theme-sidebar-nav-item-label\">{{ item.label }}</span>\n </span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"sg-admin-theme-sidebar-nav-item-badge\">{{ item.badge }}</span>\n }\n </a>\n }\n }\n </nav>\n <div class=\"sg-admin-theme-sidebar-bottom\">\n <ng-content select=\"[sg-admin-sidebar-bottom]\"></ng-content>\n </div>\n </div>\n </div>\n </aside>\n <div class=\"sg-admin-theme-body\">\n <header class=\"sg-admin-theme-header\">\n <div class=\"sg-admin-theme-header-left-box\">\n <button matIconButton class=\"mobile-only sg-admin-theme-header-left-box-menu-button\" (click)=\"openSidebar()\"\n [attr.aria-label]=\"labels.openMenu\">\n <mat-icon>menu</mat-icon>\n </button>\n <a class=\"mobile-only sg-admin-theme-header-logo-lg\" [routerLink]=\"homeRoute()\">{{ appTitle() }}</a>\n <ng-content select=\"[sg-admin-header-left]\"></ng-content>\n </div>\n <div class=\"sg-admin-theme-header-middle-box\">\n <ng-content select=\"[sg-admin-header-middle]\"></ng-content>\n <ng-content select=\"[sg-admin-header]\"></ng-content>\n </div>\n <div class=\"sg-admin-theme-header-right-box\">\n <ng-content select=\"[sg-admin-header-actions]\"></ng-content>\n @if (user(); as u) {\n <button class=\"sg-admin-theme-header-user\" [matMenuTriggerFor]=\"userMenu\" [attr.aria-label]=\"labels.userMenu\">\n <span class=\"sg-admin-theme-header-user-avatar\">\n @if (u.avatarUrl) {\n <img [src]=\"u.avatarUrl\" alt=\"\">\n } @else {\n {{ userInitials() }}\n }\n </span>\n <span class=\"sg-admin-theme-header-user-name pc-only\">{{ u.name }}</span>\n <mat-icon class=\"pc-only\">expand_more</mat-icon>\n </button>\n <mat-menu #userMenu=\"matMenu\" xPosition=\"before\" class=\"sg-admin-user-menu\">\n <div class=\"sg-admin-user-menu-header\">\n <div class=\"sg-admin-user-menu-name\">{{ u.name }}</div>\n @if (u.subtitle) {\n <div class=\"sg-admin-user-menu-subtitle\">{{ u.subtitle }}</div>\n }\n </div>\n @for (item of userMenuItems(); track $index) {\n @if (item.divider) {\n <div class=\"sg-admin-user-menu-divider\"></div>\n } @else if (item.route) {\n <a mat-menu-item [routerLink]=\"item.route\" [disabled]=\"!!item.disabled\" (click)=\"onUserMenuItem(item)\">\n @if (item.icon) { <mat-icon>{{ item.icon }}</mat-icon> }\n <span>{{ item.label }}</span>\n </a>\n } @else {\n <button mat-menu-item [disabled]=\"!!item.disabled\" (click)=\"onUserMenuItem(item)\">\n @if (item.icon) { <mat-icon>{{ item.icon }}</mat-icon> }\n <span>{{ item.label }}</span>\n </button>\n }\n }\n </mat-menu>\n }\n </div>\n </header>\n <main class=\"sg-admin-theme-main\">\n <div class=\"sg-admin-theme-drawer\" [class.closed]=\"!drawerOpen()\">\n <lib-drawer-component></lib-drawer-component>\n </div>\n <div class=\"sg-admin-theme-content\" [attr.inert]=\"drawerOpen() ? '' : null\">\n <ng-content></ng-content>\n </div>\n </main>\n <footer class=\"sg-admin-theme-footer\">\n <ng-content select=\"[sg-admin-footer]\">\n <span>{{ appTitle() }}</span>\n </ng-content>\n </footer>\n </div>\n</div>\n", styles: [":host{display:block}*{box-sizing:border-box}.sg-admin-theme{display:flex;width:100vw;height:100vh;height:100dvh;font-family:var(--sg-font);color:var(--sg-text);background:var(--sg-bg)}.sg-admin-theme .sg-admin-theme-sidebar{display:flex;height:100%;flex-direction:column;flex-shrink:0;width:var(--sg-sidebar-width);position:relative;z-index:3;color-scheme:dark}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-wrapper{display:flex;height:100%;flex-direction:column;width:var(--sg-sidebar-width);position:relative;z-index:3;background:var(--sg-sidebar-bg);color:var(--sg-sidebar-text);border-right:1px solid var(--sg-sidebar-border)}.sg-admin-theme .sg-admin-theme-sidebar.collapsed{width:var(--sg-sidebar-collapsed-width)}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper{width:var(--sg-sidebar-collapsed-width);transition:width .25s cubic-bezier(.2,0,0,1),box-shadow .25s;position:absolute;z-index:9}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.hover{width:var(--sg-sidebar-width);box-shadow:var(--sg-shadow-lg)}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-header{padding:0;justify-content:center}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-header .sg-admin-theme-sidebar-header-logo-lg{display:none}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-profile{padding:16px 0}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-profile .sg-admin-theme-sidebar-profile-header-avatar{width:36px;height:36px;font-size:13px}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-profile .sg-admin-theme-sidebar-profile-footer{display:none}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item-spacer{justify-content:center;padding:12px 0 8px}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item-spacer .sg-admin-theme-sidebar-nav-item-icon{display:block}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item-spacer .sg-admin-theme-sidebar-nav-item-label{display:none}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item{justify-content:center;padding:0}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item .sg-admin-theme-sidebar-nav-item-wrapper .sg-admin-theme-sidebar-nav-item-label,.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item .sg-admin-theme-sidebar-nav-item-badge{display:none}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-header{display:flex;width:100%;flex-direction:row;min-height:var(--sg-header-height);max-height:var(--sg-header-height);padding:0 8px 0 14px;justify-content:space-between;align-items:center;overflow:hidden;border-bottom:1px solid var(--sg-sidebar-border);transition:padding .2s ease-in-out}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-header .sg-admin-theme-sidebar-header-menu-button{color:var(--sg-sidebar-text-muted);flex-shrink:0}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-brand{display:flex;align-items:center;gap:12px;min-width:0;color:var(--sg-sidebar-text-strong);text-decoration:none}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-brand .sg-admin-theme-brand-mark{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;border-radius:var(--sg-radius-sm);background:var(--sg-sidebar-accent);color:var(--sg-sidebar-accent-contrast);font-weight:700;font-size:14px;letter-spacing:.02em;overflow:hidden}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-brand .sg-admin-theme-brand-mark img{width:100%;height:100%;object-fit:contain}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-brand .sg-admin-theme-sidebar-header-logo-lg{font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body{display:flex;width:100%;flex-grow:1;flex-direction:column;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--sg-sidebar-scrollbar) transparent}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav{display:flex;flex-direction:column;gap:2px;padding:8px 10px}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item-spacer{display:flex;align-items:center;padding:16px 12px 6px;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--sg-sidebar-text-muted);white-space:nowrap}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item-spacer .sg-admin-theme-sidebar-nav-item-icon{display:none;width:18px;height:1px;background:var(--sg-sidebar-border)}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item{position:relative;width:100%;min-height:40px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 10px 0 12px;border-radius:var(--sg-radius-sm);color:var(--sg-sidebar-text);text-decoration:none;white-space:nowrap;transition:background-color .15s,color .15s}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item:hover{background:var(--sg-sidebar-hover);color:var(--sg-sidebar-text-strong)}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item:focus-visible{outline:2px solid var(--sg-sidebar-accent);outline-offset:-2px}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item.active{background:var(--sg-sidebar-active-bg);color:var(--sg-sidebar-text-strong)}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item.active:before{content:\"\";position:absolute;left:-10px;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:var(--sg-sidebar-accent)}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item.active .sg-admin-theme-sidebar-nav-item-icon{color:var(--sg-sidebar-accent)}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item .sg-admin-theme-sidebar-nav-item-wrapper{display:flex;flex-direction:row;align-items:center;gap:14px;min-width:0}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item .sg-admin-theme-sidebar-nav-item-wrapper .sg-admin-theme-sidebar-nav-item-icon{flex-shrink:0;font-size:20px;width:20px;height:20px}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item .sg-admin-theme-sidebar-nav-item-wrapper .sg-admin-theme-sidebar-nav-item-label{font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item .sg-admin-theme-sidebar-nav-item-badge{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--sg-sidebar-accent);color:var(--sg-sidebar-accent-contrast);font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:center}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body .sg-admin-theme-sidebar-bottom{margin-top:auto}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-profile{padding:20px 12px 12px;display:flex;flex-direction:column;align-items:center;width:100%;transition:padding .2s}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-profile .sg-admin-theme-sidebar-profile-header{display:flex;justify-content:center;width:100%}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-profile .sg-admin-theme-sidebar-profile-header .sg-admin-theme-sidebar-profile-header-avatar{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:hidden;font-weight:600;font-size:18px;color:var(--sg-sidebar-accent-contrast);background:linear-gradient(135deg,var(--sg-sidebar-accent),var(--sg-sidebar-accent-2));box-shadow:0 0 0 3px var(--sg-sidebar-bg),0 0 0 4px var(--sg-sidebar-border);transition:width .2s,height .2s}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-profile .sg-admin-theme-sidebar-profile-header .sg-admin-theme-sidebar-profile-header-avatar img{width:100%;height:100%;object-fit:cover}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-profile .sg-admin-theme-sidebar-profile-footer{display:flex;flex-direction:column;align-items:center;width:100%;padding-top:10px;text-align:center;white-space:nowrap}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-profile .sg-admin-theme-sidebar-profile-footer .sg-admin-theme-sidebar-profile-footer-name{font-weight:600;color:var(--sg-sidebar-text-strong)}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-profile .sg-admin-theme-sidebar-profile-footer .sg-admin-theme-sidebar-profile-footer-subtitle{font-size:12px;color:var(--sg-sidebar-text-muted)}.sg-admin-theme .sg-admin-theme-body{flex-grow:1;min-width:0;height:100%;display:flex;flex-direction:column}.sg-admin-theme .sg-admin-theme-header{width:100%;min-height:var(--sg-header-height);max-height:var(--sg-header-height);display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 16px 0 20px;position:relative;z-index:2;background:var(--sg-header-bg);border-bottom:1px solid var(--sg-border)}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-left-box,.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-middle-box,.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-right-box{display:flex;flex-direction:row;align-items:center;gap:8px;height:100%;min-width:0}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-middle-box{flex:1 1 auto;justify-content:center}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-left-box-menu-button{color:var(--sg-text)}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-logo-lg{font-weight:600;font-size:16px;color:var(--sg-text);text-decoration:none;white-space:nowrap}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-right-box{color:var(--sg-text-muted)}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-user{display:flex;align-items:center;gap:8px;height:40px;padding:0 6px 0 4px;border:0;border-radius:20px;background:transparent;color:var(--sg-text);font:inherit;cursor:pointer;transition:background-color .15s}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-user:hover,.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-user[aria-expanded=true]{background:var(--sg-hover)}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-user:focus-visible{outline:2px solid var(--sg-primary)}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-user .sg-admin-theme-header-user-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:12px;font-weight:600;color:var(--sg-on-primary);background:var(--sg-primary)}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-user .sg-admin-theme-header-user-avatar img{width:100%;height:100%;object-fit:cover}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-user .sg-admin-theme-header-user-name{font-weight:500;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-user mat-icon{color:var(--sg-text-muted);font-size:20px;width:20px;height:20px}.sg-admin-theme .sg-admin-theme-main{width:100%;flex-grow:1;min-height:0;display:flex;flex-direction:column;position:relative;overflow:auto;background:var(--sg-bg)}.sg-admin-theme .sg-admin-theme-main .sg-admin-theme-drawer{position:absolute;inset:0 0 0 auto;width:100%;height:100%;display:flex;flex-direction:column;z-index:1;background:var(--sg-bg);overflow:hidden}.sg-admin-theme .sg-admin-theme-main .sg-admin-theme-drawer.closed{width:0!important;overflow:hidden}.sg-admin-theme .sg-admin-theme-main .sg-admin-theme-content{width:100%;flex-grow:1;display:flex;flex-direction:column;position:relative;z-index:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--sg-scrollbar) transparent}.sg-admin-theme .sg-admin-theme-footer{width:100%;display:flex;gap:12px;min-height:var(--sg-footer-height);max-height:var(--sg-footer-height);padding:0 20px;justify-content:space-between;align-items:center;overflow:hidden;font-size:12px;color:var(--sg-text-muted);background:var(--sg-surface);border-top:1px solid var(--sg-border)}.mobile-only{display:none!important}.pc-only{display:flex!important}@media screen and (max-width: 800px){.mobile-only{display:flex!important}.pc-only{display:none!important}.sg-admin-theme{height:auto;width:100%}.sg-admin-theme .sg-admin-theme-header{position:sticky;top:0;padding:0 8px 0 4px}.sg-admin-theme .sg-admin-theme-sidebar{width:0;height:100%;overflow:hidden;z-index:99999;position:fixed;display:flex;transition:width .3s cubic-bezier(.2,0,0,1)}.sg-admin-theme .sg-admin-theme-sidebar.open,.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-wrapper{width:100%}.sg-admin-theme .sg-admin-theme-body{min-height:100vh;min-height:100dvh}.sg-admin-theme .sg-admin-theme-main{overflow:visible}.sg-admin-theme .sg-admin-theme-main .sg-admin-theme-drawer{width:100%;position:fixed;top:0;z-index:10}}@media (prefers-reduced-motion: reduce){.sg-admin-theme *{transition:none!important}}\n"], dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i2$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i5.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i5.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i5.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "component", type: DrawerComponent, selector: "lib-drawer-component" }] });
|
|
348
|
+
}
|
|
349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SagittariusAdmin, decorators: [{
|
|
350
|
+
type: Component,
|
|
351
|
+
args: [{ selector: 'lib-sagittarius-admin', imports: [
|
|
352
|
+
RouterModule,
|
|
353
|
+
MatIconModule,
|
|
354
|
+
MatButtonModule,
|
|
355
|
+
MatMenuModule,
|
|
356
|
+
DrawerComponent,
|
|
357
|
+
], template: "<div class=\"sg-admin-theme\" [class.isHandset]=\"isHandset()\" [class.isDesktop]=\"!isHandset()\">\n <aside class=\"sg-admin-theme-sidebar\" [class.open]=\"sidebarOpen()\" [class.collapsed]=\"collapsed()\"\n [class.expanded]=\"!collapsed()\">\n <div class=\"sg-admin-theme-sidebar-wrapper\" [class.hover]=\"hovered()\" [class.no-hover]=\"!hovered()\"\n (mouseenter)=\"setHovered(true)\" (mouseleave)=\"setHovered(false)\">\n <div class=\"sg-admin-theme-sidebar-header\">\n <a class=\"sg-admin-theme-brand\" [routerLink]=\"homeRoute()\" (click)=\"onNavigate()\">\n <span class=\"sg-admin-theme-brand-mark\">\n @if (logoUrl()) {\n <img [src]=\"logoUrl()\" alt=\"\">\n } @else {\n {{ shortTitle() }}\n }\n </span>\n <span class=\"sg-admin-theme-sidebar-header-logo-lg\">{{ appTitle() }}</span>\n </a>\n <button matIconButton class=\"mobile-only sg-admin-theme-sidebar-header-menu-button\" (click)=\"closeSidebar()\"\n [attr.aria-label]=\"labels.closeMenu\">\n <mat-icon>close</mat-icon>\n </button>\n @if (collapsed()) {\n @if (hovered()) {\n <button matIconButton class=\"pc-only sg-admin-theme-sidebar-header-menu-button\" (click)=\"toggleSidebar()\"\n [attr.aria-label]=\"labels.expandMenu\">\n <mat-icon>keyboard_double_arrow_right</mat-icon>\n </button>\n }\n } @else {\n <button matIconButton class=\"pc-only sg-admin-theme-sidebar-header-menu-button\" (click)=\"toggleSidebar()\"\n [attr.aria-label]=\"labels.collapseMenu\">\n <mat-icon>keyboard_double_arrow_left</mat-icon>\n </button>\n }\n </div>\n <div class=\"sg-admin-theme-sidebar-body\">\n @if (user(); as u) {\n <div class=\"sg-admin-theme-sidebar-profile\">\n <div class=\"sg-admin-theme-sidebar-profile-header\">\n <div class=\"sg-admin-theme-sidebar-profile-header-avatar\">\n @if (u.avatarUrl) {\n <img [src]=\"u.avatarUrl\" alt=\"\">\n } @else {\n {{ userInitials() }}\n }\n </div>\n </div>\n <div class=\"sg-admin-theme-sidebar-profile-footer\">\n <div class=\"sg-admin-theme-sidebar-profile-footer-name\">{{ u.name }}</div>\n @if (u.subtitle) {\n <div class=\"sg-admin-theme-sidebar-profile-footer-subtitle\">{{ u.subtitle }}</div>\n }\n </div>\n </div>\n }\n <nav>\n @for (item of menuItems(); track $index) {\n @if (item.spacer) {\n <div class=\"sg-admin-theme-sidebar-nav-item-spacer\">\n <span class=\"sg-admin-theme-sidebar-nav-item-icon\"></span>\n <span class=\"sg-admin-theme-sidebar-nav-item-label\">{{ item.label }}</span>\n </div>\n } @else {\n <a class=\"sg-admin-theme-sidebar-nav-item\" [routerLink]=\"item.route\" routerLinkActive=\"active\"\n [routerLinkActiveOptions]=\"{ exact: !!item.exact }\" (click)=\"onNavigate()\" [attr.title]=\"item.label\">\n <span class=\"sg-admin-theme-sidebar-nav-item-wrapper\">\n <mat-icon class=\"sg-admin-theme-sidebar-nav-item-icon\">{{ item.icon || 'circle' }}</mat-icon>\n <span class=\"sg-admin-theme-sidebar-nav-item-label\">{{ item.label }}</span>\n </span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"sg-admin-theme-sidebar-nav-item-badge\">{{ item.badge }}</span>\n }\n </a>\n }\n }\n </nav>\n <div class=\"sg-admin-theme-sidebar-bottom\">\n <ng-content select=\"[sg-admin-sidebar-bottom]\"></ng-content>\n </div>\n </div>\n </div>\n </aside>\n <div class=\"sg-admin-theme-body\">\n <header class=\"sg-admin-theme-header\">\n <div class=\"sg-admin-theme-header-left-box\">\n <button matIconButton class=\"mobile-only sg-admin-theme-header-left-box-menu-button\" (click)=\"openSidebar()\"\n [attr.aria-label]=\"labels.openMenu\">\n <mat-icon>menu</mat-icon>\n </button>\n <a class=\"mobile-only sg-admin-theme-header-logo-lg\" [routerLink]=\"homeRoute()\">{{ appTitle() }}</a>\n <ng-content select=\"[sg-admin-header-left]\"></ng-content>\n </div>\n <div class=\"sg-admin-theme-header-middle-box\">\n <ng-content select=\"[sg-admin-header-middle]\"></ng-content>\n <ng-content select=\"[sg-admin-header]\"></ng-content>\n </div>\n <div class=\"sg-admin-theme-header-right-box\">\n <ng-content select=\"[sg-admin-header-actions]\"></ng-content>\n @if (user(); as u) {\n <button class=\"sg-admin-theme-header-user\" [matMenuTriggerFor]=\"userMenu\" [attr.aria-label]=\"labels.userMenu\">\n <span class=\"sg-admin-theme-header-user-avatar\">\n @if (u.avatarUrl) {\n <img [src]=\"u.avatarUrl\" alt=\"\">\n } @else {\n {{ userInitials() }}\n }\n </span>\n <span class=\"sg-admin-theme-header-user-name pc-only\">{{ u.name }}</span>\n <mat-icon class=\"pc-only\">expand_more</mat-icon>\n </button>\n <mat-menu #userMenu=\"matMenu\" xPosition=\"before\" class=\"sg-admin-user-menu\">\n <div class=\"sg-admin-user-menu-header\">\n <div class=\"sg-admin-user-menu-name\">{{ u.name }}</div>\n @if (u.subtitle) {\n <div class=\"sg-admin-user-menu-subtitle\">{{ u.subtitle }}</div>\n }\n </div>\n @for (item of userMenuItems(); track $index) {\n @if (item.divider) {\n <div class=\"sg-admin-user-menu-divider\"></div>\n } @else if (item.route) {\n <a mat-menu-item [routerLink]=\"item.route\" [disabled]=\"!!item.disabled\" (click)=\"onUserMenuItem(item)\">\n @if (item.icon) { <mat-icon>{{ item.icon }}</mat-icon> }\n <span>{{ item.label }}</span>\n </a>\n } @else {\n <button mat-menu-item [disabled]=\"!!item.disabled\" (click)=\"onUserMenuItem(item)\">\n @if (item.icon) { <mat-icon>{{ item.icon }}</mat-icon> }\n <span>{{ item.label }}</span>\n </button>\n }\n }\n </mat-menu>\n }\n </div>\n </header>\n <main class=\"sg-admin-theme-main\">\n <div class=\"sg-admin-theme-drawer\" [class.closed]=\"!drawerOpen()\">\n <lib-drawer-component></lib-drawer-component>\n </div>\n <div class=\"sg-admin-theme-content\" [attr.inert]=\"drawerOpen() ? '' : null\">\n <ng-content></ng-content>\n </div>\n </main>\n <footer class=\"sg-admin-theme-footer\">\n <ng-content select=\"[sg-admin-footer]\">\n <span>{{ appTitle() }}</span>\n </ng-content>\n </footer>\n </div>\n</div>\n", styles: [":host{display:block}*{box-sizing:border-box}.sg-admin-theme{display:flex;width:100vw;height:100vh;height:100dvh;font-family:var(--sg-font);color:var(--sg-text);background:var(--sg-bg)}.sg-admin-theme .sg-admin-theme-sidebar{display:flex;height:100%;flex-direction:column;flex-shrink:0;width:var(--sg-sidebar-width);position:relative;z-index:3;color-scheme:dark}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-wrapper{display:flex;height:100%;flex-direction:column;width:var(--sg-sidebar-width);position:relative;z-index:3;background:var(--sg-sidebar-bg);color:var(--sg-sidebar-text);border-right:1px solid var(--sg-sidebar-border)}.sg-admin-theme .sg-admin-theme-sidebar.collapsed{width:var(--sg-sidebar-collapsed-width)}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper{width:var(--sg-sidebar-collapsed-width);transition:width .25s cubic-bezier(.2,0,0,1),box-shadow .25s;position:absolute;z-index:9}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.hover{width:var(--sg-sidebar-width);box-shadow:var(--sg-shadow-lg)}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-header{padding:0;justify-content:center}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-header .sg-admin-theme-sidebar-header-logo-lg{display:none}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-profile{padding:16px 0}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-profile .sg-admin-theme-sidebar-profile-header-avatar{width:36px;height:36px;font-size:13px}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-profile .sg-admin-theme-sidebar-profile-footer{display:none}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item-spacer{justify-content:center;padding:12px 0 8px}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item-spacer .sg-admin-theme-sidebar-nav-item-icon{display:block}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item-spacer .sg-admin-theme-sidebar-nav-item-label{display:none}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item{justify-content:center;padding:0}.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item .sg-admin-theme-sidebar-nav-item-wrapper .sg-admin-theme-sidebar-nav-item-label,.sg-admin-theme .sg-admin-theme-sidebar.collapsed .sg-admin-theme-sidebar-wrapper.no-hover .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item .sg-admin-theme-sidebar-nav-item-badge{display:none}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-header{display:flex;width:100%;flex-direction:row;min-height:var(--sg-header-height);max-height:var(--sg-header-height);padding:0 8px 0 14px;justify-content:space-between;align-items:center;overflow:hidden;border-bottom:1px solid var(--sg-sidebar-border);transition:padding .2s ease-in-out}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-header .sg-admin-theme-sidebar-header-menu-button{color:var(--sg-sidebar-text-muted);flex-shrink:0}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-brand{display:flex;align-items:center;gap:12px;min-width:0;color:var(--sg-sidebar-text-strong);text-decoration:none}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-brand .sg-admin-theme-brand-mark{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;border-radius:var(--sg-radius-sm);background:var(--sg-sidebar-accent);color:var(--sg-sidebar-accent-contrast);font-weight:700;font-size:14px;letter-spacing:.02em;overflow:hidden}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-brand .sg-admin-theme-brand-mark img{width:100%;height:100%;object-fit:contain}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-brand .sg-admin-theme-sidebar-header-logo-lg{font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body{display:flex;width:100%;flex-grow:1;flex-direction:column;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--sg-sidebar-scrollbar) transparent}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav{display:flex;flex-direction:column;gap:2px;padding:8px 10px}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item-spacer{display:flex;align-items:center;padding:16px 12px 6px;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--sg-sidebar-text-muted);white-space:nowrap}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item-spacer .sg-admin-theme-sidebar-nav-item-icon{display:none;width:18px;height:1px;background:var(--sg-sidebar-border)}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item{position:relative;width:100%;min-height:40px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 10px 0 12px;border-radius:var(--sg-radius-sm);color:var(--sg-sidebar-text);text-decoration:none;white-space:nowrap;transition:background-color .15s,color .15s}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item:hover{background:var(--sg-sidebar-hover);color:var(--sg-sidebar-text-strong)}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item:focus-visible{outline:2px solid var(--sg-sidebar-accent);outline-offset:-2px}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item.active{background:var(--sg-sidebar-active-bg);color:var(--sg-sidebar-text-strong)}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item.active:before{content:\"\";position:absolute;left:-10px;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:var(--sg-sidebar-accent)}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item.active .sg-admin-theme-sidebar-nav-item-icon{color:var(--sg-sidebar-accent)}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item .sg-admin-theme-sidebar-nav-item-wrapper{display:flex;flex-direction:row;align-items:center;gap:14px;min-width:0}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item .sg-admin-theme-sidebar-nav-item-wrapper .sg-admin-theme-sidebar-nav-item-icon{flex-shrink:0;font-size:20px;width:20px;height:20px}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item .sg-admin-theme-sidebar-nav-item-wrapper .sg-admin-theme-sidebar-nav-item-label{font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body nav .sg-admin-theme-sidebar-nav-item .sg-admin-theme-sidebar-nav-item-badge{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--sg-sidebar-accent);color:var(--sg-sidebar-accent-contrast);font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:center}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-body .sg-admin-theme-sidebar-bottom{margin-top:auto}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-profile{padding:20px 12px 12px;display:flex;flex-direction:column;align-items:center;width:100%;transition:padding .2s}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-profile .sg-admin-theme-sidebar-profile-header{display:flex;justify-content:center;width:100%}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-profile .sg-admin-theme-sidebar-profile-header .sg-admin-theme-sidebar-profile-header-avatar{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:hidden;font-weight:600;font-size:18px;color:var(--sg-sidebar-accent-contrast);background:linear-gradient(135deg,var(--sg-sidebar-accent),var(--sg-sidebar-accent-2));box-shadow:0 0 0 3px var(--sg-sidebar-bg),0 0 0 4px var(--sg-sidebar-border);transition:width .2s,height .2s}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-profile .sg-admin-theme-sidebar-profile-header .sg-admin-theme-sidebar-profile-header-avatar img{width:100%;height:100%;object-fit:cover}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-profile .sg-admin-theme-sidebar-profile-footer{display:flex;flex-direction:column;align-items:center;width:100%;padding-top:10px;text-align:center;white-space:nowrap}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-profile .sg-admin-theme-sidebar-profile-footer .sg-admin-theme-sidebar-profile-footer-name{font-weight:600;color:var(--sg-sidebar-text-strong)}.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-profile .sg-admin-theme-sidebar-profile-footer .sg-admin-theme-sidebar-profile-footer-subtitle{font-size:12px;color:var(--sg-sidebar-text-muted)}.sg-admin-theme .sg-admin-theme-body{flex-grow:1;min-width:0;height:100%;display:flex;flex-direction:column}.sg-admin-theme .sg-admin-theme-header{width:100%;min-height:var(--sg-header-height);max-height:var(--sg-header-height);display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 16px 0 20px;position:relative;z-index:2;background:var(--sg-header-bg);border-bottom:1px solid var(--sg-border)}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-left-box,.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-middle-box,.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-right-box{display:flex;flex-direction:row;align-items:center;gap:8px;height:100%;min-width:0}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-middle-box{flex:1 1 auto;justify-content:center}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-left-box-menu-button{color:var(--sg-text)}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-logo-lg{font-weight:600;font-size:16px;color:var(--sg-text);text-decoration:none;white-space:nowrap}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-right-box{color:var(--sg-text-muted)}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-user{display:flex;align-items:center;gap:8px;height:40px;padding:0 6px 0 4px;border:0;border-radius:20px;background:transparent;color:var(--sg-text);font:inherit;cursor:pointer;transition:background-color .15s}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-user:hover,.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-user[aria-expanded=true]{background:var(--sg-hover)}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-user:focus-visible{outline:2px solid var(--sg-primary)}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-user .sg-admin-theme-header-user-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:12px;font-weight:600;color:var(--sg-on-primary);background:var(--sg-primary)}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-user .sg-admin-theme-header-user-avatar img{width:100%;height:100%;object-fit:cover}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-user .sg-admin-theme-header-user-name{font-weight:500;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sg-admin-theme .sg-admin-theme-header .sg-admin-theme-header-user mat-icon{color:var(--sg-text-muted);font-size:20px;width:20px;height:20px}.sg-admin-theme .sg-admin-theme-main{width:100%;flex-grow:1;min-height:0;display:flex;flex-direction:column;position:relative;overflow:auto;background:var(--sg-bg)}.sg-admin-theme .sg-admin-theme-main .sg-admin-theme-drawer{position:absolute;inset:0 0 0 auto;width:100%;height:100%;display:flex;flex-direction:column;z-index:1;background:var(--sg-bg);overflow:hidden}.sg-admin-theme .sg-admin-theme-main .sg-admin-theme-drawer.closed{width:0!important;overflow:hidden}.sg-admin-theme .sg-admin-theme-main .sg-admin-theme-content{width:100%;flex-grow:1;display:flex;flex-direction:column;position:relative;z-index:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--sg-scrollbar) transparent}.sg-admin-theme .sg-admin-theme-footer{width:100%;display:flex;gap:12px;min-height:var(--sg-footer-height);max-height:var(--sg-footer-height);padding:0 20px;justify-content:space-between;align-items:center;overflow:hidden;font-size:12px;color:var(--sg-text-muted);background:var(--sg-surface);border-top:1px solid var(--sg-border)}.mobile-only{display:none!important}.pc-only{display:flex!important}@media screen and (max-width: 800px){.mobile-only{display:flex!important}.pc-only{display:none!important}.sg-admin-theme{height:auto;width:100%}.sg-admin-theme .sg-admin-theme-header{position:sticky;top:0;padding:0 8px 0 4px}.sg-admin-theme .sg-admin-theme-sidebar{width:0;height:100%;overflow:hidden;z-index:99999;position:fixed;display:flex;transition:width .3s cubic-bezier(.2,0,0,1)}.sg-admin-theme .sg-admin-theme-sidebar.open,.sg-admin-theme .sg-admin-theme-sidebar .sg-admin-theme-sidebar-wrapper{width:100%}.sg-admin-theme .sg-admin-theme-body{min-height:100vh;min-height:100dvh}.sg-admin-theme .sg-admin-theme-main{overflow:visible}.sg-admin-theme .sg-admin-theme-main .sg-admin-theme-drawer{width:100%;position:fixed;top:0;z-index:10}}@media (prefers-reduced-motion: reduce){.sg-admin-theme *{transition:none!important}}\n"] }]
|
|
358
|
+
}], ctorParameters: () => [{ type: DrawerService }], propDecorators: { drawerComponent: [{
|
|
359
|
+
type: ViewChild,
|
|
360
|
+
args: [DrawerComponent]
|
|
361
|
+
}], onResize: [{
|
|
362
|
+
type: HostListener,
|
|
363
|
+
args: ['window:resize']
|
|
364
|
+
}] } });
|
|
365
|
+
function initials(text) {
|
|
366
|
+
return text
|
|
367
|
+
.split(/\s+/)
|
|
368
|
+
.filter(Boolean)
|
|
369
|
+
.slice(0, 2)
|
|
370
|
+
.map(w => w[0].toUpperCase())
|
|
371
|
+
.join('');
|
|
372
|
+
}
|
|
373
|
+
function readStorage(key) {
|
|
374
|
+
try {
|
|
375
|
+
return localStorage.getItem(key);
|
|
376
|
+
}
|
|
377
|
+
catch {
|
|
378
|
+
return null;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
function writeStorage(key, value) {
|
|
382
|
+
try {
|
|
383
|
+
localStorage.setItem(key, value);
|
|
384
|
+
}
|
|
385
|
+
catch {
|
|
386
|
+
// localStorage nemusí byť dostupný (privátny režim, SSR)
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/*
|
|
391
|
+
* Public API Surface of sagittarius-admin-template
|
|
392
|
+
*/
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Generated bundle index. Do not edit.
|
|
396
|
+
*/
|
|
397
|
+
|
|
398
|
+
export { DrawerRef, DrawerService, SG_ADMIN_LABELS, SG_ADMIN_LABELS_EN, SG_ADMIN_LABELS_SK, SagittariusAdmin, provideSgAdminLabels };
|
|
399
|
+
//# sourceMappingURL=sagittarius-admin-template.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sagittarius-admin-template.mjs","sources":["../../../projects/sagittarius-admin-template/src/lib/sagittarius-admin/sagittarius-admin.labels.ts","../../../projects/sagittarius-admin-template/src/lib/sagittarius-admin/drawer-component/drawer-content/drawer-content.ts","../../../projects/sagittarius-admin-template/src/lib/sagittarius-admin/drawer-component/drawer-content/drawer-content.html","../../../projects/sagittarius-admin-template/src/lib/sagittarius-admin/drawer-service.ts","../../../projects/sagittarius-admin-template/src/lib/sagittarius-admin/drawer-ref.ts","../../../projects/sagittarius-admin-template/src/lib/sagittarius-admin/drawer-component/drawer-component.ts","../../../projects/sagittarius-admin-template/src/lib/sagittarius-admin/drawer-component/drawer-component.html","../../../projects/sagittarius-admin-template/src/lib/sagittarius-admin/sagittarius-admin.ts","../../../projects/sagittarius-admin-template/src/lib/sagittarius-admin/sagittarius-admin.html","../../../projects/sagittarius-admin-template/src/public-api.ts","../../../projects/sagittarius-admin-template/src/sagittarius-admin-template.ts"],"sourcesContent":["import { InjectionToken, Provider } from '@angular/core';\n\n/** Texty zabudované v layoute (aria-label, tooltipy). */\nexport interface SgAdminLabels {\n /** Otvorenie sidebaru hamburgerom na mobile. */\n openMenu: string;\n /** Zatvorenie sidebaru na mobile. */\n closeMenu: string;\n /** Pripnutie (rozbalenie) zbaleného sidebaru. */\n expandMenu: string;\n /** Zbalenie sidebaru. */\n collapseMenu: string;\n /** Tlačidlo používateľského menu v hlavičke. */\n userMenu: string;\n /** Zatvorenie prvej vrstvy drawera. */\n drawerClose: string;\n /** Návrat z vnorenej vrstvy drawera. */\n drawerBack: string;\n /** Predvolený tooltip / aria-label ikony `fullPageUrl` (prebije ho `DrawerOptions.fullPageLabel`). */\n drawerFullPage: string;\n}\n\n/** Anglické texty (predvolené). */\nexport const SG_ADMIN_LABELS_EN: SgAdminLabels = {\n openMenu: 'Open menu',\n closeMenu: 'Close menu',\n expandMenu: 'Pin menu',\n collapseMenu: 'Collapse menu',\n userMenu: 'User menu',\n drawerClose: 'Close',\n drawerBack: 'Back',\n drawerFullPage: 'Open as full page',\n};\n\n/** Slovenské texty. */\nexport const SG_ADMIN_LABELS_SK: SgAdminLabels = {\n openMenu: 'Otvoriť menu',\n closeMenu: 'Zavrieť menu',\n expandMenu: 'Pripnúť menu',\n collapseMenu: 'Zbaliť menu',\n userMenu: 'Používateľské menu',\n drawerClose: 'Zavrieť',\n drawerBack: 'Späť',\n drawerFullPage: 'Otvoriť na celej stránke',\n};\n\n/** Texty layoutu; default `SG_ADMIN_LABELS_EN`. Nastav cez `provideSgAdminLabels()`. */\nexport const SG_ADMIN_LABELS = new InjectionToken<SgAdminLabels>('SG_ADMIN_LABELS', {\n providedIn: 'root',\n factory: () => SG_ADMIN_LABELS_EN,\n});\n\n/**\n * Nastaví texty layoutu. Chýbajúce kľúče sa doplnia z angličtiny.\n *\n * ```ts\n * providers: [provideSgAdminLabels(SG_ADMIN_LABELS_SK)]\n * providers: [provideSgAdminLabels({ drawerClose: 'Schließen' })]\n * ```\n */\nexport function provideSgAdminLabels(labels: Partial<SgAdminLabels>): Provider {\n return { provide: SG_ADMIN_LABELS, useValue: { ...SG_ADMIN_LABELS_EN, ...labels } };\n}\n","import { Component, ComponentRef, Injector, Type, ViewChild, ViewContainerRef, computed, inject, input, signal } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { RouterLink } from '@angular/router';\nimport { DrawerRef } from '../../drawer-ref';\nimport { SG_ADMIN_LABELS } from '../../sagittarius-admin.labels';\n\n@Component({\n selector: 'lib-drawer-content',\n imports: [\n MatIconModule,\n MatButtonModule,\n MatTooltipModule,\n RouterLink,\n ],\n templateUrl: './drawer-content.html',\n styleUrl: './drawer-content.scss'\n})\nexport class DrawerContent {\n @ViewChild('vc', { read: ViewContainerRef, static: true }) vc!: ViewContainerRef;\n\n protected readonly labels = inject(SG_ADMIN_LABELS);\n\n readonly pos = input(0);\n readonly drawerRef = input.required<DrawerRef>();\n readonly fullPageIcon = input('open_in_full');\n /** Ak chýba, použije sa `SgAdminLabels.drawerFullPage`. */\n readonly fullPageLabelInput = input<string | undefined>(undefined, { alias: 'fullPageLabel' });\n readonly fullPageLabel = computed(() => this.fullPageLabelInput() ?? this.labels.drawerFullPage);\n readonly animating = signal(true);\n\n loadComponent<T>(component: Type<T>, injector: Injector): ComponentRef<T> {\n this.vc.clear();\n return this.vc.createComponent(component, { injector });\n }\n\n onAnimationEnd(event: AnimationEvent) {\n // animationend bubble-uje aj z obsahu – reaguj len na vlastnú animáciu\n if (event.target === event.currentTarget) {\n this.animating.set(false);\n }\n }\n\n close() {\n this.drawerRef().close();\n }\n}\n","<div class=\"sg-admin-theme-drawer-wrapper\" [class.animating]=\"animating()\" (animationend)=\"onAnimationEnd($event)\">\n <div class=\"sg-admin-theme-drawer-header\">\n <div class=\"sg-admin-theme-drawer-close\">\n <button matIconButton (click)=\"close()\" [attr.aria-label]=\"pos() ? labels.drawerBack : labels.drawerClose\">\n <mat-icon>{{ pos() ? 'arrow_back' : 'close' }}</mat-icon>\n </button>\n </div>\n <div class=\"sg-admin-theme-drawer-title\">{{ drawerRef().title() }}</div>\n <div class=\"sg-admin-theme-drawer-actions\">\n @if (drawerRef().fullPageUrl(); as url) {\n <!-- routerLink = imperatívna navigácia -> DrawerComponent zavrie všetky vrstvy;\n replaceUrl nahradí záznam histórie drawera, takže Späť vedie na pôvodnú stránku -->\n <a matIconButton class=\"sg-admin-theme-drawer-full-page\" [routerLink]=\"url\" [replaceUrl]=\"true\"\n [matTooltip]=\"fullPageLabel()\" [attr.aria-label]=\"fullPageLabel()\">\n <mat-icon>{{ fullPageIcon() }}</mat-icon>\n </a>\n }\n </div>\n </div>\n <div class=\"sg-admin-theme-drawer-body\">\n <ng-template #vc></ng-template>\n </div>\n</div>\n","import { Injectable, Type } from '@angular/core';\nimport { Location } from '@angular/common';\nimport type { DrawerComponent } from './drawer-component/drawer-component';\nimport type { SagittariusAdmin } from './sagittarius-admin';\nimport { DrawerRef } from './drawer-ref';\nimport { DrawerData, DrawerOptions } from './sagittarius-admin.models';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DrawerService {\n private host?: DrawerComponent;\n private app?: SagittariusAdmin;\n\n constructor(private location: Location) { }\n\n setHost(component: DrawerComponent, app: SagittariusAdmin) {\n this.host = component;\n this.app = app;\n }\n\n /**\n * Otvorí komponent v draweri nad obsahom. Každé ďalšie volanie pridá novú vrstvu.\n * Otvorenie pridá záznam do histórie, takže tlačidlo Späť v prehliadači zatvorí vrchnú vrstvu.\n *\n * @param data vstupy komponentu (signal `input()` aj bežné properties)\n */\n open<T>(\n component: Type<T>,\n data?: DrawerData<T>,\n options?: DrawerOptions\n ): { componentInstance: T, drawerRef: DrawerRef, close: () => void } {\n if (!this.host || !this.app) {\n throw new Error('Drawer host not initialized - <lib-sagittarius-admin> must be rendered');\n }\n\n const { component: compRef, drawerRef } = this.host.loadComponent(component, data, options);\n this.app.openDrawer();\n this.location.go(this.location.path(true));\n\n return { componentInstance: compRef.instance, drawerRef, close: () => drawerRef.close() };\n }\n\n /** Zatvorí vrchnú vrstvu drawera. */\n closeTop() {\n this.location.back();\n }\n\n /** Zatvorí všetky vrstvy (bez práce s históriou). */\n closeAll() {\n this.host?.closeAll();\n }\n\n /** @internal volá DrawerComponent, keď zanikne posledná vrstva */\n close() {\n this.app?.closeDrawer();\n }\n}\n","import { signal } from '@angular/core';\n\n/**\n * Referencia na otvorený drawer. Komponent zobrazený v draweri ju získa cez `inject(DrawerRef)`.\n */\nexport class DrawerRef {\n readonly title = signal('');\n /** URL samostatnej stránky; ak je nastavená, hlavička drawera zobrazí ikonu na jej otvorenie. */\n readonly fullPageUrl = signal<string | any[] | null>(null);\n\n constructor(private readonly closeFn: () => void) {}\n\n /** Zatvorí tento drawer (krok späť v histórii prehliadača). */\n close(): void {\n this.closeFn();\n }\n\n setTitle(title: string): void {\n this.title.set(title);\n }\n\n /** Nastaví (alebo `null` = skryje) odkaz na samostatnú stránku v hlavičke drawera. */\n setFullPageUrl(url: string | any[] | null): void {\n this.fullPageUrl.set(url);\n }\n}\n","import { Component, ComponentRef, DestroyRef, Injector, Type, ViewChild, ViewContainerRef, inject, reflectComponentType } from '@angular/core';\nimport { PlatformLocation } from '@angular/common';\nimport { NavigationStart, Router } from '@angular/router';\nimport { filter } from 'rxjs';\nimport { DrawerContent } from './drawer-content/drawer-content';\nimport { DrawerService } from '../drawer-service';\nimport { DrawerRef } from '../drawer-ref';\nimport { DrawerData, DrawerOptions } from '../sagittarius-admin.models';\n\ninterface DrawerLayer {\n wrapper: ComponentRef<DrawerContent>;\n component: ComponentRef<unknown>;\n drawerRef: DrawerRef;\n}\n\n@Component({\n selector: 'lib-drawer-component',\n imports: [],\n templateUrl: './drawer-component.html',\n styleUrl: './drawer-component.scss'\n})\nexport class DrawerComponent {\n @ViewChild('vc', { read: ViewContainerRef, static: true }) vc!: ViewContainerRef;\n\n private readonly drawerService = inject(DrawerService);\n private readonly injector = inject(Injector);\n private readonly layers: DrawerLayer[] = [];\n\n constructor() {\n const location = inject(PlatformLocation);\n const destroyRef = inject(DestroyRef);\n\n // Späť v prehliadači zatvorí vrchnú vrstvu\n const unlisten = location.onPopState(() => this.close());\n\n // Navigácia v aplikácii (napr. klik v menu) zatvorí všetky vrstvy\n const sub = inject(Router, { optional: true })?.events\n .pipe(filter((e): e is NavigationStart => e instanceof NavigationStart && e.navigationTrigger === 'imperative'))\n .subscribe(() => this.closeAll());\n\n destroyRef.onDestroy(() => {\n unlisten();\n sub?.unsubscribe();\n this.layers.forEach(l => l.wrapper.destroy());\n });\n }\n\n close() {\n const layer = this.layers.pop();\n if (!layer) {\n return;\n }\n layer.wrapper.destroy();\n if (!this.layers.length) {\n this.drawerService.close();\n }\n }\n\n closeAll() {\n if (!this.layers.length) {\n return;\n }\n while (this.layers.length) {\n this.layers.pop()!.wrapper.destroy();\n }\n this.drawerService.close();\n }\n\n loadComponent<T>(component: Type<T>, data?: DrawerData<T>, options?: DrawerOptions): { component: ComponentRef<T>, drawerRef: DrawerRef } {\n const drawerRef = new DrawerRef(() => window.history.back());\n drawerRef.setTitle(options?.title ?? '');\n drawerRef.setFullPageUrl(options?.fullPageUrl ?? null);\n\n const wrapper = this.vc.createComponent(DrawerContent);\n wrapper.setInput('pos', this.layers.length);\n wrapper.setInput('drawerRef', drawerRef);\n if (options?.fullPageIcon) {\n wrapper.setInput('fullPageIcon', options.fullPageIcon);\n }\n if (options?.fullPageLabel) {\n wrapper.setInput('fullPageLabel', options.fullPageLabel);\n }\n\n const injector = Injector.create({\n providers: [{ provide: DrawerRef, useValue: drawerRef }],\n parent: this.injector,\n });\n const comp = wrapper.instance.loadComponent(component, injector);\n\n if (data) {\n const inputs = new Set(reflectComponentType(component)?.inputs.map(i => i.templateName) ?? []);\n for (const [key, value] of Object.entries(data)) {\n if (inputs.has(key)) {\n comp.setInput(key, value);\n } else {\n (comp.instance as Record<string, unknown>)[key] = value;\n }\n }\n // Spätná kompatibilita: komponent bez vlastnej metódy close() dostane close z drawera\n if (!('close' in (comp.instance as object))) {\n (comp.instance as Record<string, unknown>)['close'] = () => drawerRef.close();\n }\n }\n\n this.layers.push({ wrapper, component: comp, drawerRef });\n return { component: comp, drawerRef };\n }\n}\n","<ng-template #vc></ng-template>\n","import { AfterViewInit, Component, HostListener, OnInit, ViewChild, computed, inject, input, output, signal } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { RouterModule } from '@angular/router';\nimport { DrawerComponent } from './drawer-component/drawer-component';\nimport { DrawerService } from './drawer-service';\nimport { SG_ADMIN_LABELS } from './sagittarius-admin.labels';\nimport { SgMenuItem, SgUser, SgUserMenuItem } from './sagittarius-admin.models';\n\nconst MOBILE_BREAKPOINT = 800;\nconst COLLAPSED_STORAGE_KEY = 'sg-admin-sidebar-collapsed';\n\n@Component({\n selector: 'lib-sagittarius-admin',\n imports: [\n RouterModule,\n MatIconModule,\n MatButtonModule,\n MatMenuModule,\n DrawerComponent,\n ],\n templateUrl: './sagittarius-admin.html',\n styleUrl: './sagittarius-admin.scss'\n})\nexport class SagittariusAdmin implements OnInit, AfterViewInit {\n /** Názov aplikácie v hlavičke sidebaru. */\n readonly appTitle = input('Sagittarius');\n /** Skratka zobrazená v zbalenom sidebare (default: iniciály z `appTitle`). */\n readonly appShortTitle = input<string>();\n /** URL loga; bez neho sa zobrazí farebný štvorec so skratkou. */\n readonly logoUrl = input<string>();\n /** Routa, kam vedie klik na logo. */\n readonly homeRoute = input<string | any[]>('/');\n readonly menuItems = input<SgMenuItem[]>([]);\n readonly user = input<SgUser | null>(null);\n readonly userMenuItems = input<SgUserMenuItem[]>([]);\n /** Pamätať si zbalenie sidebaru v localStorage. */\n readonly persistSidebarState = input(true);\n\n /** Emituje sa pri kliknutí na položku user menu (popri jej `action`). */\n readonly userMenuItemClick = output<SgUserMenuItem>();\n\n /** Texty layoutu (`provideSgAdminLabels`). */\n protected readonly labels = inject(SG_ADMIN_LABELS);\n\n readonly isHandset = signal(false);\n readonly sidebarOpen = signal(false);\n readonly sidebarCollapsed = signal(false);\n readonly hovered = signal(false);\n readonly drawerOpen = signal(false);\n private noHover = false;\n\n /** Zbalenie platí len na desktope, na mobile je sidebar vždy v plnej šírke. */\n readonly collapsed = computed(() => this.sidebarCollapsed() && !this.isHandset());\n\n readonly shortTitle = computed(() => this.appShortTitle() ?? initials(this.appTitle()));\n readonly userInitials = computed(() => {\n const user = this.user();\n return user ? user.initials ?? initials(user.name) : '';\n });\n\n @ViewChild(DrawerComponent) drawerComponent!: DrawerComponent;\n\n constructor(private drawerService: DrawerService) { }\n\n ngOnInit(): void {\n if (this.persistSidebarState()) {\n this.sidebarCollapsed.set(readStorage(COLLAPSED_STORAGE_KEY) === 'true');\n }\n this.calculateWidth();\n }\n\n ngAfterViewInit(): void {\n this.drawerService.setHost(this.drawerComponent, this);\n }\n\n @HostListener('window:resize')\n onResize() {\n this.calculateWidth();\n }\n\n openSidebar() {\n this.sidebarOpen.set(true);\n }\n\n closeSidebar() {\n this.sidebarOpen.set(false);\n }\n\n toggleSidebar() {\n this.sidebarCollapsed.update(v => !v);\n if (this.persistSidebarState()) {\n writeStorage(COLLAPSED_STORAGE_KEY, String(this.sidebarCollapsed()));\n }\n // Po prepnutí krátko ignorujeme hover, aby sa sidebar hneď znova nerozbalil\n this.noHover = true;\n this.hovered.set(false);\n setTimeout(() => this.noHover = false, 300);\n }\n\n setHovered(value: boolean) {\n if (!this.noHover) {\n this.hovered.set(value);\n }\n }\n\n onNavigate() {\n if (this.isHandset()) {\n this.closeSidebar();\n }\n }\n\n onUserMenuItem(item: SgUserMenuItem) {\n item.action?.();\n this.userMenuItemClick.emit(item);\n }\n\n openDrawer() {\n this.drawerOpen.set(true);\n }\n\n closeDrawer() {\n this.drawerOpen.set(false);\n }\n\n private calculateWidth() {\n const handset = window.innerWidth <= MOBILE_BREAKPOINT;\n this.isHandset.set(handset);\n if (!handset) {\n this.sidebarOpen.set(false);\n }\n }\n}\n\nfunction initials(text: string): string {\n return text\n .split(/\\s+/)\n .filter(Boolean)\n .slice(0, 2)\n .map(w => w[0]!.toUpperCase())\n .join('');\n}\n\nfunction readStorage(key: string): string | null {\n try {\n return localStorage.getItem(key);\n } catch {\n return null;\n }\n}\n\nfunction writeStorage(key: string, value: string) {\n try {\n localStorage.setItem(key, value);\n } catch {\n // localStorage nemusí byť dostupný (privátny režim, SSR)\n }\n}\n","<div class=\"sg-admin-theme\" [class.isHandset]=\"isHandset()\" [class.isDesktop]=\"!isHandset()\">\n <aside class=\"sg-admin-theme-sidebar\" [class.open]=\"sidebarOpen()\" [class.collapsed]=\"collapsed()\"\n [class.expanded]=\"!collapsed()\">\n <div class=\"sg-admin-theme-sidebar-wrapper\" [class.hover]=\"hovered()\" [class.no-hover]=\"!hovered()\"\n (mouseenter)=\"setHovered(true)\" (mouseleave)=\"setHovered(false)\">\n <div class=\"sg-admin-theme-sidebar-header\">\n <a class=\"sg-admin-theme-brand\" [routerLink]=\"homeRoute()\" (click)=\"onNavigate()\">\n <span class=\"sg-admin-theme-brand-mark\">\n @if (logoUrl()) {\n <img [src]=\"logoUrl()\" alt=\"\">\n } @else {\n {{ shortTitle() }}\n }\n </span>\n <span class=\"sg-admin-theme-sidebar-header-logo-lg\">{{ appTitle() }}</span>\n </a>\n <button matIconButton class=\"mobile-only sg-admin-theme-sidebar-header-menu-button\" (click)=\"closeSidebar()\"\n [attr.aria-label]=\"labels.closeMenu\">\n <mat-icon>close</mat-icon>\n </button>\n @if (collapsed()) {\n @if (hovered()) {\n <button matIconButton class=\"pc-only sg-admin-theme-sidebar-header-menu-button\" (click)=\"toggleSidebar()\"\n [attr.aria-label]=\"labels.expandMenu\">\n <mat-icon>keyboard_double_arrow_right</mat-icon>\n </button>\n }\n } @else {\n <button matIconButton class=\"pc-only sg-admin-theme-sidebar-header-menu-button\" (click)=\"toggleSidebar()\"\n [attr.aria-label]=\"labels.collapseMenu\">\n <mat-icon>keyboard_double_arrow_left</mat-icon>\n </button>\n }\n </div>\n <div class=\"sg-admin-theme-sidebar-body\">\n @if (user(); as u) {\n <div class=\"sg-admin-theme-sidebar-profile\">\n <div class=\"sg-admin-theme-sidebar-profile-header\">\n <div class=\"sg-admin-theme-sidebar-profile-header-avatar\">\n @if (u.avatarUrl) {\n <img [src]=\"u.avatarUrl\" alt=\"\">\n } @else {\n {{ userInitials() }}\n }\n </div>\n </div>\n <div class=\"sg-admin-theme-sidebar-profile-footer\">\n <div class=\"sg-admin-theme-sidebar-profile-footer-name\">{{ u.name }}</div>\n @if (u.subtitle) {\n <div class=\"sg-admin-theme-sidebar-profile-footer-subtitle\">{{ u.subtitle }}</div>\n }\n </div>\n </div>\n }\n <nav>\n @for (item of menuItems(); track $index) {\n @if (item.spacer) {\n <div class=\"sg-admin-theme-sidebar-nav-item-spacer\">\n <span class=\"sg-admin-theme-sidebar-nav-item-icon\"></span>\n <span class=\"sg-admin-theme-sidebar-nav-item-label\">{{ item.label }}</span>\n </div>\n } @else {\n <a class=\"sg-admin-theme-sidebar-nav-item\" [routerLink]=\"item.route\" routerLinkActive=\"active\"\n [routerLinkActiveOptions]=\"{ exact: !!item.exact }\" (click)=\"onNavigate()\" [attr.title]=\"item.label\">\n <span class=\"sg-admin-theme-sidebar-nav-item-wrapper\">\n <mat-icon class=\"sg-admin-theme-sidebar-nav-item-icon\">{{ item.icon || 'circle' }}</mat-icon>\n <span class=\"sg-admin-theme-sidebar-nav-item-label\">{{ item.label }}</span>\n </span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"sg-admin-theme-sidebar-nav-item-badge\">{{ item.badge }}</span>\n }\n </a>\n }\n }\n </nav>\n <div class=\"sg-admin-theme-sidebar-bottom\">\n <ng-content select=\"[sg-admin-sidebar-bottom]\"></ng-content>\n </div>\n </div>\n </div>\n </aside>\n <div class=\"sg-admin-theme-body\">\n <header class=\"sg-admin-theme-header\">\n <div class=\"sg-admin-theme-header-left-box\">\n <button matIconButton class=\"mobile-only sg-admin-theme-header-left-box-menu-button\" (click)=\"openSidebar()\"\n [attr.aria-label]=\"labels.openMenu\">\n <mat-icon>menu</mat-icon>\n </button>\n <a class=\"mobile-only sg-admin-theme-header-logo-lg\" [routerLink]=\"homeRoute()\">{{ appTitle() }}</a>\n <ng-content select=\"[sg-admin-header-left]\"></ng-content>\n </div>\n <div class=\"sg-admin-theme-header-middle-box\">\n <ng-content select=\"[sg-admin-header-middle]\"></ng-content>\n <ng-content select=\"[sg-admin-header]\"></ng-content>\n </div>\n <div class=\"sg-admin-theme-header-right-box\">\n <ng-content select=\"[sg-admin-header-actions]\"></ng-content>\n @if (user(); as u) {\n <button class=\"sg-admin-theme-header-user\" [matMenuTriggerFor]=\"userMenu\" [attr.aria-label]=\"labels.userMenu\">\n <span class=\"sg-admin-theme-header-user-avatar\">\n @if (u.avatarUrl) {\n <img [src]=\"u.avatarUrl\" alt=\"\">\n } @else {\n {{ userInitials() }}\n }\n </span>\n <span class=\"sg-admin-theme-header-user-name pc-only\">{{ u.name }}</span>\n <mat-icon class=\"pc-only\">expand_more</mat-icon>\n </button>\n <mat-menu #userMenu=\"matMenu\" xPosition=\"before\" class=\"sg-admin-user-menu\">\n <div class=\"sg-admin-user-menu-header\">\n <div class=\"sg-admin-user-menu-name\">{{ u.name }}</div>\n @if (u.subtitle) {\n <div class=\"sg-admin-user-menu-subtitle\">{{ u.subtitle }}</div>\n }\n </div>\n @for (item of userMenuItems(); track $index) {\n @if (item.divider) {\n <div class=\"sg-admin-user-menu-divider\"></div>\n } @else if (item.route) {\n <a mat-menu-item [routerLink]=\"item.route\" [disabled]=\"!!item.disabled\" (click)=\"onUserMenuItem(item)\">\n @if (item.icon) { <mat-icon>{{ item.icon }}</mat-icon> }\n <span>{{ item.label }}</span>\n </a>\n } @else {\n <button mat-menu-item [disabled]=\"!!item.disabled\" (click)=\"onUserMenuItem(item)\">\n @if (item.icon) { <mat-icon>{{ item.icon }}</mat-icon> }\n <span>{{ item.label }}</span>\n </button>\n }\n }\n </mat-menu>\n }\n </div>\n </header>\n <main class=\"sg-admin-theme-main\">\n <div class=\"sg-admin-theme-drawer\" [class.closed]=\"!drawerOpen()\">\n <lib-drawer-component></lib-drawer-component>\n </div>\n <div class=\"sg-admin-theme-content\" [attr.inert]=\"drawerOpen() ? '' : null\">\n <ng-content></ng-content>\n </div>\n </main>\n <footer class=\"sg-admin-theme-footer\">\n <ng-content select=\"[sg-admin-footer]\">\n <span>{{ appTitle() }}</span>\n </ng-content>\n </footer>\n </div>\n</div>\n","/*\n * Public API Surface of sagittarius-admin-template\n */\n\nexport * from './lib/sagittarius-admin/sagittarius-admin';\nexport * from './lib/sagittarius-admin/sagittarius-admin.models';\nexport * from './lib/sagittarius-admin/sagittarius-admin.labels';\nexport * from './lib/sagittarius-admin/drawer-service';\nexport * from './lib/sagittarius-admin/drawer-ref';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i1.DrawerService","i2","i3","i4"],"mappings":";;;;;;;;;;;;;;;;AAsBA;AACO,MAAM,kBAAkB,GAAkB;AAC/C,IAAA,QAAQ,EAAE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