@ids-group-ltd/ids-design-system 1.1.1 → 1.2.0

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 (234) hide show
  1. package/CHANGELOG.md +869 -0
  2. package/agent/INDEX.md +8 -7
  3. package/agent/charts/ds-scatter-chart.md +1 -1
  4. package/agent/feedback/ds-badge.md +2 -2
  5. package/agent/feedback/ds-chat-message.md +1 -1
  6. package/agent/feedback/ds-chat-step.md +2 -2
  7. package/agent/feedback/ds-chat-thread.md +1 -1
  8. package/agent/feedback/ds-empty-state.md +2 -1
  9. package/agent/feedback/ds-stat.md +1 -1
  10. package/agent/feedback/ds-toast.md +2 -2
  11. package/agent/feedback/ds-tree.md +4 -2
  12. package/agent/forms/ds-button.md +3 -3
  13. package/agent/forms/ds-chat-input.md +3 -3
  14. package/agent/forms/ds-dropzone.md +1 -1
  15. package/agent/forms/ds-icon-button.md +3 -3
  16. package/agent/forms/ds-number-stepper.md +3 -3
  17. package/agent/forms/ds-search.md +1 -1
  18. package/agent/forms/ds-split-button.md +1 -1
  19. package/agent/foundations/tokens.md +4 -3
  20. package/agent/navigation/ds-app-layout.md +1 -1
  21. package/agent/navigation/ds-nav-divider.md +6 -0
  22. package/agent/navigation/{ds-sidenav-footer.md → ds-nav-footer.md} +3 -3
  23. package/agent/navigation/{ds-sidenav-group.md → ds-nav-group.md} +2 -2
  24. package/agent/navigation/{ds-sidenav-item.md → ds-nav-item.md} +6 -6
  25. package/agent/navigation/ds-nav.md +15 -0
  26. package/agent/navigation/ds-splitter.md +1 -1
  27. package/agent/overlays/ds-drawer.md +1 -1
  28. package/agent/platform/toast-service.md +1 -1
  29. package/components/README.md +24 -24
  30. package/components.md +60 -51
  31. package/design-system.md +8 -7
  32. package/eslint/deprecated-api.json +108 -7
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +2 -2
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +4 -4
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +4 -4
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-badge-badge-count-roll.component-BDNXADJZ.mjs +182 -0
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-badge-badge-count-roll.component-BDNXADJZ.mjs.map +1 -0
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +37 -8
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +5 -2
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +2 -2
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +76 -5
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +2 -2
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs +122 -21
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs +2 -2
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +2 -2
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +65 -4
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +76 -9
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +14 -7
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +2 -2
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +2 -2
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +6 -4
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +2 -2
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -1
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs +2 -2
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs.map +1 -1
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +4 -4
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +2 -2
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -2
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-nav-footer.mjs +113 -0
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-nav-footer.mjs.map +1 -0
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-nav.mjs +228 -0
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-nav.mjs.map +1 -0
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +61 -10
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +36 -4
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +2 -2
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +9 -2
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -2
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-reveal.mjs +56 -0
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-reveal.mjs.map +1 -0
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +10 -39
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +7 -4
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +33 -6
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +2 -2
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -98
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +11 -179
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +2 -2
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +3 -2
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +68 -5
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +2 -2
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +41 -3
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +6 -4
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +4 -4
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +27 -7
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +54 -19
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +8 -7
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +58 -9
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +153 -1
  166. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  167. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +25 -1
  168. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system.mjs +4 -1
  170. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  171. package/migrations/1.1.1.json +14 -4
  172. package/migrations/1.1.2.json +143 -0
  173. package/migrations/1.2.0.json +1433 -0
  174. package/migrations/README.md +11 -2
  175. package/package.json +28 -1
  176. package/schematics/check-overrides/index.cjs +28 -3
  177. package/schematics/check-overrides/scan.cjs +151 -2
  178. package/schematics/check-overrides/schema.json +4 -0
  179. package/schematics/check-overrides/surface.json +397 -73
  180. package/schematics/collection.json +1 -1
  181. package/stylelint/deprecated-tokens.json +7 -0
  182. package/stylelint/index.mjs +17 -3
  183. package/stylelint/known-tokens.mjs +139 -0
  184. package/stylelint/report.mjs +185 -0
  185. package/stylelint/tokens.mjs +160 -0
  186. package/stylelint/use-tokens.mjs +397 -0
  187. package/styles/_check-box.scss +6 -5
  188. package/styles/_dropdown-overlay.scss +6 -8
  189. package/styles/_ds-color.scss +7 -2
  190. package/styles/_field-state.scss +4 -2
  191. package/styles/_focus.scss +12 -5
  192. package/styles/_link.scss +4 -4
  193. package/styles/_optical-center.scss +29 -0
  194. package/styles/_reveal.scss +8 -0
  195. package/styles/_status.scss +17 -7
  196. package/styles/_step-marker.scss +192 -6
  197. package/styles/_surface-level.scss +16 -0
  198. package/styles/_text-shimmer.scss +21 -0
  199. package/styles/_theme-activation.scss +17 -4
  200. package/styles/_tokens.scss +34 -7
  201. package/styles/ds.scss +1 -0
  202. package/themes/README.md +16 -21
  203. package/themes/_semantic.scss +134 -61
  204. package/themes/dark/_theme.scss +20 -24
  205. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +3 -3
  206. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +2 -2
  207. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +20 -1
  208. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +14 -3
  209. package/types/ids-group-ltd-ids-design-system-components-chat.d.ts +67 -6
  210. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +9 -1
  211. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +28 -2
  212. package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +7 -2
  213. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +8 -5
  214. package/types/ids-group-ltd-ids-design-system-components-nav-footer.d.ts +88 -0
  215. package/types/ids-group-ltd-ids-design-system-components-nav.d.ts +152 -0
  216. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +21 -3
  217. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +1 -0
  218. package/types/ids-group-ltd-ids-design-system-components-reveal.d.ts +31 -0
  219. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +2 -8
  220. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +4 -1
  221. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +3 -0
  222. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +12 -83
  223. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +21 -131
  224. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +1 -1
  225. package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +10 -1
  226. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +1 -0
  227. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +1 -1
  228. package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +3 -1
  229. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +27 -6
  230. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +26 -4
  231. package/types/ids-group-ltd-ids-design-system-components.d.ts +26 -1
  232. package/types/ids-group-ltd-ids-design-system-core.d.ts +38 -2
  233. package/types/ids-group-ltd-ids-design-system.d.ts +10 -7
  234. package/agent/navigation/ds-sidenav.md +0 -13
@@ -1,186 +1,18 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive, InjectionToken, input, booleanAttribute, contentChild, computed, ViewEncapsulation, Component, inject, model, output } from '@angular/core';
3
- import { NgTemplateOutlet } from '@angular/common';
4
- import { RouterLink, RouterLinkActive } from '@angular/router';
5
- import { resolveBrandValue, dsAriaCurrent } from '@ids-group-ltd/ids-design-system/components';
6
- import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
7
- import { DS_INTL } from '@ids-group-ltd/ids-design-system/core';
8
- import { TooltipDirective } from '@ids-group-ltd/ids-design-system/components/tooltip';
1
+ import { NavComponent, NavGroupComponent, NavItemComponent, NAV } from '@ids-group-ltd/ids-design-system/components/nav';
2
+ export { BrandNameDirective, NAV, NavComponent, NavGroupComponent, NavItemComponent } from '@ids-group-ltd/ids-design-system/components/nav';
9
3
 
