@cngx/ui 0.1.0-rc.5 → 0.1.0-rc.7

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 (79) hide show
  1. package/README.md +112 -0
  2. package/a11y/README.md +81 -0
  3. package/context-menu/README.md +98 -0
  4. package/data-grid-accordion/README.md +27 -0
  5. package/feedback/README.md +2 -0
  6. package/fesm2022/cngx-ui-a11y.mjs +320 -0
  7. package/fesm2022/cngx-ui-a11y.mjs.map +1 -0
  8. package/fesm2022/cngx-ui-accordion.mjs +19 -8
  9. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  10. package/fesm2022/cngx-ui-action-button.mjs +5 -2
  11. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  12. package/fesm2022/cngx-ui-breadcrumb.mjs +11 -6
  13. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
  14. package/fesm2022/cngx-ui-chart-panel.mjs +429 -0
  15. package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -0
  16. package/fesm2022/cngx-ui-collection.mjs +15 -6
  17. package/fesm2022/cngx-ui-collection.mjs.map +1 -1
  18. package/fesm2022/cngx-ui-command-palette.mjs +1005 -0
  19. package/fesm2022/cngx-ui-command-palette.mjs.map +1 -0
  20. package/fesm2022/cngx-ui-context-menu.mjs +742 -0
  21. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -0
  22. package/fesm2022/cngx-ui-data-grid-accordion.mjs +90 -20
  23. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
  24. package/fesm2022/cngx-ui-feedback.mjs +97 -106
  25. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  26. package/fesm2022/cngx-ui-layout.mjs +18 -9
  27. package/fesm2022/cngx-ui-layout.mjs.map +1 -1
  28. package/fesm2022/cngx-ui-mat-accordion.mjs +9 -9
  29. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
  30. package/fesm2022/cngx-ui-mat-tabs.mjs +64 -70
  31. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  32. package/fesm2022/cngx-ui-paginator.mjs +18 -8
  33. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  34. package/fesm2022/cngx-ui-sidenav.mjs +2 -2
  35. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  36. package/fesm2022/cngx-ui-skeleton.mjs +20 -7
  37. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  38. package/fesm2022/cngx-ui-speak.mjs +2 -2
  39. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  40. package/fesm2022/cngx-ui-stat-card.mjs +618 -0
  41. package/fesm2022/cngx-ui-stat-card.mjs.map +1 -0
  42. package/fesm2022/cngx-ui-stepper.mjs +38 -19
  43. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  44. package/fesm2022/cngx-ui-tabs.mjs +36 -19
  45. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  46. package/fesm2022/cngx-ui-timeline.mjs +495 -0
  47. package/fesm2022/cngx-ui-timeline.mjs.map +1 -0
  48. package/fesm2022/cngx-ui-toc.mjs +704 -0
  49. package/fesm2022/cngx-ui-toc.mjs.map +1 -0
  50. package/fesm2022/cngx-ui.mjs +2 -2
  51. package/fesm2022/cngx-ui.mjs.map +1 -1
  52. package/mat-accordion/README.md +1 -1
  53. package/mat-tabs/styles/mat-tabs.css +20 -17
  54. package/package.json +32 -1
  55. package/skeleton/README.md +2 -0
  56. package/stepper/README.md +2 -2
  57. package/timeline/README.md +350 -0
  58. package/toc/README.md +183 -0
  59. package/types/cngx-ui-a11y.d.ts +303 -0
  60. package/types/cngx-ui-accordion.d.ts +9 -4
  61. package/types/cngx-ui-action-button.d.ts +3 -0
  62. package/types/cngx-ui-breadcrumb.d.ts +5 -0
  63. package/types/cngx-ui-chart-panel.d.ts +278 -0
  64. package/types/cngx-ui-collection.d.ts +12 -3
  65. package/types/cngx-ui-command-palette.d.ts +451 -0
  66. package/types/cngx-ui-context-menu.d.ts +467 -0
  67. package/types/cngx-ui-data-grid-accordion.d.ts +72 -15
  68. package/types/cngx-ui-feedback.d.ts +71 -18
  69. package/types/cngx-ui-layout.d.ts +8 -3
  70. package/types/cngx-ui-mat-accordion.d.ts +3 -3
  71. package/types/cngx-ui-mat-tabs.d.ts +11 -9
  72. package/types/cngx-ui-paginator.d.ts +13 -3
  73. package/types/cngx-ui-skeleton.d.ts +13 -1
  74. package/types/cngx-ui-stat-card.d.ts +327 -0
  75. package/types/cngx-ui-stepper.d.ts +18 -4
  76. package/types/cngx-ui-tabs.d.ts +20 -4
  77. package/types/cngx-ui-timeline.d.ts +479 -0
  78. package/types/cngx-ui-toc.d.ts +514 -0
  79. package/types/cngx-ui.d.ts +1 -1
@@ -464,7 +464,7 @@ class CngxSidenav {
464
464
  [attr.aria-valuemax]="maxWidthPx()"
465
465
  ></div>
466
466
  }
467
- `, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-sidenav-width{syntax: \"<length>\"; inherits: true; initial-value: 280px;}@property --cngx-sidenav-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-sidenav-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-sidenav-transition-duration{syntax: \"<time>\"; inherits: false; initial-value: .25s;}@property --cngx-sidenav-transition-easing{syntax: \"*\"; inherits: false; initial-value: ease;}@property --cngx-sidenav-mini-width{syntax: \"<length>\"; inherits: true; initial-value: 56px;}@property --cngx-sidenav-expanded-shadow{syntax: \"*\"; inherits: true; initial-value: 4px 0 12px oklch(0 0 0 / .1);}@property --cngx-sidenav-border-width{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-sidenav-border-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.89 0 0);}@property --cngx-sidenav-padding{syntax: \"<length>\"; inherits: true; initial-value: 16px;}@property --cngx-sidenav-header-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-sidenav-header-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-sidenav-footer-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-sidenav-footer-border-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.89 0 0);}@property --cngx-sidenav-footer-font-size{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-sidenav-resize-handle-width{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-sidenav-resize-handle-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.66 .19 50);}@property --cngx-sidenav-backdrop-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0);}@property --cngx-sidenav-backdrop-opacity{syntax: \"<number>\"; inherits: false; initial-value: .5;}@property --cngx-nav-link-padding{syntax: \"*\"; inherits: true; initial-value: 10px 16px;}@property --cngx-nav-link-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-nav-link-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-nav-link-radius{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-nav-link-hover-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-nav-link-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .04);}@property --cngx-nav-link-active-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-nav-link-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .08);}@property --cngx-nav-link-active-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-nav-link-focus-outline-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-nav-link-focus-outline-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-nav-link-focus-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: -2px;}@property --cngx-nav-link-initial-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}:root{--cngx-sidenav-bg: var(--cngx-color-surface, oklch(.97 .005 250));--cngx-sidenav-border-color: var(--cngx-color-border, oklch(.89 0 0));--cngx-sidenav-footer-border-color: var(--cngx-color-border, oklch(.89 0 0));--cngx-sidenav-expanded-shadow: 4px 0 12px oklch(0 0 0 / .1);--cngx-nav-link-hover-bg: oklch(0 0 0 / .04);--cngx-nav-link-active-bg: oklch(0 0 0 / .08);--cngx-nav-link-focus-outline-color: var(--cngx-color-primary, oklch(.66 .19 50))}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-sidenav-expanded-shadow: 4px 0 12px oklch(0 0 0 / .45);--cngx-nav-link-hover-bg: oklch(1 0 0 / .06);--cngx-nav-link-active-bg: oklch(1 0 0 / .1)}}:root[data-color-scheme=dark],:root.dark{--cngx-sidenav-expanded-shadow: 4px 0 12px oklch(0 0 0 / .45);--cngx-nav-link-hover-bg: oklch(1 0 0 / .06);--cngx-nav-link-active-bg: oklch(1 0 0 / .1)}:root[data-color-scheme=light],:root.light{--cngx-sidenav-expanded-shadow: 4px 0 12px oklch(0 0 0 / .1);--cngx-nav-link-hover-bg: oklch(0 0 0 / .04);--cngx-nav-link-active-bg: oklch(0 0 0 / .08)}}@layer cngx.components{cngx-sidenav{--cngx-sidenav-padding: var(--cngx-space-md);--cngx-nav-link-padding: var(--cngx-space-sm) var(--cngx-space-md);display:flex;flex-direction:column;flex-shrink:0;overflow:hidden;z-index:2;width:var(--cngx-sidenav-width, 280px);background:var(--cngx-sidenav-bg, oklch(.97 .005 250));color:var(--cngx-sidenav-color, inherit);transition:width var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),visibility 0s var(--cngx-sidenav-transition-duration, .25s)}cngx-sidenav:not(.cngx-sidenav--open):not(.cngx-sidenav--side):not(.cngx-sidenav--mini):not(.cngx-sidenav--over){width:0;visibility:hidden}cngx-sidenav.cngx-sidenav--open{visibility:visible;transition:width var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),visibility 0s 0s}cngx-sidenav.cngx-sidenav--side.cngx-sidenav--open{visibility:visible}cngx-sidenav.cngx-sidenav--over{position:absolute;top:0;bottom:0;width:var(--cngx-sidenav-width, 280px);visibility:hidden;transition:transform var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),visibility 0s var(--cngx-sidenav-transition-duration, .25s)}cngx-sidenav.cngx-sidenav--over.cngx-sidenav--start{left:0;transform:translate(-100%)}cngx-sidenav.cngx-sidenav--over.cngx-sidenav--end{right:0;transform:translate(100%)}cngx-sidenav.cngx-sidenav--over.cngx-sidenav--open{transform:translate(0);visibility:visible;transition:transform var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),visibility 0s 0s}cngx-sidenav.cngx-sidenav--push,cngx-sidenav.cngx-sidenav--side,cngx-sidenav.cngx-sidenav--mini{position:relative}cngx-sidenav.cngx-sidenav--mini{width:var(--cngx-sidenav-mini-width, 56px);visibility:visible;transition:none}cngx-sidenav.cngx-sidenav--mini.cngx-sidenav--expanded{width:var(--cngx-sidenav-width, 280px);z-index:3;box-shadow:var(--cngx-sidenav-expanded-shadow, 4px 0 12px oklch(0 0 0 / .1));transition:width var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),margin var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease)}cngx-sidenav.cngx-sidenav--mini.cngx-sidenav--expanded.cngx-sidenav--start{margin-right:calc(var(--cngx-sidenav-mini-width, 56px) - var(--cngx-sidenav-width, 280px))}cngx-sidenav.cngx-sidenav--mini.cngx-sidenav--expanded.cngx-sidenav--end{margin-left:calc(var(--cngx-sidenav-mini-width, 56px) - var(--cngx-sidenav-width, 280px))}cngx-sidenav.cngx-sidenav--start{border-right:var(--cngx-sidenav-border-width, 1px) solid var(--cngx-sidenav-border-color, var(--cngx-color-border, oklch(.89 0 0)))}cngx-sidenav.cngx-sidenav--end{border-left:var(--cngx-sidenav-border-width, 1px) solid var(--cngx-sidenav-border-color, var(--cngx-color-border, oklch(.89 0 0)));order:2}.cngx-sidenav__body{flex:1;overflow-y:auto;overflow-x:hidden;min-width:var(--cngx-sidenav-width, 280px);scrollbar-gutter:stable}.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-sidenav__body{min-width:var(--cngx-sidenav-mini-width, 56px)}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-sidenav-header,cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-sidenav-footer{overflow:hidden;white-space:nowrap;text-overflow:clip;text-align:center;padding:8px 4px}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) [cngxNavLabel],cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) [cngxNavGroup]{display:none!important}.cngx-sidenav-header{flex-shrink:0;padding:var(--cngx-sidenav-padding, 16px);background:var(--cngx-sidenav-header-bg, transparent);border-bottom:1px solid var(--cngx-sidenav-border-color, var(--cngx-color-border, oklch(.89 0 0)));font-weight:600;font-size:var(--cngx-sidenav-header-font-size, .875rem)}.cngx-sidenav-footer{flex-shrink:0;margin-top:auto;padding:var(--cngx-sidenav-padding, 16px);background:var(--cngx-sidenav-footer-bg, transparent);border-top:1px solid var( --cngx-sidenav-footer-border-color, var(--cngx-sidenav-border-color, var(--cngx-color-border, oklch(.89 0 0))) );font-size:var(--cngx-sidenav-footer-font-size, .75rem);opacity:.7}cngx-sidenav .cngx-nav-link{display:block;padding:var(--cngx-nav-link-padding, 10px 16px);text-decoration:none;font-size:var(--cngx-nav-link-font-size, .875rem);color:var(--cngx-nav-link-color, currentColor);border-radius:var(--cngx-nav-link-radius, 4px);transition:background .15s,color .15s}cngx-sidenav .cngx-nav-link:hover{color:var(--cngx-nav-link-hover-color, currentColor);background:var(--cngx-nav-link-hover-bg, oklch(0 0 0 / .04))}cngx-sidenav .cngx-nav-link--active{color:var(--cngx-nav-link-active-color, currentColor);background:var(--cngx-nav-link-active-bg, oklch(0 0 0 / .08));font-weight:var(--cngx-nav-link-active-font-weight, 600)}cngx-sidenav .cngx-nav-link:focus-visible{outline:var(--cngx-nav-link-focus-outline-width, 2px) solid var(--cngx-nav-link-focus-outline-color, oklch(.66 .19 50));outline-offset:var(--cngx-nav-link-focus-outline-offset, -2px)}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-nav-link{overflow:hidden;text-align:center;font-size:0!important;line-height:1;padding:var(--cngx-nav-link-padding, 10px 8px)}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-nav-link[data-initial]:before{content:attr(data-initial);font-size:var(--cngx-nav-link-initial-size, .875rem);font-weight:600;display:inline-block;width:var(--cngx-nav-link-initial-size, .875rem);text-align:center;line-height:1.6}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) [cngxNavBadge]{display:none}.cngx-nav-group-content{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--cngx-sidenav-transition-duration, .2s) ease}.cngx-nav-group-content>*{overflow:hidden;min-height:0}.cngx-nav-group-content--open{grid-template-rows:1fr}.cngx-sidenav__resize-handle{position:absolute;top:0;bottom:0;width:var(--cngx-sidenav-resize-handle-width, 4px);cursor:col-resize;z-index:4;background:transparent;transition:background .15s;touch-action:none}.cngx-sidenav--start .cngx-sidenav__resize-handle{right:0;transform:translate(50%)}.cngx-sidenav--end .cngx-sidenav__resize-handle{left:0;transform:translate(-50%)}.cngx-sidenav__resize-handle:hover,.cngx-sidenav--resizing .cngx-sidenav__resize-handle{background:var( --cngx-sidenav-resize-handle-color, var(--cngx-color-primary, oklch(.66 .19 50)) )}cngx-sidenav.cngx-sidenav--resizing{transition:none!important;-webkit-user-select:none;user-select:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
467
+ `, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-sidenav-width{syntax: \"<length>\"; inherits: true; initial-value: 280px;}@property --cngx-sidenav-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-sidenav-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-sidenav-transition-duration{syntax: \"<time>\"; inherits: false; initial-value: .25s;}@property --cngx-sidenav-transition-easing{syntax: \"*\"; inherits: false; initial-value: ease;}@property --cngx-sidenav-mini-width{syntax: \"<length>\"; inherits: true; initial-value: 56px;}@property --cngx-sidenav-expanded-shadow{syntax: \"*\"; inherits: true; initial-value: 4px 0 12px oklch(0 0 0 / .1);}@property --cngx-sidenav-border-width{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-sidenav-border-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.89 0 0);}@property --cngx-sidenav-padding{syntax: \"<length>\"; inherits: true; initial-value: 16px;}@property --cngx-sidenav-header-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-sidenav-header-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-sidenav-footer-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-sidenav-footer-border-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.89 0 0);}@property --cngx-sidenav-footer-font-size{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-sidenav-resize-handle-width{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-sidenav-resize-handle-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.66 .19 50);}@property --cngx-sidenav-backdrop-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0);}@property --cngx-sidenav-backdrop-opacity{syntax: \"<number>\"; inherits: false; initial-value: .5;}@property --cngx-nav-link-padding{syntax: \"*\"; inherits: true; initial-value: 10px 16px;}@property --cngx-nav-link-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-nav-link-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-nav-link-radius{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-nav-link-hover-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-nav-link-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .04);}@property --cngx-nav-link-active-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-nav-link-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .08);}@property --cngx-nav-link-active-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-nav-link-focus-outline-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-nav-link-focus-outline-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-nav-link-focus-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: -2px;}@property --cngx-nav-link-initial-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}:root{--cngx-sidenav-bg: var(--cngx-color-surface, oklch(.97 .005 250));--cngx-sidenav-border-color: var(--cngx-color-border, oklch(.89 0 0));--cngx-sidenav-footer-border-color: var(--cngx-color-border, oklch(.89 0 0));--cngx-sidenav-expanded-shadow: 4px 0 12px oklch(0 0 0 / .1);--cngx-nav-link-hover-bg: oklch(0 0 0 / .04);--cngx-nav-link-active-bg: oklch(0 0 0 / .08);--cngx-nav-link-focus-outline-color: var(--cngx-color-primary, oklch(.66 .19 50))}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-sidenav-expanded-shadow: 4px 0 12px oklch(0 0 0 / .45);--cngx-nav-link-hover-bg: oklch(1 0 0 / .06);--cngx-nav-link-active-bg: oklch(1 0 0 / .1)}}:root[data-color-scheme=dark],:root.dark{--cngx-sidenav-expanded-shadow: 4px 0 12px oklch(0 0 0 / .45);--cngx-nav-link-hover-bg: oklch(1 0 0 / .06);--cngx-nav-link-active-bg: oklch(1 0 0 / .1)}:root[data-color-scheme=light],:root.light{--cngx-sidenav-expanded-shadow: 4px 0 12px oklch(0 0 0 / .1);--cngx-nav-link-hover-bg: oklch(0 0 0 / .04);--cngx-nav-link-active-bg: oklch(0 0 0 / .08)}}@layer cngx.components{cngx-sidenav{--cngx-sidenav-padding: var(--cngx-space-md);--cngx-nav-link-padding: var(--cngx-space-sm) var(--cngx-space-md);display:flex;flex-direction:column;flex-shrink:0;overflow:hidden;z-index:2;width:var(--cngx-sidenav-width, 280px);background:var(--cngx-sidenav-bg, oklch(.97 .005 250));color:var(--cngx-sidenav-color, inherit);transition:width var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),visibility 0s var(--cngx-sidenav-transition-duration, .25s)}cngx-sidenav:not(.cngx-sidenav--open):not(.cngx-sidenav--side):not(.cngx-sidenav--mini):not(.cngx-sidenav--over){width:0;visibility:hidden}cngx-sidenav.cngx-sidenav--open{visibility:visible;transition:width var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),visibility 0s 0s}cngx-sidenav.cngx-sidenav--side.cngx-sidenav--open{visibility:visible}cngx-sidenav.cngx-sidenav--over{position:absolute;top:0;bottom:0;width:var(--cngx-sidenav-width, 280px);visibility:hidden;transition:transform var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),visibility 0s var(--cngx-sidenav-transition-duration, .25s)}cngx-sidenav.cngx-sidenav--over.cngx-sidenav--start{inset-inline-start:0;transform:translate(-100%)}cngx-sidenav.cngx-sidenav--over.cngx-sidenav--end{inset-inline-end:0;transform:translate(100%)}cngx-sidenav.cngx-sidenav--over.cngx-sidenav--start:not(.cngx-sidenav--open):dir(rtl){transform:translate(100%)}cngx-sidenav.cngx-sidenav--over.cngx-sidenav--end:not(.cngx-sidenav--open):dir(rtl){transform:translate(-100%)}cngx-sidenav.cngx-sidenav--over.cngx-sidenav--open{transform:translate(0);visibility:visible;transition:transform var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),visibility 0s 0s}cngx-sidenav.cngx-sidenav--push,cngx-sidenav.cngx-sidenav--side,cngx-sidenav.cngx-sidenav--mini{position:relative}cngx-sidenav.cngx-sidenav--mini{width:var(--cngx-sidenav-mini-width, 56px);visibility:visible;transition:none}cngx-sidenav.cngx-sidenav--mini.cngx-sidenav--expanded{width:var(--cngx-sidenav-width, 280px);z-index:3;box-shadow:var(--cngx-sidenav-expanded-shadow, 4px 0 12px oklch(0 0 0 / .1));transition:width var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),margin var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease)}cngx-sidenav.cngx-sidenav--mini.cngx-sidenav--expanded.cngx-sidenav--start{margin-inline-end:calc(var(--cngx-sidenav-mini-width, 56px) - var(--cngx-sidenav-width, 280px))}cngx-sidenav.cngx-sidenav--mini.cngx-sidenav--expanded.cngx-sidenav--end{margin-inline-start:calc(var(--cngx-sidenav-mini-width, 56px) - var(--cngx-sidenav-width, 280px))}cngx-sidenav.cngx-sidenav--start{border-inline-end:var(--cngx-sidenav-border-width, 1px) solid var(--cngx-sidenav-border-color, var(--cngx-color-border, oklch(.89 0 0)))}cngx-sidenav.cngx-sidenav--end{border-inline-start:var(--cngx-sidenav-border-width, 1px) solid var(--cngx-sidenav-border-color, var(--cngx-color-border, oklch(.89 0 0)));order:2}.cngx-sidenav__body{flex:1;overflow-y:auto;overflow-x:hidden;min-width:var(--cngx-sidenav-width, 280px);scrollbar-gutter:stable}.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-sidenav__body{min-width:var(--cngx-sidenav-mini-width, 56px)}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-sidenav-header,cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-sidenav-footer{overflow:hidden;white-space:nowrap;text-overflow:clip;text-align:center;padding:8px 4px}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) [cngxNavLabel],cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) [cngxNavGroup]{display:none!important}.cngx-sidenav-header{flex-shrink:0;padding:var(--cngx-sidenav-padding, 16px);background:var(--cngx-sidenav-header-bg, transparent);border-bottom:1px solid var(--cngx-sidenav-border-color, var(--cngx-color-border, oklch(.89 0 0)));font-weight:600;font-size:var(--cngx-sidenav-header-font-size, .875rem)}.cngx-sidenav-footer{flex-shrink:0;margin-top:auto;padding:var(--cngx-sidenav-padding, 16px);background:var(--cngx-sidenav-footer-bg, transparent);border-top:1px solid var( --cngx-sidenav-footer-border-color, var(--cngx-sidenav-border-color, var(--cngx-color-border, oklch(.89 0 0))) );font-size:var(--cngx-sidenav-footer-font-size, .75rem);opacity:.7}cngx-sidenav .cngx-nav-link{display:block;padding:var(--cngx-nav-link-padding, 10px 16px);text-decoration:none;font-size:var(--cngx-nav-link-font-size, .875rem);color:var(--cngx-nav-link-color, currentColor);border-radius:var(--cngx-nav-link-radius, 4px);transition:background .15s,color .15s}cngx-sidenav .cngx-nav-link:hover{color:var(--cngx-nav-link-hover-color, currentColor);background:var(--cngx-nav-link-hover-bg, oklch(0 0 0 / .04))}cngx-sidenav .cngx-nav-link--active{color:var(--cngx-nav-link-active-color, currentColor);background:var(--cngx-nav-link-active-bg, oklch(0 0 0 / .08));font-weight:var(--cngx-nav-link-active-font-weight, 600)}cngx-sidenav .cngx-nav-link:focus-visible{outline:var(--cngx-nav-link-focus-outline-width, 2px) solid var(--cngx-nav-link-focus-outline-color, oklch(.66 .19 50));outline-offset:var(--cngx-nav-link-focus-outline-offset, -2px)}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-nav-link{overflow:hidden;text-align:center;font-size:0!important;line-height:1;padding:var(--cngx-nav-link-padding, 10px 8px)}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-nav-link[data-initial]:before{content:attr(data-initial);font-size:var(--cngx-nav-link-initial-size, .875rem);font-weight:600;display:inline-block;width:var(--cngx-nav-link-initial-size, .875rem);text-align:center;line-height:1.6}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) [cngxNavBadge]{display:none}.cngx-nav-group-content{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--cngx-sidenav-transition-duration, .2s) ease}.cngx-nav-group-content>*{overflow:hidden;min-height:0}.cngx-nav-group-content--open{grid-template-rows:1fr}.cngx-sidenav__resize-handle{position:absolute;top:0;bottom:0;width:var(--cngx-sidenav-resize-handle-width, 4px);cursor:col-resize;z-index:4;background:transparent;transition:background .15s;touch-action:none}.cngx-sidenav--start .cngx-sidenav__resize-handle{inset-inline-end:0;transform:translate(50%)}.cngx-sidenav--end .cngx-sidenav__resize-handle{inset-inline-start:0;transform:translate(-50%)}.cngx-sidenav--start:dir(rtl) .cngx-sidenav__resize-handle{transform:translate(-50%)}.cngx-sidenav--end:dir(rtl) .cngx-sidenav__resize-handle{transform:translate(50%)}.cngx-sidenav__resize-handle:hover,.cngx-sidenav--resizing .cngx-sidenav__resize-handle{background:var( --cngx-sidenav-resize-handle-color, var(--cngx-color-primary, oklch(.66 .19 50)) )}cngx-sidenav.cngx-sidenav--resizing{transition:none!important;-webkit-user-select:none;user-select:none}}@media(forced-colors:active){cngx-sidenav .cngx-nav-link--active{forced-color-adjust:none;background:Highlight;color:HighlightText}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
468
468
  }
