@edsis/angular 22.0.44 → 22.0.46

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.
@@ -1,9 +1,9 @@
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
- import { NavigationCollapseRootDirective, NavigationCollapseExpandedDirective, NavigationContainerComponent, NavigationSidebarComponent, NavigationDockbarComponent, NavigationHeaderComponent, NavigationFooterComponent, NavigationAsideFooterDirective, NavigationNavbarComponent, NavigationFlyoutComponent } from '@edsis/navigation';
6
+ import { NavigationCollapseRootDirective, NavigationCollapseExpandedDirective, NavigationContainerComponent, NavigationSidebarComponent, NavigationDockbarComponent, NavigationHeaderComponent, NavigationFooterComponent, NavigationAsideFooterDirective, NavigationAsideHeaderDirective, NavigationNavbarComponent, NavigationFlyoutComponent } from '@edsis/navigation';
7
7
  import { NavigationService } from '@edsis/navigation/service';
8
8
  import { PopoverContentDirective, PopoverTriggerDirective } from '@edsis/component/popover';
9
9
  import { AspectRatioComponent } from '@edsis/component/aspect-ratio';
@@ -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 */
@@ -461,6 +476,7 @@ class BlockShellSidebarNavigationComponent {
461
476
  documentRef = inject(DOCUMENT);
462
477
  destroyRef = inject(DestroyRef);
463
478
  navigationService = inject(NavigationService);
479
+ layout = inject(LayoutService);
464
480
  navigation = input.required(/* @ts-ignore */
465
481
  ...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
466
482
  workspaceLinks = input([], /* @ts-ignore */
@@ -481,6 +497,8 @@ class BlockShellSidebarNavigationComponent {
481
497
  ...(ngDevMode ? [{ debugName: "userPhotoUrl" }] : /* istanbul ignore next */ []));
482
498
  ariaLabel = input('side navigation', /* @ts-ignore */
483
499
  ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
500
+ footerActionTemplate = input(null, /* @ts-ignore */
501
+ ...(ngDevMode ? [{ debugName: "footerActionTemplate" }] : /* istanbul ignore next */ []));
484
502
  /** Fallback type ketika localStorage `nav-type` kosong atau tidak valid untuk orientasi vertikal. */
485
503
  type = input('sidebar', /* @ts-ignore */
486
504
  ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
@@ -490,10 +508,14 @@ class BlockShellSidebarNavigationComponent {
490
508
  /** State NavigationService menang atas fallback input dan langsung reaktif saat pengaturan diubah. */
491
509
  effectiveType = computed(() => {
492
510
  const state = this.navigationState();
493
- return state?.orientation === 'vertical' &&
494
- (state.type === 'sidebar' || state.type === 'dockbar')
495
- ? state.type
496
- : this.type();
511
+ if (state?.orientation === 'vertical' &&
512
+ (state.type === 'sidebar' || state.type === 'dockbar')) {
513
+ return state.type;
514
+ }
515
+ // Sebelum state 'main' terdaftar, hormati type persisted agar registrasi
516
+ // pertama saat refresh tidak menimpa pilihan user (mis. dockbar pada style ala).
517
+ const persisted = this.navigationService.persistedTypeFor('vertical');
518
+ return persisted === 'sidebar' || persisted === 'dockbar' ? persisted : this.type();
497
519
  }, /* @ts-ignore */
498
520
  ...(ngDevMode ? [{ debugName: "effectiveType" }] : /* istanbul ignore next */ []));
499
521
  /** Di viewport sempit aside sticky akan mendorong konten; paksa drawer agar overlay. */
@@ -506,6 +528,16 @@ class BlockShellSidebarNavigationComponent {
506
528
  : 'default';
507
529
  }, /* @ts-ignore */
508
530
  ...(ngDevMode ? [{ debugName: "dockbarMode" }] : /* istanbul ignore next */ []));
531
+ navTypeStyle = computed(() => this.layout.appearance() === 'ala' ? 'ala' : 'default', /* @ts-ignore */
532
+ ...(ngDevMode ? [{ debugName: "navTypeStyle" }] : /* istanbul ignore next */ []));
533
+ userInitials = computed(() => {
534
+ const words = this.userName()
535
+ .trim()
536
+ .split(/\s+/)
537
+ .filter((word) => word.length > 0);
538
+ return ((words[0]?.[0] ?? '') + (words[1]?.[0] ?? words[0]?.[1] ?? '')).toUpperCase();
539
+ }, /* @ts-ignore */
540
+ ...(ngDevMode ? [{ debugName: "userInitials" }] : /* istanbul ignore next */ []));
509
541
  constructor() {
510
542
  const windowRef = this.documentRef.defaultView;
511
543
  if (!windowRef) {
@@ -522,7 +554,7 @@ class BlockShellSidebarNavigationComponent {
522
554
  return this.documentRef.defaultView?.matchMedia('(max-width: 767.98px)').matches ?? false;
523
555
  }
524
556
  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: `
557
+ 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
558
  <Navigation
527
559
  id="main"
528
560
  [data]="navigation()"
@@ -531,34 +563,70 @@ class BlockShellSidebarNavigationComponent {
531
563
  class="h-full"
532
564
  >
533
565
  @if (effectiveType() === 'dockbar') {
534
- <NavigationDockbar [mode]="dockbarMode()">
535
- <NavigationHeader>
536
- <block-shell-navigation-header
537
- [name]="shellName()"
538
- [subtitle]="brandSubtitle()"
539
- [logoText]="logoText()"
540
- [homePath]="homePath()"
541
- [collapsible]="true"
542
- [workspaceLinks]="workspaceLinks()"
543
- />
544
- </NavigationHeader>
566
+ <NavigationDockbar [mode]="dockbarMode()" [typeStyle]="navTypeStyle()">
567
+ @if (navTypeStyle() !== 'ala') {
568
+ <NavigationHeader>
569
+ <block-shell-navigation-header
570
+ [name]="shellName()"
571
+ [subtitle]="brandSubtitle()"
572
+ [logoText]="logoText()"
573
+ [homePath]="homePath()"
574
+ [collapsible]="true"
575
+ [workspaceLinks]="workspaceLinks()"
576
+ />
577
+ </NavigationHeader>
578
+ }
545
579
 
546
- <NavigationFooter class="px-3">
547
- <block-shell-navigation-footer
548
- [name]="userName()"
549
- [subtitle]="userPosition()"
550
- [photoUrl]="userPhotoUrl()"
551
- [collapsible]="true"
552
- />
553
- </NavigationFooter>
580
+ @if (navTypeStyle() !== 'ala') {
581
+ <NavigationFooter class="px-3">
582
+ <block-shell-navigation-footer
583
+ [name]="userName()"
584
+ [subtitle]="userPosition()"
585
+ [photoUrl]="userPhotoUrl()"
586
+ [collapsible]="true"
587
+ [actionTemplate]="footerActionTemplate()"
588
+ />
589
+ </NavigationFooter>
590
+ }
591
+
592
+ @if (navTypeStyle() === 'ala') {
593
+ <ng-template NavigationAsideHeader>
594
+ <block-shell-logo [text]="logoText()" />
595
+ </ng-template>
596
+ }
554
597
 
555
- <!-- Avatar sudah tampil di rail dock; aside melengkapi dengan identitas tekstual user. -->
556
598
  <ng-template NavigationAsideFooter>
557
- <block-shell-navigation-meta
558
- [name]="userName()"
559
- [subtitle]="userPosition()"
560
- [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
561
- />
599
+ @if (navTypeStyle() === 'ala') {
600
+ <div class="flex w-full min-w-0 items-center gap-3">
601
+ <block-shell-navigation-avatar
602
+ [initials]="userInitials()"
603
+ [photoUrl]="userPhotoUrl()"
604
+ [photoAlt]="userName()"
605
+ />
606
+ <p class="min-w-0 truncate text-sm font-semibold tracking-tight text-foreground">
607
+ {{ userName() }}
608
+ </p>
609
+ @if (footerActionTemplate()) {
610
+ <div class="ml-auto shrink-0">
611
+ <ng-container [ngTemplateOutlet]="footerActionTemplate()" />
612
+ </div>
613
+ }
614
+ </div>
615
+ } @else {
616
+ <div class="flex w-full min-w-0 items-center gap-3">
617
+ <block-shell-navigation-meta
618
+ [name]="userName()"
619
+ [subtitle]="userPosition()"
620
+ [containerClass]="'min-w-0 flex-1'"
621
+ [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
622
+ />
623
+ @if (footerActionTemplate()) {
624
+ <div class="ml-auto shrink-0">
625
+ <ng-container [ngTemplateOutlet]="footerActionTemplate()" />
626
+ </div>
627
+ }
628
+ </div>
629
+ }
562
630
  </ng-template>
563
631
  </NavigationDockbar>
564
632
  } @else {
@@ -580,12 +648,13 @@ class BlockShellSidebarNavigationComponent {
580
648
  [subtitle]="userPosition()"
581
649
  [photoUrl]="userPhotoUrl()"
582
650
  [collapsible]="true"
651
+ [actionTemplate]="footerActionTemplate()"
583
652
  />
584
653
  </NavigationFooter>
585
654
  </NavigationSidebar>
586
655
  }
587
656
  </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"] }] });
657
+ `, 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", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class"] }, { kind: "directive", type: NavigationAsideFooterDirective, selector: "ng-template[NavigationAsideFooter]" }, { kind: "directive", type: NavigationAsideHeaderDirective, selector: "ng-template[NavigationAsideHeader]" }, { 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: "component", type: BlockShellNavigationAvatarComponent, selector: "block-shell-navigation-avatar", inputs: ["initials", "photoUrl", "photoAlt"] }, { kind: "component", type: BlockShellLogoComponent, selector: "block-shell-logo", inputs: ["text", "homePath", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
589
658
  }
590
659
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellSidebarNavigationComponent, decorators: [{
591
660
  type: Component,
@@ -598,9 +667,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
598
667
  NavigationHeaderComponent,
599
668
  NavigationFooterComponent,
600
669
  NavigationAsideFooterDirective,
670
+ NavigationAsideHeaderDirective,
601
671
  BlockShellNavigationHeaderComponent,
602
672
  BlockShellNavigationFooterComponent,
603
673
  BlockShellNavigationMetaComponent,
674
+ BlockShellNavigationAvatarComponent,
675
+ BlockShellLogoComponent,
676
+ NgTemplateOutlet,
604
677
  ],
605
678
  host: {
606
679
  class: 'contents',
@@ -614,34 +687,70 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
614
687
  class="h-full"
615
688
  >
616
689
  @if (effectiveType() === 'dockbar') {
617
- <NavigationDockbar [mode]="dockbarMode()">
618
- <NavigationHeader>
619
- <block-shell-navigation-header
620
- [name]="shellName()"
621
- [subtitle]="brandSubtitle()"
622
- [logoText]="logoText()"
623
- [homePath]="homePath()"
624
- [collapsible]="true"
625
- [workspaceLinks]="workspaceLinks()"
626
- />
627
- </NavigationHeader>
690
+ <NavigationDockbar [mode]="dockbarMode()" [typeStyle]="navTypeStyle()">
691
+ @if (navTypeStyle() !== 'ala') {
692
+ <NavigationHeader>
693
+ <block-shell-navigation-header
694
+ [name]="shellName()"
695
+ [subtitle]="brandSubtitle()"
696
+ [logoText]="logoText()"
697
+ [homePath]="homePath()"
698
+ [collapsible]="true"
699
+ [workspaceLinks]="workspaceLinks()"
700
+ />
701
+ </NavigationHeader>
702
+ }
628
703
 
629
- <NavigationFooter class="px-3">
630
- <block-shell-navigation-footer
631
- [name]="userName()"
632
- [subtitle]="userPosition()"
633
- [photoUrl]="userPhotoUrl()"
634
- [collapsible]="true"
635
- />
636
- </NavigationFooter>
704
+ @if (navTypeStyle() !== 'ala') {
705
+ <NavigationFooter class="px-3">
706
+ <block-shell-navigation-footer
707
+ [name]="userName()"
708
+ [subtitle]="userPosition()"
709
+ [photoUrl]="userPhotoUrl()"
710
+ [collapsible]="true"
711
+ [actionTemplate]="footerActionTemplate()"
712
+ />
713
+ </NavigationFooter>
714
+ }
715
+
716
+ @if (navTypeStyle() === 'ala') {
717
+ <ng-template NavigationAsideHeader>
718
+ <block-shell-logo [text]="logoText()" />
719
+ </ng-template>
720
+ }
637
721
 
638
- <!-- Avatar sudah tampil di rail dock; aside melengkapi dengan identitas tekstual user. -->
639
722
  <ng-template NavigationAsideFooter>
640
- <block-shell-navigation-meta
641
- [name]="userName()"
642
- [subtitle]="userPosition()"
643
- [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
644
- />
723
+ @if (navTypeStyle() === 'ala') {
724
+ <div class="flex w-full min-w-0 items-center gap-3">
725
+ <block-shell-navigation-avatar
726
+ [initials]="userInitials()"
727
+ [photoUrl]="userPhotoUrl()"
728
+ [photoAlt]="userName()"
729
+ />
730
+ <p class="min-w-0 truncate text-sm font-semibold tracking-tight text-foreground">
731
+ {{ userName() }}
732
+ </p>
733
+ @if (footerActionTemplate()) {
734
+ <div class="ml-auto shrink-0">
735
+ <ng-container [ngTemplateOutlet]="footerActionTemplate()" />
736
+ </div>
737
+ }
738
+ </div>
739
+ } @else {
740
+ <div class="flex w-full min-w-0 items-center gap-3">
741
+ <block-shell-navigation-meta
742
+ [name]="userName()"
743
+ [subtitle]="userPosition()"
744
+ [containerClass]="'min-w-0 flex-1'"
745
+ [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
746
+ />
747
+ @if (footerActionTemplate()) {
748
+ <div class="ml-auto shrink-0">
749
+ <ng-container [ngTemplateOutlet]="footerActionTemplate()" />
750
+ </div>
751
+ }
752
+ </div>
753
+ }
645
754
  </ng-template>
646
755
  </NavigationDockbar>
647
756
  } @else {
@@ -663,6 +772,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
663
772
  [subtitle]="userPosition()"
664
773
  [photoUrl]="userPhotoUrl()"
665
774
  [collapsible]="true"
775
+ [actionTemplate]="footerActionTemplate()"
666
776
  />
667
777
  </NavigationFooter>
668
778
  </NavigationSidebar>
@@ -670,7 +780,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
670
780
  </Navigation>
671
781
  `,
672
782
  }]
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 }] }] } });
783
+ }], 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
784
 
675
785
  class BlockShellTopNavigationComponent {
676
786
  layout = inject(LayoutService);
@@ -704,10 +814,14 @@ class BlockShellTopNavigationComponent {
704
814
  /** State NavigationService menang atas fallback input dan langsung reaktif saat pengaturan diubah. */
705
815
  effectiveType = computed(() => {
706
816
  const state = this.navigationState();
707
- return state?.orientation === 'horizontal' &&
708
- (state.type === 'navbar' || state.type === 'flyout')
709
- ? state.type
710
- : this.type();
817
+ if (state?.orientation === 'horizontal' &&
818
+ (state.type === 'navbar' || state.type === 'flyout')) {
819
+ return state.type;
820
+ }
821
+ // Sebelum state 'main' terdaftar, hormati type persisted agar registrasi
822
+ // pertama saat refresh tidak menimpa pilihan user (mis. flyout).
823
+ const persisted = this.navigationService.persistedTypeFor('horizontal');
824
+ return persisted === 'navbar' || persisted === 'flyout' ? persisted : this.type();
711
825
  }, /* @ts-ignore */
712
826
  ...(ngDevMode ? [{ debugName: "effectiveType" }] : /* istanbul ignore next */ []));
713
827
  /** Style flyout mengikuti appearance layout (LayoutService): border-rail ↔ border-rail, selain itu default. */
@@ -766,7 +880,7 @@ class BlockShellTopNavigationComponent {
766
880
  </NavigationNavbar>
767
881
  }
768
882
  </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"] }] });
883
+ `, 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
884
  }
771
885
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellTopNavigationComponent, decorators: [{
772
886
  type: Component,
@@ -840,6 +954,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
840
954
  }]
841
955
  }], 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
956
 
957
+ class BlockShellNavigationPanelDirective {
958
+ templateRef = inject((TemplateRef));
959
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
960
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: BlockShellNavigationPanelDirective, isStandalone: true, selector: "ng-template[blockShellNavigationPanel]", ngImport: i0 });
961
+ }
962
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationPanelDirective, decorators: [{
963
+ type: Directive,
964
+ args: [{ selector: 'ng-template[blockShellNavigationPanel]' }]
965
+ }] });
966
+
967
+ class BlockShellNavigationFooterActionDirective {
968
+ templateRef = inject((TemplateRef));
969
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationFooterActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
970
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: BlockShellNavigationFooterActionDirective, isStandalone: true, selector: "ng-template[blockShellNavigationFooterAction]", ngImport: i0 });
971
+ }
972
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationFooterActionDirective, decorators: [{
973
+ type: Directive,
974
+ args: [{ selector: 'ng-template[blockShellNavigationFooterAction]' }]
975
+ }] });
976
+
843
977
  class BlockShellComponent {
844
978
  navigation = input.required(/* @ts-ignore */
845
979
  ...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
@@ -875,14 +1009,22 @@ class BlockShellComponent {
875
1009
  ...(ngDevMode ? [{ debugName: "sideAriaLabel" }] : /* istanbul ignore next */ []));
876
1010
  contentAriaLabel = input('layout content', /* @ts-ignore */
877
1011
  ...(ngDevMode ? [{ debugName: "contentAriaLabel" }] : /* istanbul ignore next */ []));
1012
+ navigationPanelOpen = input(false, /* @ts-ignore */
1013
+ ...(ngDevMode ? [{ debugName: "navigationPanelOpen" }] : /* istanbul ignore next */ []));
878
1014
  layout = inject(LayoutService);
1015
+ navigationPanel = contentChild(BlockShellNavigationPanelDirective, /* @ts-ignore */
1016
+ ...(ngDevMode ? [{ debugName: "navigationPanel" }] : /* istanbul ignore next */ []));
1017
+ footerAction = contentChild(BlockShellNavigationFooterActionDirective, /* @ts-ignore */
1018
+ ...(ngDevMode ? [{ debugName: "footerAction" }] : /* istanbul ignore next */ []));
1019
+ navigationPanelActive = computed(() => this.layout.type() === 'vertical' && this.navigationPanelOpen() && !!this.navigationPanel(), /* @ts-ignore */
1020
+ ...(ngDevMode ? [{ debugName: "navigationPanelActive" }] : /* istanbul ignore next */ []));
879
1021
  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: `
1022
+ 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
1023
  <Layout>
882
1024
  @switch (layout.type()) {
883
1025
  @case ('horizontal') {
884
1026
  <LayoutHorizontal>
885
- <LayoutNavigation [ariaLabel]="topAriaLabel()">
1027
+ <LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
886
1028
  <block-shell-top-navigation
887
1029
  [navigation]="navigation()"
888
1030
  [workspaceLinks]="workspaceLinks()"
@@ -897,7 +1039,11 @@ class BlockShellComponent {
897
1039
  />
898
1040
  </LayoutNavigation>
899
1041
 
900
- <LayoutContent [attr.aria-label]="contentAriaLabel()">
1042
+ <LayoutContent
1043
+ data-block-shell-content
1044
+ tabindex="-1"
1045
+ [attr.aria-label]="contentAriaLabel()"
1046
+ >
901
1047
  <router-outlet />
902
1048
  </LayoutContent>
903
1049
  </LayoutHorizontal>
@@ -905,7 +1051,11 @@ class BlockShellComponent {
905
1051
 
906
1052
  @case ('empty') {
907
1053
  <LayoutEmpty>
908
- <LayoutContent [attr.aria-label]="contentAriaLabel()">
1054
+ <LayoutContent
1055
+ data-block-shell-content
1056
+ tabindex="-1"
1057
+ [attr.aria-label]="contentAriaLabel()"
1058
+ >
909
1059
  <router-outlet />
910
1060
  </LayoutContent>
911
1061
  </LayoutEmpty>
@@ -913,29 +1063,45 @@ class BlockShellComponent {
913
1063
 
914
1064
  @default {
915
1065
  <LayoutVertical>
916
- <LayoutNavigation [ariaLabel]="sideAriaLabel()">
917
- <block-shell-sidebar-navigation
918
- [navigation]="navigation()"
919
- [workspaceLinks]="workspaceLinks()"
920
- [shellName]="shellName()"
921
- [brandSubtitle]="brandSubtitle()"
922
- [logoText]="logoText()"
923
- [homePath]="homePath()"
924
- [userName]="userName()"
925
- [userPosition]="userPosition()"
926
- [userPhotoUrl]="userPhotoUrl()"
927
- [ariaLabel]="sideAriaLabel()"
928
- />
1066
+ <LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
1067
+ <div
1068
+ class="contents"
1069
+ [hidden]="navigationPanelActive()"
1070
+ [attr.inert]="navigationPanelActive() ? '' : null"
1071
+ [attr.aria-hidden]="navigationPanelActive() ? 'true' : null"
1072
+ >
1073
+ <block-shell-sidebar-navigation
1074
+ [navigation]="navigation()"
1075
+ [workspaceLinks]="workspaceLinks()"
1076
+ [shellName]="shellName()"
1077
+ [brandSubtitle]="brandSubtitle()"
1078
+ [logoText]="logoText()"
1079
+ [homePath]="homePath()"
1080
+ [userName]="userName()"
1081
+ [userPosition]="userPosition()"
1082
+ [userPhotoUrl]="userPhotoUrl()"
1083
+ [ariaLabel]="sideAriaLabel()"
1084
+ [footerActionTemplate]="footerAction()?.templateRef ?? null"
1085
+ />
1086
+ </div>
1087
+
1088
+ @if (navigationPanelActive()) {
1089
+ <ng-container [ngTemplateOutlet]="navigationPanel()!.templateRef" />
1090
+ }
929
1091
  </LayoutNavigation>
930
1092
 
931
- <LayoutContent [attr.aria-label]="contentAriaLabel()">
1093
+ <LayoutContent
1094
+ data-block-shell-content
1095
+ tabindex="-1"
1096
+ [attr.aria-label]="contentAriaLabel()"
1097
+ >
932
1098
  <router-outlet />
933
1099
  </LayoutContent>
934
1100
  </LayoutVertical>
935
1101
  }
936
1102
  }
937
1103
  </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"] }] });
1104
+ `, 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
1105
  }
940
1106
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellComponent, decorators: [{
941
1107
  type: Component,
@@ -950,6 +1116,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
950
1116
  LayoutContentComponent,
951
1117
  BlockShellSidebarNavigationComponent,
952
1118
  BlockShellTopNavigationComponent,
1119
+ NgTemplateOutlet,
953
1120
  RouterOutlet,
954
1121
  ],
955
1122
  host: {
@@ -960,7 +1127,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
960
1127
  @switch (layout.type()) {
961
1128
  @case ('horizontal') {
962
1129
  <LayoutHorizontal>
963
- <LayoutNavigation [ariaLabel]="topAriaLabel()">
1130
+ <LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
964
1131
  <block-shell-top-navigation
965
1132
  [navigation]="navigation()"
966
1133
  [workspaceLinks]="workspaceLinks()"
@@ -975,7 +1142,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
975
1142
  />
976
1143
  </LayoutNavigation>
977
1144
 
978
- <LayoutContent [attr.aria-label]="contentAriaLabel()">
1145
+ <LayoutContent
1146
+ data-block-shell-content
1147
+ tabindex="-1"
1148
+ [attr.aria-label]="contentAriaLabel()"
1149
+ >
979
1150
  <router-outlet />
980
1151
  </LayoutContent>
981
1152
  </LayoutHorizontal>
@@ -983,7 +1154,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
983
1154
 
984
1155
  @case ('empty') {
985
1156
  <LayoutEmpty>
986
- <LayoutContent [attr.aria-label]="contentAriaLabel()">
1157
+ <LayoutContent
1158
+ data-block-shell-content
1159
+ tabindex="-1"
1160
+ [attr.aria-label]="contentAriaLabel()"
1161
+ >
987
1162
  <router-outlet />
988
1163
  </LayoutContent>
989
1164
  </LayoutEmpty>
@@ -991,22 +1166,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
991
1166
 
992
1167
  @default {
993
1168
  <LayoutVertical>
994
- <LayoutNavigation [ariaLabel]="sideAriaLabel()">
995
- <block-shell-sidebar-navigation
996
- [navigation]="navigation()"
997
- [workspaceLinks]="workspaceLinks()"
998
- [shellName]="shellName()"
999
- [brandSubtitle]="brandSubtitle()"
1000
- [logoText]="logoText()"
1001
- [homePath]="homePath()"
1002
- [userName]="userName()"
1003
- [userPosition]="userPosition()"
1004
- [userPhotoUrl]="userPhotoUrl()"
1005
- [ariaLabel]="sideAriaLabel()"
1006
- />
1169
+ <LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
1170
+ <div
1171
+ class="contents"
1172
+ [hidden]="navigationPanelActive()"
1173
+ [attr.inert]="navigationPanelActive() ? '' : null"
1174
+ [attr.aria-hidden]="navigationPanelActive() ? 'true' : null"
1175
+ >
1176
+ <block-shell-sidebar-navigation
1177
+ [navigation]="navigation()"
1178
+ [workspaceLinks]="workspaceLinks()"
1179
+ [shellName]="shellName()"
1180
+ [brandSubtitle]="brandSubtitle()"
1181
+ [logoText]="logoText()"
1182
+ [homePath]="homePath()"
1183
+ [userName]="userName()"
1184
+ [userPosition]="userPosition()"
1185
+ [userPhotoUrl]="userPhotoUrl()"
1186
+ [ariaLabel]="sideAriaLabel()"
1187
+ [footerActionTemplate]="footerAction()?.templateRef ?? null"
1188
+ />
1189
+ </div>
1190
+
1191
+ @if (navigationPanelActive()) {
1192
+ <ng-container [ngTemplateOutlet]="navigationPanel()!.templateRef" />
1193
+ }
1007
1194
  </LayoutNavigation>
1008
1195
 
1009
- <LayoutContent [attr.aria-label]="contentAriaLabel()">
1196
+ <LayoutContent
1197
+ data-block-shell-content
1198
+ tabindex="-1"
1199
+ [attr.aria-label]="contentAriaLabel()"
1200
+ >
1010
1201
  <router-outlet />
1011
1202
  </LayoutContent>
1012
1203
  </LayoutVertical>
@@ -1015,7 +1206,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
1015
1206
  </Layout>
1016
1207
  `,
1017
1208
  }]
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 }] }] } });
1209
+ }], 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
1210
 
1020
1211
  const MAIN_SIDEBAR_NAV_ID = 'main';
1021
1212
  function workspaceNavbarId(workspace) {
@@ -1026,5 +1217,5 @@ function workspaceNavbarId(workspace) {
1026
1217
  * Generated bundle index. Do not edit.
1027
1218
  */
1028
1219
 
1029
- export { BlockShellComponent, BlockShellLogoComponent, BlockShellNavigationAvatarComponent, BlockShellNavigationFooterComponent, BlockShellNavigationHeaderComponent, BlockShellNavigationMetaComponent, BlockShellSidebarNavigationComponent, BlockShellTopNavigationComponent, MAIN_SIDEBAR_NAV_ID, workspaceNavbarId };
1220
+ export { BlockShellComponent, BlockShellLogoComponent, BlockShellNavigationAvatarComponent, BlockShellNavigationFooterActionDirective, BlockShellNavigationFooterComponent, BlockShellNavigationHeaderComponent, BlockShellNavigationMetaComponent, BlockShellNavigationPanelDirective, BlockShellSidebarNavigationComponent, BlockShellTopNavigationComponent, MAIN_SIDEBAR_NAV_ID, workspaceNavbarId };
1030
1221
  //# sourceMappingURL=edsis-angular-block-shell.mjs.map