@cloudfrogger/goodui 0.0.65 → 0.0.71

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.
Files changed (146) hide show
  1. package/ai/README.md +15 -0
  2. package/ai/case-studies/dockerhub.md +7 -0
  3. package/ai/case-studies/index.md +1 -0
  4. package/ai/catalog/component.schema.json +6 -0
  5. package/ai/catalog/components/good-action-menu.json +2 -2
  6. package/ai/catalog/components/good-alert.json +2 -2
  7. package/ai/catalog/components/{good-topbar.json → good-app-header.json} +75 -81
  8. package/ai/catalog/components/{good-app-layout.json → good-app-shell.json} +32 -68
  9. package/ai/catalog/components/good-brand-icon.json +6 -6
  10. package/ai/catalog/components/good-button.json +2 -2
  11. package/ai/catalog/components/good-dropdown.json +2 -2
  12. package/ai/catalog/components/good-header-actions.json +10 -1
  13. package/ai/catalog/components/{good-topbar-dropdown-item.json → good-header-dropdown-item.json} +17 -17
  14. package/ai/catalog/components/{good-topbar-dropdown-menu.json → good-header-dropdown-menu.json} +14 -14
  15. package/ai/catalog/components/{good-topbar-menu-item.json → good-header-menu-item.json} +17 -15
  16. package/ai/catalog/components/{good-topbar-menu-container.json → good-header-menu.json} +16 -14
  17. package/ai/catalog/components/good-header-search.json +12 -3
  18. package/ai/catalog/components/{good-topbar-submenu.json → good-header-submenu.json} +12 -12
  19. package/ai/catalog/components/good-header-themetoggle.json +3 -1
  20. package/ai/catalog/components/{good-heading.json → good-heading-1.json} +15 -33
  21. package/ai/catalog/components/good-heading-2.json +46 -0
  22. package/ai/catalog/components/{good-subheading.json → good-heading-3.json} +9 -30
  23. package/ai/catalog/components/good-heading-4.json +46 -0
  24. package/ai/catalog/components/good-heading-5.json +46 -0
  25. package/ai/catalog/components/good-heading-6.json +46 -0
  26. package/ai/catalog/components/good-heading-7.json +46 -0
  27. package/ai/catalog/components/good-heading-group.json +1 -1
  28. package/ai/catalog/components/good-main-view.json +6 -49
  29. package/ai/catalog/components/good-notification-host.json +1 -1
  30. package/ai/catalog/components/good-section.json +20 -2
  31. package/ai/catalog/components/good-sidebar-item.json +4 -2
  32. package/ai/catalog/components/good-sidebar-menu-container.json +4 -2
  33. package/ai/catalog/components/good-sidebar-submenu-group.json +1 -1
  34. package/ai/catalog/components/good-sidebar-submenu-item.json +1 -1
  35. package/ai/catalog/components/{good-sidebar-container.json → good-sidebar.json} +23 -26
  36. package/ai/catalog/components/good-summary.json +6 -1
  37. package/ai/catalog/index.json +170 -110
  38. package/ai/examples/edit-form.html +3 -1
  39. package/ai/examples/edit-form.ts +2 -2
  40. package/ai/examples/login.html +3 -1
  41. package/ai/examples/login.ts +2 -2
  42. package/ai/examples/settings.html +3 -1
  43. package/ai/examples/settings.ts +2 -2
  44. package/ai/examples/shell.html +18 -0
  45. package/ai/examples/shell.ts +11 -0
  46. package/ai/examples/table-view.html +3 -1
  47. package/ai/examples/table-view.ts +2 -2
  48. package/ai/examples/tsconfig.json +2 -1
  49. package/ai/guides/component-discovery.md +2 -2
  50. package/ai/guides/layout.md +5 -3
  51. package/ai/guides/page-patterns.md +7 -3
  52. package/ai/manifest.json +2 -2
  53. package/ai/skill/goodui/SKILL.md +11 -3
  54. package/angular/projects/goodui/package.json +1 -1
  55. package/angular/projects/goodui/src/lib/actions.ts +27 -3
  56. package/angular/projects/goodui/src/lib/app-shell.ts +109 -0
  57. package/angular/projects/goodui/src/lib/{topbar.ts → header.ts} +96 -69
  58. package/angular/projects/goodui/src/lib/main-view.ts +22 -13
  59. package/angular/projects/goodui/src/lib/shell-context.ts +46 -0
  60. package/angular/projects/goodui/src/lib/sidebar.ts +58 -40
  61. package/angular/projects/goodui/src/lib/typography.ts +51 -41
  62. package/angular/projects/goodui/src/public-api.ts +2 -2
  63. package/angular/projects/goodui/src/styles.css +95 -61
  64. package/angular/projects/goodui/src/tokens.generated.css +43 -6
  65. package/design/app-shell-contract.json +118 -0
  66. package/design/component-map.json +153 -71
  67. package/design/header-search-variants.json +55 -0
  68. package/design/typography-components.json +327 -0
  69. package/design-tokens/penpot.tokens.json +160 -6
  70. package/design.md +49 -37
  71. package/fesm2022/cloudfrogger-goodui.mjs +501 -342
  72. package/fesm2022/cloudfrogger-goodui.mjs.map +1 -1
  73. package/guides/README.md +1 -1
  74. package/guides/components/action-bar.md +1 -1
  75. package/guides/components/app-header.md +27 -0
  76. package/guides/components/columns.md +3 -3
  77. package/guides/components/header-actions.md +10 -5
  78. package/guides/components/header-avatar.md +1 -1
  79. package/guides/components/header-menu.md +64 -0
  80. package/guides/components/header-notification.md +1 -1
  81. package/guides/components/header-search.md +26 -5
  82. package/guides/components/header-themetoggle.md +3 -3
  83. package/guides/components/icon.md +1 -1
  84. package/guides/components/main-view.md +30 -8
  85. package/guides/components/notifications.md +1 -1
  86. package/guides/components/settings.md +1 -1
  87. package/guides/components/sidebar.md +16 -34
  88. package/guides/components/submenus.md +4 -4
  89. package/guides/components/subnav.md +4 -3
  90. package/guides/components/typography.md +76 -19
  91. package/guides/contributing/design-to-code.md +61 -31
  92. package/guides/foundations/naming.md +1 -1
  93. package/guides/foundations/tokens.md +7 -7
  94. package/guides/intro.md +17 -19
  95. package/guides/layout/app-shell.md +37 -0
  96. package/guides/layout/layout-rules.md +2 -2
  97. package/guides/migrations/app-shell.md +28 -0
  98. package/guides/migrations/explicit-headings.md +20 -0
  99. package/guides/migrations/header-actions.md +1 -1
  100. package/guides/migrations/header-menu.md +16 -0
  101. package/homepage/src/app/examples/calendar-workspace/calendar-workspace-page.ts +2 -10
  102. package/homepage/src/app/examples/calendar-workspace/source-code.generated.ts +1 -1
  103. package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.html +6 -4
  104. package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.ts +2 -20
  105. package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.html +5 -5
  106. package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.ts +2 -20
  107. package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.html +3 -1
  108. package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.ts +2 -20
  109. package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.html +7 -5
  110. package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.ts +2 -14
  111. package/homepage/src/app/examples/case-studies/cloudhoster/home-page.html +4 -4
  112. package/homepage/src/app/examples/case-studies/cloudhoster/home-page.ts +2 -12
  113. package/homepage/src/app/examples/case-studies/cloudhoster/source-code.generated.ts +10 -10
  114. package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.html +6 -6
  115. package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.ts +2 -18
  116. package/homepage/src/app/examples/case-studies/vpshoster/overview-page.html +4 -4
  117. package/homepage/src/app/examples/case-studies/vpshoster/overview-page.ts +2 -8
  118. package/homepage/src/app/examples/case-studies/vpshoster/servers-page.html +4 -1
  119. package/homepage/src/app/examples/case-studies/vpshoster/servers-page.ts +2 -12
  120. package/homepage/src/app/examples/case-studies/vpshoster/source-code.generated.ts +4 -4
  121. package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.html +4 -4
  122. package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.ts +2 -8
  123. package/homepage/src/app/examples/error-pages/error-pages-example-page.html +3 -1
  124. package/homepage/src/app/examples/error-pages/error-pages-example-page.ts +2 -7
  125. package/homepage/src/app/examples/error-pages/source-code.generated.ts +2 -2
  126. package/homepage/src/app/examples/mail-compose/mail-compose-page.ts +2 -4
  127. package/homepage/src/app/examples/mail-workspace/mail-workspace-page.ts +2 -10
  128. package/homepage/src/app/examples/mail-workspace/source-code.generated.ts +1 -1
  129. package/homepage/src/app/examples/notifications/notifications-page.html +3 -1
  130. package/homepage/src/app/examples/notifications/notifications-page.ts +2 -8
  131. package/homepage/src/app/examples/notifications/source-code.generated.ts +2 -2
  132. package/homepage/src/app/examples/pdf-reader/pdf-reader-page.html +3 -1
  133. package/homepage/src/app/examples/pdf-reader/pdf-reader-page.ts +2 -7
  134. package/homepage/src/app/examples/pdf-reader/source-code.generated.ts +2 -2
  135. package/homepage/src/app/examples/user-registration/source-code.generated.ts +3 -3
  136. package/homepage/src/app/examples/user-registration/user-registration-example-page.html +1 -1
  137. package/homepage/src/app/examples/user-registration/user-registration-example-page.ts +2 -2
  138. package/homepage/src/app/examples/user-registration/user-registration-form.ts +2 -13
  139. package/homepage/src/app/examples/user-registration/user-registration-page.html +1 -1
  140. package/homepage/src/app/examples/user-registration/user-registration-page.ts +2 -7
  141. package/package.json +2 -2
  142. package/styles.css +1 -1
  143. package/types/cloudfrogger-goodui.d.ts +202 -107
  144. package/angular/projects/goodui/src/lib/app-layout.ts +0 -84
  145. package/guides/components/topbar.md +0 -89
  146. package/guides/layout/app-layout.md +0 -81
@@ -1,11 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, signal, computed, Injectable, makeEnvironmentProviders, input, ChangeDetectionStrategy, Component, forwardRef, contentChildren, effect, output, viewChild, ElementRef, HostListener, contentChild, model, DestroyRef, Directive, booleanAttribute, PLATFORM_ID, TemplateRef, untracked, LOCALE_ID, afterNextRender } from '@angular/core';
2
+ import { InjectionToken, inject, signal, computed, Injectable, makeEnvironmentProviders, input, ChangeDetectionStrategy, Component, contentChildren, forwardRef, effect, output, viewChild, HostListener, ElementRef, model, DestroyRef, Directive, booleanAttribute, contentChild, PLATFORM_ID, TemplateRef, untracked, LOCALE_ID, afterNextRender } from '@angular/core';
3
3
  import { DOCUMENT, Location, NgTemplateOutlet, isPlatformBrowser, DecimalPipe } from '@angular/common';
4
- import { RouterLink, Router, NavigationEnd } from '@angular/router';
4
+ import { Router, NavigationEnd, RouterLink } from '@angular/router';
5
+ import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
+ import { filter, map } from 'rxjs';
5
7
  import { LucideInfo, LucideX, LucideDynamicIcon, LucideEllipsis, LucideImage, LucideChevronDown, LucideChevronRight, LucideThumbsUp, LucideHeart, LucideStar, LucideSearch, LucideChevronLeft, LucideArrowDown, LucideArrowDownUp, LucideArrowUp, LucideGripVertical, LucideSearchX, LucideTable2, LucideChartLine, LucideChartColumn, LucideChartScatter, LucidePlus, LucideMinus, LucideScan, LucideType, LucidePaintBucket, LucidePalette, LucidePipette, LucideCheck, LucideUndo2, LucideRedo2, LucideBold, LucideItalic, LucideUnderline, LucideLink, LucideTable, LucideTableProperties, LucideListChecks, LucideHeading1, LucideArrowUpToLine, LucideArrowDownToLine, LucideArrowLeftToLine, LucideArrowRightToLine, LucideRows3, LucideColumns3, LucideTrash2, LucideGripHorizontal, LucideRemoveFormatting, LucidePanelRight, LucideList, LucideListOrdered, LucideTextAlignStart, LucideTextAlignCenter, LucideTextAlignEnd, LucideTextAlignJustify, LucideCalendarDays, LucideTruck, LucideShieldCheck, LucidePackageCheck, LucideMapPin, LucideHouse, LucideFileText, LucideClipboardList, LucideChevronUp, LucideZoomIn, LucideZoomOut, LucideRotateCw, LucideDownload, LucideServerCrash, LucideFileQuestionMark } from '@lucide/angular';
6
8
  export * from '@lucide/angular';
7
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
8
- import { filter } from 'rxjs';
9
9
  import { Validators, NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
10
10
  import * as i1 from '@tanstack/angular-table';
11
11
  import { tableFeatures, columnVisibilityFeature, columnOrderingFeature, createPaginatedRowModel, rowPaginationFeature, filterFn_includesString, createFilteredRowModel, globalFilteringFeature, columnFilteringFeature, sortFn_datetime, sortFn_text, sortFn_alphanumeric, createSortedRowModel, rowSortingFeature, injectTable, FlexRender } from '@tanstack/angular-table';
@@ -373,6 +373,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
373
373
  }]
374
374
  }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }] } });
375
375
 