469
469
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxSidenav, decorators: [{
470
470
  type: Component,
@@ -512,7 +512,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
512
512
  [attr.aria-valuemax]="maxWidthPx()"
513
513
  ></div>
514
514
  }
515
- `, styles: ["@layer cngx.tokens{@property --cngx-sidenav-width{syntax: \"<length>\"; inherits: true; initial-value: 280px;}@property --cngx-sidenav-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-sidenav-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-sidenav-transition-duration{syntax: \"<time>\"; inherits: false; initial-value: .25s;}@property --cngx-sidenav-transition-easing{syntax: \"*\"; inherits: false; initial-value: ease;}@property --cngx-sidenav-mini-width{syntax: \"<length>\"; inherits: true; initial-value: 56px;}@property --cngx-sidenav-expanded-shadow{syntax: \"*\"; inherits: true; initial-value: 4px 0 12px oklch(0 0 0 / .1);}@property --cngx-sidenav-border-width{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-sidenav-border-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.89 0 0);}@property --cngx-sidenav-padding{syntax: \"<length>\"; inherits: true; initial-value: 16px;}@property --cngx-sidenav-header-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-sidenav-header-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-sidenav-footer-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-sidenav-footer-border-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.89 0 0);}@property --cngx-sidenav-footer-font-size{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-sidenav-resize-handle-width{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-sidenav-resize-handle-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.66 .19 50);}@property --cngx-sidenav-backdrop-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0);}@property --cngx-sidenav-backdrop-opacity{syntax: \"<number>\"; inherits: false; initial-value: .5;}@property --cngx-nav-link-padding{syntax: \"*\"; inherits: true; initial-value: 10px 16px;}@property --cngx-nav-link-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-nav-link-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-nav-link-radius{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-nav-link-hover-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-nav-link-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .04);}@property --cngx-nav-link-active-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-nav-link-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .08);}@property --cngx-nav-link-active-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-nav-link-focus-outline-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-nav-link-focus-outline-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-nav-link-focus-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: -2px;}@property --cngx-nav-link-initial-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}:root{--cngx-sidenav-bg: var(--cngx-color-surface, oklch(.97 .005 250));--cngx-sidenav-border-color: var(--cngx-color-border, oklch(.89 0 0));--cngx-sidenav-footer-border-color: var(--cngx-color-border, oklch(.89 0 0));--cngx-sidenav-expanded-shadow: 4px 0 12px oklch(0 0 0 / .1);--cngx-nav-link-hover-bg: oklch(0 0 0 / .04);--cngx-nav-link-active-bg: oklch(0 0 0 / .08);--cngx-nav-link-focus-outline-color: var(--cngx-color-primary, oklch(.66 .19 50))}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-sidenav-expanded-shadow: 4px 0 12px oklch(0 0 0 / .45);--cngx-nav-link-hover-bg: oklch(1 0 0 / .06);--cngx-nav-link-active-bg: oklch(1 0 0 / .1)}}:root[data-color-scheme=dark],:root.dark{--cngx-sidenav-expanded-shadow: 4px 0 12px oklch(0 0 0 / .45);--cngx-nav-link-hover-bg: oklch(1 0 0 / .06);--cngx-nav-link-active-bg: oklch(1 0 0 / .1)}:root[data-color-scheme=light],:root.light{--cngx-sidenav-expanded-shadow: 4px 0 12px oklch(0 0 0 / .1);--cngx-nav-link-hover-bg: oklch(0 0 0 / .04);--cngx-nav-link-active-bg: oklch(0 0 0 / .08)}}@layer cngx.components{cngx-sidenav{--cngx-sidenav-padding: var(--cngx-space-md);--cngx-nav-link-padding: var(--cngx-space-sm) var(--cngx-space-md);display:flex;flex-direction:column;flex-shrink:0;overflow:hidden;z-index:2;width:var(--cngx-sidenav-width, 280px);background:var(--cngx-sidenav-bg, oklch(.97 .005 250));color:var(--cngx-sidenav-color, inherit);transition:width var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),visibility 0s var(--cngx-sidenav-transition-duration, .25s)}cngx-sidenav:not(.cngx-sidenav--open):not(.cngx-sidenav--side):not(.cngx-sidenav--mini):not(.cngx-sidenav--over){width:0;visibility:hidden}cngx-sidenav.cngx-sidenav--open{visibility:visible;transition:width var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),visibility 0s 0s}cngx-sidenav.cngx-sidenav--side.cngx-sidenav--open{visibility:visible}cngx-sidenav.cngx-sidenav--over{position:absolute;top:0;bottom:0;width:var(--cngx-sidenav-width, 280px);visibility:hidden;transition:transform var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),visibility 0s var(--cngx-sidenav-transition-duration, .25s)}cngx-sidenav.cngx-sidenav--over.cngx-sidenav--start{left:0;transform:translate(-100%)}cngx-sidenav.cngx-sidenav--over.cngx-sidenav--end{right:0;transform:translate(100%)}cngx-sidenav.cngx-sidenav--over.cngx-sidenav--open{transform:translate(0);visibility:visible;transition:transform var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),visibility 0s 0s}cngx-sidenav.cngx-sidenav--push,cngx-sidenav.cngx-sidenav--side,cngx-sidenav.cngx-sidenav--mini{position:relative}cngx-sidenav.cngx-sidenav--mini{width:var(--cngx-sidenav-mini-width, 56px);visibility:visible;transition:none}cngx-sidenav.cngx-sidenav--mini.cngx-sidenav--expanded{width:var(--cngx-sidenav-width, 280px);z-index:3;box-shadow:var(--cngx-sidenav-expanded-shadow, 4px 0 12px oklch(0 0 0 / .1));transition:width var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),margin var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease)}cngx-sidenav.cngx-sidenav--mini.cngx-sidenav--expanded.cngx-sidenav--start{margin-right:calc(var(--cngx-sidenav-mini-width, 56px) - var(--cngx-sidenav-width, 280px))}cngx-sidenav.cngx-sidenav--mini.cngx-sidenav--expanded.cngx-sidenav--end{margin-left:calc(var(--cngx-sidenav-mini-width, 56px) - var(--cngx-sidenav-width, 280px))}cngx-sidenav.cngx-sidenav--start{border-right:var(--cngx-sidenav-border-width, 1px) solid var(--cngx-sidenav-border-color, var(--cngx-color-border, oklch(.89 0 0)))}cngx-sidenav.cngx-sidenav--end{border-left:var(--cngx-sidenav-border-width, 1px) solid var(--cngx-sidenav-border-color, var(--cngx-color-border, oklch(.89 0 0)));order:2}.cngx-sidenav__body{flex:1;overflow-y:auto;overflow-x:hidden;min-width:var(--cngx-sidenav-width, 280px);scrollbar-gutter:stable}.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-sidenav__body{min-width:var(--cngx-sidenav-mini-width, 56px)}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-sidenav-header,cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-sidenav-footer{overflow:hidden;white-space:nowrap;text-overflow:clip;text-align:center;padding:8px 4px}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) [cngxNavLabel],cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) [cngxNavGroup]{display:none!important}.cngx-sidenav-header{flex-shrink:0;padding:var(--cngx-sidenav-padding, 16px);background:var(--cngx-sidenav-header-bg, transparent);border-bottom:1px solid var(--cngx-sidenav-border-color, var(--cngx-color-border, oklch(.89 0 0)));font-weight:600;font-size:var(--cngx-sidenav-header-font-size, .875rem)}.cngx-sidenav-footer{flex-shrink:0;margin-top:auto;padding:var(--cngx-sidenav-padding, 16px);background:var(--cngx-sidenav-footer-bg, transparent);border-top:1px solid var( --cngx-sidenav-footer-border-color, var(--cngx-sidenav-border-color, var(--cngx-color-border, oklch(.89 0 0))) );font-size:var(--cngx-sidenav-footer-font-size, .75rem);opacity:.7}cngx-sidenav .cngx-nav-link{display:block;padding:var(--cngx-nav-link-padding, 10px 16px);text-decoration:none;font-size:var(--cngx-nav-link-font-size, .875rem);color:var(--cngx-nav-link-color, currentColor);border-radius:var(--cngx-nav-link-radius, 4px);transition:background .15s,color .15s}cngx-sidenav .cngx-nav-link:hover{color:var(--cngx-nav-link-hover-color, currentColor);background:var(--cngx-nav-link-hover-bg, oklch(0 0 0 / .04))}cngx-sidenav .cngx-nav-link--active{color:var(--cngx-nav-link-active-color, currentColor);background:var(--cngx-nav-link-active-bg, oklch(0 0 0 / .08));font-weight:var(--cngx-nav-link-active-font-weight, 600)}cngx-sidenav .cngx-nav-link:focus-visible{outline:var(--cngx-nav-link-focus-outline-width, 2px) solid var(--cngx-nav-link-focus-outline-color, oklch(.66 .19 50));outline-offset:var(--cngx-nav-link-focus-outline-offset, -2px)}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-nav-link{overflow:hidden;text-align:center;font-size:0!important;line-height:1;padding:var(--cngx-nav-link-padding, 10px 8px)}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-nav-link[data-initial]:before{content:attr(data-initial);font-size:var(--cngx-nav-link-initial-size, .875rem);font-weight:600;display:inline-block;width:var(--cngx-nav-link-initial-size, .875rem);text-align:center;line-height:1.6}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) [cngxNavBadge]{display:none}.cngx-nav-group-content{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--cngx-sidenav-transition-duration, .2s) ease}.cngx-nav-group-content>*{overflow:hidden;min-height:0}.cngx-nav-group-content--open{grid-template-rows:1fr}.cngx-sidenav__resize-handle{position:absolute;top:0;bottom:0;width:var(--cngx-sidenav-resize-handle-width, 4px);cursor:col-resize;z-index:4;background:transparent;transition:background .15s;touch-action:none}.cngx-sidenav--start .cngx-sidenav__resize-handle{right:0;transform:translate(50%)}.cngx-sidenav--end .cngx-sidenav__resize-handle{left:0;transform:translate(-50%)}.cngx-sidenav__resize-handle:hover,.cngx-sidenav--resizing .cngx-sidenav__resize-handle{background:var( --cngx-sidenav-resize-handle-color, var(--cngx-color-primary, oklch(.66 .19 50)) )}cngx-sidenav.cngx-sidenav--resizing{transition:none!important;-webkit-user-select:none;user-select:none}}\n"] }]
515
+ `, styles: ["@layer cngx.tokens{@property --cngx-sidenav-width{syntax: \"<length>\"; inherits: true; initial-value: 280px;}@property --cngx-sidenav-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-sidenav-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-sidenav-transition-duration{syntax: \"<time>\"; inherits: false; initial-value: .25s;}@property --cngx-sidenav-transition-easing{syntax: \"*\"; inherits: false; initial-value: ease;}@property --cngx-sidenav-mini-width{syntax: \"<length>\"; inherits: true; initial-value: 56px;}@property --cngx-sidenav-expanded-shadow{syntax: \"*\"; inherits: true; initial-value: 4px 0 12px oklch(0 0 0 / .1);}@property --cngx-sidenav-border-width{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-sidenav-border-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.89 0 0);}@property --cngx-sidenav-padding{syntax: \"<length>\"; inherits: true; initial-value: 16px;}@property --cngx-sidenav-header-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-sidenav-header-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-sidenav-footer-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-sidenav-footer-border-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.89 0 0);}@property --cngx-sidenav-footer-font-size{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-sidenav-resize-handle-width{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-sidenav-resize-handle-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.66 .19 50);}@property --cngx-sidenav-backdrop-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0);}@property --cngx-sidenav-backdrop-opacity{syntax: \"<number>\"; inherits: false; initial-value: .5;}@property --cngx-nav-link-padding{syntax: \"*\"; inherits: true; initial-value: 10px 16px;}@property --cngx-nav-link-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-nav-link-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-nav-link-radius{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-nav-link-hover-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-nav-link-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .04);}@property --cngx-nav-link-active-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-nav-link-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(0 0 0 / .08);}@property --cngx-nav-link-active-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-nav-link-focus-outline-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-nav-link-focus-outline-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-nav-link-focus-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: -2px;}@property --cngx-nav-link-initial-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}:root{--cngx-sidenav-bg: var(--cngx-color-surface, oklch(.97 .005 250));--cngx-sidenav-border-color: var(--cngx-color-border, oklch(.89 0 0));--cngx-sidenav-footer-border-color: var(--cngx-color-border, oklch(.89 0 0));--cngx-sidenav-expanded-shadow: 4px 0 12px oklch(0 0 0 / .1);--cngx-nav-link-hover-bg: oklch(0 0 0 / .04);--cngx-nav-link-active-bg: oklch(0 0 0 / .08);--cngx-nav-link-focus-outline-color: var(--cngx-color-primary, oklch(.66 .19 50))}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-sidenav-expanded-shadow: 4px 0 12px oklch(0 0 0 / .45);--cngx-nav-link-hover-bg: oklch(1 0 0 / .06);--cngx-nav-link-active-bg: oklch(1 0 0 / .1)}}:root[data-color-scheme=dark],:root.dark{--cngx-sidenav-expanded-shadow: 4px 0 12px oklch(0 0 0 / .45);--cngx-nav-link-hover-bg: oklch(1 0 0 / .06);--cngx-nav-link-active-bg: oklch(1 0 0 / .1)}:root[data-color-scheme=light],:root.light{--cngx-sidenav-expanded-shadow: 4px 0 12px oklch(0 0 0 / .1);--cngx-nav-link-hover-bg: oklch(0 0 0 / .04);--cngx-nav-link-active-bg: oklch(0 0 0 / .08)}}@layer cngx.components{cngx-sidenav{--cngx-sidenav-padding: var(--cngx-space-md);--cngx-nav-link-padding: var(--cngx-space-sm) var(--cngx-space-md);display:flex;flex-direction:column;flex-shrink:0;overflow:hidden;z-index:2;width:var(--cngx-sidenav-width, 280px);background:var(--cngx-sidenav-bg, oklch(.97 .005 250));color:var(--cngx-sidenav-color, inherit);transition:width var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),visibility 0s var(--cngx-sidenav-transition-duration, .25s)}cngx-sidenav:not(.cngx-sidenav--open):not(.cngx-sidenav--side):not(.cngx-sidenav--mini):not(.cngx-sidenav--over){width:0;visibility:hidden}cngx-sidenav.cngx-sidenav--open{visibility:visible;transition:width var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),visibility 0s 0s}cngx-sidenav.cngx-sidenav--side.cngx-sidenav--open{visibility:visible}cngx-sidenav.cngx-sidenav--over{position:absolute;top:0;bottom:0;width:var(--cngx-sidenav-width, 280px);visibility:hidden;transition:transform var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),visibility 0s var(--cngx-sidenav-transition-duration, .25s)}cngx-sidenav.cngx-sidenav--over.cngx-sidenav--start{inset-inline-start:0;transform:translate(-100%)}cngx-sidenav.cngx-sidenav--over.cngx-sidenav--end{inset-inline-end:0;transform:translate(100%)}cngx-sidenav.cngx-sidenav--over.cngx-sidenav--start:not(.cngx-sidenav--open):dir(rtl){transform:translate(100%)}cngx-sidenav.cngx-sidenav--over.cngx-sidenav--end:not(.cngx-sidenav--open):dir(rtl){transform:translate(-100%)}cngx-sidenav.cngx-sidenav--over.cngx-sidenav--open{transform:translate(0);visibility:visible;transition:transform var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),visibility 0s 0s}cngx-sidenav.cngx-sidenav--push,cngx-sidenav.cngx-sidenav--side,cngx-sidenav.cngx-sidenav--mini{position:relative}cngx-sidenav.cngx-sidenav--mini{width:var(--cngx-sidenav-mini-width, 56px);visibility:visible;transition:none}cngx-sidenav.cngx-sidenav--mini.cngx-sidenav--expanded{width:var(--cngx-sidenav-width, 280px);z-index:3;box-shadow:var(--cngx-sidenav-expanded-shadow, 4px 0 12px oklch(0 0 0 / .1));transition:width var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease),margin var(--cngx-sidenav-transition-duration, .25s) var(--cngx-sidenav-transition-easing, ease)}cngx-sidenav.cngx-sidenav--mini.cngx-sidenav--expanded.cngx-sidenav--start{margin-inline-end:calc(var(--cngx-sidenav-mini-width, 56px) - var(--cngx-sidenav-width, 280px))}cngx-sidenav.cngx-sidenav--mini.cngx-sidenav--expanded.cngx-sidenav--end{margin-inline-start:calc(var(--cngx-sidenav-mini-width, 56px) - var(--cngx-sidenav-width, 280px))}cngx-sidenav.cngx-sidenav--start{border-inline-end:var(--cngx-sidenav-border-width, 1px) solid var(--cngx-sidenav-border-color, var(--cngx-color-border, oklch(.89 0 0)))}cngx-sidenav.cngx-sidenav--end{border-inline-start:var(--cngx-sidenav-border-width, 1px) solid var(--cngx-sidenav-border-color, var(--cngx-color-border, oklch(.89 0 0)));order:2}.cngx-sidenav__body{flex:1;overflow-y:auto;overflow-x:hidden;min-width:var(--cngx-sidenav-width, 280px);scrollbar-gutter:stable}.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-sidenav__body{min-width:var(--cngx-sidenav-mini-width, 56px)}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-sidenav-header,cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-sidenav-footer{overflow:hidden;white-space:nowrap;text-overflow:clip;text-align:center;padding:8px 4px}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) [cngxNavLabel],cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) [cngxNavGroup]{display:none!important}.cngx-sidenav-header{flex-shrink:0;padding:var(--cngx-sidenav-padding, 16px);background:var(--cngx-sidenav-header-bg, transparent);border-bottom:1px solid var(--cngx-sidenav-border-color, var(--cngx-color-border, oklch(.89 0 0)));font-weight:600;font-size:var(--cngx-sidenav-header-font-size, .875rem)}.cngx-sidenav-footer{flex-shrink:0;margin-top:auto;padding:var(--cngx-sidenav-padding, 16px);background:var(--cngx-sidenav-footer-bg, transparent);border-top:1px solid var( --cngx-sidenav-footer-border-color, var(--cngx-sidenav-border-color, var(--cngx-color-border, oklch(.89 0 0))) );font-size:var(--cngx-sidenav-footer-font-size, .75rem);opacity:.7}cngx-sidenav .cngx-nav-link{display:block;padding:var(--cngx-nav-link-padding, 10px 16px);text-decoration:none;font-size:var(--cngx-nav-link-font-size, .875rem);color:var(--cngx-nav-link-color, currentColor);border-radius:var(--cngx-nav-link-radius, 4px);transition:background .15s,color .15s}cngx-sidenav .cngx-nav-link:hover{color:var(--cngx-nav-link-hover-color, currentColor);background:var(--cngx-nav-link-hover-bg, oklch(0 0 0 / .04))}cngx-sidenav .cngx-nav-link--active{color:var(--cngx-nav-link-active-color, currentColor);background:var(--cngx-nav-link-active-bg, oklch(0 0 0 / .08));font-weight:var(--cngx-nav-link-active-font-weight, 600)}cngx-sidenav .cngx-nav-link:focus-visible{outline:var(--cngx-nav-link-focus-outline-width, 2px) solid var(--cngx-nav-link-focus-outline-color, oklch(.66 .19 50));outline-offset:var(--cngx-nav-link-focus-outline-offset, -2px)}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-nav-link{overflow:hidden;text-align:center;font-size:0!important;line-height:1;padding:var(--cngx-nav-link-padding, 10px 8px)}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) .cngx-nav-link[data-initial]:before{content:attr(data-initial);font-size:var(--cngx-nav-link-initial-size, .875rem);font-weight:600;display:inline-block;width:var(--cngx-nav-link-initial-size, .875rem);text-align:center;line-height:1.6}cngx-sidenav.cngx-sidenav--mini:not(.cngx-sidenav--expanded) [cngxNavBadge]{display:none}.cngx-nav-group-content{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--cngx-sidenav-transition-duration, .2s) ease}.cngx-nav-group-content>*{overflow:hidden;min-height:0}.cngx-nav-group-content--open{grid-template-rows:1fr}.cngx-sidenav__resize-handle{position:absolute;top:0;bottom:0;width:var(--cngx-sidenav-resize-handle-width, 4px);cursor:col-resize;z-index:4;background:transparent;transition:background .15s;touch-action:none}.cngx-sidenav--start .cngx-sidenav__resize-handle{inset-inline-end:0;transform:translate(50%)}.cngx-sidenav--end .cngx-sidenav__resize-handle{inset-inline-start:0;transform:translate(-50%)}.cngx-sidenav--start:dir(rtl) .cngx-sidenav__resize-handle{transform:translate(-50%)}.cngx-sidenav--end:dir(rtl) .cngx-sidenav__resize-handle{transform:translate(50%)}.cngx-sidenav__resize-handle:hover,.cngx-sidenav--resizing .cngx-sidenav__resize-handle{background:var( --cngx-sidenav-resize-handle-color, var(--cngx-color-primary, oklch(.66 .19 50)) )}cngx-sidenav.cngx-sidenav--resizing{transition:none!important;-webkit-user-select:none;user-select:none}}@media(forced-colors:active){cngx-sidenav .cngx-nav-link--active{forced-color-adjust:none;background:Highlight;color:HighlightText}}\n"] }]
516
516
  }], ctorParameters: () => [], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], responsive: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsive", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }, { type: i0.Output, args: ["widthChange"] }], miniWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "miniWidth", required: false }] }], expandOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandOnHover", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], minWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minWidth", required: false }] }], maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }], shortcut: [{ type: i0.Input, args: [{ isSignal: true, alias: "shortcut", required: false }] }], opened: [{ type: i0.Input, args: [{ isSignal: true, alias: "opened", required: false }] }, { type: i0.Output, args: ["openedChange"] }] } });
