@edsis/angular 22.0.41 → 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.
@@ -1,9 +1,10 @@
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
+ import { NavigationService } from '@edsis/navigation/service';
7
8
  import { PopoverContentDirective, PopoverTriggerDirective } from '@edsis/component/popover';
8
9
  import { AspectRatioComponent } from '@edsis/component/aspect-ratio';
9
10
 
@@ -14,8 +15,8 @@ class BlockShellNavigationAvatarComponent {
14
15
  ...(ngDevMode ? [{ debugName: "photoUrl" }] : /* istanbul ignore next */ []));
15
16
  photoAlt = input('', /* @ts-ignore */
16
17
  ...(ngDevMode ? [{ debugName: "photoAlt" }] : /* istanbul ignore next */ []));
17
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
18
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: BlockShellNavigationAvatarComponent, isStandalone: true, selector: "block-shell-navigation-avatar", inputs: { initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: true, transformFunction: null }, photoUrl: { classPropertyName: "photoUrl", publicName: "photoUrl", isSignal: true, isRequired: false, transformFunction: null }, photoAlt: { classPropertyName: "photoAlt", publicName: "photoAlt", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
18
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
19
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: BlockShellNavigationAvatarComponent, isStandalone: true, selector: "block-shell-navigation-avatar", inputs: { initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: true, transformFunction: null }, photoUrl: { classPropertyName: "photoUrl", publicName: "photoUrl", isSignal: true, isRequired: false, transformFunction: null }, photoAlt: { classPropertyName: "photoAlt", publicName: "photoAlt", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
19
20
  <!-- size = tinggi logo header: kotak w-10 (2.5rem) dengan AspectRatio 3/2 -->
20
21
  <span
21
22
  class="inline-flex size-[calc(2.5rem*2/3)] shrink-0 items-center justify-center overflow-hidden rounded-none bg-primary text-xs font-semibold text-primary-foreground"
@@ -28,7 +29,7 @@ class BlockShellNavigationAvatarComponent {
28
29
  </span>
29
30
  `, isInline: true });
30
31
  }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationAvatarComponent, decorators: [{
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationAvatarComponent, decorators: [{
32
33
  type: Component,
33
34
  args: [{
34
35
  selector: 'block-shell-navigation-avatar',
@@ -59,15 +60,15 @@ class BlockShellNavigationMetaComponent {
59
60
  ...(ngDevMode ? [{ debugName: "containerClass" }] : /* istanbul ignore next */ []));
60
61
  subtitleClass = input('truncate text-xs text-muted-foreground', /* @ts-ignore */
61
62
  ...(ngDevMode ? [{ debugName: "subtitleClass" }] : /* istanbul ignore next */ []));
62
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationMetaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
63
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.5", type: BlockShellNavigationMetaComponent, isStandalone: true, selector: "block-shell-navigation-meta", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: true, transformFunction: null }, containerClass: { classPropertyName: "containerClass", publicName: "containerClass", isSignal: true, isRequired: false, transformFunction: null }, subtitleClass: { classPropertyName: "subtitleClass", publicName: "subtitleClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
63
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationMetaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
64
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.6", type: BlockShellNavigationMetaComponent, isStandalone: true, selector: "block-shell-navigation-meta", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: true, transformFunction: null }, containerClass: { classPropertyName: "containerClass", publicName: "containerClass", isSignal: true, isRequired: false, transformFunction: null }, subtitleClass: { classPropertyName: "subtitleClass", publicName: "subtitleClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
64
65
  <div [class]="containerClass()">
65
66
  <p class="truncate text-sm font-semibold tracking-tight text-foreground">{{ name() }}</p>
66
67
  <p [class]="subtitleClass()">{{ subtitle() }}</p>
67
68
  </div>
68
69
  `, isInline: true });
69
70
  }
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationMetaComponent, decorators: [{
71
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationMetaComponent, decorators: [{
71
72
  type: Component,
72
73
  args: [{
73
74
  selector: 'block-shell-navigation-meta',
@@ -96,6 +97,8 @@ class BlockShellNavigationFooterComponent {
96
97
  ...(ngDevMode ? [{ debugName: "collapsible" }] : /* istanbul ignore next */ []));
97
98
  desktopOnly = input(false, /* @ts-ignore */
98
99
  ...(ngDevMode ? [{ debugName: "desktopOnly" }] : /* istanbul ignore next */ []));
100
+ actionTemplate = input(null, /* @ts-ignore */
101
+ ...(ngDevMode ? [{ debugName: "actionTemplate" }] : /* istanbul ignore next */ []));
99
102
  resolvedInitials = computed(() => {
100
103
  const explicitInitials = this.initials()?.trim();
101
104
  if (explicitInitials) {
@@ -108,10 +111,10 @@ class BlockShellNavigationFooterComponent {
108
111
  return ((words[0]?.[0] ?? '') + (words[1]?.[0] ?? words[0]?.[1] ?? '')).toUpperCase();
109
112
  }, /* @ts-ignore */
110
113
  ...(ngDevMode ? [{ debugName: "resolvedInitials" }] : /* istanbul ignore next */ []));
111
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
112
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", 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: `
114
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
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: `
113
116
  @if (collapsible()) {
114
- <div NavigationCollapseRoot class="flex items-center gap-3">
117
+ <div NavigationCollapseRoot class="flex w-full items-center gap-3">
115
118
  <block-shell-navigation-avatar
116
119
  [initials]="resolvedInitials()"
117
120
  [photoUrl]="photoUrl()"
@@ -125,6 +128,12 @@ class BlockShellNavigationFooterComponent {
125
128
  [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
126
129
  />
127
130
  </div>
131
+
132
+ @if (actionTemplate()) {
133
+ <div *NavigationCollapseExpanded class="ml-auto shrink-0">
134
+ <ng-container [ngTemplateOutlet]="actionTemplate()" />
135
+ </div>
136
+ }
128
137
  </div>
129
138
  } @else {
130
139
  <div class="flex items-center gap-3">
@@ -140,9 +149,9 @@ class BlockShellNavigationFooterComponent {
140
149
  />
141
150
  </div>
142
151
  }
143
- `, 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"] }] });
144
153
  }
145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationFooterComponent, decorators: [{
154
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationFooterComponent, decorators: [{
146
155
  type: Component,
147
156
  args: [{
148
157
  selector: 'block-shell-navigation-footer',
@@ -151,13 +160,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
151
160
  NavigationCollapseExpandedDirective,
152
161
  BlockShellNavigationAvatarComponent,
153
162
  BlockShellNavigationMetaComponent,
163
+ NgTemplateOutlet,
154
164
  ],
155
165
  host: {
156
166
  class: 'contents',
157
167
  },
158
168
  template: `
159
169
  @if (collapsible()) {
160
- <div NavigationCollapseRoot class="flex items-center gap-3">
170
+ <div NavigationCollapseRoot class="flex w-full items-center gap-3">
161
171
  <block-shell-navigation-avatar
162
172
  [initials]="resolvedInitials()"
163
173
  [photoUrl]="photoUrl()"
@@ -171,6 +181,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
171
181
  [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
172
182
  />
173
183
  </div>
184
+
185
+ @if (actionTemplate()) {
186
+ <div *NavigationCollapseExpanded class="ml-auto shrink-0">
187
+ <ng-container [ngTemplateOutlet]="actionTemplate()" />
188
+ </div>
189
+ }
174
190
  </div>
175
191
  } @else {
176
192
  <div class="flex items-center gap-3">
@@ -188,7 +204,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
188
204
  }
189
205
  `,
190
206
  }]
191
- }], 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 }] }] } });
192
208
 
193
209
  class BlockShellLogoComponent {
194
210
  text = input('ETOS', /* @ts-ignore */
@@ -197,8 +213,8 @@ class BlockShellLogoComponent {
197
213
  ...(ngDevMode ? [{ debugName: "homePath" }] : /* istanbul ignore next */ []));
198
214
  ariaLabel = input('Buka aplikasi', /* @ts-ignore */
199
215
  ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
200
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellLogoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
201
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.5", type: BlockShellLogoComponent, isStandalone: true, selector: "block-shell-logo", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
216
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellLogoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
217
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.6", type: BlockShellLogoComponent, isStandalone: true, selector: "block-shell-logo", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
202
218
  <div class="w-10 shrink-0">
203
219
  <AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
204
220
  <div
@@ -211,7 +227,7 @@ class BlockShellLogoComponent {
211
227
  </div>
212
228
  `, isInline: true, dependencies: [{ kind: "component", type: AspectRatioComponent, selector: "AspectRatio", inputs: ["ratio", "class"] }] });
213
229
  }
214
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellLogoComponent, decorators: [{
230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellLogoComponent, decorators: [{
215
231
  type: Component,
216
232
  args: [{
217
233
  selector: 'block-shell-logo',
@@ -257,8 +273,8 @@ class BlockShellNavigationHeaderComponent {
257
273
  const activeHomePath = this.homePath();
258
274
  return path === activeHomePath || path.startsWith(`${activeHomePath}/`);
259
275
  }
260
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
261
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: BlockShellNavigationHeaderComponent, isStandalone: true, selector: "block-shell-navigation-header", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: true, transformFunction: null }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, workspaceLinks: { classPropertyName: "workspaceLinks", publicName: "workspaceLinks", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
276
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
277
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: BlockShellNavigationHeaderComponent, isStandalone: true, selector: "block-shell-navigation-header", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: true, transformFunction: null }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, workspaceLinks: { classPropertyName: "workspaceLinks", publicName: "workspaceLinks", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
262
278
  <ng-template PopoverContent #workspaceSwitcher="PopoverContent">
263
279
  <div
264
280
  data-block-shell-workspace-panel
@@ -348,7 +364,7 @@ class BlockShellNavigationHeaderComponent {
348
364
  }
349
365
  `, isInline: true, dependencies: [{ kind: "directive", type: NavigationCollapseRootDirective, selector: "[NavigationCollapseRoot]" }, { kind: "directive", type: NavigationCollapseExpandedDirective, selector: "[NavigationCollapseExpanded]" }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: PopoverContentDirective, selector: "ng-template[PopoverContent]", exportAs: ["PopoverContent"] }, { kind: "directive", type: PopoverTriggerDirective, selector: "[PopoverTrigger]", inputs: ["PopoverTrigger", "side", "align", "sideOffset", "disabled"], outputs: ["openedChange"], exportAs: ["PopoverTrigger"] }, { kind: "component", type: BlockShellLogoComponent, selector: "block-shell-logo", inputs: ["text", "homePath", "ariaLabel"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass"] }] });
350
366
  }
351
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationHeaderComponent, decorators: [{
367
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationHeaderComponent, decorators: [{
352
368
  type: Component,
353
369
  args: [{
354
370
  selector: 'block-shell-navigation-header',
@@ -456,19 +472,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
456
472
  }]
457
473
  }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: true }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", required: false }] }] } });
458
474
 
459
- /** Key localStorage tempat NavigationService mempersist type nav (`nav-type`). */
460
- const NAV_TYPE_STORAGE_KEY$1 = 'nav-type';
461
- /** Key localStorage mode type (`default`/`sticky`/`drawer` saat dockbar, `default`/`collapsed` saat sidebar). */
462
- const NAV_TYPE_MODE_STORAGE_KEY = 'nav-type-mode';
463
- function isVerticalType(value) {
464
- return value === 'sidebar' || value === 'dockbar';
465
- }
466
- function isDockbarMode(value) {
467
- return value === 'default' || value === 'sticky' || value === 'drawer';
468
- }
469
475
  class BlockShellSidebarNavigationComponent {
470
476
  documentRef = inject(DOCUMENT);
471
477
  destroyRef = inject(DestroyRef);
478
+ navigationService = inject(NavigationService);
472
479
  navigation = input.required(/* @ts-ignore */
473
480
  ...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
474
481
  workspaceLinks = input([], /* @ts-ignore */
@@ -489,22 +496,32 @@ class BlockShellSidebarNavigationComponent {
489
496
  ...(ngDevMode ? [{ debugName: "userPhotoUrl" }] : /* istanbul ignore next */ []));
490
497
  ariaLabel = input('side navigation', /* @ts-ignore */
491
498
  ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
499
+ footerActionTemplate = input(null, /* @ts-ignore */
500
+ ...(ngDevMode ? [{ debugName: "footerActionTemplate" }] : /* istanbul ignore next */ []));
492
501
  /** Fallback type ketika localStorage `nav-type` kosong atau tidak valid untuk orientasi vertikal. */
493
502
  type = input('sidebar', /* @ts-ignore */
494
503
  ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
495
504
  responsiveCollapsed = signal(this.readResponsiveCollapsed(), /* @ts-ignore */
496
505
  ...(ngDevMode ? [{ debugName: "responsiveCollapsed" }] : /* istanbul ignore next */ []));
497
- /** Nilai `nav-type` yang dipersist NavigationService; di-refresh saat ada perubahan storage. */
498
- storedType = signal(this.readStoredType(), /* @ts-ignore */
499
- ...(ngDevMode ? [{ debugName: "storedType" }] : /* istanbul ignore next */ []));
500
- /** Nilai `nav-type-mode` yang dipersist NavigationService (default/sticky/drawer saat dockbar). */
501
- storedDockbarMode = signal(this.readStoredDockbarMode(), /* @ts-ignore */
502
- ...(ngDevMode ? [{ debugName: "storedDockbarMode" }] : /* istanbul ignore next */ []));
503
- /** localStorage `nav-type` menang atas default input — sidebar ↔ dockbar ikut perubahan storage. */
504
- effectiveType = computed(() => this.storedType() ?? this.type(), /* @ts-ignore */
506
+ navigationState = this.navigationService.state('main');
507
+ /** State NavigationService menang atas fallback input dan langsung reaktif saat pengaturan diubah. */
508
+ effectiveType = computed(() => {
509
+ const state = this.navigationState();
510
+ return state?.orientation === 'vertical' &&
511
+ (state.type === 'sidebar' || state.type === 'dockbar')
512
+ ? state.type
513
+ : this.type();
514
+ }, /* @ts-ignore */
505
515
  ...(ngDevMode ? [{ debugName: "effectiveType" }] : /* istanbul ignore next */ []));
506
516
  /** Di viewport sempit aside sticky akan mendorong konten; paksa drawer agar overlay. */
507
- dockbarMode = computed(() => this.responsiveCollapsed() ? 'drawer' : (this.storedDockbarMode() ?? 'default'), /* @ts-ignore */
517
+ dockbarMode = computed(() => {
518
+ const state = this.navigationState();
519
+ return this.responsiveCollapsed()
520
+ ? 'drawer'
521
+ : state?.type === 'dockbar'
522
+ ? state.dockbarMode
523
+ : 'default';
524
+ }, /* @ts-ignore */
508
525
  ...(ngDevMode ? [{ debugName: "dockbarMode" }] : /* istanbul ignore next */ []));
509
526
  constructor() {
510
527
  const windowRef = this.documentRef.defaultView;
@@ -517,34 +534,12 @@ class BlockShellSidebarNavigationComponent {
517
534
  syncResponsiveCollapsed(mediaQuery.matches);
518
535
  mediaQuery.addEventListener('change', handleChange);
519
536
  this.destroyRef.onDestroy(() => mediaQuery.removeEventListener('change', handleChange));
520
- const syncStoredType = () => {
521
- this.storedType.set(this.readStoredType());
522
- this.storedDockbarMode.set(this.readStoredDockbarMode());
523
- };
524
- windowRef.addEventListener('storage', syncStoredType);
525
- this.destroyRef.onDestroy(() => windowRef.removeEventListener('storage', syncStoredType));
526
537
  }
527
538
  readResponsiveCollapsed() {
528
539
  return this.documentRef.defaultView?.matchMedia('(max-width: 767.98px)').matches ?? false;
529
540
  }
530
- readStoredType() {
531
- const value = this.readStorage(NAV_TYPE_STORAGE_KEY$1);
532
- return isVerticalType(value) ? value : null;
533
- }
534
- readStoredDockbarMode() {
535
- const value = this.readStorage(NAV_TYPE_MODE_STORAGE_KEY);
536
- return isDockbarMode(value) ? value : null;
537
- }
538
- readStorage(key) {
539
- try {
540
- return this.documentRef.defaultView?.localStorage.getItem(key) ?? null;
541
- }
542
- catch {
543
- return null;
544
- }
545
- }
546
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellSidebarNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
547
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", 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: `
541
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellSidebarNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
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: `
548
543
  <Navigation
549
544
  id="main"
550
545
  [data]="navigation()"
@@ -571,16 +566,25 @@ class BlockShellSidebarNavigationComponent {
571
566
  [subtitle]="userPosition()"
572
567
  [photoUrl]="userPhotoUrl()"
573
568
  [collapsible]="true"
569
+ [actionTemplate]="footerActionTemplate()"
574
570
  />
575
571
  </NavigationFooter>
576
572
 
577
573
  <!-- Avatar sudah tampil di rail dock; aside melengkapi dengan identitas tekstual user. -->
578
574
  <ng-template NavigationAsideFooter>
579
- <block-shell-navigation-meta
580
- [name]="userName()"
581
- [subtitle]="userPosition()"
582
- [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
583
- />
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>
584
588
  </ng-template>
585
589
  </NavigationDockbar>
586
590
  } @else {
@@ -602,14 +606,15 @@ class BlockShellSidebarNavigationComponent {
602
606
  [subtitle]="userPosition()"
603
607
  [photoUrl]="userPhotoUrl()"
604
608
  [collapsible]="true"
609
+ [actionTemplate]="footerActionTemplate()"
605
610
  />
606
611
  </NavigationFooter>
607
612
  </NavigationSidebar>
608
613
  }
609
614
  </Navigation>
610
- `, 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"] }] });
611
616
  }
612
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellSidebarNavigationComponent, decorators: [{
617
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellSidebarNavigationComponent, decorators: [{
613
618
  type: Component,
614
619
  args: [{
615
620
  selector: 'block-shell-sidebar-navigation',
@@ -623,6 +628,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
623
628
  BlockShellNavigationHeaderComponent,
624
629
  BlockShellNavigationFooterComponent,
625
630
  BlockShellNavigationMetaComponent,
631
+ NgTemplateOutlet,
626
632
  ],
627
633
  host: {
628
634
  class: 'contents',
@@ -654,16 +660,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
654
660
  [subtitle]="userPosition()"
655
661
  [photoUrl]="userPhotoUrl()"
656
662
  [collapsible]="true"
663
+ [actionTemplate]="footerActionTemplate()"
657
664
  />
658
665
  </NavigationFooter>
659
666
 
660
667
  <!-- Avatar sudah tampil di rail dock; aside melengkapi dengan identitas tekstual user. -->
661
668
  <ng-template NavigationAsideFooter>
662
- <block-shell-navigation-meta
663
- [name]="userName()"
664
- [subtitle]="userPosition()"
665
- [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
666
- />
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>
667
682
  </ng-template>
668
683
  </NavigationDockbar>
669
684
  } @else {
@@ -685,6 +700,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
685
700
  [subtitle]="userPosition()"
686
701
  [photoUrl]="userPhotoUrl()"
687
702
  [collapsible]="true"
703
+ [actionTemplate]="footerActionTemplate()"
688
704
  />
689
705
  </NavigationFooter>
690
706
  </NavigationSidebar>
@@ -692,17 +708,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
692
708
  </Navigation>
693
709
  `,
694
710
  }]
695
- }], 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 }] }] } });
696
712
 
697
- /** Key localStorage tempat NavigationService mempersist type nav (`nav-type`). */
698
- const NAV_TYPE_STORAGE_KEY = 'nav-type';
699
- function isHorizontalType(value) {
700
- return value === 'navbar' || value === 'flyout';
701
- }
702
713
  class BlockShellTopNavigationComponent {
703
- documentRef = inject(DOCUMENT);
704
- destroyRef = inject(DestroyRef);
705
714
  layout = inject(LayoutService);
715
+ navigationService = inject(NavigationService);
706
716
  navigation = input.required(/* @ts-ignore */
707
717
  ...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
708
718
  workspaceLinks = input([], /* @ts-ignore */
@@ -728,35 +738,21 @@ class BlockShellTopNavigationComponent {
728
738
  ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
729
739
  flyoutLabel = input('Menu', /* @ts-ignore */
730
740
  ...(ngDevMode ? [{ debugName: "flyoutLabel" }] : /* istanbul ignore next */ []));
731
- /** Nilai `nav-type` yang dipersist NavigationService; di-refresh saat ada perubahan storage. */
732
- storedType = signal(this.readStoredType(), /* @ts-ignore */
733
- ...(ngDevMode ? [{ debugName: "storedType" }] : /* istanbul ignore next */ []));
734
- /** localStorage `nav-type` menang atas default input — navbar ↔ flyout ikut perubahan storage. */
735
- effectiveType = computed(() => this.storedType() ?? this.type(), /* @ts-ignore */
741
+ navigationState = this.navigationService.state('main');
742
+ /** State NavigationService menang atas fallback input dan langsung reaktif saat pengaturan diubah. */
743
+ effectiveType = computed(() => {
744
+ const state = this.navigationState();
745
+ return state?.orientation === 'horizontal' &&
746
+ (state.type === 'navbar' || state.type === 'flyout')
747
+ ? state.type
748
+ : this.type();
749
+ }, /* @ts-ignore */
736
750
  ...(ngDevMode ? [{ debugName: "effectiveType" }] : /* istanbul ignore next */ []));
737
751
  /** Style flyout mengikuti appearance layout (LayoutService): border-rail ↔ border-rail, selain itu default. */
738
752
  navTypeStyle = computed(() => this.layout.appearance() === 'border-rail' ? 'border-rail' : 'default', /* @ts-ignore */
739
753
  ...(ngDevMode ? [{ debugName: "navTypeStyle" }] : /* istanbul ignore next */ []));
740
- constructor() {
741
- const windowRef = this.documentRef.defaultView;
742
- if (!windowRef) {
743
- return;
744
- }
745
- const syncStoredType = () => this.storedType.set(this.readStoredType());
746
- windowRef.addEventListener('storage', syncStoredType);
747
- this.destroyRef.onDestroy(() => windowRef.removeEventListener('storage', syncStoredType));
748
- }
749
- readStoredType() {
750
- try {
751
- const value = this.documentRef.defaultView?.localStorage.getItem(NAV_TYPE_STORAGE_KEY) ?? null;
752
- return isHorizontalType(value) ? value : null;
753
- }
754
- catch {
755
- return null;
756
- }
757
- }
758
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellTopNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
759
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: BlockShellTopNavigationComponent, isStandalone: true, selector: "block-shell-top-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 }, flyoutLabel: { classPropertyName: "flyoutLabel", publicName: "flyoutLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
754
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellTopNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
755
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: BlockShellTopNavigationComponent, isStandalone: true, selector: "block-shell-top-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 }, flyoutLabel: { classPropertyName: "flyoutLabel", publicName: "flyoutLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
760
756
  <Navigation
761
757
  id="main"
762
758
  [data]="navigation()"
@@ -808,9 +804,9 @@ class BlockShellTopNavigationComponent {
808
804
  </NavigationNavbar>
809
805
  }
810
806
  </Navigation>
811
- `, 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"] }] });
812
808
  }
813
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellTopNavigationComponent, decorators: [{
809
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellTopNavigationComponent, decorators: [{
814
810
  type: Component,
815
811
  args: [{
816
812
  selector: 'block-shell-top-navigation',
@@ -880,7 +876,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
880
876
  </Navigation>
881
877
  `,
882
878
  }]
883
- }], 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 }] }], flyoutLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "flyoutLabel", required: false }] }] } });
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 }] }] } });
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
+ }] });
884
900
 
885
901
  class BlockShellComponent {
886
902
  navigation = input.required(/* @ts-ignore */
@@ -917,14 +933,22 @@ class BlockShellComponent {
917
933
  ...(ngDevMode ? [{ debugName: "sideAriaLabel" }] : /* istanbul ignore next */ []));
918
934
  contentAriaLabel = input('layout content', /* @ts-ignore */
919
935
  ...(ngDevMode ? [{ debugName: "contentAriaLabel" }] : /* istanbul ignore next */ []));
936
+ navigationPanelOpen = input(false, /* @ts-ignore */
937
+ ...(ngDevMode ? [{ debugName: "navigationPanelOpen" }] : /* istanbul ignore next */ []));
920
938
  layout = inject(LayoutService);
921
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
922
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", 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: `
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 */ []));
945
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
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: `
923
947
  <Layout>
924
948
  @switch (layout.type()) {
925
949
  @case ('horizontal') {
926
950
  <LayoutHorizontal>
927
- <LayoutNavigation [ariaLabel]="topAriaLabel()">
951
+ <LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
928
952
  <block-shell-top-navigation
929
953
  [navigation]="navigation()"
930
954
  [workspaceLinks]="workspaceLinks()"
@@ -939,7 +963,11 @@ class BlockShellComponent {
939
963
  />
940
964
  </LayoutNavigation>
941
965
 
942
- <LayoutContent [attr.aria-label]="contentAriaLabel()">
966
+ <LayoutContent
967
+ data-block-shell-content
968
+ tabindex="-1"
969
+ [attr.aria-label]="contentAriaLabel()"
970
+ >
943
971
  <router-outlet />
944
972
  </LayoutContent>
945
973
  </LayoutHorizontal>
@@ -947,7 +975,11 @@ class BlockShellComponent {
947
975
 
948
976
  @case ('empty') {
949
977
  <LayoutEmpty>
950
- <LayoutContent [attr.aria-label]="contentAriaLabel()">
978
+ <LayoutContent
979
+ data-block-shell-content
980
+ tabindex="-1"
981
+ [attr.aria-label]="contentAriaLabel()"
982
+ >
951
983
  <router-outlet />
952
984
  </LayoutContent>
953
985
  </LayoutEmpty>
@@ -955,31 +987,47 @@ class BlockShellComponent {
955
987
 
956
988
  @default {
957
989
  <LayoutVertical>
958
- <LayoutNavigation [ariaLabel]="sideAriaLabel()">
959
- <block-shell-sidebar-navigation
960
- [navigation]="navigation()"
961
- [workspaceLinks]="workspaceLinks()"
962
- [shellName]="shellName()"
963
- [brandSubtitle]="brandSubtitle()"
964
- [logoText]="logoText()"
965
- [homePath]="homePath()"
966
- [userName]="userName()"
967
- [userPosition]="userPosition()"
968
- [userPhotoUrl]="userPhotoUrl()"
969
- [ariaLabel]="sideAriaLabel()"
970
- />
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
+ }
971
1015
  </LayoutNavigation>
972
1016
 
973
- <LayoutContent [attr.aria-label]="contentAriaLabel()">
1017
+ <LayoutContent
1018
+ data-block-shell-content
1019
+ tabindex="-1"
1020
+ [attr.aria-label]="contentAriaLabel()"
1021
+ >
974
1022
  <router-outlet />
975
1023
  </LayoutContent>
976
1024
  </LayoutVertical>
977
1025
  }
978
1026
  }
979
1027
  </Layout>
980
- `, 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"] }] });
981
1029
  }
982
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellComponent, decorators: [{
1030
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellComponent, decorators: [{
983
1031
  type: Component,
984
1032
  args: [{
985
1033
  selector: 'block-shell',
@@ -992,6 +1040,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
992
1040
  LayoutContentComponent,
993
1041
  BlockShellSidebarNavigationComponent,
994
1042
  BlockShellTopNavigationComponent,
1043
+ NgTemplateOutlet,
995
1044
  RouterOutlet,
996
1045
  ],
997
1046
  host: {
@@ -1002,7 +1051,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
1002
1051
  @switch (layout.type()) {
1003
1052
  @case ('horizontal') {
1004
1053
  <LayoutHorizontal>
1005
- <LayoutNavigation [ariaLabel]="topAriaLabel()">
1054
+ <LayoutNavigation [landmarkRole]="null" [ariaLabel]="null">
1006
1055
  <block-shell-top-navigation
1007
1056
  [navigation]="navigation()"
1008
1057
  [workspaceLinks]="workspaceLinks()"
@@ -1017,7 +1066,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
1017
1066
  />
1018
1067
  </LayoutNavigation>
1019
1068
 
1020
- <LayoutContent [attr.aria-label]="contentAriaLabel()">
1069
+ <LayoutContent
1070
+ data-block-shell-content
1071
+ tabindex="-1"
1072
+ [attr.aria-label]="contentAriaLabel()"
1073
+ >
1021
1074
  <router-outlet />
1022
1075
  </LayoutContent>
1023
1076
  </LayoutHorizontal>
@@ -1025,7 +1078,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
1025
1078
 
1026
1079
  @case ('empty') {
1027
1080
  <LayoutEmpty>
1028
- <LayoutContent [attr.aria-label]="contentAriaLabel()">
1081
+ <LayoutContent
1082
+ data-block-shell-content
1083
+ tabindex="-1"
1084
+ [attr.aria-label]="contentAriaLabel()"
1085
+ >
1029
1086
  <router-outlet />
1030
1087
  </LayoutContent>
1031
1088
  </LayoutEmpty>
@@ -1033,22 +1090,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
1033
1090
 
1034
1091
  @default {
1035
1092
  <LayoutVertical>
1036
- <LayoutNavigation [ariaLabel]="sideAriaLabel()">
1037
- <block-shell-sidebar-navigation
1038
- [navigation]="navigation()"
1039
- [workspaceLinks]="workspaceLinks()"
1040
- [shellName]="shellName()"
1041
- [brandSubtitle]="brandSubtitle()"
1042
- [logoText]="logoText()"
1043
- [homePath]="homePath()"
1044
- [userName]="userName()"
1045
- [userPosition]="userPosition()"
1046
- [userPhotoUrl]="userPhotoUrl()"
1047
- [ariaLabel]="sideAriaLabel()"
1048
- />
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
+ }
1049
1118
  </LayoutNavigation>
1050
1119
 
1051
- <LayoutContent [attr.aria-label]="contentAriaLabel()">
1120
+ <LayoutContent
1121
+ data-block-shell-content
1122
+ tabindex="-1"
1123
+ [attr.aria-label]="contentAriaLabel()"
1124
+ >
1052
1125
  <router-outlet />
1053
1126
  </LayoutContent>
1054
1127
  </LayoutVertical>
@@ -1057,7 +1130,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
1057
1130
  </Layout>
1058
1131
  `,
1059
1132
  }]
1060
- }], 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 }] }] } });
1061
1134
 
1062
1135
  const MAIN_SIDEBAR_NAV_ID = 'main';
1063
1136
  function workspaceNavbarId(workspace) {
@@ -1068,5 +1141,5 @@ function workspaceNavbarId(workspace) {
1068
1141
  * Generated bundle index. Do not edit.
1069
1142
  */
1070
1143
 
1071
- 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 };
1072
1145
  //# sourceMappingURL=edsis-angular-block-shell.mjs.map