@edsis/angular 22.0.23 → 22.0.25

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.
@@ -3,7 +3,7 @@ import { input, ChangeDetectionStrategy, Component, computed, inject, DestroyRef
3
3
  import { RouterLink, RouterOutlet } from '@angular/router';
4
4
  import { LayoutService, LayoutComponent, LayoutVerticalComponent, LayoutHorizontalComponent, LayoutEmptyComponent, LayoutNavigationComponent, LayoutContentComponent } from '@edsis/theme/layout';
5
5
  import { DOCUMENT } from '@angular/common';
6
- import { NavigationCollapseRootDirective, NavigationCollapseExpandedDirective, NavigationComponent, NavigationHeaderComponent, NavigationFooterComponent } from '@edsis/navigation';
6
+ import { NavigationCollapseRootDirective, NavigationCollapseExpandedDirective, NavigationContainerComponent, NavigationSidebarComponent, NavigationDockbarComponent, NavigationHeaderComponent, NavigationFooterComponent, NavigationNavbarComponent, NavigationFlyoutComponent } from '@edsis/navigation';
7
7
  import { PopoverContentDirective, PopoverTriggerDirective } from '@edsis/component/popover';
8
8
  import { AspectRatioComponent } from '@edsis/component/aspect-ratio';
9
9
 
@@ -403,6 +403,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
403
403
  }]
404
404
  }], 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 }] }] } });
405
405
 