376
+ const GOOD_SHELL_DEFAULTS = {
377
+ brand: 'GOODUI', brandLogoSrc: '', brandLogoDarkSrc: '', brandMarkSrc: '', brandMarkDarkSrc: '',
378
+ showBrandIcon: false, showMobileBrand: true, user: null, notifications: [], searchItems: [],
379
+ settingsActions: [], showThemeToggle: true, showSettings: false, avatarActions: [],
380
+ };
381
+ class GoodShellContext {
382
+ options = signal(GOOD_SHELL_DEFAULTS, ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
383
+ hasSidebar = signal(false, ...(ngDevMode ? [{ debugName: "hasSidebar" }] : /* istanbul ignore next */ []));
384
+ sidebarOpen = signal(false, ...(ngDevMode ? [{ debugName: "sidebarOpen" }] : /* istanbul ignore next */ []));
385
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodShellContext, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
386
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodShellContext });
387
+ }
388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodShellContext, decorators: [{
389
+ type: Injectable
390
+ }] });
391
+ class GoodNavigationState {
392
+ router = inject(Router, { optional: true });
393
+ activeRoute = this.router
394
+ ? toSignal(this.router.events.pipe(filter((event) => event instanceof NavigationEnd), map(event => event.urlAfterRedirects.split(/[?#]/)[0] || '/')), { initialValue: this.router.url.split(/[?#]/)[0] || '/' })
395
+ : signal('/');
396
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodNavigationState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
397
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodNavigationState, providedIn: 'root' });
398
+ }
399
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodNavigationState, decorators: [{
400
+ type: Injectable,
401
+ args: [{ providedIn: 'root' }]
402
+ }] });
403
+
376
404
  let nextPanelId = 0;
377
405
  class GoodSidebarAccordion {
378
406
  selected = signal({}, ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
@@ -392,10 +420,12 @@ class GoodSidebarSubmenuItemComponent {
392
420
  active = input(false, ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
393
421
  activeMatch = input('prefix', ...(ngDevMode ? [{ debugName: "activeMatch" }] : /* istanbul ignore next */ []));
394
422
  activeRoute = input('', ...(ngDevMode ? [{ debugName: "activeRoute" }] : /* istanbul ignore next */ []));
423
+ navigation = inject(GoodNavigationState);
424
+ routeState = computed(() => this.activeRoute() || this.navigation.activeRoute(), ...(ngDevMode ? [{ debugName: "routeState" }] : /* istanbul ignore next */ []));
395
425
  disabled = computed(() => this.item()?.disabled ?? false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
396
426
  text = computed(() => this.item()?.label ?? this.label(), ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
397
427
  link = computed(() => this.item()?.route ?? this.route(), ...(ngDevMode ? [{ debugName: "link" }] : /* istanbul ignore next */ []));
398
- isActive = computed(() => this.active() || goodRouteActive(this.link(), this.activeRoute(), this.item()?.activeMatch ?? this.activeMatch()), ...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
428
+ isActive = computed(() => this.active() || goodRouteActive(this.link(), this.routeState(), this.item()?.activeMatch ?? this.activeMatch()), ...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
399
429
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodSidebarSubmenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
400
430
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodSidebarSubmenuItemComponent, isStandalone: true, selector: "good-sidebar-submenu-item", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, route: { classPropertyName: "route", publicName: "route", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, activeMatch: { classPropertyName: "activeMatch", publicName: "activeMatch", isSignal: true, isRequired: false, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-sidebar-submenu-item" }, ngImport: i0, template: `
401
431
  @if (link() && !disabled()) {
@@ -437,11 +467,15 @@ class GoodSidebarSubmenuGroupComponent {
437
467
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
438
468
  expanded = input(false, ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
439
469
  activeRoute = input('', ...(ngDevMode ? [{ debugName: "activeRoute" }] : /* istanbul ignore next */ []));
470
+ navigation = inject(GoodNavigationState);
471
+ routeState = computed(() => this.activeRoute() || this.navigation.activeRoute(), ...(ngDevMode ? [{ debugName: "routeState" }] : /* istanbul ignore next */ []));
440
472
  depth = input(1, ...(ngDevMode ? [{ debugName: "depth" }] : /* istanbul ignore next */ []));
441
473
  localOpen = signal(null, ...(ngDevMode ? [{ debugName: "localOpen" }] : /* istanbul ignore next */ []));
474
+ projectedLinks = contentChildren(GoodSidebarSubmenuItemComponent, { ...(ngDevMode ? { debugName: "projectedLinks" } : /* istanbul ignore next */ {}), descendants: true });
475
+ projectedGroups = contentChildren(GoodSidebarSubmenuGroupComponent, { ...(ngDevMode ? { debugName: "projectedGroups" } : /* istanbul ignore next */ {}), descendants: true });
442
476
  children = computed(() => this.item()?.children ?? [], ...(ngDevMode ? [{ debugName: "children" }] : /* istanbul ignore next */ []));
443
477
  text = computed(() => this.item()?.label ?? this.label(), ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
444
- initiallyOpen = computed(() => this.expanded() || (!!this.item() && goodItemContainsRoute(this.item(), this.activeRoute())), ...(ngDevMode ? [{ debugName: "initiallyOpen" }] : /* istanbul ignore next */ []));
478
+ initiallyOpen = computed(() => this.expanded() || this.projectedLinks().some(link => link.isActive()) || this.projectedGroups().some(group => group.initiallyOpen()) || (!!this.item() && goodItemContainsRoute(this.item(), this.routeState())), ...(ngDevMode ? [{ debugName: "initiallyOpen" }] : /* istanbul ignore next */ []));
445
479
  isOpen = computed(() => this.accordion
446
480
  ? this.accordion.isOpen(this.depth(), this.panelId, this.initiallyOpen())
447
481
  : (this.localOpen() ?? this.initiallyOpen()), ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
@@ -452,7 +486,7 @@ class GoodSidebarSubmenuGroupComponent {
452
486
  this.localOpen.set(!this.isOpen());
453
487
  }
454
488
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodSidebarSubmenuGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
455
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodSidebarSubmenuGroupComponent, isStandalone: true, selector: "good-sidebar-submenu-group", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null }, depth: { classPropertyName: "depth", publicName: "depth", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-sidebar-submenu-group" }, ngImport: i0, template: `
489
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodSidebarSubmenuGroupComponent, isStandalone: true, selector: "good-sidebar-submenu-group", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null }, depth: { classPropertyName: "depth", publicName: "depth", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-sidebar-submenu-group" }, queries: [{ propertyName: "projectedLinks", predicate: GoodSidebarSubmenuItemComponent, descendants: true, isSignal: true }, { propertyName: "projectedGroups", predicate: GoodSidebarSubmenuGroupComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
456
490
  <div class="good-submenu-group">
457
491
  <button type="button" class="good-submenu-heading" [attr.aria-expanded]="isOpen()"
458
492
  [attr.aria-controls]="panelId" (click)="toggle()">
@@ -461,9 +495,9 @@ class GoodSidebarSubmenuGroupComponent {
461
495
  <div class="good-submenu-children" [id]="panelId" [hidden]="!isOpen()">
462
496
  @for (child of children(); track child.id) {
463
497
  @if (child.children?.length) {
464
- <good-sidebar-submenu-group [item]="child" [activeRoute]="activeRoute()" [depth]="depth() + 1" />
498
+ <good-sidebar-submenu-group [item]="child" [activeRoute]="routeState()" [depth]="depth() + 1" />
465
499
  } @else {
466
- <good-sidebar-submenu-item [item]="child" [activeRoute]="activeRoute()" />
500
+ <good-sidebar-submenu-item [item]="child" [activeRoute]="routeState()" />
467
501
  }
468
502
  }
469
503
  <ng-content />
@@ -487,9 +521,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
487
521
  <div class="good-submenu-children" [id]="panelId" [hidden]="!isOpen()">
488
522
  @for (child of children(); track child.id) {
489
523
  @if (child.children?.length) {
490
- <good-sidebar-submenu-group [item]="child" [activeRoute]="activeRoute()" [depth]="depth() + 1" />
524
+ <good-sidebar-submenu-group [item]="child" [activeRoute]="routeState()" [depth]="depth() + 1" />
491
525
  } @else {
492
- <good-sidebar-submenu-item [item]="child" [activeRoute]="activeRoute()" />
526
+ <good-sidebar-submenu-item [item]="child" [activeRoute]="routeState()" />
493
527
  }
494
528
  }
495
529
  <ng-content />
@@ -498,7 +532,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
498
532
  `,
499
533
  host: { class: 'good-sidebar-submenu-group' },
500
534
  }]
501
- }], propDecorators: { item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }], activeRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeRoute", required: false }] }], depth: [{ type: i0.Input, args: [{ isSignal: true, alias: "depth", required: false }] }] } });
535
+ }], propDecorators: { item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }], activeRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeRoute", required: false }] }], depth: [{ type: i0.Input, args: [{ isSignal: true, alias: "depth", required: false }] }], projectedLinks: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => GoodSidebarSubmenuItemComponent), { ...{ descendants: true }, isSignal: true }] }], projectedGroups: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => GoodSidebarSubmenuGroupComponent), { ...{ descendants: true }, isSignal: true }] }] } });
502
536
  class GoodSidebarItemComponent {
503
537
  accordion = inject(GoodSidebarAccordion, { optional: true });
504
538
  panelId = `good-sidebar-panel-${++nextPanelId}`;
@@ -511,29 +545,35 @@ class GoodSidebarItemComponent {
511
545
  activeMatch = input('prefix', ...(ngDevMode ? [{ debugName: "activeMatch" }] : /* istanbul ignore next */ []));
512
546
  expanded = input(false, ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
513
547
  activeRoute = input('', ...(ngDevMode ? [{ debugName: "activeRoute" }] : /* istanbul ignore next */ []));
514
- projectedGroups = contentChildren(GoodSidebarSubmenuGroupComponent, ...(ngDevMode ? [{ debugName: "projectedGroups" }] : /* istanbul ignore next */ []));
548
+ navigation = inject(GoodNavigationState);
549
+ routeState = computed(() => this.activeRoute() || this.navigation.activeRoute(), ...(ngDevMode ? [{ debugName: "routeState" }] : /* istanbul ignore next */ []));
550
+ parentItem = inject(GoodSidebarItemComponent, { optional: true, skipSelf: true });
551
+ depth = (this.parentItem?.depth ?? -1) + 1;
552
+ projectedItems = contentChildren(GoodSidebarItemComponent, { ...(ngDevMode ? { debugName: "projectedItems" } : /* istanbul ignore next */ {}), descendants: true });
553
+ projectedGroups = contentChildren(GoodSidebarSubmenuGroupComponent, { ...(ngDevMode ? { debugName: "projectedGroups" } : /* istanbul ignore next */ {}), descendants: true });
554
+ projectedLinks = contentChildren(GoodSidebarSubmenuItemComponent, { ...(ngDevMode ? { debugName: "projectedLinks" } : /* istanbul ignore next */ {}), descendants: true });
515
555
  children = computed(() => this.item()?.children ?? [], ...(ngDevMode ? [{ debugName: "children" }] : /* istanbul ignore next */ []));
516
- hasChildren = computed(() => this.children().length > 0 || this.projectedGroups().length > 0, ...(ngDevMode ? [{ debugName: "hasChildren" }] : /* istanbul ignore next */ []));
556
+ hasChildren = computed(() => this.children().length > 0 || this.projectedGroups().length > 0 || this.projectedItems().length > 0 || this.projectedLinks().length > 0, ...(ngDevMode ? [{ debugName: "hasChildren" }] : /* istanbul ignore next */ []));
517
557
  text = computed(() => this.item()?.label ?? this.label(), ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
518
558
  iconName = computed(() => this.item()?.icon ?? this.icon(), ...(ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []));
519
559
  link = computed(() => this.item()?.route ?? this.route(), ...(ngDevMode ? [{ debugName: "link" }] : /* istanbul ignore next */ []));
520
560
  badgeText = computed(() => this.item()?.badge ?? this.badge(), ...(ngDevMode ? [{ debugName: "badgeText" }] : /* istanbul ignore next */ []));
521
- isActive = computed(() => this.active() || goodRouteActive(this.link(), this.activeRoute(), this.item()?.activeMatch ?? this.activeMatch()), ...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
522
- initiallyOpen = computed(() => this.expanded() || (!!this.item() && goodItemContainsRoute(this.item(), this.activeRoute())), ...(ngDevMode ? [{ debugName: "initiallyOpen" }] : /* istanbul ignore next */ []));
561
+ isActive = computed(() => this.active() || goodRouteActive(this.link(), this.routeState(), this.item()?.activeMatch ?? this.activeMatch()) || this.projectedItems().some(item => item.isActive()) || this.projectedGroups().some(group => group.initiallyOpen()) || this.projectedLinks().some(link => link.isActive()), ...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
562
+ initiallyOpen = computed(() => this.expanded() || this.isActive() || (!!this.item() && goodItemContainsRoute(this.item(), this.routeState())), ...(ngDevMode ? [{ debugName: "initiallyOpen" }] : /* istanbul ignore next */ []));
523
563
  localOpen = signal(null, ...(ngDevMode ? [{ debugName: "localOpen" }] : /* istanbul ignore next */ []));
524
564
  isOpen = computed(() => this.accordion
525
- ? this.accordion.isOpen(0, this.panelId, this.initiallyOpen())
565
+ ? this.accordion.isOpen(this.depth, this.panelId, this.initiallyOpen())
526
566
  : (this.localOpen() ?? this.initiallyOpen()), ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
527
567
  toggle() {
528
568
  if (this.accordion)
529
- this.accordion.toggle(0, this.panelId, this.isOpen());
569
+ this.accordion.toggle(this.depth, this.panelId, this.isOpen());
530
570
  else
531
571
  this.localOpen.set(!this.isOpen());
532
572
  }
533
573
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodSidebarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
534
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodSidebarItemComponent, isStandalone: true, selector: "good-sidebar-item", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, route: { classPropertyName: "route", publicName: "route", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, activeMatch: { classPropertyName: "activeMatch", publicName: "activeMatch", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-sidebar-item" }, queries: [{ propertyName: "projectedGroups", predicate: GoodSidebarSubmenuGroupComponent, isSignal: true }], ngImport: i0, template: `
574
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodSidebarItemComponent, isStandalone: true, selector: "good-sidebar-item", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, route: { classPropertyName: "route", publicName: "route", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, activeMatch: { classPropertyName: "activeMatch", publicName: "activeMatch", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-depth": "depth" }, classAttribute: "good-sidebar-item" }, queries: [{ propertyName: "projectedItems", predicate: GoodSidebarItemComponent, descendants: true, isSignal: true }, { propertyName: "projectedGroups", predicate: GoodSidebarSubmenuGroupComponent, descendants: true, isSignal: true }, { propertyName: "projectedLinks", predicate: GoodSidebarSubmenuItemComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
535
575
  @if (hasChildren()) {
536
- <button type="button" class="good-sidebar-row" [class.good-is-active]="isActive()" [class.good-is-disabled]="item()?.disabled ?? false" [disabled]="item()?.disabled ?? false"
576
+ <button type="button" [class]="depth > 0 ? 'good-submenu-link' : 'good-sidebar-row'" [class.good-is-active]="isActive()" [class.good-is-disabled]="item()?.disabled ?? false" [disabled]="item()?.disabled ?? false"
537
577
  [attr.aria-expanded]="isOpen()" [attr.aria-controls]="panelId" (click)="toggle()">
538
578
  @if (iconName()) { <good-icon [name]="iconName()!" /> }
539
579
  <span class="good-menu-label">{{ text() }}</span>
@@ -543,16 +583,17 @@ class GoodSidebarItemComponent {
543
583
  <div class="good-sidebar-children" [id]="panelId" [hidden]="!isOpen()">
544
584
  @for (child of children(); track child.id) {
545
585
  @if (child.children?.length) {
546
- <good-sidebar-submenu-group [item]="child" [activeRoute]="activeRoute()" [depth]="1" />
586
+ <good-sidebar-submenu-group [item]="child" [activeRoute]="routeState()" [depth]="1" />
547
587
  } @else {
548
- <good-sidebar-submenu-item [item]="child" [activeRoute]="activeRoute()" />
588
+ <good-sidebar-submenu-item [item]="child" [activeRoute]="routeState()" />
549
589
  }
550
590
  }
551
591
  <ng-content />
552
592
  </div>
553
593
  } @else if (link() && !item()?.disabled) {
554
- <a class="good-sidebar-row" [class.good-is-active]="isActive()" [routerLink]="link()"
594
+ <a [class]="depth > 0 ? 'good-submenu-link' : 'good-sidebar-row'" [class.good-is-active]="isActive()" [routerLink]="link()"
555
595
  [attr.aria-current]="isActive() ? 'page' : null">
596
+ @if (depth > 0) { <span class="good-submenu-dot" aria-hidden="true"></span> }
556
597
  @if (iconName()) { <good-icon [name]="iconName()!" /> }
557
598
  <span class="good-menu-label">{{ text() }}</span>
558
599
  @if (badgeText()) { <span class="good-menu-badge">{{ badgeText() }}</span> }
@@ -574,7 +615,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
574
615
  changeDetection: ChangeDetectionStrategy.OnPush,
575
616
  template: `
576
617
  @if (hasChildren()) {
577
- <button type="button" class="good-sidebar-row" [class.good-is-active]="isActive()" [class.good-is-disabled]="item()?.disabled ?? false" [disabled]="item()?.disabled ?? false"
618
+ <button type="button" [class]="depth > 0 ? 'good-submenu-link' : 'good-sidebar-row'" [class.good-is-active]="isActive()" [class.good-is-disabled]="item()?.disabled ?? false" [disabled]="item()?.disabled ?? false"
578
619
  [attr.aria-expanded]="isOpen()" [attr.aria-controls]="panelId" (click)="toggle()">
579
620
  @if (iconName()) { <good-icon [name]="iconName()!" /> }
580
621
  <span class="good-menu-label">{{ text() }}</span>
@@ -584,16 +625,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
584
625
  <div class="good-sidebar-children" [id]="panelId" [hidden]="!isOpen()">
585
626
  @for (child of children(); track child.id) {
586
627
  @if (child.children?.length) {
587
- <good-sidebar-submenu-group [item]="child" [activeRoute]="activeRoute()" [depth]="1" />
628
+ <good-sidebar-submenu-group [item]="child" [activeRoute]="routeState()" [depth]="1" />
588
629
  } @else {
589
- <good-sidebar-submenu-item [item]="child" [activeRoute]="activeRoute()" />
630
+ <good-sidebar-submenu-item [item]="child" [activeRoute]="routeState()" />
590
631
  }
591
632
  }
592
633
  <ng-content />
593
634
  </div>
594
635
  } @else if (link() && !item()?.disabled) {
595
- <a class="good-sidebar-row" [class.good-is-active]="isActive()" [routerLink]="link()"
636
+ <a [class]="depth > 0 ? 'good-submenu-link' : 'good-sidebar-row'" [class.good-is-active]="isActive()" [routerLink]="link()"
596
637
  [attr.aria-current]="isActive() ? 'page' : null">
638
+ @if (depth > 0) { <span class="good-submenu-dot" aria-hidden="true"></span> }
597
639
  @if (iconName()) { <good-icon [name]="iconName()!" /> }
598
640
  <span class="good-menu-label">{{ text() }}</span>
599
641
  @if (badgeText()) { <span class="good-menu-badge">{{ badgeText() }}</span> }
@@ -605,17 +647,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
605
647
  </span>
606
648
  }
607
649
  `,
608
- host: { class: 'good-sidebar-item' },
650
+ host: { class: 'good-sidebar-item', '[attr.data-depth]': 'depth' },
609
651
  }]
610
- }], propDecorators: { item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], route: [{ type: i0.Input, args: [{ isSignal: true, alias: "route", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], activeMatch: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeMatch", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }], activeRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeRoute", required: false }] }], projectedGroups: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => GoodSidebarSubmenuGroupComponent), { isSignal: true }] }] } });
652
+ }], propDecorators: { item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], route: [{ type: i0.Input, args: [{ isSignal: true, alias: "route", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], activeMatch: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeMatch", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }], activeRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeRoute", required: false }] }], projectedItems: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => GoodSidebarItemComponent), { ...{ descendants: true }, isSignal: true }] }], projectedGroups: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => GoodSidebarSubmenuGroupComponent), { ...{ descendants: true }, isSignal: true }] }], projectedLinks: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => GoodSidebarSubmenuItemComponent), { ...{ descendants: true }, isSignal: true }] }] } });
611
653
  class GoodSidebarMenuContainerComponent {
612
654
  accordion = inject(GoodSidebarAccordion);
613
655
  heading = input('', ...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
614
656
  items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
615
657
  activeRoute = input('', ...(ngDevMode ? [{ debugName: "activeRoute" }] : /* istanbul ignore next */ []));
658
+ navigation = inject(GoodNavigationState);
659
+ routeState = computed(() => this.activeRoute() || this.navigation.activeRoute(), ...(ngDevMode ? [{ debugName: "routeState" }] : /* istanbul ignore next */ []));
616
660
  constructor() {
617
661
  effect(() => {
618
- this.activeRoute();
662
+ this.routeState();
619
663
  this.accordion.reset();
620
664
  });
621
665
  }
@@ -624,7 +668,7 @@ class GoodSidebarMenuContainerComponent {
624
668
  @if (heading()) { <h2 class="good-sidebar-heading">{{ heading() }}</h2> }
625
669
  <div class="good-sidebar-items">
626
670
  @for (item of items(); track item.id) {
627
- <good-sidebar-item [item]="item" [activeRoute]="activeRoute()" />
671
+ <good-sidebar-item [item]="item" [activeRoute]="routeState()" />
628
672
  }
629
673
  <ng-content />
630
674
  </div>
@@ -642,7 +686,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
642
686
  @if (heading()) { <h2 class="good-sidebar-heading">{{ heading() }}</h2> }
643
687
  <div class="good-sidebar-items">
644
688
  @for (item of items(); track item.id) {
645
- <good-sidebar-item [item]="item" [activeRoute]="activeRoute()" />
689
+ <good-sidebar-item [item]="item" [activeRoute]="routeState()" />
646
690
  }
647
691
  <ng-content />
648
692
  </div>
@@ -650,56 +694,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
650
694
  host: { class: 'good-sidebar-menu-container' },
651
695
  }]
652
696
  }], ctorParameters: () => [], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], activeRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeRoute", required: false }] }] } });