10
- /**
11
- * Marks projected wordmark markup for `ds-sidenav`: when present, the sidenav
12
- * renders the projected content inside `.brand-name` instead of the plain
13
- * `brand` text.
14
- *
15
- * It renders the brand row even without a string `brand`, but the letter-mark
16
- * tile still comes from `logoLetter` (or the first letter of `brand`), so an
17
- * empty `brand` + projection renders the wordmark with no tile.
18
- */
19
- class BrandNameDirective {
20
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: BrandNameDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
21
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: BrandNameDirective, isStandalone: true, selector: "[dsBrandName]", ngImport: i0 });
22
- }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: BrandNameDirective, decorators: [{
24
- type: Directive,
25
- args: [{
26
- selector: '[dsBrandName]',
27
- standalone: true,
28
- }]
29
- }] });
30
-
31
- const SIDENAV = new InjectionToken('SIDENAV');
32
-
33
- class SidenavComponent {
34
- /** Collapses the rail to icon-only width; read by nested `ds-sidenav-item`/`ds-sidenav-group`. */
35
- collapsed = input(false, { ...(ngDevMode ? { debugName: "collapsed" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
36
- /** Whether the ACTIVE item draws its edge marker, for the whole sidenav. An individual
37
- * `ds-sidenav-item` can override it with its own `rail`. */
38
- rail = input(true, { ...(ngDevMode ? { debugName: "rail" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
39
- /** Brand text at the top of the rail (auto letter-mark + name). Unset falls back to
40
- * `DS_CONFIG.brand.name`. Each field resolves on its own: `brand=""` drops the
41
- * wordmark while a configured `logoLetter` still paints its tile. */
42
- brand = input(null, ...(ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []));
43
- /** Letter-mark glyph when it differs from the brand's first letter. Empty = first letter of `brand`;
44
- * unset falls back to `DS_CONFIG.brand.logoLetter`. */
45
- logoLetter = input(null, ...(ngDevMode ? [{ debugName: "logoLetter" }] : /* istanbul ignore next */ []));
46
- /** Route the brand row links to. Unset leaves the row non-interactive. `RouterLink` is
47
- * instantiated only once this is set, so an app with no router still renders. */
48
- brandRoute = input(null, ...(ngDevMode ? [{ debugName: "brandRoute" }] : /* istanbul ignore next */ []));
49
- /** Accessible name for the brand link; unset names it "<brand>, home". Ignored
50
- * while `brandRoute` is unset. */
51
- brandLinkLabel = input(null, ...(ngDevMode ? [{ debugName: "brandLinkLabel" }] : /* istanbul ignore next */ []));
52
- /** Read these, not the inputs: the config default lives here. */
53
- brandName = resolveBrandValue(this.brand, 'name');
54
- letterGlyph = resolveBrandValue(this.logoLetter, 'logoLetter');
55
- /** Projected `[dsBrandName]` wordmark markup, when the consumer provides one. */
56
- brandNameRef = contentChild(BrandNameDirective, ...(ngDevMode ? [{ debugName: "brandNameRef" }] : /* istanbul ignore next */ []));
57
- hasBrandName = computed(() => !!this.brandNameRef(), ...(ngDevMode ? [{ debugName: "hasBrandName" }] : /* istanbul ignore next */ []));
58
- /** Spread, not `charAt(0)`: that splits an astral character's surrogate pair. */
59
- markGlyph = computed(() => this.letterGlyph() || [...this.brandName()][0] || '', ...(ngDevMode ? [{ debugName: "markGlyph" }] : /* istanbul ignore next */ []));
60
- brandAriaLabel = computed(() => {
61
- const own = this.brandLinkLabel();
62
- if (own) {
63
- return own;
64
- }
65
- const name = this.brandName();
66
- return name ? `${name}, home` : 'Home';
67
- }, ...(ngDevMode ? [{ debugName: "brandAriaLabel" }] : /* istanbul ignore next */ []));
68
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SidenavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
69
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SidenavComponent, isStandalone: true, selector: "ds-sidenav", inputs: { collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, rail: { classPropertyName: "rail", publicName: "rail", isSignal: true, isRequired: false, transformFunction: null }, brand: { classPropertyName: "brand", publicName: "brand", isSignal: true, isRequired: false, transformFunction: null }, logoLetter: { classPropertyName: "logoLetter", publicName: "logoLetter", isSignal: true, isRequired: false, transformFunction: null }, brandRoute: { classPropertyName: "brandRoute", publicName: "brandRoute", isSignal: true, isRequired: false, transformFunction: null }, brandLinkLabel: { classPropertyName: "brandLinkLabel", publicName: "brandLinkLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.sidenav": "true", "class.collapsed": "collapsed()" } }, providers: [{ provide: SIDENAV, useExisting: SidenavComponent }], queries: [{ propertyName: "brandNameRef", first: true, predicate: BrandNameDirective, descendants: true, isSignal: true }], ngImport: i0, template: "@if (brandRoute()) {\n <a\n class=\"brand brand-link\"\n [routerLink]=\"brandRoute()\"\n [attr.aria-label]=\"brandAriaLabel()\">\n <ng-container [ngTemplateOutlet]=\"brandContent\" />\n </a>\n} @else {\n <div class=\"brand\">\n <ng-container [ngTemplateOutlet]=\"brandContent\" />\n </div>\n}\n\n<ng-template #brandContent>\n <ng-content select=\"[brand]\"></ng-content>\n\n @if (letterGlyph() || brandName()) {\n <span\n class=\"mark\"\n aria-hidden=\"true\">\n {{ markGlyph() }}\n </span>\n }\n\n @if (brandName() || hasBrandName()) {\n <span class=\"brand-name\">\n @if (hasBrandName()) {\n <ng-content select=\"[dsBrandName]\"></ng-content>\n } @else {\n {{ brandName() }}\n }\n </span>\n }\n</ng-template>\n\n<ng-content></ng-content>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_sidenav-bg-color: var(--ds-sidenav-bg-color, var(--surface-default));--_sidenav-border: var(--ds-sidenav-border, var(--border-divider));--_sidenav-width: var(--ds-sidenav-width, var(--sidenav-w));--_sidenav-width-collapsed: var(--ds-sidenav-width-collapsed, var(--sidenav-w-collapsed));--_sidenav-mark-bg-color: var(--ds-sidenav-mark-bg-color, var(--accent));--_sidenav-mark-label-color: var(--ds-sidenav-mark-label-color, var(--accent-on));display:flex;flex-direction:column;gap:var(--space-1);width:var(--_sidenav-width);background-color:var(--_sidenav-bg-color);border-right:var(--border-width-default) solid var(--_sidenav-border);padding:var(--space-5);transition:width var(--duration-base) var(--ease-standard)}.brand{font:var(--font-weight-extrabold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-2) var(--space-6)}.brand:empty{display:none}.brand-link{color:inherit;text-decoration:none;border-radius:var(--ds-radius-control)}.brand-link:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.brand-link ::ng-deep>[brand]{max-height:var(--ds-sidenav-brand-max-height, none)}.mark{width:var(--sidenav-logo-size);height:var(--sidenav-logo-size);border-radius:var(--radius-md);background-color:var(--_sidenav-mark-bg-color);display:grid;place-items:center;color:var(--_sidenav-mark-label-color);font-size:var(--font-size-s);flex-shrink:0}.brand-name{font:var(--font-weight-extrabold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans)}:host(.collapsed){--focus-ring-offset: calc(-1 * var(--focus-ring-width));width:var(--_sidenav-width-collapsed);padding:var(--space-3);overflow-x:clip}:host(.collapsed) .brand{padding:var(--sidenav-pad-brand-y) 0 var(--sidenav-pad-brand-b);justify-content:center}:host(.collapsed) .brand-name{display:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
70
- }
71
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SidenavComponent, decorators: [{
72
- type: Component,
73
- args: [{ selector: 'ds-sidenav', standalone: true, imports: [NgTemplateOutlet, RouterLink], encapsulation: ViewEncapsulation.Emulated, host: {
74
- '[class.sidenav]': 'true',
75
- '[class.collapsed]': 'collapsed()',
76
- }, providers: [{ provide: SIDENAV, useExisting: SidenavComponent }], template: "@if (brandRoute()) {\n <a\n class=\"brand brand-link\"\n [routerLink]=\"brandRoute()\"\n [attr.aria-label]=\"brandAriaLabel()\">\n <ng-container [ngTemplateOutlet]=\"brandContent\" />\n </a>\n} @else {\n <div class=\"brand\">\n <ng-container [ngTemplateOutlet]=\"brandContent\" />\n </div>\n}\n\n<ng-template #brandContent>\n <ng-content select=\"[brand]\"></ng-content>\n\n @if (letterGlyph() || brandName()) {\n <span\n class=\"mark\"\n aria-hidden=\"true\">\n {{ markGlyph() }}\n </span>\n }\n\n @if (brandName() || hasBrandName()) {\n <span class=\"brand-name\">\n @if (hasBrandName()) {\n <ng-content select=\"[dsBrandName]\"></ng-content>\n } @else {\n {{ brandName() }}\n }\n </span>\n }\n</ng-template>\n\n<ng-content></ng-content>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_sidenav-bg-color: var(--ds-sidenav-bg-color, var(--surface-default));--_sidenav-border: var(--ds-sidenav-border, var(--border-divider));--_sidenav-width: var(--ds-sidenav-width, var(--sidenav-w));--_sidenav-width-collapsed: var(--ds-sidenav-width-collapsed, var(--sidenav-w-collapsed));--_sidenav-mark-bg-color: var(--ds-sidenav-mark-bg-color, var(--accent));--_sidenav-mark-label-color: var(--ds-sidenav-mark-label-color, var(--accent-on));display:flex;flex-direction:column;gap:var(--space-1);width:var(--_sidenav-width);background-color:var(--_sidenav-bg-color);border-right:var(--border-width-default) solid var(--_sidenav-border);padding:var(--space-5);transition:width var(--duration-base) var(--ease-standard)}.brand{font:var(--font-weight-extrabold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-2) var(--space-6)}.brand:empty{display:none}.brand-link{color:inherit;text-decoration:none;border-radius:var(--ds-radius-control)}.brand-link:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.brand-link ::ng-deep>[brand]{max-height:var(--ds-sidenav-brand-max-height, none)}.mark{width:var(--sidenav-logo-size);height:var(--sidenav-logo-size);border-radius:var(--radius-md);background-color:var(--_sidenav-mark-bg-color);display:grid;place-items:center;color:var(--_sidenav-mark-label-color);font-size:var(--font-size-s);flex-shrink:0}.brand-name{font:var(--font-weight-extrabold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans)}:host(.collapsed){--focus-ring-offset: calc(-1 * var(--focus-ring-width));width:var(--_sidenav-width-collapsed);padding:var(--space-3);overflow-x:clip}:host(.collapsed) .brand{padding:var(--sidenav-pad-brand-y) 0 var(--sidenav-pad-brand-b);justify-content:center}:host(.collapsed) .brand-name{display:none}\n"] }]
77
- }], propDecorators: { collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }], rail: [{ type: i0.Input, args: [{ isSignal: true, alias: "rail", required: false }] }], brand: [{ type: i0.Input, args: [{ isSignal: true, alias: "brand", required: false }] }], logoLetter: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoLetter", required: false }] }], brandRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandRoute", required: false }] }], brandLinkLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandLinkLabel", required: false }] }], brandNameRef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BrandNameDirective), { isSignal: true }] }] } });
78
-
79
- class SidenavGroupComponent {
80
- intl = inject(DS_INTL);
81
- /** Group heading text. */
82
- label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
83
- /** Optional group icon; omit to project custom content via the `[ds-group-icon]` slot instead. */
84
- icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
85
- /** When true, the label/icon row becomes a clickable header that expands/collapses the group. */
86
- expandable = input(false, { ...(ngDevMode ? { debugName: "expandable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
87
- /** Makes the group a destination as well as a container: the header navigates here and the
88
- * caret becomes a separate control. Unset, the whole header only expands. */
89
- routerLink = input(null, ...(ngDevMode ? [{ debugName: "routerLink" }] : /* istanbul ignore next */ []));
90
- /** Overrides what the group header announces when it is itself a destination. Unset, the page
91
- * the reader is on announces `page` and the section containing it announces `true`. */
92
- ariaCurrent = input(undefined, ...(ngDevMode ? [{ debugName: "ariaCurrent" }] : /* istanbul ignore next */ []));
93
- /** Two-way bindable open state; defaults open so a non-expandable group always shows its items. */
94
- expanded = model(true, ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
95
- /** A header that navigates hands the caret its own button; one that does not is the button. */
96
- noModifiers = computed(() => ({}), ...(ngDevMode ? [{ debugName: "noModifiers" }] : /* istanbul ignore next */ []));
97
- ariaCurrentResolved = dsAriaCurrent(this.routerLink, this.noModifiers, this.ariaCurrent);
98
- headerNavigates = computed(() => this.expandable() && this.routerLink() !== null, ...(ngDevMode ? [{ debugName: "headerNavigates" }] : /* istanbul ignore next */ []));
99
- toggle() {
100
- if (!this.expandable()) {
101
- return;
102
- }
103
- this.expanded.update((value) => !value);
104
- }
105
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SidenavGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
106
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SidenavGroupComponent, isStandalone: true, selector: "ds-sidenav-group", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, expandable: { classPropertyName: "expandable", publicName: "expandable", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, ariaCurrent: { classPropertyName: "ariaCurrent", publicName: "ariaCurrent", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange" }, ngImport: i0, template: "<!-- Single <ng-content> outside any @if: duplicates silently drop children on a non-matching branch.\n Same for [ds-group-icon], so both header branches stamp out ONE template. -->\n<ng-template #headerContent>\n @if (icon()) {\n <ds-icon\n class=\"group-icon\"\n [name]=\"icon()!\"\n [size]=\"18\">\n </ds-icon>\n } @else {\n <!-- `[ds-group-icon]` differs from the `[icon]` slots of child sidenav-items so their icons aren't swallowed. -->\n <span class=\"group-icon\">\n <ng-content select=\"[ds-group-icon]\"></ng-content>\n </span>\n }\n\n @if (label()) {\n <span class=\"group-title\">\n {{ label() }}\n </span>\n }\n</ng-template>\n\n@if (headerNavigates()) {\n <div class=\"group-header-row\">\n <a\n class=\"group-header\"\n routerLinkActive=\"active\"\n [routerLink]=\"routerLink()\"\n [ariaCurrentWhenActive]=\"ariaCurrentResolved()\">\n <ng-container [ngTemplateOutlet]=\"headerContent\" />\n </a>\n\n <button\n type=\"button\"\n class=\"group-caret-button\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-label]=\"\n expanded()\n ? intl().sidenav.collapseGroup(label())\n : intl().sidenav.expandGroup(label())\n \"\n (click)=\"toggle()\">\n <ds-icon\n class=\"group-caret\"\n name=\"chevronDown\"\n [class.open]=\"expanded()\"\n [size]=\"14\">\n </ds-icon>\n </button>\n </div>\n} @else if (expandable()) {\n <button\n type=\"button\"\n class=\"group-header\"\n [attr.aria-expanded]=\"expanded()\"\n (click)=\"toggle()\">\n <ng-container [ngTemplateOutlet]=\"headerContent\" />\n\n <ds-icon\n class=\"group-caret\"\n name=\"chevronDown\"\n [class.open]=\"expanded()\"\n [size]=\"14\">\n </ds-icon>\n </button>\n} @else if (label()) {\n <span class=\"group-label\">\n {{ label() }}\n </span>\n}\n\n<div\n class=\"group-body\"\n [class.hidden]=\"expandable() && !expanded()\"\n [attr.inert]=\"expandable() && !expanded() ? '' : null\">\n <ng-content></ng-content>\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_sidenav-group-open-bg-color: var(--ds-sidenav-group-open-bg-color, var(--surface-secondary));--_sidenav-group-child-indent: var(--ds-sidenav-group-child-indent, var(--space-3));--_sidenav-group-radius: var(--ds-sidenav-group-radius, var(--ds-radius-control));--_sidenav-group-label-color: var(--ds-sidenav-group-label-color, var(--text-tertiary));display:flex;flex-direction:column;gap:var(--space-1);border-radius:var(--_sidenav-group-radius);transition:background-color var(--duration-fast) var(--ease-standard)}:host(:has(.group-header[aria-expanded=true])){background-color:var(--_sidenav-group-open-bg-color)}.group-label{display:block;font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-base) var(--font-sans);color:var(--_sidenav-group-label-color);text-transform:uppercase;letter-spacing:var(--letter-spacing-wider);padding:var(--space-4) var(--space-3) var(--sidenav-section-pad-b)}.group-header{display:flex;align-items:center;gap:var(--space-3);width:100%;padding:var(--space-2) var(--space-3);border:0;background:transparent;border-radius:var(--radius-md);color:var(--text-primary);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans);text-align:left;cursor:pointer;transition:background var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.group-header:hover{background:var(--surface-secondary)}.group-header:active{background:var(--surface-muted)}.group-header:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.group-header-row{display:flex;align-items:center;gap:var(--space-1)}.group-header-row .group-header{flex:1;min-width:0;text-decoration:none}.group-header-row .group-header.active{color:var(--accent-strong)}.group-caret-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--hit-min);height:var(--hit-min);padding:0;border:0;background:transparent;border-radius:var(--radius-md);cursor:pointer}.group-caret-button:hover{background:var(--surface-secondary)}.group-caret-button:active{background:var(--surface-muted)}.group-caret-button:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.group-icon{display:inline-flex;align-items:center;color:var(--text-secondary);flex-shrink:0}.group-title{flex:1;min-width:0}.group-caret{display:inline-flex;color:var(--text-tertiary);transition:transform var(--duration-base) var(--ease-standard)}.group-caret:not(.open){transform:rotate(-90deg)}.group-body{display:flex;flex-direction:column;gap:var(--space-1);padding-left:var(--_sidenav-group-child-indent);overflow:hidden;--focus-ring-offset: calc(-1 * var(--focus-ring-width));height:auto;transition:height var(--duration-base) var(--ease-standard)}.group-body.hidden{height:0}@media(prefers-reduced-motion:reduce){.group-body{transition:none}}:host-context(.sidenav.collapsed) .group-label,:host-context(.sidenav.collapsed) .group-title,:host-context(.sidenav.collapsed) .group-caret{display:none}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }] });
107
- }
108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SidenavGroupComponent, decorators: [{
109
- type: Component,
110
- args: [{ selector: 'ds-sidenav-group', standalone: true, imports: [IconComponent, NgTemplateOutlet, RouterLink, RouterLinkActive], encapsulation: ViewEncapsulation.Emulated, template: "<!-- Single <ng-content> outside any @if: duplicates silently drop children on a non-matching branch.\n Same for [ds-group-icon], so both header branches stamp out ONE template. -->\n<ng-template #headerContent>\n @if (icon()) {\n <ds-icon\n class=\"group-icon\"\n [name]=\"icon()!\"\n [size]=\"18\">\n </ds-icon>\n } @else {\n <!-- `[ds-group-icon]` differs from the `[icon]` slots of child sidenav-items so their icons aren't swallowed. -->\n <span class=\"group-icon\">\n <ng-content select=\"[ds-group-icon]\"></ng-content>\n </span>\n }\n\n @if (label()) {\n <span class=\"group-title\">\n {{ label() }}\n </span>\n }\n</ng-template>\n\n@if (headerNavigates()) {\n <div class=\"group-header-row\">\n <a\n class=\"group-header\"\n routerLinkActive=\"active\"\n [routerLink]=\"routerLink()\"\n [ariaCurrentWhenActive]=\"ariaCurrentResolved()\">\n <ng-container [ngTemplateOutlet]=\"headerContent\" />\n </a>\n\n <button\n type=\"button\"\n class=\"group-caret-button\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-label]=\"\n expanded()\n ? intl().sidenav.collapseGroup(label())\n : intl().sidenav.expandGroup(label())\n \"\n (click)=\"toggle()\">\n <ds-icon\n class=\"group-caret\"\n name=\"chevronDown\"\n [class.open]=\"expanded()\"\n [size]=\"14\">\n </ds-icon>\n </button>\n </div>\n} @else if (expandable()) {\n <button\n type=\"button\"\n class=\"group-header\"\n [attr.aria-expanded]=\"expanded()\"\n (click)=\"toggle()\">\n <ng-container [ngTemplateOutlet]=\"headerContent\" />\n\n <ds-icon\n class=\"group-caret\"\n name=\"chevronDown\"\n [class.open]=\"expanded()\"\n [size]=\"14\">\n </ds-icon>\n </button>\n} @else if (label()) {\n <span class=\"group-label\">\n {{ label() }}\n </span>\n}\n\n<div\n class=\"group-body\"\n [class.hidden]=\"expandable() && !expanded()\"\n [attr.inert]=\"expandable() && !expanded() ? '' : null\">\n <ng-content></ng-content>\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_sidenav-group-open-bg-color: var(--ds-sidenav-group-open-bg-color, var(--surface-secondary));--_sidenav-group-child-indent: var(--ds-sidenav-group-child-indent, var(--space-3));--_sidenav-group-radius: var(--ds-sidenav-group-radius, var(--ds-radius-control));--_sidenav-group-label-color: var(--ds-sidenav-group-label-color, var(--text-tertiary));display:flex;flex-direction:column;gap:var(--space-1);border-radius:var(--_sidenav-group-radius);transition:background-color var(--duration-fast) var(--ease-standard)}:host(:has(.group-header[aria-expanded=true])){background-color:var(--_sidenav-group-open-bg-color)}.group-label{display:block;font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-base) var(--font-sans);color:var(--_sidenav-group-label-color);text-transform:uppercase;letter-spacing:var(--letter-spacing-wider);padding:var(--space-4) var(--space-3) var(--sidenav-section-pad-b)}.group-header{display:flex;align-items:center;gap:var(--space-3);width:100%;padding:var(--space-2) var(--space-3);border:0;background:transparent;border-radius:var(--radius-md);color:var(--text-primary);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans);text-align:left;cursor:pointer;transition:background var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.group-header:hover{background:var(--surface-secondary)}.group-header:active{background:var(--surface-muted)}.group-header:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.group-header-row{display:flex;align-items:center;gap:var(--space-1)}.group-header-row .group-header{flex:1;min-width:0;text-decoration:none}.group-header-row .group-header.active{color:var(--accent-strong)}.group-caret-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--hit-min);height:var(--hit-min);padding:0;border:0;background:transparent;border-radius:var(--radius-md);cursor:pointer}.group-caret-button:hover{background:var(--surface-secondary)}.group-caret-button:active{background:var(--surface-muted)}.group-caret-button:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.group-icon{display:inline-flex;align-items:center;color:var(--text-secondary);flex-shrink:0}.group-title{flex:1;min-width:0}.group-caret{display:inline-flex;color:var(--text-tertiary);transition:transform var(--duration-base) var(--ease-standard)}.group-caret:not(.open){transform:rotate(-90deg)}.group-body{display:flex;flex-direction:column;gap:var(--space-1);padding-left:var(--_sidenav-group-child-indent);overflow:hidden;--focus-ring-offset: calc(-1 * var(--focus-ring-width));height:auto;transition:height var(--duration-base) var(--ease-standard)}.group-body.hidden{height:0}@media(prefers-reduced-motion:reduce){.group-body{transition:none}}:host-context(.sidenav.collapsed) .group-label,:host-context(.sidenav.collapsed) .group-title,:host-context(.sidenav.collapsed) .group-caret{display:none}\n"] }]
111
- }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], expandable: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandable", required: false }] }], routerLink: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerLink", required: false }] }], ariaCurrent: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaCurrent", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }, { type: i0.Output, args: ["expandedChange"] }] } });
112
-
113
- class SidenavItemComponent {
114
- /** Icon shown before the label; omit to project a custom icon via the `[icon]` slot instead. */
115
- icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
116
- /** Visible link text; also used as the tooltip/aria-label when the rail is collapsed. */
117
- label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
118
- /** Plain `href` target, used when `routerLink` is not set. */
119
- href = input('', ...(ngDevMode ? [{ debugName: "href" }] : /* istanbul ignore next */ []));
120
- /** Angular `RouterLink` target, string or array form for dynamic segments. */
121
- routerLink = input(null, ...(ngDevMode ? [{ debugName: "routerLink" }] : /* istanbul ignore next */ []));
122
- /** Applies the active style; also drives `aria-current` when not using `routerLink`. */
123
- active = input(false, { ...(ngDevMode ? { debugName: "active" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
124
- /** Overrides what an active item announces. Unset, an exact match announces `page` and a prefix
125
- * match announces `true` ("you are in this section"). */
126
- ariaCurrent = input(undefined, ...(ngDevMode ? [{ debugName: "ariaCurrent" }] : /* istanbul ignore next */ []));
127
- /** Numeric count shown at the end of the item. */
128
- badge = input(null, ...(ngDevMode ? [{ debugName: "badge" }] : /* istanbul ignore next */ []));
129
- /** Shows an alert dot alongside the badge. */
130
- hasAlert = input(false, { ...(ngDevMode ? { debugName: "hasAlert" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
131
- /** Disables the item: non-navigable and styled as inactive. */
132
- disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
133
- /** Emitted on click, carrying the `MouseEvent`. On an `href` item, `preventDefault()`
134
- * intercepts navigation; a `routerLink` item navigates regardless (RouterLink ignores
135
- * `defaultPrevented`). */
136
- activate = output();
137
- /** Whether THIS item draws its edge marker when active. Unset follows the parent `ds-sidenav`, then on. */
138
- rail = input(null, { ...(ngDevMode ? { debugName: "rail" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
139
- sidenav = inject(SIDENAV, { optional: true });
140
- noModifiers = computed(() => ({}), ...(ngDevMode ? [{ debugName: "noModifiers" }] : /* istanbul ignore next */ []));
141
- ariaCurrentResolved = dsAriaCurrent(this.routerLink, this.noModifiers, this.ariaCurrent);
142
- railResolved = computed(() => this.rail() ?? this.sidenav?.rail() ?? true, ...(ngDevMode ? [{ debugName: "railResolved" }] : /* istanbul ignore next */ []));
143
- onActivate(event) {
144
- if (this.disabled()) {
145
- return;
146
- }
147
- this.activate.emit(event);
148
- }
149
- /** Tooltip text shown when collapsed; empty string suppresses the tooltip when expanded. */
150
- collapsedTooltip = computed(() => this.sidenav?.collapsed() ? this.label() : '', ...(ngDevMode ? [{ debugName: "collapsedTooltip" }] : /* istanbul ignore next */ []));
151
- // Only when collapsed: expanded, it would override the visible label and drop the badge count / alert dot.
152
- collapsedAriaLabel = computed(() => this.sidenav?.collapsed() ? this.label() : null, ...(ngDevMode ? [{ debugName: "collapsedAriaLabel" }] : /* istanbul ignore next */ []));
153
- linkClasses = computed(() => {
154
- const parts = ['item'];
155
- if (this.active()) {
156
- parts.push('active');
157
- }
158
- // The routerLink variant gets `active` from routerLinkActive, so the opt-out needs its own class.
159
- if (!this.railResolved()) {
160
- parts.push('no-rail');
161
- }
162
- if (this.disabled()) {
163
- parts.push('disabled');
164
- }
165
- return parts.join(' ');
166
- }, ...(ngDevMode ? [{ debugName: "linkClasses" }] : /* istanbul ignore next */ []));
167
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SidenavItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
168
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SidenavItemComponent, isStandalone: true, selector: "ds-sidenav-item", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, ariaCurrent: { classPropertyName: "ariaCurrent", publicName: "ariaCurrent", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, hasAlert: { classPropertyName: "hasAlert", publicName: "hasAlert", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, rail: { classPropertyName: "rail", publicName: "rail", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activate: "activate" }, ngImport: i0, template: "<!-- Projection is by attribute only ([icon], [trailing]); no default <ng-content>.\n The two <a> variants share one #content template. -->\n@if (routerLink()) {\n <a\n routerLinkActive=\"active\"\n [dsTooltipConfig]=\"{ placement: 'right' }\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [ariaCurrentWhenActive]=\"ariaCurrentResolved()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? -1 : null\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else if (href()) {\n <a\n [dsTooltipConfig]=\"{ placement: 'right' }\"\n [href]=\"href()\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? -1 : null\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <!-- No destination, so a button: `href=\"#\"` would rewrite the URL and discard the scroll position. -->\n <button\n type=\"button\"\n [dsTooltipConfig]=\"{ placement: 'right' }\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [disabled]=\"disabled()\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n}\n\n<ng-template #content>\n @if (icon()) {\n <ds-icon\n class=\"icon\"\n [name]=\"icon()!\"\n [size]=\"20\">\n </ds-icon>\n } @else {\n <span class=\"icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n @if (label()) {\n <span class=\"item-label\">\n {{ label() }}\n </span>\n }\n\n <span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n </span>\n\n @if (badge() !== null) {\n <span class=\"count\">\n {{ badge() }}\n </span>\n }\n\n @if (hasAlert()) {\n <span class=\"alert\"></span>\n }\n</ng-template>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_sidenav-item-label-color: var(--ds-sidenav-item-label-color, var(--text-secondary));--_sidenav-item-label-color-hover: var(--ds-sidenav-item-label-color-hover, var(--text-primary));--_sidenav-item-label-font-weight: var(--ds-sidenav-item-label-font-weight, var(--font-weight-semibold));--_sidenav-item-bg-color-hover: var(--ds-sidenav-item-bg-color-hover, var(--surface-secondary));--_sidenav-item-bg-color-active: var(--ds-sidenav-item-bg-color-active, var(--accent-subtitle));--_sidenav-item-label-color-active: var(--ds-sidenav-item-label-color-active, var(--accent-strong));--_sidenav-item-bg-color-active-hover: var(--ds-sidenav-item-bg-color-active-hover, var(--accent-muted));--_sidenav-item-rail: var(--ds-sidenav-item-rail, var(--accent-strong));--_sidenav-item-radius: var(--ds-sidenav-item-radius, var(--ds-radius-control));--_sidenav-alert-color: var(--ds-sidenav-alert-color, var(--error));display:block}.item{width:100%;border:0;background:transparent;text-align:left;display:flex;align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--_sidenav-item-radius);color:var(--_sidenav-item-label-color);text-decoration:none;font:var(--_sidenav-item-label-font-weight) var(--font-size-s)/var(--line-height-base) var(--font-sans);cursor:pointer;transition:background var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard);position:relative}.item:hover{background-color:var(--_sidenav-item-bg-color-hover);color:var(--_sidenav-item-label-color-hover)}.item:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.item:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.item.active{background-color:var(--_sidenav-item-bg-color-active);color:var(--_sidenav-item-label-color-active)}.item.active:not(:focus-visible){box-shadow:inset var(--sidenav-item-rail-width) 0 0 var(--_sidenav-item-rail)}.item.active.no-rail:not(:focus-visible){box-shadow:none}.item.active:hover{background-color:var(--_sidenav-item-bg-color-active-hover)}.item .icon{width:var(--icon-lg);height:var(--icon-lg);color:currentcolor;flex-shrink:0}.item .item-label{overflow:clip visible;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}.item .count{min-width:var(--badge-count-size);height:var(--badge-count-size);padding:0 var(--space-1-5);display:inline-grid;place-items:center;border-radius:var(--radius-pill);background:var(--surface-secondary);color:var(--text-secondary);font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-base) var(--font-sans);letter-spacing:var(--letter-spacing-wide);margin-left:auto}.item .alert{width:var(--badge-dot-size);height:var(--badge-dot-size);background:var(--_sidenav-alert-color);border-radius:var(--radius-pill);margin-left:auto}.item .trailing{display:inline-flex;align-items:center;margin-left:auto;color:var(--text-tertiary);flex-shrink:0}.item.active .trailing{color:currentcolor}.item.disabled{color:var(--text-disabled);cursor:not-allowed}.item.disabled:hover{background:unset;color:var(--text-disabled)}:host-context(.sidenav.collapsed) .item{justify-content:center;padding:0;width:100%;height:var(--sidenav-collapsed-item);gap:0;font-size:0}:host-context(.sidenav.collapsed) .item .icon{font-size:0}:host-context(.sidenav.collapsed) .item .item-label,:host-context(.sidenav.collapsed) .item .count,:host-context(.sidenav.collapsed) .item .trailing{display:none}:host-context(.sidenav.collapsed) .item .alert{position:absolute;top:calc(50% - var(--sidenav-collapsed-glyph) / 2);left:calc(50% + var(--sidenav-collapsed-glyph) / 2);transform:translate(-50%,-50%);margin:0}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TooltipDirective, selector: "[dsTooltip], [dsTooltipWhenClipped]", inputs: ["dsTooltip", "dsTooltipConfig", "dsTooltipPlacement", "dsTooltipDelay", "dsTooltipArrow", "dsTooltipWhenClipped", "dsTooltipPinOnClick"] }] });
169
- }
170
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SidenavItemComponent, decorators: [{
171
- type: Component,
172
- args: [{ selector: 'ds-sidenav-item', standalone: true, imports: [
173
- IconComponent,
174
- RouterLink,
175
- RouterLinkActive,
176
- NgTemplateOutlet,
177
- TooltipDirective,
178
- ], encapsulation: ViewEncapsulation.Emulated, template: "<!-- Projection is by attribute only ([icon], [trailing]); no default <ng-content>.\n The two <a> variants share one #content template. -->\n@if (routerLink()) {\n <a\n routerLinkActive=\"active\"\n [dsTooltipConfig]=\"{ placement: 'right' }\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [ariaCurrentWhenActive]=\"ariaCurrentResolved()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? -1 : null\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else if (href()) {\n <a\n [dsTooltipConfig]=\"{ placement: 'right' }\"\n [href]=\"href()\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? -1 : null\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <!-- No destination, so a button: `href=\"#\"` would rewrite the URL and discard the scroll position. -->\n <button\n type=\"button\"\n [dsTooltipConfig]=\"{ placement: 'right' }\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [disabled]=\"disabled()\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n}\n\n<ng-template #content>\n @if (icon()) {\n <ds-icon\n class=\"icon\"\n [name]=\"icon()!\"\n [size]=\"20\">\n </ds-icon>\n } @else {\n <span class=\"icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n @if (label()) {\n <span class=\"item-label\">\n {{ label() }}\n </span>\n }\n\n <span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n </span>\n\n @if (badge() !== null) {\n <span class=\"count\">\n {{ badge() }}\n </span>\n }\n\n @if (hasAlert()) {\n <span class=\"alert\"></span>\n }\n</ng-template>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_sidenav-item-label-color: var(--ds-sidenav-item-label-color, var(--text-secondary));--_sidenav-item-label-color-hover: var(--ds-sidenav-item-label-color-hover, var(--text-primary));--_sidenav-item-label-font-weight: var(--ds-sidenav-item-label-font-weight, var(--font-weight-semibold));--_sidenav-item-bg-color-hover: var(--ds-sidenav-item-bg-color-hover, var(--surface-secondary));--_sidenav-item-bg-color-active: var(--ds-sidenav-item-bg-color-active, var(--accent-subtitle));--_sidenav-item-label-color-active: var(--ds-sidenav-item-label-color-active, var(--accent-strong));--_sidenav-item-bg-color-active-hover: var(--ds-sidenav-item-bg-color-active-hover, var(--accent-muted));--_sidenav-item-rail: var(--ds-sidenav-item-rail, var(--accent-strong));--_sidenav-item-radius: var(--ds-sidenav-item-radius, var(--ds-radius-control));--_sidenav-alert-color: var(--ds-sidenav-alert-color, var(--error));display:block}.item{width:100%;border:0;background:transparent;text-align:left;display:flex;align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--_sidenav-item-radius);color:var(--_sidenav-item-label-color);text-decoration:none;font:var(--_sidenav-item-label-font-weight) var(--font-size-s)/var(--line-height-base) var(--font-sans);cursor:pointer;transition:background var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard);position:relative}.item:hover{background-color:var(--_sidenav-item-bg-color-hover);color:var(--_sidenav-item-label-color-hover)}.item:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.item:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.item.active{background-color:var(--_sidenav-item-bg-color-active);color:var(--_sidenav-item-label-color-active)}.item.active:not(:focus-visible){box-shadow:inset var(--sidenav-item-rail-width) 0 0 var(--_sidenav-item-rail)}.item.active.no-rail:not(:focus-visible){box-shadow:none}.item.active:hover{background-color:var(--_sidenav-item-bg-color-active-hover)}.item .icon{width:var(--icon-lg);height:var(--icon-lg);color:currentcolor;flex-shrink:0}.item .item-label{overflow:clip visible;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}.item .count{min-width:var(--badge-count-size);height:var(--badge-count-size);padding:0 var(--space-1-5);display:inline-grid;place-items:center;border-radius:var(--radius-pill);background:var(--surface-secondary);color:var(--text-secondary);font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-base) var(--font-sans);letter-spacing:var(--letter-spacing-wide);margin-left:auto}.item .alert{width:var(--badge-dot-size);height:var(--badge-dot-size);background:var(--_sidenav-alert-color);border-radius:var(--radius-pill);margin-left:auto}.item .trailing{display:inline-flex;align-items:center;margin-left:auto;color:var(--text-tertiary);flex-shrink:0}.item.active .trailing{color:currentcolor}.item.disabled{color:var(--text-disabled);cursor:not-allowed}.item.disabled:hover{background:unset;color:var(--text-disabled)}:host-context(.sidenav.collapsed) .item{justify-content:center;padding:0;width:100%;height:var(--sidenav-collapsed-item);gap:0;font-size:0}:host-context(.sidenav.collapsed) .item .icon{font-size:0}:host-context(.sidenav.collapsed) .item .item-label,:host-context(.sidenav.collapsed) .item .count,:host-context(.sidenav.collapsed) .item .trailing{display:none}:host-context(.sidenav.collapsed) .item .alert{position:absolute;top:calc(50% - var(--sidenav-collapsed-glyph) / 2);left:calc(50% + var(--sidenav-collapsed-glyph) / 2);transform:translate(-50%,-50%);margin:0}\n"] }]
179
- }], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], routerLink: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerLink", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], ariaCurrent: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaCurrent", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], hasAlert: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasAlert", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], activate: [{ type: i0.Output, args: ["activate"] }], rail: [{ type: i0.Input, args: [{ isSignal: true, alias: "rail", required: false }] }] } });
4
+ /** @deprecated Use `NavComponent` and `<ds-nav>`. Removed 10 releases after 1.2.0. */
5
+ const SidenavComponent = NavComponent;
6
+ /** @deprecated Use `NavGroupComponent` and `<ds-nav-group>`. Removed 10 releases after 1.2.0. */
7
+ const SidenavGroupComponent = NavGroupComponent;
8
+ /** @deprecated Use `NavItemComponent` and `<ds-nav-item>`. Removed 10 releases after 1.2.0. */
9
+ const SidenavItemComponent = NavItemComponent;
10
+ /** @deprecated Use `NAV`. Removed 10 releases after 1.2.0. */
11
+ const SIDENAV = NAV;
180
12
 
181
13
  /**
182
14
  * Generated bundle index. Do not edit.
183
15
  */
184
16
 
185
- export { BrandNameDirective, SIDENAV, SidenavComponent, SidenavGroupComponent, SidenavItemComponent };
17
+ export { SIDENAV, SidenavComponent, SidenavGroupComponent, SidenavItemComponent };
186
18
  //# sourceMappingURL=ids-group-ltd-ids-design-system-components-sidenav.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-sidenav.mjs","sources":["../../../src/lib/components/sidenav/brand-name.directive.ts","../../../src/lib/components/sidenav/sidenav.token.ts","../../../src/lib/components/sidenav/sidenav.component.ts","../../../src/lib/components/sidenav/sidenav.component.html","../../../src/lib/components/sidenav/sidenav-group.component.ts","../../../src/lib/components/sidenav/sidenav-group.component.html","../../../src/lib/components/sidenav/sidenav-item.component.ts","../../../src/lib/components/sidenav/sidenav-item.component.html","../../../src/lib/components/sidenav/ids-group-ltd-ids-design-system-components-sidenav.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n/**\n * Marks projected wordmark markup for `ds-sidenav`: when present, the sidenav\n * renders the projected content inside `.brand-name` instead of the plain\n * `brand` text.\n *\n * It renders the brand row even without a string `brand`, but the letter-mark\n * tile still comes from `logoLetter` (or the first letter of `brand`), so an\n * empty `brand` + projection renders the wordmark with no tile.\n */\n@Directive({\n selector: '[dsBrandName]',\n standalone: true,\n})\nexport class BrandNameDirective {}\n","import { InjectionToken } from '@angular/core';\n\n/** Contract that ds-sidenav-item reads from its parent ds-sidenav. */\nexport interface SidenavContract {\n readonly collapsed: () => boolean;\n /** Whether the active item draws its edge marker; an item can override it. */\n readonly rail: () => boolean;\n}\n\nexport const SIDENAV = new InjectionToken<SidenavContract>('SIDENAV');\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n input,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { BrandNameDirective } from './brand-name.directive';\nimport { resolveBrandValue } from '@ids-group-ltd/ids-design-system/components';\nimport { SIDENAV, type SidenavContract } from './sidenav.token';\n\n@Component({\n selector: 'ds-sidenav',\n standalone: true,\n imports: [NgTemplateOutlet, RouterLink],\n templateUrl: './sidenav.component.html',\n styleUrl: './sidenav.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.sidenav]': 'true',\n '[class.collapsed]': 'collapsed()',\n },\n providers: [{ provide: SIDENAV, useExisting: SidenavComponent }],\n})\nexport class SidenavComponent implements SidenavContract {\n /** Collapses the rail to icon-only width; read by nested `ds-sidenav-item`/`ds-sidenav-group`. */\n readonly collapsed = input(false, { transform: booleanAttribute });\n /** Whether the ACTIVE item draws its edge marker, for the whole sidenav. An individual\n * `ds-sidenav-item` can override it with its own `rail`. */\n readonly rail = input(true, { transform: booleanAttribute });\n /** Brand text at the top of the rail (auto letter-mark + name). Unset falls back to\n * `DS_CONFIG.brand.name`. Each field resolves on its own: `brand=\"\"` drops the\n * wordmark while a configured `logoLetter` still paints its tile. */\n readonly brand = input<string | null>(null);\n /** Letter-mark glyph when it differs from the brand's first letter. Empty = first letter of `brand`;\n * unset falls back to `DS_CONFIG.brand.logoLetter`. */\n readonly logoLetter = input<string | null>(null);\n /** Route the brand row links to. Unset leaves the row non-interactive. `RouterLink` is\n * instantiated only once this is set, so an app with no router still renders. */\n readonly brandRoute = input<string | readonly unknown[] | null>(null);\n /** Accessible name for the brand link; unset names it \"<brand>, home\". Ignored\n * while `brandRoute` is unset. */\n readonly brandLinkLabel = input<string | null>(null);\n\n /** Read these, not the inputs: the config default lives here. */\n readonly brandName = resolveBrandValue(this.brand, 'name');\n readonly letterGlyph = resolveBrandValue(this.logoLetter, 'logoLetter');\n\n /** Projected `[dsBrandName]` wordmark markup, when the consumer provides one. */\n protected readonly brandNameRef = contentChild(BrandNameDirective);\n protected readonly hasBrandName = computed(() => !!this.brandNameRef());\n\n /** Spread, not `charAt(0)`: that splits an astral character's surrogate pair. */\n protected readonly markGlyph = computed(\n () => this.letterGlyph() || [...this.brandName()][0] || '',\n );\n\n protected readonly brandAriaLabel = computed(() => {\n const own = this.brandLinkLabel();\n if (own) {\n return own;\n }\n const name = this.brandName();\n\n return name ? `${name}, home` : 'Home';\n });\n}\n","@if (brandRoute()) {\n <a\n class=\"brand brand-link\"\n [routerLink]=\"brandRoute()\"\n [attr.aria-label]=\"brandAriaLabel()\">\n <ng-container [ngTemplateOutlet]=\"brandContent\" />\n </a>\n} @else {\n <div class=\"brand\">\n <ng-container [ngTemplateOutlet]=\"brandContent\" />\n </div>\n}\n\n<ng-template #brandContent>\n <ng-content select=\"[brand]\"></ng-content>\n\n @if (letterGlyph() || brandName()) {\n <span\n class=\"mark\"\n aria-hidden=\"true\">\n {{ markGlyph() }}\n </span>\n }\n\n @if (brandName() || hasBrandName()) {\n <span class=\"brand-name\">\n @if (hasBrandName()) {\n <ng-content select=\"[dsBrandName]\"></ng-content>\n } @else {\n {{ brandName() }}\n }\n </span>\n }\n</ng-template>\n\n<ng-content></ng-content>\n","import { dsAriaCurrent } from '@ids-group-ltd/ids-design-system/components';\nimport type {\n DsAriaCurrent,\n DsLinkModifiers,\n DsRouterLink,\n} from '@ids-group-ltd/ids-design-system/components';\nimport {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-sidenav-group',\n standalone: true,\n imports: [IconComponent, NgTemplateOutlet, RouterLink, RouterLinkActive],\n templateUrl: './sidenav-group.component.html',\n styleUrl: './sidenav-group.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SidenavGroupComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Group heading text. */\n readonly label = input<string>('');\n /** Optional group icon; omit to project custom content via the `[ds-group-icon]` slot instead. */\n readonly icon = input<IconName | null>(null);\n /** When true, the label/icon row becomes a clickable header that expands/collapses the group. */\n readonly expandable = input(false, { transform: booleanAttribute });\n /** Makes the group a destination as well as a container: the header navigates here and the\n * caret becomes a separate control. Unset, the whole header only expands. */\n readonly routerLink = input<DsRouterLink>(null);\n /** Overrides what the group header announces when it is itself a destination. Unset, the page\n * the reader is on announces `page` and the section containing it announces `true`. */\n readonly ariaCurrent = input<DsAriaCurrent | null | undefined>(undefined);\n /** Two-way bindable open state; defaults open so a non-expandable group always shows its items. */\n readonly expanded = model<boolean>(true);\n\n /** A header that navigates hands the caret its own button; one that does not is the button. */\n private readonly noModifiers = computed<DsLinkModifiers>(() => ({}));\n protected readonly ariaCurrentResolved = dsAriaCurrent(\n this.routerLink,\n this.noModifiers,\n this.ariaCurrent,\n );\n\n protected readonly headerNavigates = computed(\n () => this.expandable() && this.routerLink() !== null,\n );\n\n protected toggle(): void {\n if (!this.expandable()) {\n return;\n }\n this.expanded.update((value) => !value);\n }\n}\n","<!-- Single <ng-content> outside any @if: duplicates silently drop children on a non-matching branch.\n Same for [ds-group-icon], so both header branches stamp out ONE template. -->\n<ng-template #headerContent>\n @if (icon()) {\n <ds-icon\n class=\"group-icon\"\n [name]=\"icon()!\"\n [size]=\"18\">\n </ds-icon>\n } @else {\n <!-- `[ds-group-icon]` differs from the `[icon]` slots of child sidenav-items so their icons aren't swallowed. -->\n <span class=\"group-icon\">\n <ng-content select=\"[ds-group-icon]\"></ng-content>\n </span>\n }\n\n @if (label()) {\n <span class=\"group-title\">\n {{ label() }}\n </span>\n }\n</ng-template>\n\n@if (headerNavigates()) {\n <div class=\"group-header-row\">\n <a\n class=\"group-header\"\n routerLinkActive=\"active\"\n [routerLink]=\"routerLink()\"\n [ariaCurrentWhenActive]=\"ariaCurrentResolved()\">\n <ng-container [ngTemplateOutlet]=\"headerContent\" />\n </a>\n\n <button\n type=\"button\"\n class=\"group-caret-button\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-label]=\"\n expanded()\n ? intl().sidenav.collapseGroup(label())\n : intl().sidenav.expandGroup(label())\n \"\n (click)=\"toggle()\">\n <ds-icon\n class=\"group-caret\"\n name=\"chevronDown\"\n [class.open]=\"expanded()\"\n [size]=\"14\">\n </ds-icon>\n </button>\n </div>\n} @else if (expandable()) {\n <button\n type=\"button\"\n class=\"group-header\"\n [attr.aria-expanded]=\"expanded()\"\n (click)=\"toggle()\">\n <ng-container [ngTemplateOutlet]=\"headerContent\" />\n\n <ds-icon\n class=\"group-caret\"\n name=\"chevronDown\"\n [class.open]=\"expanded()\"\n [size]=\"14\">\n </ds-icon>\n </button>\n} @else if (label()) {\n <span class=\"group-label\">\n {{ label() }}\n </span>\n}\n\n<div\n class=\"group-body\"\n [class.hidden]=\"expandable() && !expanded()\"\n [attr.inert]=\"expandable() && !expanded() ? '' : null\">\n <ng-content></ng-content>\n</div>\n","import { dsAriaCurrent } from '@ids-group-ltd/ids-design-system/components';\nimport type {\n DsAriaCurrent,\n DsLinkModifiers,\n DsRouterLink,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n output,\n} from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { TooltipDirective } from '@ids-group-ltd/ids-design-system/components/tooltip';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { SIDENAV } from './sidenav.token';\n\n@Component({\n selector: 'ds-sidenav-item',\n standalone: true,\n imports: [\n IconComponent,\n RouterLink,\n RouterLinkActive,\n NgTemplateOutlet,\n TooltipDirective,\n ],\n templateUrl: './sidenav-item.component.html',\n styleUrl: './sidenav-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SidenavItemComponent {\n /** Icon shown before the label; omit to project a custom icon via the `[icon]` slot instead. */\n readonly icon = input<IconName | null>(null);\n /** Visible link text; also used as the tooltip/aria-label when the rail is collapsed. */\n readonly label = input.required<string>();\n /** Plain `href` target, used when `routerLink` is not set. */\n readonly href = input<string>('');\n /** Angular `RouterLink` target, string or array form for dynamic segments. */\n readonly routerLink = input<DsRouterLink>(null);\n /** Applies the active style; also drives `aria-current` when not using `routerLink`. */\n readonly active = input(false, { transform: booleanAttribute });\n /** Overrides what an active item announces. Unset, an exact match announces `page` and a prefix\n * match announces `true` (\"you are in this section\"). */\n readonly ariaCurrent = input<DsAriaCurrent | null | undefined>(undefined);\n /** Numeric count shown at the end of the item. */\n readonly badge = input<number | null>(null);\n /** Shows an alert dot alongside the badge. */\n readonly hasAlert = input(false, { transform: booleanAttribute });\n /** Disables the item: non-navigable and styled as inactive. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Emitted on click, carrying the `MouseEvent`. On an `href` item, `preventDefault()`\n * intercepts navigation; a `routerLink` item navigates regardless (RouterLink ignores\n * `defaultPrevented`). */\n readonly activate = output<MouseEvent>();\n\n /** Whether THIS item draws its edge marker when active. Unset follows the parent `ds-sidenav`, then on. */\n readonly rail = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n\n private readonly sidenav = inject(SIDENAV, { optional: true });\n\n private readonly noModifiers = computed<DsLinkModifiers>(() => ({}));\n protected readonly ariaCurrentResolved = dsAriaCurrent(\n this.routerLink,\n this.noModifiers,\n this.ariaCurrent,\n );\n\n protected readonly railResolved = computed(\n () => this.rail() ?? this.sidenav?.rail() ?? true,\n );\n\n protected onActivate(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n this.activate.emit(event);\n }\n\n /** Tooltip text shown when collapsed; empty string suppresses the tooltip when expanded. */\n protected readonly collapsedTooltip = computed(() =>\n this.sidenav?.collapsed() ? this.label() : '',\n );\n\n // Only when collapsed: expanded, it would override the visible label and drop the badge count / alert dot.\n protected readonly collapsedAriaLabel = computed(() =>\n this.sidenav?.collapsed() ? this.label() : null,\n );\n\n protected readonly linkClasses = computed(() => {\n const parts = ['item'];\n if (this.active()) {\n parts.push('active');\n }\n // The routerLink variant gets `active` from routerLinkActive, so the opt-out needs its own class.\n if (!this.railResolved()) {\n parts.push('no-rail');\n }\n if (this.disabled()) {\n parts.push('disabled');\n }\n\n return parts.join(' ');\n });\n}\n","<!-- Projection is by attribute only ([icon], [trailing]); no default <ng-content>.\n The two <a> variants share one #content template. -->\n@if (routerLink()) {\n <a\n routerLinkActive=\"active\"\n [dsTooltipConfig]=\"{ placement: 'right' }\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [ariaCurrentWhenActive]=\"ariaCurrentResolved()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? -1 : null\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else if (href()) {\n <a\n [dsTooltipConfig]=\"{ placement: 'right' }\"\n [href]=\"href()\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? -1 : null\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <!-- No destination, so a button: `href=\"#\"` would rewrite the URL and discard the scroll position. -->\n <button\n type=\"button\"\n [dsTooltipConfig]=\"{ placement: 'right' }\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [disabled]=\"disabled()\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n}\n\n<ng-template #content>\n @if (icon()) {\n <ds-icon\n class=\"icon\"\n [name]=\"icon()!\"\n [size]=\"20\">\n </ds-icon>\n } @else {\n <span class=\"icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n @if (label()) {\n <span class=\"item-label\">\n {{ label() }}\n </span>\n }\n\n <span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n </span>\n\n @if (badge() !== null) {\n <span class=\"count\">\n {{ badge() }}\n </span>\n }\n\n @if (hasAlert()) {\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,uBAAA,EAAA,kBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAChB,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAChB,gBAAgB,EAAA,QAAA,EAAA,qCAAA,EAAA,MAAA,EAAA,CAAA,WAAA,EAAA,iBAAA,EAAA,oBAAA,EAAA,gBAAA,EAAA,gBAAA,EAAA,sBAAA,EAAA,qBAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAMP,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAdhC,SAAS;+BACE,iBAAiB,EAAA,UAAA,EACf,IAAI,EAAA,OAAA,EACP;wBACP,aAAa;wBACb,UAAU;wBACV,gBAAgB;wBAChB,gBAAgB;wBAChB,gBAAgB;qBACjB,EAAA,aAAA,EAGc,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,0vEAAA,EAAA,MAAA,EAAA,CAAA,46IAAA,CAAA,EAAA;;;AElC3C;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-sidenav.mjs","sources":["../../../src/lib/components/sidenav/sidenav-aliases.ts","../../../src/lib/components/sidenav/ids-group-ltd-ids-design-system-components-sidenav.ts"],"sourcesContent":["import {\n NAV,\n NavComponent,\n NavGroupComponent,\n NavItemComponent,\n} from '@ids-group-ltd/ids-design-system/components/nav';\nimport type {\n NavContract,\n NavItemModel,\n} from '@ids-group-ltd/ids-design-system/components/nav';\n\n/** @deprecated Use `NavComponent` and `<ds-nav>`. Removed 10 releases after 1.2.0. */\nexport const SidenavComponent = NavComponent;\n/** @deprecated Use `NavComponent` and `<ds-nav>`. Removed 10 releases after 1.2.0. */\nexport type SidenavComponent = NavComponent;\n\n/** @deprecated Use `NavGroupComponent` and `<ds-nav-group>`. Removed 10 releases after 1.2.0. */\nexport const SidenavGroupComponent = NavGroupComponent;\n/** @deprecated Use `NavGroupComponent` and `<ds-nav-group>`. Removed 10 releases after 1.2.0. */\nexport type SidenavGroupComponent = NavGroupComponent;\n\n/** @deprecated Use `NavItemComponent` and `<ds-nav-item>`. Removed 10 releases after 1.2.0. */\nexport const SidenavItemComponent = NavItemComponent;\n/** @deprecated Use `NavItemComponent` and `<ds-nav-item>`. Removed 10 releases after 1.2.0. */\nexport type SidenavItemComponent = NavItemComponent;\n\n/** @deprecated Use `NAV`. Removed 10 releases after 1.2.0. */\nexport const SIDENAV = NAV;\n\n/** @deprecated Use `NavContract`. Removed 10 releases after 1.2.0. */\nexport type SidenavContract = NavContract;\n\n/** @deprecated Use `NavItemModel`. Removed 10 releases after 1.2.0. */\nexport type SidenavItemModel = NavItemModel;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAWA;AACO,MAAM,gBAAgB,GAAG;AAIhC;AACO,MAAM,qBAAqB,GAAG;AAIrC;AACO,MAAM,oBAAoB,GAAG;AAIpC;AACO,MAAM,OAAO,GAAG;;AC3BvB;;AAEG;;;;"}
@@ -41,7 +41,7 @@ class SkeletonComponent {
41
41
  });
42
42
  }
43
43
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
44
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: SkeletonComponent, isStandalone: true, selector: "ds-skeleton", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, circle: { classPropertyName: "circle", publicName: "circle", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, shimmer: { classPropertyName: "shimmer", publicName: "shimmer", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" }, properties: { "style.width": "width()", "style.height": "height()", "class.circle": "circle()", "class.inline": "inline()", "class.still": "!shimmer()" } }, ngImport: i0, template: '', isInline: true, styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_skeleton-bg-color: var(--ds-skeleton-bg-color, var(--surface-secondary));--_skeleton-shimmer-color: var(--ds-skeleton-shimmer-color, var(--surface-muted));--_skeleton-wave-period: var(--ds-skeleton-wave-period, 56rem);--_skeleton-wave-duration: var(--ds-skeleton-wave-duration, 3.4s);--_skeleton-wave-steps: var(--ds-skeleton-wave-steps, 68);--_skeleton-wave-angle: var(--ds-skeleton-wave-angle, 135deg);--_skeleton-wave-fade: rgb(from var(--_skeleton-shimmer-color) r g b / 0%);--_skeleton-wave-echo-color: var( --ds-skeleton-wave-echo-color, color-mix(in srgb, var(--_skeleton-shimmer-color) 30%, transparent) );display:block;position:relative;overflow:hidden;background:var(--_skeleton-bg-color);border-radius:var(--radius-md)}:host(.circle){border-radius:var(--radius-pill)}:host(.inline){display:inline-block;vertical-align:middle}:host:after{content:\"\";position:absolute;inset:0;pointer-events:none;background-image:repeating-linear-gradient(var(--_skeleton-wave-angle),var(--_skeleton-wave-echo-color) 0,var(--_skeleton-wave-fade) calc(var(--_skeleton-wave-period) / 4),var(--_skeleton-shimmer-color) calc(var(--_skeleton-wave-period) / 2),var(--_skeleton-wave-fade) calc(var(--_skeleton-wave-period) * .75),var(--_skeleton-wave-echo-color) var(--_skeleton-wave-period));background-size:calc(var(--_skeleton-wave-period) * 1.4142) calc(var(--_skeleton-wave-period) * 1.4142);background-attachment:fixed;animation:ds-skeleton-shimmer-loop var(--_skeleton-wave-duration) steps(var(--_skeleton-wave-steps)) infinite}:host(.is-offscreen):after{animation-play-state:paused}:host(.still):after{animation:none}@keyframes ds-skeleton-shimmer-loop{0%{background-position:0 0}to{background-position:calc(var(--_skeleton-wave-period) / 1.4142) calc(var(--_skeleton-wave-period) / 1.4142)}}@media(prefers-reduced-motion:reduce){:host:after{animation:none}}\n"] });
44
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: SkeletonComponent, isStandalone: true, selector: "ds-skeleton", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, circle: { classPropertyName: "circle", publicName: "circle", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, shimmer: { classPropertyName: "shimmer", publicName: "shimmer", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" }, properties: { "style.width": "width()", "style.height": "height()", "class.circle": "circle()", "class.inline": "inline()", "class.still": "!shimmer()" } }, ngImport: i0, template: '', isInline: true, styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_skeleton-bg-color: var(--ds-skeleton-bg-color, var(--surface-secondary));--_skeleton-shimmer-color: var(--ds-skeleton-shimmer-color, var(--surface-muted));--_skeleton-wave-period: var(--ds-skeleton-wave-period, 56rem);--_skeleton-wave-duration: var(--ds-skeleton-wave-duration, 3.4s);--_skeleton-wave-steps: var(--ds-skeleton-wave-steps, 68);--_skeleton-wave-angle: var(--ds-skeleton-wave-angle, 135deg);--_skeleton-wave-fade: rgb(from var(--_skeleton-shimmer-color) r g b / 0%);--_skeleton-wave-echo-color: var( --ds-skeleton-wave-echo-color, color-mix(in srgb, var(--_skeleton-shimmer-color) 30%, transparent) );display:block;position:relative;overflow:hidden;background:var(--_skeleton-bg-color);border-radius:var(--ds-radius-control)}:host(.circle){border-radius:var(--radius-pill)}:host(.inline){display:inline-block;vertical-align:middle}:host:after{content:\"\";position:absolute;inset:0;pointer-events:none;background-image:repeating-linear-gradient(var(--_skeleton-wave-angle),var(--_skeleton-wave-echo-color) 0,var(--_skeleton-wave-fade) calc(var(--_skeleton-wave-period) / 4),var(--_skeleton-shimmer-color) calc(var(--_skeleton-wave-period) / 2),var(--_skeleton-wave-fade) calc(var(--_skeleton-wave-period) * .75),var(--_skeleton-wave-echo-color) var(--_skeleton-wave-period));background-size:calc(var(--_skeleton-wave-period) * 1.4142) calc(var(--_skeleton-wave-period) * 1.4142);background-attachment:fixed;animation:ds-skeleton-shimmer-loop var(--_skeleton-wave-duration) steps(var(--_skeleton-wave-steps)) infinite}:host(.is-offscreen):after{animation-play-state:paused}:host(.still):after{animation:none}@keyframes ds-skeleton-shimmer-loop{0%{background-position:0 0}to{background-position:calc(var(--_skeleton-wave-period) / 1.4142) calc(var(--_skeleton-wave-period) / 1.4142)}}@media(prefers-reduced-motion:reduce){:host:after{animation:none}}\n"] });
45
45
  }
46
46
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SkeletonComponent, decorators: [{
47
47
  type: Component,
@@ -52,7 +52,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
52
52
  '[class.circle]': 'circle()',
53
53
  '[class.inline]': 'inline()',
54
54
  '[class.still]': '!shimmer()',
55
- }, encapsulation: ViewEncapsulation.Emulated, styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_skeleton-bg-color: var(--ds-skeleton-bg-color, var(--surface-secondary));--_skeleton-shimmer-color: var(--ds-skeleton-shimmer-color, var(--surface-muted));--_skeleton-wave-period: var(--ds-skeleton-wave-period, 56rem);--_skeleton-wave-duration: var(--ds-skeleton-wave-duration, 3.4s);--_skeleton-wave-steps: var(--ds-skeleton-wave-steps, 68);--_skeleton-wave-angle: var(--ds-skeleton-wave-angle, 135deg);--_skeleton-wave-fade: rgb(from var(--_skeleton-shimmer-color) r g b / 0%);--_skeleton-wave-echo-color: var( --ds-skeleton-wave-echo-color, color-mix(in srgb, var(--_skeleton-shimmer-color) 30%, transparent) );display:block;position:relative;overflow:hidden;background:var(--_skeleton-bg-color);border-radius:var(--radius-md)}:host(.circle){border-radius:var(--radius-pill)}:host(.inline){display:inline-block;vertical-align:middle}:host:after{content:\"\";position:absolute;inset:0;pointer-events:none;background-image:repeating-linear-gradient(var(--_skeleton-wave-angle),var(--_skeleton-wave-echo-color) 0,var(--_skeleton-wave-fade) calc(var(--_skeleton-wave-period) / 4),var(--_skeleton-shimmer-color) calc(var(--_skeleton-wave-period) / 2),var(--_skeleton-wave-fade) calc(var(--_skeleton-wave-period) * .75),var(--_skeleton-wave-echo-color) var(--_skeleton-wave-period));background-size:calc(var(--_skeleton-wave-period) * 1.4142) calc(var(--_skeleton-wave-period) * 1.4142);background-attachment:fixed;animation:ds-skeleton-shimmer-loop var(--_skeleton-wave-duration) steps(var(--_skeleton-wave-steps)) infinite}:host(.is-offscreen):after{animation-play-state:paused}:host(.still):after{animation:none}@keyframes ds-skeleton-shimmer-loop{0%{background-position:0 0}to{background-position:calc(var(--_skeleton-wave-period) / 1.4142) calc(var(--_skeleton-wave-period) / 1.4142)}}@media(prefers-reduced-motion:reduce){:host:after{animation:none}}\n"] }]
55
+ }, encapsulation: ViewEncapsulation.Emulated, styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_skeleton-bg-color: var(--ds-skeleton-bg-color, var(--surface-secondary));--_skeleton-shimmer-color: var(--ds-skeleton-shimmer-color, var(--surface-muted));--_skeleton-wave-period: var(--ds-skeleton-wave-period, 56rem);--_skeleton-wave-duration: var(--ds-skeleton-wave-duration, 3.4s);--_skeleton-wave-steps: var(--ds-skeleton-wave-steps, 68);--_skeleton-wave-angle: var(--ds-skeleton-wave-angle, 135deg);--_skeleton-wave-fade: rgb(from var(--_skeleton-shimmer-color) r g b / 0%);--_skeleton-wave-echo-color: var( --ds-skeleton-wave-echo-color, color-mix(in srgb, var(--_skeleton-shimmer-color) 30%, transparent) );display:block;position:relative;overflow:hidden;background:var(--_skeleton-bg-color);border-radius:var(--ds-radius-control)}:host(.circle){border-radius:var(--radius-pill)}:host(.inline){display:inline-block;vertical-align:middle}:host:after{content:\"\";position:absolute;inset:0;pointer-events:none;background-image:repeating-linear-gradient(var(--_skeleton-wave-angle),var(--_skeleton-wave-echo-color) 0,var(--_skeleton-wave-fade) calc(var(--_skeleton-wave-period) / 4),var(--_skeleton-shimmer-color) calc(var(--_skeleton-wave-period) / 2),var(--_skeleton-wave-fade) calc(var(--_skeleton-wave-period) * .75),var(--_skeleton-wave-echo-color) var(--_skeleton-wave-period));background-size:calc(var(--_skeleton-wave-period) * 1.4142) calc(var(--_skeleton-wave-period) * 1.4142);background-attachment:fixed;animation:ds-skeleton-shimmer-loop var(--_skeleton-wave-duration) steps(var(--_skeleton-wave-steps)) infinite}:host(.is-offscreen):after{animation-play-state:paused}:host(.still):after{animation:none}@keyframes ds-skeleton-shimmer-loop{0%{background-position:0 0}to{background-position:calc(var(--_skeleton-wave-period) / 1.4142) calc(var(--_skeleton-wave-period) / 1.4142)}}@media(prefers-reduced-motion:reduce){:host:after{animation:none}}\n"] }]
56
56
  }], ctorParameters: () => [], propDecorators: { width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], circle: [{ type: i0.Input, args: [{ isSignal: true, alias: "circle", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], shimmer: [{ type: i0.Input, args: [{ isSignal: true, alias: "shimmer", required: false }] }] } });
57
57
 
58
58
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-skeleton.mjs","sources":["../../../src/lib/components/skeleton/skeleton.component.ts","../../../src/lib/components/skeleton/ids-group-ltd-ids-design-system-components-skeleton.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n NgZone,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n} from '@angular/core';\nimport { retainStyles } from '@ids-group-ltd/ids-design-system/core';\n\n// The shimmer animates `background-position` on the main thread even off screen; one shared\n// observer pauses the skeletons out of view.\nlet offscreenObserver: IntersectionObserver | null = null;\n\nfunction observeVisibility(host: Element, zone: NgZone): () => void {\n offscreenObserver ??= zone.runOutsideAngular(\n () =>\n new IntersectionObserver((entries) => {\n for (const entry of entries) {\n entry.target.classList.toggle('is-offscreen', !entry.isIntersecting);\n }\n }),\n );\n const observer = offscreenObserver;\n observer.observe(host);\n\n return () => observer.unobserve(host);\n}\n\n@Component({\n selector: 'ds-skeleton',\n standalone: true,\n template: '',\n styleUrl: './skeleton.component.scss',\n host: {\n 'aria-hidden': 'true',\n '[style.width]': 'width()',\n '[style.height]': 'height()',\n '[class.circle]': 'circle()',\n '[class.inline]': 'inline()',\n '[class.still]': '!shimmer()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SkeletonComponent {\n /** CSS width, e.g. `'120px'` or `'50%'`. */\n readonly width = input<string | undefined>(undefined);\n /** CSS height. */\n readonly height = input<string | undefined>(undefined);\n /** Pill radius, for avatar/dot-shaped placeholders. */\n readonly circle = input(false, { transform: booleanAttribute });\n /** `display: inline-block` instead of `block`, to sit inline with text. */\n readonly inline = input(false, { transform: booleanAttribute });\n /** Whether the wave passes over the placeholder; off, it is a flat block of the same shape. */\n readonly shimmer = input(true, { transform: booleanAttribute });\n\n constructor() {\n retainStyles(SkeletonComponent);\n if (typeof IntersectionObserver === 'undefined') {\n return;\n }\n const host = inject<ElementRef<Element>>(ElementRef).nativeElement;\n const zone = inject(NgZone);\n // Each observed skeleton costs an intersection computation per scrolled frame; a still one has nothing to pause.\n effect((onCleanup) => {\n if (this.shimmer()) {\n onCleanup(observeVisibility(host, zone));\n }\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAYA;AACA;AACA,IAAI,iBAAiB,GAAgC,IAAI;AAEzD,SAAS,iBAAiB,CAAC,IAAa,EAAE,I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AAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAjB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,iBAAiB,s4BAZlB,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,66EAAA,CAAA,EAAA,CAAA;;4FAYD,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAf7B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,UAAA,EACX,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,IAAA,EAEN;AACJ,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,eAAe,EAAE,SAAS;AAC1B,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,eAAe,EAAE,YAAY;qBAC9B,EAAA,aAAA,EACc,iBAAiB,CAAC,QAAQ,EAAA,MAAA,EAAA,CAAA,66EAAA,CAAA,EAAA;;;AC5C3C;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-skeleton.mjs","sources":["../../../src/lib/components/skeleton/skeleton.component.ts","../../../src/lib/components/skeleton/ids-group-ltd-ids-design-system-components-skeleton.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n NgZone,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n} from '@angular/core';\nimport { retainStyles } from '@ids-group-ltd/ids-design-system/core';\n\n// The shimmer animates `background-position` on the main thread even off screen; one shared\n// observer pauses the skeletons out of view.\nlet offscreenObserver: IntersectionObserver | null = null;\n\nfunction observeVisibility(host: Element, zone: NgZone): () => void {\n offscreenObserver ??= zone.runOutsideAngular(\n () =>\n new IntersectionObserver((entries) => {\n for (const entry of entries) {\n entry.target.classList.toggle('is-offscreen', !entry.isIntersecting);\n }\n }),\n );\n const observer = offscreenObserver;\n observer.observe(host);\n\n return () => observer.unobserve(host);\n}\n\n@Component({\n selector: 'ds-skeleton',\n standalone: true,\n template: '',\n styleUrl: './skeleton.component.scss',\n host: {\n 'aria-hidden': 'true',\n '[style.width]': 'width()',\n '[style.height]': 'height()',\n '[class.circle]': 'circle()',\n '[class.inline]': 'inline()',\n '[class.still]': '!shimmer()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SkeletonComponent {\n /** CSS width, e.g. `'120px'` or `'50%'`. */\n readonly width = input<string | undefined>(undefined);\n /** CSS height. */\n readonly height = input<string | undefined>(undefined);\n /** Pill radius, for avatar/dot-shaped placeholders. */\n readonly circle = input(false, { transform: booleanAttribute });\n /** `display: inline-block` instead of `block`, to sit inline with text. */\n readonly inline = input(false, { transform: booleanAttribute });\n /** Whether the wave passes over the placeholder; off, it is a flat block of the same shape. */\n readonly shimmer = input(true, { transform: booleanAttribute });\n\n constructor() {\n retainStyles(SkeletonComponent);\n if (typeof IntersectionObserver === 'undefined') {\n return;\n }\n const host = inject<ElementRef<Element>>(ElementRef).nativeElement;\n const zone = inject(NgZone);\n // Each observed skeleton costs an intersection computation per scrolled frame; a still one has nothing to pause.\n effect((onCleanup) => {\n if (this.shimmer()) {\n onCleanup(observeVisibility(host, zone));\n }\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAYA;AACA;AACA,IAAI,iBAAiB,GAAgC,IAAI;AAEzD,SAAS,iBAAiB,CAAC,IAAa,EAAE,IAAY,EAAA;AACpD,IAAA,iBAAiB,KAAK,IAAI,CAAC,iBAAiB,CAC1C,MACE,IAAI,oBAAoB,CAAC,CAAC,OAAO,KAAI;AACnC,QAAA,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE;AAC3B,YAAA,KAAK,CAAC,MAAM,CA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AAA,EAAA,IAAA,EAAA,iBAAiB,s4BAZlB,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,q7EAAA,CAAA,EAAA,CAAA;;4FAYD,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAf7B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,UAAA,EACX,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,IAAA,EAEN;AACJ,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,eAAe,EAAE,SAAS;AAC1B,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,eAAe,EAAE,YAAY;qBAC9B,EAAA,aAAA,EACc,iBAAiB,CAAC,QAAQ,EAAA,MAAA,EAAA,CAAA,q7EAAA,CAAA,EAAA;;;AC5C3C;;AAEG;;;;"}
@@ -185,7 +185,7 @@ class SliderComponent extends DsControlValueAccessor {
185
185
  useExisting: forwardRef(() => SliderComponent),
186
186
  multi: true,
187
187
  },
188
- ], viewQueries: [{ propertyName: "track", first: true, predicate: ["track"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\">\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\">\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\">\n </span>\n }\n</div>\n\n<ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_slider-track-height: var(--ds-slider-track-height, var(--slider-track-h));--_slider-thumb-size: var(--ds-slider-thumb-size, var(--slider-thumb-size));--_slider-thumb-border-width: var(--ds-slider-thumb-border-width, var(--slider-thumb-border-width));--_slider-fill-color: var(--ds-slider-fill-color, var(--accent));--_slider-track-color: var(--ds-slider-track-color, var(--surface-muted));--_slider-thumb-color: var(--ds-slider-thumb-color, var(--surface-default));--_slider-thumb-border-color: var(--ds-slider-thumb-border-color, var(--accent));display:flex;flex-direction:column;padding-block:calc((var(--_slider-thumb-size) - var(--_slider-track-height)) / 2);gap:calc((var(--_slider-thumb-size) - var(--_slider-track-height)) / 2 + var(--space-1-5))}.track{position:relative;height:var(--_slider-track-height);background-color:var(--_slider-track-color);border-radius:var(--radius-pill);cursor:pointer;touch-action:none}.fill{position:absolute;top:0;height:100%;background-color:var(--_slider-fill-color);border-radius:var(--radius-pill)}.thumb{position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--_slider-thumb-size);height:var(--_slider-thumb-size);border-radius:var(--radius-pill);background-color:var(--_slider-thumb-color);border:var(--_slider-thumb-border-width) solid var(--_slider-thumb-border-color);box-shadow:var(--shadow-card);cursor:grab;touch-action:none}.thumb:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.thumb:active{cursor:grabbing}:host(.disabled) .track{cursor:not-allowed}:host(.disabled) .fill{background-color:var(--border-strong)}:host(.disabled) .thumb{border-color:var(--border-strong);cursor:not-allowed}:host(.invalid) .fill{background-color:var(--error)}:host(.invalid) .thumb{border-color:var(--error)}\n"], dependencies: [{ kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve", "changed"] }, { kind: "component", type: FieldStatusComponent, selector: "ds-field-status", inputs: ["pending", "changed"] }] });
188
+ ], viewQueries: [{ propertyName: "track", first: true, predicate: ["track"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\">\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\">\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\">\n </span>\n }\n</div>\n\n<ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_slider-track-height: var(--ds-slider-track-height, var(--slider-track-h));--_slider-thumb-size: var(--ds-slider-thumb-size, var(--slider-thumb-size));--_slider-thumb-border-width: var(--ds-slider-thumb-border-width, var(--slider-thumb-border-width));--_slider-fill-color: var(--ds-slider-fill-color, var(--accent));--_slider-track-color: var(--ds-slider-track-color, var(--border-field));--_slider-thumb-color: var(--ds-slider-thumb-color, var(--surface-default));--_slider-thumb-border-color: var(--ds-slider-thumb-border-color, var(--accent));display:flex;flex-direction:column;padding-block:calc((var(--_slider-thumb-size) - var(--_slider-track-height)) / 2);gap:calc((var(--_slider-thumb-size) - var(--_slider-track-height)) / 2 + var(--space-1-5))}.track{position:relative;height:var(--_slider-track-height);background-color:var(--_slider-track-color);border-radius:var(--radius-pill);cursor:pointer;touch-action:none}.fill{position:absolute;top:0;height:100%;background-color:var(--_slider-fill-color);border-radius:var(--radius-pill)}.thumb{position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--_slider-thumb-size);height:var(--_slider-thumb-size);border-radius:var(--radius-pill);background-color:var(--_slider-thumb-color);border:var(--_slider-thumb-border-width) solid var(--_slider-thumb-border-color);box-shadow:var(--shadow-card);cursor:grab;touch-action:none}.thumb:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.thumb:active{cursor:grabbing}:host(.disabled) .track{background-color:var(--border-disabled);cursor:not-allowed}:host(.disabled) .fill{background-color:var(--border-strong)}:host(.disabled) .thumb{border-color:var(--border-strong);cursor:not-allowed}:host(.invalid) .fill{background-color:var(--error)}:host(.invalid) .thumb{border-color:var(--error)}\n"], dependencies: [{ kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve", "changed"] }, { kind: "component", type: FieldStatusComponent, selector: "ds-field-status", inputs: ["pending", "changed"] }] });
189
189
  }
190
190
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SliderComponent, decorators: [{
191
191
  type: Component,
@@ -199,7 +199,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
199
199
  '[class.range]': 'range()',
200
200
  '[class.disabled]': 'isDisabled()',
201
201
  '[class.invalid]': 'invalidResolved()',
202
- }, template: "<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\">\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\">\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\">\n </span>\n }\n</div>\n\n<ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_slider-track-height: var(--ds-slider-track-height, var(--slider-track-h));--_slider-thumb-size: var(--ds-slider-thumb-size, var(--slider-thumb-size));--_slider-thumb-border-width: var(--ds-slider-thumb-border-width, var(--slider-thumb-border-width));--_slider-fill-color: var(--ds-slider-fill-color, var(--accent));--_slider-track-color: var(--ds-slider-track-color, var(--surface-muted));--_slider-thumb-color: var(--ds-slider-thumb-color, var(--surface-default));--_slider-thumb-border-color: var(--ds-slider-thumb-border-color, var(--accent));display:flex;flex-direction:column;padding-block:calc((var(--_slider-thumb-size) - var(--_slider-track-height)) / 2);gap:calc((var(--_slider-thumb-size) - var(--_slider-track-height)) / 2 + var(--space-1-5))}.track{position:relative;height:var(--_slider-track-height);background-color:var(--_slider-track-color);border-radius:var(--radius-pill);cursor:pointer;touch-action:none}.fill{position:absolute;top:0;height:100%;background-color:var(--_slider-fill-color);border-radius:var(--radius-pill)}.thumb{position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--_slider-thumb-size);height:var(--_slider-thumb-size);border-radius:var(--radius-pill);background-color:var(--_slider-thumb-color);border:var(--_slider-thumb-border-width) solid var(--_slider-thumb-border-color);box-shadow:var(--shadow-card);cursor:grab;touch-action:none}.thumb:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.thumb:active{cursor:grabbing}:host(.disabled) .track{cursor:not-allowed}:host(.disabled) .fill{background-color:var(--border-strong)}:host(.disabled) .thumb{border-color:var(--border-strong);cursor:not-allowed}:host(.invalid) .fill{background-color:var(--error)}:host(.invalid) .thumb{border-color:var(--error)}\n"] }]
202
+ }, template: "<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\">\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\">\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\">\n </span>\n }\n</div>\n\n<ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_slider-track-height: var(--ds-slider-track-height, var(--slider-track-h));--_slider-thumb-size: var(--ds-slider-thumb-size, var(--slider-thumb-size));--_slider-thumb-border-width: var(--ds-slider-thumb-border-width, var(--slider-thumb-border-width));--_slider-fill-color: var(--ds-slider-fill-color, var(--accent));--_slider-track-color: var(--ds-slider-track-color, var(--border-field));--_slider-thumb-color: var(--ds-slider-thumb-color, var(--surface-default));--_slider-thumb-border-color: var(--ds-slider-thumb-border-color, var(--accent));display:flex;flex-direction:column;padding-block:calc((var(--_slider-thumb-size) - var(--_slider-track-height)) / 2);gap:calc((var(--_slider-thumb-size) - var(--_slider-track-height)) / 2 + var(--space-1-5))}.track{position:relative;height:var(--_slider-track-height);background-color:var(--_slider-track-color);border-radius:var(--radius-pill);cursor:pointer;touch-action:none}.fill{position:absolute;top:0;height:100%;background-color:var(--_slider-fill-color);border-radius:var(--radius-pill)}.thumb{position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--_slider-thumb-size);height:var(--_slider-thumb-size);border-radius:var(--radius-pill);background-color:var(--_slider-thumb-color);border:var(--_slider-thumb-border-width) solid var(--_slider-thumb-border-color);box-shadow:var(--shadow-card);cursor:grab;touch-action:none}.thumb:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.thumb:active{cursor:grabbing}:host(.disabled) .track{background-color:var(--border-disabled);cursor:not-allowed}:host(.disabled) .fill{background-color:var(--border-strong)}:host(.disabled) .thumb{border-color:var(--border-strong);cursor:not-allowed}:host(.invalid) .fill{background-color:var(--error)}:host(.invalid) .thumb{border-color:var(--error)}\n"] }]
203
203
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], range: [{ type: i0.Input, args: [{ isSignal: true, alias: "range", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], track: [{ type: i0.ViewChild, args: ['track', { isSignal: true }] }] } });
204
204
 
205
205
  /**