406
+ /** Key localStorage tempat NavigationService mempersist appearance nav (`nav-${'appearance'}`). */
407
+ const NAV_APPEARANCE_STORAGE_KEY$1 = 'nav-appearance';
408
+ /** Key localStorage mode appearance (`sticky`/`drawer` saat dockbar, `default`/`collapsed` saat sidebar). */
409
+ const NAV_APPEARANCE_MODE_STORAGE_KEY = 'nav-appearance-mode';
410
+ function isVerticalAppearance(value) {
411
+ return value === 'sidebar' || value === 'dockbar';
412
+ }
413
+ function isDockbarMode(value) {
414
+ return value === 'sticky' || value === 'drawer';
415
+ }
406
416
  class BlockShellSidebarNavigationComponent {
407
417
  documentRef = inject(DOCUMENT);
408
418
  destroyRef = inject(DestroyRef);
@@ -410,8 +420,6 @@ class BlockShellSidebarNavigationComponent {
410
420
  ...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
411
421
  workspaceLinks = input([], /* @ts-ignore */
412
422
  ...(ngDevMode ? [{ debugName: "workspaceLinks" }] : /* istanbul ignore next */ []));
413
- sidebarNavId = input('block-shell-sidebar', /* @ts-ignore */
414
- ...(ngDevMode ? [{ debugName: "sidebarNavId" }] : /* istanbul ignore next */ []));
415
423
  shellName = input.required(/* @ts-ignore */
416
424
  ...(ngDevMode ? [{ debugName: "shellName" }] : /* istanbul ignore next */ []));
417
425
  brandSubtitle = input('Etos Indonusa', /* @ts-ignore */
@@ -426,8 +434,23 @@ class BlockShellSidebarNavigationComponent {
426
434
  ...(ngDevMode ? [{ debugName: "userPosition" }] : /* istanbul ignore next */ []));
427
435
  ariaLabel = input('side navigation', /* @ts-ignore */
428
436
  ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
437
+ /** Fallback appearance ketika localStorage `nav-appearance` kosong atau tidak valid untuk orientasi vertikal. */
438
+ appearance = input('sidebar', /* @ts-ignore */
439
+ ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
429
440
  responsiveCollapsed = signal(this.readResponsiveCollapsed(), /* @ts-ignore */
430
441
  ...(ngDevMode ? [{ debugName: "responsiveCollapsed" }] : /* istanbul ignore next */ []));
442
+ /** Nilai `nav-appearance` yang dipersist NavigationService; di-refresh saat ada perubahan storage. */
443
+ storedAppearance = signal(this.readStoredAppearance(), /* @ts-ignore */
444
+ ...(ngDevMode ? [{ debugName: "storedAppearance" }] : /* istanbul ignore next */ []));
445
+ /** Nilai `nav-appearance-mode` yang dipersist NavigationService (sticky/drawer saat dockbar). */
446
+ storedDockbarMode = signal(this.readStoredDockbarMode(), /* @ts-ignore */
447
+ ...(ngDevMode ? [{ debugName: "storedDockbarMode" }] : /* istanbul ignore next */ []));
448
+ /** localStorage `nav-appearance` menang atas default input — sidebar ↔ dockbar ikut perubahan storage. */
449
+ effectiveAppearance = computed(() => this.storedAppearance() ?? this.appearance(), /* @ts-ignore */
450
+ ...(ngDevMode ? [{ debugName: "effectiveAppearance" }] : /* istanbul ignore next */ []));
451
+ /** Di viewport sempit aside sticky akan mendorong konten; paksa drawer agar overlay. */
452
+ dockbarMode = computed(() => this.responsiveCollapsed() ? 'drawer' : (this.storedDockbarMode() ?? 'sticky'), /* @ts-ignore */
453
+ ...(ngDevMode ? [{ debugName: "dockbarMode" }] : /* istanbul ignore next */ []));
431
454
  constructor() {
432
455
  const windowRef = this.documentRef.defaultView;
433
456
  if (!windowRef) {
@@ -439,44 +462,79 @@ class BlockShellSidebarNavigationComponent {
439
462
  syncResponsiveCollapsed(mediaQuery.matches);
440
463
  mediaQuery.addEventListener('change', handleChange);
441
464
  this.destroyRef.onDestroy(() => mediaQuery.removeEventListener('change', handleChange));
465
+ const syncStoredAppearance = () => {
466
+ this.storedAppearance.set(this.readStoredAppearance());
467
+ this.storedDockbarMode.set(this.readStoredDockbarMode());
468
+ };
469
+ windowRef.addEventListener('storage', syncStoredAppearance);
470
+ this.destroyRef.onDestroy(() => windowRef.removeEventListener('storage', syncStoredAppearance));
442
471
  }
443
472
  readResponsiveCollapsed() {
444
473
  return this.documentRef.defaultView?.matchMedia('(max-width: 767.98px)').matches ?? false;
445
474
  }
475
+ readStoredAppearance() {
476
+ const value = this.readStorage(NAV_APPEARANCE_STORAGE_KEY$1);
477
+ return isVerticalAppearance(value) ? value : null;
478
+ }
479
+ readStoredDockbarMode() {
480
+ const value = this.readStorage(NAV_APPEARANCE_MODE_STORAGE_KEY);
481
+ return isDockbarMode(value) ? value : null;
482
+ }
483
+ readStorage(key) {
484
+ try {
485
+ return this.documentRef.defaultView?.localStorage.getItem(key) ?? null;
486
+ }
487
+ catch {
488
+ return null;
489
+ }
490
+ }
446
491
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellSidebarNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
447
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.1", 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 }, 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 }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
448
- <Navigation
449
- [id]="sidebarNavId()"
450
- [data]="navigation()"
451
- [ariaLabel]="ariaLabel()"
452
- [collapsed]="responsiveCollapsed()"
453
- nav-sidebar-collapse
454
- collapse-tree="stairs"
455
- orientation="vertical"
456
- appearance="sidebar"
457
- class="h-full">
458
- <NavigationHeader>
459
- <block-shell-navigation-header
460
- [name]="shellName()"
461
- [subtitle]="brandSubtitle()"
462
- [logoText]="logoText()"
463
- [homePath]="homePath()"
464
- [collapsible]="true"
465
- [workspaceLinks]="workspaceLinks()" />
466
- </NavigationHeader>
467
-
468
- <NavigationFooter class="px-3">
469
- <block-shell-navigation-footer [name]="userName()" [subtitle]="userPosition()" [collapsible]="true" />
470
- </NavigationFooter>
492
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", 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 }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
493
+ <Navigation id="main" [data]="navigation()" [ariaLabel]="ariaLabel()" collapse-tree="stairs" class="h-full">
494
+ @if (effectiveAppearance() === 'dockbar') {
495
+ <NavigationDockbar [mode]="dockbarMode()">
496
+ <NavigationHeader>
497
+ <block-shell-navigation-header
498
+ [name]="shellName()"
499
+ [subtitle]="brandSubtitle()"
500
+ [logoText]="logoText()"
501
+ [homePath]="homePath()"
502
+ [collapsible]="true"
503
+ [workspaceLinks]="workspaceLinks()" />
504
+ </NavigationHeader>
505
+
506
+ <NavigationFooter class="px-3">
507
+ <block-shell-navigation-footer [name]="userName()" [subtitle]="userPosition()" [collapsible]="true" />
508
+ </NavigationFooter>
509
+ </NavigationDockbar>
510
+ } @else {
511
+ <NavigationSidebar [collapsed]="responsiveCollapsed()" nav-sidebar-collapse>
512
+ <NavigationHeader>
513
+ <block-shell-navigation-header
514
+ [name]="shellName()"
515
+ [subtitle]="brandSubtitle()"
516
+ [logoText]="logoText()"
517
+ [homePath]="homePath()"
518
+ [collapsible]="true"
519
+ [workspaceLinks]="workspaceLinks()" />
520
+ </NavigationHeader>
521
+
522
+ <NavigationFooter class="px-3">
523
+ <block-shell-navigation-footer [name]="userName()" [subtitle]="userPosition()" [collapsible]="true" />
524
+ </NavigationFooter>
525
+ </NavigationSidebar>
526
+ }
471
527
  </Navigation>
472
- `, isInline: true, dependencies: [{ kind: "component", type: NavigationComponent, selector: "Navigation", inputs: ["id", "data", "items", "orientation", "appearance", "position", "collapsed", "dockbarMode", "ariaLabel", "compact", "previewExpanded", "nav-sidebar-collapse", "collapse-tree", "class", "itemClass", "activeIds", "activeUrl", "openedIds"], outputs: ["openedIdsChange", "itemSelected"] }, { 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", "collapsible", "desktopOnly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
528
+ `, 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: "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", "collapsible", "desktopOnly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
473
529
  }
474
530
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellSidebarNavigationComponent, decorators: [{
475
531
  type: Component,
476
532
  args: [{
477
533
  selector: 'block-shell-sidebar-navigation',
478
534
  imports: [
479
- NavigationComponent,
535
+ NavigationContainerComponent,
536
+ NavigationSidebarComponent,
537
+ NavigationDockbarComponent,
480
538
  NavigationHeaderComponent,
481
539
  NavigationFooterComponent,
482
540
  BlockShellNavigationHeaderComponent,
@@ -486,42 +544,59 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
486
544
  class: 'contents',
487
545
  },
488
546
  template: `
489
- <Navigation
490
- [id]="sidebarNavId()"
491
- [data]="navigation()"
492
- [ariaLabel]="ariaLabel()"
493
- [collapsed]="responsiveCollapsed()"
494
- nav-sidebar-collapse
495
- collapse-tree="stairs"
496
- orientation="vertical"
497
- appearance="sidebar"
498
- class="h-full">
499
- <NavigationHeader>
500
- <block-shell-navigation-header
501
- [name]="shellName()"
502
- [subtitle]="brandSubtitle()"
503
- [logoText]="logoText()"
504
- [homePath]="homePath()"
505
- [collapsible]="true"
506
- [workspaceLinks]="workspaceLinks()" />
507
- </NavigationHeader>
508
-
509
- <NavigationFooter class="px-3">
510
- <block-shell-navigation-footer [name]="userName()" [subtitle]="userPosition()" [collapsible]="true" />
511
- </NavigationFooter>
547
+ <Navigation id="main" [data]="navigation()" [ariaLabel]="ariaLabel()" collapse-tree="stairs" class="h-full">
548
+ @if (effectiveAppearance() === 'dockbar') {
549
+ <NavigationDockbar [mode]="dockbarMode()">
550
+ <NavigationHeader>
551
+ <block-shell-navigation-header
552
+ [name]="shellName()"
553
+ [subtitle]="brandSubtitle()"
554
+ [logoText]="logoText()"
555
+ [homePath]="homePath()"
556
+ [collapsible]="true"
557
+ [workspaceLinks]="workspaceLinks()" />
558
+ </NavigationHeader>
559
+
560
+ <NavigationFooter class="px-3">
561
+ <block-shell-navigation-footer [name]="userName()" [subtitle]="userPosition()" [collapsible]="true" />
562
+ </NavigationFooter>
563
+ </NavigationDockbar>
564
+ } @else {
565
+ <NavigationSidebar [collapsed]="responsiveCollapsed()" nav-sidebar-collapse>
566
+ <NavigationHeader>
567
+ <block-shell-navigation-header
568
+ [name]="shellName()"
569
+ [subtitle]="brandSubtitle()"
570
+ [logoText]="logoText()"
571
+ [homePath]="homePath()"
572
+ [collapsible]="true"
573
+ [workspaceLinks]="workspaceLinks()" />
574
+ </NavigationHeader>
575
+
576
+ <NavigationFooter class="px-3">
577
+ <block-shell-navigation-footer [name]="userName()" [subtitle]="userPosition()" [collapsible]="true" />
578
+ </NavigationFooter>
579
+ </NavigationSidebar>
580
+ }
512
581
  </Navigation>
513
582
  `,
514
583
  changeDetection: ChangeDetectionStrategy.OnPush,
515
584
  }]
516
- }], ctorParameters: () => [], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", 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 }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
585
+ }], 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 }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }] } });
517
586
 