653
- class GoodSidebarContainerComponent {
654
- brand = input('GOODUI', ...(ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []));
655
- brandLogoSrc = input('', ...(ngDevMode ? [{ debugName: "brandLogoSrc" }] : /* istanbul ignore next */ []));
656
- brandLogoDarkSrc = input('', ...(ngDevMode ? [{ debugName: "brandLogoDarkSrc" }] : /* istanbul ignore next */ []));
657
- sections = input([], ...(ngDevMode ? [{ debugName: "sections" }] : /* istanbul ignore next */ []));
658
- activeRoute = input('', ...(ngDevMode ? [{ debugName: "activeRoute" }] : /* istanbul ignore next */ []));
659
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodSidebarContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
660
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodSidebarContainerComponent, isStandalone: true, selector: "good-sidebar-container", inputs: { brand: { classPropertyName: "brand", publicName: "brand", isSignal: true, isRequired: false, transformFunction: null }, brandLogoSrc: { classPropertyName: "brandLogoSrc", publicName: "brandLogoSrc", isSignal: true, isRequired: false, transformFunction: null }, brandLogoDarkSrc: { classPropertyName: "brandLogoDarkSrc", publicName: "brandLogoDarkSrc", isSignal: true, isRequired: false, transformFunction: null }, sections: { classPropertyName: "sections", publicName: "sections", isSignal: true, isRequired: false, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-sidebar-container" }, ngImport: i0, template: `
661
- <div class="good-sidebar-brand" [class.good-has-dark-logo]="!!brandLogoDarkSrc()">
662
- @if (brandLogoSrc()) {
663
- <img class="good-brand-logo good-brand-logo-light" [src]="brandLogoSrc()" [alt]="brand()" />
664
- @if (brandLogoDarkSrc()) { <img class="good-brand-logo good-brand-logo-dark" [src]="brandLogoDarkSrc()" [alt]="brand()" /> }
697
+ class GoodSidebarComponent {
698
+ shell = inject(GoodShellContext, { optional: true });
699
+ navigation = inject(GoodNavigationState);
700
+ accordion = inject(GoodSidebarAccordion);
701
+ brand = input(...(ngDevMode ? [undefined, { debugName: "brand" }] : /* istanbul ignore next */ []));
702
+ brandLogoSrc = input(...(ngDevMode ? [undefined, { debugName: "brandLogoSrc" }] : /* istanbul ignore next */ []));
703
+ brandLogoDarkSrc = input(...(ngDevMode ? [undefined, { debugName: "brandLogoDarkSrc" }] : /* istanbul ignore next */ []));
704
+ label = input('Primary navigation', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
705
+ branding = computed(() => ({
706
+ brand: this.brand() ?? this.shell?.options().brand ?? GOOD_SHELL_DEFAULTS.brand,
707
+ brandLogoSrc: this.brandLogoSrc() ?? this.shell?.options().brandLogoSrc ?? '',
708
+ brandLogoDarkSrc: this.brandLogoDarkSrc() ?? this.shell?.options().brandLogoDarkSrc ?? '',
709
+ }), ...(ngDevMode ? [{ debugName: "branding" }] : /* istanbul ignore next */ []));
710
+ constructor() { effect(() => { this.navigation.activeRoute(); this.accordion.reset(); }); }
711
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
712
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodSidebarComponent, isStandalone: true, selector: "good-sidebar", inputs: { brand: { classPropertyName: "brand", publicName: "brand", isSignal: true, isRequired: false, transformFunction: null }, brandLogoSrc: { classPropertyName: "brandLogoSrc", publicName: "brandLogoSrc", isSignal: true, isRequired: false, transformFunction: null }, brandLogoDarkSrc: { classPropertyName: "brandLogoDarkSrc", publicName: "brandLogoDarkSrc", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-sidebar" }, providers: [GoodSidebarAccordion], ngImport: i0, template: `
713
+ <div class="good-sidebar-brand" [class.good-has-dark-logo]="!!branding().brandLogoDarkSrc">
714
+ @if (branding().brandLogoSrc) {
715
+ <img class="good-brand-logo good-brand-logo-light" [src]="branding().brandLogoSrc" [alt]="branding().brand" />
716
+ @if (branding().brandLogoDarkSrc) { <img class="good-brand-logo good-brand-logo-dark" [src]="branding().brandLogoDarkSrc" [alt]="branding().brand" /> }
665
717
  } @else {
666
- <span class="good-brand-mark" aria-hidden="true"></span><span class="good-brand-name">{{ brand() }}</span>
718
+ <span class="good-brand-mark" aria-hidden="true"></span><span class="good-brand-name">{{ branding().brand }}</span>
667
719
  }
668
720
  </div>
669
- <nav class="good-sidebar-scroll" aria-label="Hauptnavigation">
670
- @for (section of sections(); track section.id) {
671
- <good-sidebar-menu-container [heading]="section.heading ?? ''" [items]="section.items" [activeRoute]="activeRoute()" />
672
- }
673
- <ng-content />
674
- </nav>
675
- `, isInline: true, dependencies: [{ kind: "component", type: GoodSidebarMenuContainerComponent, selector: "good-sidebar-menu-container", inputs: ["heading", "items", "activeRoute"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
721
+ <nav class="good-sidebar-scroll" [attr.aria-label]="label()"><ng-content /></nav>
722
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
676
723
  }
677
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodSidebarContainerComponent, decorators: [{
724
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodSidebarComponent, decorators: [{
678
725
  type: Component,
679
726
  args: [{
680
- selector: 'good-sidebar-container',
681
- standalone: true,
682
- imports: [GoodSidebarMenuContainerComponent],
727
+ selector: 'good-sidebar', standalone: true,
728
+ providers: [GoodSidebarAccordion],
683
729
  changeDetection: ChangeDetectionStrategy.OnPush,
684
730
  template: `
685
- <div class="good-sidebar-brand" [class.good-has-dark-logo]="!!brandLogoDarkSrc()">
686
- @if (brandLogoSrc()) {
687
- <img class="good-brand-logo good-brand-logo-light" [src]="brandLogoSrc()" [alt]="brand()" />
688
- @if (brandLogoDarkSrc()) { <img class="good-brand-logo good-brand-logo-dark" [src]="brandLogoDarkSrc()" [alt]="brand()" /> }
731
+ <div class="good-sidebar-brand" [class.good-has-dark-logo]="!!branding().brandLogoDarkSrc">
732
+ @if (branding().brandLogoSrc) {
733
+ <img class="good-brand-logo good-brand-logo-light" [src]="branding().brandLogoSrc" [alt]="branding().brand" />
734
+ @if (branding().brandLogoDarkSrc) { <img class="good-brand-logo good-brand-logo-dark" [src]="branding().brandLogoDarkSrc" [alt]="branding().brand" /> }
689
735
  } @else {
690
- <span class="good-brand-mark" aria-hidden="true"></span><span class="good-brand-name">{{ brand() }}</span>
736
+ <span class="good-brand-mark" aria-hidden="true"></span><span class="good-brand-name">{{ branding().brand }}</span>
691
737
  }
692
738
  </div>
693
- <nav class="good-sidebar-scroll" aria-label="Hauptnavigation">
694
- @for (section of sections(); track section.id) {
695
- <good-sidebar-menu-container [heading]="section.heading ?? ''" [items]="section.items" [activeRoute]="activeRoute()" />
696
- }
697
- <ng-content />
698
- </nav>
739
+ <nav class="good-sidebar-scroll" [attr.aria-label]="label()"><ng-content /></nav>
699
740
  `,
700
- host: { class: 'good-sidebar-container' },
741
+ host: { class: 'good-sidebar' },
701
742
  }]
702
- }], propDecorators: { brand: [{ type: i0.Input, args: [{ isSignal: true, alias: "brand", required: false }] }], brandLogoSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoSrc", required: false }] }], brandLogoDarkSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoDarkSrc", required: false }] }], sections: [{ type: i0.Input, args: [{ isSignal: true, alias: "sections", required: false }] }], activeRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeRoute", required: false }] }] } });
743
+ }], ctorParameters: () => [], propDecorators: { brand: [{ type: i0.Input, args: [{ isSignal: true, alias: "brand", required: false }] }], brandLogoSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoSrc", required: false }] }], brandLogoDarkSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoDarkSrc", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
703
744
 
704
745
  class GoodAlertComponent {
705
746
  tone = input('neutral', ...(ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []));
@@ -1045,18 +1086,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1045
1086
 
1046
1087
  class GoodHeaderSearchComponent {
1047
1088
  items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
1089
+ hotkey = input(false, ...(ngDevMode ? [{ debugName: "hotkey" }] : /* istanbul ignore next */ []));
1090
+ document = inject(DOCUMENT);
1091
+ shortcutHint = /Mac|iPhone|iPad|iPod/i.test(this.document.defaultView?.navigator.platform ?? '') ? '⌘ K' : 'Ctrl K';
1092
+ trigger = viewChild.required('trigger');
1048
1093
  query = signal('', ...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
1049
1094
  results = computed(() => this.items().filter(item => `${item.label} ${item.description ?? ''}`.toLocaleLowerCase().includes(this.query().toLocaleLowerCase())), ...(ngDevMode ? [{ debugName: "results" }] : /* istanbul ignore next */ []));
1050
1095
  dialog = viewChild.required('dialog');
1051
1096
  searchInput = viewChild.required('searchInput');
1097
+ onShortcut(event) {
1098
+ if (!this.hotkey() || event.defaultPrevented || event.repeat || event.isComposing ||
1099
+ event.altKey || event.shiftKey || event.ctrlKey === event.metaKey || event.key.toLowerCase() !== 'k')
1100
+ return;
1101
+ const trigger = this.trigger().nativeElement;
1102
+ const style = this.document.defaultView?.getComputedStyle(trigger);
1103
+ if (!trigger.getClientRects().length || style?.visibility === 'hidden' || style?.visibility === 'collapse' ||
1104
+ trigger.closest('[inert]') || this.document.querySelector('dialog[open], [aria-modal="true"]'))
1105
+ return;
1106
+ event.preventDefault();
1107
+ this.open();
1108
+ }
1052
1109
  open() {
1053
- this.dialog().nativeElement.showModal();
1054
- queueMicrotask(() => this.searchInput().nativeElement.focus());
1110
+ const dialog = this.dialog().nativeElement;
1111
+ if (dialog.open)
1112
+ return;
1113
+ dialog.showModal();
1114
+ const searchInput = this.searchInput().nativeElement;
1115
+ queueMicrotask(() => { if (dialog.open)
1116
+ searchInput.focus(); });
1055
1117
  }
1056
1118
  close() { this.dialog().nativeElement.close(); }
1057
1119
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeaderSearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1058
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodHeaderSearchComponent, isStandalone: true, selector: "good-header-search", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-header-search" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, isSignal: true }, { propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true, isSignal: true }], ngImport: i0, template: `
1059
- <button #trigger type="button" class="good-action-button" aria-label="Search" (click)="open()"><good-icon name="search" /></button>
1120
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodHeaderSearchComponent, isStandalone: true, selector: "good-header-search", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, hotkey: { classPropertyName: "hotkey", publicName: "hotkey", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:keydown": "onShortcut($event)" }, classAttribute: "good-header-search" }, viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, isSignal: true }, { propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true, isSignal: true }], ngImport: i0, template: `
1121
+ <button #trigger type="button" class="good-action-button" [class.good-header-search-hotkey]="hotkey()"
1122
+ aria-label="Search" [attr.aria-keyshortcuts]="hotkey() ? 'Control+k Meta+k' : null" (click)="open()">
1123
+ <good-icon name="search" />
1124
+ @if (hotkey()) { <span class="good-header-search-label">Search…</span><kbd class="good-header-search-shortcut" aria-hidden="true">{{ shortcutHint }}</kbd> }
1125
+ </button>
1060
1126
  <dialog #dialog class="good-search-dialog" aria-label="Search" (keydown.escape)="close()" (close)="trigger.focus()">
1061
1127
  <div class="good-dialog-heading"><strong>Search</strong><button type="button" class="good-action-button" aria-label="Close" (click)="close()"><good-icon name="close" /></button></div>
1062
1128
  <label class="good-search-field"><good-icon name="search" /><input #searchInput type="search" placeholder="Search…" [value]="query()" (input)="query.set(searchInput.value)" /></label>
@@ -1076,7 +1142,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1076
1142
  imports: [GoodIconComponent, RouterLink],
1077
1143
  changeDetection: ChangeDetectionStrategy.OnPush,
1078
1144
  template: `
1079
- <button #trigger type="button" class="good-action-button" aria-label="Search" (click)="open()"><good-icon name="search" /></button>
1145
+ <button #trigger type="button" class="good-action-button" [class.good-header-search-hotkey]="hotkey()"
1146
+ aria-label="Search" [attr.aria-keyshortcuts]="hotkey() ? 'Control+k Meta+k' : null" (click)="open()">
1147
+ <good-icon name="search" />
1148
+ @if (hotkey()) { <span class="good-header-search-label">Search…</span><kbd class="good-header-search-shortcut" aria-hidden="true">{{ shortcutHint }}</kbd> }
1149
+ </button>
1080
1150
  <dialog #dialog class="good-search-dialog" aria-label="Search" (keydown.escape)="close()" (close)="trigger.focus()">
1081
1151
  <div class="good-dialog-heading"><strong>Search</strong><button type="button" class="good-action-button" aria-label="Close" (click)="close()"><good-icon name="close" /></button></div>
1082
1152
  <label class="good-search-field"><good-icon name="search" /><input #searchInput type="search" placeholder="Search…" [value]="query()" (input)="query.set(searchInput.value)" /></label>
@@ -1089,7 +1159,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1089
1159
  `,
1090
1160
  host: { class: 'good-header-search' },
1091
1161
  }]
1092
- }], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], dialog: [{ type: i0.ViewChild, args: ['dialog', { isSignal: true }] }], searchInput: [{ type: i0.ViewChild, args: ['searchInput', { isSignal: true }] }] } });
1162
+ }], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], hotkey: [{ type: i0.Input, args: [{ isSignal: true, alias: "hotkey", required: false }] }], trigger: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], dialog: [{ type: i0.ViewChild, args: ['dialog', { isSignal: true }] }], searchInput: [{ type: i0.ViewChild, args: ['searchInput', { isSignal: true }] }], onShortcut: [{
1163
+ type: HostListener,
1164
+ args: ['document:keydown', ['$event']]
1165
+ }] } });
1093
1166
  class GoodHeaderNotificationComponent {
1094
1167
  items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
1095
1168
  center = inject(GoodNotificationCenter);
@@ -1499,7 +1572,7 @@ class GoodHeaderActionsComponent {
1499
1572
  @if (showSettings()) { <good-settings [actions]="settingsActions()" /> }
1500
1573
  @if (showAvatar()) { <good-header-avatar [user]="user()" [actions]="avatarActions()" /> }
1501
1574
  </ng-content>
1502
- `, isInline: true, dependencies: [{ kind: "component", type: GoodHeaderSearchComponent, selector: "good-header-search", inputs: ["items"] }, { kind: "component", type: GoodHeaderNotificationComponent, selector: "good-header-notification", inputs: ["items"] }, { kind: "component", type: GoodHeaderThemeToggleComponent, selector: "good-header-themetoggle" }, { kind: "component", type: GoodSettingsComponent, selector: "good-settings", inputs: ["actions"] }, { kind: "component", type: GoodHeaderAvatarComponent, selector: "good-header-avatar", inputs: ["user", "actions"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1575
+ `, isInline: true, dependencies: [{ kind: "component", type: GoodHeaderSearchComponent, selector: "good-header-search", inputs: ["items", "hotkey"] }, { kind: "component", type: GoodHeaderNotificationComponent, selector: "good-header-notification", inputs: ["items"] }, { kind: "component", type: GoodHeaderThemeToggleComponent, selector: "good-header-themetoggle" }, { kind: "component", type: GoodSettingsComponent, selector: "good-settings", inputs: ["actions"] }, { kind: "component", type: GoodHeaderAvatarComponent, selector: "good-header-avatar", inputs: ["user", "actions"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1503
1576
  }
1504
1577
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeaderActionsComponent, decorators: [{
1505
1578
  type: Component,
@@ -1555,18 +1628,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1555
1628
  host: { class: 'good-brand-icon' },
1556
1629
  }]
1557
1630
  }], propDecorators: { src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: false }] }], darkSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "darkSrc", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
1558
- class GoodTopbarDropdownItemComponent {
1631
+ class GoodHeaderDropdownItemComponent {
1559
1632
  item = input.required(...(ngDevMode ? [{ debugName: "item" }] : /* istanbul ignore next */ []));
1560
1633
  activeRoute = input('', ...(ngDevMode ? [{ debugName: "activeRoute" }] : /* istanbul ignore next */ []));
1634
+ navigation = inject(GoodNavigationState);
1635
+ routeState = computed(() => this.activeRoute() || this.navigation.activeRoute(), ...(ngDevMode ? [{ debugName: "routeState" }] : /* istanbul ignore next */ []));
1561
1636
  expanded = input(false, ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
1562
1637
  panelId = input(null, ...(ngDevMode ? [{ debugName: "panelId" }] : /* istanbul ignore next */ []));
1563
1638
  hover = output();
1564
1639
  focused = output();
1565
1640
  toggle = output();
1566
1641
  navigate = output();
1567
- isActive = computed(() => goodTopbarItemContainsRoute(this.item(), this.activeRoute()), ...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
1568
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodTopbarDropdownItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1569
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodTopbarDropdownItemComponent, isStandalone: true, selector: "good-topbar-dropdown-item", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, panelId: { classPropertyName: "panelId", publicName: "panelId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { hover: "hover", focused: "focused", toggle: "toggle", navigate: "navigate" }, host: { classAttribute: "good-topbar-dropdown-item" }, ngImport: i0, template: `
1642
+ isActive = computed(() => goodTopbarItemContainsRoute(this.item(), this.routeState()), ...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
1643
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeaderDropdownItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1644
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodHeaderDropdownItemComponent, isStandalone: true, selector: "good-header-dropdown-item", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, panelId: { classPropertyName: "panelId", publicName: "panelId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { hover: "hover", focused: "focused", toggle: "toggle", navigate: "navigate" }, host: { classAttribute: "good-header-dropdown-item" }, ngImport: i0, template: `
1570
1645
  @if (item().children?.length) {
1571
1646
  <button type="button" class="good-dropdown-link" [class.good-is-open]="expanded()" [class.good-is-active]="isActive()"
1572
1647
  aria-haspopup="true" [attr.aria-expanded]="expanded()" [attr.aria-controls]="panelId()"
@@ -1588,10 +1663,10 @@ class GoodTopbarDropdownItemComponent {
1588
1663
  }
1589
1664
  `, isInline: true, dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: GoodIconComponent, selector: "good-icon", inputs: ["name"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1590
1665
  }
1591
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodTopbarDropdownItemComponent, decorators: [{
1666
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeaderDropdownItemComponent, decorators: [{
1592
1667
  type: Component,
1593
1668
  args: [{
1594
- selector: 'good-topbar-dropdown-item',
1669
+ selector: 'good-header-dropdown-item',
1595
1670
  standalone: true,
1596
1671
  imports: [RouterLink, GoodIconComponent],
1597
1672
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -1616,16 +1691,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1616
1691
  </span>
1617
1692
  }
1618
1693
  `,
1619
- host: { class: 'good-topbar-dropdown-item' },
1694
+ host: { class: 'good-header-dropdown-item' },
1620
1695
  }]
1621
1696
  }], propDecorators: { item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: true }] }], activeRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeRoute", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }], panelId: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelId", required: false }] }], hover: [{ type: i0.Output, args: ["hover"] }], focused: [{ type: i0.Output, args: ["focused"] }], toggle: [{ type: i0.Output, args: ["toggle"] }], navigate: [{ type: i0.Output, args: ["navigate"] }] } });
1622
- class GoodTopbarDropdownMenuComponent {
1697
+ class GoodHeaderDropdownMenuComponent {
1623
1698
  items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
1624
1699
  label = input('Menu', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1625
1700
  activeRoute = input('', ...(ngDevMode ? [{ debugName: "activeRoute" }] : /* istanbul ignore next */ []));
1701
+ navigation = inject(GoodNavigationState);
1702
+ routeState = computed(() => this.activeRoute() || this.navigation.activeRoute(), ...(ngDevMode ? [{ debugName: "routeState" }] : /* istanbul ignore next */ []));
1626
1703
  navigate = output();
1627
1704
  openChildId = signal(null, ...(ngDevMode ? [{ debugName: "openChildId" }] : /* istanbul ignore next */ []));
1628
- submenu = viewChild(GoodTopbarSubmenuComponent, ...(ngDevMode ? [{ debugName: "submenu" }] : /* istanbul ignore next */ []));
1705
+ submenu = viewChild(GoodHeaderSubmenuComponent, ...(ngDevMode ? [{ debugName: "submenu" }] : /* istanbul ignore next */ []));
1629
1706
  uid = `good-dropdown-${++nextDropdownId$1}`;
1630
1707
  element = inject(ElementRef);
1631
1708
  openedByClick = false;
@@ -1665,7 +1742,7 @@ class GoodTopbarDropdownMenuComponent {
1665
1742
  return true;
1666
1743
  if (!this.openChildId())
1667
1744
  return false;
1668
- const trigger = this.element.nativeElement.querySelector(':scope > .good-dropdown-panel > .good-dropdown-entry > good-topbar-dropdown-item > button[aria-expanded="true"]');
1745
+ const trigger = this.element.nativeElement.querySelector(':scope > .good-dropdown-panel > .good-dropdown-entry > good-header-dropdown-item > button[aria-expanded="true"]');
1669
1746
  this.openChildId.set(null);
1670
1747
  this.openedByClick = false;
1671
1748
  this.suppressFocusOpen = true;
@@ -1679,58 +1756,60 @@ class GoodTopbarDropdownMenuComponent {
1679
1756
  event.preventDefault();
1680
1757
  event.stopPropagation();
1681
1758
  }
1682
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodTopbarDropdownMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1683
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodTopbarDropdownMenuComponent, isStandalone: true, selector: "good-topbar-dropdown-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { navigate: "navigate" }, host: { listeners: { "keydown.escape": "onEscape($event)" }, classAttribute: "good-topbar-dropdown-menu" }, viewQueries: [{ propertyName: "submenu", first: true, predicate: GoodTopbarSubmenuComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
1759
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeaderDropdownMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1760
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodHeaderDropdownMenuComponent, isStandalone: true, selector: "good-header-dropdown-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { navigate: "navigate" }, host: { listeners: { "keydown.escape": "onEscape($event)" }, classAttribute: "good-header-dropdown-menu" }, viewQueries: [{ propertyName: "submenu", first: true, predicate: GoodHeaderSubmenuComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
1684
1761
  <div class="good-dropdown-panel" role="group" [attr.aria-label]="label()">
1685
1762
  @for (item of items(); track item.id) {
1686
1763
  <div class="good-dropdown-entry" [class.good-dropdown-separated]="item.separatorBefore">
1687
- <good-topbar-dropdown-item [item]="item" [activeRoute]="activeRoute()"
1764
+ <good-header-dropdown-item [item]="item" [activeRoute]="routeState()"
1688
1765
  [expanded]="openChildId() === item.id" [panelId]="item.children?.length ? panelId(item) : null"
1689
1766
  (hover)="onHover(item)" (focused)="onFocus(item)" (toggle)="onToggle(item)" (navigate)="onNavigate()" />
1690
1767
  @if (item.children?.length && openChildId() === item.id) {
1691
- <good-topbar-submenu [id]="panelId(item)" [items]="item.children!" [activeRoute]="activeRoute()"
1768
+ <good-header-submenu [id]="panelId(item)" [items]="item.children!" [activeRoute]="routeState()"
1692
1769
  [label]="item.label" (navigate)="onNavigate()" />
1693
1770
  }
1694
1771
  </div>
1695
1772
  }
1696
1773
  </div>
1697
- `, isInline: true, dependencies: [{ kind: "component", type: i0.forwardRef(() => GoodTopbarDropdownItemComponent), selector: "good-topbar-dropdown-item", inputs: ["item", "activeRoute", "expanded", "panelId"], outputs: ["hover", "focused", "toggle", "navigate"] }, { kind: "component", type: i0.forwardRef(() => GoodTopbarSubmenuComponent), selector: "good-topbar-submenu", inputs: ["items", "label", "activeRoute"], outputs: ["navigate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1774
+ `, isInline: true, dependencies: [{ kind: "component", type: i0.forwardRef(() => GoodHeaderDropdownItemComponent), selector: "good-header-dropdown-item", inputs: ["item", "activeRoute", "expanded", "panelId"], outputs: ["hover", "focused", "toggle", "navigate"] }, { kind: "component", type: i0.forwardRef(() => GoodHeaderSubmenuComponent), selector: "good-header-submenu", inputs: ["items", "label", "activeRoute"], outputs: ["navigate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1698
1775
  }
1699
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodTopbarDropdownMenuComponent, decorators: [{
1776
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeaderDropdownMenuComponent, decorators: [{
1700
1777
  type: Component,
1701
1778
  args: [{
1702
- selector: 'good-topbar-dropdown-menu',
1779
+ selector: 'good-header-dropdown-menu',
1703
1780
  standalone: true,
1704
- imports: [GoodTopbarDropdownItemComponent, forwardRef(() => GoodTopbarSubmenuComponent)],
1781
+ imports: [GoodHeaderDropdownItemComponent, forwardRef(() => GoodHeaderSubmenuComponent)],
1705
1782
  changeDetection: ChangeDetectionStrategy.OnPush,
1706
1783
  template: `
1707
1784
  <div class="good-dropdown-panel" role="group" [attr.aria-label]="label()">
1708
1785
  @for (item of items(); track item.id) {
1709
1786
  <div class="good-dropdown-entry" [class.good-dropdown-separated]="item.separatorBefore">
1710
- <good-topbar-dropdown-item [item]="item" [activeRoute]="activeRoute()"
1787
+ <good-header-dropdown-item [item]="item" [activeRoute]="routeState()"
1711
1788
  [expanded]="openChildId() === item.id" [panelId]="item.children?.length ? panelId(item) : null"
1712
1789
  (hover)="onHover(item)" (focused)="onFocus(item)" (toggle)="onToggle(item)" (navigate)="onNavigate()" />
1713
1790
  @if (item.children?.length && openChildId() === item.id) {
1714
- <good-topbar-submenu [id]="panelId(item)" [items]="item.children!" [activeRoute]="activeRoute()"
1791
+ <good-header-submenu [id]="panelId(item)" [items]="item.children!" [activeRoute]="routeState()"
1715
1792
  [label]="item.label" (navigate)="onNavigate()" />
1716
1793
  }
1717
1794
  </div>
1718
1795
  }
1719
1796
  </div>
1720
1797
  `,
1721
- host: { class: 'good-topbar-dropdown-menu' },
1798
+ host: { class: 'good-header-dropdown-menu' },
1722
1799
  }]
1723
- }], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], activeRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeRoute", required: false }] }], navigate: [{ type: i0.Output, args: ["navigate"] }], submenu: [{ type: i0.ViewChild, args: [i0.forwardRef(() => GoodTopbarSubmenuComponent), { isSignal: true }] }], onEscape: [{
1800
+ }], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], activeRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeRoute", required: false }] }], navigate: [{ type: i0.Output, args: ["navigate"] }], submenu: [{ type: i0.ViewChild, args: [i0.forwardRef(() => GoodHeaderSubmenuComponent), { isSignal: true }] }], onEscape: [{
1724
1801
  type: HostListener,
1725
1802
  args: ['keydown.escape', ['$event']]
1726
1803
  }] } });