517
517
 
518
518
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"cngx-ui-sidenav.mjs","sources":["../../../projects/ui/sidenav/config/sidenav.config.defaults.ts","../../../projects/ui/sidenav/config/inject-sidenav-config.ts","../../../projects/ui/sidenav/sidenav-token.ts","../../../projects/ui/sidenav/sidenav.ts","../../../projects/ui/sidenav/sidenav-layout.ts","../../../projects/ui/sidenav/sidenav-router-sync.directive.ts","../../../projects/ui/sidenav/sidenav-content.ts","../../../projects/ui/sidenav/sidenav-header.ts","../../../projects/ui/sidenav/sidenav-footer.ts","../../../projects/ui/sidenav/config/provide-sidenav-config.ts","../../../projects/ui/sidenav/config/features.ts","../../../projects/ui/sidenav/public-api.ts","../../../projects/ui/sidenav/cngx-ui-sidenav.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nimport type { CngxSidenavConfig } from './sidenav.config';\n\n/**\n * Library defaults for the sidenav configuration cascade. The values are\n * byte-identical to the per-instance input defaults `CngxSidenav` shipped\n * before the cascade (`width '280px'`, `miniWidth '56px'`, `minWidth '120px'`,\n * `maxWidth '600px'`, `enterDelay 120`, `leaveDelay 0`; `responsive` and\n * `shortcut` omitted = `undefined`), so an un-configured consumer sees no\n * change.\n *\n * The `leaveDelay 0` default is kept deliberately (instant collapse, asymmetric\n * with the 120ms enter): the dwell becomes tunable via `[leaveDelay]` /\n * `withSidenavHoverDwell(...)`, not silently changed - the breadcrumb\n * \"un-configured consumer sees no change\" principle.\n *\n * Exported for intra-lib consumers (`provideSidenavConfig` deep-merges with\n * this base) but **NOT** re-exported from `public-api.ts` - downstream\n * consumers reach the defaults via `inject(CNGX_SIDENAV_CONFIG)` so\n * `provideSidenavConfig` / `provideSidenavConfigAt` overrides take precedence.\n *\n * @internal\n */\nexport const CNGX_SIDENAV_DEFAULTS: CngxSidenavConfig = {\n dimensions: {\n width: '280px',\n miniWidth: '56px',\n minWidth: '120px',\n maxWidth: '600px',\n },\n hover: {\n enterDelay: 120,\n leaveDelay: 0,\n },\n // Empty so an un-configured consumer keeps the `'nav'` literal the directive\n // resolves at its use-site - byte-identical to no config.\n routerSync: {},\n};\n\n/**\n * App-wide configuration cascade for the sidenav family. Resolves in priority\n * order:\n *\n * 1. Per-instance Input binding.\n * 2. `provideSidenavConfigAt(...)` in a parent component's `viewProviders`.\n * 3. `provideSidenavConfig(...)` at the application root.\n * 4. Library defaults (this token's `factory`).\n *\n * `providedIn: 'root'` with a default factory means consumers never need to\n * provide the token explicitly - `inject(CNGX_SIDENAV_CONFIG)` always resolves.\n * Consumers who want overrides call `provideSidenavConfig(...)` in\n * `bootstrapApplication` providers (root cascade) or `provideSidenavConfigAt(...)`\n * in a component's `viewProviders` (sub-tree cascade).\n *\n * @category ui/sidenav\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/sidenav/config/sidenav.config.defaults.ts\n * @since 0.1.0\n */\nexport const CNGX_SIDENAV_CONFIG = new InjectionToken<CngxSidenavConfig>(\n 'CNGX_SIDENAV_CONFIG',\n {\n providedIn: 'root',\n factory: () => CNGX_SIDENAV_DEFAULTS,\n },\n);\n","import { inject } from '@angular/core';\n\nimport type { CngxSidenavConfig } from './sidenav.config';\nimport { CNGX_SIDENAV_CONFIG } from './sidenav.config.defaults';\n\n/**\n * Convenience accessor for the sidenav configuration cascade. Runs in injection\n * context; resolves through the priority chain (per-instance Input ->\n * `provideSidenavConfigAt` -> `provideSidenavConfig` -> library defaults).\n * Equivalent to `inject(CNGX_SIDENAV_CONFIG)` - the helper exists so consumers\n * don't import the token directly. Mirrors `injectBreadcrumbConfig` in\n * `@cngx/ui/breadcrumb`.\n *\n * ```ts\n * export class CngxSidenav {\n * private readonly cfg = injectSidenavConfig();\n * readonly width = model<string>(this.cfg.dimensions?.width ?? '280px');\n * }\n * ```\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport function injectSidenavConfig(): CngxSidenavConfig {\n return inject(CNGX_SIDENAV_CONFIG);\n}\n","import { InjectionToken, type ModelSignal } from '@angular/core';\n\n/**\n * Minimal contract a sidenav rail exposes to the router-sync directive: the\n * two-way `opened` signal it reads and writes. Injected via {@link CNGX_SIDENAV}\n * + `useExisting`, never by injecting the concrete `CngxSidenav` class - that\n * would create a cyclic type dependency and block the decompose brain/skin\n * split. The deferred layout-coordination consumer will broaden this contract\n * (with `close()` / `elementRef`) in the branch that migrates\n * `CngxSidenavLayout` onto the token.\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport interface CngxSidenavContract {\n /** Two-way open state; the directive both reads and writes it. */\n readonly opened: ModelSignal<boolean>;\n}\n\n/**\n * Contract token for a sidenav rail. `CngxSidenav` provides it via\n * `{ provide: CNGX_SIDENAV, useExisting: CngxSidenav }`, so a collaborator\n * injects the narrow {@link CngxSidenavContract} instead of the concrete class.\n *\n * @category ui/sidenav\n * @since 0.1.0\n * @relatedTo CngxSidenav, CngxSidenavRouterSync\n */\nexport const CNGX_SIDENAV = new InjectionToken<CngxSidenavContract>('CNGX_SIDENAV');\n","import { type FocusTrap, FocusTrapFactory } from '@angular/cdk/a11y';\nimport { DOCUMENT } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n linkedSignal,\n model,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { matchesKeyCombo, parseKeyCombo } from '@cngx/core/utils';\nimport { CNGX_HOVER_INTENT_DEFAULTS, CngxHoverIntent } from '@cngx/common/interactive';\n\nimport { injectSidenavConfig } from './config/inject-sidenav-config';\nimport { CNGX_SIDENAV } from './sidenav-token';\n\n/**\n * Logical position - flips in RTL.\n *\n * @category ui/sidenav\n */\nexport type SidenavPosition = 'start' | 'end';\n/**\n * How the sidenav interacts with the content area.\n *\n * - `'over'` - floats above content (overlay + backdrop)\n * - `'push'` - pushes content aside when open\n * - `'side'` - always visible, content permanently offset\n * - `'mini'` - collapsed icon rail (miniWidth), expands to full width on hover\n *\n * @category ui/sidenav\n */\nexport type SidenavMode = 'over' | 'push' | 'side' | 'mini';\n\n/**\n * Declarative sidebar component for the four drawer modes (`over`,\n * `push`, `side`, `mini`), with responsive mode switching, two-way\n * `[(opened)]` binding, and content projection via header/footer\n * slots.\n *\n * In overlay (`over`) mode it drives a CDK focus trap directly via\n * `FocusTrapFactory` (the same primitive `CngxFocusTrap` wraps): focus\n * moves into the rail on open and is restored to the opener on close.\n * Responsive switching runs off an inline `matchMedia` listener; the\n * shared backdrop and document scroll lock are coordinated by\n * `CngxSidenavLayout`. It does not compose `CngxDrawer` and has no\n * swipe-to-dismiss.\n *\n * Use inside `CngxSidenavLayout` for dual-sidebar support and\n * shared backdrop coordination.\n *\n * ```html\n * <cngx-sidenav-layout>\n * <cngx-sidenav position=\"start\" [(opened)]=\"navOpen\"\n * [responsive]=\"'(min-width: 1024px)'\">\n * <cngx-sidenav-header>Logo</cngx-sidenav-header>\n * <a cngxNavLink [active]=\"true\">Dashboard</a>\n * <cngx-sidenav-footer>v1.0</cngx-sidenav-footer>\n * </cngx-sidenav>\n * <cngx-sidenav-content>\n * <router-outlet />\n * </cngx-sidenav-content>\n * </cngx-sidenav-layout>\n * ```\n *\n * @category ui/sidenav\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/sidenav/sidenav.ts\n * @since 0.1.0\n * @relatedTo CngxSidenavLayout, CngxSidenavContent, CngxSidenavHeader, CngxSidenavFooter\n * <example-url>http://localhost:4200/#/ui/sidenav/dual-sidebar-master-detail</example-url>\n * <example-url>http://localhost:4200/#/ui/sidenav/full-navigation-sidebar</example-url>\n * <example-url>http://localhost:4200/#/ui/sidenav/material-theming-light-vs-dark</example-url>\n */\n@Component({\n selector: 'cngx-sidenav',\n exportAs: 'cngxSidenav',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./sidenav.css'],\n // Debounced expand-on-hover: CngxHoverIntent's pointerenter/pointerleave\n // listeners replace the sidenav's instant ones so a sweep-through never\n // expands. The directive is composed unconditionally - its listeners arm in\n // every mode - but only `mini` reads its `active()` signal (see hoverSource);\n // non-mini modes gate the debounced result to false downstream. The mini dwell\n // is tunable per instance via [expandDelay]/[collapseDelay] - rail-scoped\n // aliases of the atom's enterDelay/leaveDelay, named for what they do on a rail\n // (\"expand after N ms of hover\", \"collapse after N ms off\") - and app-wide via\n // CNGX_HOVER_INTENT_DEFAULTS (provided from the config below); un-set, the\n // atom's 120/0 literals apply so behaviour stays unchanged.\n hostDirectives: [\n {\n directive: CngxHoverIntent,\n inputs: ['enterDelay: expandDelay', 'leaveDelay: collapseDelay'],\n },\n ],\n // Element-injector provider (not viewProviders): the composed CngxHoverIntent\n // resolves CNGX_HOVER_INTENT_DEFAULTS from the host element injector, so the\n // config-resolved dwell reaches the atom. Un-configured, cfg.hover is the\n // 120/0 default, byte-identical to the atom's own literals.\n providers: [\n { provide: CNGX_HOVER_INTENT_DEFAULTS, useFactory: () => injectSidenavConfig().hover ?? {} },\n { provide: CNGX_SIDENAV, useExisting: CngxSidenav },\n ],\n host: {\n '[class.cngx-sidenav]': 'true',\n '[class.cngx-sidenav--start]': \"position() === 'start'\",\n '[class.cngx-sidenav--end]': \"position() === 'end'\",\n '[class.cngx-sidenav--open]': 'opened()',\n '[class.cngx-sidenav--over]': \"effectiveMode() === 'over'\",\n '[class.cngx-sidenav--push]': \"effectiveMode() === 'push'\",\n '[class.cngx-sidenav--side]': \"effectiveMode() === 'side'\",\n '[class.cngx-sidenav--mini]': \"effectiveMode() === 'mini'\",\n '[class.cngx-sidenav--expanded]': 'expanded()',\n '[class.cngx-sidenav--resizable]': 'resizable()',\n '[class.cngx-sidenav--resizing]': 'resizing()',\n '[attr.aria-hidden]':\n \"effectiveMode() === 'side' || effectiveMode() === 'mini' ? null : !opened()\",\n '[attr.aria-modal]': \"overlayActive() ? 'true' : null\",\n '[style.--cngx-sidenav-width]': 'effectiveWidth()',\n '[style.--cngx-sidenav-mini-width]': 'miniWidth()',\n role: 'complementary',\n '[attr.aria-label]': 'ariaLabel() || null',\n '(keydown.escape)': 'closeIfOverlay()',\n },\n template: `\n <ng-content select=\"cngx-sidenav-header, [cngxSidenavHeader]\" />\n <div class=\"cngx-sidenav__body\">\n <ng-content />\n </div>\n <ng-content select=\"cngx-sidenav-footer, [cngxSidenavFooter]\" />\n @if (resizable()) {\n <div\n class=\"cngx-sidenav__resize-handle\"\n (pointerdown)=\"handleResizeStart($event)\"\n role=\"separator\"\n [attr.aria-orientation]=\"'vertical'\"\n [attr.aria-valuenow]=\"widthPx()\"\n [attr.aria-valuemin]=\"minWidthPx()\"\n [attr.aria-valuemax]=\"maxWidthPx()\"\n ></div>\n }\n `,\n})\nexport class CngxSidenav {\n /**\n * Resolved sidenav configuration cascade. Seeds the dimension, `responsive`,\n * and `shortcut` input defaults below so a per-instance binding still wins\n * (Controlled+Uncontrolled), an app-wide `provideSidenavConfig(...)` moves the\n * default, and an un-configured consumer keeps the byte-identical literals.\n * Declared first so the input field initialisers can read it.\n */\n private readonly cfg = injectSidenavConfig();\n\n /** Logical position: `'start'` (default left in LTR) or `'end'` (right in LTR). */\n readonly position = input<SidenavPosition>('start');\n\n /** Accessible label for the complementary landmark. */\n readonly ariaLabel = input<string | undefined>(undefined);\n\n /** Drawer mode. Overridden by `responsive` when set. */\n readonly mode = input<SidenavMode>('over');\n\n /**\n * CSS media query string for responsive mode switching.\n * When the query matches, mode becomes `'side'` (permanent).\n * When it doesn't match, mode becomes `'over'` (overlay).\n */\n readonly responsive = input<string | undefined>(this.cfg.responsive);\n\n /** Width of the sidenav panel. Supports two-way `[(width)]` for resize. */\n readonly width = model<string>(this.cfg.dimensions?.width ?? '280px');\n\n /** Width of the collapsed rail in `mini` mode. Any CSS value. */\n readonly miniWidth = input<string>(this.cfg.dimensions?.miniWidth ?? '56px');\n\n /** Whether hovering the mini rail expands the sidenav to full width. */\n readonly expandOnHover = input<boolean>(true);\n\n /** Whether the sidebar is user-resizable via a drag handle. */\n readonly resizable = input<boolean>(false);\n\n /** Minimum width constraint during resize. */\n readonly minWidth = input<string>(this.cfg.dimensions?.minWidth ?? '120px');\n\n /** Maximum width constraint during resize. */\n readonly maxWidth = input<string>(this.cfg.dimensions?.maxWidth ?? '600px');\n\n /**\n * Keyboard shortcut to toggle the sidenav, e.g. `'ctrl+b'` or `'meta+b'`.\n * Uses `ctrl` on Windows/Linux and `meta` (Cmd) on macOS automatically\n * when `'mod+<key>'` syntax is used.\n */\n readonly shortcut = input<string | undefined>(this.cfg.shortcut);\n\n /** Whether a resize drag is in progress. */\n private readonly resizingState = signal(false);\n readonly resizing = this.resizingState.asReadonly();\n\n /** Two-way opened state. Supports `[(opened)]=\"signal\"`. */\n readonly opened = model<boolean>(false);\n\n /** Debounced mini expand-on-hover, composed as a hostDirective (its own pointer listeners drive it). */\n private readonly hoverIntent = inject(CngxHoverIntent, { host: true });\n\n /**\n * Composed source for `expandedState`: the effective mode, the debounced\n * hover-intent signal, and the on/off switch. Carries an explicit `equal` so\n * the object literal never churns identity and re-runs the computation when\n * none of the three fields actually changed.\n */\n private readonly hoverSource = computed(\n () => ({\n mode: this.effectiveMode(),\n hover: this.hoverIntent.active(),\n enabled: this.expandOnHover(),\n }),\n { equal: (a, b) => a.mode === b.mode && a.hover === b.hover && a.enabled === b.enabled },\n );\n\n /**\n * Whether the mini-mode rail is currently expanded. A pure derivation of\n * `(effectiveMode, hoverIntent.active, expandOnHover)`, not two imperative\n * event-handler writes:\n *\n * - outside `mini` it is always `false`;\n * - with `expandOnHover=true` the debounced hover is the source of truth, so a\n * pointer edge overrides a prior `expand()`/`collapse()` (see `expand()`);\n * - with `expandOnHover=false` hover is ignored and the prior value is kept, so\n * `expand()`/`collapse()` retain full programmatic authority.\n *\n * It stays a writable `linkedSignal` so `expand()`/`collapse()` can `set()` it;\n * the next source change re-derives from the debounced hover.\n */\n private readonly expandedState = linkedSignal<\n { mode: SidenavMode; hover: boolean; enabled: boolean },\n boolean\n >({\n source: this.hoverSource,\n computation: ({ mode, hover, enabled }, prev) => {\n if (mode !== 'mini') {\n return false;\n }\n return enabled ? hover : (prev?.value ?? false);\n },\n });\n readonly expanded = this.expandedState.asReadonly();\n\n /** @internal Reference to host element for layout positioning. */\n readonly elementRef = inject(ElementRef<HTMLElement>);\n\n // Inlined matchMedia - host directive would force a wrapper element.\n private readonly mediaMatches = signal(false);\n\n /** Resolved mode - responsive overrides to `'side'` when matching, falls back to `mode()`. */\n readonly effectiveMode = computed<SidenavMode>(() => {\n if (!this.responsive()) {\n return this.mode();\n }\n return this.mediaMatches() ? 'side' : this.mode();\n });\n\n /** Whether this sidenav is in overlay mode (over). */\n readonly isOverlay = computed(() => this.effectiveMode() === 'over');\n\n /** Whether the sidenav is currently a modal overlay: overlay mode and open. */\n readonly overlayActive = computed(() => this.isOverlay() && this.opened());\n\n /** Resolved width - mini mode uses miniWidth unless expanded. */\n readonly effectiveWidth = computed(() => {\n if (this.effectiveMode() === 'mini' && !this.expandedState()) {\n return this.miniWidth();\n }\n return this.width();\n });\n\n private readonly doc = inject(DOCUMENT);\n private readonly win = this.doc.defaultView;\n\n /**\n * Current/previous effective-mode pair for transition detection. Mirrors the\n * `createTransitionTracker` shape from `@cngx/core/utils`, inlined because that\n * helper is typed to `AsyncStatus`; `SidenavMode` needs the same `linkedSignal`\n * pattern. Replaces the hand-rolled `prevMode` signal that was `.set()` inside\n * the mode effect.\n */\n private readonly modeTransition = linkedSignal<\n SidenavMode,\n { current: SidenavMode; previous: SidenavMode | undefined }\n >({\n source: () => this.effectiveMode(),\n computation: (current, prev) => ({ current, previous: prev?.value.current }),\n equal: (a, b) => a.current === b.current && a.previous === b.previous,\n });\n\n /** CDK focus trap over the host; enabled only while a modal overlay is open. */\n private readonly focusTrap: FocusTrap;\n\n /** Element that held focus when the overlay opened, restored to it on close. */\n private restoreTarget: HTMLElement | null = null;\n\n /**\n * Set when the mode-transition effect auto-opens an overlay (a viewport-driven\n * `side`/`mini` -> `over` switch). The focus effect reads it to enable the trap\n * without pulling focus into the rail, since that open was not user-initiated.\n */\n private autoOpenInFlight = false;\n\n /** Aborts the in-flight resize drag's document listeners (pointerup or teardown). */\n private resizeAbort: AbortController | null = null;\n\n constructor() {\n this.focusTrap = inject(FocusTrapFactory).create(this.elementRef.nativeElement as HTMLElement);\n\n // Modal-overlay focus contract: on the open edge move focus into the rail\n // and trap it; on the close edge restore focus to whatever opened it, after\n // the DOM settles. overlayActive is the single tracked trigger; restoreTarget\n // is a plain field, not a signal, so this stays a pure side-effect and never\n // feeds a write back into the reactive graph.\n let wasOverlayActive = false;\n effect(() => {\n const active = this.overlayActive();\n this.focusTrap.enabled = active;\n if (active && !wasOverlayActive) {\n // Only pull focus into the rail when the open was user-initiated. An\n // auto-open driven by a responsive mode switch (viewport resize) engages\n // the trap - the rail is now modal - but must not steal focus.\n const viaAutoOpen = this.autoOpenInFlight;\n this.autoOpenInFlight = false;\n if (!viaAutoOpen) {\n const activeEl = this.doc.activeElement;\n this.restoreTarget = activeEl instanceof HTMLElement ? activeEl : null;\n void this.focusTrap.focusFirstTabbableElementWhenReady();\n }\n } else if (!active && wasOverlayActive) {\n const target = this.restoreTarget;\n this.restoreTarget = null;\n queueMicrotask(() => target?.focus());\n }\n wasOverlayActive = active;\n });\n\n inject(DestroyRef).onDestroy(() => {\n this.focusTrap.destroy();\n this.resizeAbort?.abort();\n });\n\n effect((onCleanup) => {\n const query = this.responsive();\n const win = this.win;\n if (!query || !win) {\n return;\n }\n const mql = win.matchMedia(query);\n this.mediaMatches.set(mql.matches);\n const handler = (e: MediaQueryListEvent): void => this.mediaMatches.set(e.matches);\n mql.addEventListener('change', handler);\n onCleanup(() => mql.removeEventListener('change', handler));\n });\n\n // Global hotkey: document listener inside effect(onCleanup) so the combo\n // signal can re-register at runtime. Host listeners cannot rebind.\n const isMac = this.win?.navigator?.userAgent?.includes('Mac') ?? false;\n effect((onCleanup) => {\n const shortcut = this.shortcut();\n if (!shortcut) {\n return;\n }\n const combo = parseKeyCombo(shortcut);\n const handler = (e: KeyboardEvent): void => {\n if (matchesKeyCombo(e, combo, isMac)) {\n e.preventDefault();\n this.opened.set(!this.opened());\n }\n };\n this.doc.addEventListener('keydown', handler);\n onCleanup(() => this.doc.removeEventListener('keydown', handler));\n });\n\n // Residual transition side-effect, not a derivation: opened is a consumer\n // model() the user can still toggle, so leaving an always-visible mode for an\n // overlay mode auto-opens the rail once. Guarded by the current/previous\n // compare so it fires only on the transition edge.\n effect(() => {\n const { current, previous } = this.modeTransition();\n if (previous === undefined || current === previous) {\n return;\n }\n const alwaysVisible = (m: SidenavMode) => m === 'side' || m === 'mini';\n if (alwaysVisible(previous) && !alwaysVisible(current)) {\n // Flag only overlay auto-opens so the focus effect skips the focus-move.\n // `over` is the only overlay mode; a `push` auto-open never raises\n // overlayActive, so it must not leave the flag stuck for a later open.\n this.autoOpenInFlight = current === 'over';\n this.opened.set(true);\n }\n });\n }\n\n /** Opens the sidenav. */\n open(): void {\n this.opened.set(true);\n }\n\n /** Closes the sidenav (only in over/push mode). No-op in side/mini mode. */\n close(): void {\n const mode = this.effectiveMode();\n if (mode !== 'side' && mode !== 'mini') {\n this.opened.set(false);\n }\n }\n\n /** Toggles the sidenav. */\n toggle(): void {\n if (this.opened()) {\n this.close();\n } else {\n this.open();\n }\n }\n\n /** @internal Close only if in overlay mode (for Escape key, click-outside). */\n protected closeIfOverlay(): void {\n if (this.isOverlay()) {\n this.close();\n }\n }\n\n /**\n * Expand the mini rail to full width.\n *\n * When `expandOnHover=true` (the default) the debounced hover is the source of\n * truth for `expanded`, so a programmatic `expand()` is transient: the next\n * pointer edge overrides it. For authoritative programmatic control set\n * `expandOnHover=false`, which hands `expand()`/`collapse()` full authority.\n */\n expand(): void {\n this.expandedState.set(true);\n }\n\n /**\n * Collapse the expanded mini rail back to miniWidth.\n *\n * Same reconciliation as `expand()`: transient while `expandOnHover=true`,\n * authoritative while `expandOnHover=false`.\n */\n collapse(): void {\n this.expandedState.set(false);\n }\n\n /** @internal Parse a CSS px value to a number. */\n protected readonly widthPx = computed(() => Number.parseInt(this.width(), 10) || 280);\n protected readonly minWidthPx = computed(() => Number.parseInt(this.minWidth(), 10) || 120);\n protected readonly maxWidthPx = computed(() => Number.parseInt(this.maxWidth(), 10) || 600);\n\n /** @internal */\n handleResizeStart(e: PointerEvent): void {\n if (!this.resizable()) {\n return;\n }\n e.preventDefault();\n (e.target as HTMLElement).setPointerCapture(e.pointerId);\n\n this.resizingState.set(true);\n const startX = e.clientX;\n const el = this.elementRef.nativeElement as HTMLElement;\n const startWidth = el.getBoundingClientRect().width;\n const isEnd = this.position() === 'end';\n const min = this.minWidthPx();\n const max = this.maxWidthPx();\n let currentWidth = startWidth;\n let rafId = 0;\n\n // One controller per drag removes both document listeners in a single abort:\n // on pointerup below, and - critically - if the component is torn down\n // mid-drag (the onDestroy hook aborts this.resizeAbort).\n const controller = new AbortController();\n this.resizeAbort = controller;\n\n const onMove = (ev: PointerEvent): void => {\n const delta = isEnd ? startX - ev.clientX : ev.clientX - startX;\n currentWidth = Math.round(Math.max(min, Math.min(max, startWidth + delta)));\n // CSS var on the DOM node directly, no CD per frame during drag.\n if (!rafId) {\n rafId = requestAnimationFrame(() => {\n el.style.setProperty('--cngx-sidenav-width', `${currentWidth}px`);\n rafId = 0;\n });\n }\n };\n\n const onUp = (): void => {\n cancelAnimationFrame(rafId);\n this.resizingState.set(false);\n // Single CD on pointerup - model catches up with the DOM.\n this.width.set(`${currentWidth}px`);\n controller.abort();\n this.resizeAbort = null;\n };\n\n this.doc.addEventListener('pointermove', onMove, { signal: controller.signal });\n this.doc.addEventListener('pointerup', onUp, { signal: controller.signal });\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n DestroyRef,\n effect,\n inject,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { fromEvent } from 'rxjs';\nimport { CngxSidenav } from './sidenav';\n\n/**\n * Container for one or two `CngxSidenav` panels and a `CngxSidenavContent`.\n *\n * Manages shared backdrop, scroll lock, and click-outside coordination.\n * Supports up to two sidenavs: one `position=\"start\"` and one `position=\"end\"`.\n *\n * ### Dual sidebar\n * ```html\n * <cngx-sidenav-layout>\n * <cngx-sidenav position=\"start\" [(opened)]=\"navOpen\"\n * [responsive]=\"'(min-width: 1024px)'\">\n * Left nav\n * </cngx-sidenav>\n * <cngx-sidenav-content>\n * Main content\n * </cngx-sidenav-content>\n * <cngx-sidenav position=\"end\" [(opened)]=\"detailOpen\">\n * Right detail panel\n * </cngx-sidenav>\n * </cngx-sidenav-layout>\n * ```\n *\n * @category ui/sidenav\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/sidenav/sidenav-layout.ts\n * @since 0.1.0\n * @relatedTo CngxSidenav, CngxSidenavContent, CngxSidenavHeader, CngxSidenavFooter\n */\n@Component({\n selector: 'cngx-sidenav-layout',\n exportAs: 'cngxSidenavLayout',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./sidenav-layout.css'],\n host: {\n '[class.cngx-sidenav-layout]': 'true',\n '[class.cngx-sidenav-layout--ready]': 'ready()',\n '[class.cngx-sidenav-layout--has-overlay]': 'hasOverlay()',\n },\n template: `\n <ng-content select=\"cngx-sidenav[position=start], cngx-sidenav:not([position])\" />\n <ng-content select=\"cngx-sidenav-content\" />\n <ng-content select=\"cngx-sidenav[position=end]\" />\n @if (hasOverlay()) {\n <div class=\"cngx-sidenav-backdrop\" (click)=\"closeAllOverlays()\"></div>\n }\n `,\n})\nexport class CngxSidenavLayout {\n /** @internal */\n readonly ready = signal(false);\n\n private readonly sidenavs = contentChildren(CngxSidenav);\n\n /** The start-positioned sidenav, if any. */\n readonly startSidenav = computed(\n () => this.sidenavs().find((s) => s.position() === 'start') ?? null,\n );\n\n /** The end-positioned sidenav, if any. */\n readonly endSidenav = computed(() => this.sidenavs().find((s) => s.position() === 'end') ?? null);\n\n /** Whether any sidenav is open in overlay mode. */\n readonly hasOverlay = computed(() => this.sidenavs().some((s) => s.isOverlay() && s.opened()));\n\n constructor() {\n const doc = inject(DOCUMENT);\n\n // Gate transitions until after first render - prevents open-on-load flash.\n afterNextRender(() => this.ready.set(true));\n\n // Dataset ref-counting matches CngxScrollLock so concurrent lock sources\n // do not clobber each other's restore values.\n const html = doc.documentElement;\n const locked = signal(false);\n\n effect(() => {\n if (this.hasOverlay() && !locked()) {\n if (!html.dataset['cngxPrevOverflow']) {\n html.dataset['cngxPrevOverflow'] = html.style.overflow;\n html.dataset['cngxPrevScrollbarGutter'] = html.style.scrollbarGutter;\n }\n html.style.overflow = 'hidden';\n html.style.scrollbarGutter = 'stable';\n locked.set(true);\n } else if (!this.hasOverlay() && locked()) {\n html.style.overflow = html.dataset['cngxPrevOverflow'] ?? '';\n html.style.scrollbarGutter = html.dataset['cngxPrevScrollbarGutter'] ?? '';\n delete html.dataset['cngxPrevOverflow'];\n delete html.dataset['cngxPrevScrollbarGutter'];\n locked.set(false);\n }\n });\n\n inject(DestroyRef).onDestroy(() => {\n if (locked()) {\n html.style.overflow = html.dataset['cngxPrevOverflow'] ?? '';\n html.style.scrollbarGutter = html.dataset['cngxPrevScrollbarGutter'] ?? '';\n delete html.dataset['cngxPrevOverflow'];\n delete html.dataset['cngxPrevScrollbarGutter'];\n }\n });\n\n // Dismiss on pointerdown, not click: an external open-trigger's pointerdown\n // fires before the click that flips opened(), so hasOverlay() is still false\n // here at that point and the same-gesture open cannot self-close.\n fromEvent<PointerEvent>(doc, 'pointerdown')\n .pipe(takeUntilDestroyed())\n .subscribe((e) => {\n if (!this.hasOverlay()) {\n return;\n }\n for (const nav of this.sidenavs()) {\n if (\n nav.isOverlay() &&\n nav.opened() &&\n !(nav.elementRef.nativeElement as HTMLElement).contains(e.target as Node)\n ) {\n nav.close();\n }\n }\n });\n }\n\n /** Closes all sidenavs that are currently in overlay mode. */\n closeAllOverlays(): void {\n for (const nav of this.sidenavs()) {\n if (nav.isOverlay() && nav.opened()) {\n nav.close();\n }\n }\n }\n}\n","import { computed, Directive, inject, input, output } from '@angular/core';\nimport { injectQueryParamSync } from '@cngx/common/layout';\n\nimport { injectSidenavConfig } from './config/inject-sidenav-config';\nimport { CNGX_SIDENAV } from './sidenav-token';\n\n/**\n * Deep-links a sidenav's open state into a query param. Opt-in via\n * `[cngxSidenavRouterSync]` on a `<cngx-sidenav>`: opening writes `?nav=open`,\n * an initial `?nav=open` hydrates it open, closing removes the param, and\n * browser back/forward re-hydrates it. A thin caller over\n * `injectQueryParamSync` - it reaches the rail through the {@link CNGX_SIDENAV}\n * contract token, never the concrete class.\n *\n * The `param` default cascades: per-instance `[param]` wins, then\n * `withSidenavRouterSync({ param })` on `CNGX_SIDENAV_CONFIG`, then the `'nav'`\n * literal. Without `@angular/router` the kernel dev-warns once and no-ops.\n *\n * @category ui/sidenav\n * @docsKind primary\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/sidenav/sidenav-router-sync.directive.ts\n * @since 0.1.0\n * @relatedTo CngxSidenav, CNGX_SIDENAV, injectQueryParamSync\n * <example-url>http://localhost:4200/#/ui/sidenav/router-sync/deep-linkable-overlay</example-url>\n */\n@Directive({\n selector: '[cngxSidenavRouterSync]',\n exportAs: 'cngxSidenavRouterSync',\n standalone: true,\n})\nexport class CngxSidenavRouterSync {\n private readonly sidenav = inject(CNGX_SIDENAV, { host: true });\n private readonly cfg = injectSidenavConfig();\n\n /**\n * Raw `[param]` input. Read the resolved {@link param} computed instead.\n * @internal\n */\n readonly paramInput = input<string | undefined>(undefined, { alias: 'param' });\n\n /** Resolved query-param key: `[param]` -> config `routerSync.param` -> `'nav'`. */\n readonly param = computed(() => this.paramInput() ?? this.cfg.routerSync?.param ?? 'nav');\n\n /** Emits when a `router.navigate` rejection is observed. Parity with the stepper sibling. */\n readonly syncError = output<unknown>();\n\n constructor() {\n // Pass the `param` computed itself, never `this.param()` - a constructor-time\n // read would freeze the resolved value and ignore a later-bound `[param]`.\n injectQueryParamSync(this.sidenav.opened, {\n param: this.param,\n onSyncError: (err) => this.syncError.emit(err),\n });\n }\n}\n","import { ChangeDetectionStrategy, Component, inject, ViewEncapsulation } from '@angular/core';\nimport { CngxSidenavLayout } from './sidenav-layout';\n\n/**\n * Main content area within a `CngxSidenavLayout`.\n *\n * Auto-adjusts margins when sibling sidenavs are in `push` or `side`\n * mode. Must be a direct child of `CngxSidenavLayout`.\n *\n * ```html\n * <cngx-sidenav-layout>\n * <cngx-sidenav position=\"start\">…</cngx-sidenav>\n * <cngx-sidenav-content>\n * <router-outlet />\n * </cngx-sidenav-content>\n * </cngx-sidenav-layout>\n * ```\n *\n * @category ui/sidenav\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/sidenav/sidenav-content.ts\n * @since 0.1.0\n * @relatedTo CngxSidenavLayout, CngxSidenav\n */\n@Component({\n selector: 'cngx-sidenav-content',\n exportAs: 'cngxSidenavContent',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n '[class.cngx-sidenav-content]': 'true',\n '[style.margin-inline-start]': 'marginStart',\n '[style.margin-inline-end]': 'marginEnd',\n },\n template: `<ng-content />`,\n})\nexport class CngxSidenavContent {\n private readonly layout = inject(CngxSidenavLayout, { optional: true });\n\n constructor() {\n if (!this.layout) {\n throw new Error('cngx-sidenav-content must be placed inside a cngx-sidenav-layout.');\n }\n }\n\n /**\n * Margin offset for the start sidenav.\n *\n * Push and side modes use `position: relative` - the sidenav sits in\n * the flex flow and the content shrinks naturally via `flex: 1`.\n * No margin needed. Over mode uses `position: absolute` - no margin needed\n * either since the sidenav floats above content.\n *\n * Kept as a public computed so tests and consumers can still read it.\n */\n readonly marginStart = '0';\n\n /** Margin offset for the end sidenav - same rationale as start. */\n readonly marginEnd = '0';\n}\n","import { Directive } from '@angular/core';\n\n/**\n * Top region of `<cngx-sidenav>`. Sits before the scrolling body in\n * the sidenav's flex column, so it stays pinned at the top while the\n * body scrolls. Not `position: sticky` - a non-shrinking flex sibling\n * with `flex-shrink: 0`.\n *\n * Two selector forms:\n * - `<cngx-sidenav-header>` element wrapper for arbitrary content.\n * - `[cngxSidenavHeader]` attribute for native landmarks like\n * `<header>` so the landmark a11y comes from the element itself.\n *\n * Adds the `cngx-sidenav-header` class for theming via\n * `--cngx-sidenav-header-bg` and `--cngx-sidenav-header-font-size`.\n *\n * In `mini` mode (collapsed rail, not expanded) the region clips to\n * `miniWidth` with `overflow: hidden`, centred text, and tight\n * padding. Design the projected content to survive the rail width:\n * an icon-sized logo works, a wordmark gets cropped.\n *\n * Typical content: logo, app name, close trigger.\n *\n * ```html\n * <cngx-sidenav>\n * <cngx-sidenav-header>Acme HR</cngx-sidenav-header>\n * ...\n * </cngx-sidenav>\n * ```\n *\n * @category ui/sidenav\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/sidenav/sidenav-header.ts\n * @selector cngx-sidenav-header\n * @since 0.1.0\n * @relatedTo CngxSidenav, CngxSidenavFooter, CngxSidenavLayout\n */\n@Directive({\n selector: 'cngx-sidenav-header, [cngxSidenavHeader]',\n standalone: true,\n host: { '[class.cngx-sidenav-header]': 'true' },\n})\nexport class CngxSidenavHeader {}\n","import { Directive } from '@angular/core';\n\n/**\n * Bottom region of `<cngx-sidenav>`. Mirror of `CngxSidenavHeader`:\n * a non-shrinking flex sibling after the scrolling body, so it stays\n * pinned at the bottom while the body scrolls. Not `position:\n * sticky`.\n *\n * Two selector forms:\n * - `<cngx-sidenav-footer>` element wrapper for arbitrary content.\n * - `[cngxSidenavFooter]` attribute for native landmarks like\n * `<footer>` so the landmark a11y comes from the element itself.\n *\n * Adds the `cngx-sidenav-footer` class for theming via\n * `--cngx-sidenav-footer-bg`, `--cngx-sidenav-footer-border-color`,\n * and `--cngx-sidenav-footer-font-size`.\n *\n * In `mini` mode (collapsed rail, not expanded) the region clips to\n * `miniWidth` with `overflow: hidden` and centred text - same\n * caveat as the header. An icon + tooltip pattern survives the\n * rail; a multi-line copyright line does not.\n *\n * Typical content: version badge, account menu trigger, secondary\n * nav, sign-out button.\n *\n * ```html\n * <cngx-sidenav>\n * ...\n * <cngx-sidenav-footer>v2.4.0</cngx-sidenav-footer>\n * </cngx-sidenav>\n * ```\n *\n * @category ui/sidenav\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/sidenav/sidenav-footer.ts\n * @selector cngx-sidenav-footer\n * @since 0.1.0\n * @relatedTo CngxSidenav, CngxSidenavHeader, CngxSidenavLayout\n */\n@Directive({\n selector: 'cngx-sidenav-footer, [cngxSidenavFooter]',\n standalone: true,\n host: { '[class.cngx-sidenav-footer]': 'true' },\n})\nexport class CngxSidenavFooter {}\n","import {\n inject,\n makeEnvironmentProviders,\n type EnvironmentProviders,\n type Provider,\n} from '@angular/core';\n\nimport type { CngxSidenavConfig } from './sidenav.config';\nimport {\n CNGX_SIDENAV_CONFIG,\n CNGX_SIDENAV_DEFAULTS,\n} from './sidenav.config.defaults';\n\n/**\n * Discriminated-union shape returned by the sidenav config features -\n * `withSidenavDimensions`, `withSidenavResponsive`, `withSidenavShortcut`,\n * `withSidenavHoverDwell`, and `withSidenavRouterSync`. The reducer in\n * `provideSidenavConfig` / `provideSidenavConfigAt` matches on `kind` and merges\n * `payload` into the corresponding config sub-tree: `dimensions`, `hover`, and\n * `routerSync` are one-level nested sub-trees, `responsive` and `shortcut` are\n * flat top-level scalars. Mirrors `CngxBreadcrumbConfigFeature` from\n * `@cngx/ui/breadcrumb` (nested-sub-tree style; the stepper family uses flat\n * scalar keys instead).\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport type CngxSidenavConfigFeature =\n | {\n readonly kind: 'dimensions';\n readonly payload: NonNullable<CngxSidenavConfig['dimensions']>;\n }\n | {\n readonly kind: 'hover';\n readonly payload: NonNullable<CngxSidenavConfig['hover']>;\n }\n | {\n readonly kind: 'routerSync';\n readonly payload: NonNullable<CngxSidenavConfig['routerSync']>;\n }\n | {\n readonly kind: 'responsive';\n readonly payload: { readonly responsive: string };\n }\n | {\n readonly kind: 'shortcut';\n readonly payload: { readonly shortcut: string };\n };\n\n/**\n * Reduces a list of feature objects into a partial config - last write wins\n * per sub-tree. The nested `dimensions` / `hover` sub-trees are spread-merged\n * so partial overrides compose cleanly with prior writes.\n *\n * @internal\n */\nfunction reduceFeatures(\n features: readonly CngxSidenavConfigFeature[],\n): Partial<CngxSidenavConfig> {\n const out: {\n dimensions?: NonNullable<CngxSidenavConfig['dimensions']>;\n hover?: NonNullable<CngxSidenavConfig['hover']>;\n routerSync?: NonNullable<CngxSidenavConfig['routerSync']>;\n responsive?: string;\n shortcut?: string;\n } = {};\n for (const f of features) {\n switch (f.kind) {\n case 'dimensions':\n out.dimensions = { ...out.dimensions, ...f.payload };\n break;\n case 'hover':\n out.hover = { ...out.hover, ...f.payload };\n break;\n case 'routerSync':\n out.routerSync = { ...out.routerSync, ...f.payload };\n break;\n case 'responsive':\n out.responsive = f.payload.responsive;\n break;\n case 'shortcut':\n out.shortcut = f.payload.shortcut;\n break;\n }\n }\n return out;\n}\n\n/**\n * Two-level deep merge: the nested sub-tree keys (`dimensions` / `hover`) are\n * spread-merged so the partial fills in missing keys without nuking unrelated\n * config sub-trees; the flat top-level scalars (`responsive` / `shortcut`) take\n * the partial when present, else the base. Inner objects are flat (one level),\n * so a single spread per key suffices. Invariant: a config key nested more than\n * one level deep would shallow-merge silently here - if the config ever grows a\n * deeper sub-tree, add a dedicated spread for it rather than relying on this\n * pass.\n *\n * @internal\n */\nfunction mergeConfig(\n base: CngxSidenavConfig,\n partial: Partial<CngxSidenavConfig>,\n): CngxSidenavConfig {\n return {\n dimensions: { ...base.dimensions, ...partial.dimensions },\n hover: { ...base.hover, ...partial.hover },\n routerSync: { ...base.routerSync, ...partial.routerSync },\n responsive: partial.responsive ?? base.responsive,\n shortcut: partial.shortcut ?? base.shortcut,\n };\n}\n\n/**\n * Application-root configuration cascade for the sidenav family. Pass any\n * combination of `withSidenavDimensions`, `withSidenavResponsive`,\n * `withSidenavShortcut`, `withSidenavHoverDwell`, and `withSidenavRouterSync`\n * features in `bootstrapApplication`'s providers array.\n *\n * Resolution priority (high -> low):\n * 1. Per-instance Input binding.\n * 2. `provideSidenavConfigAt(...)` in a parent component's `viewProviders`.\n * 3. `provideSidenavConfig(...)` at the application root.\n * 4. Library defaults (`CNGX_SIDENAV_DEFAULTS`).\n *\n * The provider deep-merges supplied features with the library defaults so\n * consumers only declare keys they want to override.\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [\n * provideSidenavConfig(\n * withSidenavDimensions({ width: '320px' }),\n * withSidenavShortcut('mod+b'),\n * ),\n * ],\n * });\n * ```\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport function provideSidenavConfig(\n ...features: CngxSidenavConfigFeature[]\n): EnvironmentProviders {\n // Empty-features: skip the override so the root factory's\n // CNGX_SIDENAV_DEFAULTS reference flows through untouched. A fresh\n // mergeConfig(...) would allocate identical content under a new reference and\n // bust downstream identity comparisons.\n if (features.length === 0) {\n return makeEnvironmentProviders([]);\n }\n const partial = reduceFeatures(features);\n return makeEnvironmentProviders([\n {\n provide: CNGX_SIDENAV_CONFIG,\n useValue: mergeConfig(CNGX_SIDENAV_DEFAULTS, partial),\n },\n ]);\n}\n\n/**\n * Component-scoped configuration cascade for the sidenav family. Pass any\n * combination of feature factories in a parent component's `viewProviders`\n * array.\n *\n * Unlike `provideSidenavConfig` (root-only), `provideSidenavConfigAt` injects\n * the parent injector's `CNGX_SIDENAV_CONFIG` value (resolves through the\n * priority chain - root provider, library defaults, or another\n * `provideSidenavConfigAt` further up) and deep-merges the supplied features on\n * top. Descendant sidenav instances see the merged config; sibling sub-trees\n * keep the inherited value untouched.\n *\n * ```ts\n * @Component({\n * viewProviders: [\n * provideSidenavConfigAt(withSidenavDimensions({ width: '320px' })),\n * ],\n * template: '<cngx-sidenav>...</cngx-sidenav>',\n * })\n * class Section {}\n * ```\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport function provideSidenavConfigAt(\n ...features: CngxSidenavConfigFeature[]\n): Provider[] {\n // Empty-features call: parent value flows through untouched. Skipping the\n // factory preserves reference identity through the sub-tree.\n if (features.length === 0) {\n return [];\n }\n const partial = reduceFeatures(features);\n return [\n {\n provide: CNGX_SIDENAV_CONFIG,\n useFactory: () => {\n const parent = inject(CNGX_SIDENAV_CONFIG, { skipSelf: true });\n return mergeConfig(parent, partial);\n },\n },\n ];\n}\n","import type { CngxSidenavConfig } from './sidenav.config';\nimport type { CngxSidenavConfigFeature } from './provide-sidenav-config';\n\n/**\n * Override the sidenav family's panel dimensions - `width`, `miniWidth`,\n * `minWidth`, and `maxWidth`. Per-instance `[width]` / `[miniWidth]` /\n * `[minWidth]` / `[maxWidth]` bindings still win over the cascade; this only\n * moves the defaults. Partial payloads deep-merge, so pass only the keys you\n * want to change.\n *\n * ```ts\n * provideSidenavConfig(withSidenavDimensions({ width: '320px', miniWidth: '64px' }));\n * ```\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport function withSidenavDimensions(\n payload: NonNullable<CngxSidenavConfig['dimensions']>,\n): CngxSidenavConfigFeature {\n return { kind: 'dimensions', payload };\n}\n\n/**\n * Set the app-wide default CSS media-query string for responsive mode\n * switching. When the query matches, the sidenav resolves to `'side'`;\n * otherwise it falls back to its `mode`. Per-instance `[responsive]` still\n * wins.\n *\n * ```ts\n * provideSidenavConfig(withSidenavResponsive('(min-width: 1024px)'));\n * ```\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport function withSidenavResponsive(query: string): CngxSidenavConfigFeature {\n return { kind: 'responsive', payload: { responsive: query } };\n}\n\n/**\n * Set the app-wide default keyboard shortcut to toggle the sidenav (e.g.\n * `'mod+b'`, which resolves to `ctrl` on Windows/Linux and `meta` on macOS).\n * Per-instance `[shortcut]` still wins.\n *\n * ```ts\n * provideSidenavConfig(withSidenavShortcut('mod+b'));\n * ```\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport function withSidenavShortcut(combo: string): CngxSidenavConfigFeature {\n return { kind: 'shortcut', payload: { shortcut: combo } };\n}\n\n/**\n * Set the app-wide default mini expand-on-hover dwell - `enterDelay` (ms before\n * the rail expands) and `leaveDelay` (ms before it collapses). Flows into the\n * composed `CngxHoverIntent` via `CNGX_HOVER_INTENT_DEFAULTS`. Per-instance\n * `[enterDelay]` / `[leaveDelay]` still win; the shipped literals (120 / 0)\n * apply when neither is set. Partial payloads deep-merge, so pass only the key\n * you want to change.\n *\n * ```ts\n * provideSidenavConfig(withSidenavHoverDwell({ enterDelay: 200, leaveDelay: 150 }));\n * ```\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport function withSidenavHoverDwell(\n payload: NonNullable<CngxSidenavConfig['hover']>,\n): CngxSidenavConfigFeature {\n return { kind: 'hover', payload };\n}\n\n/**\n * Set the app-wide default query-param key for `[cngxSidenavRouterSync]` - the\n * param the sidenav's `opened` state deep-links to. Per-instance `[param]`\n * still wins; the `'nav'` literal applies when neither is set.\n *\n * ```ts\n * provideSidenavConfig(withSidenavRouterSync({ param: 'menu' }));\n * ```\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport function withSidenavRouterSync(\n payload: NonNullable<CngxSidenavConfig['routerSync']>,\n): CngxSidenavConfigFeature {\n return { kind: 'routerSync', payload };\n}\n","/**\n * @module @cngx/ui/sidenav\n */\n\nexport { CngxSidenavLayout } from './sidenav-layout';\nexport { CngxSidenav, type SidenavPosition, type SidenavMode } from './sidenav';\nexport { CNGX_SIDENAV, type CngxSidenavContract } from './sidenav-token';\nexport { CngxSidenavRouterSync } from './sidenav-router-sync.directive';\nexport { CngxSidenavContent } from './sidenav-content';\nexport { CngxSidenavHeader } from './sidenav-header';\nexport { CngxSidenavFooter } from './sidenav-footer';\n\nexport type { CngxSidenavConfig } from './config/sidenav.config';\nexport { CNGX_SIDENAV_CONFIG } from './config/sidenav.config.defaults';\nexport {\n provideSidenavConfig,\n provideSidenavConfigAt,\n type CngxSidenavConfigFeature,\n} from './config/provide-sidenav-config';\nexport {\n withSidenavDimensions,\n withSidenavResponsive,\n withSidenavShortcut,\n withSidenavHoverDwell,\n withSidenavRouterSync,\n} from './config/features';\nexport { injectSidenavConfig } from './config/inject-sidenav-config';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAIA;;;;;;;;;;;;;;;;;;;AAmBG;AACI,MAAM,qBAAqB,GAAsB;AACtD,IAAA,UAAU,EAAE;AACV,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,SAAS,EAAE,MAAM;AACjB,QAAA,QAAQ,EAAE,OAAO;AACjB,QAAA,QAAQ,EAAE,OAA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,KAAK,EAAE,EAAE;AAC3D;AAEA;;;;;;;;;;;;;;AAcG;AACG,SAAU,qBAAqB,CACnC,OAAgD,EAAA;AAEhD,IAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE;AACnC;AAEA;;;;;;;;;;;AAWG;AACG,SAAU,qBAAqB,CACnC,OAAqD,EAAA;AAErD,IAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE;AACxC;;AC7FA;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"cngx-ui-sidenav.mjs","sources":["../../../projects/ui/sidenav/config/sidenav.config.defaults.ts","../../../projects/ui/sidenav/config/inject-sidenav-config.ts","../../../projects/ui/sidenav/sidenav-token.ts","../../../projects/ui/sidenav/sidenav.ts","../../../projects/ui/sidenav/sidenav-layout.ts","../../../projects/ui/sidenav/sidenav-router-sync.directive.ts","../../../projects/ui/sidenav/sidenav-content.ts","../../../projects/ui/sidenav/sidenav-header.ts","../../../projects/ui/sidenav/sidenav-footer.ts","../../../projects/ui/sidenav/config/provide-sidenav-config.ts","../../../projects/ui/sidenav/config/features.ts","../../../projects/ui/sidenav/public-api.ts","../../../projects/ui/sidenav/cngx-ui-sidenav.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nimport type { CngxSidenavConfig } from './sidenav.config';\n\n/**\n * Library defaults for the sidenav configuration cascade. The values are\n * byte-identical to the per-instance input defaults `CngxSidenav` shipped\n * before the cascade (`width '280px'`, `miniWidth '56px'`, `minWidth '120px'`,\n * `maxWidth '600px'`, `enterDelay 120`, `leaveDelay 0`; `responsive` and\n * `shortcut` omitted = `undefined`), so an un-configured consumer sees no\n * change.\n *\n * The `leaveDelay 0` default is kept deliberately (instant collapse, asymmetric\n * with the 120ms enter): the dwell becomes tunable via `[leaveDelay]` /\n * `withSidenavHoverDwell(...)`, not silently changed - the breadcrumb\n * \"un-configured consumer sees no change\" principle.\n *\n * Exported for intra-lib consumers (`provideSidenavConfig` deep-merges with\n * this base) but **NOT** re-exported from `public-api.ts` - downstream\n * consumers reach the defaults via `inject(CNGX_SIDENAV_CONFIG)` so\n * `provideSidenavConfig` / `provideSidenavConfigAt` overrides take precedence.\n *\n * @internal\n */\nexport const CNGX_SIDENAV_DEFAULTS: CngxSidenavConfig = {\n dimensions: {\n width: '280px',\n miniWidth: '56px',\n minWidth: '120px',\n maxWidth: '600px',\n },\n hover: {\n enterDelay: 120,\n leaveDelay: 0,\n },\n // Empty so an un-configured consumer keeps the `'nav'` literal the directive\n // resolves at its use-site - byte-identical to no config.\n routerSync: {},\n};\n\n/**\n * App-wide configuration cascade for the sidenav family. Resolves in priority\n * order:\n *\n * 1. Per-instance Input binding.\n * 2. `provideSidenavConfigAt(...)` in a parent component's `viewProviders`.\n * 3. `provideSidenavConfig(...)` at the application root.\n * 4. Library defaults (this token's `factory`).\n *\n * `providedIn: 'root'` with a default factory means consumers never need to\n * provide the token explicitly - `inject(CNGX_SIDENAV_CONFIG)` always resolves.\n * Consumers who want overrides call `provideSidenavConfig(...)` in\n * `bootstrapApplication` providers (root cascade) or `provideSidenavConfigAt(...)`\n * in a component's `viewProviders` (sub-tree cascade).\n *\n * @category ui/sidenav\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/sidenav/config/sidenav.config.defaults.ts\n * @since 0.1.0\n */\nexport const CNGX_SIDENAV_CONFIG = new InjectionToken<CngxSidenavConfig>(\n 'CNGX_SIDENAV_CONFIG',\n {\n providedIn: 'root',\n factory: () => CNGX_SIDENAV_DEFAULTS,\n },\n);\n","import { inject } from '@angular/core';\n\nimport type { CngxSidenavConfig } from './sidenav.config';\nimport { CNGX_SIDENAV_CONFIG } from './sidenav.config.defaults';\n\n/**\n * Convenience accessor for the sidenav configuration cascade. Runs in injection\n * context; resolves through the priority chain (per-instance Input ->\n * `provideSidenavConfigAt` -> `provideSidenavConfig` -> library defaults).\n * Equivalent to `inject(CNGX_SIDENAV_CONFIG)` - the helper exists so consumers\n * don't import the token directly. Mirrors `injectBreadcrumbConfig` in\n * `@cngx/ui/breadcrumb`.\n *\n * ```ts\n * export class CngxSidenav {\n * private readonly cfg = injectSidenavConfig();\n * readonly width = model<string>(this.cfg.dimensions?.width ?? '280px');\n * }\n * ```\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport function injectSidenavConfig(): CngxSidenavConfig {\n return inject(CNGX_SIDENAV_CONFIG);\n}\n","import { InjectionToken, type ModelSignal } from '@angular/core';\n\n/**\n * Minimal contract a sidenav rail exposes to the router-sync directive: the\n * two-way `opened` signal it reads and writes. Injected via {@link CNGX_SIDENAV}\n * + `useExisting`, never by injecting the concrete `CngxSidenav` class - that\n * would create a cyclic type dependency and block the decompose brain/skin\n * split. The deferred layout-coordination consumer will broaden this contract\n * (with `close()` / `elementRef`) in the branch that migrates\n * `CngxSidenavLayout` onto the token.\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport interface CngxSidenavContract {\n /** Two-way open state; the directive both reads and writes it. */\n readonly opened: ModelSignal<boolean>;\n}\n\n/**\n * Contract token for a sidenav rail. `CngxSidenav` provides it via\n * `{ provide: CNGX_SIDENAV, useExisting: CngxSidenav }`, so a collaborator\n * injects the narrow {@link CngxSidenavContract} instead of the concrete class.\n *\n * @category ui/sidenav\n * @since 0.1.0\n * @relatedTo CngxSidenav, CngxSidenavRouterSync\n */\nexport const CNGX_SIDENAV = new InjectionToken<CngxSidenavContract>('CNGX_SIDENAV');\n","import { type FocusTrap, FocusTrapFactory } from '@angular/cdk/a11y';\nimport { DOCUMENT } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n linkedSignal,\n model,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { matchesKeyCombo, parseKeyCombo } from '@cngx/core/utils';\nimport { CNGX_HOVER_INTENT_DEFAULTS, CngxHoverIntent } from '@cngx/common/interactive';\n\nimport { injectSidenavConfig } from './config/inject-sidenav-config';\nimport { CNGX_SIDENAV } from './sidenav-token';\n\n/**\n * Logical position - flips in RTL.\n *\n * @category ui/sidenav\n */\nexport type SidenavPosition = 'start' | 'end';\n/**\n * How the sidenav interacts with the content area.\n *\n * - `'over'` - floats above content (overlay + backdrop)\n * - `'push'` - pushes content aside when open\n * - `'side'` - always visible, content permanently offset\n * - `'mini'` - collapsed icon rail (miniWidth), expands to full width on hover\n *\n * @category ui/sidenav\n */\nexport type SidenavMode = 'over' | 'push' | 'side' | 'mini';\n\n/**\n * Declarative sidebar component for the four drawer modes (`over`,\n * `push`, `side`, `mini`), with responsive mode switching, two-way\n * `[(opened)]` binding, and content projection via header/footer\n * slots.\n *\n * In overlay (`over`) mode it drives a CDK focus trap directly via\n * `FocusTrapFactory` (the same primitive `CngxFocusTrap` wraps): focus\n * moves into the rail on open and is restored to the opener on close.\n * Responsive switching runs off an inline `matchMedia` listener; the\n * shared backdrop and document scroll lock are coordinated by\n * `CngxSidenavLayout`. It does not compose `CngxDrawer` and has no\n * swipe-to-dismiss.\n *\n * Use inside `CngxSidenavLayout` for dual-sidebar support and\n * shared backdrop coordination.\n *\n * ```html\n * <cngx-sidenav-layout>\n * <cngx-sidenav position=\"start\" [(opened)]=\"navOpen\"\n * [responsive]=\"'(min-width: 1024px)'\">\n * <cngx-sidenav-header>Logo</cngx-sidenav-header>\n * <a cngxNavLink [active]=\"true\">Dashboard</a>\n * <cngx-sidenav-footer>v1.0</cngx-sidenav-footer>\n * </cngx-sidenav>\n * <cngx-sidenav-content>\n * <router-outlet />\n * </cngx-sidenav-content>\n * </cngx-sidenav-layout>\n * ```\n *\n * @category ui/sidenav\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/sidenav/sidenav.ts\n * @since 0.1.0\n * @relatedTo CngxSidenavLayout, CngxSidenavContent, CngxSidenavHeader, CngxSidenavFooter\n * <example-url>http://localhost:4200/#/ui/sidenav/dual-sidebar-master-detail</example-url>\n * <example-url>http://localhost:4200/#/ui/sidenav/full-navigation-sidebar</example-url>\n * <example-url>http://localhost:4200/#/ui/sidenav/material-theming-light-vs-dark</example-url>\n */\n@Component({\n selector: 'cngx-sidenav',\n exportAs: 'cngxSidenav',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./sidenav.css'],\n // Debounced expand-on-hover: CngxHoverIntent's pointerenter/pointerleave\n // listeners replace the sidenav's instant ones so a sweep-through never\n // expands. The directive is composed unconditionally - its listeners arm in\n // every mode - but only `mini` reads its `active()` signal (see hoverSource);\n // non-mini modes gate the debounced result to false downstream. The mini dwell\n // is tunable per instance via [expandDelay]/[collapseDelay] - rail-scoped\n // aliases of the atom's enterDelay/leaveDelay, named for what they do on a rail\n // (\"expand after N ms of hover\", \"collapse after N ms off\") - and app-wide via\n // CNGX_HOVER_INTENT_DEFAULTS (provided from the config below); un-set, the\n // atom's 120/0 literals apply so behaviour stays unchanged.\n hostDirectives: [\n {\n directive: CngxHoverIntent,\n inputs: ['enterDelay: expandDelay', 'leaveDelay: collapseDelay'],\n },\n ],\n // Element-injector provider (not viewProviders): the composed CngxHoverIntent\n // resolves CNGX_HOVER_INTENT_DEFAULTS from the host element injector, so the\n // config-resolved dwell reaches the atom. Un-configured, cfg.hover is the\n // 120/0 default, byte-identical to the atom's own literals.\n providers: [\n { provide: CNGX_HOVER_INTENT_DEFAULTS, useFactory: () => injectSidenavConfig().hover ?? {} },\n { provide: CNGX_SIDENAV, useExisting: CngxSidenav },\n ],\n host: {\n '[class.cngx-sidenav]': 'true',\n '[class.cngx-sidenav--start]': \"position() === 'start'\",\n '[class.cngx-sidenav--end]': \"position() === 'end'\",\n '[class.cngx-sidenav--open]': 'opened()',\n '[class.cngx-sidenav--over]': \"effectiveMode() === 'over'\",\n '[class.cngx-sidenav--push]': \"effectiveMode() === 'push'\",\n '[class.cngx-sidenav--side]': \"effectiveMode() === 'side'\",\n '[class.cngx-sidenav--mini]': \"effectiveMode() === 'mini'\",\n '[class.cngx-sidenav--expanded]': 'expanded()',\n '[class.cngx-sidenav--resizable]': 'resizable()',\n '[class.cngx-sidenav--resizing]': 'resizing()',\n '[attr.aria-hidden]':\n \"effectiveMode() === 'side' || effectiveMode() === 'mini' ? null : !opened()\",\n '[attr.aria-modal]': \"overlayActive() ? 'true' : null\",\n '[style.--cngx-sidenav-width]': 'effectiveWidth()',\n '[style.--cngx-sidenav-mini-width]': 'miniWidth()',\n role: 'complementary',\n '[attr.aria-label]': 'ariaLabel() || null',\n '(keydown.escape)': 'closeIfOverlay()',\n },\n template: `\n <ng-content select=\"cngx-sidenav-header, [cngxSidenavHeader]\" />\n <div class=\"cngx-sidenav__body\">\n <ng-content />\n </div>\n <ng-content select=\"cngx-sidenav-footer, [cngxSidenavFooter]\" />\n @if (resizable()) {\n <div\n class=\"cngx-sidenav__resize-handle\"\n (pointerdown)=\"handleResizeStart($event)\"\n role=\"separator\"\n [attr.aria-orientation]=\"'vertical'\"\n [attr.aria-valuenow]=\"widthPx()\"\n [attr.aria-valuemin]=\"minWidthPx()\"\n [attr.aria-valuemax]=\"maxWidthPx()\"\n ></div>\n }\n `,\n})\nexport class CngxSidenav {\n /**\n * Resolved sidenav configuration cascade. Seeds the dimension, `responsive`,\n * and `shortcut` input defaults below so a per-instance binding still wins\n * (Controlled+Uncontrolled), an app-wide `provideSidenavConfig(...)` moves the\n * default, and an un-configured consumer keeps the byte-identical literals.\n * Declared first so the input field initialisers can read it.\n */\n private readonly cfg = injectSidenavConfig();\n\n /** Logical position: `'start'` (default left in LTR) or `'end'` (right in LTR). */\n readonly position = input<SidenavPosition>('start');\n\n /** Accessible label for the complementary landmark. */\n readonly ariaLabel = input<string | undefined>(undefined);\n\n /** Drawer mode. Overridden by `responsive` when set. */\n readonly mode = input<SidenavMode>('over');\n\n /**\n * CSS media query string for responsive mode switching.\n * When the query matches, mode becomes `'side'` (permanent).\n * When it doesn't match, mode becomes `'over'` (overlay).\n */\n readonly responsive = input<string | undefined>(this.cfg.responsive);\n\n /** Width of the sidenav panel. Supports two-way `[(width)]` for resize. */\n readonly width = model<string>(this.cfg.dimensions?.width ?? '280px');\n\n /** Width of the collapsed rail in `mini` mode. Any CSS value. */\n readonly miniWidth = input<string>(this.cfg.dimensions?.miniWidth ?? '56px');\n\n /** Whether hovering the mini rail expands the sidenav to full width. */\n readonly expandOnHover = input<boolean>(true);\n\n /** Whether the sidebar is user-resizable via a drag handle. */\n readonly resizable = input<boolean>(false);\n\n /** Minimum width constraint during resize. */\n readonly minWidth = input<string>(this.cfg.dimensions?.minWidth ?? '120px');\n\n /** Maximum width constraint during resize. */\n readonly maxWidth = input<string>(this.cfg.dimensions?.maxWidth ?? '600px');\n\n /**\n * Keyboard shortcut to toggle the sidenav, e.g. `'ctrl+b'` or `'meta+b'`.\n * Uses `ctrl` on Windows/Linux and `meta` (Cmd) on macOS automatically\n * when `'mod+<key>'` syntax is used.\n */\n readonly shortcut = input<string | undefined>(this.cfg.shortcut);\n\n /** Whether a resize drag is in progress. */\n private readonly resizingState = signal(false);\n readonly resizing = this.resizingState.asReadonly();\n\n /** Two-way opened state. Supports `[(opened)]=\"signal\"`. */\n readonly opened = model<boolean>(false);\n\n /** Debounced mini expand-on-hover, composed as a hostDirective (its own pointer listeners drive it). */\n private readonly hoverIntent = inject(CngxHoverIntent, { host: true });\n\n /**\n * Composed source for `expandedState`: the effective mode, the debounced\n * hover-intent signal, and the on/off switch. Carries an explicit `equal` so\n * the object literal never churns identity and re-runs the computation when\n * none of the three fields actually changed.\n */\n private readonly hoverSource = computed(\n () => ({\n mode: this.effectiveMode(),\n hover: this.hoverIntent.active(),\n enabled: this.expandOnHover(),\n }),\n { equal: (a, b) => a.mode === b.mode && a.hover === b.hover && a.enabled === b.enabled },\n );\n\n /**\n * Whether the mini-mode rail is currently expanded. A pure derivation of\n * `(effectiveMode, hoverIntent.active, expandOnHover)`, not two imperative\n * event-handler writes:\n *\n * - outside `mini` it is always `false`;\n * - with `expandOnHover=true` the debounced hover is the source of truth, so a\n * pointer edge overrides a prior `expand()`/`collapse()` (see `expand()`);\n * - with `expandOnHover=false` hover is ignored and the prior value is kept, so\n * `expand()`/`collapse()` retain full programmatic authority.\n *\n * It stays a writable `linkedSignal` so `expand()`/`collapse()` can `set()` it;\n * the next source change re-derives from the debounced hover.\n */\n private readonly expandedState = linkedSignal<\n { mode: SidenavMode; hover: boolean; enabled: boolean },\n boolean\n >({\n source: this.hoverSource,\n computation: ({ mode, hover, enabled }, prev) => {\n if (mode !== 'mini') {\n return false;\n }\n return enabled ? hover : (prev?.value ?? false);\n },\n });\n readonly expanded = this.expandedState.asReadonly();\n\n /** @internal Reference to host element for layout positioning. */\n readonly elementRef = inject(ElementRef<HTMLElement>);\n\n // Inlined matchMedia - host directive would force a wrapper element.\n private readonly mediaMatches = signal(false);\n\n /** Resolved mode - responsive overrides to `'side'` when matching, falls back to `mode()`. */\n readonly effectiveMode = computed<SidenavMode>(() => {\n if (!this.responsive()) {\n return this.mode();\n }\n return this.mediaMatches() ? 'side' : this.mode();\n });\n\n /** Whether this sidenav is in overlay mode (over). */\n readonly isOverlay = computed(() => this.effectiveMode() === 'over');\n\n /** Whether the sidenav is currently a modal overlay: overlay mode and open. */\n readonly overlayActive = computed(() => this.isOverlay() && this.opened());\n\n /** Resolved width - mini mode uses miniWidth unless expanded. */\n readonly effectiveWidth = computed(() => {\n if (this.effectiveMode() === 'mini' && !this.expandedState()) {\n return this.miniWidth();\n }\n return this.width();\n });\n\n private readonly doc = inject(DOCUMENT);\n private readonly win = this.doc.defaultView;\n\n /**\n * Current/previous effective-mode pair for transition detection. Mirrors the\n * `createTransitionTracker` shape from `@cngx/core/utils`, inlined because that\n * helper is typed to `AsyncStatus`; `SidenavMode` needs the same `linkedSignal`\n * pattern. Replaces the hand-rolled `prevMode` signal that was `.set()` inside\n * the mode effect.\n */\n private readonly modeTransition = linkedSignal<\n SidenavMode,\n { current: SidenavMode; previous: SidenavMode | undefined }\n >({\n source: () => this.effectiveMode(),\n computation: (current, prev) => ({ current, previous: prev?.value.current }),\n equal: (a, b) => a.current === b.current && a.previous === b.previous,\n });\n\n /** CDK focus trap over the host; enabled only while a modal overlay is open. */\n private readonly focusTrap: FocusTrap;\n\n /** Element that held focus when the overlay opened, restored to it on close. */\n private restoreTarget: HTMLElement | null = null;\n\n /**\n * Set when the mode-transition effect auto-opens an overlay (a viewport-driven\n * `side`/`mini` -> `over` switch). The focus effect reads it to enable the trap\n * without pulling focus into the rail, since that open was not user-initiated.\n */\n private autoOpenInFlight = false;\n\n /** Aborts the in-flight resize drag's document listeners (pointerup or teardown). */\n private resizeAbort: AbortController | null = null;\n\n constructor() {\n this.focusTrap = inject(FocusTrapFactory).create(this.elementRef.nativeElement as HTMLElement);\n\n // Modal-overlay focus contract: on the open edge move focus into the rail\n // and trap it; on the close edge restore focus to whatever opened it, after\n // the DOM settles. overlayActive is the single tracked trigger; restoreTarget\n // is a plain field, not a signal, so this stays a pure side-effect and never\n // feeds a write back into the reactive graph.\n let wasOverlayActive = false;\n effect(() => {\n const active = this.overlayActive();\n this.focusTrap.enabled = active;\n if (active && !wasOverlayActive) {\n // Only pull focus into the rail when the open was user-initiated. An\n // auto-open driven by a responsive mode switch (viewport resize) engages\n // the trap - the rail is now modal - but must not steal focus.\n const viaAutoOpen = this.autoOpenInFlight;\n this.autoOpenInFlight = false;\n if (!viaAutoOpen) {\n const activeEl = this.doc.activeElement;\n this.restoreTarget = activeEl instanceof HTMLElement ? activeEl : null;\n void this.focusTrap.focusFirstTabbableElementWhenReady();\n }\n } else if (!active && wasOverlayActive) {\n const target = this.restoreTarget;\n this.restoreTarget = null;\n queueMicrotask(() => target?.focus());\n }\n wasOverlayActive = active;\n });\n\n inject(DestroyRef).onDestroy(() => {\n this.focusTrap.destroy();\n this.resizeAbort?.abort();\n });\n\n effect((onCleanup) => {\n const query = this.responsive();\n const win = this.win;\n if (!query || !win) {\n return;\n }\n const mql = win.matchMedia(query);\n this.mediaMatches.set(mql.matches);\n const handler = (e: MediaQueryListEvent): void => this.mediaMatches.set(e.matches);\n mql.addEventListener('change', handler);\n onCleanup(() => mql.removeEventListener('change', handler));\n });\n\n // Global hotkey: document listener inside effect(onCleanup) so the combo\n // signal can re-register at runtime. Host listeners cannot rebind.\n const isMac = this.win?.navigator?.userAgent?.includes('Mac') ?? false;\n effect((onCleanup) => {\n const shortcut = this.shortcut();\n if (!shortcut) {\n return;\n }\n const combo = parseKeyCombo(shortcut);\n const handler = (e: KeyboardEvent): void => {\n if (matchesKeyCombo(e, combo, isMac)) {\n e.preventDefault();\n this.opened.set(!this.opened());\n }\n };\n this.doc.addEventListener('keydown', handler);\n onCleanup(() => this.doc.removeEventListener('keydown', handler));\n });\n\n // Residual transition side-effect, not a derivation: opened is a consumer\n // model() the user can still toggle, so leaving an always-visible mode for an\n // overlay mode auto-opens the rail once. Guarded by the current/previous\n // compare so it fires only on the transition edge.\n effect(() => {\n const { current, previous } = this.modeTransition();\n if (previous === undefined || current === previous) {\n return;\n }\n const alwaysVisible = (m: SidenavMode) => m === 'side' || m === 'mini';\n if (alwaysVisible(previous) && !alwaysVisible(current)) {\n // Flag only overlay auto-opens so the focus effect skips the focus-move.\n // `over` is the only overlay mode; a `push` auto-open never raises\n // overlayActive, so it must not leave the flag stuck for a later open.\n this.autoOpenInFlight = current === 'over';\n this.opened.set(true);\n }\n });\n }\n\n /** Opens the sidenav. */\n open(): void {\n this.opened.set(true);\n }\n\n /** Closes the sidenav (only in over/push mode). No-op in side/mini mode. */\n close(): void {\n const mode = this.effectiveMode();\n if (mode !== 'side' && mode !== 'mini') {\n this.opened.set(false);\n }\n }\n\n /** Toggles the sidenav. */\n toggle(): void {\n if (this.opened()) {\n this.close();\n } else {\n this.open();\n }\n }\n\n /** @internal Close only if in overlay mode (for Escape key, click-outside). */\n protected closeIfOverlay(): void {\n if (this.isOverlay()) {\n this.close();\n }\n }\n\n /**\n * Expand the mini rail to full width.\n *\n * When `expandOnHover=true` (the default) the debounced hover is the source of\n * truth for `expanded`, so a programmatic `expand()` is transient: the next\n * pointer edge overrides it. For authoritative programmatic control set\n * `expandOnHover=false`, which hands `expand()`/`collapse()` full authority.\n */\n expand(): void {\n this.expandedState.set(true);\n }\n\n /**\n * Collapse the expanded mini rail back to miniWidth.\n *\n * Same reconciliation as `expand()`: transient while `expandOnHover=true`,\n * authoritative while `expandOnHover=false`.\n */\n collapse(): void {\n this.expandedState.set(false);\n }\n\n /** @internal Parse a CSS px value to a number. */\n protected readonly widthPx = computed(() => Number.parseInt(this.width(), 10) || 280);\n protected readonly minWidthPx = computed(() => Number.parseInt(this.minWidth(), 10) || 120);\n protected readonly maxWidthPx = computed(() => Number.parseInt(this.maxWidth(), 10) || 600);\n\n /** @internal */\n handleResizeStart(e: PointerEvent): void {\n if (!this.resizable()) {\n return;\n }\n e.preventDefault();\n (e.target as HTMLElement).setPointerCapture(e.pointerId);\n\n this.resizingState.set(true);\n const startX = e.clientX;\n const el = this.elementRef.nativeElement as HTMLElement;\n const startWidth = el.getBoundingClientRect().width;\n const isEnd = this.position() === 'end';\n const min = this.minWidthPx();\n const max = this.maxWidthPx();\n let currentWidth = startWidth;\n let rafId = 0;\n\n // One controller per drag removes both document listeners in a single abort:\n // on pointerup below, and - critically - if the component is torn down\n // mid-drag (the onDestroy hook aborts this.resizeAbort).\n const controller = new AbortController();\n this.resizeAbort = controller;\n\n const onMove = (ev: PointerEvent): void => {\n const delta = isEnd ? startX - ev.clientX : ev.clientX - startX;\n currentWidth = Math.round(Math.max(min, Math.min(max, startWidth + delta)));\n // CSS var on the DOM node directly, no CD per frame during drag.\n if (!rafId) {\n rafId = requestAnimationFrame(() => {\n el.style.setProperty('--cngx-sidenav-width', `${currentWidth}px`);\n rafId = 0;\n });\n }\n };\n\n const onUp = (): void => {\n cancelAnimationFrame(rafId);\n this.resizingState.set(false);\n // Single CD on pointerup - model catches up with the DOM.\n this.width.set(`${currentWidth}px`);\n controller.abort();\n this.resizeAbort = null;\n };\n\n this.doc.addEventListener('pointermove', onMove, { signal: controller.signal });\n this.doc.addEventListener('pointerup', onUp, { signal: controller.signal });\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n DestroyRef,\n effect,\n inject,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { fromEvent } from 'rxjs';\nimport { CngxSidenav } from './sidenav';\n\n/**\n * Container for one or two `CngxSidenav` panels and a `CngxSidenavContent`.\n *\n * Manages shared backdrop, scroll lock, and click-outside coordination.\n * Supports up to two sidenavs: one `position=\"start\"` and one `position=\"end\"`.\n *\n * ### Dual sidebar\n * ```html\n * <cngx-sidenav-layout>\n * <cngx-sidenav position=\"start\" [(opened)]=\"navOpen\"\n * [responsive]=\"'(min-width: 1024px)'\">\n * Left nav\n * </cngx-sidenav>\n * <cngx-sidenav-content>\n * Main content\n * </cngx-sidenav-content>\n * <cngx-sidenav position=\"end\" [(opened)]=\"detailOpen\">\n * Right detail panel\n * </cngx-sidenav>\n * </cngx-sidenav-layout>\n * ```\n *\n * @category ui/sidenav\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/sidenav/sidenav-layout.ts\n * @since 0.1.0\n * @relatedTo CngxSidenav, CngxSidenavContent, CngxSidenavHeader, CngxSidenavFooter\n */\n@Component({\n selector: 'cngx-sidenav-layout',\n exportAs: 'cngxSidenavLayout',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./sidenav-layout.css'],\n host: {\n '[class.cngx-sidenav-layout]': 'true',\n '[class.cngx-sidenav-layout--ready]': 'ready()',\n '[class.cngx-sidenav-layout--has-overlay]': 'hasOverlay()',\n },\n template: `\n <ng-content select=\"cngx-sidenav[position=start], cngx-sidenav:not([position])\" />\n <ng-content select=\"cngx-sidenav-content\" />\n <ng-content select=\"cngx-sidenav[position=end]\" />\n @if (hasOverlay()) {\n <div class=\"cngx-sidenav-backdrop\" (click)=\"closeAllOverlays()\"></div>\n }\n `,\n})\nexport class CngxSidenavLayout {\n /** @internal */\n readonly ready = signal(false);\n\n private readonly sidenavs = contentChildren(CngxSidenav);\n\n /** The start-positioned sidenav, if any. */\n readonly startSidenav = computed(\n () => this.sidenavs().find((s) => s.position() === 'start') ?? null,\n );\n\n /** The end-positioned sidenav, if any. */\n readonly endSidenav = computed(() => this.sidenavs().find((s) => s.position() === 'end') ?? null);\n\n /** Whether any sidenav is open in overlay mode. */\n readonly hasOverlay = computed(() => this.sidenavs().some((s) => s.isOverlay() && s.opened()));\n\n constructor() {\n const doc = inject(DOCUMENT);\n\n // Gate transitions until after first render - prevents open-on-load flash.\n afterNextRender(() => this.ready.set(true));\n\n // Dataset ref-counting matches CngxScrollLock so concurrent lock sources\n // do not clobber each other's restore values.\n const html = doc.documentElement;\n const locked = signal(false);\n\n effect(() => {\n if (this.hasOverlay() && !locked()) {\n if (!html.dataset['cngxPrevOverflow']) {\n html.dataset['cngxPrevOverflow'] = html.style.overflow;\n html.dataset['cngxPrevScrollbarGutter'] = html.style.scrollbarGutter;\n }\n html.style.overflow = 'hidden';\n html.style.scrollbarGutter = 'stable';\n locked.set(true);\n } else if (!this.hasOverlay() && locked()) {\n html.style.overflow = html.dataset['cngxPrevOverflow'] ?? '';\n html.style.scrollbarGutter = html.dataset['cngxPrevScrollbarGutter'] ?? '';\n delete html.dataset['cngxPrevOverflow'];\n delete html.dataset['cngxPrevScrollbarGutter'];\n locked.set(false);\n }\n });\n\n inject(DestroyRef).onDestroy(() => {\n if (locked()) {\n html.style.overflow = html.dataset['cngxPrevOverflow'] ?? '';\n html.style.scrollbarGutter = html.dataset['cngxPrevScrollbarGutter'] ?? '';\n delete html.dataset['cngxPrevOverflow'];\n delete html.dataset['cngxPrevScrollbarGutter'];\n }\n });\n\n // Dismiss on pointerdown, not click: an external open-trigger's pointerdown\n // fires before the click that flips opened(), so hasOverlay() is still false\n // here at that point and the same-gesture open cannot self-close.\n fromEvent<PointerEvent>(doc, 'pointerdown')\n .pipe(takeUntilDestroyed())\n .subscribe((e) => {\n if (!this.hasOverlay()) {\n return;\n }\n for (const nav of this.sidenavs()) {\n if (\n nav.isOverlay() &&\n nav.opened() &&\n !(nav.elementRef.nativeElement as HTMLElement).contains(e.target as Node)\n ) {\n nav.close();\n }\n }\n });\n }\n\n /** Closes all sidenavs that are currently in overlay mode. */\n closeAllOverlays(): void {\n for (const nav of this.sidenavs()) {\n if (nav.isOverlay() && nav.opened()) {\n nav.close();\n }\n }\n }\n}\n","import { computed, Directive, inject, input, output } from '@angular/core';\nimport { injectQueryParamSync } from '@cngx/common/layout';\n\nimport { injectSidenavConfig } from './config/inject-sidenav-config';\nimport { CNGX_SIDENAV } from './sidenav-token';\n\n/**\n * Deep-links a sidenav's open state into a query param. Opt-in via\n * `[cngxSidenavRouterSync]` on a `<cngx-sidenav>`: opening writes `?nav=open`,\n * an initial `?nav=open` hydrates it open, closing removes the param, and\n * browser back/forward re-hydrates it. A thin caller over\n * `injectQueryParamSync` - it reaches the rail through the {@link CNGX_SIDENAV}\n * contract token, never the concrete class.\n *\n * The `param` default cascades: per-instance `[param]` wins, then\n * `withSidenavRouterSync({ param })` on `CNGX_SIDENAV_CONFIG`, then the `'nav'`\n * literal. Without `@angular/router` the kernel dev-warns once and no-ops.\n *\n * @category ui/sidenav\n * @docsKind primary\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/sidenav/sidenav-router-sync.directive.ts\n * @since 0.1.0\n * @relatedTo CngxSidenav, CNGX_SIDENAV, injectQueryParamSync\n * <example-url>http://localhost:4200/#/ui/sidenav/router-sync/deep-linkable-overlay</example-url>\n */\n@Directive({\n selector: '[cngxSidenavRouterSync]',\n exportAs: 'cngxSidenavRouterSync',\n standalone: true,\n})\nexport class CngxSidenavRouterSync {\n private readonly sidenav = inject(CNGX_SIDENAV, { host: true });\n private readonly cfg = injectSidenavConfig();\n\n /**\n * Raw `[param]` input. Read the resolved {@link param} computed instead.\n * @internal\n */\n readonly paramInput = input<string | undefined>(undefined, { alias: 'param' });\n\n /** Resolved query-param key: `[param]` -> config `routerSync.param` -> `'nav'`. */\n readonly param = computed(() => this.paramInput() ?? this.cfg.routerSync?.param ?? 'nav');\n\n /** Emits when a `router.navigate` rejection is observed. Parity with the stepper sibling. */\n readonly syncError = output<unknown>();\n\n constructor() {\n // Pass the `param` computed itself, never `this.param()` - a constructor-time\n // read would freeze the resolved value and ignore a later-bound `[param]`.\n injectQueryParamSync(this.sidenav.opened, {\n param: this.param,\n onSyncError: (err) => this.syncError.emit(err),\n });\n }\n}\n","import { ChangeDetectionStrategy, Component, inject, ViewEncapsulation } from '@angular/core';\nimport { CngxSidenavLayout } from './sidenav-layout';\n\n/**\n * Main content area within a `CngxSidenavLayout`.\n *\n * Auto-adjusts margins when sibling sidenavs are in `push` or `side`\n * mode. Must be a direct child of `CngxSidenavLayout`.\n *\n * ```html\n * <cngx-sidenav-layout>\n * <cngx-sidenav position=\"start\">…</cngx-sidenav>\n * <cngx-sidenav-content>\n * <router-outlet />\n * </cngx-sidenav-content>\n * </cngx-sidenav-layout>\n * ```\n *\n * @category ui/sidenav\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/sidenav/sidenav-content.ts\n * @since 0.1.0\n * @relatedTo CngxSidenavLayout, CngxSidenav\n */\n@Component({\n selector: 'cngx-sidenav-content',\n exportAs: 'cngxSidenavContent',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n '[class.cngx-sidenav-content]': 'true',\n '[style.margin-inline-start]': 'marginStart',\n '[style.margin-inline-end]': 'marginEnd',\n },\n template: `<ng-content />`,\n})\nexport class CngxSidenavContent {\n private readonly layout = inject(CngxSidenavLayout, { optional: true });\n\n constructor() {\n if (!this.layout) {\n throw new Error('cngx-sidenav-content must be placed inside a cngx-sidenav-layout.');\n }\n }\n\n /**\n * Margin offset for the start sidenav.\n *\n * Push and side modes use `position: relative` - the sidenav sits in\n * the flex flow and the content shrinks naturally via `flex: 1`.\n * No margin needed. Over mode uses `position: absolute` - no margin needed\n * either since the sidenav floats above content.\n *\n * Kept as a public computed so tests and consumers can still read it.\n */\n readonly marginStart = '0';\n\n /** Margin offset for the end sidenav - same rationale as start. */\n readonly marginEnd = '0';\n}\n","import { Directive } from '@angular/core';\n\n/**\n * Top region of `<cngx-sidenav>`. Sits before the scrolling body in\n * the sidenav's flex column, so it stays pinned at the top while the\n * body scrolls. Not `position: sticky` - a non-shrinking flex sibling\n * with `flex-shrink: 0`.\n *\n * Two selector forms:\n * - `<cngx-sidenav-header>` element wrapper for arbitrary content.\n * - `[cngxSidenavHeader]` attribute for native landmarks like\n * `<header>` so the landmark a11y comes from the element itself.\n *\n * Adds the `cngx-sidenav-header` class for theming via\n * `--cngx-sidenav-header-bg` and `--cngx-sidenav-header-font-size`.\n *\n * In `mini` mode (collapsed rail, not expanded) the region clips to\n * `miniWidth` with `overflow: hidden`, centred text, and tight\n * padding. Design the projected content to survive the rail width:\n * an icon-sized logo works, a wordmark gets cropped.\n *\n * Typical content: logo, app name, close trigger.\n *\n * ```html\n * <cngx-sidenav>\n * <cngx-sidenav-header>Acme HR</cngx-sidenav-header>\n * ...\n * </cngx-sidenav>\n * ```\n *\n * @category ui/sidenav\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/sidenav/sidenav-header.ts\n * @selector cngx-sidenav-header\n * @since 0.1.0\n * @relatedTo CngxSidenav, CngxSidenavFooter, CngxSidenavLayout\n */\n@Directive({\n selector: 'cngx-sidenav-header, [cngxSidenavHeader]',\n standalone: true,\n host: { '[class.cngx-sidenav-header]': 'true' },\n})\nexport class CngxSidenavHeader {}\n","import { Directive } from '@angular/core';\n\n/**\n * Bottom region of `<cngx-sidenav>`. Mirror of `CngxSidenavHeader`:\n * a non-shrinking flex sibling after the scrolling body, so it stays\n * pinned at the bottom while the body scrolls. Not `position:\n * sticky`.\n *\n * Two selector forms:\n * - `<cngx-sidenav-footer>` element wrapper for arbitrary content.\n * - `[cngxSidenavFooter]` attribute for native landmarks like\n * `<footer>` so the landmark a11y comes from the element itself.\n *\n * Adds the `cngx-sidenav-footer` class for theming via\n * `--cngx-sidenav-footer-bg`, `--cngx-sidenav-footer-border-color`,\n * and `--cngx-sidenav-footer-font-size`.\n *\n * In `mini` mode (collapsed rail, not expanded) the region clips to\n * `miniWidth` with `overflow: hidden` and centred text - same\n * caveat as the header. An icon + tooltip pattern survives the\n * rail; a multi-line copyright line does not.\n *\n * Typical content: version badge, account menu trigger, secondary\n * nav, sign-out button.\n *\n * ```html\n * <cngx-sidenav>\n * ...\n * <cngx-sidenav-footer>v2.4.0</cngx-sidenav-footer>\n * </cngx-sidenav>\n * ```\n *\n * @category ui/sidenav\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/sidenav/sidenav-footer.ts\n * @selector cngx-sidenav-footer\n * @since 0.1.0\n * @relatedTo CngxSidenav, CngxSidenavHeader, CngxSidenavLayout\n */\n@Directive({\n selector: 'cngx-sidenav-footer, [cngxSidenavFooter]',\n standalone: true,\n host: { '[class.cngx-sidenav-footer]': 'true' },\n})\nexport class CngxSidenavFooter {}\n","import {\n inject,\n makeEnvironmentProviders,\n type EnvironmentProviders,\n type Provider,\n} from '@angular/core';\n\nimport type { CngxSidenavConfig } from './sidenav.config';\nimport {\n CNGX_SIDENAV_CONFIG,\n CNGX_SIDENAV_DEFAULTS,\n} from './sidenav.config.defaults';\n\n/**\n * Discriminated-union shape returned by the sidenav config features -\n * `withSidenavDimensions`, `withSidenavResponsive`, `withSidenavShortcut`,\n * `withSidenavHoverDwell`, and `withSidenavRouterSync`. The reducer in\n * `provideSidenavConfig` / `provideSidenavConfigAt` matches on `kind` and merges\n * `payload` into the corresponding config sub-tree: `dimensions`, `hover`, and\n * `routerSync` are one-level nested sub-trees, `responsive` and `shortcut` are\n * flat top-level scalars. Mirrors `CngxBreadcrumbConfigFeature` from\n * `@cngx/ui/breadcrumb` (nested-sub-tree style; the stepper family uses flat\n * scalar keys instead).\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport type CngxSidenavConfigFeature =\n | {\n readonly kind: 'dimensions';\n readonly payload: NonNullable<CngxSidenavConfig['dimensions']>;\n }\n | {\n readonly kind: 'hover';\n readonly payload: NonNullable<CngxSidenavConfig['hover']>;\n }\n | {\n readonly kind: 'routerSync';\n readonly payload: NonNullable<CngxSidenavConfig['routerSync']>;\n }\n | {\n readonly kind: 'responsive';\n readonly payload: { readonly responsive: string };\n }\n | {\n readonly kind: 'shortcut';\n readonly payload: { readonly shortcut: string };\n };\n\n/**\n * Reduces a list of feature objects into a partial config - last write wins\n * per sub-tree. The nested `dimensions` / `hover` sub-trees are spread-merged\n * so partial overrides compose cleanly with prior writes.\n *\n * @internal\n */\nfunction reduceFeatures(\n features: readonly CngxSidenavConfigFeature[],\n): Partial<CngxSidenavConfig> {\n const out: {\n dimensions?: NonNullable<CngxSidenavConfig['dimensions']>;\n hover?: NonNullable<CngxSidenavConfig['hover']>;\n routerSync?: NonNullable<CngxSidenavConfig['routerSync']>;\n responsive?: string;\n shortcut?: string;\n } = {};\n for (const f of features) {\n switch (f.kind) {\n case 'dimensions':\n out.dimensions = { ...out.dimensions, ...f.payload };\n break;\n case 'hover':\n out.hover = { ...out.hover, ...f.payload };\n break;\n case 'routerSync':\n out.routerSync = { ...out.routerSync, ...f.payload };\n break;\n case 'responsive':\n out.responsive = f.payload.responsive;\n break;\n case 'shortcut':\n out.shortcut = f.payload.shortcut;\n break;\n }\n }\n return out;\n}\n\n/**\n * Two-level deep merge: the nested sub-tree keys (`dimensions` / `hover`) are\n * spread-merged so the partial fills in missing keys without nuking unrelated\n * config sub-trees; the flat top-level scalars (`responsive` / `shortcut`) take\n * the partial when present, else the base. Inner objects are flat (one level),\n * so a single spread per key suffices. Invariant: a config key nested more than\n * one level deep would shallow-merge silently here - if the config ever grows a\n * deeper sub-tree, add a dedicated spread for it rather than relying on this\n * pass.\n *\n * @internal\n */\nfunction mergeConfig(\n base: CngxSidenavConfig,\n partial: Partial<CngxSidenavConfig>,\n): CngxSidenavConfig {\n return {\n dimensions: { ...base.dimensions, ...partial.dimensions },\n hover: { ...base.hover, ...partial.hover },\n routerSync: { ...base.routerSync, ...partial.routerSync },\n responsive: partial.responsive ?? base.responsive,\n shortcut: partial.shortcut ?? base.shortcut,\n };\n}\n\n/**\n * Application-root configuration cascade for the sidenav family. Pass any\n * combination of `withSidenavDimensions`, `withSidenavResponsive`,\n * `withSidenavShortcut`, `withSidenavHoverDwell`, and `withSidenavRouterSync`\n * features in `bootstrapApplication`'s providers array.\n *\n * Resolution priority (high -> low):\n * 1. Per-instance Input binding.\n * 2. `provideSidenavConfigAt(...)` in a parent component's `viewProviders`.\n * 3. `provideSidenavConfig(...)` at the application root.\n * 4. Library defaults (`CNGX_SIDENAV_DEFAULTS`).\n *\n * The provider deep-merges supplied features with the library defaults so\n * consumers only declare keys they want to override.\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [\n * provideSidenavConfig(\n * withSidenavDimensions({ width: '320px' }),\n * withSidenavShortcut('mod+b'),\n * ),\n * ],\n * });\n * ```\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport function provideSidenavConfig(\n ...features: CngxSidenavConfigFeature[]\n): EnvironmentProviders {\n // Empty-features: skip the override so the root factory's\n // CNGX_SIDENAV_DEFAULTS reference flows through untouched. A fresh\n // mergeConfig(...) would allocate identical content under a new reference and\n // bust downstream identity comparisons.\n if (features.length === 0) {\n return makeEnvironmentProviders([]);\n }\n const partial = reduceFeatures(features);\n return makeEnvironmentProviders([\n {\n provide: CNGX_SIDENAV_CONFIG,\n useValue: mergeConfig(CNGX_SIDENAV_DEFAULTS, partial),\n },\n ]);\n}\n\n/**\n * Component-scoped configuration cascade for the sidenav family. Pass any\n * combination of feature factories in a parent component's `viewProviders`\n * array.\n *\n * Unlike `provideSidenavConfig` (root-only), `provideSidenavConfigAt` injects\n * the parent injector's `CNGX_SIDENAV_CONFIG` value (resolves through the\n * priority chain - root provider, library defaults, or another\n * `provideSidenavConfigAt` further up) and deep-merges the supplied features on\n * top. Descendant sidenav instances see the merged config; sibling sub-trees\n * keep the inherited value untouched.\n *\n * ```ts\n * @Component({\n * viewProviders: [\n * provideSidenavConfigAt(withSidenavDimensions({ width: '320px' })),\n * ],\n * template: '<cngx-sidenav>...</cngx-sidenav>',\n * })\n * class Section {}\n * ```\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport function provideSidenavConfigAt(\n ...features: CngxSidenavConfigFeature[]\n): Provider[] {\n // Empty-features call: parent value flows through untouched. Skipping the\n // factory preserves reference identity through the sub-tree.\n if (features.length === 0) {\n return [];\n }\n const partial = reduceFeatures(features);\n return [\n {\n provide: CNGX_SIDENAV_CONFIG,\n useFactory: () => {\n const parent = inject(CNGX_SIDENAV_CONFIG, { skipSelf: true });\n return mergeConfig(parent, partial);\n },\n },\n ];\n}\n","import type { CngxSidenavConfig } from './sidenav.config';\nimport type { CngxSidenavConfigFeature } from './provide-sidenav-config';\n\n/**\n * Override the sidenav family's panel dimensions - `width`, `miniWidth`,\n * `minWidth`, and `maxWidth`. Per-instance `[width]` / `[miniWidth]` /\n * `[minWidth]` / `[maxWidth]` bindings still win over the cascade; this only\n * moves the defaults. Partial payloads deep-merge, so pass only the keys you\n * want to change.\n *\n * ```ts\n * provideSidenavConfig(withSidenavDimensions({ width: '320px', miniWidth: '64px' }));\n * ```\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport function withSidenavDimensions(\n payload: NonNullable<CngxSidenavConfig['dimensions']>,\n): CngxSidenavConfigFeature {\n return { kind: 'dimensions', payload };\n}\n\n/**\n * Set the app-wide default CSS media-query string for responsive mode\n * switching. When the query matches, the sidenav resolves to `'side'`;\n * otherwise it falls back to its `mode`. Per-instance `[responsive]` still\n * wins.\n *\n * ```ts\n * provideSidenavConfig(withSidenavResponsive('(min-width: 1024px)'));\n * ```\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport function withSidenavResponsive(query: string): CngxSidenavConfigFeature {\n return { kind: 'responsive', payload: { responsive: query } };\n}\n\n/**\n * Set the app-wide default keyboard shortcut to toggle the sidenav (e.g.\n * `'mod+b'`, which resolves to `ctrl` on Windows/Linux and `meta` on macOS).\n * Per-instance `[shortcut]` still wins.\n *\n * ```ts\n * provideSidenavConfig(withSidenavShortcut('mod+b'));\n * ```\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport function withSidenavShortcut(combo: string): CngxSidenavConfigFeature {\n return { kind: 'shortcut', payload: { shortcut: combo } };\n}\n\n/**\n * Set the app-wide default mini expand-on-hover dwell - `enterDelay` (ms before\n * the rail expands) and `leaveDelay` (ms before it collapses). Flows into the\n * composed `CngxHoverIntent` via `CNGX_HOVER_INTENT_DEFAULTS`. Per-instance\n * `[enterDelay]` / `[leaveDelay]` still win; the shipped literals (120 / 0)\n * apply when neither is set. Partial payloads deep-merge, so pass only the key\n * you want to change.\n *\n * ```ts\n * provideSidenavConfig(withSidenavHoverDwell({ enterDelay: 200, leaveDelay: 150 }));\n * ```\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport function withSidenavHoverDwell(\n payload: NonNullable<CngxSidenavConfig['hover']>,\n): CngxSidenavConfigFeature {\n return { kind: 'hover', payload };\n}\n\n/**\n * Set the app-wide default query-param key for `[cngxSidenavRouterSync]` - the\n * param the sidenav's `opened` state deep-links to. Per-instance `[param]`\n * still wins; the `'nav'` literal applies when neither is set.\n *\n * ```ts\n * provideSidenavConfig(withSidenavRouterSync({ param: 'menu' }));\n * ```\n *\n * @category ui/sidenav\n * @since 0.1.0\n */\nexport function withSidenavRouterSync(\n payload: NonNullable<CngxSidenavConfig['routerSync']>,\n): CngxSidenavConfigFeature {\n return { kind: 'routerSync', payload };\n}\n","/**\n * @module @cngx/ui/sidenav\n */\n\nexport { CngxSidenavLayout } from './sidenav-layout';\nexport { CngxSidenav, type SidenavPosition, type SidenavMode } from './sidenav';\nexport { CNGX_SIDENAV, type CngxSidenavContract } from './sidenav-token';\nexport { CngxSidenavRouterSync } from './sidenav-router-sync.directive';\nexport { CngxSidenavContent } from './sidenav-content';\nexport { CngxSidenavHeader } from './sidenav-header';\nexport { CngxSidenavFooter } from './sidenav-footer';\n\nexport type { CngxSidenavConfig } from './config/sidenav.config';\nexport { CNGX_SIDENAV_CONFIG } from './config/sidenav.config.defaults';\nexport {\n provideSidenavConfig,\n provideSidenavConfigAt,\n type CngxSidenavConfigFeature,\n} from './config/provide-sidenav-config';\nexport {\n withSidenavDimensions,\n withSidenavResponsive,\n withSidenavShortcut,\n withSidenavHoverDwell,\n withSidenavRouterSync,\n} from './config/features';\nexport { injectSidenavConfig } from './config/inject-sidenav-config';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAIA;;;;;;;;;;;;;;;;;;;AAmBG;AACI,MAAM,qBAAqB,GAAsB;AACtD,IAAA,UAAU,EAAE;AACV,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,SAAS,EAAE,MAAM;AACjB,QAAA,QAAQ,EAAE,OAAO;AACjB,QAAA,QAAQ,EAAE,OAAO;AAClB,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,UAAU,EAAE,CAAC;AACd,KAAA;;;AAGD,IAAA,UAAU,EAAE,EAAE;CACf;AAED;;;;;;;;;;;;;;;;;;AAkBG;MACU,mBAAmB,GAAG,IAAI,cAAc,CACnD,qBAAqB,EACrB;AACE,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,qBAAqB;AACrC,CAAA;;AC3DH;;;;;;;;;;;;;;;;;AAiBG;SACa,mBAAmB,GAAA;AACjC,IAAA,OAAO,MAAM,CAAC,mBAAmB,CAAC;AACpC;;ACNA;;;;;;;;AAQG;MACU,YAAY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;AACzB,QAAA,OAAO,EAAE;IACX;AACA,IAAA,MAAM,OAAO,GAAG,cAAc,CAAC,QAAQ,CAAC;IACxC,OAAO;AACL,QAAA;AACE,YAAA,OAAO,EAAE,mBAAmB;YAC5B,UAAU,EAAE,MAAK;AACf,gBAAA,MAAM,MAAM,GAAG,MAAM,CAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC9D,gBAAA,OAAO,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC;YACrC,CAAC;AACF,SAAA;KACF;AACH;;ACzMA;;;;;;;;;;;;;AAaG;AACG,SAAU,qBAAqB,CACnC,OAAqD,EAAA;AAErD,IAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE;AACxC;AAEA;;;;;;;;;;;;AAYG;AACG,SAAU,qBAAqB,CAAC,KAAa,EAAA;AACjD,IAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE;AAC/D;AAEA;;;;;;;;;;;AAWG;AACG,SAAU,mBAAmB,CAAC,KAAa,EAAA;AAC/C,IAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;AAC3D;AAEA;;;;;;;;;;;;;;AAcG;AACG,SAAU,qBAAqB,CACnC,OAAgD,EAAA;AAEhD,IAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE;AACnC;AAEA;;;;;;;;;;;AAWG;AACG,SAAU,qBAAqB,CACnC,OAAqD,EAAA;AAErD,IAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE;AACxC;;AC7FA;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1,6 +1,7 @@
1
1
  import { DOCUMENT, NgTemplateOutlet } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
3
  import { inject, TemplateRef, Directive, input, computed, contentChild, signal, DestroyRef, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
4
+ import { injectLoadingConfig, createVisibilityGate } from '@cngx/core/utils';
4
5
 
5
6
  /**
6
7
  * Structural slot directive that registers a `<ng-template>` as the
@@ -107,12 +108,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
107
108
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/skeleton/skeleton-container.ts
108
109
  * @since 0.1.0
109
110
  * @relatedTo CngxSkeletonPlaceholder, CngxAsyncState, CngxEmptyState
111
+ * @slot cngxSkeletonPlaceholder Replaces the generated placeholder shape.
110
112
  * <example-url>http://localhost:4200/#/common/layout/skeleton/basic-skeleton</example-url>
111
113
  * <example-url>http://localhost:4200/#/common/layout/skeleton/skeleton-container</example-url>
112
114
  * <example-url>http://localhost:4200/#/ui/skeleton/card-skeleton</example-url>
113
115
  * <example-url>http://localhost:4200/#/ui/skeleton/template-context</example-url>
114
116
  */
115
117
  class CngxSkeletonContainer {
118
+ loadingConfig = injectLoadingConfig();
116
119
  /** Controls the loading state directly. */
117
120
  loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
118
121
  /** Bind an async state - shows skeleton during first load. Takes precedence over `loading`. */
@@ -121,8 +124,18 @@ class CngxSkeletonContainer {
121
124
  shimmer = input(true, ...(ngDevMode ? [{ debugName: "shimmer" }] : /* istanbul ignore next */ []));
122
125
  /** Repeat count for the placeholder template. */
123
126
  count = input(1, ...(ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []));
127
+ /** Delay in ms before the placeholder shows. Defaults to `CNGX_LOADING_CONFIG.showDelay`. */
128
+ showDelay = input(this.loadingConfig.showDelay, ...(ngDevMode ? [{ debugName: "showDelay" }] : /* istanbul ignore next */ []));
129
+ /** Minimum time in ms the placeholder stays once shown. Defaults to `CNGX_LOADING_CONFIG.minDwell`. */
130
+ minDwell = input(this.loadingConfig.minDwell, ...(ngDevMode ? [{ debugName: "minDwell" }] : /* istanbul ignore next */ []));
124
131
  /** Derived loading state: `state.isFirstLoad` takes precedence over `loading` input. */
125
132
  isLoading = computed(() => this.state()?.isFirstLoad() ?? this.loading(), ...(ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []));
133
+ /**
134
+ * @internal - flash-suppressed loading. A sub-`showDelay` blip never renders the
135
+ * placeholder; once shown it holds for `minDwell`. Drives the placeholder, the
136
+ * `--loading` class, and `aria-busy` so AT and DOM agree.
137
+ */
138
+ gatedLoading = createVisibilityGate(this.isLoading, this.showDelay, this.minDwell);
126
139
  /** @internal - projected placeholder template. */
127
140
  placeholderTpl = contentChild(CngxSkeletonPlaceholder, ...(ngDevMode ? [{ debugName: "placeholderTpl" }] : /* istanbul ignore next */ []));
128
141
  /** Array of indices for internal `@for` rendering. */
@@ -141,7 +154,7 @@ class CngxSkeletonContainer {
141
154
  this.prefersReducedMotion = pref.asReadonly();
142
155
  }
143
156
  /** @internal */
144
- showShimmer = computed(() => this.isLoading() && this.shimmer() && !this.prefersReducedMotion(), ...(ngDevMode ? [{ debugName: "showShimmer" }] : /* istanbul ignore next */ []));
157
+ showShimmer = computed(() => this.gatedLoading() && this.shimmer() && !this.prefersReducedMotion(), ...(ngDevMode ? [{ debugName: "showShimmer" }] : /* istanbul ignore next */ []));
145
158
  /** @internal */
146
159
  getContext(index) {
147
160
  const total = this.count();
@@ -154,8 +167,8 @@ class CngxSkeletonContainer {
154
167
  };
155
168
  }
156
169
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxSkeletonContainer, deps: [], target: i0.ɵɵFactoryTarget.Component });
157
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxSkeletonContainer, isStandalone: true, selector: "cngx-skeleton", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, shimmer: { classPropertyName: "shimmer", publicName: "shimmer", isSignal: true, isRequired: false, transformFunction: null }, count: { classPropertyName: "count", publicName: "count", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.cngx-skeleton--loading": "isLoading()", "class.cngx-skeleton--shimmer": "showShimmer()", "attr.aria-busy": "isLoading() || null" }, styleAttribute: "display: contents", classAttribute: "cngx-skeleton" }, queries: [{ propertyName: "placeholderTpl", first: true, predicate: CngxSkeletonPlaceholder, descendants: true, isSignal: true }], exportAs: ["cngxSkeletonContainer"], ngImport: i0, template: `
158
- @if (isLoading()) {
170
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxSkeletonContainer, isStandalone: true, selector: "cngx-skeleton", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, shimmer: { classPropertyName: "shimmer", publicName: "shimmer", isSignal: true, isRequired: false, transformFunction: null }, count: { classPropertyName: "count", publicName: "count", isSignal: true, isRequired: false, transformFunction: null }, showDelay: { classPropertyName: "showDelay", publicName: "showDelay", isSignal: true, isRequired: false, transformFunction: null }, minDwell: { classPropertyName: "minDwell", publicName: "minDwell", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.cngx-skeleton--loading": "gatedLoading()", "class.cngx-skeleton--shimmer": "showShimmer()", "attr.aria-busy": "gatedLoading() || null" }, styleAttribute: "display: contents", classAttribute: "cngx-skeleton" }, queries: [{ propertyName: "placeholderTpl", first: true, predicate: CngxSkeletonPlaceholder, descendants: true, isSignal: true }], exportAs: ["cngxSkeletonContainer"], ngImport: i0, template: `
171
+ @if (gatedLoading()) {
159
172
  @for (i of indices(); track i) {
160
173
  <ng-container
161
174
  *ngTemplateOutlet="placeholderTpl()?.templateRef ?? null; context: getContext(i)"
@@ -171,11 +184,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
171
184
  args: [{ selector: 'cngx-skeleton', standalone: true, imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, exportAs: 'cngxSkeletonContainer', host: {
172
185
  style: 'display: contents',
173
186
  class: 'cngx-skeleton',
174
- '[class.cngx-skeleton--loading]': 'isLoading()',
187
+ '[class.cngx-skeleton--loading]': 'gatedLoading()',
175
188
  '[class.cngx-skeleton--shimmer]': 'showShimmer()',
176
- '[attr.aria-busy]': 'isLoading() || null',
189
+ '[attr.aria-busy]': 'gatedLoading() || null',
177
190
  }, template: `
178
- @if (isLoading()) {
191
+ @if (gatedLoading()) {
179
192
  @for (i of indices(); track i) {
180
193
  <ng-container
181
194
  *ngTemplateOutlet="placeholderTpl()?.templateRef ?? null; context: getContext(i)"
@@ -185,7 +198,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
185
198
  <ng-content />
186
199
  }
187
200
  `, styles: ["@layer cngx.tokens{@property --cngx-skeleton-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 0 0);}@property --cngx-skeleton-shimmer-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 0 0);}@property --cngx-skeleton-radius{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-skeleton-shimmer-duration{syntax: \"<time>\"; inherits: false; initial-value: 1.5s;}:root{--cngx-skeleton-bg: oklch(.88 0 0);--cngx-skeleton-shimmer-color: oklch(.96 0 0)}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-skeleton-bg: oklch(.25 0 0);--cngx-skeleton-shimmer-color: oklch(.35 0 0)}}:root[data-color-scheme=dark],:root.dark{--cngx-skeleton-bg: oklch(.25 0 0);--cngx-skeleton-shimmer-color: oklch(.35 0 0)}:root[data-color-scheme=light],:root.light{--cngx-skeleton-bg: oklch(.88 0 0);--cngx-skeleton-shimmer-color: oklch(.96 0 0)}}@layer cngx.components{@scope(.cngx-skeleton){:scope.cngx-skeleton--shimmer .cngx-skeleton-bone{background-color:var(--cngx-skeleton-bg, oklch(.88 0 0));background-image:linear-gradient(90deg,var(--cngx-skeleton-bg, oklch(.88 0 0)) 0%,var(--cngx-skeleton-shimmer-color, oklch(.96 0 0)) 50%,var(--cngx-skeleton-bg, oklch(.88 0 0)) 100%);background-size:200% 100%;animation:cngx-skeleton-shimmer var(--cngx-skeleton-shimmer-duration, 1.5s) ease-in-out infinite;border-radius:var(--cngx-skeleton-radius, 4px)}@media(prefers-reduced-motion:reduce){:scope.cngx-skeleton--shimmer .cngx-skeleton-bone{animation:none}}}}@keyframes cngx-skeleton-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}\n"] }]
188
- }], ctorParameters: () => [], propDecorators: { loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], shimmer: [{ type: i0.Input, args: [{ isSignal: true, alias: "shimmer", required: false }] }], count: [{ type: i0.Input, args: [{ isSignal: true, alias: "count", required: false }] }], placeholderTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxSkeletonPlaceholder), { isSignal: true }] }] } });
201
+ }], ctorParameters: () => [], propDecorators: { loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], shimmer: [{ type: i0.Input, args: [{ isSignal: true, alias: "shimmer", required: false }] }], count: [{ type: i0.Input, args: [{ isSignal: true, alias: "count", required: false }] }], showDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "showDelay", required: false }] }], minDwell: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDwell", required: false }] }], placeholderTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxSkeletonPlaceholder), { isSignal: true }] }] } });
189
202
 
190
203
  /**
191
204
  * @module @cngx/ui/skeleton