587
+ /** Key localStorage tempat NavigationService mempersist appearance nav (`nav-${'appearance'}`). */
588
+ const NAV_APPEARANCE_STORAGE_KEY = 'nav-appearance';
589
+ function isHorizontalAppearance(value) {
590
+ return value === 'navbar' || value === 'flyout';
591
+ }
518
592
  class BlockShellTopNavigationComponent {
593
+ documentRef = inject(DOCUMENT);
594
+ destroyRef = inject(DestroyRef);
595
+ layout = inject(LayoutService);
519
596
  navigation = input.required(/* @ts-ignore */
520
597
  ...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
521
598
  workspaceLinks = input([], /* @ts-ignore */
522
599
  ...(ngDevMode ? [{ debugName: "workspaceLinks" }] : /* istanbul ignore next */ []));
523
- navbarId = input('block-shell-navbar', /* @ts-ignore */
524
- ...(ngDevMode ? [{ debugName: "navbarId" }] : /* istanbul ignore next */ []));
525
600
  shellName = input.required(/* @ts-ignore */
526
601
  ...(ngDevMode ? [{ debugName: "shellName" }] : /* istanbul ignore next */ []));
527
602
  brandSubtitle = input('Etos Indonusa', /* @ts-ignore */
@@ -536,37 +611,83 @@ class BlockShellTopNavigationComponent {
536
611
  ...(ngDevMode ? [{ debugName: "userPosition" }] : /* istanbul ignore next */ []));
537
612
  ariaLabel = input('top navigation', /* @ts-ignore */
538
613
  ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
614
+ /** Fallback appearance ketika localStorage `nav-appearance` kosong atau tidak valid untuk orientasi horizontal. */
615
+ appearance = input('navbar', /* @ts-ignore */
616
+ ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
617
+ flyoutLabel = input('Menu', /* @ts-ignore */
618
+ ...(ngDevMode ? [{ debugName: "flyoutLabel" }] : /* istanbul ignore next */ []));
619
+ /** Nilai `nav-appearance` yang dipersist NavigationService; di-refresh saat ada perubahan storage. */
620
+ storedAppearance = signal(this.readStoredAppearance(), /* @ts-ignore */
621
+ ...(ngDevMode ? [{ debugName: "storedAppearance" }] : /* istanbul ignore next */ []));
622
+ /** localStorage `nav-appearance` menang atas default input — navbar ↔ flyout ikut perubahan storage. */
623
+ effectiveAppearance = computed(() => this.storedAppearance() ?? this.appearance(), /* @ts-ignore */
624
+ ...(ngDevMode ? [{ debugName: "effectiveAppearance" }] : /* istanbul ignore next */ []));
625
+ /** Style flyout mengikuti appearance layout: border-rail ↔ border-rail, selain itu default. */
626
+ navAppearanceStyle = computed(() => this.layout.appearance() === 'border-rail' ? 'border-rail' : 'default', /* @ts-ignore */
627
+ ...(ngDevMode ? [{ debugName: "navAppearanceStyle" }] : /* istanbul ignore next */ []));
628
+ constructor() {
629
+ const windowRef = this.documentRef.defaultView;
630
+ if (!windowRef) {
631
+ return;
632
+ }
633
+ const syncStoredAppearance = () => this.storedAppearance.set(this.readStoredAppearance());
634
+ windowRef.addEventListener('storage', syncStoredAppearance);
635
+ this.destroyRef.onDestroy(() => windowRef.removeEventListener('storage', syncStoredAppearance));
636
+ }
637
+ readStoredAppearance() {
638
+ try {
639
+ const value = this.documentRef.defaultView?.localStorage.getItem(NAV_APPEARANCE_STORAGE_KEY) ?? null;
640
+ return isHorizontalAppearance(value) ? value : null;
641
+ }
642
+ catch {
643
+ return null;
644
+ }
645
+ }
539
646
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellTopNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
540
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.1", 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 }, navbarId: { classPropertyName: "navbarId", publicName: "navbarId", 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 }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
541
- <Navigation
542
- [id]="navbarId()"
543
- [data]="navigation()"
544
- [ariaLabel]="ariaLabel()"
545
- collapse-tree="straight"
546
- orientation="horizontal"
547
- appearance="navbar"
548
- class="h-full">
549
- <NavigationHeader>
550
- <block-shell-navigation-header
551
- [name]="shellName()"
552
- [subtitle]="brandSubtitle()"
553
- [logoText]="logoText()"
554
- [homePath]="homePath()"
555
- [workspaceLinks]="workspaceLinks()" />
556
- </NavigationHeader>
557
-
558
- <NavigationFooter class="px-3">
559
- <block-shell-navigation-footer [name]="userName()" [subtitle]="userPosition()" [desktopOnly]="true" />
560
- </NavigationFooter>
647
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", 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 }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, flyoutLabel: { classPropertyName: "flyoutLabel", publicName: "flyoutLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
648
+ <Navigation id="main" [data]="navigation()" [ariaLabel]="ariaLabel()" collapse-tree="straight" class="h-full">
649
+ @if (effectiveAppearance() === 'flyout') {
650
+ <NavigationFlyout [label]="flyoutLabel()" [nav-appearance-style]="navAppearanceStyle()">
651
+ <NavigationHeader>
652
+ <block-shell-navigation-header
653
+ [name]="shellName()"
654
+ [subtitle]="brandSubtitle()"
655
+ [logoText]="logoText()"
656
+ [homePath]="homePath()"
657
+ [workspaceLinks]="workspaceLinks()" />
658
+ </NavigationHeader>
659
+
660
+ <NavigationFooter class="px-3">
661
+ <block-shell-navigation-footer [name]="userName()" [subtitle]="userPosition()" [desktopOnly]="true" />
662
+ </NavigationFooter>
663
+ </NavigationFlyout>
664
+ } @else {
665
+ <NavigationNavbar [nav-appearance-style]="navAppearanceStyle()">
666
+ <NavigationHeader>
667
+ <block-shell-navigation-header
668
+ [name]="shellName()"
669
+ [subtitle]="brandSubtitle()"
670
+ [logoText]="logoText()"
671
+ [homePath]="homePath()"
672
+ [workspaceLinks]="workspaceLinks()" />
673
+ </NavigationHeader>
674
+
675
+ <NavigationFooter class="px-3">
676
+ <block-shell-navigation-footer [name]="userName()" [subtitle]="userPosition()" [desktopOnly]="true" />
677
+ </NavigationFooter>
678
+ </NavigationNavbar>
679
+ }
561
680
  </Navigation>
562
- `, isInline: true, dependencies: [{ kind: "component", type: NavigationComponent, selector: "Navigation", inputs: ["id", "data", "items", "orientation", "appearance", "position", "collapsed", "dockbarMode", "ariaLabel", "compact", "previewExpanded", "nav-sidebar-collapse", "collapse-tree", "class", "itemClass", "activeIds", "activeUrl", "openedIds"], outputs: ["openedIdsChange", "itemSelected"] }, { 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", "collapsible", "desktopOnly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
681
+ `, 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-appearance-style", "class"] }, { kind: "component", type: NavigationFlyoutComponent, selector: "NavigationFlyout", inputs: ["label", "icon", "icon-only", "icon-position", "nav-position", "nav-appearance-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", "collapsible", "desktopOnly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
563
682
  }
564
683
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellTopNavigationComponent, decorators: [{
565
684
  type: Component,
566
685
  args: [{
567
686
  selector: 'block-shell-top-navigation',
568
687
  imports: [
569
- NavigationComponent,
688
+ NavigationContainerComponent,
689
+ NavigationNavbarComponent,
690
+ NavigationFlyoutComponent,
570
691
  NavigationHeaderComponent,
571
692
  NavigationFooterComponent,
572
693
  BlockShellNavigationHeaderComponent,
@@ -576,40 +697,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
576
697
  class: 'contents',
577
698
  },
578
699
  template: `
579
- <Navigation
580
- [id]="navbarId()"
581
- [data]="navigation()"
582
- [ariaLabel]="ariaLabel()"
583
- collapse-tree="straight"
584
- orientation="horizontal"
585
- appearance="navbar"
586
- class="h-full">
587
- <NavigationHeader>
588
- <block-shell-navigation-header
589
- [name]="shellName()"
590
- [subtitle]="brandSubtitle()"
591
- [logoText]="logoText()"
592
- [homePath]="homePath()"
593
- [workspaceLinks]="workspaceLinks()" />
594
- </NavigationHeader>
595
-
596
- <NavigationFooter class="px-3">
597
- <block-shell-navigation-footer [name]="userName()" [subtitle]="userPosition()" [desktopOnly]="true" />
598
- </NavigationFooter>
700
+ <Navigation id="main" [data]="navigation()" [ariaLabel]="ariaLabel()" collapse-tree="straight" class="h-full">
701
+ @if (effectiveAppearance() === 'flyout') {
702
+ <NavigationFlyout [label]="flyoutLabel()" [nav-appearance-style]="navAppearanceStyle()">
703
+ <NavigationHeader>
704
+ <block-shell-navigation-header
705
+ [name]="shellName()"
706
+ [subtitle]="brandSubtitle()"
707
+ [logoText]="logoText()"
708
+ [homePath]="homePath()"
709
+ [workspaceLinks]="workspaceLinks()" />
710
+ </NavigationHeader>
711
+
712
+ <NavigationFooter class="px-3">
713
+ <block-shell-navigation-footer [name]="userName()" [subtitle]="userPosition()" [desktopOnly]="true" />
714
+ </NavigationFooter>
715
+ </NavigationFlyout>
716
+ } @else {
717
+ <NavigationNavbar [nav-appearance-style]="navAppearanceStyle()">
718
+ <NavigationHeader>
719
+ <block-shell-navigation-header
720
+ [name]="shellName()"
721
+ [subtitle]="brandSubtitle()"
722
+ [logoText]="logoText()"
723
+ [homePath]="homePath()"
724
+ [workspaceLinks]="workspaceLinks()" />
725
+ </NavigationHeader>
726
+
727
+ <NavigationFooter class="px-3">
728
+ <block-shell-navigation-footer [name]="userName()" [subtitle]="userPosition()" [desktopOnly]="true" />
729
+ </NavigationFooter>
730
+ </NavigationNavbar>
731
+ }
599
732
  </Navigation>
600
733
  `,
601
734
  changeDetection: ChangeDetectionStrategy.OnPush,
602
735
  }]
603
- }], 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 }] }], 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 }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
736
+ }], 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 }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], flyoutLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "flyoutLabel", required: false }] }] } });
604
737
 