1727
- class GoodTopbarSubmenuComponent {
1804
+ class GoodHeaderSubmenuComponent {
1728
1805
  items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
1729
1806
  label = input('Submenu', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1730
1807
  activeRoute = input('', ...(ngDevMode ? [{ debugName: "activeRoute" }] : /* istanbul ignore next */ []));
1808
+ navigation = inject(GoodNavigationState);
1809
+ routeState = computed(() => this.activeRoute() || this.navigation.activeRoute(), ...(ngDevMode ? [{ debugName: "routeState" }] : /* istanbul ignore next */ []));
1731
1810
  navigate = output();
1732
1811
  flipped = signal(false, ...(ngDevMode ? [{ debugName: "flipped" }] : /* istanbul ignore next */ []));
1733
- menu = viewChild(GoodTopbarDropdownMenuComponent, ...(ngDevMode ? [{ debugName: "menu" }] : /* istanbul ignore next */ []));
1812
+ menu = viewChild(GoodHeaderDropdownMenuComponent, ...(ngDevMode ? [{ debugName: "menu" }] : /* istanbul ignore next */ []));
1734
1813
  element = inject(ElementRef);
1735
1814
  constructor() { setTimeout(() => this.updatePlacement()); }
1736
1815
  updatePlacement() {
@@ -1745,35 +1824,37 @@ class GoodTopbarSubmenuComponent {
1745
1824
  this.flipped.set(true);
1746
1825
  });
1747
1826
  }
1748
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodTopbarSubmenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1749
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.25", type: GoodTopbarSubmenuComponent, isStandalone: true, selector: "good-topbar-submenu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { navigate: "navigate" }, host: { listeners: { "window:resize": "updatePlacement()" }, properties: { "class.good-submenu-flipped": "flipped()" }, classAttribute: "good-topbar-submenu" }, viewQueries: [{ propertyName: "menu", first: true, predicate: GoodTopbarDropdownMenuComponent, descendants: true, isSignal: true }], ngImport: i0, template: `<good-topbar-dropdown-menu [items]="items()" [label]="label()" [activeRoute]="activeRoute()" (navigate)="navigate.emit()" />`, isInline: true, dependencies: [{ kind: "component", type: GoodTopbarDropdownMenuComponent, selector: "good-topbar-dropdown-menu", inputs: ["items", "label", "activeRoute"], outputs: ["navigate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1827
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeaderSubmenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1828
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.25", type: GoodHeaderSubmenuComponent, isStandalone: true, selector: "good-header-submenu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { navigate: "navigate" }, host: { listeners: { "window:resize": "updatePlacement()" }, properties: { "class.good-submenu-flipped": "flipped()" }, classAttribute: "good-header-submenu" }, viewQueries: [{ propertyName: "menu", first: true, predicate: GoodHeaderDropdownMenuComponent, descendants: true, isSignal: true }], ngImport: i0, template: `<good-header-dropdown-menu [items]="items()" [label]="label()" [activeRoute]="routeState()" (navigate)="navigate.emit()" />`, isInline: true, dependencies: [{ kind: "component", type: GoodHeaderDropdownMenuComponent, selector: "good-header-dropdown-menu", inputs: ["items", "label", "activeRoute"], outputs: ["navigate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1750
1829
  }
1751
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodTopbarSubmenuComponent, decorators: [{
1830
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeaderSubmenuComponent, decorators: [{
1752
1831
  type: Component,
1753
1832
  args: [{
1754
- selector: 'good-topbar-submenu',
1833
+ selector: 'good-header-submenu',
1755
1834
  standalone: true,
1756
- imports: [GoodTopbarDropdownMenuComponent],
1835
+ imports: [GoodHeaderDropdownMenuComponent],
1757
1836
  changeDetection: ChangeDetectionStrategy.OnPush,
1758
- template: `<good-topbar-dropdown-menu [items]="items()" [label]="label()" [activeRoute]="activeRoute()" (navigate)="navigate.emit()" />`,
1759
- host: { class: 'good-topbar-submenu', '[class.good-submenu-flipped]': 'flipped()' },
1837
+ template: `<good-header-dropdown-menu [items]="items()" [label]="label()" [activeRoute]="routeState()" (navigate)="navigate.emit()" />`,
1838
+ host: { class: 'good-header-submenu', '[class.good-submenu-flipped]': 'flipped()' },
1760
1839
  }]
1761
- }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], activeRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeRoute", required: false }] }], navigate: [{ type: i0.Output, args: ["navigate"] }], menu: [{ type: i0.ViewChild, args: [i0.forwardRef(() => GoodTopbarDropdownMenuComponent), { isSignal: true }] }], updatePlacement: [{
1840
+ }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], activeRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeRoute", required: false }] }], navigate: [{ type: i0.Output, args: ["navigate"] }], menu: [{ type: i0.ViewChild, args: [i0.forwardRef(() => GoodHeaderDropdownMenuComponent), { isSignal: true }] }], updatePlacement: [{
1762
1841
  type: HostListener,
1763
1842
  args: ['window:resize']
1764
1843
  }] } });
1765
- class GoodTopbarMenuItemComponent {
1844
+ class GoodHeaderMenuItemComponent {
1766
1845
  item = input(null, ...(ngDevMode ? [{ debugName: "item" }] : /* istanbul ignore next */ []));
1767
1846
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1768
1847
  route = input(...(ngDevMode ? [undefined, { debugName: "route" }] : /* istanbul ignore next */ []));
1769
1848
  active = input(false, ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
1770
1849
  activeRoute = input('', ...(ngDevMode ? [{ debugName: "activeRoute" }] : /* istanbul ignore next */ []));
1850
+ navigation = inject(GoodNavigationState);
1851
+ routeState = computed(() => this.activeRoute() || this.navigation.activeRoute(), ...(ngDevMode ? [{ debugName: "routeState" }] : /* istanbul ignore next */ []));
1771
1852
  text = computed(() => this.item()?.label ?? this.label(), ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
1772
1853
  link = computed(() => this.item()?.route ?? this.route(), ...(ngDevMode ? [{ debugName: "link" }] : /* istanbul ignore next */ []));
1773
1854
  children = computed(() => this.item()?.children ?? [], ...(ngDevMode ? [{ debugName: "children" }] : /* istanbul ignore next */ []));
1774
- isActive = computed(() => this.active() || goodRouteActive(this.link(), this.activeRoute()) || (this.item() ? goodTopbarItemContainsRoute(this.item(), this.activeRoute()) : false), ...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
1855
+ isActive = computed(() => this.active() || goodRouteActive(this.link(), this.routeState()) || (this.item() ? goodTopbarItemContainsRoute(this.item(), this.routeState()) : false), ...(ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []));
1775
1856
  open = signal(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
1776
- dropdown = viewChild(GoodTopbarDropdownMenuComponent, ...(ngDevMode ? [{ debugName: "dropdown" }] : /* istanbul ignore next */ []));
1857
+ dropdown = viewChild(GoodHeaderDropdownMenuComponent, ...(ngDevMode ? [{ debugName: "dropdown" }] : /* istanbul ignore next */ []));
1777
1858
  panelId = `good-topbar-panel-${++nextDropdownId$1}`;
1778
1859
  element = inject(ElementRef);
1779
1860
  openedByClick = false;
@@ -1851,8 +1932,8 @@ class GoodTopbarMenuItemComponent {
1851
1932
  }
1852
1933
  ngOnDestroy() { if (this.closeTimer)
1853
1934
  clearTimeout(this.closeTimer); }
1854
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodTopbarMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1855
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodTopbarMenuItemComponent, isStandalone: true, selector: "good-topbar-menu-item", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, route: { classPropertyName: "route", publicName: "route", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "pointerenter": "onPointerEnter()", "pointerleave": "onPointerLeave()", "keydown.escape": "onEscape($event)", "focusout": "onFocusOut($event)", "document:pointerdown": "onDocumentPointerDown($event)", "document:keydown.escape": "onDocumentEscape()" }, classAttribute: "good-topbar-menu-item" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: GoodTopbarDropdownMenuComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
1935
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeaderMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1936
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodHeaderMenuItemComponent, isStandalone: true, selector: "good-header-menu-item", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, route: { classPropertyName: "route", publicName: "route", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "pointerenter": "onPointerEnter()", "pointerleave": "onPointerLeave()", "keydown.escape": "onEscape($event)", "focusout": "onFocusOut($event)", "document:pointerdown": "onDocumentPointerDown($event)", "document:keydown.escape": "onDocumentEscape()" }, classAttribute: "good-header-menu-item" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: GoodHeaderDropdownMenuComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
1856
1937
  @if (children().length) {
1857
1938
  <button #trigger type="button" class="good-topbar-link" [class.good-is-active]="isActive() || open()"
1858
1939
  aria-haspopup="true" [attr.aria-expanded]="open()" [attr.aria-controls]="panelId"
@@ -1860,20 +1941,20 @@ class GoodTopbarMenuItemComponent {
1860
1941
  {{ text() }}<good-icon name="chevron-down" />
1861
1942
  </button>
1862
1943
  @if (open()) {
1863
- <good-topbar-dropdown-menu [id]="panelId" [items]="children()" [label]="text()" [activeRoute]="activeRoute()" (navigate)="closeMenu()" />
1944
+ <good-header-dropdown-menu [id]="panelId" [items]="children()" [label]="text()" [activeRoute]="routeState()" (navigate)="closeMenu()" />
1864
1945
  }
1865
1946
  } @else if (link()) {
1866
1947
  <a class="good-topbar-link" [class.good-is-active]="isActive()" [routerLink]="link()"
1867
1948
  [attr.aria-current]="isActive() ? 'page' : null">{{ text() }}</a>
1868
1949
  } @else { <span class="good-topbar-link">{{ text() }}</span> }
1869
- `, isInline: true, dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: GoodIconComponent, selector: "good-icon", inputs: ["name"] }, { kind: "component", type: GoodTopbarDropdownMenuComponent, selector: "good-topbar-dropdown-menu", inputs: ["items", "label", "activeRoute"], outputs: ["navigate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1950
+ `, isInline: true, dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: GoodIconComponent, selector: "good-icon", inputs: ["name"] }, { kind: "component", type: GoodHeaderDropdownMenuComponent, selector: "good-header-dropdown-menu", inputs: ["items", "label", "activeRoute"], outputs: ["navigate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1870
1951
  }
1871
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodTopbarMenuItemComponent, decorators: [{
1952
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeaderMenuItemComponent, decorators: [{
1872
1953
  type: Component,
1873
1954
  args: [{
1874
- selector: 'good-topbar-menu-item',
1955
+ selector: 'good-header-menu-item',
1875
1956
  standalone: true,
1876
- imports: [RouterLink, GoodIconComponent, GoodTopbarDropdownMenuComponent],
1957
+ imports: [RouterLink, GoodIconComponent, GoodHeaderDropdownMenuComponent],
1877
1958
  changeDetection: ChangeDetectionStrategy.OnPush,
1878
1959
  template: `
1879
1960
  @if (children().length) {
@@ -1883,16 +1964,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1883
1964
  {{ text() }}<good-icon name="chevron-down" />
1884
1965
  </button>
1885
1966
  @if (open()) {
1886
- <good-topbar-dropdown-menu [id]="panelId" [items]="children()" [label]="text()" [activeRoute]="activeRoute()" (navigate)="closeMenu()" />
1967
+ <good-header-dropdown-menu [id]="panelId" [items]="children()" [label]="text()" [activeRoute]="routeState()" (navigate)="closeMenu()" />
1887
1968
  }
1888
1969
  } @else if (link()) {
1889
1970
  <a class="good-topbar-link" [class.good-is-active]="isActive()" [routerLink]="link()"
1890
1971
  [attr.aria-current]="isActive() ? 'page' : null">{{ text() }}</a>
1891
1972
  } @else { <span class="good-topbar-link">{{ text() }}</span> }
1892
1973
  `,
1893
- host: { class: 'good-topbar-menu-item' },
1974
+ host: { class: 'good-header-menu-item' },
1894
1975
  }]
1895
- }], propDecorators: { item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], route: [{ type: i0.Input, args: [{ isSignal: true, alias: "route", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], activeRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeRoute", required: false }] }], dropdown: [{ type: i0.ViewChild, args: [i0.forwardRef(() => GoodTopbarDropdownMenuComponent), { isSignal: true }] }], onPointerEnter: [{
1976
+ }], propDecorators: { item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], route: [{ type: i0.Input, args: [{ isSignal: true, alias: "route", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], activeRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeRoute", required: false }] }], dropdown: [{ type: i0.ViewChild, args: [i0.forwardRef(() => GoodHeaderDropdownMenuComponent), { isSignal: true }] }], onPointerEnter: [{
1896
1977
  type: HostListener,
1897
1978
  args: ['pointerenter']
1898
1979
  }], onPointerLeave: [{
@@ -1911,9 +1992,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1911
1992
  type: HostListener,
1912
1993
  args: ['document:keydown.escape']
1913
1994
  }] } });
1914
- class GoodTopbarMenuContainerComponent {
1995
+ class GoodHeaderMenuComponent {
1915
1996
  items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
1916
1997
  activeRoute = input('', ...(ngDevMode ? [{ debugName: "activeRoute" }] : /* istanbul ignore next */ []));
1998
+ navigation = inject(GoodNavigationState);
1999
+ routeState = computed(() => this.activeRoute() || this.navigation.activeRoute(), ...(ngDevMode ? [{ debugName: "routeState" }] : /* istanbul ignore next */ []));
1917
2000
  mobileMode = input('hidden', ...(ngDevMode ? [{ debugName: "mobileMode" }] : /* istanbul ignore next */ []));
1918
2001
  mobileOpen = signal(false, ...(ngDevMode ? [{ debugName: "mobileOpen" }] : /* istanbul ignore next */ []));
1919
2002
  mobilePanelId = `good-topbar-mobile-panel-${++nextDropdownId$1}`;
@@ -1946,38 +2029,38 @@ class GoodTopbarMenuContainerComponent {
1946
2029
  if (width && width > 900)
1947
2030
  this.closeMobileMenu();
1948
2031
  }
1949
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodTopbarMenuContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1950
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodTopbarMenuContainerComponent, isStandalone: true, selector: "good-topbar-menu-container", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null }, mobileMode: { classPropertyName: "mobileMode", publicName: "mobileMode", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "onClick($event)", "document:pointerdown": "onOutsidePointer($event)", "keydown.escape": "onEscape($event)", "window:resize": "onResize()" }, properties: { "attr.data-mobile-mode": "mobileMode()" }, classAttribute: "good-topbar-menu-container" }, ngImport: i0, template: `
2032
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeaderMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2033
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodHeaderMenuComponent, isStandalone: true, selector: "good-header-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null }, mobileMode: { classPropertyName: "mobileMode", publicName: "mobileMode", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "onClick($event)", "document:pointerdown": "onOutsidePointer($event)", "keydown.escape": "onEscape($event)", "window:resize": "onResize()" }, properties: { "attr.data-mobile-mode": "mobileMode()" }, classAttribute: "good-header-menu" }, ngImport: i0, template: `
1951
2034
  <button #mobileTrigger type="button" class="good-topbar-mobile-trigger good-action-button"
1952
- [attr.aria-label]="mobileOpen() ? 'Close topbar menu' : 'Open topbar menu'"
2035
+ [attr.aria-label]="mobileOpen() ? 'Close header menu' : 'Open header menu'"
1953
2036
  aria-haspopup="true" [attr.aria-expanded]="mobileOpen()" [attr.aria-controls]="mobilePanelId"
1954
2037
  (click)="toggleMobileMenu()"><good-icon name="grid" /></button>
1955
- <div class="good-topbar-menu-items" [id]="mobilePanelId" [class.good-topbar-menu-popup-open]="mobileOpen()"
1956
- [attr.role]="mobileMode() === 'popup' ? 'navigation' : null" [attr.aria-label]="mobileMode() === 'popup' ? 'Topbar menu' : null">
1957
- @for (item of items(); track item.id) { <good-topbar-menu-item [item]="item" [activeRoute]="activeRoute()" /> }
2038
+ <div class="good-header-menu-items" [id]="mobilePanelId" [class.good-header-menu-popup-open]="mobileOpen()"
2039
+ [attr.role]="mobileMode() === 'popup' ? 'navigation' : null" [attr.aria-label]="mobileMode() === 'popup' ? 'Header menu' : null">
2040
+ @for (item of items(); track item.id) { <good-header-menu-item [item]="item" [activeRoute]="routeState()" /> }
1958
2041
  <ng-content />
1959
2042
  </div>
1960
- `, isInline: true, dependencies: [{ kind: "component", type: GoodIconComponent, selector: "good-icon", inputs: ["name"] }, { kind: "component", type: GoodTopbarMenuItemComponent, selector: "good-topbar-menu-item", inputs: ["item", "label", "route", "active", "activeRoute"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2043
+ `, isInline: true, dependencies: [{ kind: "component", type: GoodIconComponent, selector: "good-icon", inputs: ["name"] }, { kind: "component", type: GoodHeaderMenuItemComponent, selector: "good-header-menu-item", inputs: ["item", "label", "route", "active", "activeRoute"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1961
2044
  }
1962
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodTopbarMenuContainerComponent, decorators: [{
2045
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeaderMenuComponent, decorators: [{
1963
2046
  type: Component,
1964
2047
  args: [{
1965
- selector: 'good-topbar-menu-container',
2048
+ selector: 'good-header-menu',
1966
2049
  standalone: true,
1967
- imports: [GoodIconComponent, GoodTopbarMenuItemComponent],
2050
+ imports: [GoodIconComponent, GoodHeaderMenuItemComponent],
1968
2051
  changeDetection: ChangeDetectionStrategy.OnPush,
1969
2052
  template: `
1970
2053
  <button #mobileTrigger type="button" class="good-topbar-mobile-trigger good-action-button"
1971
- [attr.aria-label]="mobileOpen() ? 'Close topbar menu' : 'Open topbar menu'"
2054
+ [attr.aria-label]="mobileOpen() ? 'Close header menu' : 'Open header menu'"
1972
2055
  aria-haspopup="true" [attr.aria-expanded]="mobileOpen()" [attr.aria-controls]="mobilePanelId"
1973
2056
  (click)="toggleMobileMenu()"><good-icon name="grid" /></button>
1974
- <div class="good-topbar-menu-items" [id]="mobilePanelId" [class.good-topbar-menu-popup-open]="mobileOpen()"
1975
- [attr.role]="mobileMode() === 'popup' ? 'navigation' : null" [attr.aria-label]="mobileMode() === 'popup' ? 'Topbar menu' : null">
1976
- @for (item of items(); track item.id) { <good-topbar-menu-item [item]="item" [activeRoute]="activeRoute()" /> }
2057
+ <div class="good-header-menu-items" [id]="mobilePanelId" [class.good-header-menu-popup-open]="mobileOpen()"
2058
+ [attr.role]="mobileMode() === 'popup' ? 'navigation' : null" [attr.aria-label]="mobileMode() === 'popup' ? 'Header menu' : null">
2059
+ @for (item of items(); track item.id) { <good-header-menu-item [item]="item" [activeRoute]="routeState()" /> }
1977
2060
  <ng-content />
1978
2061
  </div>
1979
2062
  `,
1980
- host: { class: 'good-topbar-menu-container', '[attr.data-mobile-mode]': 'mobileMode()' },
2063
+ host: { class: 'good-header-menu', '[attr.data-mobile-mode]': 'mobileMode()' },
1981
2064
  }]
1982
2065
  }], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], activeRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeRoute", required: false }] }], mobileMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobileMode", required: false }] }], onClick: [{
1983
2066
  type: HostListener,
@@ -1992,84 +2075,99 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1992
2075
  type: HostListener,
1993
2076
  args: ['window:resize']
1994
2077
  }] } });
1995
- class GoodTopbarComponent {
1996
- brand = input('GOODUI', ...(ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []));
1997
- brandLogoSrc = input('', ...(ngDevMode ? [{ debugName: "brandLogoSrc" }] : /* istanbul ignore next */ []));
1998
- brandLogoDarkSrc = input('', ...(ngDevMode ? [{ debugName: "brandLogoDarkSrc" }] : /* istanbul ignore next */ []));
1999
- brandMarkSrc = input('', ...(ngDevMode ? [{ debugName: "brandMarkSrc" }] : /* istanbul ignore next */ []));
2000
- brandMarkDarkSrc = input('', ...(ngDevMode ? [{ debugName: "brandMarkDarkSrc" }] : /* istanbul ignore next */ []));
2001
- showBrandIcon = input(false, ...(ngDevMode ? [{ debugName: "showBrandIcon" }] : /* istanbul ignore next */ []));
2002
- showMobileBrand = input(true, ...(ngDevMode ? [{ debugName: "showMobileBrand" }] : /* istanbul ignore next */ []));
2003
- items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
2004
- activeRoute = input('', ...(ngDevMode ? [{ debugName: "activeRoute" }] : /* istanbul ignore next */ []));
2005
- mobileMenuMode = input('hidden', ...(ngDevMode ? [{ debugName: "mobileMenuMode" }] : /* istanbul ignore next */ []));
2006
- user = input(null, ...(ngDevMode ? [{ debugName: "user" }] : /* istanbul ignore next */ []));
2007
- notifications = input([], ...(ngDevMode ? [{ debugName: "notifications" }] : /* istanbul ignore next */ []));
2008
- searchItems = input([], ...(ngDevMode ? [{ debugName: "searchItems" }] : /* istanbul ignore next */ []));
2009
- settingsActions = input([], ...(ngDevMode ? [{ debugName: "settingsActions" }] : /* istanbul ignore next */ []));
2010
- showThemeToggle = input(true, ...(ngDevMode ? [{ debugName: "showThemeToggle" }] : /* istanbul ignore next */ []));
2011
- showSettings = input(false, ...(ngDevMode ? [{ debugName: "showSettings" }] : /* istanbul ignore next */ []));
2012
- avatarActions = input([], ...(ngDevMode ? [{ debugName: "avatarActions" }] : /* istanbul ignore next */ []));
2078
+ class GoodAppHeaderComponent {
2079
+ shell = inject(GoodShellContext, { optional: true });
2080
+ brand = input(...(ngDevMode ? [undefined, { debugName: "brand" }] : /* istanbul ignore next */ []));
2081
+ brandLogoSrc = input(...(ngDevMode ? [undefined, { debugName: "brandLogoSrc" }] : /* istanbul ignore next */ []));
2082
+ brandLogoDarkSrc = input(...(ngDevMode ? [undefined, { debugName: "brandLogoDarkSrc" }] : /* istanbul ignore next */ []));
2083
+ brandMarkSrc = input(...(ngDevMode ? [undefined, { debugName: "brandMarkSrc" }] : /* istanbul ignore next */ []));
2084
+ brandMarkDarkSrc = input(...(ngDevMode ? [undefined, { debugName: "brandMarkDarkSrc" }] : /* istanbul ignore next */ []));
2085
+ showBrandIcon = input(...(ngDevMode ? [undefined, { debugName: "showBrandIcon" }] : /* istanbul ignore next */ []));
2086
+ showMobileBrand = input(...(ngDevMode ? [undefined, { debugName: "showMobileBrand" }] : /* istanbul ignore next */ []));
2087
+ user = input(...(ngDevMode ? [undefined, { debugName: "user" }] : /* istanbul ignore next */ []));
2088
+ notifications = input(...(ngDevMode ? [undefined, { debugName: "notifications" }] : /* istanbul ignore next */ []));
2089
+ searchItems = input(...(ngDevMode ? [undefined, { debugName: "searchItems" }] : /* istanbul ignore next */ []));
2090
+ settingsActions = input(...(ngDevMode ? [undefined, { debugName: "settingsActions" }] : /* istanbul ignore next */ []));
2091
+ showThemeToggle = input(...(ngDevMode ? [undefined, { debugName: "showThemeToggle" }] : /* istanbul ignore next */ []));
2092
+ showSettings = input(...(ngDevMode ? [undefined, { debugName: "showSettings" }] : /* istanbul ignore next */ []));
2093
+ avatarActions = input(...(ngDevMode ? [undefined, { debugName: "avatarActions" }] : /* istanbul ignore next */ []));
2013
2094
  menuToggle = output();
2014
- projectedMenu = contentChild(GoodTopbarMenuContainerComponent, ...(ngDevMode ? [{ debugName: "projectedMenu" }] : /* istanbul ignore next */ []));
2015
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodTopbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2016
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodTopbarComponent, isStandalone: true, selector: "good-topbar", inputs: { brand: { classPropertyName: "brand", publicName: "brand", isSignal: true, isRequired: false, transformFunction: null }, brandLogoSrc: { classPropertyName: "brandLogoSrc", publicName: "brandLogoSrc", isSignal: true, isRequired: false, transformFunction: null }, brandLogoDarkSrc: { classPropertyName: "brandLogoDarkSrc", publicName: "brandLogoDarkSrc", isSignal: true, isRequired: false, transformFunction: null }, brandMarkSrc: { classPropertyName: "brandMarkSrc", publicName: "brandMarkSrc", isSignal: true, isRequired: false, transformFunction: null }, brandMarkDarkSrc: { classPropertyName: "brandMarkDarkSrc", publicName: "brandMarkDarkSrc", isSignal: true, isRequired: false, transformFunction: null }, showBrandIcon: { classPropertyName: "showBrandIcon", publicName: "showBrandIcon", isSignal: true, isRequired: false, transformFunction: null }, showMobileBrand: { classPropertyName: "showMobileBrand", publicName: "showMobileBrand", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, activeRoute: { classPropertyName: "activeRoute", publicName: "activeRoute", isSignal: true, isRequired: false, transformFunction: null }, mobileMenuMode: { classPropertyName: "mobileMenuMode", publicName: "mobileMenuMode", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: false, transformFunction: null }, notifications: { classPropertyName: "notifications", publicName: "notifications", isSignal: true, isRequired: false, transformFunction: null }, searchItems: { classPropertyName: "searchItems", publicName: "searchItems", isSignal: true, isRequired: false, transformFunction: null }, settingsActions: { classPropertyName: "settingsActions", publicName: "settingsActions", isSignal: true, isRequired: false, transformFunction: null }, showThemeToggle: { classPropertyName: "showThemeToggle", publicName: "showThemeToggle", isSignal: true, isRequired: false, transformFunction: null }, showSettings: { classPropertyName: "showSettings", publicName: "showSettings", isSignal: true, isRequired: false, transformFunction: null }, avatarActions: { classPropertyName: "avatarActions", publicName: "avatarActions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { menuToggle: "menuToggle" }, host: { properties: { "attr.data-mobile-menu": "mobileMenuMode()" }, classAttribute: "good-topbar" }, queries: [{ propertyName: "projectedMenu", first: true, predicate: GoodTopbarMenuContainerComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
2095
+ config = computed(() => {
2096
+ const inherited = this.shell?.options() ?? GOOD_SHELL_DEFAULTS;
2097
+ return {
2098
+ brand: this.brand() ?? inherited.brand,
2099
+ brandLogoSrc: this.brandLogoSrc() ?? inherited.brandLogoSrc,
2100
+ brandLogoDarkSrc: this.brandLogoDarkSrc() ?? inherited.brandLogoDarkSrc,
2101
+ brandMarkSrc: this.brandMarkSrc() ?? inherited.brandMarkSrc,
2102
+ brandMarkDarkSrc: this.brandMarkDarkSrc() ?? inherited.brandMarkDarkSrc,
2103
+ showBrandIcon: this.showBrandIcon() ?? inherited.showBrandIcon,
2104
+ showMobileBrand: this.showMobileBrand() ?? inherited.showMobileBrand,
2105
+ user: this.user() === undefined ? inherited.user : this.user(),
2106
+ notifications: this.notifications() ?? inherited.notifications,
2107
+ searchItems: this.searchItems() ?? inherited.searchItems,
2108
+ settingsActions: this.settingsActions() ?? inherited.settingsActions,
2109
+ showThemeToggle: this.showThemeToggle() ?? inherited.showThemeToggle,
2110
+ showSettings: this.showSettings() ?? inherited.showSettings,
2111
+ avatarActions: this.avatarActions() ?? inherited.avatarActions,
2112
+ };
2113
+ }, ...(ngDevMode ? [{ debugName: "config" }] : /* istanbul ignore next */ []));
2114
+ openSidebar() { this.shell?.sidebarOpen.set(true); this.menuToggle.emit(); }
2115
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodAppHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2116
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodAppHeaderComponent, isStandalone: true, selector: "good-app-header", inputs: { brand: { classPropertyName: "brand", publicName: "brand", isSignal: true, isRequired: false, transformFunction: null }, brandLogoSrc: { classPropertyName: "brandLogoSrc", publicName: "brandLogoSrc", isSignal: true, isRequired: false, transformFunction: null }, brandLogoDarkSrc: { classPropertyName: "brandLogoDarkSrc", publicName: "brandLogoDarkSrc", isSignal: true, isRequired: false, transformFunction: null }, brandMarkSrc: { classPropertyName: "brandMarkSrc", publicName: "brandMarkSrc", isSignal: true, isRequired: false, transformFunction: null }, brandMarkDarkSrc: { classPropertyName: "brandMarkDarkSrc", publicName: "brandMarkDarkSrc", isSignal: true, isRequired: false, transformFunction: null }, showBrandIcon: { classPropertyName: "showBrandIcon", publicName: "showBrandIcon", isSignal: true, isRequired: false, transformFunction: null }, showMobileBrand: { classPropertyName: "showMobileBrand", publicName: "showMobileBrand", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: false, transformFunction: null }, notifications: { classPropertyName: "notifications", publicName: "notifications", isSignal: true, isRequired: false, transformFunction: null }, searchItems: { classPropertyName: "searchItems", publicName: "searchItems", isSignal: true, isRequired: false, transformFunction: null }, settingsActions: { classPropertyName: "settingsActions", publicName: "settingsActions", isSignal: true, isRequired: false, transformFunction: null }, showThemeToggle: { classPropertyName: "showThemeToggle", publicName: "showThemeToggle", isSignal: true, isRequired: false, transformFunction: null }, showSettings: { classPropertyName: "showSettings", publicName: "showSettings", isSignal: true, isRequired: false, transformFunction: null }, avatarActions: { classPropertyName: "avatarActions", publicName: "avatarActions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { menuToggle: "menuToggle" }, host: { classAttribute: "good-app-header" }, ngImport: i0, template: `
2017
2117
  <div class="good-topbar-left">
2018
- <button type="button" class="good-mobile-menu-button good-action-button" aria-label="Open sidebar" (click)="menuToggle.emit()"><good-icon name="menu" /></button>
2019
- @if (showMobileBrand()) {
2020
- @if (brandMarkSrc()) {
2021
- <good-brand-icon class="good-mobile-brand-icon" [src]="brandMarkSrc()" [darkSrc]="brandMarkDarkSrc()" [label]="brand()" />
2118
+ @if (!shell || shell.hasSidebar()) { <button type="button" class="good-mobile-menu-button good-action-button" aria-label="Open sidebar" (click)="openSidebar()"><good-icon name="menu" /></button> }
2119
+ @if (config().showMobileBrand) {
2120
+ @if (config().brandMarkSrc) {
2121
+ <good-brand-icon class="good-mobile-brand-icon" [src]="config().brandMarkSrc" [darkSrc]="config().brandMarkDarkSrc" [label]="config().brand" />
2022
2122
  } @else {
2023
- <span class="good-mobile-brand" [class.good-has-dark-logo]="!!brandLogoDarkSrc()">
2024
- @if (brandLogoSrc()) {
2025
- <img class="good-brand-logo good-brand-logo-light" [src]="brandLogoSrc()" [alt]="brand()" />
2026
- @if (brandLogoDarkSrc()) { <img class="good-brand-logo good-brand-logo-dark" [src]="brandLogoDarkSrc()" [alt]="brand()" /> }
2027
- } @else { {{ brand() }} }
2123
+ <span class="good-mobile-brand" [class.good-has-dark-logo]="!!config().brandLogoDarkSrc">
2124
+ @if (config().brandLogoSrc) {
2125
+ <img class="good-brand-logo good-brand-logo-light" [src]="config().brandLogoSrc" [alt]="config().brand" />
2126
+ @if (config().brandLogoDarkSrc) { <img class="good-brand-logo good-brand-logo-dark" [src]="config().brandLogoDarkSrc" [alt]="config().brand" /> }
2127
+ } @else { {{ config().brand }} }
2028
2128
  </span>
2029
2129
  }
2030
2130
  }
2031
- @if (showBrandIcon()) { <good-brand-icon class="good-desktop-brand-icon" [src]="brandMarkSrc()" [darkSrc]="brandMarkDarkSrc()" [label]="brand()" /> }
2032
- @if (!projectedMenu()) { <good-topbar-menu-container [items]="items()" [activeRoute]="activeRoute()" [mobileMode]="mobileMenuMode()" /> }
2033
- <ng-content select="good-topbar-menu-container" />
2131
+ @if (config().showBrandIcon) { <good-brand-icon class="good-desktop-brand-icon" [src]="config().brandMarkSrc" [darkSrc]="config().brandMarkDarkSrc" [label]="config().brand" /> }
2132
+ <ng-content select="good-header-menu" />
2034
2133
  </div>
2035
2134
  <ng-content select="good-header-actions">
2036
- <good-header-actions [user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()" />
2135
+ <good-header-actions [user]="config().user" [notifications]="config().notifications" [searchItems]="config().searchItems" [settingsActions]="config().settingsActions" [avatarActions]="config().avatarActions" [showThemeToggle]="config().showThemeToggle" [showSettings]="config().showSettings" />
2037
2136
  </ng-content>
2038
- `, isInline: true, dependencies: [{ kind: "component", type: GoodIconComponent, selector: "good-icon", inputs: ["name"] }, { kind: "component", type: GoodBrandIconComponent, selector: "good-brand-icon", inputs: ["src", "darkSrc", "label"] }, { kind: "component", type: GoodTopbarMenuContainerComponent, selector: "good-topbar-menu-container", inputs: ["items", "activeRoute", "mobileMode"] }, { kind: "component", type: GoodHeaderActionsComponent, selector: "good-header-actions", inputs: ["user", "notifications", "searchItems", "settingsActions", "avatarActions", "showSearch", "showNotifications", "showThemeToggle", "showSettings", "showAvatar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2137
+ `, isInline: true, dependencies: [{ kind: "component", type: GoodIconComponent, selector: "good-icon", inputs: ["name"] }, { kind: "component", type: GoodBrandIconComponent, selector: "good-brand-icon", inputs: ["src", "darkSrc", "label"] }, { kind: "component", type: GoodHeaderActionsComponent, selector: "good-header-actions", inputs: ["user", "notifications", "searchItems", "settingsActions", "avatarActions", "showSearch", "showNotifications", "showThemeToggle", "showSettings", "showAvatar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2039
2138
  }
2040
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodTopbarComponent, decorators: [{
2139
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodAppHeaderComponent, decorators: [{
2041
2140
  type: Component,
2042
2141
  args: [{
2043
- selector: 'good-topbar',
2142
+ selector: 'good-app-header',
2044
2143
  standalone: true,
2045
- imports: [GoodIconComponent, GoodBrandIconComponent, GoodTopbarMenuContainerComponent, GoodHeaderActionsComponent],
2144
+ imports: [GoodIconComponent, GoodBrandIconComponent, GoodHeaderActionsComponent],
2046
2145
  changeDetection: ChangeDetectionStrategy.OnPush,
2047
2146
  template: `
2048
2147
  <div class="good-topbar-left">
2049
- <button type="button" class="good-mobile-menu-button good-action-button" aria-label="Open sidebar" (click)="menuToggle.emit()"><good-icon name="menu" /></button>
2050
- @if (showMobileBrand()) {
2051
- @if (brandMarkSrc()) {
2052
- <good-brand-icon class="good-mobile-brand-icon" [src]="brandMarkSrc()" [darkSrc]="brandMarkDarkSrc()" [label]="brand()" />
2148
+ @if (!shell || shell.hasSidebar()) { <button type="button" class="good-mobile-menu-button good-action-button" aria-label="Open sidebar" (click)="openSidebar()"><good-icon name="menu" /></button> }
2149
+ @if (config().showMobileBrand) {
2150
+ @if (config().brandMarkSrc) {
2151
+ <good-brand-icon class="good-mobile-brand-icon" [src]="config().brandMarkSrc" [darkSrc]="config().brandMarkDarkSrc" [label]="config().brand" />
2053
2152
  } @else {
2054
- <span class="good-mobile-brand" [class.good-has-dark-logo]="!!brandLogoDarkSrc()">
2055
- @if (brandLogoSrc()) {
2056
- <img class="good-brand-logo good-brand-logo-light" [src]="brandLogoSrc()" [alt]="brand()" />
2057
- @if (brandLogoDarkSrc()) { <img class="good-brand-logo good-brand-logo-dark" [src]="brandLogoDarkSrc()" [alt]="brand()" /> }
2058
- } @else { {{ brand() }} }
2153
+ <span class="good-mobile-brand" [class.good-has-dark-logo]="!!config().brandLogoDarkSrc">
2154
+ @if (config().brandLogoSrc) {
2155
+ <img class="good-brand-logo good-brand-logo-light" [src]="config().brandLogoSrc" [alt]="config().brand" />
2156
+ @if (config().brandLogoDarkSrc) { <img class="good-brand-logo good-brand-logo-dark" [src]="config().brandLogoDarkSrc" [alt]="config().brand" /> }
2157
+ } @else { {{ config().brand }} }
2059
2158
  </span>
2060
2159
  }
2061
2160
  }
2062
- @if (showBrandIcon()) { <good-brand-icon class="good-desktop-brand-icon" [src]="brandMarkSrc()" [darkSrc]="brandMarkDarkSrc()" [label]="brand()" /> }
2063
- @if (!projectedMenu()) { <good-topbar-menu-container [items]="items()" [activeRoute]="activeRoute()" [mobileMode]="mobileMenuMode()" /> }
2064
- <ng-content select="good-topbar-menu-container" />
2161
+ @if (config().showBrandIcon) { <good-brand-icon class="good-desktop-brand-icon" [src]="config().brandMarkSrc" [darkSrc]="config().brandMarkDarkSrc" [label]="config().brand" /> }
2162
+ <ng-content select="good-header-menu" />
2065
2163
  </div>
2066
2164
  <ng-content select="good-header-actions">
2067
- <good-header-actions [user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()" />
2165
+ <good-header-actions [user]="config().user" [notifications]="config().notifications" [searchItems]="config().searchItems" [settingsActions]="config().settingsActions" [avatarActions]="config().avatarActions" [showThemeToggle]="config().showThemeToggle" [showSettings]="config().showSettings" />
2068
2166
  </ng-content>
2069
2167
  `,
2070
- host: { class: 'good-topbar', '[attr.data-mobile-menu]': 'mobileMenuMode()' },
2168
+ host: { class: 'good-app-header' },
2071
2169
  }]
2072
- }], propDecorators: { brand: [{ type: i0.Input, args: [{ isSignal: true, alias: "brand", required: false }] }], brandLogoSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoSrc", required: false }] }], brandLogoDarkSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoDarkSrc", required: false }] }], brandMarkSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandMarkSrc", required: false }] }], brandMarkDarkSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandMarkDarkSrc", required: false }] }], showBrandIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBrandIcon", required: false }] }], showMobileBrand: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMobileBrand", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], activeRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeRoute", required: false }] }], mobileMenuMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobileMenuMode", required: false }] }], user: [{ type: i0.Input, args: [{ isSignal: true, alias: "user", required: false }] }], notifications: [{ type: i0.Input, args: [{ isSignal: true, alias: "notifications", required: false }] }], searchItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchItems", required: false }] }], settingsActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "settingsActions", required: false }] }], showThemeToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showThemeToggle", required: false }] }], showSettings: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSettings", required: false }] }], avatarActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarActions", required: false }] }], menuToggle: [{ type: i0.Output, args: ["menuToggle"] }], projectedMenu: [{ type: i0.ContentChild, args: [i0.forwardRef(() => GoodTopbarMenuContainerComponent), { isSignal: true }] }] } });
2170
+ }], propDecorators: { brand: [{ type: i0.Input, args: [{ isSignal: true, alias: "brand", required: false }] }], brandLogoSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoSrc", required: false }] }], brandLogoDarkSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoDarkSrc", required: false }] }], brandMarkSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandMarkSrc", required: false }] }], brandMarkDarkSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandMarkDarkSrc", required: false }] }], showBrandIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBrandIcon", required: false }] }], showMobileBrand: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMobileBrand", required: false }] }], user: [{ type: i0.Input, args: [{ isSignal: true, alias: "user", required: false }] }], notifications: [{ type: i0.Input, args: [{ isSignal: true, alias: "notifications", required: false }] }], searchItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchItems", required: false }] }], settingsActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "settingsActions", required: false }] }], showThemeToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showThemeToggle", required: false }] }], showSettings: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSettings", required: false }] }], avatarActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarActions", required: false }] }], menuToggle: [{ type: i0.Output, args: ["menuToggle"] }] } });
2073
2171
 
