@edsis/angular 22.0.44 → 22.0.45
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 +174 -59
- package/fesm2022/edsis-angular-block-shell.mjs.map +1 -1
- package/fesm2022/edsis-angular-block-themes.mjs +601 -0
- package/fesm2022/edsis-angular-block-themes.mjs.map +1 -0
- package/package.json +9 -5
- package/types/edsis-angular-block-shell.d.ts +23 -4
- package/types/edsis-angular-block-themes.d.ts +79 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { NgTemplateOutlet, DOCUMENT } from '@angular/common';
|
|
1
2
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, Component, computed, inject, DestroyRef, signal } from '@angular/core';
|
|
3
|
+
import { input, Component, computed, inject, DestroyRef, signal, TemplateRef, Directive, contentChild } from '@angular/core';
|
|
3
4
|
import { RouterLink, RouterOutlet } from '@angular/router';
|
|
4
5
|
import { LayoutService, LayoutComponent, LayoutVerticalComponent, LayoutHorizontalComponent, LayoutEmptyComponent, LayoutNavigationComponent, LayoutContentComponent } from '@edsis/theme/layout';
|
|
5
|
-
import { DOCUMENT } from '@angular/common';
|
|
6
6
|
import { NavigationCollapseRootDirective, NavigationCollapseExpandedDirective, NavigationContainerComponent, NavigationSidebarComponent, NavigationDockbarComponent, NavigationHeaderComponent, NavigationFooterComponent, NavigationAsideFooterDirective, NavigationNavbarComponent, NavigationFlyoutComponent } from '@edsis/navigation';
|
|
7
7
|
import { NavigationService } from '@edsis/navigation/service';
|
|
8
8
|
import { PopoverContentDirective, PopoverTriggerDirective } from '@edsis/component/popover';
|
|
@@ -97,6 +97,8 @@ class BlockShellNavigationFooterComponent {
|
|
|
97
97
|
...(ngDevMode ? [{ debugName: "collapsible" }] : /* istanbul ignore next */ []));
|
|
98
98
|
desktopOnly = input(false, /* @ts-ignore */
|
|
99
99
|
...(ngDevMode ? [{ debugName: "desktopOnly" }] : /* istanbul ignore next */ []));
|
|
100
|
+
actionTemplate = input(null, /* @ts-ignore */
|
|
101
|
+
...(ngDevMode ? [{ debugName: "actionTemplate" }] : /* istanbul ignore next */ []));
|
|
100
102
|
resolvedInitials = computed(() => {
|
|
101
103
|
const explicitInitials = this.initials()?.trim();
|
|
102
104
|
if (explicitInitials) {
|
|
@@ -110,9 +112,9 @@ class BlockShellNavigationFooterComponent {
|
|
|
110
112
|
}, /* @ts-ignore */
|
|
111
113
|
...(ngDevMode ? [{ debugName: "resolvedInitials" }] : /* istanbul ignore next */ []));
|
|
112
114
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
113
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", 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 } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
115
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", 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 }, actionTemplate: { classPropertyName: "actionTemplate", publicName: "actionTemplate", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
114
116
|
@if (collapsible()) {
|
|
115
|
-
<div NavigationCollapseRoot class="flex items-center gap-3">
|
|
117
|
+
<div NavigationCollapseRoot class="flex w-full items-center gap-3">
|
|
116
118
|
<block-shell-navigation-avatar
|
|
117
119
|
[initials]="resolvedInitials()"
|
|
118
120
|
[photoUrl]="photoUrl()"
|
|
@@ -126,6 +128,12 @@ class BlockShellNavigationFooterComponent {
|
|
|
126
128
|
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
127
129
|
/>
|
|
128
130
|
</div>
|
|
131
|
+
|
|
132
|
+
@if (actionTemplate()) {
|
|
133
|
+
<div *NavigationCollapseExpanded class="ml-auto shrink-0">
|
|
134
|
+
<ng-container [ngTemplateOutlet]="actionTemplate()" />
|
|
135
|
+
</div>
|
|
136
|
+
}
|
|
129
137
|
</div>
|
|
130
138
|
} @else {
|
|
131
139
|
<div class="flex items-center gap-3">
|
|
@@ -141,7 +149,7 @@ class BlockShellNavigationFooterComponent {
|
|
|
141
149
|
/>
|
|
142
150
|
</div>
|
|
143
151
|
}
|
|
144
|
-
`, 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"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass"] }] });
|
|
152
|
+
`, 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"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
145
153
|
}
|
|
146
154
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationFooterComponent, decorators: [{
|
|
147
155
|
type: Component,
|
|
@@ -152,13 +160,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
152
160
|
NavigationCollapseExpandedDirective,
|
|
153
161
|
BlockShellNavigationAvatarComponent,
|
|
154
162
|
BlockShellNavigationMetaComponent,
|
|
163
|
+
NgTemplateOutlet,
|
|
155
164
|
],
|
|
156
165
|
host: {
|
|
157
166
|
class: 'contents',
|
|
158
167
|
},
|
|
159
168
|
template: `
|
|
160
169
|
@if (collapsible()) {
|
|
161
|
-
<div NavigationCollapseRoot class="flex items-center gap-3">
|
|
170
|
+
<div NavigationCollapseRoot class="flex w-full items-center gap-3">
|
|
162
171
|
<block-shell-navigation-avatar
|
|
163
172
|
[initials]="resolvedInitials()"
|
|
164
173
|
[photoUrl]="photoUrl()"
|
|
@@ -172,6 +181,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
172
181
|
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
173
182
|
/>
|
|
174
183
|
</div>
|
|
184
|
+
|
|
185
|
+
@if (actionTemplate()) {
|
|
186
|
+
<div *NavigationCollapseExpanded class="ml-auto shrink-0">
|
|
187
|
+
<ng-container [ngTemplateOutlet]="actionTemplate()" />
|
|
188
|
+
</div>
|
|
189
|
+
}
|
|
175
190
|
</div>
|
|
176
191
|
} @else {
|
|
177
192
|
<div class="flex items-center gap-3">
|
|
@@ -189,7 +204,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
189
204
|
}
|
|
190
205
|
`,
|
|
191
206
|
}]
|
|
192
|
-
}], 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 }] }] } });
|
|
207
|
+
}], 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 }] }], actionTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionTemplate", required: false }] }] } });
|
|
193
208
|
|
|
194
209
|
class BlockShellLogoComponent {
|
|
195
210
|
text = input('ETOS', /* @ts-ignore */
|
|
@@ -481,6 +496,8 @@ class BlockShellSidebarNavigationComponent {
|
|
|
481
496
|
...(ngDevMode ? [{ debugName: "userPhotoUrl" }] : /* istanbul ignore next */ []));
|
|
482
497
|
ariaLabel = input('side navigation', /* @ts-ignore */
|
|
483
498
|
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
499
|
+
footerActionTemplate = input(null, /* @ts-ignore */
|
|
500
|
+
...(ngDevMode ? [{ debugName: "footerActionTemplate" }] : /* istanbul ignore next */ []));
|
|
484
501
|
/** Fallback type ketika localStorage `nav-type` kosong atau tidak valid untuk orientasi vertikal. */
|
|
485
502
|
type = input('sidebar', /* @ts-ignore */
|
|
486
503
|
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
@@ -522,7 +539,7 @@ class BlockShellSidebarNavigationComponent {
|
|
|
522
539
|
return this.documentRef.defaultView?.matchMedia('(max-width: 767.98px)').matches ?? false;
|
|
523
540
|
}
|
|
524
541
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellSidebarNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
525
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: BlockShellSidebarNavigationComponent, isStandalone: true, selector: "block-shell-sidebar-navigation", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, workspaceLinks: { classPropertyName: "workspaceLinks", publicName: "workspaceLinks", isSignal: true, isRequired: false, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null }, brandSubtitle: { classPropertyName: "brandSubtitle", publicName: "brandSubtitle", isSignal: true, isRequired: false, 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 } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
542
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: BlockShellSidebarNavigationComponent, isStandalone: true, selector: "block-shell-sidebar-navigation", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, workspaceLinks: { classPropertyName: "workspaceLinks", publicName: "workspaceLinks", isSignal: true, isRequired: false, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null }, brandSubtitle: { classPropertyName: "brandSubtitle", publicName: "brandSubtitle", isSignal: true, isRequired: false, 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 }, footerActionTemplate: { classPropertyName: "footerActionTemplate", publicName: "footerActionTemplate", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
526
543
|
<Navigation
|
|
527
544
|
id="main"
|
|
528
545
|
[data]="navigation()"
|
|
@@ -549,16 +566,25 @@ class BlockShellSidebarNavigationComponent {
|
|
|
549
566
|
[subtitle]="userPosition()"
|
|
550
567
|
[photoUrl]="userPhotoUrl()"
|
|
551
568
|
[collapsible]="true"
|
|
569
|
+
[actionTemplate]="footerActionTemplate()"
|
|
552
570
|
/>
|
|
553
571
|
</NavigationFooter>
|
|
554
572
|
|
|
555
573
|
<!-- Avatar sudah tampil di rail dock; aside melengkapi dengan identitas tekstual user. -->
|
|
556
574
|
<ng-template NavigationAsideFooter>
|
|
557
|
-
<
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
575
|
+
<div class="flex w-full min-w-0 items-center gap-3">
|
|
576
|
+
<block-shell-navigation-meta
|
|
577
|
+
[name]="userName()"
|
|
578
|
+
[subtitle]="userPosition()"
|
|
579
|
+
[containerClass]="'min-w-0 flex-1'"
|
|
580
|
+
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
581
|
+
/>
|
|
582
|
+
@if (footerActionTemplate()) {
|
|
583
|
+
<div class="ml-auto shrink-0">
|
|
584
|
+
<ng-container [ngTemplateOutlet]="footerActionTemplate()" />
|
|
585
|
+
</div>
|
|
586
|
+
}
|
|
587
|
+
</div>
|
|
562
588
|
</ng-template>
|
|
563
589
|
</NavigationDockbar>
|
|
564
590
|
} @else {
|
|
@@ -580,12 +606,13 @@ class BlockShellSidebarNavigationComponent {
|
|
|
580
606
|
[subtitle]="userPosition()"
|
|
581
607
|
[photoUrl]="userPhotoUrl()"
|
|
582
608
|
[collapsible]="true"
|
|
609
|
+
[actionTemplate]="footerActionTemplate()"
|
|
583
610
|
/>
|
|
584
611
|
</NavigationFooter>
|
|
585
612
|
</NavigationSidebar>
|
|
586
613
|
}
|
|
587
614
|
</Navigation>
|
|
588
|
-
`, 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", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class"] }, { kind: "directive", type: NavigationAsideFooterDirective, selector: "ng-template[NavigationAsideFooter]" }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "subtitle", "logoText", "homePath", "collapsible", "workspaceLinks"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "photoUrl", "collapsible", "desktopOnly"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass"] }] });
|
|
615
|
+
`, 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", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class"] }, { kind: "directive", type: NavigationAsideFooterDirective, selector: "ng-template[NavigationAsideFooter]" }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "subtitle", "logoText", "homePath", "collapsible", "workspaceLinks"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "photoUrl", "collapsible", "desktopOnly", "actionTemplate"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
589
616
|
}
|
|
590
617
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellSidebarNavigationComponent, decorators: [{
|
|
591
618
|
type: Component,
|
|
@@ -601,6 +628,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
601
628
|
BlockShellNavigationHeaderComponent,
|
|
602
629
|
BlockShellNavigationFooterComponent,
|
|
603
630
|
BlockShellNavigationMetaComponent,
|
|
631
|
+
NgTemplateOutlet,
|
|
604
632
|
],
|
|
605
633
|
host: {
|
|
606
634
|
class: 'contents',
|
|
@@ -632,16 +660,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
632
660
|
[subtitle]="userPosition()"
|
|
633
661
|
[photoUrl]="userPhotoUrl()"
|
|
634
662
|
[collapsible]="true"
|
|
663
|
+
[actionTemplate]="footerActionTemplate()"
|
|
635
664
|
/>
|
|
636
665
|
</NavigationFooter>
|
|
637
666
|
|
|
638
667
|
<!-- Avatar sudah tampil di rail dock; aside melengkapi dengan identitas tekstual user. -->
|
|
639
668
|
<ng-template NavigationAsideFooter>
|
|
640
|
-
<
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
669
|
+
<div class="flex w-full min-w-0 items-center gap-3">
|
|
670
|
+
<block-shell-navigation-meta
|
|
671
|
+
[name]="userName()"
|
|
672
|
+
[subtitle]="userPosition()"
|
|
673
|
+
[containerClass]="'min-w-0 flex-1'"
|
|
674
|
+
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
675
|
+
/>
|
|
676
|
+
@if (footerActionTemplate()) {
|
|
677
|
+
<div class="ml-auto shrink-0">
|
|
678
|
+
<ng-container [ngTemplateOutlet]="footerActionTemplate()" />
|
|
679
|
+
</div>
|
|
680
|
+
}
|
|
681
|
+
</div>
|
|
645
682
|
</ng-template>
|
|
646
683
|
</NavigationDockbar>
|
|
647
684
|
} @else {
|
|
@@ -663,6 +700,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
663
700
|
[subtitle]="userPosition()"
|
|
664
701
|
[photoUrl]="userPhotoUrl()"
|
|
665
702
|
[collapsible]="true"
|
|
703
|
+
[actionTemplate]="footerActionTemplate()"
|
|
666
704
|
/>
|
|
667
705
|
</NavigationFooter>
|
|
668
706
|
</NavigationSidebar>
|
|
@@ -670,7 +708,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
670
708
|
</Navigation>
|
|
671
709
|
`,
|
|
672
710
|
}]
|
|
673
|
-
}], ctorParameters: () => [], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", required: false }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], brandSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandSubtitle", required: false }] }], 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 }] }] } });
|
|
711
|
+
}], ctorParameters: () => [], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", required: false }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], brandSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandSubtitle", required: false }] }], 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 }] }], footerActionTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerActionTemplate", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
|
|
674
712
|
|
|
675
713
|
class BlockShellTopNavigationComponent {
|
|
676
714
|
layout = inject(LayoutService);
|
|
@@ -766,7 +804,7 @@ class BlockShellTopNavigationComponent {
|
|
|
766
804
|
</NavigationNavbar>
|
|
767
805
|
}
|
|
768
806
|
</Navigation>
|
|
769
|
-
`, 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: NavigationNavbarComponent, selector: "NavigationNavbar", inputs: ["nav-position", "nav-type-style", "class"] }, { kind: "component", type: NavigationFlyoutComponent, selector: "NavigationFlyout", inputs: ["label", "icon", "icon-only", "icon-position", "nav-position", "nav-type-style", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class"] }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "subtitle", "logoText", "homePath", "collapsible", "workspaceLinks"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "photoUrl", "collapsible", "desktopOnly"] }] });
|
|
807
|
+
`, 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: NavigationNavbarComponent, selector: "NavigationNavbar", inputs: ["nav-position", "nav-type-style", "class"] }, { kind: "component", type: NavigationFlyoutComponent, selector: "NavigationFlyout", inputs: ["label", "icon", "icon-only", "icon-position", "nav-position", "nav-type-style", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class"] }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "subtitle", "logoText", "homePath", "collapsible", "workspaceLinks"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "photoUrl", "collapsible", "desktopOnly", "actionTemplate"] }] });
|
|
770
808
|
}
|
|
771
809
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellTopNavigationComponent, decorators: [{
|
|
772
810
|
type: Component,
|
|
@@ -840,6 +878,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
840
878
|
}]
|
|
841
879
|
}], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", required: false }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], brandSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandSubtitle", required: false }] }], 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 }] }] } });
|
|
842
880
|
|
|
881
|
+
class BlockShellNavigationPanelDirective {
|
|
882
|
+
templateRef = inject((TemplateRef));
|
|
883
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
884
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: BlockShellNavigationPanelDirective, isStandalone: true, selector: "ng-template[blockShellNavigationPanel]", ngImport: i0 });
|
|
885
|
+
}
|
|
886
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationPanelDirective, decorators: [{
|
|
887
|
+
type: Directive,
|
|
888
|
+
args: [{ selector: 'ng-template[blockShellNavigationPanel]' }]
|
|
889
|
+
}] });
|
|
890
|
+
|
|
891
|
+
class BlockShellNavigationFooterActionDirective {
|
|
892
|
+
templateRef = inject((TemplateRef));
|
|
893
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationFooterActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
894
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: BlockShellNavigationFooterActionDirective, isStandalone: true, selector: "ng-template[blockShellNavigationFooterAction]", ngImport: i0 });
|
|
895
|
+
}
|
|
896
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationFooterActionDirective, decorators: [{
|
|
897
|
+
type: Directive,
|
|
898
|
+
args: [{ selector: 'ng-template[blockShellNavigationFooterAction]' }]
|
|
899
|
+
}] });
|
|
900
|
+
|
|
843
901
|
class BlockShellComponent {
|
|
844
902
|
navigation = input.required(/* @ts-ignore */
|
|
845
903
|
...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
|
|
@@ -875,14 +933,22 @@ class BlockShellComponent {
|
|
|
875
933
|
...(ngDevMode ? [{ debugName: "sideAriaLabel" }] : /* istanbul ignore next */ []));
|
|
876
934
|
contentAriaLabel = input('layout content', /* @ts-ignore */
|
|
877
935
|
...(ngDevMode ? [{ debugName: "contentAriaLabel" }] : /* istanbul ignore next */ []));
|
|
936
|
+
navigationPanelOpen = input(false, /* @ts-ignore */
|
|
937
|
+
...(ngDevMode ? [{ debugName: "navigationPanelOpen" }] : /* istanbul ignore next */ []));
|
|
878
938
|
layout = inject(LayoutService);
|
|
939
|
+
navigationPanel = contentChild(BlockShellNavigationPanelDirective, /* @ts-ignore */
|
|
940
|
+
...(ngDevMode ? [{ debugName: "navigationPanel" }] : /* istanbul ignore next */ []));
|
|
941
|
+
footerAction = contentChild(BlockShellNavigationFooterActionDirective, /* @ts-ignore */
|
|
942
|
+
...(ngDevMode ? [{ debugName: "footerAction" }] : /* istanbul ignore next */ []));
|
|
943
|
+
navigationPanelActive = computed(() => this.layout.type() === 'vertical' && this.navigationPanelOpen() && !!this.navigationPanel(), /* @ts-ignore */
|
|
944
|
+
...(ngDevMode ? [{ debugName: "navigationPanelActive" }] : /* istanbul ignore next */ []));
|
|
879
945
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
880
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: BlockShellComponent, isStandalone: true, selector: "block-shell", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, workspaceLinks: { classPropertyName: "workspaceLinks", publicName: "workspaceLinks", isSignal: true, isRequired: false, 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 }, brandSubtitle: { classPropertyName: "brandSubtitle", publicName: "brandSubtitle", isSignal: true, isRequired: false, 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 } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
946
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: BlockShellComponent, isStandalone: true, selector: "block-shell", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, workspaceLinks: { classPropertyName: "workspaceLinks", publicName: "workspaceLinks", isSignal: true, isRequired: false, 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 }, brandSubtitle: { classPropertyName: "brandSubtitle", publicName: "brandSubtitle", isSignal: true, isRequired: false, 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: `
|
|
881
947
|
<Layout>
|
|
882
948
|
@switch (layout.type()) {
|
|
883
949
|
@case ('horizontal') {
|
|
884
950
|
<LayoutHorizontal>
|
|
885
|
-
<LayoutNavigation [ariaLabel]="
|
|
951
|
+
<LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
|
|
886
952
|
<block-shell-top-navigation
|
|
887
953
|
[navigation]="navigation()"
|
|
888
954
|
[workspaceLinks]="workspaceLinks()"
|
|
@@ -897,7 +963,11 @@ class BlockShellComponent {
|
|
|
897
963
|
/>
|
|
898
964
|
</LayoutNavigation>
|
|
899
965
|
|
|
900
|
-
<LayoutContent
|
|
966
|
+
<LayoutContent
|
|
967
|
+
data-block-shell-content
|
|
968
|
+
tabindex="-1"
|
|
969
|
+
[attr.aria-label]="contentAriaLabel()"
|
|
970
|
+
>
|
|
901
971
|
<router-outlet />
|
|
902
972
|
</LayoutContent>
|
|
903
973
|
</LayoutHorizontal>
|
|
@@ -905,7 +975,11 @@ class BlockShellComponent {
|
|
|
905
975
|
|
|
906
976
|
@case ('empty') {
|
|
907
977
|
<LayoutEmpty>
|
|
908
|
-
<LayoutContent
|
|
978
|
+
<LayoutContent
|
|
979
|
+
data-block-shell-content
|
|
980
|
+
tabindex="-1"
|
|
981
|
+
[attr.aria-label]="contentAriaLabel()"
|
|
982
|
+
>
|
|
909
983
|
<router-outlet />
|
|
910
984
|
</LayoutContent>
|
|
911
985
|
</LayoutEmpty>
|
|
@@ -913,29 +987,45 @@ class BlockShellComponent {
|
|
|
913
987
|
|
|
914
988
|
@default {
|
|
915
989
|
<LayoutVertical>
|
|
916
|
-
<LayoutNavigation [ariaLabel]="
|
|
917
|
-
<
|
|
918
|
-
|
|
919
|
-
[
|
|
920
|
-
[
|
|
921
|
-
[
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
990
|
+
<LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
|
|
991
|
+
<div
|
|
992
|
+
class="contents"
|
|
993
|
+
[hidden]="navigationPanelActive()"
|
|
994
|
+
[attr.inert]="navigationPanelActive() ? '' : null"
|
|
995
|
+
[attr.aria-hidden]="navigationPanelActive() ? 'true' : null"
|
|
996
|
+
>
|
|
997
|
+
<block-shell-sidebar-navigation
|
|
998
|
+
[navigation]="navigation()"
|
|
999
|
+
[workspaceLinks]="workspaceLinks()"
|
|
1000
|
+
[shellName]="shellName()"
|
|
1001
|
+
[brandSubtitle]="brandSubtitle()"
|
|
1002
|
+
[logoText]="logoText()"
|
|
1003
|
+
[homePath]="homePath()"
|
|
1004
|
+
[userName]="userName()"
|
|
1005
|
+
[userPosition]="userPosition()"
|
|
1006
|
+
[userPhotoUrl]="userPhotoUrl()"
|
|
1007
|
+
[ariaLabel]="sideAriaLabel()"
|
|
1008
|
+
[footerActionTemplate]="footerAction()?.templateRef ?? null"
|
|
1009
|
+
/>
|
|
1010
|
+
</div>
|
|
1011
|
+
|
|
1012
|
+
@if (navigationPanelActive()) {
|
|
1013
|
+
<ng-container [ngTemplateOutlet]="navigationPanel()!.templateRef" />
|
|
1014
|
+
}
|
|
929
1015
|
</LayoutNavigation>
|
|
930
1016
|
|
|
931
|
-
<LayoutContent
|
|
1017
|
+
<LayoutContent
|
|
1018
|
+
data-block-shell-content
|
|
1019
|
+
tabindex="-1"
|
|
1020
|
+
[attr.aria-label]="contentAriaLabel()"
|
|
1021
|
+
>
|
|
932
1022
|
<router-outlet />
|
|
933
1023
|
</LayoutContent>
|
|
934
1024
|
</LayoutVertical>
|
|
935
1025
|
}
|
|
936
1026
|
}
|
|
937
1027
|
</Layout>
|
|
938
|
-
`, isInline: true, dependencies: [{ kind: "component", type: LayoutComponent, selector: "Layout", inputs: ["surface", "appearance", "layout-style", "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: ["ariaLabel", "railOffset", "class"] }, { kind: "component", type: LayoutContentComponent, selector: "LayoutContent", inputs: ["class"] }, { kind: "component", type: BlockShellSidebarNavigationComponent, selector: "block-shell-sidebar-navigation", inputs: ["navigation", "workspaceLinks", "shellName", "brandSubtitle", "logoText", "homePath", "userName", "userPosition", "userPhotoUrl", "ariaLabel", "type"] }, { kind: "component", type: BlockShellTopNavigationComponent, selector: "block-shell-top-navigation", inputs: ["navigation", "workspaceLinks", "shellName", "brandSubtitle", "logoText", "homePath", "userName", "userPosition", "userPhotoUrl", "ariaLabel", "type", "flyoutLabel"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
|
|
1028
|
+
`, isInline: true, dependencies: [{ kind: "component", type: LayoutComponent, selector: "Layout", inputs: ["surface", "appearance", "layout-style", "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", "workspaceLinks", "shellName", "brandSubtitle", "logoText", "homePath", "userName", "userPosition", "userPhotoUrl", "ariaLabel", "footerActionTemplate", "type"] }, { kind: "component", type: BlockShellTopNavigationComponent, selector: "block-shell-top-navigation", inputs: ["navigation", "workspaceLinks", "shellName", "brandSubtitle", "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"] }] });
|
|
939
1029
|
}
|
|
940
1030
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellComponent, decorators: [{
|
|
941
1031
|
type: Component,
|
|
@@ -950,6 +1040,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
950
1040
|
LayoutContentComponent,
|
|
951
1041
|
BlockShellSidebarNavigationComponent,
|
|
952
1042
|
BlockShellTopNavigationComponent,
|
|
1043
|
+
NgTemplateOutlet,
|
|
953
1044
|
RouterOutlet,
|
|
954
1045
|
],
|
|
955
1046
|
host: {
|
|
@@ -960,7 +1051,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
960
1051
|
@switch (layout.type()) {
|
|
961
1052
|
@case ('horizontal') {
|
|
962
1053
|
<LayoutHorizontal>
|
|
963
|
-
<LayoutNavigation [ariaLabel]="
|
|
1054
|
+
<LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
|
|
964
1055
|
<block-shell-top-navigation
|
|
965
1056
|
[navigation]="navigation()"
|
|
966
1057
|
[workspaceLinks]="workspaceLinks()"
|
|
@@ -975,7 +1066,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
975
1066
|
/>
|
|
976
1067
|
</LayoutNavigation>
|
|
977
1068
|
|
|
978
|
-
<LayoutContent
|
|
1069
|
+
<LayoutContent
|
|
1070
|
+
data-block-shell-content
|
|
1071
|
+
tabindex="-1"
|
|
1072
|
+
[attr.aria-label]="contentAriaLabel()"
|
|
1073
|
+
>
|
|
979
1074
|
<router-outlet />
|
|
980
1075
|
</LayoutContent>
|
|
981
1076
|
</LayoutHorizontal>
|
|
@@ -983,7 +1078,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
983
1078
|
|
|
984
1079
|
@case ('empty') {
|
|
985
1080
|
<LayoutEmpty>
|
|
986
|
-
<LayoutContent
|
|
1081
|
+
<LayoutContent
|
|
1082
|
+
data-block-shell-content
|
|
1083
|
+
tabindex="-1"
|
|
1084
|
+
[attr.aria-label]="contentAriaLabel()"
|
|
1085
|
+
>
|
|
987
1086
|
<router-outlet />
|
|
988
1087
|
</LayoutContent>
|
|
989
1088
|
</LayoutEmpty>
|
|
@@ -991,22 +1090,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
991
1090
|
|
|
992
1091
|
@default {
|
|
993
1092
|
<LayoutVertical>
|
|
994
|
-
<LayoutNavigation [ariaLabel]="
|
|
995
|
-
<
|
|
996
|
-
|
|
997
|
-
[
|
|
998
|
-
[
|
|
999
|
-
[
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1093
|
+
<LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
|
|
1094
|
+
<div
|
|
1095
|
+
class="contents"
|
|
1096
|
+
[hidden]="navigationPanelActive()"
|
|
1097
|
+
[attr.inert]="navigationPanelActive() ? '' : null"
|
|
1098
|
+
[attr.aria-hidden]="navigationPanelActive() ? 'true' : null"
|
|
1099
|
+
>
|
|
1100
|
+
<block-shell-sidebar-navigation
|
|
1101
|
+
[navigation]="navigation()"
|
|
1102
|
+
[workspaceLinks]="workspaceLinks()"
|
|
1103
|
+
[shellName]="shellName()"
|
|
1104
|
+
[brandSubtitle]="brandSubtitle()"
|
|
1105
|
+
[logoText]="logoText()"
|
|
1106
|
+
[homePath]="homePath()"
|
|
1107
|
+
[userName]="userName()"
|
|
1108
|
+
[userPosition]="userPosition()"
|
|
1109
|
+
[userPhotoUrl]="userPhotoUrl()"
|
|
1110
|
+
[ariaLabel]="sideAriaLabel()"
|
|
1111
|
+
[footerActionTemplate]="footerAction()?.templateRef ?? null"
|
|
1112
|
+
/>
|
|
1113
|
+
</div>
|
|
1114
|
+
|
|
1115
|
+
@if (navigationPanelActive()) {
|
|
1116
|
+
<ng-container [ngTemplateOutlet]="navigationPanel()!.templateRef" />
|
|
1117
|
+
}
|
|
1007
1118
|
</LayoutNavigation>
|
|
1008
1119
|
|
|
1009
|
-
<LayoutContent
|
|
1120
|
+
<LayoutContent
|
|
1121
|
+
data-block-shell-content
|
|
1122
|
+
tabindex="-1"
|
|
1123
|
+
[attr.aria-label]="contentAriaLabel()"
|
|
1124
|
+
>
|
|
1010
1125
|
<router-outlet />
|
|
1011
1126
|
</LayoutContent>
|
|
1012
1127
|
</LayoutVertical>
|
|
@@ -1015,7 +1130,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
1015
1130
|
</Layout>
|
|
1016
1131
|
`,
|
|
1017
1132
|
}]
|
|
1018
|
-
}], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", required: false }] }], 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 }] }], brandSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandSubtitle", required: false }] }], 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 }] }] } });
|
|
1133
|
+
}], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", required: false }] }], 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 }] }], brandSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandSubtitle", required: false }] }], 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 }] }] } });
|
|
1019
1134
|
|
|
1020
1135
|
const MAIN_SIDEBAR_NAV_ID = 'main';
|
|
1021
1136
|
function workspaceNavbarId(workspace) {
|
|
@@ -1026,5 +1141,5 @@ function workspaceNavbarId(workspace) {
|
|
|
1026
1141
|
* Generated bundle index. Do not edit.
|
|
1027
1142
|
*/
|
|
1028
1143
|
|
|
1029
|
-
export { BlockShellComponent, BlockShellLogoComponent, BlockShellNavigationAvatarComponent, BlockShellNavigationFooterComponent, BlockShellNavigationHeaderComponent, BlockShellNavigationMetaComponent, BlockShellSidebarNavigationComponent, BlockShellTopNavigationComponent, MAIN_SIDEBAR_NAV_ID, workspaceNavbarId };
|
|
1144
|
+
export { BlockShellComponent, BlockShellLogoComponent, BlockShellNavigationAvatarComponent, BlockShellNavigationFooterActionDirective, BlockShellNavigationFooterComponent, BlockShellNavigationHeaderComponent, BlockShellNavigationMetaComponent, BlockShellNavigationPanelDirective, BlockShellSidebarNavigationComponent, BlockShellTopNavigationComponent, MAIN_SIDEBAR_NAV_ID, workspaceNavbarId };
|
|
1030
1145
|
//# sourceMappingURL=edsis-angular-block-shell.mjs.map
|