605
738
  class BlockShellComponent {
606
739
  navigation = input.required(/* @ts-ignore */
607
740
  ...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
608
741
  workspaceLinks = input([], /* @ts-ignore */
609
742
  ...(ngDevMode ? [{ debugName: "workspaceLinks" }] : /* istanbul ignore next */ []));
610
- navbarId = input('block-shell-navbar', /* @ts-ignore */
743
+ /**
744
+ * @deprecated Tidak lagi dipakai. Navigasi utama shell selalu memakai id `main`
745
+ * (lihat NavigationService — id `main` dikhususkan untuk navigasi utama layout/shell).
746
+ * Input dipertahankan sementara demi kompatibilitas pemanggil.
747
+ */
748
+ navbarId = input('main', /* @ts-ignore */
611
749
  ...(ngDevMode ? [{ debugName: "navbarId" }] : /* istanbul ignore next */ []));
612
- sidebarNavId = input('block-shell-sidebar', /* @ts-ignore */
750
+ /** @deprecated Tidak lagi dipakai. Navigasi utama shell selalu memakai id `main`. */
751
+ sidebarNavId = input('main', /* @ts-ignore */
613
752
  ...(ngDevMode ? [{ debugName: "sidebarNavId" }] : /* istanbul ignore next */ []));
614
753
  shellName = input.required(/* @ts-ignore */
615
754
  ...(ngDevMode ? [{ debugName: "shellName" }] : /* istanbul ignore next */ []));
@@ -632,15 +771,14 @@ class BlockShellComponent {
632
771
  layout = inject(LayoutService);
633
772
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
634
773
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", 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 }, 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: `
635
- <layout>
774
+ <Layout>
636
775
  @switch (layout.type()) {
637
776
  @case ('horizontal') {
638
- <layout-horizontal>
639
- <layout-navigation [ariaLabel]="topAriaLabel()">
777
+ <LayoutHorizontal>
778
+ <LayoutNavigation [ariaLabel]="topAriaLabel()">
640
779
  <block-shell-top-navigation
641
780
  [navigation]="navigation()"
642
781
  [workspaceLinks]="workspaceLinks()"
643
- [navbarId]="navbarId()"
644
782
  [shellName]="shellName()"
645
783
  [brandSubtitle]="brandSubtitle()"
646
784
  [logoText]="logoText()"
@@ -648,29 +786,28 @@ class BlockShellComponent {
648
786
  [userName]="userName()"
649
787
  [userPosition]="userPosition()"
650
788
  [ariaLabel]="topAriaLabel()" />
651
- </layout-navigation>
789
+ </LayoutNavigation>
652
790
 
653
- <layout-content [attr.aria-label]="contentAriaLabel()">
791
+ <LayoutContent [attr.aria-label]="contentAriaLabel()">
654
792
  <router-outlet />
655
- </layout-content>
656
- </layout-horizontal>
793
+ </LayoutContent>
794
+ </LayoutHorizontal>
657
795
  }
658
796
 
659
797
  @case ('empty') {
660
- <layout-empty>
661
- <layout-content [attr.aria-label]="contentAriaLabel()">
798
+ <LayoutEmpty>
799
+ <LayoutContent [attr.aria-label]="contentAriaLabel()">
662
800
  <router-outlet />
663
- </layout-content>
664
- </layout-empty>
801
+ </LayoutContent>
802
+ </LayoutEmpty>
665
803
  }
666
804
 
667
805
  @default {
668
- <layout-vertical>
669
- <layout-navigation [ariaLabel]="sideAriaLabel()">
806
+ <LayoutVertical>
807
+ <LayoutNavigation [ariaLabel]="sideAriaLabel()">
670
808
  <block-shell-sidebar-navigation
671
809
  [navigation]="navigation()"
672
810
  [workspaceLinks]="workspaceLinks()"
673
- [sidebarNavId]="sidebarNavId()"
674
811
  [shellName]="shellName()"
675
812
  [brandSubtitle]="brandSubtitle()"
676
813
  [logoText]="logoText()"
@@ -678,16 +815,16 @@ class BlockShellComponent {
678
815
  [userName]="userName()"
679
816
  [userPosition]="userPosition()"
680
817
  [ariaLabel]="sideAriaLabel()" />
681
- </layout-navigation>
818
+ </LayoutNavigation>
682
819
 
683
- <layout-content [attr.aria-label]="contentAriaLabel()">
820
+ <LayoutContent [attr.aria-label]="contentAriaLabel()">
684
821
  <router-outlet />
685
- </layout-content>
686
- </layout-vertical>
822
+ </LayoutContent>
823
+ </LayoutVertical>
687
824
  }
688
825
  }
689
- </layout>
690
- `, isInline: true, dependencies: [{ kind: "component", type: LayoutComponent, selector: "layout", inputs: ["surface", "appearance", "layout-style", "width", "class"] }, { kind: "component", type: LayoutVerticalComponent, selector: "layout-vertical", inputs: ["class"] }, { kind: "component", type: LayoutHorizontalComponent, selector: "layout-horizontal", inputs: ["class"] }, { kind: "component", type: LayoutEmptyComponent, selector: "layout-empty", inputs: ["class"] }, { kind: "component", type: LayoutNavigationComponent, selector: "layout-navigation", inputs: ["ariaLabel", "railOffset", "class"] }, { kind: "component", type: LayoutContentComponent, selector: "layout-content", inputs: ["class"] }, { kind: "component", type: BlockShellSidebarNavigationComponent, selector: "block-shell-sidebar-navigation", inputs: ["navigation", "workspaceLinks", "sidebarNavId", "shellName", "brandSubtitle", "logoText", "homePath", "userName", "userPosition", "ariaLabel"] }, { kind: "component", type: BlockShellTopNavigationComponent, selector: "block-shell-top-navigation", inputs: ["navigation", "workspaceLinks", "navbarId", "shellName", "brandSubtitle", "logoText", "homePath", "userName", "userPosition", "ariaLabel"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
826
+ </Layout>
827
+ `, 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", "ariaLabel", "appearance"] }, { kind: "component", type: BlockShellTopNavigationComponent, selector: "block-shell-top-navigation", inputs: ["navigation", "workspaceLinks", "shellName", "brandSubtitle", "logoText", "homePath", "userName", "userPosition", "ariaLabel", "appearance", "flyoutLabel"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
691
828
  }
692
829
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellComponent, decorators: [{
693
830
  type: Component,
@@ -708,15 +845,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
708
845
  class: 'contents',
709
846
  },
710
847
  template: `
711
- <layout>
848
+ <Layout>
712
849
  @switch (layout.type()) {
713
850
  @case ('horizontal') {
714
- <layout-horizontal>
715
- <layout-navigation [ariaLabel]="topAriaLabel()">
851
+ <LayoutHorizontal>
852
+ <LayoutNavigation [ariaLabel]="topAriaLabel()">
716
853
  <block-shell-top-navigation
717
854
  [navigation]="navigation()"
718
855
  [workspaceLinks]="workspaceLinks()"
719
- [navbarId]="navbarId()"
720
856
  [shellName]="shellName()"
721
857
  [brandSubtitle]="brandSubtitle()"
722
858
  [logoText]="logoText()"
@@ -724,29 +860,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
724
860
  [userName]="userName()"
725
861
  [userPosition]="userPosition()"
726
862
  [ariaLabel]="topAriaLabel()" />
727
- </layout-navigation>
863
+ </LayoutNavigation>
728
864
 
729
- <layout-content [attr.aria-label]="contentAriaLabel()">
865
+ <LayoutContent [attr.aria-label]="contentAriaLabel()">
730
866
  <router-outlet />
731
- </layout-content>
732
- </layout-horizontal>
867
+ </LayoutContent>
868
+ </LayoutHorizontal>
733
869
  }
734
870
 
735
871
  @case ('empty') {
736
- <layout-empty>
737
- <layout-content [attr.aria-label]="contentAriaLabel()">
872
+ <LayoutEmpty>
873
+ <LayoutContent [attr.aria-label]="contentAriaLabel()">
738
874
  <router-outlet />
739
- </layout-content>
740
- </layout-empty>
875
+ </LayoutContent>
876
+ </LayoutEmpty>
741
877
  }
742
878
 
743
879
  @default {
744
- <layout-vertical>
745
- <layout-navigation [ariaLabel]="sideAriaLabel()">
880
+ <LayoutVertical>
881
+ <LayoutNavigation [ariaLabel]="sideAriaLabel()">
746
882
  <block-shell-sidebar-navigation
747
883
  [navigation]="navigation()"
748
884
  [workspaceLinks]="workspaceLinks()"
749
- [sidebarNavId]="sidebarNavId()"
750
885
  [shellName]="shellName()"
751
886
  [brandSubtitle]="brandSubtitle()"
752
887
  [logoText]="logoText()"
@@ -754,15 +889,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
754
889
  [userName]="userName()"
755
890
  [userPosition]="userPosition()"
756
891
  [ariaLabel]="sideAriaLabel()" />
757
- </layout-navigation>
892
+ </LayoutNavigation>
758
893
 
759
- <layout-content [attr.aria-label]="contentAriaLabel()">
894
+ <LayoutContent [attr.aria-label]="contentAriaLabel()">
760
895
  <router-outlet />
761
- </layout-content>
762
- </layout-vertical>
896
+ </LayoutContent>
897
+ </LayoutVertical>
763
898
  }
764
899
  }
765
- </layout>
900
+ </Layout>
766
901
  `,
767
902
  changeDetection: ChangeDetectionStrategy.OnPush,
768
903
  }]