2074
2172
  let nextActionMenuId = 0;
2075
2173
  class GoodActionMenuComponent {
@@ -3234,14 +3332,14 @@ const GOOD_COMPOSITE_REQUIRED_CONTROL = new InjectionToken('GoodUI composite req
3234
3332
 
3235
3333
  class GoodHeadingGroupComponent {
3236
3334
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeadingGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3237
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: GoodHeadingGroupComponent, isStandalone: true, selector: "good-heading-group", host: { classAttribute: "good-heading-group" }, ngImport: i0, template: `<ng-content select="good-eyebrow" /><div class="good-heading-group-text"><ng-content select="good-heading" /><ng-content select="good-summary" /></div>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3335
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: GoodHeadingGroupComponent, isStandalone: true, selector: "good-heading-group", host: { classAttribute: "good-heading-group" }, ngImport: i0, template: `<ng-content select="good-eyebrow" /><div class="good-heading-group-text"><ng-content select="good-heading-1, good-heading-2, good-heading-3, good-heading-4, good-heading-5, good-heading-6, good-heading-7" /><ng-content select="good-summary" /></div>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3238
3336
  }
3239
3337
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeadingGroupComponent, decorators: [{
3240
3338
  type: Component,
3241
3339
  args: [{
3242
3340
  selector: 'good-heading-group', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush,
3243
3341
  host: { class: 'good-heading-group' },
3244
- template: `<ng-content select="good-eyebrow" /><div class="good-heading-group-text"><ng-content select="good-heading" /><ng-content select="good-summary" /></div>`,
3342
+ template: `<ng-content select="good-eyebrow" /><div class="good-heading-group-text"><ng-content select="good-heading-1, good-heading-2, good-heading-3, good-heading-4, good-heading-5, good-heading-6, good-heading-7" /><ng-content select="good-summary" /></div>`,
3245
3343
  }]
3246
3344
  }] });
