@edsis/angular 22.0.74 → 22.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/edsis-angular-block-shell.mjs +274 -127
- package/fesm2022/edsis-angular-block-shell.mjs.map +1 -1
- package/fesm2022/edsis-angular-block-themes.mjs +13 -6
- package/fesm2022/edsis-angular-block-themes.mjs.map +1 -1
- package/fesm2022/edsis-angular-module-auth.mjs +54 -5
- package/fesm2022/edsis-angular-module-auth.mjs.map +1 -1
- package/package.json +5 -5
- package/types/edsis-angular-block-shell.d.ts +27 -11
- package/types/edsis-angular-block-themes.d.ts +3 -0
- package/types/edsis-angular-module-auth.d.ts +9 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { NgTemplateOutlet, DOCUMENT } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { input, computed, Component, inject, DestroyRef, signal, TemplateRef, Directive, contentChild } from '@angular/core';
|
|
3
|
+
import { input, computed, Component, inject, DestroyRef, signal, TemplateRef, Directive, output, contentChild } from '@angular/core';
|
|
4
4
|
import { RouterLink, RouterOutlet } from '@angular/router';
|
|
5
|
-
import {
|
|
5
|
+
import { RuntimeContextService, NativeHostService } from '@edsis/angular/services/runtime';
|
|
6
|
+
import { LayoutService, LayoutComponent, LayoutVerticalComponent, LayoutHorizontalComponent, LayoutEmptyComponent, LayoutNavigationComponent, LayoutContentComponent, DesktopAppBarComponent } from '@edsis/theme/layout';
|
|
6
7
|
import { NavigationCollapseRootDirective, NavigationCollapseExpandedDirective, NavigationContainerComponent, NavigationSidebarComponent, NavigationDockbarComponent, NavigationHeaderComponent, NavigationFooterComponent, NavigationAsideFooterDirective, NavigationContentComponent, NavigationNavbarComponent, NavigationFlyoutComponent } from '@edsis/navigation';
|
|
7
8
|
import { NavigationService } from '@edsis/navigation/service';
|
|
8
9
|
import { AvatarBadgeComponent, AvatarComponent, AvatarFallbackComponent, AvatarImageComponent } from '@edsis/component/avatar';
|
|
@@ -24,6 +25,8 @@ class BlockShellNavigationAvatarComponent {
|
|
|
24
25
|
/** Avatar interaktif dipakai khusus untuk kontrol profil Desktop. */
|
|
25
26
|
asButton = input(false, /* @ts-ignore */
|
|
26
27
|
...(ngDevMode ? [{ debugName: "asButton" }] : /* istanbul ignore next */ []));
|
|
28
|
+
useAvatar = input(false, /* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "useAvatar" }] : /* istanbul ignore next */ []));
|
|
27
30
|
buttonLabel = input('User menu', /* @ts-ignore */
|
|
28
31
|
...(ngDevMode ? [{ debugName: "buttonLabel" }] : /* istanbul ignore next */ []));
|
|
29
32
|
/** Menampilkan indikator online dengan primitive Avatar. */
|
|
@@ -34,7 +37,7 @@ class BlockShellNavigationAvatarComponent {
|
|
|
34
37
|
: 'inline-flex size-[calc(2.5rem*2/3)] shrink-0 items-center justify-center overflow-hidden bg-primary text-xs font-semibold text-primary-foreground', this.radiusClass()), /* @ts-ignore */
|
|
35
38
|
...(ngDevMode ? [{ debugName: "avatarClasses" }] : /* istanbul ignore next */ []));
|
|
36
39
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellNavigationAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellNavigationAvatarComponent, isStandalone: true, selector: "block-shell-navigation-avatar", inputs: { initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: true, transformFunction: null }, photoUrl: { classPropertyName: "photoUrl", publicName: "photoUrl", isSignal: true, isRequired: false, transformFunction: null }, photoAlt: { classPropertyName: "photoAlt", publicName: "photoAlt", isSignal: true, isRequired: false, transformFunction: null }, radiusClass: { classPropertyName: "radiusClass", publicName: "radiusClass", isSignal: true, isRequired: false, transformFunction: null }, asButton: { classPropertyName: "asButton", publicName: "asButton", isSignal: true, isRequired: false, transformFunction: null }, buttonLabel: { classPropertyName: "buttonLabel", publicName: "buttonLabel", isSignal: true, isRequired: false, transformFunction: null }, showOnlineIndicator: { classPropertyName: "showOnlineIndicator", publicName: "showOnlineIndicator", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
40
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellNavigationAvatarComponent, isStandalone: true, selector: "block-shell-navigation-avatar", inputs: { initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: true, transformFunction: null }, photoUrl: { classPropertyName: "photoUrl", publicName: "photoUrl", isSignal: true, isRequired: false, transformFunction: null }, photoAlt: { classPropertyName: "photoAlt", publicName: "photoAlt", isSignal: true, isRequired: false, transformFunction: null }, radiusClass: { classPropertyName: "radiusClass", publicName: "radiusClass", isSignal: true, isRequired: false, transformFunction: null }, asButton: { classPropertyName: "asButton", publicName: "asButton", isSignal: true, isRequired: false, transformFunction: null }, useAvatar: { classPropertyName: "useAvatar", publicName: "useAvatar", isSignal: true, isRequired: false, transformFunction: null }, buttonLabel: { classPropertyName: "buttonLabel", publicName: "buttonLabel", isSignal: true, isRequired: false, transformFunction: null }, showOnlineIndicator: { classPropertyName: "showOnlineIndicator", publicName: "showOnlineIndicator", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
38
41
|
<!-- size = tinggi logo header: kotak w-10 (2.5rem) dengan AspectRatio 3/2 -->
|
|
39
42
|
@if (asButton()) {
|
|
40
43
|
<button
|
|
@@ -45,8 +48,14 @@ class BlockShellNavigationAvatarComponent {
|
|
|
45
48
|
[class]="avatarClasses()"
|
|
46
49
|
[attr.aria-label]="buttonLabel()"
|
|
47
50
|
>
|
|
48
|
-
<
|
|
51
|
+
<Avatar size="sm" [class]="radiusClass()">
|
|
52
|
+
<ng-container [ngTemplateOutlet]="avatarContent" />
|
|
53
|
+
</Avatar>
|
|
49
54
|
</button>
|
|
55
|
+
} @else if (useAvatar()) {
|
|
56
|
+
<Avatar size="sm" [class]="radiusClass()">
|
|
57
|
+
<ng-container [ngTemplateOutlet]="avatarContent" />
|
|
58
|
+
</Avatar>
|
|
50
59
|
} @else {
|
|
51
60
|
<span [class]="avatarClasses()">
|
|
52
61
|
<ng-container [ngTemplateOutlet]="avatarContent" />
|
|
@@ -54,20 +63,12 @@ class BlockShellNavigationAvatarComponent {
|
|
|
54
63
|
}
|
|
55
64
|
|
|
56
65
|
<ng-template #avatarContent>
|
|
66
|
+
@if (photoUrl(); as url) {
|
|
67
|
+
<AvatarImage [src]="url" [alt]="photoAlt()" />
|
|
68
|
+
}
|
|
69
|
+
<AvatarFallback>{{ initials() }}</AvatarFallback>
|
|
57
70
|
@if (showOnlineIndicator()) {
|
|
58
|
-
<
|
|
59
|
-
@if (photoUrl(); as url) {
|
|
60
|
-
<AvatarImage [src]="url" [alt]="photoAlt()" />
|
|
61
|
-
}
|
|
62
|
-
<AvatarFallback>{{ initials() }}</AvatarFallback>
|
|
63
|
-
<AvatarBadge class="bg-emerald-600" aria-hidden="true" />
|
|
64
|
-
</Avatar>
|
|
65
|
-
} @else {
|
|
66
|
-
@if (photoUrl(); as url) {
|
|
67
|
-
<img [src]="url" [alt]="photoAlt()" class="h-full w-full object-cover" />
|
|
68
|
-
} @else {
|
|
69
|
-
{{ initials() }}
|
|
70
|
-
}
|
|
71
|
+
<AvatarBadge class="bg-emerald-600" aria-hidden="true" />
|
|
71
72
|
}
|
|
72
73
|
</ng-template>
|
|
73
74
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AvatarBadgeComponent, selector: "AvatarBadge", inputs: ["class"] }, { kind: "component", type: AvatarComponent, selector: "Avatar", inputs: ["size", "class"] }, { kind: "component", type: AvatarFallbackComponent, selector: "AvatarFallback", inputs: ["class"] }, { kind: "component", type: AvatarImageComponent, selector: "AvatarImage", inputs: ["src", "alt", "class"] }, { kind: "component", type: ButtonComponent, selector: "button[Button], a[Button]", inputs: ["variant", "size", "class"] }] });
|
|
@@ -90,8 +91,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
90
91
|
[class]="avatarClasses()"
|
|
91
92
|
[attr.aria-label]="buttonLabel()"
|
|
92
93
|
>
|
|
93
|
-
<
|
|
94
|
+
<Avatar size="sm" [class]="radiusClass()">
|
|
95
|
+
<ng-container [ngTemplateOutlet]="avatarContent" />
|
|
96
|
+
</Avatar>
|
|
94
97
|
</button>
|
|
98
|
+
} @else if (useAvatar()) {
|
|
99
|
+
<Avatar size="sm" [class]="radiusClass()">
|
|
100
|
+
<ng-container [ngTemplateOutlet]="avatarContent" />
|
|
101
|
+
</Avatar>
|
|
95
102
|
} @else {
|
|
96
103
|
<span [class]="avatarClasses()">
|
|
97
104
|
<ng-container [ngTemplateOutlet]="avatarContent" />
|
|
@@ -99,20 +106,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
99
106
|
}
|
|
100
107
|
|
|
101
108
|
<ng-template #avatarContent>
|
|
109
|
+
@if (photoUrl(); as url) {
|
|
110
|
+
<AvatarImage [src]="url" [alt]="photoAlt()" />
|
|
111
|
+
}
|
|
112
|
+
<AvatarFallback>{{ initials() }}</AvatarFallback>
|
|
102
113
|
@if (showOnlineIndicator()) {
|
|
103
|
-
<
|
|
104
|
-
@if (photoUrl(); as url) {
|
|
105
|
-
<AvatarImage [src]="url" [alt]="photoAlt()" />
|
|
106
|
-
}
|
|
107
|
-
<AvatarFallback>{{ initials() }}</AvatarFallback>
|
|
108
|
-
<AvatarBadge class="bg-emerald-600" aria-hidden="true" />
|
|
109
|
-
</Avatar>
|
|
110
|
-
} @else {
|
|
111
|
-
@if (photoUrl(); as url) {
|
|
112
|
-
<img [src]="url" [alt]="photoAlt()" class="h-full w-full object-cover" />
|
|
113
|
-
} @else {
|
|
114
|
-
{{ initials() }}
|
|
115
|
-
}
|
|
114
|
+
<AvatarBadge class="bg-emerald-600" aria-hidden="true" />
|
|
116
115
|
}
|
|
117
116
|
</ng-template>
|
|
118
117
|
`,
|
|
@@ -125,7 +124,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
125
124
|
ButtonComponent,
|
|
126
125
|
],
|
|
127
126
|
}]
|
|
128
|
-
}], propDecorators: { initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: true }] }], photoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "photoUrl", required: false }] }], photoAlt: [{ type: i0.Input, args: [{ isSignal: true, alias: "photoAlt", required: false }] }], radiusClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "radiusClass", required: false }] }], asButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "asButton", required: false }] }], buttonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonLabel", required: false }] }], showOnlineIndicator: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOnlineIndicator", required: false }] }] } });
|
|
127
|
+
}], propDecorators: { initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: true }] }], photoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "photoUrl", required: false }] }], photoAlt: [{ type: i0.Input, args: [{ isSignal: true, alias: "photoAlt", required: false }] }], radiusClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "radiusClass", required: false }] }], asButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "asButton", required: false }] }], useAvatar: [{ type: i0.Input, args: [{ isSignal: true, alias: "useAvatar", required: false }] }], buttonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonLabel", required: false }] }], showOnlineIndicator: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOnlineIndicator", required: false }] }] } });
|
|
129
128
|
|
|
130
129
|
class BlockShellNavigationMetaComponent {
|
|
131
130
|
name = input.required(/* @ts-ignore */
|
|
@@ -185,11 +184,15 @@ class BlockShellNavigationFooterComponent {
|
|
|
185
184
|
/** Sembunyikan seluruh metadata pengguna, termasuk dari DOM. */
|
|
186
185
|
showMeta = input(true, /* @ts-ignore */
|
|
187
186
|
...(ngDevMode ? [{ debugName: "showMeta" }] : /* istanbul ignore next */ []));
|
|
187
|
+
hideSubtitle = input(false, /* @ts-ignore */
|
|
188
|
+
...(ngDevMode ? [{ debugName: "hideSubtitle" }] : /* istanbul ignore next */ []));
|
|
188
189
|
/** Gunakan elemen button tanpa mengubah tampilan avatar. */
|
|
189
190
|
avatarButton = input(false, /* @ts-ignore */
|
|
190
191
|
...(ngDevMode ? [{ debugName: "avatarButton" }] : /* istanbul ignore next */ []));
|
|
191
192
|
avatarButtonLabel = input('User menu', /* @ts-ignore */
|
|
192
193
|
...(ngDevMode ? [{ debugName: "avatarButtonLabel" }] : /* istanbul ignore next */ []));
|
|
194
|
+
useAvatar = input(false, /* @ts-ignore */
|
|
195
|
+
...(ngDevMode ? [{ debugName: "useAvatar" }] : /* istanbul ignore next */ []));
|
|
193
196
|
/** Tampilkan presence badge pada avatar, dipakai khusus footer Desktop. */
|
|
194
197
|
avatarOnline = input(false, /* @ts-ignore */
|
|
195
198
|
...(ngDevMode ? [{ debugName: "avatarOnline" }] : /* istanbul ignore next */ []));
|
|
@@ -208,7 +211,7 @@ class BlockShellNavigationFooterComponent {
|
|
|
208
211
|
}, /* @ts-ignore */
|
|
209
212
|
...(ngDevMode ? [{ debugName: "resolvedInitials" }] : /* istanbul ignore next */ []));
|
|
210
213
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellNavigationFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
211
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellNavigationFooterComponent, isStandalone: true, selector: "block-shell-navigation-footer", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: true, transformFunction: null }, initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: false, transformFunction: null }, photoUrl: { classPropertyName: "photoUrl", publicName: "photoUrl", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, desktopOnly: { classPropertyName: "desktopOnly", publicName: "desktopOnly", isSignal: true, isRequired: false, transformFunction: null }, avatarRadiusClass: { classPropertyName: "avatarRadiusClass", publicName: "avatarRadiusClass", isSignal: true, isRequired: false, transformFunction: null }, showMeta: { classPropertyName: "showMeta", publicName: "showMeta", isSignal: true, isRequired: false, transformFunction: null }, avatarButton: { classPropertyName: "avatarButton", publicName: "avatarButton", isSignal: true, isRequired: false, transformFunction: null }, avatarButtonLabel: { classPropertyName: "avatarButtonLabel", publicName: "avatarButtonLabel", isSignal: true, isRequired: false, transformFunction: null }, avatarOnline: { classPropertyName: "avatarOnline", publicName: "avatarOnline", isSignal: true, isRequired: false, transformFunction: null }, actionTemplate: { classPropertyName: "actionTemplate", publicName: "actionTemplate", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
214
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellNavigationFooterComponent, isStandalone: true, selector: "block-shell-navigation-footer", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: true, transformFunction: null }, initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: false, transformFunction: null }, photoUrl: { classPropertyName: "photoUrl", publicName: "photoUrl", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, desktopOnly: { classPropertyName: "desktopOnly", publicName: "desktopOnly", isSignal: true, isRequired: false, transformFunction: null }, avatarRadiusClass: { classPropertyName: "avatarRadiusClass", publicName: "avatarRadiusClass", isSignal: true, isRequired: false, transformFunction: null }, showMeta: { classPropertyName: "showMeta", publicName: "showMeta", isSignal: true, isRequired: false, transformFunction: null }, hideSubtitle: { classPropertyName: "hideSubtitle", publicName: "hideSubtitle", isSignal: true, isRequired: false, transformFunction: null }, avatarButton: { classPropertyName: "avatarButton", publicName: "avatarButton", isSignal: true, isRequired: false, transformFunction: null }, avatarButtonLabel: { classPropertyName: "avatarButtonLabel", publicName: "avatarButtonLabel", isSignal: true, isRequired: false, transformFunction: null }, useAvatar: { classPropertyName: "useAvatar", publicName: "useAvatar", isSignal: true, isRequired: false, transformFunction: null }, avatarOnline: { classPropertyName: "avatarOnline", publicName: "avatarOnline", isSignal: true, isRequired: false, transformFunction: null }, actionTemplate: { classPropertyName: "actionTemplate", publicName: "actionTemplate", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
212
215
|
@if (collapsible()) {
|
|
213
216
|
<div NavigationCollapseRoot class="flex w-full items-center gap-3">
|
|
214
217
|
<block-shell-navigation-avatar
|
|
@@ -218,21 +221,27 @@ class BlockShellNavigationFooterComponent {
|
|
|
218
221
|
[radiusClass]="avatarRadiusClass()"
|
|
219
222
|
[asButton]="avatarButton()"
|
|
220
223
|
[buttonLabel]="avatarButtonLabel()"
|
|
224
|
+
[useAvatar]="useAvatar()"
|
|
221
225
|
[showOnlineIndicator]="avatarOnline()"
|
|
222
226
|
/>
|
|
223
227
|
|
|
224
|
-
|
|
228
|
+
@if (showMeta()) {
|
|
225
229
|
<div *NavigationCollapseExpanded class="min-w-0">
|
|
226
230
|
<block-shell-navigation-meta
|
|
227
231
|
[name]="name()"
|
|
228
232
|
[subtitle]="subtitle()"
|
|
233
|
+
[hideSubtitle]="hideSubtitle()"
|
|
229
234
|
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
230
235
|
/>
|
|
231
236
|
</div>
|
|
232
237
|
}
|
|
233
238
|
|
|
234
239
|
@if (actionTemplate()) {
|
|
235
|
-
<div
|
|
240
|
+
<div
|
|
241
|
+
*NavigationCollapseExpanded
|
|
242
|
+
data-navigation-footer-actions
|
|
243
|
+
class="ml-auto flex shrink-0 items-center gap-1"
|
|
244
|
+
>
|
|
236
245
|
<ng-container [ngTemplateOutlet]="actionTemplate()" />
|
|
237
246
|
</div>
|
|
238
247
|
}
|
|
@@ -246,18 +255,28 @@ class BlockShellNavigationFooterComponent {
|
|
|
246
255
|
[radiusClass]="avatarRadiusClass()"
|
|
247
256
|
[asButton]="avatarButton()"
|
|
248
257
|
[buttonLabel]="avatarButtonLabel()"
|
|
258
|
+
[useAvatar]="useAvatar()"
|
|
249
259
|
[showOnlineIndicator]="avatarOnline()"
|
|
250
260
|
/>
|
|
251
261
|
@if (showMeta()) {
|
|
252
262
|
<block-shell-navigation-meta
|
|
253
263
|
[name]="name()"
|
|
254
264
|
[subtitle]="subtitle()"
|
|
265
|
+
[hideSubtitle]="hideSubtitle()"
|
|
255
266
|
[containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'"
|
|
256
267
|
/>
|
|
257
268
|
}
|
|
269
|
+
@if (actionTemplate()) {
|
|
270
|
+
<div
|
|
271
|
+
data-navigation-footer-actions
|
|
272
|
+
class="ml-auto flex shrink-0 items-center gap-1"
|
|
273
|
+
>
|
|
274
|
+
<ng-container [ngTemplateOutlet]="actionTemplate()" />
|
|
275
|
+
</div>
|
|
276
|
+
}
|
|
258
277
|
</div>
|
|
259
278
|
}
|
|
260
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NavigationCollapseRootDirective, selector: "[NavigationCollapseRoot]" }, { kind: "directive", type: NavigationCollapseExpandedDirective, selector: "[NavigationCollapseExpanded]" }, { kind: "component", type: BlockShellNavigationAvatarComponent, selector: "block-shell-navigation-avatar", inputs: ["initials", "photoUrl", "photoAlt", "radiusClass", "asButton", "buttonLabel", "showOnlineIndicator"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass", "hideSubtitle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
279
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NavigationCollapseRootDirective, selector: "[NavigationCollapseRoot]" }, { kind: "directive", type: NavigationCollapseExpandedDirective, selector: "[NavigationCollapseExpanded]" }, { kind: "component", type: BlockShellNavigationAvatarComponent, selector: "block-shell-navigation-avatar", inputs: ["initials", "photoUrl", "photoAlt", "radiusClass", "asButton", "useAvatar", "buttonLabel", "showOnlineIndicator"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass", "hideSubtitle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
261
280
|
}
|
|
262
281
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellNavigationFooterComponent, decorators: [{
|
|
263
282
|
type: Component,
|
|
@@ -283,21 +302,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
283
302
|
[radiusClass]="avatarRadiusClass()"
|
|
284
303
|
[asButton]="avatarButton()"
|
|
285
304
|
[buttonLabel]="avatarButtonLabel()"
|
|
305
|
+
[useAvatar]="useAvatar()"
|
|
286
306
|
[showOnlineIndicator]="avatarOnline()"
|
|
287
307
|
/>
|
|
288
308
|
|
|
289
|
-
|
|
309
|
+
@if (showMeta()) {
|
|
290
310
|
<div *NavigationCollapseExpanded class="min-w-0">
|
|
291
311
|
<block-shell-navigation-meta
|
|
292
312
|
[name]="name()"
|
|
293
313
|
[subtitle]="subtitle()"
|
|
314
|
+
[hideSubtitle]="hideSubtitle()"
|
|
294
315
|
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
295
316
|
/>
|
|
296
317
|
</div>
|
|
297
318
|
}
|
|
298
319
|
|
|
299
320
|
@if (actionTemplate()) {
|
|
300
|
-
<div
|
|
321
|
+
<div
|
|
322
|
+
*NavigationCollapseExpanded
|
|
323
|
+
data-navigation-footer-actions
|
|
324
|
+
class="ml-auto flex shrink-0 items-center gap-1"
|
|
325
|
+
>
|
|
301
326
|
<ng-container [ngTemplateOutlet]="actionTemplate()" />
|
|
302
327
|
</div>
|
|
303
328
|
}
|
|
@@ -311,20 +336,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
311
336
|
[radiusClass]="avatarRadiusClass()"
|
|
312
337
|
[asButton]="avatarButton()"
|
|
313
338
|
[buttonLabel]="avatarButtonLabel()"
|
|
339
|
+
[useAvatar]="useAvatar()"
|
|
314
340
|
[showOnlineIndicator]="avatarOnline()"
|
|
315
341
|
/>
|
|
316
342
|
@if (showMeta()) {
|
|
317
343
|
<block-shell-navigation-meta
|
|
318
344
|
[name]="name()"
|
|
319
345
|
[subtitle]="subtitle()"
|
|
346
|
+
[hideSubtitle]="hideSubtitle()"
|
|
320
347
|
[containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'"
|
|
321
348
|
/>
|
|
322
349
|
}
|
|
350
|
+
@if (actionTemplate()) {
|
|
351
|
+
<div
|
|
352
|
+
data-navigation-footer-actions
|
|
353
|
+
class="ml-auto flex shrink-0 items-center gap-1"
|
|
354
|
+
>
|
|
355
|
+
<ng-container [ngTemplateOutlet]="actionTemplate()" />
|
|
356
|
+
</div>
|
|
357
|
+
}
|
|
323
358
|
</div>
|
|
324
359
|
}
|
|
325
360
|
`,
|
|
326
361
|
}]
|
|
327
|
-
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: true }] }], initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: false }] }], photoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "photoUrl", required: false }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }], desktopOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "desktopOnly", required: false }] }], avatarRadiusClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarRadiusClass", required: false }] }], showMeta: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMeta", required: false }] }], avatarButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarButton", required: false }] }], avatarButtonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarButtonLabel", required: false }] }], avatarOnline: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarOnline", required: false }] }], actionTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionTemplate", required: false }] }] } });
|
|
362
|
+
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: true }] }], initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: false }] }], photoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "photoUrl", required: false }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }], desktopOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "desktopOnly", required: false }] }], avatarRadiusClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarRadiusClass", required: false }] }], showMeta: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMeta", required: false }] }], hideSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideSubtitle", required: false }] }], avatarButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarButton", required: false }] }], avatarButtonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarButtonLabel", required: false }] }], useAvatar: [{ type: i0.Input, args: [{ isSignal: true, alias: "useAvatar", required: false }] }], avatarOnline: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarOnline", required: false }] }], actionTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionTemplate", required: false }] }] } });
|
|
328
363
|
|
|
329
364
|
class BlockShellLogoComponent {
|
|
330
365
|
text = input('ETOS', /* @ts-ignore */
|
|
@@ -563,6 +598,9 @@ class BlockShellSidebarNavigationComponent {
|
|
|
563
598
|
[subtitle]="userPosition()"
|
|
564
599
|
[photoUrl]="userPhotoUrl()"
|
|
565
600
|
[collapsible]="true"
|
|
601
|
+
avatarRadiusClass="rounded-full"
|
|
602
|
+
[useAvatar]="true"
|
|
603
|
+
[hideSubtitle]="true"
|
|
566
604
|
[actionTemplate]="footerActionTemplate()"
|
|
567
605
|
/>
|
|
568
606
|
</NavigationFooter>
|
|
@@ -572,6 +610,7 @@ class BlockShellSidebarNavigationComponent {
|
|
|
572
610
|
<block-shell-navigation-meta
|
|
573
611
|
[name]="userName()"
|
|
574
612
|
[subtitle]="userPosition()"
|
|
613
|
+
[hideSubtitle]="true"
|
|
575
614
|
[containerClass]="'min-w-0 flex-1'"
|
|
576
615
|
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
577
616
|
/>
|
|
@@ -600,13 +639,16 @@ class BlockShellSidebarNavigationComponent {
|
|
|
600
639
|
[subtitle]="userPosition()"
|
|
601
640
|
[photoUrl]="userPhotoUrl()"
|
|
602
641
|
[collapsible]="true"
|
|
642
|
+
avatarRadiusClass="rounded-full"
|
|
643
|
+
[useAvatar]="true"
|
|
644
|
+
[hideSubtitle]="true"
|
|
603
645
|
[actionTemplate]="footerActionTemplate()"
|
|
604
646
|
/>
|
|
605
647
|
</NavigationFooter>
|
|
606
648
|
</NavigationSidebar>
|
|
607
649
|
}
|
|
608
650
|
</Navigation>
|
|
609
|
-
`, isInline: true, dependencies: [{ kind: "component", type: NavigationContainerComponent, selector: "Navigation", inputs: ["id", "data", "items", "ariaLabel", "compact", "collapse-tree", "class", "itemClass", "nav-group-class", "activeIds", "activeUrl", "openedIds"], outputs: ["openedIdsChange", "itemSelected"] }, { kind: "component", type: NavigationSidebarComponent, selector: "NavigationSidebar", inputs: ["position", "collapsed", "nav-sidebar-collapse", "previewExpanded", "class"] }, { kind: "component", type: NavigationDockbarComponent, selector: "NavigationDockbar", inputs: ["mode", "position", "typeStyle", "nav-type-style", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "navigation-history", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class", "borderless"] }, { kind: "directive", type: NavigationAsideFooterDirective, selector: "ng-template[NavigationAsideFooter]" }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "logoText", "homePath", "collapsible"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "photoUrl", "collapsible", "desktopOnly", "avatarRadiusClass", "showMeta", "avatarButton", "avatarButtonLabel", "avatarOnline", "actionTemplate"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass", "hideSubtitle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
651
|
+
`, isInline: true, dependencies: [{ kind: "component", type: NavigationContainerComponent, selector: "Navigation", inputs: ["id", "data", "items", "ariaLabel", "compact", "collapse-tree", "class", "itemClass", "nav-group-class", "activeIds", "activeUrl", "openedIds"], outputs: ["openedIdsChange", "itemSelected"] }, { kind: "component", type: NavigationSidebarComponent, selector: "NavigationSidebar", inputs: ["position", "collapsed", "nav-sidebar-collapse", "previewExpanded", "class"] }, { kind: "component", type: NavigationDockbarComponent, selector: "NavigationDockbar", inputs: ["mode", "position", "typeStyle", "nav-type-style", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "navigation-history", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class", "borderless"] }, { kind: "directive", type: NavigationAsideFooterDirective, selector: "ng-template[NavigationAsideFooter]" }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "logoText", "homePath", "collapsible"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "photoUrl", "collapsible", "desktopOnly", "avatarRadiusClass", "showMeta", "hideSubtitle", "avatarButton", "avatarButtonLabel", "useAvatar", "avatarOnline", "actionTemplate"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass", "hideSubtitle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
610
652
|
}
|
|
611
653
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellSidebarNavigationComponent, decorators: [{
|
|
612
654
|
type: Component,
|
|
@@ -652,6 +694,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
652
694
|
[subtitle]="userPosition()"
|
|
653
695
|
[photoUrl]="userPhotoUrl()"
|
|
654
696
|
[collapsible]="true"
|
|
697
|
+
avatarRadiusClass="rounded-full"
|
|
698
|
+
[useAvatar]="true"
|
|
699
|
+
[hideSubtitle]="true"
|
|
655
700
|
[actionTemplate]="footerActionTemplate()"
|
|
656
701
|
/>
|
|
657
702
|
</NavigationFooter>
|
|
@@ -661,6 +706,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
661
706
|
<block-shell-navigation-meta
|
|
662
707
|
[name]="userName()"
|
|
663
708
|
[subtitle]="userPosition()"
|
|
709
|
+
[hideSubtitle]="true"
|
|
664
710
|
[containerClass]="'min-w-0 flex-1'"
|
|
665
711
|
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
666
712
|
/>
|
|
@@ -689,6 +735,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
689
735
|
[subtitle]="userPosition()"
|
|
690
736
|
[photoUrl]="userPhotoUrl()"
|
|
691
737
|
[collapsible]="true"
|
|
738
|
+
avatarRadiusClass="rounded-full"
|
|
739
|
+
[useAvatar]="true"
|
|
740
|
+
[hideSubtitle]="true"
|
|
692
741
|
[actionTemplate]="footerActionTemplate()"
|
|
693
742
|
/>
|
|
694
743
|
</NavigationFooter>
|
|
@@ -719,6 +768,8 @@ class BlockShellTopNavigationComponent {
|
|
|
719
768
|
...(ngDevMode ? [{ debugName: "userPosition" }] : /* istanbul ignore next */ []));
|
|
720
769
|
userPhotoUrl = input(undefined, /* @ts-ignore */
|
|
721
770
|
...(ngDevMode ? [{ debugName: "userPhotoUrl" }] : /* istanbul ignore next */ []));
|
|
771
|
+
footerActionTemplate = input(null, /* @ts-ignore */
|
|
772
|
+
...(ngDevMode ? [{ debugName: "footerActionTemplate" }] : /* istanbul ignore next */ []));
|
|
722
773
|
ariaLabel = input('top navigation', /* @ts-ignore */
|
|
723
774
|
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
724
775
|
/** Fallback type ketika localStorage `nav-type` kosong atau tidak valid untuk orientasi horizontal. */
|
|
@@ -750,20 +801,28 @@ class BlockShellTopNavigationComponent {
|
|
|
750
801
|
/** Tema desktop memakai trigger dashboard tanpa label visual; tema lain mempertahankan label. */
|
|
751
802
|
isDesktopTheme = computed(() => this.themeAppearance.appearance() === 'desktop', /* @ts-ignore */
|
|
752
803
|
...(ngDevMode ? [{ debugName: "isDesktopTheme" }] : /* istanbul ignore next */ []));
|
|
753
|
-
|
|
804
|
+
isBrowserTheme = computed(() => this.themeAppearance.appearance() === 'browser', /* @ts-ignore */
|
|
805
|
+
...(ngDevMode ? [{ debugName: "isBrowserTheme" }] : /* istanbul ignore next */ []));
|
|
806
|
+
isRailTheme = computed(() => this.themeAppearance.appearance() === 'rail', /* @ts-ignore */
|
|
807
|
+
...(ngDevMode ? [{ debugName: "isRailTheme" }] : /* istanbul ignore next */ []));
|
|
808
|
+
isFooterFlyoutTheme = computed(() => this.isBrowserTheme() || this.isRailTheme(), /* @ts-ignore */
|
|
809
|
+
...(ngDevMode ? [{ debugName: "isFooterFlyoutTheme" }] : /* istanbul ignore next */ []));
|
|
810
|
+
desktopFlyoutIcon = computed(() => this.isDesktopTheme() ? 'dashboard' : this.isFooterFlyoutTheme() ? 'menu' : null, /* @ts-ignore */
|
|
754
811
|
...(ngDevMode ? [{ debugName: "desktopFlyoutIcon" }] : /* istanbul ignore next */ []));
|
|
812
|
+
flyoutIconOnly = computed(() => this.isDesktopTheme() || this.isFooterFlyoutTheme(), /* @ts-ignore */
|
|
813
|
+
...(ngDevMode ? [{ debugName: "flyoutIconOnly" }] : /* istanbul ignore next */ []));
|
|
755
814
|
desktopFlyoutTriggerRadiusClass = computed(() => this.isDesktopTheme() ? 'rounded-base' : '', /* @ts-ignore */
|
|
756
815
|
...(ngDevMode ? [{ debugName: "desktopFlyoutTriggerRadiusClass" }] : /* istanbul ignore next */ []));
|
|
757
|
-
|
|
758
|
-
...(ngDevMode ? [{ debugName: "
|
|
816
|
+
flyoutTriggerSizeClass = computed(() => this.isDesktopTheme() ? DESKTOP_NAV_CONTROL_SIZE : this.isFooterFlyoutTheme() ? 'size-8' : '', /* @ts-ignore */
|
|
817
|
+
...(ngDevMode ? [{ debugName: "flyoutTriggerSizeClass" }] : /* istanbul ignore next */ []));
|
|
759
818
|
desktopFlyoutIconSize = computed(() => this.isDesktopTheme() ? DESKTOP_FLYOUT_ICON_SIZE : 18, /* @ts-ignore */
|
|
760
819
|
...(ngDevMode ? [{ debugName: "desktopFlyoutIconSize" }] : /* istanbul ignore next */ []));
|
|
761
|
-
desktopAvatarRadiusClass = computed(() => this.isDesktopTheme() ? 'rounded-base' : 'rounded-
|
|
820
|
+
desktopAvatarRadiusClass = computed(() => this.isDesktopTheme() ? 'rounded-base' : 'rounded-full', /* @ts-ignore */
|
|
762
821
|
...(ngDevMode ? [{ debugName: "desktopAvatarRadiusClass" }] : /* istanbul ignore next */ []));
|
|
763
822
|
desktopAvatarButtonLabel = computed(() => `User menu: ${this.userName()}`, /* @ts-ignore */
|
|
764
823
|
...(ngDevMode ? [{ debugName: "desktopAvatarButtonLabel" }] : /* istanbul ignore next */ []));
|
|
765
824
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellTopNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
766
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellTopNavigationComponent, isStandalone: true, selector: "block-shell-top-navigation", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: true, transformFunction: null }, userPosition: { classPropertyName: "userPosition", publicName: "userPosition", isSignal: true, isRequired: true, transformFunction: null }, userPhotoUrl: { classPropertyName: "userPhotoUrl", publicName: "userPhotoUrl", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, flyoutLabel: { classPropertyName: "flyoutLabel", publicName: "flyoutLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
825
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellTopNavigationComponent, isStandalone: true, selector: "block-shell-top-navigation", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: true, transformFunction: null }, userPosition: { classPropertyName: "userPosition", publicName: "userPosition", isSignal: true, isRequired: true, transformFunction: null }, userPhotoUrl: { classPropertyName: "userPhotoUrl", publicName: "userPhotoUrl", isSignal: true, isRequired: false, transformFunction: null }, footerActionTemplate: { classPropertyName: "footerActionTemplate", publicName: "footerActionTemplate", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, flyoutLabel: { classPropertyName: "flyoutLabel", publicName: "flyoutLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
767
826
|
<Navigation
|
|
768
827
|
id="main"
|
|
769
828
|
[data]="navigation()"
|
|
@@ -775,11 +834,12 @@ class BlockShellTopNavigationComponent {
|
|
|
775
834
|
<NavigationFlyout
|
|
776
835
|
[label]="flyoutLabel()"
|
|
777
836
|
[icon]="desktopFlyoutIcon()"
|
|
778
|
-
[icon-only]="
|
|
837
|
+
[icon-only]="flyoutIconOnly()"
|
|
779
838
|
[trigger-radius-class]="desktopFlyoutTriggerRadiusClass()"
|
|
780
|
-
[trigger-size-class]="
|
|
839
|
+
[trigger-size-class]="flyoutTriggerSizeClass()"
|
|
781
840
|
[trigger-borderless]="isDesktopTheme()"
|
|
782
841
|
[trigger-backgroundless]="isDesktopTheme()"
|
|
842
|
+
[trigger-in-footer]="isFooterFlyoutTheme()"
|
|
783
843
|
[icon-size]="desktopFlyoutIconSize()"
|
|
784
844
|
[nav-type-style]="navTypeStyle()"
|
|
785
845
|
>
|
|
@@ -805,7 +865,9 @@ class BlockShellTopNavigationComponent {
|
|
|
805
865
|
[showMeta]="!isDesktopTheme()"
|
|
806
866
|
[avatarButton]="isDesktopTheme()"
|
|
807
867
|
[avatarButtonLabel]="desktopAvatarButtonLabel()"
|
|
868
|
+
[useAvatar]="!isDesktopTheme()"
|
|
808
869
|
[avatarOnline]="isDesktopTheme()"
|
|
870
|
+
[actionTemplate]="footerActionTemplate()"
|
|
809
871
|
/>
|
|
810
872
|
</NavigationFooter>
|
|
811
873
|
</NavigationFlyout>
|
|
@@ -825,13 +887,16 @@ class BlockShellTopNavigationComponent {
|
|
|
825
887
|
[subtitle]="userPosition()"
|
|
826
888
|
[photoUrl]="userPhotoUrl()"
|
|
827
889
|
[desktopOnly]="true"
|
|
890
|
+
[avatarRadiusClass]="desktopAvatarRadiusClass()"
|
|
891
|
+
[useAvatar]="!isDesktopTheme()"
|
|
828
892
|
[avatarOnline]="isDesktopTheme()"
|
|
893
|
+
[actionTemplate]="footerActionTemplate()"
|
|
829
894
|
/>
|
|
830
895
|
</NavigationFooter>
|
|
831
896
|
</NavigationNavbar>
|
|
832
897
|
}
|
|
833
898
|
</Navigation>
|
|
834
|
-
`, isInline: true, dependencies: [{ kind: "component", type: NavigationContainerComponent, selector: "Navigation", inputs: ["id", "data", "items", "ariaLabel", "compact", "collapse-tree", "class", "itemClass", "nav-group-class", "activeIds", "activeUrl", "openedIds"], outputs: ["openedIdsChange", "itemSelected"] }, { kind: "component", type: NavigationContentComponent, selector: "NavigationContent", inputs: ["class"] }, { kind: "component", type: NavigationNavbarComponent, selector: "NavigationNavbar", inputs: ["nav-position", "nav-type-style", "class"] }, { kind: "component", type: NavigationFlyoutComponent, selector: "NavigationFlyout", inputs: ["label", "icon", "icon-only", "icon-position", "trigger-radius-class", "trigger-size-class", "trigger-borderless", "trigger-backgroundless", "icon-size", "nav-position", "nav-type-style", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "navigation-history", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class", "borderless"] }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "logoText", "homePath", "collapsible"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "photoUrl", "collapsible", "desktopOnly", "avatarRadiusClass", "showMeta", "avatarButton", "avatarButtonLabel", "avatarOnline", "actionTemplate"] }] });
|
|
899
|
+
`, isInline: true, dependencies: [{ kind: "component", type: NavigationContainerComponent, selector: "Navigation", inputs: ["id", "data", "items", "ariaLabel", "compact", "collapse-tree", "class", "itemClass", "nav-group-class", "activeIds", "activeUrl", "openedIds"], outputs: ["openedIdsChange", "itemSelected"] }, { kind: "component", type: NavigationContentComponent, selector: "NavigationContent", inputs: ["class"] }, { kind: "component", type: NavigationNavbarComponent, selector: "NavigationNavbar", inputs: ["nav-position", "nav-type-style", "class"] }, { kind: "component", type: NavigationFlyoutComponent, selector: "NavigationFlyout", inputs: ["label", "icon", "icon-only", "icon-position", "trigger-radius-class", "trigger-size-class", "trigger-borderless", "trigger-backgroundless", "icon-size", "trigger-in-footer", "nav-position", "nav-type-style", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "navigation-history", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class", "borderless"] }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "logoText", "homePath", "collapsible"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "photoUrl", "collapsible", "desktopOnly", "avatarRadiusClass", "showMeta", "hideSubtitle", "avatarButton", "avatarButtonLabel", "useAvatar", "avatarOnline", "actionTemplate"] }] });
|
|
835
900
|
}
|
|
836
901
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellTopNavigationComponent, decorators: [{
|
|
837
902
|
type: Component,
|
|
@@ -862,11 +927,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
862
927
|
<NavigationFlyout
|
|
863
928
|
[label]="flyoutLabel()"
|
|
864
929
|
[icon]="desktopFlyoutIcon()"
|
|
865
|
-
[icon-only]="
|
|
930
|
+
[icon-only]="flyoutIconOnly()"
|
|
866
931
|
[trigger-radius-class]="desktopFlyoutTriggerRadiusClass()"
|
|
867
|
-
[trigger-size-class]="
|
|
932
|
+
[trigger-size-class]="flyoutTriggerSizeClass()"
|
|
868
933
|
[trigger-borderless]="isDesktopTheme()"
|
|
869
934
|
[trigger-backgroundless]="isDesktopTheme()"
|
|
935
|
+
[trigger-in-footer]="isFooterFlyoutTheme()"
|
|
870
936
|
[icon-size]="desktopFlyoutIconSize()"
|
|
871
937
|
[nav-type-style]="navTypeStyle()"
|
|
872
938
|
>
|
|
@@ -892,7 +958,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
892
958
|
[showMeta]="!isDesktopTheme()"
|
|
893
959
|
[avatarButton]="isDesktopTheme()"
|
|
894
960
|
[avatarButtonLabel]="desktopAvatarButtonLabel()"
|
|
961
|
+
[useAvatar]="!isDesktopTheme()"
|
|
895
962
|
[avatarOnline]="isDesktopTheme()"
|
|
963
|
+
[actionTemplate]="footerActionTemplate()"
|
|
896
964
|
/>
|
|
897
965
|
</NavigationFooter>
|
|
898
966
|
</NavigationFlyout>
|
|
@@ -912,7 +980,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
912
980
|
[subtitle]="userPosition()"
|
|
913
981
|
[photoUrl]="userPhotoUrl()"
|
|
914
982
|
[desktopOnly]="true"
|
|
983
|
+
[avatarRadiusClass]="desktopAvatarRadiusClass()"
|
|
984
|
+
[useAvatar]="!isDesktopTheme()"
|
|
915
985
|
[avatarOnline]="isDesktopTheme()"
|
|
986
|
+
[actionTemplate]="footerActionTemplate()"
|
|
916
987
|
/>
|
|
917
988
|
</NavigationFooter>
|
|
918
989
|
</NavigationNavbar>
|
|
@@ -920,7 +991,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
920
991
|
</Navigation>
|
|
921
992
|
`,
|
|
922
993
|
}]
|
|
923
|
-
}], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], userName: [{ type: i0.Input, args: [{ isSignal: true, alias: "userName", required: true }] }], userPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPosition", required: true }] }], userPhotoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPhotoUrl", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], flyoutLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "flyoutLabel", required: false }] }] } });
|
|
994
|
+
}], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], userName: [{ type: i0.Input, args: [{ isSignal: true, alias: "userName", required: true }] }], userPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPosition", required: true }] }], userPhotoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPhotoUrl", required: false }] }], footerActionTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerActionTemplate", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], flyoutLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "flyoutLabel", required: false }] }] } });
|
|
924
995
|
|
|
925
996
|
class BlockShellNavigationPanelDirective {
|
|
926
997
|
templateRef = inject((TemplateRef));
|
|
@@ -946,13 +1017,13 @@ class BlockShellComponent {
|
|
|
946
1017
|
navigation = input.required(/* @ts-ignore */
|
|
947
1018
|
...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
|
|
948
1019
|
/**
|
|
949
|
-
* @deprecated Tidak lagi dipakai. Navigasi
|
|
950
|
-
*
|
|
1020
|
+
* @deprecated Tidak lagi dipakai. Navigasi layout browser/rail memakai id `main`, sedangkan
|
|
1021
|
+
* app bar desktop memakai `desktop-main` agar pergantian appearance tidak memiliki owner ganda.
|
|
951
1022
|
* Input dipertahankan sementara demi kompatibilitas pemanggil.
|
|
952
1023
|
*/
|
|
953
1024
|
navbarId = input('main', /* @ts-ignore */
|
|
954
1025
|
...(ngDevMode ? [{ debugName: "navbarId" }] : /* istanbul ignore next */ []));
|
|
955
|
-
/** @deprecated Tidak lagi dipakai.
|
|
1026
|
+
/** @deprecated Tidak lagi dipakai. Lihat kontrak ownership navigation pada `navbarId`. */
|
|
956
1027
|
sidebarNavId = input('main', /* @ts-ignore */
|
|
957
1028
|
...(ngDevMode ? [{ debugName: "sidebarNavId" }] : /* istanbul ignore next */ []));
|
|
958
1029
|
shellName = input.required(/* @ts-ignore */
|
|
@@ -975,31 +1046,77 @@ class BlockShellComponent {
|
|
|
975
1046
|
...(ngDevMode ? [{ debugName: "contentAriaLabel" }] : /* istanbul ignore next */ []));
|
|
976
1047
|
navigationPanelOpen = input(false, /* @ts-ignore */
|
|
977
1048
|
...(ngDevMode ? [{ debugName: "navigationPanelOpen" }] : /* istanbul ignore next */ []));
|
|
1049
|
+
desktopThemeSettingsRequested = output();
|
|
1050
|
+
runtimeContext = inject(RuntimeContextService, { optional: true });
|
|
1051
|
+
nativeHost = inject(NativeHostService, { optional: true });
|
|
978
1052
|
layout = inject(LayoutService);
|
|
1053
|
+
isDesktopAppearance = computed(() => this.layout.appearance() === 'desktop', /* @ts-ignore */
|
|
1054
|
+
...(ngDevMode ? [{ debugName: "isDesktopAppearance" }] : /* istanbul ignore next */ []));
|
|
1055
|
+
desktopAppBarPlatform = computed(() => {
|
|
1056
|
+
const context = this.runtimeContext?.context();
|
|
1057
|
+
if (!context || context.host === 'browser') {
|
|
1058
|
+
return undefined;
|
|
1059
|
+
}
|
|
1060
|
+
return context.deviceType === 'macos' || context.deviceType === 'windows'
|
|
1061
|
+
? context.deviceType
|
|
1062
|
+
: null;
|
|
1063
|
+
}, /* @ts-ignore */
|
|
1064
|
+
...(ngDevMode ? [{ debugName: "desktopAppBarPlatform" }] : /* istanbul ignore next */ []));
|
|
979
1065
|
navigationPanel = contentChild(BlockShellNavigationPanelDirective, /* @ts-ignore */
|
|
980
1066
|
...(ngDevMode ? [{ debugName: "navigationPanel" }] : /* istanbul ignore next */ []));
|
|
981
1067
|
footerAction = contentChild(BlockShellNavigationFooterActionDirective, /* @ts-ignore */
|
|
982
1068
|
...(ngDevMode ? [{ debugName: "footerAction" }] : /* istanbul ignore next */ []));
|
|
983
1069
|
navigationPanelActive = computed(() => this.layout.type() === 'vertical' && this.navigationPanelOpen() && !!this.navigationPanel(), /* @ts-ignore */
|
|
984
1070
|
...(ngDevMode ? [{ debugName: "navigationPanelActive" }] : /* istanbul ignore next */ []));
|
|
1071
|
+
onDesktopWindowControlRequested(action) {
|
|
1072
|
+
const nativeHost = this.nativeHost;
|
|
1073
|
+
if (!nativeHost?.supports('window-controls')) {
|
|
1074
|
+
return;
|
|
1075
|
+
}
|
|
1076
|
+
void nativeHost.emitWindowControl(action).catch((error) => {
|
|
1077
|
+
console.error(`Failed to run window control: ${action}`, error);
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
onDesktopWindowDragRequested() {
|
|
1081
|
+
const nativeHost = this.nativeHost;
|
|
1082
|
+
if (!nativeHost?.supports('window-controls')) {
|
|
1083
|
+
return;
|
|
1084
|
+
}
|
|
1085
|
+
void nativeHost.startDragging().catch((error) => {
|
|
1086
|
+
console.error('Failed to start window dragging', error);
|
|
1087
|
+
});
|
|
1088
|
+
}
|
|
985
1089
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
986
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellComponent, isStandalone: true, selector: "block-shell", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, navbarId: { classPropertyName: "navbarId", publicName: "navbarId", isSignal: true, isRequired: false, transformFunction: null }, sidebarNavId: { classPropertyName: "sidebarNavId", publicName: "sidebarNavId", isSignal: true, isRequired: false, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: true, transformFunction: null }, userPosition: { classPropertyName: "userPosition", publicName: "userPosition", isSignal: true, isRequired: true, transformFunction: null }, userPhotoUrl: { classPropertyName: "userPhotoUrl", publicName: "userPhotoUrl", isSignal: true, isRequired: false, transformFunction: null }, topAriaLabel: { classPropertyName: "topAriaLabel", publicName: "topAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, sideAriaLabel: { classPropertyName: "sideAriaLabel", publicName: "sideAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, contentAriaLabel: { classPropertyName: "contentAriaLabel", publicName: "contentAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, navigationPanelOpen: { classPropertyName: "navigationPanelOpen", publicName: "navigationPanelOpen", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, queries: [{ propertyName: "navigationPanel", first: true, predicate: BlockShellNavigationPanelDirective, descendants: true, isSignal: true }, { propertyName: "footerAction", first: true, predicate: BlockShellNavigationFooterActionDirective, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1090
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellComponent, isStandalone: true, selector: "block-shell", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, navbarId: { classPropertyName: "navbarId", publicName: "navbarId", isSignal: true, isRequired: false, transformFunction: null }, sidebarNavId: { classPropertyName: "sidebarNavId", publicName: "sidebarNavId", isSignal: true, isRequired: false, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: true, transformFunction: null }, userPosition: { classPropertyName: "userPosition", publicName: "userPosition", isSignal: true, isRequired: true, transformFunction: null }, userPhotoUrl: { classPropertyName: "userPhotoUrl", publicName: "userPhotoUrl", isSignal: true, isRequired: false, transformFunction: null }, topAriaLabel: { classPropertyName: "topAriaLabel", publicName: "topAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, sideAriaLabel: { classPropertyName: "sideAriaLabel", publicName: "sideAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, contentAriaLabel: { classPropertyName: "contentAriaLabel", publicName: "contentAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, navigationPanelOpen: { classPropertyName: "navigationPanelOpen", publicName: "navigationPanelOpen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { desktopThemeSettingsRequested: "desktopThemeSettingsRequested" }, host: { classAttribute: "contents" }, queries: [{ propertyName: "navigationPanel", first: true, predicate: BlockShellNavigationPanelDirective, descendants: true, isSignal: true }, { propertyName: "footerAction", first: true, predicate: BlockShellNavigationFooterActionDirective, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1091
|
+
@if (isDesktopAppearance()) {
|
|
1092
|
+
<DesktopAppBar
|
|
1093
|
+
[platform]="desktopAppBarPlatform()"
|
|
1094
|
+
[navigation]="navigation()"
|
|
1095
|
+
(windowControlRequested)="onDesktopWindowControlRequested($event)"
|
|
1096
|
+
(windowDragRequested)="onDesktopWindowDragRequested()"
|
|
1097
|
+
(themeSettingsRequested)="desktopThemeSettingsRequested.emit()"
|
|
1098
|
+
/>
|
|
1099
|
+
}
|
|
1100
|
+
|
|
987
1101
|
<Layout>
|
|
988
1102
|
@switch (layout.type()) {
|
|
989
1103
|
@case ('horizontal') {
|
|
990
1104
|
<LayoutHorizontal>
|
|
991
|
-
|
|
992
|
-
<
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1105
|
+
@if (!isDesktopAppearance()) {
|
|
1106
|
+
<LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
|
|
1107
|
+
<block-shell-top-navigation
|
|
1108
|
+
[navigation]="navigation()"
|
|
1109
|
+
[shellName]="shellName()"
|
|
1110
|
+
[logoText]="logoText()"
|
|
1111
|
+
[homePath]="homePath()"
|
|
1112
|
+
[userName]="userName()"
|
|
1113
|
+
[userPosition]="userPosition()"
|
|
1114
|
+
[userPhotoUrl]="userPhotoUrl()"
|
|
1115
|
+
[ariaLabel]="topAriaLabel()"
|
|
1116
|
+
[footerActionTemplate]="footerAction()?.templateRef ?? null"
|
|
1117
|
+
/>
|
|
1118
|
+
</LayoutNavigation>
|
|
1119
|
+
}
|
|
1003
1120
|
|
|
1004
1121
|
<LayoutContent
|
|
1005
1122
|
data-block-shell-content
|
|
@@ -1008,6 +1125,12 @@ class BlockShellComponent {
|
|
|
1008
1125
|
>
|
|
1009
1126
|
<router-outlet />
|
|
1010
1127
|
</LayoutContent>
|
|
1128
|
+
|
|
1129
|
+
@if (navigationPanel()) {
|
|
1130
|
+
<div hidden aria-hidden="true" data-block-shell-overlay-panel>
|
|
1131
|
+
<ng-container [ngTemplateOutlet]="navigationPanel()!.templateRef" />
|
|
1132
|
+
</div>
|
|
1133
|
+
}
|
|
1011
1134
|
</LayoutHorizontal>
|
|
1012
1135
|
}
|
|
1013
1136
|
|
|
@@ -1025,30 +1148,32 @@ class BlockShellComponent {
|
|
|
1025
1148
|
|
|
1026
1149
|
@default {
|
|
1027
1150
|
<LayoutVertical>
|
|
1028
|
-
|
|
1029
|
-
<
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1151
|
+
@if (!isDesktopAppearance()) {
|
|
1152
|
+
<LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
|
|
1153
|
+
<div
|
|
1154
|
+
class="contents"
|
|
1155
|
+
[hidden]="navigationPanelActive()"
|
|
1156
|
+
[attr.inert]="navigationPanelActive() ? '' : null"
|
|
1157
|
+
[attr.aria-hidden]="navigationPanelActive() ? 'true' : null"
|
|
1158
|
+
>
|
|
1159
|
+
<block-shell-sidebar-navigation
|
|
1160
|
+
[navigation]="navigation()"
|
|
1161
|
+
[shellName]="shellName()"
|
|
1162
|
+
[logoText]="logoText()"
|
|
1163
|
+
[homePath]="homePath()"
|
|
1164
|
+
[userName]="userName()"
|
|
1165
|
+
[userPosition]="userPosition()"
|
|
1166
|
+
[userPhotoUrl]="userPhotoUrl()"
|
|
1167
|
+
[ariaLabel]="sideAriaLabel()"
|
|
1168
|
+
[footerActionTemplate]="footerAction()?.templateRef ?? null"
|
|
1169
|
+
/>
|
|
1170
|
+
</div>
|
|
1047
1171
|
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1172
|
+
@if (navigationPanelActive()) {
|
|
1173
|
+
<ng-container [ngTemplateOutlet]="navigationPanel()!.templateRef" />
|
|
1174
|
+
}
|
|
1175
|
+
</LayoutNavigation>
|
|
1176
|
+
}
|
|
1052
1177
|
|
|
1053
1178
|
<LayoutContent
|
|
1054
1179
|
data-block-shell-content
|
|
@@ -1061,7 +1186,7 @@ class BlockShellComponent {
|
|
|
1061
1186
|
}
|
|
1062
1187
|
}
|
|
1063
1188
|
</Layout>
|
|
1064
|
-
`, isInline: true, dependencies: [{ kind: "component", type: LayoutComponent, selector: "Layout", inputs: ["surface", "width", "class"] }, { kind: "component", type: LayoutVerticalComponent, selector: "LayoutVertical", inputs: ["class"] }, { kind: "component", type: LayoutHorizontalComponent, selector: "LayoutHorizontal", inputs: ["class"] }, { kind: "component", type: LayoutEmptyComponent, selector: "LayoutEmpty", inputs: ["class"] }, { kind: "component", type: LayoutNavigationComponent, selector: "LayoutNavigation", inputs: ["landmarkRole", "ariaLabel", "railOffset", "class"] }, { kind: "component", type: LayoutContentComponent, selector: "LayoutContent", inputs: ["class"] }, { kind: "component", type: BlockShellSidebarNavigationComponent, selector: "block-shell-sidebar-navigation", inputs: ["navigation", "shellName", "logoText", "homePath", "userName", "userPosition", "userPhotoUrl", "ariaLabel", "footerActionTemplate", "type"] }, { kind: "component", type: BlockShellTopNavigationComponent, selector: "block-shell-top-navigation", inputs: ["navigation", "shellName", "logoText", "homePath", "userName", "userPosition", "userPhotoUrl", "ariaLabel", "type", "flyoutLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
|
|
1189
|
+
`, isInline: true, dependencies: [{ kind: "component", type: LayoutComponent, selector: "Layout", inputs: ["surface", "width", "class"] }, { kind: "component", type: LayoutVerticalComponent, selector: "LayoutVertical", inputs: ["class"] }, { kind: "component", type: LayoutHorizontalComponent, selector: "LayoutHorizontal", inputs: ["class"] }, { kind: "component", type: LayoutEmptyComponent, selector: "LayoutEmpty", inputs: ["class"] }, { kind: "component", type: LayoutNavigationComponent, selector: "LayoutNavigation", inputs: ["landmarkRole", "ariaLabel", "railOffset", "class"] }, { kind: "component", type: LayoutContentComponent, selector: "LayoutContent", inputs: ["class"] }, { kind: "component", type: DesktopAppBarComponent, selector: "DesktopAppBar", inputs: ["class", "avatarInitials", "navigation", "platform"], outputs: ["windowControlRequested", "windowDragRequested", "navigationRequested", "flyoutRequested", "themeSettingsRequested", "avatarRequested"] }, { kind: "component", type: BlockShellSidebarNavigationComponent, selector: "block-shell-sidebar-navigation", inputs: ["navigation", "shellName", "logoText", "homePath", "userName", "userPosition", "userPhotoUrl", "ariaLabel", "footerActionTemplate", "type"] }, { kind: "component", type: BlockShellTopNavigationComponent, selector: "block-shell-top-navigation", inputs: ["navigation", "shellName", "logoText", "homePath", "userName", "userPosition", "userPhotoUrl", "footerActionTemplate", "ariaLabel", "type", "flyoutLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
|
|
1065
1190
|
}
|
|
1066
1191
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellComponent, decorators: [{
|
|
1067
1192
|
type: Component,
|
|
@@ -1074,6 +1199,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1074
1199
|
LayoutEmptyComponent,
|
|
1075
1200
|
LayoutNavigationComponent,
|
|
1076
1201
|
LayoutContentComponent,
|
|
1202
|
+
DesktopAppBarComponent,
|
|
1077
1203
|
BlockShellSidebarNavigationComponent,
|
|
1078
1204
|
BlockShellTopNavigationComponent,
|
|
1079
1205
|
NgTemplateOutlet,
|
|
@@ -1083,22 +1209,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1083
1209
|
class: 'contents',
|
|
1084
1210
|
},
|
|
1085
1211
|
template: `
|
|
1212
|
+
@if (isDesktopAppearance()) {
|
|
1213
|
+
<DesktopAppBar
|
|
1214
|
+
[platform]="desktopAppBarPlatform()"
|
|
1215
|
+
[navigation]="navigation()"
|
|
1216
|
+
(windowControlRequested)="onDesktopWindowControlRequested($event)"
|
|
1217
|
+
(windowDragRequested)="onDesktopWindowDragRequested()"
|
|
1218
|
+
(themeSettingsRequested)="desktopThemeSettingsRequested.emit()"
|
|
1219
|
+
/>
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1086
1222
|
<Layout>
|
|
1087
1223
|
@switch (layout.type()) {
|
|
1088
1224
|
@case ('horizontal') {
|
|
1089
1225
|
<LayoutHorizontal>
|
|
1090
|
-
|
|
1091
|
-
<
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1226
|
+
@if (!isDesktopAppearance()) {
|
|
1227
|
+
<LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
|
|
1228
|
+
<block-shell-top-navigation
|
|
1229
|
+
[navigation]="navigation()"
|
|
1230
|
+
[shellName]="shellName()"
|
|
1231
|
+
[logoText]="logoText()"
|
|
1232
|
+
[homePath]="homePath()"
|
|
1233
|
+
[userName]="userName()"
|
|
1234
|
+
[userPosition]="userPosition()"
|
|
1235
|
+
[userPhotoUrl]="userPhotoUrl()"
|
|
1236
|
+
[ariaLabel]="topAriaLabel()"
|
|
1237
|
+
[footerActionTemplate]="footerAction()?.templateRef ?? null"
|
|
1238
|
+
/>
|
|
1239
|
+
</LayoutNavigation>
|
|
1240
|
+
}
|
|
1102
1241
|
|
|
1103
1242
|
<LayoutContent
|
|
1104
1243
|
data-block-shell-content
|
|
@@ -1107,6 +1246,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1107
1246
|
>
|
|
1108
1247
|
<router-outlet />
|
|
1109
1248
|
</LayoutContent>
|
|
1249
|
+
|
|
1250
|
+
@if (navigationPanel()) {
|
|
1251
|
+
<div hidden aria-hidden="true" data-block-shell-overlay-panel>
|
|
1252
|
+
<ng-container [ngTemplateOutlet]="navigationPanel()!.templateRef" />
|
|
1253
|
+
</div>
|
|
1254
|
+
}
|
|
1110
1255
|
</LayoutHorizontal>
|
|
1111
1256
|
}
|
|
1112
1257
|
|
|
@@ -1124,30 +1269,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1124
1269
|
|
|
1125
1270
|
@default {
|
|
1126
1271
|
<LayoutVertical>
|
|
1127
|
-
|
|
1128
|
-
<
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1272
|
+
@if (!isDesktopAppearance()) {
|
|
1273
|
+
<LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
|
|
1274
|
+
<div
|
|
1275
|
+
class="contents"
|
|
1276
|
+
[hidden]="navigationPanelActive()"
|
|
1277
|
+
[attr.inert]="navigationPanelActive() ? '' : null"
|
|
1278
|
+
[attr.aria-hidden]="navigationPanelActive() ? 'true' : null"
|
|
1279
|
+
>
|
|
1280
|
+
<block-shell-sidebar-navigation
|
|
1281
|
+
[navigation]="navigation()"
|
|
1282
|
+
[shellName]="shellName()"
|
|
1283
|
+
[logoText]="logoText()"
|
|
1284
|
+
[homePath]="homePath()"
|
|
1285
|
+
[userName]="userName()"
|
|
1286
|
+
[userPosition]="userPosition()"
|
|
1287
|
+
[userPhotoUrl]="userPhotoUrl()"
|
|
1288
|
+
[ariaLabel]="sideAriaLabel()"
|
|
1289
|
+
[footerActionTemplate]="footerAction()?.templateRef ?? null"
|
|
1290
|
+
/>
|
|
1291
|
+
</div>
|
|
1146
1292
|
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1293
|
+
@if (navigationPanelActive()) {
|
|
1294
|
+
<ng-container [ngTemplateOutlet]="navigationPanel()!.templateRef" />
|
|
1295
|
+
}
|
|
1296
|
+
</LayoutNavigation>
|
|
1297
|
+
}
|
|
1151
1298
|
|
|
1152
1299
|
<LayoutContent
|
|
1153
1300
|
data-block-shell-content
|
|
@@ -1162,7 +1309,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1162
1309
|
</Layout>
|
|
1163
1310
|
`,
|
|
1164
1311
|
}]
|
|
1165
|
-
}], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], navbarId: [{ type: i0.Input, args: [{ isSignal: true, alias: "navbarId", required: false }] }], sidebarNavId: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarNavId", required: false }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], userName: [{ type: i0.Input, args: [{ isSignal: true, alias: "userName", required: true }] }], userPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPosition", required: true }] }], userPhotoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPhotoUrl", required: false }] }], topAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "topAriaLabel", required: false }] }], sideAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideAriaLabel", required: false }] }], contentAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentAriaLabel", required: false }] }], navigationPanelOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigationPanelOpen", required: false }] }], navigationPanel: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BlockShellNavigationPanelDirective), { isSignal: true }] }], footerAction: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BlockShellNavigationFooterActionDirective), { isSignal: true }] }] } });
|
|
1312
|
+
}], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], navbarId: [{ type: i0.Input, args: [{ isSignal: true, alias: "navbarId", required: false }] }], sidebarNavId: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarNavId", required: false }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], userName: [{ type: i0.Input, args: [{ isSignal: true, alias: "userName", required: true }] }], userPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPosition", required: true }] }], userPhotoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPhotoUrl", required: false }] }], topAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "topAriaLabel", required: false }] }], sideAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideAriaLabel", required: false }] }], contentAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentAriaLabel", required: false }] }], navigationPanelOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigationPanelOpen", required: false }] }], desktopThemeSettingsRequested: [{ type: i0.Output, args: ["desktopThemeSettingsRequested"] }], navigationPanel: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BlockShellNavigationPanelDirective), { isSignal: true }] }], footerAction: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BlockShellNavigationFooterActionDirective), { isSignal: true }] }] } });
|
|
1166
1313
|
|
|
1167
1314
|
const MAIN_SIDEBAR_NAV_ID = 'main';
|
|
1168
1315
|
function workspaceNavbarId(workspace) {
|