3247
3345
  class GoodEyebrowComponent {
@@ -3257,40 +3355,90 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
3257
3355
  template: `<span><ng-content /></span>`,
3258
3356
  }]
3259
3357
  }], propDecorators: { appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }] } });
3260
- class GoodHeadingComponent {
3261
- level = input(1, ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
3262
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3263
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodHeadingComponent, isStandalone: true, selector: "good-heading", inputs: { level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-level": "level()" }, classAttribute: "good-heading" }, ngImport: i0, template: `
3264
- <ng-template #content><ng-content /></ng-template>
3265
- @switch (level()) {
3266
- @case (2) { <h2><ng-container [ngTemplateOutlet]="content" /></h2> }
3267
- @case (3) { <h3><ng-container [ngTemplateOutlet]="content" /></h3> }
3268
- @case (4) { <h4><ng-container [ngTemplateOutlet]="content" /></h4> }
3269
- @case (5) { <h5><ng-container [ngTemplateOutlet]="content" /></h5> }
3270
- @case (6) { <h6><ng-container [ngTemplateOutlet]="content" /></h6> }
3271
- @default { <h1><ng-container [ngTemplateOutlet]="content" /></h1> }
3272
- }
3273
- `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3274
- }
3275
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeadingComponent, decorators: [{
3358
+ class GoodHeading1Component {
3359
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeading1Component, deps: [], target: i0.ɵɵFactoryTarget.Component });
3360
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: GoodHeading1Component, isStandalone: true, selector: "good-heading-1", host: { attributes: { "data-level": "1", "data-heading-style": "1" }, classAttribute: "good-heading" }, ngImport: i0, template: `<h1><ng-content /></h1>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3361
+ }
3362
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeading1Component, decorators: [{
3276
3363
  type: Component,
3277
3364
  args: [{
3278
- selector: 'good-heading', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush,
3279
- imports: [NgTemplateOutlet],
3280
- host: { class: 'good-heading', '[attr.data-level]': 'level()' },
3281
- template: `
3282
- <ng-template #content><ng-content /></ng-template>
3283
- @switch (level()) {
3284
- @case (2) { <h2><ng-container [ngTemplateOutlet]="content" /></h2> }
3285
- @case (3) { <h3><ng-container [ngTemplateOutlet]="content" /></h3> }
3286
- @case (4) { <h4><ng-container [ngTemplateOutlet]="content" /></h4> }
3287
- @case (5) { <h5><ng-container [ngTemplateOutlet]="content" /></h5> }
3288
- @case (6) { <h6><ng-container [ngTemplateOutlet]="content" /></h6> }
3289
- @default { <h1><ng-container [ngTemplateOutlet]="content" /></h1> }
3290
- }
3291
- `,
3365
+ selector: 'good-heading-1', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush,
3366
+ host: { class: 'good-heading', 'data-level': '1', 'data-heading-style': '1' },
3367
+ template: `<h1><ng-content /></h1>`,
3368
+ }]
3369
+ }] });
3370
+ class GoodHeading2Component {
3371
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeading2Component, deps: [], target: i0.ɵɵFactoryTarget.Component });
3372
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: GoodHeading2Component, isStandalone: true, selector: "good-heading-2", host: { attributes: { "data-level": "2", "data-heading-style": "2" }, classAttribute: "good-heading" }, ngImport: i0, template: `<h2><ng-content /></h2>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3373
+ }
3374
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeading2Component, decorators: [{
3375
+ type: Component,
3376
+ args: [{
3377
+ selector: 'good-heading-2', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush,
3378
+ host: { class: 'good-heading', 'data-level': '2', 'data-heading-style': '2' },
3379
+ template: `<h2><ng-content /></h2>`,
3380
+ }]
3381
+ }] });
3382
+ class GoodHeading3Component {
3383
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeading3Component, deps: [], target: i0.ɵɵFactoryTarget.Component });
3384
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: GoodHeading3Component, isStandalone: true, selector: "good-heading-3", host: { attributes: { "data-level": "3", "data-heading-style": "3" }, classAttribute: "good-subheading" }, ngImport: i0, template: `<h3><ng-content /></h3>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3385
+ }
3386
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeading3Component, decorators: [{
3387
+ type: Component,
3388
+ args: [{
3389
+ selector: 'good-heading-3', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush,
3390
+ host: { class: 'good-subheading', 'data-level': '3', 'data-heading-style': '3' },
3391
+ template: `<h3><ng-content /></h3>`,
3392
+ }]
3393
+ }] });
3394
+ class GoodHeading4Component {
3395
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeading4Component, deps: [], target: i0.ɵɵFactoryTarget.Component });
3396
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: GoodHeading4Component, isStandalone: true, selector: "good-heading-4", host: { attributes: { "data-level": "4", "data-heading-style": "4" }, classAttribute: "good-subheading" }, ngImport: i0, template: `<h4><ng-content /></h4>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3397
+ }
3398
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeading4Component, decorators: [{
3399
+ type: Component,
3400
+ args: [{
3401
+ selector: 'good-heading-4', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush,
3402
+ host: { class: 'good-subheading', 'data-level': '4', 'data-heading-style': '4' },
3403
+ template: `<h4><ng-content /></h4>`,
3404
+ }]
3405
+ }] });
3406
+ class GoodHeading5Component {
3407
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeading5Component, deps: [], target: i0.ɵɵFactoryTarget.Component });
3408
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: GoodHeading5Component, isStandalone: true, selector: "good-heading-5", host: { attributes: { "data-level": "5", "data-heading-style": "5" }, classAttribute: "good-subheading" }, ngImport: i0, template: `<h5><ng-content /></h5>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3409
+ }
3410
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeading5Component, decorators: [{
3411
+ type: Component,
3412
+ args: [{
3413
+ selector: 'good-heading-5', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush,
3414
+ host: { class: 'good-subheading', 'data-level': '5', 'data-heading-style': '5' },
3415
+ template: `<h5><ng-content /></h5>`,
3416
+ }]
3417
+ }] });
3418
+ class GoodHeading6Component {
3419
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeading6Component, deps: [], target: i0.ɵɵFactoryTarget.Component });
3420
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: GoodHeading6Component, isStandalone: true, selector: "good-heading-6", host: { attributes: { "data-level": "6", "data-heading-style": "6" }, classAttribute: "good-subheading" }, ngImport: i0, template: `<h6><ng-content /></h6>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3421
+ }
3422
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeading6Component, decorators: [{
3423
+ type: Component,
3424
+ args: [{
3425
+ selector: 'good-heading-6', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush,
3426
+ host: { class: 'good-subheading', 'data-level': '6', 'data-heading-style': '6' },
3427
+ template: `<h6><ng-content /></h6>`,
3292
3428
  }]
3293
- }], propDecorators: { level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }] } });
3429
+ }] });
3430
+ class GoodHeading7Component {
3431
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeading7Component, deps: [], target: i0.ɵɵFactoryTarget.Component });
3432
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: GoodHeading7Component, isStandalone: true, selector: "good-heading-7", host: { attributes: { "data-level": "7", "data-heading-style": "7", "role": "heading", "aria-level": "7" }, classAttribute: "good-subheading" }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3433
+ }
3434
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeading7Component, decorators: [{
3435
+ type: Component,
3436
+ args: [{
3437
+ selector: 'good-heading-7', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush,
3438
+ host: { class: 'good-subheading', 'data-level': '7', 'data-heading-style': '7', role: 'heading', 'aria-level': '7' },
3439
+ template: `<ng-content />`,
3440
+ }]
3441
+ }] });
3294
3442
  class GoodSummaryComponent {
3295
3443
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodSummaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3296
3444
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: GoodSummaryComponent, isStandalone: true, selector: "good-summary", host: { classAttribute: "good-summary" }, ngImport: i0, template: `<p><ng-content /></p>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
@@ -3303,16 +3451,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
3303
3451
  }]
3304
3452
  }] });
3305
3453
  class GoodSectionComponent {
3454
+ spacing = input('default', ...(ngDevMode ? [{ debugName: "spacing" }] : /* istanbul ignore next */ []));
3306
3455
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3307
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: GoodSectionComponent, isStandalone: true, selector: "good-section", host: { classAttribute: "good-section" }, ngImport: i0, template: `<section><ng-content /></section>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3456
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.25", type: GoodSectionComponent, isStandalone: true, selector: "good-section", inputs: { spacing: { classPropertyName: "spacing", publicName: "spacing", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-spacing": "spacing()" }, classAttribute: "good-section" }, ngImport: i0, template: `<section><ng-content /></section>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3308
3457
  }
3309
3458
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodSectionComponent, decorators: [{
3310
3459
  type: Component,
3311
3460
  args: [{
3312
3461
  selector: 'good-section', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush,
3313
- host: { class: 'good-section' }, template: `<section><ng-content /></section>`,
3462
+ host: { class: 'good-section', '[attr.data-spacing]': 'spacing()' }, template: `<section><ng-content /></section>`,
3314
3463
  }]
3315
- }] });
3464
+ }], propDecorators: { spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }] } });
3316
3465
  class GoodProseComponent {
3317
3466
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodProseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3318
3467
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: GoodProseComponent, isStandalone: true, selector: "good-prose", host: { classAttribute: "good-prose" }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
@@ -3397,38 +3546,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
3397
3546
  host: { class: 'good-paragraph' }, template: `<p><ng-content /></p>`,
3398
3547
  }]
3399
3548
  }] });
3400
- class GoodSubheadingComponent {
3401
- level = input(2, ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
3402
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodSubheadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3403
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodSubheadingComponent, isStandalone: true, selector: "good-subheading", inputs: { level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-subheading" }, ngImport: i0, template: `
3404
- <ng-template #content><ng-content /></ng-template>
3405
- @switch (level()) {
3406
- @case (3) { <h3><ng-container [ngTemplateOutlet]="content" /></h3> }
3407
- @case (4) { <h4><ng-container [ngTemplateOutlet]="content" /></h4> }
3408
- @case (5) { <h5><ng-container [ngTemplateOutlet]="content" /></h5> }
3409
- @case (6) { <h6><ng-container [ngTemplateOutlet]="content" /></h6> }
3410
- @default { <h2><ng-container [ngTemplateOutlet]="content" /></h2> }
3411
- }
3412
- `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3413
- }
3414
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodSubheadingComponent, decorators: [{
3415
- type: Component,
3416
- args: [{
3417
- selector: 'good-subheading', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush,
3418
- imports: [NgTemplateOutlet],
3419
- host: { class: 'good-subheading' },
3420
- template: `
3421
- <ng-template #content><ng-content /></ng-template>
3422
- @switch (level()) {
3423
- @case (3) { <h3><ng-container [ngTemplateOutlet]="content" /></h3> }
3424
- @case (4) { <h4><ng-container [ngTemplateOutlet]="content" /></h4> }
3425
- @case (5) { <h5><ng-container [ngTemplateOutlet]="content" /></h5> }
3426
- @case (6) { <h6><ng-container [ngTemplateOutlet]="content" /></h6> }
3427
- @default { <h2><ng-container [ngTemplateOutlet]="content" /></h2> }
3428
- }
3429
- `,
3430
- }]
3431
- }], propDecorators: { level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }] } });
3432
3549
  class GoodCitationComponent {
3433
3550
  cite = input('', ...(ngDevMode ? [{ debugName: "cite" }] : /* istanbul ignore next */ []));
3434
3551
  source = input('', ...(ngDevMode ? [{ debugName: "source" }] : /* istanbul ignore next */ []));
@@ -3592,43 +3709,59 @@ class GoodMainViewComponent {
3592
3709
  subnavItems = input([], ...(ngDevMode ? [{ debugName: "subnavItems" }] : /* istanbul ignore next */ []));
3593
3710
  subnavActions = input([], ...(ngDevMode ? [{ debugName: "subnavActions" }] : /* istanbul ignore next */ []));
3594
3711
  subnavLabel = input('Subnav', ...(ngDevMode ? [{ debugName: "subnavLabel" }] : /* istanbul ignore next */ []));
3595
- title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
3596
- description = input('', ...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
3597
- eyebrow = input('', ...(ngDevMode ? [{ debugName: "eyebrow" }] : /* istanbul ignore next */ []));
3598
- eyebrowAppearance = input('brand', ...(ngDevMode ? [{ debugName: "eyebrowAppearance" }] : /* istanbul ignore next */ []));
3712
+ heading = contentChild(GoodHeading1Component, { ...(ngDevMode ? { debugName: "heading" } : /* istanbul ignore next */ {}), descendants: false });
3713
+ summary = contentChild(GoodSummaryComponent, { ...(ngDevMode ? { debugName: "summary" } : /* istanbul ignore next */ {}), descendants: false });
3714
+ eyebrow = contentChild(GoodEyebrowComponent, { ...(ngDevMode ? { debugName: "eyebrow" } : /* istanbul ignore next */ {}), descendants: false });
3715
+ headingGroup = contentChild(GoodHeadingGroupComponent, { ...(ngDevMode ? { debugName: "headingGroup" } : /* istanbul ignore next */ {}), descendants: false });
3716
+ hasDirectHeading = computed(() => !!(this.heading() || this.summary() || this.eyebrow()), ...(ngDevMode ? [{ debugName: "hasDirectHeading" }] : /* istanbul ignore next */ []));
3717
+ hasHeading = computed(() => this.hasDirectHeading() || !!this.headingGroup(), ...(ngDevMode ? [{ debugName: "hasHeading" }] : /* istanbul ignore next */ []));
3599
3718
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodMainViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3600
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodMainViewComponent, isStandalone: true, selector: "good-main-view", inputs: { layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, subnavItems: { classPropertyName: "subnavItems", publicName: "subnavItems", isSignal: true, isRequired: false, transformFunction: null }, subnavActions: { classPropertyName: "subnavActions", publicName: "subnavActions", isSignal: true, isRequired: false, transformFunction: null }, subnavLabel: { classPropertyName: "subnavLabel", publicName: "subnavLabel", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, eyebrow: { classPropertyName: "eyebrow", publicName: "eyebrow", isSignal: true, isRequired: false, transformFunction: null }, eyebrowAppearance: { classPropertyName: "eyebrowAppearance", publicName: "eyebrowAppearance", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-layout": "layout()" }, classAttribute: "good-main-view" }, ngImport: i0, template: `
3719
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodMainViewComponent, isStandalone: true, selector: "good-main-view", inputs: { layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, subnavItems: { classPropertyName: "subnavItems", publicName: "subnavItems", isSignal: true, isRequired: false, transformFunction: null }, subnavActions: { classPropertyName: "subnavActions", publicName: "subnavActions", isSignal: true, isRequired: false, transformFunction: null }, subnavLabel: { classPropertyName: "subnavLabel", publicName: "subnavLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-layout": "layout()" }, classAttribute: "good-main-view" }, queries: [{ propertyName: "heading", first: true, predicate: GoodHeading1Component, isSignal: true }, { propertyName: "summary", first: true, predicate: GoodSummaryComponent, isSignal: true }, { propertyName: "eyebrow", first: true, predicate: GoodEyebrowComponent, isSignal: true }, { propertyName: "headingGroup", first: true, predicate: GoodHeadingGroupComponent, isSignal: true }], ngImport: i0, template: `
3601
3720
  @if (subnavItems().length) { <good-subnav [items]="subnavItems()" [actions]="subnavActions()" [ariaLabel]="subnavLabel()" /> }
3602
- @if (eyebrow() || title() || description()) {
3721
+ @if (hasHeading()) {
3603
3722
  <header class="good-main-view-heading">
3604
- <good-heading-group>
3605
- @if (eyebrow()) { <good-eyebrow [appearance]="eyebrowAppearance()">{{ eyebrow() }}</good-eyebrow> }
3606
- @if (title()) { <good-heading>{{ title() }}</good-heading> }
3607
- @if (description()) { <good-summary>{{ description() }}</good-summary> }
3608
- </good-heading-group>
3723
+ <div class="good-main-view-heading-content">
3724
+ <ng-content select="good-heading-group" />
3725
+ @if (hasDirectHeading()) {
3726
+ <div class="good-heading-group">
3727
+ <ng-content select="good-eyebrow" />
3728
+ <div class="good-heading-group-text">
3729
+ <ng-content select="good-heading-1" />
3730
+ <ng-content select="good-summary" />
3731
+ </div>
3732
+ </div>
3733
+ }
3734
+ </div>
3609
3735
  <div class="good-main-view-actions"><ng-content select="[good-main-view-actions]" /></div>
3610
3736
  </header>
3611
3737
  }
3612
3738
  <ng-content select="[goodMainViewToolbar]" />
3613
3739
  <div class="good-main-view-content"><ng-content /></div>
3614
- `, isInline: true, dependencies: [{ kind: "component", type: GoodSubnavComponent, selector: "good-subnav", inputs: ["items", "actions", "ariaLabel", "activeRoute"] }, { kind: "component", type: GoodHeadingGroupComponent, selector: "good-heading-group" }, { kind: "component", type: GoodEyebrowComponent, selector: "good-eyebrow", inputs: ["appearance"] }, { kind: "component", type: GoodHeadingComponent, selector: "good-heading", inputs: ["level"] }, { kind: "component", type: GoodSummaryComponent, selector: "good-summary" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3740
+ `, isInline: true, dependencies: [{ kind: "component", type: GoodSubnavComponent, selector: "good-subnav", inputs: ["items", "actions", "ariaLabel", "activeRoute"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3615
3741
  }
3616
3742
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodMainViewComponent, decorators: [{
3617
3743
  type: Component,
3618
3744
  args: [{
3619
3745
  selector: 'good-main-view',
3620
3746
  standalone: true,
3621
- imports: [GoodSubnavComponent, GoodHeadingGroupComponent, GoodEyebrowComponent, GoodHeadingComponent, GoodSummaryComponent],
3747
+ imports: [GoodSubnavComponent],
3622
3748
  changeDetection: ChangeDetectionStrategy.OnPush,
3623
3749
  template: `
3624
3750
  @if (subnavItems().length) { <good-subnav [items]="subnavItems()" [actions]="subnavActions()" [ariaLabel]="subnavLabel()" /> }
3625
- @if (eyebrow() || title() || description()) {
3751
+ @if (hasHeading()) {
3626
3752
  <header class="good-main-view-heading">
3627
- <good-heading-group>
3628
- @if (eyebrow()) { <good-eyebrow [appearance]="eyebrowAppearance()">{{ eyebrow() }}</good-eyebrow> }
3629
- @if (title()) { <good-heading>{{ title() }}</good-heading> }
3630
- @if (description()) { <good-summary>{{ description() }}</good-summary> }
3631
- </good-heading-group>
3753
+ <div class="good-main-view-heading-content">
3754
+ <ng-content select="good-heading-group" />
3755
+ @if (hasDirectHeading()) {
3756
+ <div class="good-heading-group">
3757
+ <ng-content select="good-eyebrow" />
3758
+ <div class="good-heading-group-text">
3759
+ <ng-content select="good-heading-1" />
3760
+ <ng-content select="good-summary" />
3761
+ </div>
3762
+ </div>
3763
+ }
3764
+ </div>
3632
3765
  <div class="good-main-view-actions"><ng-content select="[good-main-view-actions]" /></div>
3633
3766
  </header>
3634
3767
  }
@@ -3637,7 +3770,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
3637
3770
  `,
3638
3771
  host: { class: 'good-main-view', '[attr.data-layout]': 'layout()' },
3639
3772
  }]
3640
- }], propDecorators: { layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], subnavItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "subnavItems", required: false }] }], subnavActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "subnavActions", required: false }] }], subnavLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "subnavLabel", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], eyebrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "eyebrow", required: false }] }], eyebrowAppearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "eyebrowAppearance", required: false }] }] } });
3773
+ }], propDecorators: { layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], subnavItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "subnavItems", required: false }] }], subnavActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "subnavActions", required: false }] }], subnavLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "subnavLabel", required: false }] }], heading: [{ type: i0.ContentChild, args: [i0.forwardRef(() => GoodHeading1Component), { ...{ descendants: false }, isSignal: true }] }], summary: [{ type: i0.ContentChild, args: [i0.forwardRef(() => GoodSummaryComponent), { ...{ descendants: false }, isSignal: true }] }], eyebrow: [{ type: i0.ContentChild, args: [i0.forwardRef(() => GoodEyebrowComponent), { ...{ descendants: false }, isSignal: true }] }], headingGroup: [{ type: i0.ContentChild, args: [i0.forwardRef(() => GoodHeadingGroupComponent), { ...{ descendants: false }, isSignal: true }] }] } });
3641
3774
 
3642
3775
  /** Aligns every field in a native form to the same label and control columns. */
3643
3776
  class GoodFormDirective {
@@ -14600,9 +14733,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
14600
14733
  }]
14601
14734
  }], propDecorators: { projectedHeader: [{ type: i0.ContentChild, args: [i0.forwardRef(() => GoodExpandableHeaderDirective), { isSignal: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }, { type: i0.Output, args: ["expandedChange"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
14602
14735
 
14603
- class GoodAppLayoutComponent {
14604
- router = inject(Router);
14605
- drawer = viewChild.required('drawer');
14736
+ class GoodAppShellComponent {
14737
+ document = inject(DOCUMENT);
14738
+ destroyRef = inject(DestroyRef);
14739
+ context = inject(GoodShellContext);
14740
+ navigation = inject(GoodNavigationState);
14741
+ sidebar = contentChild(GoodSidebarComponent, ...(ngDevMode ? [{ debugName: "sidebar" }] : /* istanbul ignore next */ []));
14742
+ drawer = viewChild('drawer', ...(ngDevMode ? [{ debugName: "drawer" }] : /* istanbul ignore next */ []));
14743
+ mobile = signal(false, ...(ngDevMode ? [{ debugName: "mobile" }] : /* istanbul ignore next */ []));
14606
14744
  returnFocus = null;
14607
14745
  brand = input('GOODUI', ...(ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []));
14608
14746
  brandLogoSrc = input('', ...(ngDevMode ? [{ debugName: "brandLogoSrc" }] : /* istanbul ignore next */ []));
@@ -14611,9 +14749,6 @@ class GoodAppLayoutComponent {
14611
14749
  brandMarkDarkSrc = input('', ...(ngDevMode ? [{ debugName: "brandMarkDarkSrc" }] : /* istanbul ignore next */ []));
14612
14750
  showBrandIcon = input(false, ...(ngDevMode ? [{ debugName: "showBrandIcon" }] : /* istanbul ignore next */ []));
14613
14751
  showMobileBrand = input(true, ...(ngDevMode ? [{ debugName: "showMobileBrand" }] : /* istanbul ignore next */ []));
14614
- sidebarSections = input([], ...(ngDevMode ? [{ debugName: "sidebarSections" }] : /* istanbul ignore next */ []));
14615
- topbarItems = input([], ...(ngDevMode ? [{ debugName: "topbarItems" }] : /* istanbul ignore next */ []));
14616
- mobileTopbarMenuMode = input('hidden', ...(ngDevMode ? [{ debugName: "mobileTopbarMenuMode" }] : /* istanbul ignore next */ []));
14617
14752
  user = input(null, ...(ngDevMode ? [{ debugName: "user" }] : /* istanbul ignore next */ []));
14618
14753
  notifications = input([], ...(ngDevMode ? [{ debugName: "notifications" }] : /* istanbul ignore next */ []));
14619
14754
  searchItems = input([], ...(ngDevMode ? [{ debugName: "searchItems" }] : /* istanbul ignore next */ []));
@@ -14621,88 +14756,112 @@ class GoodAppLayoutComponent {
14621
14756
  showThemeToggle = input(true, ...(ngDevMode ? [{ debugName: "showThemeToggle" }] : /* istanbul ignore next */ []));
14622
14757
  showSettings = input(false, ...(ngDevMode ? [{ debugName: "showSettings" }] : /* istanbul ignore next */ []));
14623
14758
  avatarActions = input([], ...(ngDevMode ? [{ debugName: "avatarActions" }] : /* istanbul ignore next */ []));
14624
- activeRoute = signal('/', ...(ngDevMode ? [{ debugName: "activeRoute" }] : /* istanbul ignore next */ []));
14625
14759
  constructor() {
14626
- this.activeRoute.set(this.router.url.split(/[?#]/)[0] || '/');
14627
- this.router.events.pipe(filter((event) => event instanceof NavigationEnd), takeUntilDestroyed())
14628
- .subscribe(event => {
14629
- this.activeRoute.set(event.urlAfterRedirects.split(/[?#]/)[0] || '/');
14630
- if (this.drawer()?.nativeElement.open)
14631
- this.closeDrawer();
14760
+ effect(() => {
14761
+ this.context.hasSidebar.set(!!this.sidebar());
14762
+ this.context.options.set({
14763
+ brand: this.brand(),
14764
+ brandLogoSrc: this.brandLogoSrc(),
14765
+ brandLogoDarkSrc: this.brandLogoDarkSrc(),
14766
+ brandMarkSrc: this.brandMarkSrc(),
14767
+ brandMarkDarkSrc: this.brandMarkDarkSrc(),
14768
+ showBrandIcon: this.showBrandIcon(),
14769
+ showMobileBrand: this.showMobileBrand(),
14770
+ user: this.user(),
14771
+ notifications: this.notifications(),
14772
+ searchItems: this.searchItems(),
14773
+ settingsActions: this.settingsActions(),
14774
+ showThemeToggle: this.showThemeToggle(),
14775
+ showSettings: this.showSettings(),
14776
+ avatarActions: this.avatarActions(),
14777
+ });
14778
+ });
14779
+ effect(() => {
14780
+ this.navigation.activeRoute();
14781
+ this.context.sidebarOpen.set(false);
14782
+ });
14783
+ effect(() => {
14784
+ const element = this.drawer()?.nativeElement;
14785
+ if (!element)
14786
+ return;
14787
+ if (!this.mobile()) {
14788
+ this.context.sidebarOpen.set(false);
14789
+ if (element.matches(':modal'))
14790
+ element.close();
14791
+ if (!element.open)
14792
+ element.open = true;
14793
+ }
14794
+ else if (this.context.sidebarOpen() && this.sidebar()) {
14795
+ if (!element.open) {
14796
+ this.returnFocus = this.document.activeElement;
14797
+ element.showModal();
14798
+ }
14799
+ }
14800
+ else if (element.open)
14801
+ element.close();
14802
+ });
14803
+ afterNextRender(() => {
14804
+ const query = this.document.defaultView?.matchMedia('(max-width: 900px)');
14805
+ if (!query)
14806
+ return;
14807
+ this.mobile.set(query.matches);
14808
+ const update = () => this.mobile.set(query.matches);
14809
+ query.addEventListener('change', update);
14810
+ this.destroyRef.onDestroy(() => query.removeEventListener('change', update));
14632
14811
  });
14633
14812
  }
14634
- openDrawer() {
14635
- this.returnFocus = document.activeElement;
14636
- this.drawer().nativeElement.showModal();
14637
- }
14638
- closeDrawer() { this.drawer().nativeElement.close(); }
14813
+ openDrawer() { this.context.sidebarOpen.set(true); }
14814
+ closeDrawer() { this.context.sidebarOpen.set(false); }
14639
14815
  onBackdropClick(event) {
14640
- if (event.target === this.drawer().nativeElement)
14816
+ if (this.mobile() && event.target === this.drawer().nativeElement)
14641
14817
  this.closeDrawer();
14642
14818
  }
14643
- onDrawerClose() { this.returnFocus?.focus(); }
14644
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodAppLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14645
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodAppLayoutComponent, isStandalone: true, selector: "good-app-layout", inputs: { brand: { classPropertyName: "brand", publicName: "brand", isSignal: true, isRequired: false, transformFunction: null }, brandLogoSrc: { classPropertyName: "brandLogoSrc", publicName: "brandLogoSrc", isSignal: true, isRequired: false, transformFunction: null }, brandLogoDarkSrc: { classPropertyName: "brandLogoDarkSrc", publicName: "brandLogoDarkSrc", isSignal: true, isRequired: false, transformFunction: null }, brandMarkSrc: { classPropertyName: "brandMarkSrc", publicName: "brandMarkSrc", isSignal: true, isRequired: false, transformFunction: null }, brandMarkDarkSrc: { classPropertyName: "brandMarkDarkSrc", publicName: "brandMarkDarkSrc", isSignal: true, isRequired: false, transformFunction: null }, showBrandIcon: { classPropertyName: "showBrandIcon", publicName: "showBrandIcon", isSignal: true, isRequired: false, transformFunction: null }, showMobileBrand: { classPropertyName: "showMobileBrand", publicName: "showMobileBrand", isSignal: true, isRequired: false, transformFunction: null }, sidebarSections: { classPropertyName: "sidebarSections", publicName: "sidebarSections", isSignal: true, isRequired: false, transformFunction: null }, topbarItems: { classPropertyName: "topbarItems", publicName: "topbarItems", isSignal: true, isRequired: false, transformFunction: null }, mobileTopbarMenuMode: { classPropertyName: "mobileTopbarMenuMode", publicName: "mobileTopbarMenuMode", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: false, transformFunction: null }, notifications: { classPropertyName: "notifications", publicName: "notifications", isSignal: true, isRequired: false, transformFunction: null }, searchItems: { classPropertyName: "searchItems", publicName: "searchItems", isSignal: true, isRequired: false, transformFunction: null }, settingsActions: { classPropertyName: "settingsActions", publicName: "settingsActions", isSignal: true, isRequired: false, transformFunction: null }, showThemeToggle: { classPropertyName: "showThemeToggle", publicName: "showThemeToggle", isSignal: true, isRequired: false, transformFunction: null }, showSettings: { classPropertyName: "showSettings", publicName: "showSettings", isSignal: true, isRequired: false, transformFunction: null }, avatarActions: { classPropertyName: "avatarActions", publicName: "avatarActions", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-app-layout" }, viewQueries: [{ propertyName: "drawer", first: true, predicate: ["drawer"], descendants: true, isSignal: true }], ngImport: i0, template: `
14646
- <good-sidebar-container class="good-desktop-sidebar" [brand]="brand()" [brandLogoSrc]="brandLogoSrc()" [brandLogoDarkSrc]="brandLogoDarkSrc()" [sections]="sidebarSections()" [activeRoute]="activeRoute()" />
14819
+ onDrawerClose() {
14820
+ if (!this.mobile() || this.drawer()?.nativeElement.open)
14821
+ return;
14822
+ this.context.sidebarOpen.set(false);
14823
+ this.returnFocus?.focus();
14824
+ }
14825
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodAppShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14826
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.25", type: GoodAppShellComponent, isStandalone: true, selector: "good-app-shell", inputs: { brand: { classPropertyName: "brand", publicName: "brand", isSignal: true, isRequired: false, transformFunction: null }, brandLogoSrc: { classPropertyName: "brandLogoSrc", publicName: "brandLogoSrc", isSignal: true, isRequired: false, transformFunction: null }, brandLogoDarkSrc: { classPropertyName: "brandLogoDarkSrc", publicName: "brandLogoDarkSrc", isSignal: true, isRequired: false, transformFunction: null }, brandMarkSrc: { classPropertyName: "brandMarkSrc", publicName: "brandMarkSrc", isSignal: true, isRequired: false, transformFunction: null }, brandMarkDarkSrc: { classPropertyName: "brandMarkDarkSrc", publicName: "brandMarkDarkSrc", isSignal: true, isRequired: false, transformFunction: null }, showBrandIcon: { classPropertyName: "showBrandIcon", publicName: "showBrandIcon", isSignal: true, isRequired: false, transformFunction: null }, showMobileBrand: { classPropertyName: "showMobileBrand", publicName: "showMobileBrand", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: false, transformFunction: null }, notifications: { classPropertyName: "notifications", publicName: "notifications", isSignal: true, isRequired: false, transformFunction: null }, searchItems: { classPropertyName: "searchItems", publicName: "searchItems", isSignal: true, isRequired: false, transformFunction: null }, settingsActions: { classPropertyName: "settingsActions", publicName: "settingsActions", isSignal: true, isRequired: false, transformFunction: null }, showThemeToggle: { classPropertyName: "showThemeToggle", publicName: "showThemeToggle", isSignal: true, isRequired: false, transformFunction: null }, showSettings: { classPropertyName: "showSettings", publicName: "showSettings", isSignal: true, isRequired: false, transformFunction: null }, avatarActions: { classPropertyName: "avatarActions", publicName: "avatarActions", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.good-shell-without-sidebar": "!sidebar()" }, classAttribute: "good-app-shell" }, providers: [GoodShellContext], queries: [{ propertyName: "sidebar", first: true, predicate: GoodSidebarComponent, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "drawer", first: true, predicate: ["drawer"], descendants: true, isSignal: true }], ngImport: i0, template: `
14827
+ <dialog #drawer open class="good-shell-sidebar" [attr.role]="mobile() ? 'dialog' : 'presentation'"
14828
+ [attr.aria-label]="mobile() ? 'Navigation' : null" (click)="onBackdropClick($event)" (close)="onDrawerClose()">
14829
+ <ng-content select="good-sidebar" />
14830
+ <button type="button" class="good-drawer-close" aria-label="Close sidebar" (click)="closeDrawer()">Close</button>
14831
+ </dialog>
14647
14832
  <div class="good-app-main">
14648
- <good-topbar [brand]="brand()" [brandLogoSrc]="brandLogoSrc()" [brandLogoDarkSrc]="brandLogoDarkSrc()" [brandMarkSrc]="brandMarkSrc()" [brandMarkDarkSrc]="brandMarkDarkSrc()" [showBrandIcon]="showBrandIcon()" [showMobileBrand]="showMobileBrand()" [items]="topbarItems()" [activeRoute]="activeRoute()" [mobileMenuMode]="mobileTopbarMenuMode()"
14649
- [user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()"
14650
- (menuToggle)="openDrawer()">
14651
- <ng-content select="good-header-actions" ngProjectAs="good-header-actions">
14652
- <good-header-actions [user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()" />
14653
- </ng-content>
14654
- </good-topbar>
14833
+ <ng-content select="good-app-header" />
14655
14834
  <div class="good-app-page"><ng-content /></div>
14656
14835
  </div>
14657
- <dialog #drawer class="good-sidebar-drawer" aria-label="Navigation" (click)="onBackdropClick($event)" (close)="onDrawerClose()">
14658
- <good-sidebar-container [brand]="brand()" [brandLogoSrc]="brandLogoSrc()" [brandLogoDarkSrc]="brandLogoDarkSrc()" [sections]="sidebarSections()" [activeRoute]="activeRoute()" />
14659
- @if (topbarItems().length && mobileTopbarMenuMode() === 'hidden') {
14660
- <nav class="good-drawer-topbar-nav" aria-label="More navigation">
14661
- <strong>Menu</strong><good-topbar-menu-container [items]="topbarItems()" [activeRoute]="activeRoute()" />
14662
- </nav>
14663
- }
14664
- <button type="button" class="good-drawer-close" aria-label="Close sidebar" (click)="closeDrawer()">Close</button>
14665
- </dialog>
14666
14836
  <good-notification-host />
14667
- `, isInline: true, dependencies: [{ kind: "component", type: GoodHeaderActionsComponent, selector: "good-header-actions", inputs: ["user", "notifications", "searchItems", "settingsActions", "avatarActions", "showSearch", "showNotifications", "showThemeToggle", "showSettings", "showAvatar"] }, { kind: "component", type: GoodSidebarContainerComponent, selector: "good-sidebar-container", inputs: ["brand", "brandLogoSrc", "brandLogoDarkSrc", "sections", "activeRoute"] }, { kind: "component", type: GoodTopbarComponent, selector: "good-topbar", inputs: ["brand", "brandLogoSrc", "brandLogoDarkSrc", "brandMarkSrc", "brandMarkDarkSrc", "showBrandIcon", "showMobileBrand", "items", "activeRoute", "mobileMenuMode", "user", "notifications", "searchItems", "settingsActions", "showThemeToggle", "showSettings", "avatarActions"], outputs: ["menuToggle"] }, { kind: "component", type: GoodTopbarMenuContainerComponent, selector: "good-topbar-menu-container", inputs: ["items", "activeRoute", "mobileMode"] }, { kind: "component", type: GoodNotificationHostComponent, selector: "good-notification-host" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
14837
+ `, isInline: true, dependencies: [{ kind: "component", type: GoodNotificationHostComponent, selector: "good-notification-host" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
14668
14838
  }
14669
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodAppLayoutComponent, decorators: [{
14839
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodAppShellComponent, decorators: [{
14670
14840
  type: Component,
14671
14841
  args: [{
14672
- selector: 'good-app-layout',
14673
- standalone: true,
14674
- imports: [GoodHeaderActionsComponent, GoodSidebarContainerComponent, GoodTopbarComponent, GoodTopbarMenuContainerComponent, GoodMainViewComponent, GoodNotificationHostComponent],
14842
+ selector: 'good-app-shell', standalone: true,
14843
+ imports: [GoodNotificationHostComponent],
14844
+ providers: [GoodShellContext],
14675
14845
  changeDetection: ChangeDetectionStrategy.OnPush,
14676
14846
  template: `
14677
- <good-sidebar-container class="good-desktop-sidebar" [brand]="brand()" [brandLogoSrc]="brandLogoSrc()" [brandLogoDarkSrc]="brandLogoDarkSrc()" [sections]="sidebarSections()" [activeRoute]="activeRoute()" />
14847
+ <dialog #drawer open class="good-shell-sidebar" [attr.role]="mobile() ? 'dialog' : 'presentation'"
14848
+ [attr.aria-label]="mobile() ? 'Navigation' : null" (click)="onBackdropClick($event)" (close)="onDrawerClose()">
14849
+ <ng-content select="good-sidebar" />
14850
+ <button type="button" class="good-drawer-close" aria-label="Close sidebar" (click)="closeDrawer()">Close</button>
14851
+ </dialog>
14678
14852
  <div class="good-app-main">
14679
- <good-topbar [brand]="brand()" [brandLogoSrc]="brandLogoSrc()" [brandLogoDarkSrc]="brandLogoDarkSrc()" [brandMarkSrc]="brandMarkSrc()" [brandMarkDarkSrc]="brandMarkDarkSrc()" [showBrandIcon]="showBrandIcon()" [showMobileBrand]="showMobileBrand()" [items]="topbarItems()" [activeRoute]="activeRoute()" [mobileMenuMode]="mobileTopbarMenuMode()"
14680
- [user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()"
14681
- (menuToggle)="openDrawer()">
14682
- <ng-content select="good-header-actions" ngProjectAs="good-header-actions">
14683
- <good-header-actions [user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()" />
14684
- </ng-content>
14685
- </good-topbar>
14853
+ <ng-content select="good-app-header" />
14686
14854
  <div class="good-app-page"><ng-content /></div>
14687
14855
  </div>
14688
- <dialog #drawer class="good-sidebar-drawer" aria-label="Navigation" (click)="onBackdropClick($event)" (close)="onDrawerClose()">
14689
- <good-sidebar-container [brand]="brand()" [brandLogoSrc]="brandLogoSrc()" [brandLogoDarkSrc]="brandLogoDarkSrc()" [sections]="sidebarSections()" [activeRoute]="activeRoute()" />
14690
- @if (topbarItems().length && mobileTopbarMenuMode() === 'hidden') {
14691
- <nav class="good-drawer-topbar-nav" aria-label="More navigation">
14692
- <strong>Menu</strong><good-topbar-menu-container [items]="topbarItems()" [activeRoute]="activeRoute()" />
14693
- </nav>
14694
- }
14695
- <button type="button" class="good-drawer-close" aria-label="Close sidebar" (click)="closeDrawer()">Close</button>
14696
- </dialog>
14697
14856
  <good-notification-host />
14698
14857
  `,
14699
- host: { class: 'good-app-layout' },
14858
+ host: { class: 'good-app-shell', '[class.good-shell-without-sidebar]': '!sidebar()' },
14700
14859
  }]
14701
- }], ctorParameters: () => [], propDecorators: { drawer: [{ type: i0.ViewChild, args: ['drawer', { isSignal: true }] }], brand: [{ type: i0.Input, args: [{ isSignal: true, alias: "brand", required: false }] }], brandLogoSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoSrc", required: false }] }], brandLogoDarkSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoDarkSrc", required: false }] }], brandMarkSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandMarkSrc", required: false }] }], brandMarkDarkSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandMarkDarkSrc", required: false }] }], showBrandIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBrandIcon", required: false }] }], showMobileBrand: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMobileBrand", required: false }] }], sidebarSections: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarSections", required: false }] }], topbarItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "topbarItems", required: false }] }], mobileTopbarMenuMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobileTopbarMenuMode", required: false }] }], user: [{ type: i0.Input, args: [{ isSignal: true, alias: "user", required: false }] }], notifications: [{ type: i0.Input, args: [{ isSignal: true, alias: "notifications", required: false }] }], searchItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchItems", required: false }] }], settingsActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "settingsActions", required: false }] }], showThemeToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showThemeToggle", required: false }] }], showSettings: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSettings", required: false }] }], avatarActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarActions", required: false }] }] } });
14860
+ }], ctorParameters: () => [], propDecorators: { sidebar: [{ type: i0.ContentChild, args: [i0.forwardRef(() => GoodSidebarComponent), { isSignal: true }] }], drawer: [{ type: i0.ViewChild, args: ['drawer', { isSignal: true }] }], brand: [{ type: i0.Input, args: [{ isSignal: true, alias: "brand", required: false }] }], brandLogoSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoSrc", required: false }] }], brandLogoDarkSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLogoDarkSrc", required: false }] }], brandMarkSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandMarkSrc", required: false }] }], brandMarkDarkSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandMarkDarkSrc", required: false }] }], showBrandIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBrandIcon", required: false }] }], showMobileBrand: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMobileBrand", required: false }] }], user: [{ type: i0.Input, args: [{ isSignal: true, alias: "user", required: false }] }], notifications: [{ type: i0.Input, args: [{ isSignal: true, alias: "notifications", required: false }] }], searchItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchItems", required: false }] }], settingsActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "settingsActions", required: false }] }], showThemeToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showThemeToggle", required: false }] }], showSettings: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSettings", required: false }] }], avatarActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarActions", required: false }] }] } });
14702
14861
 
14703
14862
  /**
14704
14863
  * Generated bundle index. Do not edit.
14705
14864
  */
14706
14865
 
14707
- export { GOODUI_OPTIONS, GOOD_CALENDAR_DEFAULT_NON_WORKING_LABELS, GOOD_CALENDAR_DEFAULT_WORKING_HOURS, GOOD_CHART_DEFAULT_COLORS, GOOD_CLASSIC_COLORS, GOOD_COUNTRY_CODES, GOOD_FONT_OPTIONS, GOOD_MARKER_COLORS, GOOD_PROGRESS_COLORS, GoodActionBarComponent, GoodActionGroupComponent, GoodActionMenuComponent, GoodAlertComponent, GoodAppLayoutComponent, GoodAssistantBodyComponent, GoodAssistantFooterComponent, GoodAssistantHeaderComponent, GoodAssistantMainComponent, GoodAssistantMobileComponent, GoodAssistantPanelComponent, GoodAvatarMenuItemComponent, GoodBadgeComponent, GoodBarChartComponent, GoodBrandIconComponent, GoodBreadcrumbsComponent, GoodButtonComponent, GoodCalendarComponent, GoodCalendarService, GoodCardActionsDirective, GoodCardComponent, GoodCardFooterComponent, GoodCardHeaderComponent, GoodChartAxisComponent, GoodChartBarComponent, GoodChartHistogramComponent, GoodChartLineComponent, GoodChartScatterComponent, GoodCheckboxComponent, GoodCitationComponent, GoodCodeBlockComponent, GoodColorControlsComponent, GoodColorPickerComponent, GoodColumnComponent, GoodColumnsComponent, GoodDateInputComponent, GoodDetailListComponent, GoodDetailRowDirective, GoodDropdownComponent, GoodDropdownFooterDirective, GoodDropdownHeaderDirective, GoodErrorPageComponent, GoodErrorTextComponent, GoodExpandableComponent, GoodExpandableHeaderDirective, GoodEyebrowComponent, GoodFieldLabelComponent, GoodFormDirective, GoodFormFieldComponent, GoodFormRowComponent, GoodGroupComponent, GoodHeaderActionsComponent, GoodHeaderAvatarComponent, GoodHeaderNotificationComponent, GoodHeaderSearchComponent, GoodHeaderThemeToggleComponent, GoodHeadingComponent, GoodHeadingGroupComponent, GoodHintComponent, GoodHistogramComponent, GoodIconComponent, GoodImageInputComponent, GoodImagePreviewComponent, GoodInlineImageComponent, GoodInputComponent, GoodInputPhoneComponent, GoodLineChartComponent, GoodLinkComponent, GoodListboxComponent, GoodListboxItemDirective, GoodMainViewComponent, GoodMapColorScaleComponent, GoodMapOverlayComponent, GoodModalComponent, GoodModalFooterComponent, GoodModalHeaderComponent, GoodMonthCalendarComponent, GoodNotificationCenter, GoodNotificationHostComponent, GoodNumberInputComponent, GoodParagraphComponent, GoodPdfPreviewComponent, GoodPinInputComponent, GoodProgressComponent, GoodProseComponent, GoodRadioGroupComponent, GoodRangeSliderComponent, GoodRatingComponent, GoodResizableComponent, GoodResizablePaneComponent, GoodRichTextEditorComponent, GoodScatterChartComponent, GoodSectionComponent, GoodSelectComponent, GoodSelectCountryComponent, GoodSelectFontComponent, GoodSeparatorComponent, GoodSettingsComponent, GoodSidebarContainerComponent, GoodSidebarItemComponent, GoodSidebarMenuContainerComponent, GoodSidebarSubmenuGroupComponent, GoodSidebarSubmenuItemComponent, GoodSignaturePadComponent, GoodSparklineComponent, GoodStatusIconComponent, GoodSubheadingComponent, GoodSubnavComponent, GoodSummaryComponent, GoodSwitchComponent, GoodTabComponent, GoodTableCellDirective, GoodTableComponent, GoodTabsComponent, GoodTextareaComponent, GoodThemeService, GoodTimelineComponent, GoodTimelineSectionComponent, GoodTimelineStepComponent, GoodTopbarComponent, GoodTopbarDropdownItemComponent, GoodTopbarDropdownMenuComponent, GoodTopbarMenuContainerComponent, GoodTopbarMenuItemComponent, GoodTopbarSubmenuComponent, GoodWorldMapComponent, detectAvailableFonts, goodCalendarAddDays, goodCalendarDayKey, goodCalendarMoveEvent, goodCalendarNonWorkingPeriods, goodCalendarNormalizeEvent, goodCalendarResizeEvent, goodCalendarStartOfDay, goodCalendarStartOfWeek, goodFontFamilyCss, goodItemContainsRoute, goodPinAllowedCharacters, goodRouteActive, goodSignatureInkml, goodSignaturePath, goodSignatureSvg, goodSubnavItemContainsRoute, goodTopbarItemContainsRoute, provideGoodUI, resolveChartColor, resolveChartLines, resolveChartSeries, resolveHistogram, resolveScatterSeries };
14866
+ export { GOODUI_OPTIONS, GOOD_CALENDAR_DEFAULT_NON_WORKING_LABELS, GOOD_CALENDAR_DEFAULT_WORKING_HOURS, GOOD_CHART_DEFAULT_COLORS, GOOD_CLASSIC_COLORS, GOOD_COUNTRY_CODES, GOOD_FONT_OPTIONS, GOOD_MARKER_COLORS, GOOD_PROGRESS_COLORS, GoodActionBarComponent, GoodActionGroupComponent, GoodActionMenuComponent, GoodAlertComponent, GoodAppHeaderComponent, GoodAppShellComponent, GoodAssistantBodyComponent, GoodAssistantFooterComponent, GoodAssistantHeaderComponent, GoodAssistantMainComponent, GoodAssistantMobileComponent, GoodAssistantPanelComponent, GoodAvatarMenuItemComponent, GoodBadgeComponent, GoodBarChartComponent, GoodBrandIconComponent, GoodBreadcrumbsComponent, GoodButtonComponent, GoodCalendarComponent, GoodCalendarService, GoodCardActionsDirective, GoodCardComponent, GoodCardFooterComponent, GoodCardHeaderComponent, GoodChartAxisComponent, GoodChartBarComponent, GoodChartHistogramComponent, GoodChartLineComponent, GoodChartScatterComponent, GoodCheckboxComponent, GoodCitationComponent, GoodCodeBlockComponent, GoodColorControlsComponent, GoodColorPickerComponent, GoodColumnComponent, GoodColumnsComponent, GoodDateInputComponent, GoodDetailListComponent, GoodDetailRowDirective, GoodDropdownComponent, GoodDropdownFooterDirective, GoodDropdownHeaderDirective, GoodErrorPageComponent, GoodErrorTextComponent, GoodExpandableComponent, GoodExpandableHeaderDirective, GoodEyebrowComponent, GoodFieldLabelComponent, GoodFormDirective, GoodFormFieldComponent, GoodFormRowComponent, GoodGroupComponent, GoodHeaderActionsComponent, GoodHeaderAvatarComponent, GoodHeaderDropdownItemComponent, GoodHeaderDropdownMenuComponent, GoodHeaderMenuComponent, GoodHeaderMenuItemComponent, GoodHeaderNotificationComponent, GoodHeaderSearchComponent, GoodHeaderSubmenuComponent, GoodHeaderThemeToggleComponent, GoodHeading1Component, GoodHeading2Component, GoodHeading3Component, GoodHeading4Component, GoodHeading5Component, GoodHeading6Component, GoodHeading7Component, GoodHeadingGroupComponent, GoodHintComponent, GoodHistogramComponent, GoodIconComponent, GoodImageInputComponent, GoodImagePreviewComponent, GoodInlineImageComponent, GoodInputComponent, GoodInputPhoneComponent, GoodLineChartComponent, GoodLinkComponent, GoodListboxComponent, GoodListboxItemDirective, GoodMainViewComponent, GoodMapColorScaleComponent, GoodMapOverlayComponent, GoodModalComponent, GoodModalFooterComponent, GoodModalHeaderComponent, GoodMonthCalendarComponent, GoodNotificationCenter, GoodNotificationHostComponent, GoodNumberInputComponent, GoodParagraphComponent, GoodPdfPreviewComponent, GoodPinInputComponent, GoodProgressComponent, GoodProseComponent, GoodRadioGroupComponent, GoodRangeSliderComponent, GoodRatingComponent, GoodResizableComponent, GoodResizablePaneComponent, GoodRichTextEditorComponent, GoodScatterChartComponent, GoodSectionComponent, GoodSelectComponent, GoodSelectCountryComponent, GoodSelectFontComponent, GoodSeparatorComponent, GoodSettingsComponent, GoodSidebarComponent, GoodSidebarItemComponent, GoodSidebarMenuContainerComponent, GoodSidebarSubmenuGroupComponent, GoodSidebarSubmenuItemComponent, GoodSignaturePadComponent, GoodSparklineComponent, GoodStatusIconComponent, GoodSubnavComponent, GoodSummaryComponent, GoodSwitchComponent, GoodTabComponent, GoodTableCellDirective, GoodTableComponent, GoodTabsComponent, GoodTextareaComponent, GoodThemeService, GoodTimelineComponent, GoodTimelineSectionComponent, GoodTimelineStepComponent, GoodWorldMapComponent, detectAvailableFonts, goodCalendarAddDays, goodCalendarDayKey, goodCalendarMoveEvent, goodCalendarNonWorkingPeriods, goodCalendarNormalizeEvent, goodCalendarResizeEvent, goodCalendarStartOfDay, goodCalendarStartOfWeek, goodFontFamilyCss, goodItemContainsRoute, goodPinAllowedCharacters, goodRouteActive, goodSignatureInkml, goodSignaturePath, goodSignatureSvg, goodSubnavItemContainsRoute, goodTopbarItemContainsRoute, provideGoodUI, resolveChartColor, resolveChartLines, resolveChartSeries, resolveHistogram, resolveScatterSeries };
14708
14867
  //# sourceMappingURL=cloudfrogger-goodui.mjs.map