@ids-group-ltd/ids-design-system 1.1.2 → 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 (221) hide show
  1. package/CHANGELOG.md +755 -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-stat.md +1 -1
  9. package/agent/feedback/ds-toast.md +2 -2
  10. package/agent/feedback/ds-tree.md +1 -1
  11. package/agent/forms/ds-button.md +3 -3
  12. package/agent/forms/ds-dropzone.md +1 -1
  13. package/agent/forms/ds-icon-button.md +3 -3
  14. package/agent/forms/ds-number-stepper.md +3 -3
  15. package/agent/forms/ds-search.md +1 -1
  16. package/agent/forms/ds-split-button.md +1 -1
  17. package/agent/foundations/tokens.md +4 -3
  18. package/agent/navigation/ds-app-layout.md +1 -1
  19. package/agent/navigation/ds-nav-divider.md +6 -0
  20. package/agent/navigation/{ds-sidenav-footer.md → ds-nav-footer.md} +3 -3
  21. package/agent/navigation/{ds-sidenav-group.md → ds-nav-group.md} +2 -2
  22. package/agent/navigation/{ds-sidenav-item.md → ds-nav-item.md} +6 -6
  23. package/agent/navigation/ds-nav.md +15 -0
  24. package/agent/overlays/ds-drawer.md +1 -1
  25. package/agent/platform/toast-service.md +1 -1
  26. package/components/README.md +24 -24
  27. package/components.md +51 -45
  28. package/design-system.md +8 -7
  29. package/eslint/deprecated-api.json +108 -7
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +2 -2
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +4 -4
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +4 -4
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-badge-badge-count-roll.component-BDNXADJZ.mjs +182 -0
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-badge-badge-count-roll.component-BDNXADJZ.mjs.map +1 -0
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +37 -8
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +5 -2
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +2 -2
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +76 -5
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +2 -2
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs +77 -18
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs +2 -2
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +2 -2
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +65 -4
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +76 -9
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +2 -2
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +2 -2
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +6 -4
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +2 -2
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs +2 -2
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +4 -4
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +2 -2
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -2
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-nav-footer.mjs +113 -0
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-nav-footer.mjs.map +1 -0
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-nav.mjs +228 -0
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-nav.mjs.map +1 -0
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +61 -10
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +36 -4
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +2 -2
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -2
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-reveal.mjs +56 -0
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-reveal.mjs.map +1 -0
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +10 -39
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +7 -4
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +33 -6
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +2 -2
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -98
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +11 -179
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +2 -2
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +3 -2
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +68 -5
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +2 -2
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +41 -3
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +6 -4
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +4 -4
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +27 -7
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +54 -19
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +8 -7
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +21 -11
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  158. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +153 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  160. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +11 -0
  161. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  162. package/fesm2022/ids-group-ltd-ids-design-system.mjs +4 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  164. package/migrations/1.1.1.json +14 -4
  165. package/migrations/1.1.2.json +11 -3
  166. package/migrations/1.2.0.json +1433 -0
  167. package/migrations/README.md +8 -1
  168. package/package.json +25 -1
  169. package/schematics/check-overrides/index.cjs +28 -3
  170. package/schematics/check-overrides/scan.cjs +151 -2
  171. package/schematics/check-overrides/schema.json +4 -0
  172. package/schematics/check-overrides/surface.json +389 -74
  173. package/schematics/collection.json +1 -1
  174. package/stylelint/deprecated-tokens.json +7 -0
  175. package/styles/_check-box.scss +4 -3
  176. package/styles/_dropdown-overlay.scss +6 -8
  177. package/styles/_ds-color.scss +7 -2
  178. package/styles/_field-state.scss +4 -2
  179. package/styles/_focus.scss +12 -5
  180. package/styles/_link.scss +4 -4
  181. package/styles/_optical-center.scss +29 -0
  182. package/styles/_reveal.scss +8 -0
  183. package/styles/_status.scss +17 -7
  184. package/styles/_step-marker.scss +192 -6
  185. package/styles/_surface-level.scss +16 -0
  186. package/styles/_text-shimmer.scss +21 -0
  187. package/styles/_theme-activation.scss +17 -4
  188. package/styles/_tokens.scss +26 -7
  189. package/styles/ds.scss +1 -0
  190. package/themes/README.md +16 -21
  191. package/themes/_semantic.scss +129 -64
  192. package/themes/dark/_theme.scss +17 -25
  193. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +3 -3
  194. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +2 -2
  195. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +20 -1
  196. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +14 -3
  197. package/types/ids-group-ltd-ids-design-system-components-chat.d.ts +49 -4
  198. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +9 -1
  199. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +28 -2
  200. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +8 -5
  201. package/types/ids-group-ltd-ids-design-system-components-nav-footer.d.ts +88 -0
  202. package/types/ids-group-ltd-ids-design-system-components-nav.d.ts +152 -0
  203. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +21 -3
  204. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +1 -0
  205. package/types/ids-group-ltd-ids-design-system-components-reveal.d.ts +31 -0
  206. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +2 -8
  207. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +4 -1
  208. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +3 -0
  209. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +12 -83
  210. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +21 -131
  211. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +1 -1
  212. package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +10 -1
  213. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +1 -0
  214. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +1 -1
  215. package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +3 -1
  216. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +27 -6
  217. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +9 -5
  218. package/types/ids-group-ltd-ids-design-system-components.d.ts +26 -1
  219. package/types/ids-group-ltd-ids-design-system-core.d.ts +19 -1
  220. package/types/ids-group-ltd-ids-design-system.d.ts +7 -4
  221. package/agent/navigation/ds-sidenav.md +0 -13
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-tooltip.mjs","sources":["../../../src/lib/components/tooltip/tooltip-markup.ts","../../../src/lib/components/tooltip/tooltip-panel.component.ts","../../../src/lib/components/tooltip/tooltip-ancestor-focus.ts","../../../src/lib/components/tooltip/tooltip-clip.ts","../../../src/lib/components/tooltip/tooltip-position.ts","../../../src/lib/components/tooltip/tooltip.directive.ts","../../../src/lib/components/tooltip/ids-group-ltd-ids-design-system-components-tooltip.ts"],"sourcesContent":["export interface TooltipSegment {\n text: string;\n bold: boolean;\n}\n\nconst TOKEN = /(\\\\\\*\\\\\\*|\\*\\*)/;\nconst ESCAPED = '\\\\*\\\\*';\nconst BOLD = '**';\n\n/** Splits tip text on `**` into plain and bold runs. `\\*\\*` is a literal `**`; an unpaired `**` is literal too. */\nexport function parseTooltipMarkup(text: string): TooltipSegment[] {\n const tokens = text.split(TOKEN);\n const markerCount = tokens.filter((token) => token === BOLD).length;\n const pairedMarkers = markerCount - (markerCount % 2);\n const segments: TooltipSegment[] = [];\n let bold = false;\n let seen = 0;\n for (const token of tokens) {\n let piece = token;\n if (token === ESCAPED) {\n piece = BOLD;\n } else if (token === BOLD && seen++ < pairedMarkers) {\n bold = !bold;\n continue;\n }\n if (!piece) {\n continue;\n }\n const last = segments[segments.length - 1];\n if (last?.bold === bold) {\n last.text += piece;\n } else {\n segments.push({ text: piece, bold });\n }\n }\n\n return segments;\n}\n\nexport function escapeTooltipMarkup(text: string): string {\n return text.replaceAll(BOLD, ESCAPED);\n}\n\nexport function plainTooltipText(text: string): string {\n return parseTooltipMarkup(text)\n .map((segment) => segment.text)\n .join('');\n}\n","import {\n Component,\n TemplateRef,\n ViewEncapsulation,\n computed,\n input,\n} from '@angular/core';\nimport {\n retainStyles,\n type TooltipPlacement,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { parseTooltipMarkup } from './tooltip-markup';\n\n@Component({\n selector: 'ds-tooltip-panel',\n standalone: true,\n imports: [NgTemplateOutlet],\n template: `\n @if (template(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n }\n\n @for (segment of segments(); track $index) {\n @if (segment.bold) {\n <strong [textContent]=\"segment.text\"></strong>\n } @else {\n <span [textContent]=\"segment.text\"></span>\n }\n }\n `,\n styleUrl: './tooltip-panel.component.scss',\n host: {\n role: 'tooltip',\n '[attr.id]': 'panelId()',\n '[class.top]': \"placement() === 'top'\",\n '[class.bottom]': \"placement() === 'bottom'\",\n '[class.left]': \"placement() === 'left'\",\n '[class.right]': \"placement() === 'right'\",\n '[class.no-arrow]': '!arrow()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TooltipPanelComponent {\n /** Tooltip text, where `**bold**` runs render bold; or a template, rendered as given. */\n readonly text = input.required<string | TemplateRef<unknown>>();\n protected readonly template = computed(() => {\n const text = this.text();\n\n return text instanceof TemplateRef ? text : null;\n });\n protected readonly segments = computed(() => {\n const text = this.text();\n\n return typeof text === 'string' ? parseTooltipMarkup(text) : [];\n });\n /** Side of the trigger the panel is positioned on; also drives the arrow class. */\n readonly placement = input.required<TooltipPlacement>();\n /** Whether the arrow pointing at the trigger is drawn. */\n readonly arrow = input(true);\n /** Element `id`, referenced by the trigger's `aria-describedby`. */\n readonly panelId = input<string>('');\n\n constructor() {\n retainStyles(TooltipPanelComponent);\n }\n}\n","const NATIVELY_FOCUSABLE = 'a[href], button, input, select, textarea, summary';\nexport const FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]`;\nconst KEYBOARD_FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]:not([tabindex^=\"-\"])`;\nconst WIDGET_ROLES = [\n 'button',\n 'link',\n 'tab',\n 'option',\n 'menuitem',\n 'menuitemcheckbox',\n 'menuitemradio',\n 'row',\n 'gridcell',\n 'combobox',\n 'checkbox',\n 'radio',\n 'switch',\n 'treeitem',\n]\n .map((role) => `[role=\"${role}\"]`)\n .join(', ');\n// Any other tab stop (a scroll region, a panel) opens nothing unless it opts in with dsTooltipAncestor.\nconst INTERACTIVE = `${NATIVELY_FOCUSABLE}, tr:not([role]), ${WIDGET_ROLES}, [dsTooltipAncestor]`;\n// A widget role owns its focus (a listbox moves it by `aria-activedescendant`), and a hidden subtree must hold no tab stop.\nconst REACHED_OR_HIDDEN = `${NATIVELY_FOCUSABLE}, tr[tabindex]:not([role]), ${WIDGET_ROLES}, [aria-hidden=\"true\"], [inert]`;\n\nexport interface AncestorFocusTrigger {\n readonly host: HTMLElement;\n isClipped(): boolean;\n openFor(ancestor: HTMLElement): void;\n close(): void;\n}\n\nconst clippedHostsByAncestor = new WeakMap<\n HTMLElement,\n Set<AncestorFocusTrigger>\n>();\n\nfunction firstClippedHost(\n triggers: Set<AncestorFocusTrigger>,\n): AncestorFocusTrigger | undefined {\n return [...triggers]\n .sort((a, b) =>\n a.host.compareDocumentPosition(b.host) & Node.DOCUMENT_POSITION_FOLLOWING\n ? -1\n : 1,\n )\n .find((trigger) => trigger.isClipped());\n}\n\n/**\n * A clipped host that is not focusable itself opens its tip when its focusable ancestor takes\n * keyboard focus. `:focus-visible` keeps a click from opening it. Only the first clipped host of\n * one ancestor opens. Returns the teardown, or null when the host needs no listening.\n */\nexport function watchFocusableAncestor(\n trigger: AncestorFocusTrigger,\n): (() => void) | null {\n const host = trigger.host;\n if (host.matches(FOCUSABLE)) {\n return null;\n }\n const ancestor = host.parentElement?.closest<HTMLElement>(FOCUSABLE);\n if (!ancestor?.matches(INTERACTIVE)) {\n return null;\n }\n let triggers = clippedHostsByAncestor.get(ancestor);\n if (!triggers) {\n triggers = new Set();\n clippedHostsByAncestor.set(ancestor, triggers);\n }\n triggers.add(trigger);\n const open = (event: FocusEvent) => {\n if (\n event.target !== ancestor ||\n // Tested here, not at registration: a disabled trigger carries tabindex=\"-1\" until enabled.\n !ancestor.matches(KEYBOARD_FOCUSABLE) ||\n !ancestor.matches(':focus-visible') ||\n firstClippedHost(triggers) !== trigger\n ) {\n return;\n }\n trigger.openFor(ancestor);\n };\n const close = () => trigger.close();\n ancestor.addEventListener('focusin', open);\n ancestor.addEventListener('focusout', close);\n ancestor.addEventListener('click', close);\n ancestor.addEventListener('keydown', close);\n\n return () => {\n triggers.delete(trigger);\n ancestor.removeEventListener('focusin', open);\n ancestor.removeEventListener('focusout', close);\n ancestor.removeEventListener('click', close);\n ancestor.removeEventListener('keydown', close);\n };\n}\n\ninterface TabStopSync {\n isNeeded(): boolean;\n apply(needed: boolean): void;\n}\n\nconst tabStopSyncs = new Map<Node, TabStopSync>();\nlet resizes: ResizeObserver | null = null;\nlet mutations: MutationObserver | null = null;\nlet resizedNextFrame: Set<Node> | null = null;\n\nfunction syncOf(node: Node | null): TabStopSync | undefined {\n for (let current = node; current; current = current.parentElement) {\n const sync = tabStopSyncs.get(current);\n if (sync) {\n return sync;\n }\n }\n\n return undefined;\n}\n\n// Every isClipped() read forces layout once a tabindex write has dirtied it, so all reads go first.\nfunction syncAll(targets: Node[]): void {\n const syncs = [...new Set(targets.map(syncOf))].filter(\n (sync): sync is TabStopSync => sync !== undefined,\n );\n const decided = syncs.map((sync) => [sync, sync.isNeeded()] as const);\n decided.forEach(([sync, needed]) => sync.apply(needed));\n}\n\n// A tabindex written inside the ResizeObserver callback makes Firefox report \"ResizeObserver loop\n// completed with undelivered notifications\" for hosts under `content-visibility: auto`.\nfunction syncResizedNextFrame(targets: Node[]): void {\n if (!resizedNextFrame) {\n resizedNextFrame = new Set();\n requestAnimationFrame(() => {\n const resized = [...(resizedNextFrame ?? [])];\n resizedNextFrame = null;\n syncAll(resized);\n });\n }\n targets.forEach((target) => resizedNextFrame?.add(target));\n}\n\n/**\n * A clipped host that no keyboard path reaches - not focusable, inside no control or widget role,\n * holding no focusable descendant - takes `tabindex=\"0\"` while it is clipped, and loses it once its\n * text fits and it does not hold focus. A tabindex it did not write is never touched. One observer\n * pair serves every host. Returns the teardown, or null when the host is reached another way.\n */\nexport function tabStopWhileClipped(\n trigger: AncestorFocusTrigger,\n): (() => void) | null {\n const host = trigger.host;\n if (host.matches(FOCUSABLE) || host.closest(REACHED_OR_HIDDEN)) {\n return null;\n }\n let written = false;\n const isNeeded = () =>\n trigger.isClipped() && !host.querySelector(KEYBOARD_FOCUSABLE);\n const apply = (needed: boolean) => {\n if (needed && !host.hasAttribute('tabindex')) {\n host.setAttribute('tabindex', '0');\n written = true;\n } else if (\n !needed &&\n written &&\n host.ownerDocument.activeElement !== host\n ) {\n written = false;\n if (host.getAttribute('tabindex') === '0') {\n host.removeAttribute('tabindex');\n }\n }\n };\n const sync = () => apply(isNeeded());\n resizes ??= new ResizeObserver((entries) =>\n syncResizedNextFrame(entries.map((entry) => entry.target)),\n );\n mutations ??= new MutationObserver((records) =>\n syncAll(records.map((record) => record.target)),\n );\n tabStopSyncs.set(host, { isNeeded, apply });\n resizes.observe(host);\n mutations.observe(host, {\n characterData: true,\n childList: true,\n subtree: true,\n });\n host.addEventListener('focusout', sync);\n\n return () => {\n tabStopSyncs.delete(host);\n resizes?.unobserve(host);\n host.removeEventListener('focusout', sync);\n };\n}\n","import { isTextClipped } from '@ids-group-ltd/ids-design-system/core';\n\nexport interface TooltipClipTarget {\n readonly selector: string | null;\n}\n\n/**\n * `''`, `true` and `'true'` test the host itself; any other string is a selector for the element\n * inside the host to test; `false`, `'false'`, `null` and `undefined` turn the test off.\n */\nexport function toClipTarget(\n value: boolean | string | null | undefined,\n): TooltipClipTarget | null {\n if (value === true || value === '' || value === 'true') {\n return { selector: null };\n }\n\n return !value || value === 'false' ? null : { selector: value };\n}\n\nexport function clipElement(\n host: HTMLElement,\n target: TooltipClipTarget | null,\n): HTMLElement | null {\n return target?.selector\n ? host.querySelector<HTMLElement>(target.selector)\n : host;\n}\n\nexport function isHostClipped(\n host: HTMLElement,\n target: TooltipClipTarget | null,\n): boolean {\n const element = clipElement(host, target);\n if (element === null) {\n return false;\n }\n\n return isTextClipped(element) || isClippedByLines(element);\n}\n\n// A line clamp hides whole lines, so the block never overflows its width. Only hidden overflow\n// counts: text in a scroll box can still be reached. The pixel absorbs sub-pixel line heights.\nfunction isClippedByLines(element: HTMLElement): boolean {\n if (element.scrollHeight <= element.clientHeight + 1) {\n return false;\n }\n const overflow = getComputedStyle(element).overflowY;\n\n return overflow === 'hidden' || overflow === 'clip';\n}\n\nexport function ownTextOf(element: HTMLElement | null): string {\n return (element?.textContent ?? '').trim();\n}\n\nexport function textContains(haystack: string, needle: string): boolean {\n const collapse = (value: string) => value.replace(/\\s+/g, ' ').trim();\n\n return collapse(haystack).includes(collapse(needle));\n}\n","import type { TooltipPlacement } from '@ids-group-ltd/ids-design-system/core';\n\nconst TRIGGER_GAP_PX = 8;\nexport const VIEWPORT_MARGIN_PX = 8;\nconst OPPOSITE_PLACEMENT: Record<TooltipPlacement, TooltipPlacement> = {\n top: 'bottom',\n bottom: 'top',\n left: 'right',\n right: 'left',\n};\n\nfunction positionFor(placement: TooltipPlacement) {\n switch (placement) {\n case 'top':\n return {\n originX: 'center' as const,\n originY: 'top' as const,\n overlayX: 'center' as const,\n overlayY: 'bottom' as const,\n offsetY: -TRIGGER_GAP_PX,\n };\n case 'bottom':\n return {\n originX: 'center' as const,\n originY: 'bottom' as const,\n overlayX: 'center' as const,\n overlayY: 'top' as const,\n offsetY: TRIGGER_GAP_PX,\n };\n case 'left':\n return {\n originX: 'start' as const,\n originY: 'center' as const,\n overlayX: 'end' as const,\n overlayY: 'center' as const,\n offsetX: -TRIGGER_GAP_PX,\n };\n case 'right':\n return {\n originX: 'end' as const,\n originY: 'center' as const,\n overlayX: 'start' as const,\n overlayY: 'center' as const,\n offsetX: TRIGGER_GAP_PX,\n };\n }\n}\n\nexport function positionsFor(placement: TooltipPlacement) {\n return [positionFor(placement), positionFor(OPPOSITE_PLACEMENT[placement])];\n}\n","import {\n DOCUMENT,\n Directive,\n ElementRef,\n HostListener,\n InjectionToken,\n OnDestroy,\n Signal,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n inject,\n input,\n} from '@angular/core';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { TooltipPanelComponent } from './tooltip-panel.component';\nimport { escapeTooltipMarkup, plainTooltipText } from './tooltip-markup';\nimport {\n FOCUSABLE,\n tabStopWhileClipped,\n watchFocusableAncestor,\n type AncestorFocusTrigger,\n} from './tooltip-ancestor-focus';\nimport {\n clipElement,\n isHostClipped,\n ownTextOf,\n textContains,\n toClipTarget,\n type TooltipClipTarget,\n} from './tooltip-clip';\nimport {\n closeOnScroll,\n listenForEscape,\n overlayPlacementOf,\n pointArrowAtHost,\n prepareOverlayEnter,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { VIEWPORT_MARGIN_PX, positionsFor } from './tooltip-position';\nimport {\n DS_CONFIG,\n type DsConfig,\n type TooltipPlacement,\n} from '@ids-group-ltd/ids-design-system/core';\nimport type { DsTooltipConfig } from './tooltip.types';\n\ntype TooltipOptions = NonNullable<DsConfig['tooltip']>;\n\nconst toOptionalBoolean = (value: unknown): boolean | null =>\n value == null ? null : booleanAttribute(value);\n\nconst PINNED_ATTRIBUTE = 'data-ds-tooltip-pinned';\n\nlet nextId = 0;\n\n/** @internal Lets a component that hosts the tooltip make a clipped host lead the tip with its own text. */\nexport const TOOLTIP_LEADS_WITH_OWN_TEXT = new InjectionToken<boolean>(\n 'TOOLTIP_LEADS_WITH_OWN_TEXT',\n);\n\n/** @internal Lets a component that hosts the tooltip decide `dsTooltipPinOnClick` for it. */\nexport const TOOLTIP_PIN_ON_CLICK = new InjectionToken<Signal<boolean>>(\n 'TOOLTIP_PIN_ON_CLICK',\n);\n\n@Directive({\n selector: '[dsTooltip], [dsTooltipWhenClipped]',\n standalone: true,\n})\nexport class TooltipDirective implements OnDestroy {\n private readonly overlay = inject(Overlay);\n private readonly host = inject(ElementRef<HTMLElement>);\n private readonly document = inject(DOCUMENT);\n private readonly config = inject(DS_CONFIG);\n private readonly hostPinOnClick = inject(TOOLTIP_PIN_ON_CLICK, {\n self: true,\n optional: true,\n });\n private readonly leadsWithOwnText =\n inject(TOOLTIP_LEADS_WITH_OWN_TEXT, { self: true, optional: true }) ??\n false;\n\n /** Tip text, or a template the panel renders as given. An empty string turns the tooltip off.\n * Keep a template's content non-interactive: the panel is `role=\"tooltip\"` and never takes focus. */\n readonly dsTooltip = input<string | TemplateRef<unknown>>('');\n /** Placement, delay, arrow, pin-on-click and the clipped test for this tip. An unset field falls\n * back to `DsConfig.tooltip`, then the built-in default. */\n readonly dsTooltipConfig = input<DsTooltipConfig | null>(null);\n /** Which side the tip opens on. Wins over `dsTooltipConfig.placement`.\n * @deprecated Use `[dsTooltipConfig]=\"{ placement }\"`, or `provideDsConfig({ tooltip: { placement } })` app-wide. */\n readonly dsTooltipPlacement = input<TooltipPlacement | null>(null);\n /** Milliseconds before the tip appears. Wins over `dsTooltipConfig.delay`.\n * @deprecated Use `[dsTooltipConfig]=\"{ delay }\"`, or `provideDsConfig({ tooltip: { delay } })` app-wide. */\n readonly dsTooltipDelay = input<number | null>(null);\n /** Draws the arrow that points at the host. Wins over `dsTooltipConfig.arrow`.\n * @deprecated Use `[dsTooltipConfig]=\"{ arrow }\"`, or `provideDsConfig({ tooltip: { arrow } })` app-wide. */\n readonly dsTooltipArrow = input<boolean | null, unknown>(null, {\n transform: toOptionalBoolean,\n });\n /** Show the tip only while the host shows less text than it holds: cut by width, or by lines\n * under `overflow: hidden` or `clip`, as with `line-clamp`. Re-tested on every open.\n * A boolean or the bare attribute tests the host. A selector tests the element it matches inside\n * the host and discloses that element's text; while nothing matches, no clipped tip opens.\n *\n * Applies the tooltip on its own: without a `dsTooltip` the tested text is disclosed. A tip\n * whose text the host already contains sets no `aria-describedby`; one given a `dsTooltip`\n * that says more than the host does describes it as usual.\n *\n * Keyboard focus opens it too: on the host, on a control or widget around it, or on a control\n * inside it. A clipped host that none of these reaches takes `tabindex=\"0\"` while it is clipped. */\n readonly dsTooltipWhenClipped = input<\n TooltipClipTarget | null,\n boolean | string | null | undefined\n >(null, { transform: toClipTarget });\n\n /** Opens the tip with no delay, and a click on the host keeps it open after the pointer leaves\n * until a click outside, `Escape` or blur; a second click closes it. Without it a click closes the tip.\n * While pinned the host carries `data-ds-tooltip-pinned`, a hook for styling the pinned trigger.\n * Wins over `dsTooltipConfig.pinOnClick`.\n * @deprecated Use `[dsTooltipConfig]=\"{ pinOnClick: true }\"`, or `provideDsConfig({ tooltip: { pinOnClick } })` app-wide. */\n readonly dsTooltipPinOnClick = input<boolean | null, unknown>(null, {\n transform: toOptionalBoolean,\n });\n\n private readonly placement = this.resolve(\n this.dsTooltipPlacement,\n 'placement',\n 'top',\n );\n private readonly delay = this.resolve(this.dsTooltipDelay, 'delay', 120);\n private readonly arrow = this.resolve(this.dsTooltipArrow, 'arrow', true);\n private readonly pinOnClick = this.resolve(\n this.dsTooltipPinOnClick,\n 'pinOnClick',\n false,\n );\n private readonly whenClipped = computed(\n () =>\n this.dsTooltipWhenClipped() ??\n toClipTarget(this.dsTooltipConfig()?.whenClipped),\n );\n\n private resolve<K extends keyof TooltipOptions>(\n deprecatedInput: Signal<TooltipOptions[K] | null>,\n key: K,\n fallback: NonNullable<TooltipOptions[K]>,\n ): Signal<NonNullable<TooltipOptions[K]>> {\n return computed(\n () =>\n deprecatedInput() ??\n this.dsTooltipConfig()?.[key] ??\n this.config.tooltip?.[key] ??\n fallback,\n );\n }\n\n private isClipped(): boolean {\n return isHostClipped(this.hostElement, this.whenClipped());\n }\n\n private get hostElement(): HTMLElement {\n return this.host.nativeElement;\n }\n\n private pinsOnClick(): boolean {\n return this.hostPinOnClick?.() ?? this.pinOnClick();\n }\n\n private ownText(): string {\n return ownTextOf(clipElement(this.hostElement, this.whenClipped()));\n }\n\n /** A host that leads with its own text puts it, in bold, above the tip while it is clipped, unless the tip already says it. */\n private tipContent(): string | TemplateRef<unknown> {\n const given = this.dsTooltip();\n if (given instanceof TemplateRef) {\n return given;\n }\n const own = this.ownText();\n if (!given) {\n return this.whenClipped() ? escapeTooltipMarkup(own) : '';\n }\n if (\n this.leadsWithOwnText &&\n own &&\n this.isClipped() &&\n !textContains(plainTooltipText(given), own)\n ) {\n return `**${escapeTooltipMarkup(own)}**\n${given}`;\n }\n\n return given;\n }\n\n /** A clipped host's full text is already in the DOM; describing it again would announce it twice. */\n private disclosesOwnText(text: string): boolean {\n if (!this.whenClipped()) {\n return false;\n }\n\n return textContains(this.ownText(), plainTooltipText(text));\n }\n\n private ref: OverlayRef | null = null;\n private timer: number | null = null;\n private unpin: (() => void) | null = null;\n private readonly tipId = `ds-tooltip-${++nextId}`;\n\n /**\n * Where `aria-describedby` belongs when focus is involved: a non-focusable host\n * (`ds-menu-item` is `role=\"none\"` around a real `<button>`) never reaches a screen\n * reader, so `focusin`'s target is recorded. A pointer-only open leaves it null.\n */\n private focusedTarget: HTMLElement | null = null;\n\n /**\n * Where `aria-describedby` was written, so teardown strips it from the same element\n * even if focus moved `focusedTarget` after the panel opened.\n */\n private describedElement: HTMLElement | null = null;\n\n private detachAncestor: (() => void) | null = null;\n\n private readonly ancestorFocusTrigger: AncestorFocusTrigger = {\n host: this.hostElement,\n isClipped: () => this.isClipped(),\n openFor: (ancestor) => {\n this.focusedTarget = ancestor;\n this.scheduleShow();\n },\n close: () => {\n this.focusedTarget = null;\n this.onClose();\n },\n };\n\n constructor() {\n afterNextRender(() => {\n if (this.whenClipped()) {\n this.detachAncestor =\n watchFocusableAncestor(this.ancestorFocusTrigger) ??\n tabStopWhileClipped(this.ancestorFocusTrigger);\n }\n });\n }\n\n @HostListener('mouseenter')\n protected onPointerEnter(): void {\n this.scheduleShow();\n }\n\n // Same rule as via a focusable ancestor: keyboard focus opens, a click's focus does not.\n @HostListener('focusin', ['$event'])\n protected onFocusIn(event: FocusEvent): void {\n const host = this.hostElement;\n if (\n this.whenClipped() &&\n host.matches(FOCUSABLE) &&\n (event.target !== host || !host.matches(':focus-visible'))\n ) {\n return;\n }\n if (event.target instanceof HTMLElement) {\n this.focusedTarget = event.target;\n }\n this.scheduleShow();\n }\n\n @HostListener('focusout')\n protected onFocusOut(): void {\n this.focusedTarget = null;\n this.onClose();\n }\n\n private scheduleShow(): void {\n if (this.unpin || !this.tipContent()) {\n return;\n }\n if (this.pinsOnClick() && this.ref?.hasAttached()) {\n return;\n }\n if (this.whenClipped() && !this.isClipped()) {\n return;\n }\n if (this.timer !== null) {\n clearTimeout(this.timer);\n }\n this.timer = window.setTimeout(\n () => this.show(),\n this.pinsOnClick() ? 0 : this.delay(),\n );\n }\n\n @HostListener('mouseleave')\n protected onPointerLeave(): void {\n if (!this.unpin) {\n this.onClose();\n }\n }\n\n // Close on click too: a re-rendered anchor under a stationary cursor fires no mouseleave.\n @HostListener('click')\n protected onClick(): void {\n if (this.pinsOnClick() && !this.unpin) {\n this.pin();\n } else {\n this.onClose();\n }\n }\n\n protected onClose(): void {\n if (this.timer !== null) {\n clearTimeout(this.timer);\n this.timer = null;\n }\n this.unpin?.();\n this.disposeRef();\n }\n\n private pin(): void {\n if (this.timer !== null) {\n clearTimeout(this.timer);\n this.timer = null;\n }\n if (!this.ref?.hasAttached()) {\n if (!this.tipContent()) {\n return;\n }\n this.show();\n }\n const closeOutside = (event: Event) => {\n const target = event.target as Node;\n if (\n !this.hostElement.contains(target) &&\n !this.ref?.overlayElement.contains(target)\n ) {\n this.onClose();\n }\n };\n this.document.addEventListener('pointerdown', closeOutside, true);\n const stopEscape = listenForEscape(this.document, () => this.onClose());\n this.hostElement.setAttribute(PINNED_ATTRIBUTE, '');\n this.unpin = () => {\n this.unpin = null;\n this.hostElement.removeAttribute(PINNED_ATTRIBUTE);\n this.document.removeEventListener('pointerdown', closeOutside, true);\n stopEscape();\n };\n }\n\n private disposeRef(): void {\n this.ref?.dispose();\n this.ref = null;\n const described = this.describedElement;\n if (!described) {\n return;\n }\n this.describedElement = null;\n const remaining = (described.getAttribute('aria-describedby') ?? '')\n .split(' ')\n .filter((id: string) => id && id !== this.tipId)\n .join(' ');\n if (remaining) {\n described.setAttribute('aria-describedby', remaining);\n } else {\n described.removeAttribute('aria-describedby');\n }\n }\n\n @HostListener('keydown')\n protected onKeydown(): void {\n if (this.whenClipped()) {\n this.onClose();\n }\n }\n\n @HostListener('keydown.escape')\n protected onEscape(): void {\n if (this.ref) {\n this.onClose();\n }\n }\n\n private show(): void {\n // show() can be re-entered with a panel open: dispose it first to avoid a leaked OverlayRef and a duplicate id.\n this.disposeRef();\n const placement = this.placement();\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.host)\n .withPositions(positionsFor(placement))\n .withViewportMargin(VIEWPORT_MARGIN_PX);\n\n this.ref = this.overlay.create({\n positionStrategy,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.close(),\n });\n prepareOverlayEnter(this.ref, this.host.nativeElement, positionStrategy);\n // The CDK strategy sees only the window and cdkScrollable ancestors, not a plain overflow container.\n const stopScrollClose = closeOnScroll(this.ref, () => this.onClose());\n this.ref.detachments().subscribe(stopScrollClose);\n\n const cmpRef = this.ref.attach(new ComponentPortal(TooltipPanelComponent));\n const tip = this.tipContent();\n cmpRef.setInput('text', tip);\n cmpRef.setInput('placement', placement);\n cmpRef.setInput('arrow', this.arrow());\n positionStrategy.positionChanges.subscribe(({ connectionPair }) =>\n cmpRef.setInput('placement', overlayPlacementOf(connectionPair)),\n );\n cmpRef.setInput('panelId', this.tipId);\n pointArrowAtHost(this.ref, cmpRef.location.nativeElement, this.hostElement);\n this.ref.detachments().subscribe(() => this.unpin?.());\n if (typeof tip === 'string' && this.disclosesOwnText(tip)) {\n return;\n }\n const described = this.focusedTarget ?? this.host.nativeElement;\n this.describedElement = described;\n const existing = described.getAttribute('aria-describedby');\n described.setAttribute(\n 'aria-describedby',\n existing ? `${existing} ${this.tipId}` : this.tipId,\n );\n }\n\n ngOnDestroy(): void {\n this.detachAncestor?.();\n this.onClose();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAKA,MAAM,KAAK,GAAG,iBAAiB;AAC/B,MAAM,OAAO,GAAG,QAAQ;AACxB,MAAM,IAAI,GAAG,IAAI;AAEjB;AACM,SAAU,kBAAkB,CAAC,IAAY,EAAA;IAC7C,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;AAChC,IAAA,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,KAAK,KAAK,IAAI,CAAC,CAAC,MAAM;IACnE,MAAM,aAAa,GAAG,WAAW,IAAI,WAAW,GAAG,CAAC,CAAC;IACrD,MAAM,QAAQ,GAAqB,EAAE;IACrC,IAAI,IAAI,GAAG,KAAK;IAChB,IAAI,IAAI,GAAG,CAAC;AACZ,IAAA,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;QAC1B,IAAI,KAAK,GAAG,KAAK;AACjB,QAAA,IAAI,KAAK,KAAK,OAAO,EAAE;YACrB,KAAK,GAAG,IAAI;QACd;aAAO,IAAI,KAAK,KAAK,IAAI,IAAI,IAAI,EAAE,GAAG,aAAa,EAAE;YACnD,IAAI,GAAG,CAAC,IAAI;YACZ;QACF;QACA,IAAI,CAAC,KAAK,EAAE;YACV;QACF;QACA,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;AAC1C,QAAA,IAAI,IAAI,EAAE,IAAI,KAAK,IAAI,EAAE;AACvB,YAAA,IAAI,CAAC,IAAI,IAAI,KAAK;QACpB;aAAO;YACL,QAAQ,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EAAA,UAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,oBAAA,EAAA,EAAA,iBAAA,EAAA,sBAAA,EAAA,UAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,mBAAA,EAAA,EAAA,iBAAA,EAAA,qBAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,SAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,cAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,OAAA,EAAA,WAAA,EAAA,SAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qCAAqC;AAC/C,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;sBAmLE,YAAY;uBAAC,YAAY;;sBAMzB,YAAY;uBAAC,SAAS,EAAE,CAAC,QAAQ,CAAC;;sBAgBlC,YAAY;uBAAC,UAAU;;sBAyBvB,YAAY;uBAAC,YAAY;;sBAQzB,YAAY;uBAAC,OAAO;;sBAoEpB,YAAY;uBAAC,SAAS;;sBAOtB,YAAY;uBAAC,gBAAgB;;;AC3XhC;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-tooltip.mjs","sources":["../../../src/lib/components/tooltip/tooltip-markup.ts","../../../src/lib/components/tooltip/tooltip-panel.component.ts","../../../src/lib/components/tooltip/tooltip-ancestor-focus.ts","../../../src/lib/components/tooltip/tooltip-clip.ts","../../../src/lib/components/tooltip/tooltip-position.ts","../../../src/lib/components/tooltip/tooltip.directive.ts","../../../src/lib/components/tooltip/ids-group-ltd-ids-design-system-components-tooltip.ts"],"sourcesContent":["export interface TooltipSegment {\n text: string;\n bold: boolean;\n}\n\nconst TOKEN = /(\\\\\\*\\\\\\*|\\*\\*)/;\nconst ESCAPED = '\\\\*\\\\*';\nconst BOLD = '**';\n\n/** Splits tip text on `**` into plain and bold runs. `\\*\\*` is a literal `**`; an unpaired `**` is literal too. */\nexport function parseTooltipMarkup(text: string): TooltipSegment[] {\n const tokens = text.split(TOKEN);\n const markerCount = tokens.filter((token) => token === BOLD).length;\n const pairedMarkers = markerCount - (markerCount % 2);\n const segments: TooltipSegment[] = [];\n let bold = false;\n let seen = 0;\n for (const token of tokens) {\n let piece = token;\n if (token === ESCAPED) {\n piece = BOLD;\n } else if (token === BOLD && seen++ < pairedMarkers) {\n bold = !bold;\n continue;\n }\n if (!piece) {\n continue;\n }\n const last = segments[segments.length - 1];\n if (last?.bold === bold) {\n last.text += piece;\n } else {\n segments.push({ text: piece, bold });\n }\n }\n\n return segments;\n}\n\nexport function escapeTooltipMarkup(text: string): string {\n return text.replaceAll(BOLD, ESCAPED);\n}\n\nexport function plainTooltipText(text: string): string {\n return parseTooltipMarkup(text)\n .map((segment) => segment.text)\n .join('');\n}\n","import {\n Component,\n TemplateRef,\n ViewEncapsulation,\n computed,\n input,\n} from '@angular/core';\nimport {\n retainStyles,\n type TooltipPlacement,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { parseTooltipMarkup } from './tooltip-markup';\n\n@Component({\n selector: 'ds-tooltip-panel',\n standalone: true,\n imports: [NgTemplateOutlet],\n template: `\n @if (template(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n }\n\n @for (segment of segments(); track $index) {\n @if (segment.bold) {\n <strong [textContent]=\"segment.text\"></strong>\n } @else {\n <span [textContent]=\"segment.text\"></span>\n }\n }\n `,\n styleUrl: './tooltip-panel.component.scss',\n host: {\n role: 'tooltip',\n '[attr.id]': 'panelId()',\n '[class.top]': \"placement() === 'top'\",\n '[class.bottom]': \"placement() === 'bottom'\",\n '[class.left]': \"placement() === 'left'\",\n '[class.right]': \"placement() === 'right'\",\n '[class.no-arrow]': '!arrow()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TooltipPanelComponent {\n /** Tooltip text, where `**bold**` runs render bold; or a template, rendered as given. */\n readonly text = input.required<string | TemplateRef<unknown>>();\n protected readonly template = computed(() => {\n const text = this.text();\n\n return text instanceof TemplateRef ? text : null;\n });\n protected readonly segments = computed(() => {\n const text = this.text();\n\n return typeof text === 'string' ? parseTooltipMarkup(text) : [];\n });\n /** Side of the trigger the panel is positioned on; also drives the arrow class. */\n readonly placement = input.required<TooltipPlacement>();\n /** Whether the arrow pointing at the trigger is drawn. */\n readonly arrow = input(true);\n /** Element `id`, referenced by the trigger's `aria-describedby`. */\n readonly panelId = input<string>('');\n\n constructor() {\n retainStyles(TooltipPanelComponent);\n }\n}\n","const NATIVELY_FOCUSABLE = 'a[href], button, input, select, textarea, summary';\nexport const FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]`;\nconst KEYBOARD_FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]:not([tabindex^=\"-\"])`;\nconst WIDGET_ROLES = [\n 'button',\n 'link',\n 'tab',\n 'option',\n 'menuitem',\n 'menuitemcheckbox',\n 'menuitemradio',\n 'row',\n 'gridcell',\n 'combobox',\n 'checkbox',\n 'radio',\n 'switch',\n 'treeitem',\n]\n .map((role) => `[role=\"${role}\"]`)\n .join(', ');\n// Any other tab stop (a scroll region, a panel) opens nothing unless it opts in with dsTooltipAncestor.\nconst INTERACTIVE = `${NATIVELY_FOCUSABLE}, tr:not([role]), ${WIDGET_ROLES}, [dsTooltipAncestor]`;\n// A widget role owns its focus (a listbox moves it by `aria-activedescendant`), and a hidden subtree must hold no tab stop.\nconst REACHED_OR_HIDDEN = `${NATIVELY_FOCUSABLE}, tr[tabindex]:not([role]), ${WIDGET_ROLES}, [aria-hidden=\"true\"], [inert]`;\n\nexport interface AncestorFocusTrigger {\n readonly host: HTMLElement;\n isClipped(): boolean;\n openFor(ancestor: HTMLElement): void;\n close(): void;\n}\n\nconst clippedHostsByAncestor = new WeakMap<\n HTMLElement,\n Set<AncestorFocusTrigger>\n>();\n\nfunction firstClippedHost(\n triggers: Set<AncestorFocusTrigger>,\n): AncestorFocusTrigger | undefined {\n return [...triggers]\n .sort((a, b) =>\n a.host.compareDocumentPosition(b.host) & Node.DOCUMENT_POSITION_FOLLOWING\n ? -1\n : 1,\n )\n .find((trigger) => trigger.isClipped());\n}\n\n/**\n * A clipped host that is not focusable itself opens its tip when its focusable ancestor takes\n * keyboard focus. `:focus-visible` keeps a click from opening it. Only the first clipped host of\n * one ancestor opens. Returns the teardown, or null when the host needs no listening.\n */\nexport function watchFocusableAncestor(\n trigger: AncestorFocusTrigger,\n): (() => void) | null {\n const host = trigger.host;\n if (host.matches(FOCUSABLE)) {\n return null;\n }\n const ancestor = host.parentElement?.closest<HTMLElement>(FOCUSABLE);\n if (!ancestor?.matches(INTERACTIVE)) {\n return null;\n }\n let triggers = clippedHostsByAncestor.get(ancestor);\n if (!triggers) {\n triggers = new Set();\n clippedHostsByAncestor.set(ancestor, triggers);\n }\n triggers.add(trigger);\n const open = (event: FocusEvent) => {\n if (\n event.target !== ancestor ||\n // Tested here, not at registration: a disabled trigger carries tabindex=\"-1\" until enabled.\n !ancestor.matches(KEYBOARD_FOCUSABLE) ||\n !ancestor.matches(':focus-visible') ||\n firstClippedHost(triggers) !== trigger\n ) {\n return;\n }\n trigger.openFor(ancestor);\n };\n const close = () => trigger.close();\n ancestor.addEventListener('focusin', open);\n ancestor.addEventListener('focusout', close);\n ancestor.addEventListener('click', close);\n ancestor.addEventListener('keydown', close);\n\n return () => {\n triggers.delete(trigger);\n ancestor.removeEventListener('focusin', open);\n ancestor.removeEventListener('focusout', close);\n ancestor.removeEventListener('click', close);\n ancestor.removeEventListener('keydown', close);\n };\n}\n\ninterface TabStopSync {\n isNeeded(): boolean;\n apply(needed: boolean): void;\n}\n\nconst tabStopSyncs = new Map<Node, TabStopSync>();\nlet resizes: ResizeObserver | null = null;\nlet mutations: MutationObserver | null = null;\nlet resizedNextFrame: Set<Node> | null = null;\n\nfunction syncOf(node: Node | null): TabStopSync | undefined {\n for (let current = node; current; current = current.parentElement) {\n const sync = tabStopSyncs.get(current);\n if (sync) {\n return sync;\n }\n }\n\n return undefined;\n}\n\n// Every isClipped() read forces layout once a tabindex write has dirtied it, so all reads go first.\nfunction syncAll(targets: Node[]): void {\n const syncs = [...new Set(targets.map(syncOf))].filter(\n (sync): sync is TabStopSync => sync !== undefined,\n );\n const decided = syncs.map((sync) => [sync, sync.isNeeded()] as const);\n decided.forEach(([sync, needed]) => sync.apply(needed));\n}\n\n// A tabindex written inside the ResizeObserver callback makes Firefox report \"ResizeObserver loop\n// completed with undelivered notifications\" for hosts under `content-visibility: auto`.\nfunction syncResizedNextFrame(targets: Node[]): void {\n if (!resizedNextFrame) {\n resizedNextFrame = new Set();\n requestAnimationFrame(() => {\n const resized = [...(resizedNextFrame ?? [])];\n resizedNextFrame = null;\n syncAll(resized);\n });\n }\n targets.forEach((target) => resizedNextFrame?.add(target));\n}\n\n/**\n * A clipped host that no keyboard path reaches - not focusable, inside no control or widget role,\n * holding no focusable descendant - takes `tabindex=\"0\"` while it is clipped, and loses it once its\n * text fits and it does not hold focus. A tabindex it did not write is never touched. One observer\n * pair serves every host. Returns the teardown, or null when the host is reached another way.\n */\nexport function tabStopWhileClipped(\n trigger: AncestorFocusTrigger,\n): (() => void) | null {\n const host = trigger.host;\n if (host.matches(FOCUSABLE) || host.closest(REACHED_OR_HIDDEN)) {\n return null;\n }\n let written = false;\n const isNeeded = () =>\n trigger.isClipped() && !host.querySelector(KEYBOARD_FOCUSABLE);\n const apply = (needed: boolean) => {\n if (needed && !host.hasAttribute('tabindex')) {\n host.setAttribute('tabindex', '0');\n written = true;\n } else if (\n !needed &&\n written &&\n host.ownerDocument.activeElement !== host\n ) {\n written = false;\n if (host.getAttribute('tabindex') === '0') {\n host.removeAttribute('tabindex');\n }\n }\n };\n const sync = () => apply(isNeeded());\n resizes ??= new ResizeObserver((entries) =>\n syncResizedNextFrame(entries.map((entry) => entry.target)),\n );\n mutations ??= new MutationObserver((records) =>\n syncAll(records.map((record) => record.target)),\n );\n tabStopSyncs.set(host, { isNeeded, apply });\n resizes.observe(host);\n mutations.observe(host, {\n characterData: true,\n childList: true,\n subtree: true,\n });\n host.addEventListener('focusout', sync);\n\n return () => {\n tabStopSyncs.delete(host);\n resizes?.unobserve(host);\n host.removeEventListener('focusout', sync);\n };\n}\n","import { isTextClipped } from '@ids-group-ltd/ids-design-system/core';\n\nexport interface TooltipClipTarget {\n readonly selector: string | null;\n}\n\n/**\n * `''`, `true` and `'true'` test the host itself; any other string is a selector for the element\n * inside the host to test; `false`, `'false'`, `null` and `undefined` turn the test off.\n */\nexport function toClipTarget(\n value: boolean | string | null | undefined,\n): TooltipClipTarget | null {\n if (value === true || value === '' || value === 'true') {\n return { selector: null };\n }\n\n return !value || value === 'false' ? null : { selector: value };\n}\n\nexport function clipElement(\n host: HTMLElement,\n target: TooltipClipTarget | null,\n): HTMLElement | null {\n return target?.selector\n ? host.querySelector<HTMLElement>(target.selector)\n : host;\n}\n\nexport function isHostClipped(\n host: HTMLElement,\n target: TooltipClipTarget | null,\n): boolean {\n const element = clipElement(host, target);\n if (element === null) {\n return false;\n }\n\n return isTextClipped(element) || isClippedByLines(element);\n}\n\n// A line clamp hides whole lines, so the block never overflows its width. Only hidden overflow\n// counts: text in a scroll box can still be reached. The pixel absorbs sub-pixel line heights.\nfunction isClippedByLines(element: HTMLElement): boolean {\n if (element.scrollHeight <= element.clientHeight + 1) {\n return false;\n }\n const overflow = getComputedStyle(element).overflowY;\n\n return overflow === 'hidden' || overflow === 'clip';\n}\n\nexport function ownTextOf(element: HTMLElement | null): string {\n return (element?.textContent ?? '').trim();\n}\n\nexport function textContains(haystack: string, needle: string): boolean {\n const collapse = (value: string) => value.replace(/\\s+/g, ' ').trim();\n\n return collapse(haystack).includes(collapse(needle));\n}\n","import type { TooltipPlacement } from '@ids-group-ltd/ids-design-system/core';\n\nconst TRIGGER_GAP_PX = 8;\nexport const VIEWPORT_MARGIN_PX = 8;\nconst OPPOSITE_PLACEMENT: Record<TooltipPlacement, TooltipPlacement> = {\n top: 'bottom',\n bottom: 'top',\n left: 'right',\n right: 'left',\n};\n\nfunction positionFor(placement: TooltipPlacement) {\n switch (placement) {\n case 'top':\n return {\n originX: 'center' as const,\n originY: 'top' as const,\n overlayX: 'center' as const,\n overlayY: 'bottom' as const,\n offsetY: -TRIGGER_GAP_PX,\n };\n case 'bottom':\n return {\n originX: 'center' as const,\n originY: 'bottom' as const,\n overlayX: 'center' as const,\n overlayY: 'top' as const,\n offsetY: TRIGGER_GAP_PX,\n };\n case 'left':\n return {\n originX: 'start' as const,\n originY: 'center' as const,\n overlayX: 'end' as const,\n overlayY: 'center' as const,\n offsetX: -TRIGGER_GAP_PX,\n };\n case 'right':\n return {\n originX: 'end' as const,\n originY: 'center' as const,\n overlayX: 'start' as const,\n overlayY: 'center' as const,\n offsetX: TRIGGER_GAP_PX,\n };\n }\n}\n\nexport function positionsFor(placement: TooltipPlacement) {\n return [positionFor(placement), positionFor(OPPOSITE_PLACEMENT[placement])];\n}\n","import {\n DOCUMENT,\n Directive,\n ElementRef,\n HostListener,\n InjectionToken,\n OnDestroy,\n Signal,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n inject,\n input,\n} from '@angular/core';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { TooltipPanelComponent } from './tooltip-panel.component';\nimport { escapeTooltipMarkup, plainTooltipText } from './tooltip-markup';\nimport {\n FOCUSABLE,\n tabStopWhileClipped,\n watchFocusableAncestor,\n type AncestorFocusTrigger,\n} from './tooltip-ancestor-focus';\nimport {\n clipElement,\n isHostClipped,\n ownTextOf,\n textContains,\n toClipTarget,\n type TooltipClipTarget,\n} from './tooltip-clip';\nimport {\n closeOnScroll,\n listenForEscape,\n overlayPlacementOf,\n pointArrowAtHost,\n prepareOverlayEnter,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { VIEWPORT_MARGIN_PX, positionsFor } from './tooltip-position';\nimport {\n DS_CONFIG,\n type DsConfig,\n type TooltipPlacement,\n} from '@ids-group-ltd/ids-design-system/core';\nimport type { DsTooltipConfig } from './tooltip.types';\n\ntype TooltipOptions = NonNullable<DsConfig['tooltip']>;\n\nconst toOptionalBoolean = (value: unknown): boolean | null =>\n value == null ? null : booleanAttribute(value);\n\nconst PINNED_ATTRIBUTE = 'data-ds-tooltip-pinned';\n\nlet nextId = 0;\n\n/** @internal Lets a component that hosts the tooltip make a clipped host lead the tip with its own text. */\nexport const TOOLTIP_LEADS_WITH_OWN_TEXT = new InjectionToken<boolean>(\n 'TOOLTIP_LEADS_WITH_OWN_TEXT',\n);\n\n/** @internal Lets a component that hosts the tooltip decide `dsTooltipPinOnClick` for it. */\nexport const TOOLTIP_PIN_ON_CLICK = new InjectionToken<Signal<boolean>>(\n 'TOOLTIP_PIN_ON_CLICK',\n);\n\n@Directive({\n selector: '[dsTooltip], [dsTooltipWhenClipped]',\n standalone: true,\n})\nexport class TooltipDirective implements OnDestroy {\n private readonly overlay = inject(Overlay);\n private readonly host = inject(ElementRef<HTMLElement>);\n private readonly document = inject(DOCUMENT);\n private readonly config = inject(DS_CONFIG);\n private readonly hostPinOnClick = inject(TOOLTIP_PIN_ON_CLICK, {\n self: true,\n optional: true,\n });\n private readonly leadsWithOwnText =\n inject(TOOLTIP_LEADS_WITH_OWN_TEXT, { self: true, optional: true }) ??\n false;\n\n /** Tip text, or a template the panel renders as given. An empty string turns the tooltip off.\n * Keep a template's content non-interactive: the panel is `role=\"tooltip\"` and never takes focus. */\n readonly dsTooltip = input<string | TemplateRef<unknown>>('');\n /** Placement, delay, arrow, pin-on-click and the clipped test for this tip. An unset field falls\n * back to `DsConfig.tooltip`, then the built-in default. */\n readonly dsTooltipConfig = input<DsTooltipConfig | null>(null);\n /** Which side the tip opens on. Wins over `dsTooltipConfig.placement`.\n * @deprecated Use `[dsTooltipConfig]=\"{ placement }\"`, or `provideDsConfig({ tooltip: { placement } })` app-wide. */\n readonly dsTooltipPlacement = input<TooltipPlacement | null>(null);\n /** Milliseconds before the tip appears. Wins over `dsTooltipConfig.delay`.\n * @deprecated Use `[dsTooltipConfig]=\"{ delay }\"`, or `provideDsConfig({ tooltip: { delay } })` app-wide. */\n readonly dsTooltipDelay = input<number | null>(null);\n /** Draws the arrow that points at the host. Wins over `dsTooltipConfig.arrow`.\n * @deprecated Use `[dsTooltipConfig]=\"{ arrow }\"`, or `provideDsConfig({ tooltip: { arrow } })` app-wide. */\n readonly dsTooltipArrow = input<boolean | null, unknown>(null, {\n transform: toOptionalBoolean,\n });\n /** Show the tip only while the host shows less text than it holds: cut by width, or by lines\n * under `overflow: hidden` or `clip`, as with `line-clamp`. Re-tested on every open.\n * A boolean or the bare attribute tests the host. A selector tests the element it matches inside\n * the host and discloses that element's text; while nothing matches, no clipped tip opens.\n *\n * Applies the tooltip on its own: without a `dsTooltip` the tested text is disclosed. A tip\n * whose text the host already contains sets no `aria-describedby`; one given a `dsTooltip`\n * that says more than the host does describes it as usual.\n *\n * Keyboard focus opens it too: on the host, on a control or widget around it, or on a control\n * inside it. A clipped host that none of these reaches takes `tabindex=\"0\"` while it is clipped. */\n readonly dsTooltipWhenClipped = input<\n TooltipClipTarget | null,\n boolean | string | null | undefined\n >(null, { transform: toClipTarget });\n\n /** Opens the tip with no delay, and a click on the host keeps it open after the pointer leaves\n * until a click outside, `Escape` or blur; a second click closes it. Without it a click closes the tip.\n * While pinned the host carries `data-ds-tooltip-pinned`, a hook for styling the pinned trigger.\n * Wins over `dsTooltipConfig.pinOnClick`.\n * @deprecated Use `[dsTooltipConfig]=\"{ pinOnClick: true }\"`, or `provideDsConfig({ tooltip: { pinOnClick } })` app-wide. */\n readonly dsTooltipPinOnClick = input<boolean | null, unknown>(null, {\n transform: toOptionalBoolean,\n });\n\n private readonly placement = this.resolve(\n this.dsTooltipPlacement,\n 'placement',\n 'top',\n );\n private readonly delay = this.resolve(this.dsTooltipDelay, 'delay', 120);\n private readonly arrow = this.resolve(this.dsTooltipArrow, 'arrow', true);\n private readonly pinOnClick = this.resolve(\n this.dsTooltipPinOnClick,\n 'pinOnClick',\n false,\n );\n private readonly whenClipped = computed(\n () =>\n this.dsTooltipWhenClipped() ??\n toClipTarget(this.dsTooltipConfig()?.whenClipped),\n );\n\n private resolve<K extends keyof TooltipOptions>(\n deprecatedInput: Signal<TooltipOptions[K] | null>,\n key: K,\n fallback: NonNullable<TooltipOptions[K]>,\n ): Signal<NonNullable<TooltipOptions[K]>> {\n return computed(\n () =>\n deprecatedInput() ??\n this.dsTooltipConfig()?.[key] ??\n this.config.tooltip?.[key] ??\n fallback,\n );\n }\n\n private isClipped(): boolean {\n return isHostClipped(this.hostElement, this.whenClipped());\n }\n\n private get hostElement(): HTMLElement {\n return this.host.nativeElement;\n }\n\n private pinsOnClick(): boolean {\n return this.hostPinOnClick?.() ?? this.pinOnClick();\n }\n\n private ownText(): string {\n return ownTextOf(clipElement(this.hostElement, this.whenClipped()));\n }\n\n /** A host that leads with its own text puts it, in bold, above the tip while it is clipped, unless the tip already says it. */\n private tipContent(): string | TemplateRef<unknown> {\n const given = this.dsTooltip();\n if (given instanceof TemplateRef) {\n return given;\n }\n const own = this.ownText();\n if (!given) {\n return this.whenClipped() ? escapeTooltipMarkup(own) : '';\n }\n if (\n this.leadsWithOwnText &&\n own &&\n this.isClipped() &&\n !textContains(plainTooltipText(given), own)\n ) {\n return `**${escapeTooltipMarkup(own)}**\n${given}`;\n }\n\n return given;\n }\n\n /** A clipped host's full text is already in the DOM; describing it again would announce it twice. */\n private disclosesOwnText(text: string): boolean {\n if (!this.whenClipped()) {\n return false;\n }\n\n return textContains(this.ownText(), plainTooltipText(text));\n }\n\n private ref: OverlayRef | null = null;\n private timer: number | null = null;\n private unpin: (() => void) | null = null;\n private readonly tipId = `ds-tooltip-${++nextId}`;\n\n /**\n * Where `aria-describedby` belongs when focus is involved: a non-focusable host\n * (`ds-menu-item` is `role=\"none\"` around a real `<button>`) never reaches a screen\n * reader, so `focusin`'s target is recorded. A pointer-only open leaves it null.\n */\n private focusedTarget: HTMLElement | null = null;\n\n /**\n * Where `aria-describedby` was written, so teardown strips it from the same element\n * even if focus moved `focusedTarget` after the panel opened.\n */\n private describedElement: HTMLElement | null = null;\n\n private detachAncestor: (() => void) | null = null;\n\n private readonly ancestorFocusTrigger: AncestorFocusTrigger = {\n host: this.hostElement,\n isClipped: () => this.isClipped(),\n openFor: (ancestor) => {\n this.focusedTarget = ancestor;\n this.scheduleShow();\n },\n close: () => {\n this.focusedTarget = null;\n this.onClose();\n },\n };\n\n constructor() {\n afterNextRender(() => {\n if (this.whenClipped()) {\n this.detachAncestor =\n watchFocusableAncestor(this.ancestorFocusTrigger) ??\n tabStopWhileClipped(this.ancestorFocusTrigger);\n }\n });\n }\n\n @HostListener('mouseenter')\n protected onPointerEnter(): void {\n this.scheduleShow();\n }\n\n // Keyboard focus opens, a click's focus does not: neither the click itself nor the focus a closing\n // menu or popover returns to its trigger, which no mouseleave would ever close.\n @HostListener('focusin', ['$event'])\n protected onFocusIn(event: FocusEvent): void {\n const target = event.target as Element;\n if (!target.matches(':focus-visible')) {\n return;\n }\n const host = this.hostElement;\n if (this.whenClipped() && host.matches(FOCUSABLE) && target !== host) {\n return;\n }\n this.focusedTarget = target instanceof HTMLElement ? target : null;\n this.scheduleShow();\n }\n\n @HostListener('focusout')\n protected onFocusOut(): void {\n this.focusedTarget = null;\n this.onClose();\n }\n\n private scheduleShow(): void {\n if (this.unpin || !this.tipContent()) {\n return;\n }\n if (this.pinsOnClick() && this.ref?.hasAttached()) {\n return;\n }\n if (this.whenClipped() && !this.isClipped()) {\n return;\n }\n if (this.timer !== null) {\n clearTimeout(this.timer);\n }\n this.timer = window.setTimeout(\n () => this.show(),\n this.pinsOnClick() ? 0 : this.delay(),\n );\n }\n\n @HostListener('mouseleave')\n protected onPointerLeave(): void {\n if (!this.unpin) {\n this.onClose();\n }\n }\n\n // Close on click too: a re-rendered anchor under a stationary cursor fires no mouseleave.\n @HostListener('click')\n protected onClick(): void {\n if (this.pinsOnClick() && !this.unpin) {\n this.pin();\n } else {\n this.onClose();\n }\n }\n\n protected onClose(): void {\n if (this.timer !== null) {\n clearTimeout(this.timer);\n this.timer = null;\n }\n this.unpin?.();\n this.disposeRef();\n }\n\n private pin(): void {\n if (this.timer !== null) {\n clearTimeout(this.timer);\n this.timer = null;\n }\n if (!this.ref?.hasAttached()) {\n if (!this.tipContent()) {\n return;\n }\n this.show();\n }\n const closeOutside = (event: Event) => {\n const target = event.target as Node;\n if (\n !this.hostElement.contains(target) &&\n !this.ref?.overlayElement.contains(target)\n ) {\n this.onClose();\n }\n };\n this.document.addEventListener('pointerdown', closeOutside, true);\n const stopEscape = listenForEscape(this.document, () => this.onClose());\n this.hostElement.setAttribute(PINNED_ATTRIBUTE, '');\n this.unpin = () => {\n this.unpin = null;\n this.hostElement.removeAttribute(PINNED_ATTRIBUTE);\n this.document.removeEventListener('pointerdown', closeOutside, true);\n stopEscape();\n };\n }\n\n private disposeRef(): void {\n this.ref?.dispose();\n this.ref = null;\n const described = this.describedElement;\n if (!described) {\n return;\n }\n this.describedElement = null;\n const remaining = (described.getAttribute('aria-describedby') ?? '')\n .split(' ')\n .filter((id: string) => id && id !== this.tipId)\n .join(' ');\n if (remaining) {\n described.setAttribute('aria-describedby', remaining);\n } else {\n described.removeAttribute('aria-describedby');\n }\n }\n\n @HostListener('keydown')\n protected onKeydown(): void {\n if (this.whenClipped()) {\n this.onClose();\n }\n }\n\n @HostListener('keydown.escape')\n protected onEscape(): void {\n if (this.ref) {\n this.onClose();\n }\n }\n\n private show(): void {\n // show() can be re-entered with a panel open: dispose it first to avoid a leaked OverlayRef and a duplicate id.\n this.disposeRef();\n const placement = this.placement();\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.host)\n .withPositions(positionsFor(placement))\n .withViewportMargin(VIEWPORT_MARGIN_PX);\n\n this.ref = this.overlay.create({\n positionStrategy,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.close(),\n });\n prepareOverlayEnter(this.ref, this.host.nativeElement, positionStrategy);\n // The CDK strategy sees only the window and cdkScrollable ancestors, not a plain overflow container.\n const stopScrollClose = closeOnScroll(this.ref, () => this.onClose());\n this.ref.detachments().subscribe(stopScrollClose);\n\n const cmpRef = this.ref.attach(new ComponentPortal(TooltipPanelComponent));\n const tip = this.tipContent();\n cmpRef.setInput('text', tip);\n cmpRef.setInput('placement', placement);\n cmpRef.setInput('arrow', this.arrow());\n positionStrategy.positionChanges.subscribe(({ connectionPair }) =>\n cmpRef.setInput('placement', overlayPlacementOf(connectionPair)),\n );\n cmpRef.setInput('panelId', this.tipId);\n pointArrowAtHost(this.ref, cmpRef.location.nativeElement, this.hostElement);\n this.ref.detachments().subscribe(() => this.unpin?.());\n if (typeof tip === 'string' && this.disclosesOwnText(tip)) {\n return;\n }\n const described = this.focusedTarget ?? this.host.nativeElement;\n this.describedElement = described;\n const existing = described.getAttribute('aria-describedby');\n described.setAttribute(\n 'aria-describedby',\n existing ? `${existing} ${this.tipId}` : this.tipId,\n );\n }\n\n ngOnDestroy(): void {\n this.detachAncestor?.();\n this.onClose();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAKA,MAAM,KAAK,GAAG,iBAAiB;AAC/B,MAAM,OAAO,GAAG,QAAQ;AACxB,MAAM,IAAI,GAAG,IAAI;AAEjB;AACM,SAAU,k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,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,SAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,cAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,OAAA,EAAA,WAAA,EAAA,SAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qCAAqC;AAC/C,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;sBAmLE,YAAY;uBAAC,YAAY;;sBAOzB,YAAY;uBAAC,SAAS,EAAE,CAAC,QAAQ,CAAC;;sBAclC,YAAY;uBAAC,UAAU;;sBAyBvB,YAAY;uBAAC,YAAY;;sBAQzB,YAAY;uBAAC,OAAO;;sBAoEpB,YAAY;uBAAC,SAAS;;sBAOtB,YAAY;uBAAC,gBAAgB;;;AC1XhC;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, TemplateRef, Directive, ElementRef, input, model, booleanAttribute, output, contentChild, signal, computed, afterEveryRender, afterNextRender, ViewEncapsulation, Component } from '@angular/core';
2
+ import { inject, TemplateRef, Directive, ElementRef, input, model, booleanAttribute, output, contentChild, signal, computed, afterEveryRender, ViewEncapsulation, Component } from '@angular/core';
3
3
  import { NgTemplateOutlet } from '@angular/common';
4
4
  import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
5
5
  import { DS_INTL, DS_INTL_DEFAULTS } from '@ids-group-ltd/ids-design-system/core';
@@ -50,7 +50,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
50
50
  * </ds-tree>
51
51
  * ```
52
52
  *
53
- * A click inside it neither selects nor toggles the row. Its controls are tab stops only on
53
+ * `let-expanded="expanded"` reads whether the row is open, to show a folder's count only while it
54
+ * is collapsed. A click inside it neither selects nor toggles the row. Its controls are tab stops only on
54
55
  * the focused row: Tab from that row reaches them, and the other rows' controls stay out of
55
56
  * the tab order.
56
57
  */
@@ -91,8 +92,9 @@ class TreeComponent {
91
92
  * its own that toggles. `'doubleClick'`: a click selects, a double click toggles. In every mode
92
93
  * ArrowRight expands and ArrowLeft collapses the focused row. */
93
94
  toggleOn = input('row', ...(ngDevMode ? [{ debugName: "toggleOn" }] : /* istanbul ignore next */ []));
94
- /** Rows slide open and shut and the chevron turns when a parent expands or collapses. Off under
95
- * `prefers-reduced-motion: reduce`. */
95
+ /** Rows slide open and shut and the chevron turns when the user expands or collapses a parent.
96
+ * Rows of the first render, and rows shown or hidden by `nodes` or `expandedIds` set from outside,
97
+ * appear and go at once, and their chevron turns at once. Off under `prefers-reduced-motion: reduce`. */
96
98
  animate = input(true, { ...(ngDevMode ? { debugName: "animate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
97
99
  /** Fires with the node when a row is selected (click or Enter/Space), not when one is deselected. */
98
100
  nodeSelected = output();
@@ -103,9 +105,17 @@ class TreeComponent {
103
105
  idPrefix = `ds-tree-${++nextId}`;
104
106
  activeId = signal(null, ...(ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []));
105
107
  hoveredId = null;
106
- // The rows of the first render are not revealed by a toggle, so they appear without motion.
107
- rendered = signal(false, ...(ngDevMode ? [{ debugName: "rendered" }] : /* istanbul ignore next */ []));
108
- motion = computed(() => this.animate() && this.rendered(), ...(ngDevMode ? [{ debugName: "motion" }] : /* istanbul ignore next */ []));
108
+ // Rows fold and carets turn only while the tree shows the state the user's own toggle made: the
109
+ // first render, and nodes or expanded ids set from outside, show and remove rows without motion.
110
+ // Dropping the motion a render after the toggle would remove the caret's transition before the
111
+ // browser ever styles the turn.
112
+ toggled = signal(null, ...(ngDevMode ? [{ debugName: "toggled" }] : /* istanbul ignore next */ []));
113
+ motion = computed(() => {
114
+ const toggled = this.toggled();
115
+ return (this.animate() &&
116
+ toggled?.expandedIds === this.expandedIds() &&
117
+ toggled.nodes === this.nodes());
118
+ }, ...(ngDevMode ? [{ debugName: "motion" }] : /* istanbul ignore next */ []));
109
119
  multiple = computed(() => this.selection() === 'multiple', ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
110
120
  labels = computed(() => ({
111
121
  ...DS_INTL_DEFAULTS.tree,
@@ -131,7 +141,6 @@ class TreeComponent {
131
141
  // Content inside a trailing template can change without a signal of the tree changing,
132
142
  // so its tab stops are re-parked after every render.
133
143
  afterEveryRender({ write: () => this.parkTrailingTabStops() });
134
- afterNextRender(() => this.rendered.set(true));
135
144
  }
136
145
  isExpanded(id) {
137
146
  return this.expandedIds().has(id);
@@ -273,6 +282,7 @@ class TreeComponent {
273
282
  else {
274
283
  next.add(node.id);
275
284
  }
285
+ this.toggled.set({ expandedIds: next, nodes: this.nodes() });
276
286
  this.expandedIds.set(next);
277
287
  }
278
288
  moveActive(targetIndex) {
@@ -327,17 +337,17 @@ class TreeComponent {
327
337
  }
328
338
  }
329
339
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
330
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: TreeComponent, isStandalone: true, selector: "ds-tree", inputs: { nodes: { classPropertyName: "nodes", publicName: "nodes", isSignal: true, isRequired: false, transformFunction: null }, expandedIds: { classPropertyName: "expandedIds", publicName: "expandedIds", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, selectedId: { classPropertyName: "selectedId", publicName: "selectedId", isSignal: true, isRequired: false, transformFunction: null }, selectedIds: { classPropertyName: "selectedIds", publicName: "selectedIds", isSignal: true, isRequired: false, transformFunction: null }, toggleOn: { classPropertyName: "toggleOn", publicName: "toggleOn", isSignal: true, isRequired: false, transformFunction: null }, animate: { classPropertyName: "animate", publicName: "animate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expandedIds: "expandedIdsChange", selectedId: "selectedIdChange", selectedIds: "selectedIdsChange", nodeSelected: "nodeSelected", nodeHover: "nodeHover" }, host: { attributes: { "role": "tree" }, listeners: { "keydown": "onKeydown($event)", "pointerleave": "hover(null)" }, properties: { "attr.aria-multiselectable": "multiple() ? 'true' : null", "class.is-animated": "animate()" } }, queries: [{ propertyName: "label", first: true, predicate: TreeLabelDirective, descendants: true, isSignal: true }, { propertyName: "trailing", first: true, predicate: TreeTrailingDirective, descendants: true, isSignal: true }], ngImport: i0, template: "@for (entry of visibleNodes(); track entry.node.id; let index = $index) {\n <div\n class=\"row-shell\"\n role=\"none\"\n [animate.enter]=\"motion() ? 'is-entering' : ''\"\n [animate.leave]=\"motion() ? 'is-leaving' : ''\">\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events -- Enter and Space reach the host keydown handler, which activates the focused row -->\n <div\n class=\"row\"\n role=\"treeitem\"\n [attr.data-node-id]=\"entry.node.id\"\n [attr.aria-level]=\"entry.level + 1\"\n [attr.aria-expanded]=\"entry.hasChildren ? entry.expanded : null\"\n [attr.aria-selected]=\"isSelected(entry.node.id)\"\n [attr.aria-disabled]=\"entry.node.disabled ? 'true' : null\"\n [attr.aria-labelledby]=\"idPrefix + '-' + index\"\n [attr.aria-describedby]=\"\n trailing() ? idPrefix + '-' + index + '-trailing' : null\n \"\n [attr.tabindex]=\"isActive(entry.node.id) ? 0 : -1\"\n [class.selected]=\"isSelected(entry.node.id)\"\n [style.--_level]=\"entry.level\"\n (click)=\"onRowClick(entry, $event)\"\n (dblclick)=\"onRowDoubleClick(entry, $event)\"\n (focus)=\"onRowFocus(entry)\"\n (pointerenter)=\"hover(entry.node)\">\n @if (entry.hasChildren && toggleOn() === 'caret') {\n <!-- The row keeps the focus and the tree its one tab stop: ArrowRight and ArrowLeft on the row are the keyboard toggle. -->\n <button\n type=\"button\"\n class=\"caret-button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"\n entry.expanded\n ? labels().collapse(entry.node.label)\n : labels().expand(entry.node.label)\n \"\n [disabled]=\"entry.node.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onCaretClick(entry, $event)\">\n <ds-icon\n class=\"caret\"\n name=\"chevronRight\"\n [class.expanded]=\"entry.expanded\"\n [size]=\"16\" />\n </button>\n } @else if (entry.hasChildren) {\n <ds-icon\n class=\"caret\"\n name=\"chevronRight\"\n [class.expanded]=\"entry.expanded\"\n [size]=\"16\" />\n } @else if (!entry.node.icon) {\n <span class=\"caret-spacer\"></span>\n }\n\n @if (entry.node.icon; as icon) {\n <ds-icon\n class=\"node-icon\"\n [name]=\"icon\"\n [size]=\"16\" />\n }\n\n @if (label(); as label) {\n <span\n class=\"custom-label\"\n [id]=\"idPrefix + '-' + index\">\n <ng-container\n *ngTemplateOutlet=\"\n label.template;\n context: {\n $implicit: entry.node,\n node: entry.node,\n level: entry.level,\n selected: isSelected(entry.node.id),\n disabled: !!entry.node.disabled,\n }\n \" />\n </span>\n } @else {\n <span\n class=\"label\"\n [id]=\"idPrefix + '-' + index\">\n {{ entry.node.label }}\n </span>\n }\n\n @if (trailing(); as trailing) {\n <span\n class=\"trailing\"\n [id]=\"idPrefix + '-' + index + '-trailing'\">\n <ng-container\n *ngTemplateOutlet=\"\n trailing.template;\n context: { $implicit: entry.node, node: entry.node }\n \" />\n </span>\n }\n </div>\n </div>\n}\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{--_tree-indent: var(--ds-tree-indent, var(--tree-indent));--_tree-row-padding-y: var(--ds-tree-row-padding-y, var(--tree-row-pad-y));--_tree-row-padding-x: var(--ds-tree-row-padding-x, var(--tree-row-pad-x));--_tree-row-hover-bg-color: var(--ds-tree-row-hover-bg-color, var(--surface-secondary));--_tree-row-selected-bg-color: var(--ds-tree-row-selected-bg-color, var(--accent-surface-tint));--_tree-row-selected-text-color: var(--ds-tree-row-selected-text-color, var(--accent-strong));--_tree-row-selected-icon-color: var(--ds-tree-row-selected-icon-color, var(--_tree-row-selected-text-color));--_tree-row-text-color: var(--ds-tree-row-text-color, var(--text-primary));--_tree-caret-icon-color: var(--ds-tree-caret-icon-color, var(--text-tertiary));display:flex;flex-direction:column}.row-shell{display:grid;grid-template-rows:1fr}.row-shell.is-entering{animation:ds-tree-row-expand var(--duration-base) var(--ease-standard)}.row-shell.is-entering>.row{overflow:hidden;min-height:0;animation:ds-tree-row-padding-in var(--duration-base) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.row-shell.is-entering,.row-shell.is-entering>.row{animation:none}}.row-shell.is-leaving{contain:inline-size;pointer-events:none;animation:ds-tree-row-collapse max(var(--duration-base),1ms) var(--ease-standard) both}.row-shell.is-leaving>.row{overflow:hidden;min-height:0;animation:ds-tree-row-padding-out max(var(--duration-base),1ms) var(--ease-standard) both}@keyframes ds-tree-row-expand{0%{grid-template-rows:0fr;opacity:0}}@keyframes ds-tree-row-collapse{to{grid-template-rows:0fr;opacity:0}}@keyframes ds-tree-row-padding-in{0%{padding-block:0}}@keyframes ds-tree-row-padding-out{to{padding-block:0}}.row{display:flex;align-items:center;gap:var(--space-2);width:100%;padding:var(--_tree-row-padding-y) var(--_tree-row-padding-x) var(--_tree-row-padding-y) calc(var(--_tree-row-padding-x) + var(--_level, 0) * var(--_tree-indent));border:0;background:transparent;border-radius:var(--focus-ring-radius);color:var(--_tree-row-text-color);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);text-align:left;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--duration-fast) var(--ease-standard)}.row:hover{background-color:var(--_tree-row-hover-bg-color)}.row:active:not([aria-disabled=true],:has(.trailing:active)){background-color:var(--surface-muted)}.row:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.row[aria-disabled=true]{color:var(--text-disabled);cursor:not-allowed}.row.selected{background-color:var(--_tree-row-selected-bg-color);color:var(--_tree-row-selected-text-color);font-weight:var(--font-weight-semibold)}.caret{flex:none;color:var(--_tree-caret-icon-color)}.caret.expanded{transform:rotate(90deg)}:host(.is-animated) .caret{transition:transform var(--duration-base) var(--ease-standard)}.caret-button{display:grid;flex:none;place-items:center;padding:0;border:0;border-radius:var(--radius-sm);background:transparent;color:inherit;cursor:pointer}.caret-button:disabled{cursor:not-allowed}.caret-button{position:relative}.caret-button:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.caret-button:focus-visible{outline-style:none}.caret-button:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.caret-spacer{flex:none;width:var(--space-4)}.node-icon{flex:none;color:var(--icon-default, var(--text-secondary))}.row.selected .node-icon{color:var(--_tree-row-selected-icon-color)}.label{min-width:0;overflow:clip visible;text-overflow:ellipsis;white-space:nowrap}.custom-label{flex:1;min-width:0}.trailing{display:flex;flex:none;align-items:center;gap:var(--space-1);margin-block:calc(-1 * var(--_tree-row-padding-y));margin-inline-start:auto;font-weight:var(--font-weight-regular);cursor:default}.trailing:focus-within{position:relative;z-index:1}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
340
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: TreeComponent, isStandalone: true, selector: "ds-tree", inputs: { nodes: { classPropertyName: "nodes", publicName: "nodes", isSignal: true, isRequired: false, transformFunction: null }, expandedIds: { classPropertyName: "expandedIds", publicName: "expandedIds", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, selectedId: { classPropertyName: "selectedId", publicName: "selectedId", isSignal: true, isRequired: false, transformFunction: null }, selectedIds: { classPropertyName: "selectedIds", publicName: "selectedIds", isSignal: true, isRequired: false, transformFunction: null }, toggleOn: { classPropertyName: "toggleOn", publicName: "toggleOn", isSignal: true, isRequired: false, transformFunction: null }, animate: { classPropertyName: "animate", publicName: "animate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expandedIds: "expandedIdsChange", selectedId: "selectedIdChange", selectedIds: "selectedIdsChange", nodeSelected: "nodeSelected", nodeHover: "nodeHover" }, host: { attributes: { "role": "tree" }, listeners: { "keydown": "onKeydown($event)", "pointerleave": "hover(null)" }, properties: { "attr.aria-multiselectable": "multiple() ? 'true' : null", "class.is-animated": "motion()" } }, queries: [{ propertyName: "label", first: true, predicate: TreeLabelDirective, descendants: true, isSignal: true }, { propertyName: "trailing", first: true, predicate: TreeTrailingDirective, descendants: true, isSignal: true }], ngImport: i0, template: "@for (entry of visibleNodes(); track entry.node.id; let index = $index) {\n <div\n class=\"row-shell\"\n role=\"none\"\n [animate.enter]=\"motion() ? 'is-entering' : ''\"\n [animate.leave]=\"motion() ? 'is-leaving' : ''\">\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events -- Enter and Space reach the host keydown handler, which activates the focused row -->\n <div\n class=\"row\"\n role=\"treeitem\"\n [attr.data-node-id]=\"entry.node.id\"\n [attr.aria-level]=\"entry.level + 1\"\n [attr.aria-expanded]=\"entry.hasChildren ? entry.expanded : null\"\n [attr.aria-selected]=\"isSelected(entry.node.id)\"\n [attr.aria-disabled]=\"entry.node.disabled ? 'true' : null\"\n [attr.aria-labelledby]=\"idPrefix + '-' + index\"\n [attr.aria-describedby]=\"\n trailing() ? idPrefix + '-' + index + '-trailing' : null\n \"\n [attr.tabindex]=\"isActive(entry.node.id) ? 0 : -1\"\n [class.selected]=\"isSelected(entry.node.id)\"\n [style.--_level]=\"entry.level\"\n (click)=\"onRowClick(entry, $event)\"\n (dblclick)=\"onRowDoubleClick(entry, $event)\"\n (focus)=\"onRowFocus(entry)\"\n (pointerenter)=\"hover(entry.node)\">\n @if (entry.hasChildren && toggleOn() === 'caret') {\n <!-- The row keeps the focus and the tree its one tab stop: ArrowRight and ArrowLeft on the row are the keyboard toggle. -->\n <button\n type=\"button\"\n class=\"caret-button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"\n entry.expanded\n ? labels().collapse(entry.node.label)\n : labels().expand(entry.node.label)\n \"\n [disabled]=\"entry.node.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onCaretClick(entry, $event)\">\n <ds-icon\n class=\"caret\"\n name=\"chevronRight\"\n [class.expanded]=\"entry.expanded\"\n [size]=\"16\" />\n </button>\n } @else if (entry.hasChildren) {\n <ds-icon\n class=\"caret\"\n name=\"chevronRight\"\n [class.expanded]=\"entry.expanded\"\n [size]=\"16\" />\n } @else if (!entry.node.icon) {\n <span class=\"caret-spacer\"></span>\n }\n\n @if (entry.node.icon; as icon) {\n <ds-icon\n class=\"node-icon\"\n [name]=\"icon\"\n [size]=\"16\" />\n }\n\n @if (label(); as label) {\n <span\n class=\"custom-label\"\n [id]=\"idPrefix + '-' + index\">\n <ng-container\n *ngTemplateOutlet=\"\n label.template;\n context: {\n $implicit: entry.node,\n node: entry.node,\n level: entry.level,\n selected: isSelected(entry.node.id),\n disabled: !!entry.node.disabled,\n }\n \" />\n </span>\n } @else {\n <span\n class=\"label\"\n [id]=\"idPrefix + '-' + index\">\n {{ entry.node.label }}\n </span>\n }\n\n @if (trailing(); as trailing) {\n <span\n class=\"trailing\"\n [id]=\"idPrefix + '-' + index + '-trailing'\">\n <ng-container\n *ngTemplateOutlet=\"\n trailing.template;\n context: {\n $implicit: entry.node,\n node: entry.node,\n expanded: entry.hasChildren && entry.expanded,\n }\n \" />\n </span>\n }\n </div>\n </div>\n}\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{--_tree-indent: var(--ds-tree-indent, var(--tree-indent));--_tree-row-padding-y: var(--ds-tree-row-padding-y, var(--tree-row-pad-y));--_tree-row-padding-x: var(--ds-tree-row-padding-x, var(--tree-row-pad-x));--_tree-row-hover-bg-color: var(--ds-tree-row-hover-bg-color, var(--state-layer-hover));--_tree-row-selected-bg-color: var(--ds-tree-row-selected-bg-color, var(--accent-surface-tint));--_tree-row-selected-text-color: var(--ds-tree-row-selected-text-color, var(--accent-strong));--_tree-row-selected-icon-color: var(--ds-tree-row-selected-icon-color, var(--_tree-row-selected-text-color));--_tree-row-text-color: var(--ds-tree-row-text-color, var(--text-primary));--_tree-caret-icon-color: var(--ds-tree-caret-icon-color, var(--text-tertiary));display:flex;flex-direction:column}.row-shell{display:grid;grid-template-rows:1fr;grid-template-columns:minmax(0,1fr)}.row-shell.is-entering{animation:ds-tree-row-expand var(--duration-base) var(--ease-standard)}.row-shell.is-entering>.row{overflow:hidden;min-height:0;animation:ds-tree-row-padding-in var(--duration-base) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.row-shell.is-entering,.row-shell.is-entering>.row{animation:none}}.row-shell.is-leaving{contain:inline-size;pointer-events:none;animation:ds-tree-row-collapse max(var(--duration-base),1ms) var(--ease-standard) both}.row-shell.is-leaving>.row{overflow:hidden;min-height:0;animation:ds-tree-row-padding-out max(var(--duration-base),1ms) var(--ease-standard) both}@keyframes ds-tree-row-expand{0%{grid-template-rows:0fr;opacity:0}}@keyframes ds-tree-row-collapse{to{grid-template-rows:0fr;opacity:0}}@keyframes ds-tree-row-padding-in{0%{padding-block:0}}@keyframes ds-tree-row-padding-out{to{padding-block:0}}.row{display:flex;align-items:center;gap:var(--space-2);width:100%;padding:var(--_tree-row-padding-y) var(--_tree-row-padding-x) var(--_tree-row-padding-y) calc(var(--_tree-row-padding-x) + var(--_level, 0) * var(--_tree-indent));border:0;background:transparent;border-radius:var(--focus-ring-radius);color:var(--_tree-row-text-color);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);text-align:left;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--duration-fast) var(--ease-standard)}.row:hover{background-color:var(--_tree-row-hover-bg-color)}.row:active:not([aria-disabled=true],:has(.trailing:active)){background-color:var(--state-layer-pressed)}.row:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.row[aria-disabled=true]{color:var(--text-disabled);cursor:not-allowed}.row.selected{background-color:var(--_tree-row-selected-bg-color);color:var(--_tree-row-selected-text-color)}.caret{flex:none;color:var(--_tree-caret-icon-color)}.caret.expanded{transform:rotate(90deg)}:host(.is-animated) .caret{transition:transform var(--duration-base) var(--ease-standard)}.caret-button{display:grid;flex:none;place-items:center;padding:0;border:0;border-radius:var(--radius-sm);background:transparent;color:inherit;cursor:pointer}.caret-button:disabled{cursor:not-allowed}.caret-button{position:relative}.caret-button:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.caret-button:focus-visible{outline-style:none}.caret-button:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.caret-spacer{flex:none;width:var(--space-4)}.node-icon{flex:none;color:var(--icon-default, var(--text-secondary))}.row.selected .node-icon{color:var(--_tree-row-selected-icon-color)}.label{min-width:0;overflow:clip visible;text-overflow:ellipsis;white-space:nowrap}.custom-label{flex:1;min-width:0}.trailing{display:flex;flex:none;align-items:center;gap:var(--space-1);margin-block:calc(-1 * var(--_tree-row-padding-y));margin-inline-start:auto;cursor:default}.trailing:focus-within{position:relative;z-index:1}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
331
341
  }
332
342
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TreeComponent, decorators: [{
333
343
  type: Component,
334
344
  args: [{ selector: 'ds-tree', standalone: true, imports: [IconComponent, NgTemplateOutlet], encapsulation: ViewEncapsulation.Emulated, host: {
335
345
  role: 'tree',
336
346
  '[attr.aria-multiselectable]': "multiple() ? 'true' : null",
337
- '[class.is-animated]': 'animate()',
347
+ '[class.is-animated]': 'motion()',
338
348
  '(keydown)': 'onKeydown($event)',
339
349
  '(pointerleave)': 'hover(null)',
340
- }, template: "@for (entry of visibleNodes(); track entry.node.id; let index = $index) {\n <div\n class=\"row-shell\"\n role=\"none\"\n [animate.enter]=\"motion() ? 'is-entering' : ''\"\n [animate.leave]=\"motion() ? 'is-leaving' : ''\">\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events -- Enter and Space reach the host keydown handler, which activates the focused row -->\n <div\n class=\"row\"\n role=\"treeitem\"\n [attr.data-node-id]=\"entry.node.id\"\n [attr.aria-level]=\"entry.level + 1\"\n [attr.aria-expanded]=\"entry.hasChildren ? entry.expanded : null\"\n [attr.aria-selected]=\"isSelected(entry.node.id)\"\n [attr.aria-disabled]=\"entry.node.disabled ? 'true' : null\"\n [attr.aria-labelledby]=\"idPrefix + '-' + index\"\n [attr.aria-describedby]=\"\n trailing() ? idPrefix + '-' + index + '-trailing' : null\n \"\n [attr.tabindex]=\"isActive(entry.node.id) ? 0 : -1\"\n [class.selected]=\"isSelected(entry.node.id)\"\n [style.--_level]=\"entry.level\"\n (click)=\"onRowClick(entry, $event)\"\n (dblclick)=\"onRowDoubleClick(entry, $event)\"\n (focus)=\"onRowFocus(entry)\"\n (pointerenter)=\"hover(entry.node)\">\n @if (entry.hasChildren && toggleOn() === 'caret') {\n <!-- The row keeps the focus and the tree its one tab stop: ArrowRight and ArrowLeft on the row are the keyboard toggle. -->\n <button\n type=\"button\"\n class=\"caret-button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"\n entry.expanded\n ? labels().collapse(entry.node.label)\n : labels().expand(entry.node.label)\n \"\n [disabled]=\"entry.node.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onCaretClick(entry, $event)\">\n <ds-icon\n class=\"caret\"\n name=\"chevronRight\"\n [class.expanded]=\"entry.expanded\"\n [size]=\"16\" />\n </button>\n } @else if (entry.hasChildren) {\n <ds-icon\n class=\"caret\"\n name=\"chevronRight\"\n [class.expanded]=\"entry.expanded\"\n [size]=\"16\" />\n } @else if (!entry.node.icon) {\n <span class=\"caret-spacer\"></span>\n }\n\n @if (entry.node.icon; as icon) {\n <ds-icon\n class=\"node-icon\"\n [name]=\"icon\"\n [size]=\"16\" />\n }\n\n @if (label(); as label) {\n <span\n class=\"custom-label\"\n [id]=\"idPrefix + '-' + index\">\n <ng-container\n *ngTemplateOutlet=\"\n label.template;\n context: {\n $implicit: entry.node,\n node: entry.node,\n level: entry.level,\n selected: isSelected(entry.node.id),\n disabled: !!entry.node.disabled,\n }\n \" />\n </span>\n } @else {\n <span\n class=\"label\"\n [id]=\"idPrefix + '-' + index\">\n {{ entry.node.label }}\n </span>\n }\n\n @if (trailing(); as trailing) {\n <span\n class=\"trailing\"\n [id]=\"idPrefix + '-' + index + '-trailing'\">\n <ng-container\n *ngTemplateOutlet=\"\n trailing.template;\n context: { $implicit: entry.node, node: entry.node }\n \" />\n </span>\n }\n </div>\n </div>\n}\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{--_tree-indent: var(--ds-tree-indent, var(--tree-indent));--_tree-row-padding-y: var(--ds-tree-row-padding-y, var(--tree-row-pad-y));--_tree-row-padding-x: var(--ds-tree-row-padding-x, var(--tree-row-pad-x));--_tree-row-hover-bg-color: var(--ds-tree-row-hover-bg-color, var(--surface-secondary));--_tree-row-selected-bg-color: var(--ds-tree-row-selected-bg-color, var(--accent-surface-tint));--_tree-row-selected-text-color: var(--ds-tree-row-selected-text-color, var(--accent-strong));--_tree-row-selected-icon-color: var(--ds-tree-row-selected-icon-color, var(--_tree-row-selected-text-color));--_tree-row-text-color: var(--ds-tree-row-text-color, var(--text-primary));--_tree-caret-icon-color: var(--ds-tree-caret-icon-color, var(--text-tertiary));display:flex;flex-direction:column}.row-shell{display:grid;grid-template-rows:1fr}.row-shell.is-entering{animation:ds-tree-row-expand var(--duration-base) var(--ease-standard)}.row-shell.is-entering>.row{overflow:hidden;min-height:0;animation:ds-tree-row-padding-in var(--duration-base) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.row-shell.is-entering,.row-shell.is-entering>.row{animation:none}}.row-shell.is-leaving{contain:inline-size;pointer-events:none;animation:ds-tree-row-collapse max(var(--duration-base),1ms) var(--ease-standard) both}.row-shell.is-leaving>.row{overflow:hidden;min-height:0;animation:ds-tree-row-padding-out max(var(--duration-base),1ms) var(--ease-standard) both}@keyframes ds-tree-row-expand{0%{grid-template-rows:0fr;opacity:0}}@keyframes ds-tree-row-collapse{to{grid-template-rows:0fr;opacity:0}}@keyframes ds-tree-row-padding-in{0%{padding-block:0}}@keyframes ds-tree-row-padding-out{to{padding-block:0}}.row{display:flex;align-items:center;gap:var(--space-2);width:100%;padding:var(--_tree-row-padding-y) var(--_tree-row-padding-x) var(--_tree-row-padding-y) calc(var(--_tree-row-padding-x) + var(--_level, 0) * var(--_tree-indent));border:0;background:transparent;border-radius:var(--focus-ring-radius);color:var(--_tree-row-text-color);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);text-align:left;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--duration-fast) var(--ease-standard)}.row:hover{background-color:var(--_tree-row-hover-bg-color)}.row:active:not([aria-disabled=true],:has(.trailing:active)){background-color:var(--surface-muted)}.row:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.row[aria-disabled=true]{color:var(--text-disabled);cursor:not-allowed}.row.selected{background-color:var(--_tree-row-selected-bg-color);color:var(--_tree-row-selected-text-color);font-weight:var(--font-weight-semibold)}.caret{flex:none;color:var(--_tree-caret-icon-color)}.caret.expanded{transform:rotate(90deg)}:host(.is-animated) .caret{transition:transform var(--duration-base) var(--ease-standard)}.caret-button{display:grid;flex:none;place-items:center;padding:0;border:0;border-radius:var(--radius-sm);background:transparent;color:inherit;cursor:pointer}.caret-button:disabled{cursor:not-allowed}.caret-button{position:relative}.caret-button:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.caret-button:focus-visible{outline-style:none}.caret-button:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.caret-spacer{flex:none;width:var(--space-4)}.node-icon{flex:none;color:var(--icon-default, var(--text-secondary))}.row.selected .node-icon{color:var(--_tree-row-selected-icon-color)}.label{min-width:0;overflow:clip visible;text-overflow:ellipsis;white-space:nowrap}.custom-label{flex:1;min-width:0}.trailing{display:flex;flex:none;align-items:center;gap:var(--space-1);margin-block:calc(-1 * var(--_tree-row-padding-y));margin-inline-start:auto;font-weight:var(--font-weight-regular);cursor:default}.trailing:focus-within{position:relative;z-index:1}\n"] }]
350
+ }, template: "@for (entry of visibleNodes(); track entry.node.id; let index = $index) {\n <div\n class=\"row-shell\"\n role=\"none\"\n [animate.enter]=\"motion() ? 'is-entering' : ''\"\n [animate.leave]=\"motion() ? 'is-leaving' : ''\">\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events -- Enter and Space reach the host keydown handler, which activates the focused row -->\n <div\n class=\"row\"\n role=\"treeitem\"\n [attr.data-node-id]=\"entry.node.id\"\n [attr.aria-level]=\"entry.level + 1\"\n [attr.aria-expanded]=\"entry.hasChildren ? entry.expanded : null\"\n [attr.aria-selected]=\"isSelected(entry.node.id)\"\n [attr.aria-disabled]=\"entry.node.disabled ? 'true' : null\"\n [attr.aria-labelledby]=\"idPrefix + '-' + index\"\n [attr.aria-describedby]=\"\n trailing() ? idPrefix + '-' + index + '-trailing' : null\n \"\n [attr.tabindex]=\"isActive(entry.node.id) ? 0 : -1\"\n [class.selected]=\"isSelected(entry.node.id)\"\n [style.--_level]=\"entry.level\"\n (click)=\"onRowClick(entry, $event)\"\n (dblclick)=\"onRowDoubleClick(entry, $event)\"\n (focus)=\"onRowFocus(entry)\"\n (pointerenter)=\"hover(entry.node)\">\n @if (entry.hasChildren && toggleOn() === 'caret') {\n <!-- The row keeps the focus and the tree its one tab stop: ArrowRight and ArrowLeft on the row are the keyboard toggle. -->\n <button\n type=\"button\"\n class=\"caret-button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"\n entry.expanded\n ? labels().collapse(entry.node.label)\n : labels().expand(entry.node.label)\n \"\n [disabled]=\"entry.node.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onCaretClick(entry, $event)\">\n <ds-icon\n class=\"caret\"\n name=\"chevronRight\"\n [class.expanded]=\"entry.expanded\"\n [size]=\"16\" />\n </button>\n } @else if (entry.hasChildren) {\n <ds-icon\n class=\"caret\"\n name=\"chevronRight\"\n [class.expanded]=\"entry.expanded\"\n [size]=\"16\" />\n } @else if (!entry.node.icon) {\n <span class=\"caret-spacer\"></span>\n }\n\n @if (entry.node.icon; as icon) {\n <ds-icon\n class=\"node-icon\"\n [name]=\"icon\"\n [size]=\"16\" />\n }\n\n @if (label(); as label) {\n <span\n class=\"custom-label\"\n [id]=\"idPrefix + '-' + index\">\n <ng-container\n *ngTemplateOutlet=\"\n label.template;\n context: {\n $implicit: entry.node,\n node: entry.node,\n level: entry.level,\n selected: isSelected(entry.node.id),\n disabled: !!entry.node.disabled,\n }\n \" />\n </span>\n } @else {\n <span\n class=\"label\"\n [id]=\"idPrefix + '-' + index\">\n {{ entry.node.label }}\n </span>\n }\n\n @if (trailing(); as trailing) {\n <span\n class=\"trailing\"\n [id]=\"idPrefix + '-' + index + '-trailing'\">\n <ng-container\n *ngTemplateOutlet=\"\n trailing.template;\n context: {\n $implicit: entry.node,\n node: entry.node,\n expanded: entry.hasChildren && entry.expanded,\n }\n \" />\n </span>\n }\n </div>\n </div>\n}\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{--_tree-indent: var(--ds-tree-indent, var(--tree-indent));--_tree-row-padding-y: var(--ds-tree-row-padding-y, var(--tree-row-pad-y));--_tree-row-padding-x: var(--ds-tree-row-padding-x, var(--tree-row-pad-x));--_tree-row-hover-bg-color: var(--ds-tree-row-hover-bg-color, var(--state-layer-hover));--_tree-row-selected-bg-color: var(--ds-tree-row-selected-bg-color, var(--accent-surface-tint));--_tree-row-selected-text-color: var(--ds-tree-row-selected-text-color, var(--accent-strong));--_tree-row-selected-icon-color: var(--ds-tree-row-selected-icon-color, var(--_tree-row-selected-text-color));--_tree-row-text-color: var(--ds-tree-row-text-color, var(--text-primary));--_tree-caret-icon-color: var(--ds-tree-caret-icon-color, var(--text-tertiary));display:flex;flex-direction:column}.row-shell{display:grid;grid-template-rows:1fr;grid-template-columns:minmax(0,1fr)}.row-shell.is-entering{animation:ds-tree-row-expand var(--duration-base) var(--ease-standard)}.row-shell.is-entering>.row{overflow:hidden;min-height:0;animation:ds-tree-row-padding-in var(--duration-base) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.row-shell.is-entering,.row-shell.is-entering>.row{animation:none}}.row-shell.is-leaving{contain:inline-size;pointer-events:none;animation:ds-tree-row-collapse max(var(--duration-base),1ms) var(--ease-standard) both}.row-shell.is-leaving>.row{overflow:hidden;min-height:0;animation:ds-tree-row-padding-out max(var(--duration-base),1ms) var(--ease-standard) both}@keyframes ds-tree-row-expand{0%{grid-template-rows:0fr;opacity:0}}@keyframes ds-tree-row-collapse{to{grid-template-rows:0fr;opacity:0}}@keyframes ds-tree-row-padding-in{0%{padding-block:0}}@keyframes ds-tree-row-padding-out{to{padding-block:0}}.row{display:flex;align-items:center;gap:var(--space-2);width:100%;padding:var(--_tree-row-padding-y) var(--_tree-row-padding-x) var(--_tree-row-padding-y) calc(var(--_tree-row-padding-x) + var(--_level, 0) * var(--_tree-indent));border:0;background:transparent;border-radius:var(--focus-ring-radius);color:var(--_tree-row-text-color);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);text-align:left;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--duration-fast) var(--ease-standard)}.row:hover{background-color:var(--_tree-row-hover-bg-color)}.row:active:not([aria-disabled=true],:has(.trailing:active)){background-color:var(--state-layer-pressed)}.row:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.row[aria-disabled=true]{color:var(--text-disabled);cursor:not-allowed}.row.selected{background-color:var(--_tree-row-selected-bg-color);color:var(--_tree-row-selected-text-color)}.caret{flex:none;color:var(--_tree-caret-icon-color)}.caret.expanded{transform:rotate(90deg)}:host(.is-animated) .caret{transition:transform var(--duration-base) var(--ease-standard)}.caret-button{display:grid;flex:none;place-items:center;padding:0;border:0;border-radius:var(--radius-sm);background:transparent;color:inherit;cursor:pointer}.caret-button:disabled{cursor:not-allowed}.caret-button{position:relative}.caret-button:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.caret-button:focus-visible{outline-style:none}.caret-button:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.caret-spacer{flex:none;width:var(--space-4)}.node-icon{flex:none;color:var(--icon-default, var(--text-secondary))}.row.selected .node-icon{color:var(--_tree-row-selected-icon-color)}.label{min-width:0;overflow:clip visible;text-overflow:ellipsis;white-space:nowrap}.custom-label{flex:1;min-width:0}.trailing{display:flex;flex:none;align-items:center;gap:var(--space-1);margin-block:calc(-1 * var(--_tree-row-padding-y));margin-inline-start:auto;cursor:default}.trailing:focus-within{position:relative;z-index:1}\n"] }]
341
351
  }], ctorParameters: () => [], propDecorators: { nodes: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodes", required: false }] }], expandedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedIds", required: false }] }, { type: i0.Output, args: ["expandedIdsChange"] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }], selectedId: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedId", required: false }] }, { type: i0.Output, args: ["selectedIdChange"] }], selectedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIds", required: false }] }, { type: i0.Output, args: ["selectedIdsChange"] }], toggleOn: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleOn", required: false }] }], animate: [{ type: i0.Input, args: [{ isSignal: true, alias: "animate", required: false }] }], nodeSelected: [{ type: i0.Output, args: ["nodeSelected"] }], nodeHover: [{ type: i0.Output, args: ["nodeHover"] }], label: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TreeLabelDirective), { isSignal: true }] }], trailing: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TreeTrailingDirective), { isSignal: true }] }] } });
342
352
 
343
353
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-tree.mjs","sources":["../../../src/lib/components/tree/tree-label.directive.ts","../../../src/lib/components/tree/tree-trailing.directive.ts","../../../src/lib/components/tree/tree.component.ts","../../../src/lib/components/tree/tree.component.html","../../../src/lib/components/tree/ids-group-ltd-ids-design-system-components-tree.ts"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport type { TreeNode } from './tree.types';\n\n/** What a `dsTreeLabel` template is handed: the row's node, its nesting level (`0` for a root\n * node) and whether the row is selected and disabled. */\nexport interface TreeLabelContext {\n readonly $implicit: TreeNode;\n readonly node: TreeNode;\n readonly level: number;\n readonly selected: boolean;\n readonly disabled: boolean;\n}\n\n/**\n * Content drawn in place of a `ds-tree` row's label, for a label of more than one line or one\n * that mixes styles.\n *\n * ```html\n * <ds-tree [nodes]=\"layers\">\n * <ng-template dsTreeLabel let-node>\n * <span class=\"tag\">{{ tags[node.id] }}</span>\n * <span class=\"text\">{{ node.label }}</span>\n * </ng-template>\n * </ds-tree>\n * ```\n *\n * The row grows to the template's height and the label takes the width between the icon and\n * the trailing content, so an element inside it can cut its text with an ellipsis. The text the\n * template renders is the row's accessible name; a template that draws no text needs a\n * visually hidden element with the name in it. A click inside it selects the row as a click on\n * the default label does.\n */\n@Directive({\n selector: 'ng-template[dsTreeLabel]',\n standalone: true,\n})\nexport class TreeLabelDirective {\n readonly template = inject<TemplateRef<TreeLabelContext>>(TemplateRef);\n\n static ngTemplateContextGuard(\n _directive: TreeLabelDirective,\n _context: unknown,\n ): _context is TreeLabelContext {\n return true;\n }\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\nimport type { TreeNode } from './tree.types';\n\n/** What a `dsTreeTrailing` template is handed: the row's node, as `$implicit` and again as `node`. */\nexport interface TreeTrailingContext {\n readonly $implicit: TreeNode;\n readonly node: TreeNode;\n}\n\n/**\n * Content drawn at the end of every `ds-tree` row: a badge, a count, a small icon button.\n *\n * ```html\n * <ds-tree [nodes]=\"layers\">\n * <ng-template dsTreeTrailing let-node>\n * <ds-badge size=\"sm\">{{ node.id }}</ds-badge>\n * </ng-template>\n * </ds-tree>\n * ```\n *\n * A click inside it neither selects nor toggles the row. Its controls are tab stops only on\n * the focused row: Tab from that row reaches them, and the other rows' controls stay out of\n * the tab order.\n */\n@Directive({\n selector: 'ng-template[dsTreeTrailing]',\n standalone: true,\n})\nexport class TreeTrailingDirective {\n readonly template = inject<TemplateRef<TreeTrailingContext>>(TemplateRef);\n\n static ngTemplateContextGuard(\n _directive: TreeTrailingDirective,\n _context: unknown,\n ): _context is TreeTrailingContext {\n return true;\n }\n}\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n afterEveryRender,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport {\n DS_INTL,\n DS_INTL_DEFAULTS,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { TreeLabelDirective } from './tree-label.directive';\nimport { TreeTrailingDirective } from './tree-trailing.directive';\nimport type { TreeNode, TreeSelection, TreeToggleOn } from './tree.types';\n\ninterface VisibleNode {\n node: TreeNode;\n level: number;\n hasChildren: boolean;\n expanded: boolean;\n}\n\nconst FOCUSABLE =\n 'a[href], button, input, select, textarea, [tabindex]:not([tabindex=\"-1\"])';\nconst PARKED_TABINDEX = 'data-ds-tree-tabindex';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-tree',\n standalone: true,\n imports: [IconComponent, NgTemplateOutlet],\n templateUrl: './tree.component.html',\n styleUrl: './tree.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'tree',\n '[attr.aria-multiselectable]': \"multiple() ? 'true' : null\",\n '[class.is-animated]': 'animate()',\n '(keydown)': 'onKeydown($event)',\n '(pointerleave)': 'hover(null)',\n },\n})\nexport class TreeComponent {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly intl = inject(DS_INTL);\n\n /** Root-level nodes; nest via `children`. */\n readonly nodes = input<readonly TreeNode[]>([]);\n /** Ids of the expanded nodes. */\n readonly expandedIds = model<Set<string>>(new Set());\n /** `'multiple'` reads and writes `selectedIds`; `'single'` reads and writes `selectedId`. */\n readonly selection = input<TreeSelection>('single');\n /** Id of the selected node, in `'single'` selection. */\n readonly selectedId = model<string | null>(null);\n /** Ids of the selected nodes, in `'multiple'` selection. */\n readonly selectedIds = model<string[]>([]);\n /** What expands and collapses a parent. `'row'`: activating the row (click, Enter, Space) selects\n * it and toggles it. `'caret'`: activating the row only selects it, and the chevron is a button of\n * its own that toggles. `'doubleClick'`: a click selects, a double click toggles. In every mode\n * ArrowRight expands and ArrowLeft collapses the focused row. */\n readonly toggleOn = input<TreeToggleOn>('row');\n /** Rows slide open and shut and the chevron turns when a parent expands or collapses. Off under\n * `prefers-reduced-motion: reduce`. */\n readonly animate = input(true, { transform: booleanAttribute });\n /** Fires with the node when a row is selected (click or Enter/Space), not when one is deselected. */\n readonly nodeSelected = output<TreeNode>();\n /** Fires with the node under the pointer or newly focused, and `null` when the pointer leaves the tree. */\n readonly nodeHover = output<TreeNode | null>();\n\n protected readonly label = contentChild(TreeLabelDirective);\n protected readonly trailing = contentChild(TreeTrailingDirective);\n protected readonly idPrefix = `ds-tree-${++nextId}`;\n\n private readonly activeId = signal<string | null>(null);\n private hoveredId: string | null = null;\n // The rows of the first render are not revealed by a toggle, so they appear without motion.\n private readonly rendered = signal(false);\n\n protected readonly motion = computed(() => this.animate() && this.rendered());\n protected readonly multiple = computed(() => this.selection() === 'multiple');\n protected readonly labels = computed(() => ({\n ...DS_INTL_DEFAULTS.tree,\n ...this.intl().tree,\n }));\n\n protected readonly visibleNodes = computed<VisibleNode[]>(() => {\n const out: VisibleNode[] = [];\n const walk = (list: readonly TreeNode[], level: number): void => {\n for (const node of list) {\n const hasChildren = !!node.children?.length;\n const expanded = this.isExpanded(node.id);\n out.push({ node, level, hasChildren, expanded });\n if (hasChildren && expanded) {\n walk(node.children ?? [], level + 1);\n }\n }\n };\n walk(this.nodes(), 0);\n\n return out;\n });\n\n protected readonly effectiveActiveId = computed(\n () => this.activeId() ?? this.visibleNodes()[0]?.node.id ?? null,\n );\n\n constructor() {\n // Content inside a trailing template can change without a signal of the tree changing,\n // so its tab stops are re-parked after every render.\n afterEveryRender({ write: () => this.parkTrailingTabStops() });\n afterNextRender(() => this.rendered.set(true));\n }\n\n protected isExpanded(id: string): boolean {\n return this.expandedIds().has(id);\n }\n\n protected isSelected(id: string): boolean {\n return this.multiple()\n ? this.selectedIds().includes(id)\n : this.selectedId() === id;\n }\n\n protected isActive(id: string): boolean {\n return this.effectiveActiveId() === id;\n }\n\n protected onRowClick(entry: VisibleNode, event: MouseEvent): void {\n // The second click of a double click belongs to the toggle, not to a second selection.\n if (\n this.fromTrailing(event) ||\n (this.toggleOn() === 'doubleClick' && event.detail > 1)\n ) {\n return;\n }\n this.activate(entry, event.shiftKey || event.ctrlKey || event.metaKey);\n }\n\n protected onRowDoubleClick(entry: VisibleNode, event: MouseEvent): void {\n if (\n this.toggleOn() !== 'doubleClick' ||\n this.fromTrailing(event) ||\n event.shiftKey ||\n event.ctrlKey ||\n event.metaKey\n ) {\n return;\n }\n this.toggle(entry.node);\n }\n\n protected onCaretClick(entry: VisibleNode, event: MouseEvent): void {\n event.stopPropagation();\n if (entry.node.disabled) {\n return;\n }\n this.focusNode(entry.node.id);\n this.toggle(entry.node);\n }\n\n protected onRowFocus(entry: VisibleNode): void {\n this.activeId.set(entry.node.id);\n this.hover(entry.node);\n }\n\n protected hover(node: TreeNode | null): void {\n const id = node?.id ?? null;\n if (id === this.hoveredId) {\n return;\n }\n this.hoveredId = id;\n this.nodeHover.emit(node);\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.fromTrailing(event)) {\n return;\n }\n const visible = this.visibleNodes();\n const index = visible.findIndex(\n (entry) => entry.node.id === this.effectiveActiveId(),\n );\n if (index < 0) {\n return;\n }\n const current = visible[index];\n switch (event.key) {\n case 'ArrowDown':\n this.moveActive(index + 1);\n break;\n case 'ArrowUp':\n this.moveActive(index - 1);\n break;\n case 'Home':\n this.moveActive(0);\n break;\n case 'End':\n this.moveActive(visible.length - 1);\n break;\n case 'ArrowRight':\n if (current.hasChildren && !current.expanded) {\n this.toggle(current.node);\n } else if (current.hasChildren) {\n this.moveActive(index + 1);\n }\n break;\n case 'ArrowLeft':\n if (current.hasChildren && current.expanded) {\n this.toggle(current.node);\n } else {\n this.moveToParent(visible, index);\n }\n break;\n case 'Enter':\n case ' ':\n if (!event.repeat) {\n this.activate(\n current,\n event.shiftKey || event.ctrlKey || event.metaKey,\n );\n }\n break;\n default:\n return;\n }\n event.preventDefault();\n }\n\n // A modified activation in multiple selection only adds or removes the node; every other\n // activation selects the node alone, and toggles a parent when the row is the toggle.\n private activate(entry: VisibleNode, modified: boolean): void {\n const node = entry.node;\n if (node.disabled) {\n return;\n }\n this.activeId.set(node.id);\n if (this.multiple() && modified) {\n const ids = this.selectedIds();\n if (ids.includes(node.id)) {\n this.selectedIds.set(ids.filter((id) => id !== node.id));\n } else {\n this.selectedIds.set([...ids, node.id]);\n this.nodeSelected.emit(node);\n }\n\n return;\n }\n if (this.multiple()) {\n this.selectedIds.set([node.id]);\n } else {\n this.selectedId.set(node.id);\n }\n this.nodeSelected.emit(node);\n if (entry.hasChildren && this.toggleOn() === 'row') {\n this.toggle(node);\n }\n }\n\n private toggle(node: TreeNode): void {\n if (node.disabled || !node.children?.length) {\n return;\n }\n const next = new Set(this.expandedIds());\n if (next.has(node.id)) {\n next.delete(node.id);\n } else {\n next.add(node.id);\n }\n this.expandedIds.set(next);\n }\n\n private moveActive(targetIndex: number): void {\n const visible = this.visibleNodes();\n if (targetIndex < 0 || targetIndex >= visible.length) {\n return;\n }\n this.focusNode(visible[targetIndex].node.id);\n }\n\n private moveToParent(visible: VisibleNode[], index: number): void {\n const level = visible[index].level;\n for (let i = index - 1; i >= 0; i--) {\n if (visible[i].level < level) {\n this.focusNode(visible[i].node.id);\n\n return;\n }\n }\n }\n\n private focusNode(id: string): void {\n this.activeId.set(id);\n this.host.nativeElement\n .querySelector<HTMLElement>(\n `.row-shell:not(.is-leaving) > [data-node-id=\"${CSS.escape(id)}\"]`,\n )\n ?.focus();\n }\n\n private fromTrailing(event: Event): boolean {\n return (\n event.target instanceof Element && !!event.target.closest('.trailing')\n );\n }\n\n // The tree keeps one tab stop: controls in a trailing template are tabbable on the active\n // row only, and get their own tabindex back when their row becomes active.\n private parkTrailingTabStops(): void {\n const activeId = this.effectiveActiveId();\n for (const area of this.host.nativeElement.querySelectorAll('.trailing')) {\n const onActiveRow =\n area.closest('[data-node-id]')?.getAttribute('data-node-id') ===\n activeId;\n const controls = area.querySelectorAll<HTMLElement>(\n onActiveRow ? `[${PARKED_TABINDEX}]` : FOCUSABLE,\n );\n for (const control of controls) {\n if (onActiveRow) {\n const own = control.getAttribute(PARKED_TABINDEX);\n control.removeAttribute(PARKED_TABINDEX);\n if (own) {\n control.setAttribute('tabindex', own);\n } else {\n control.removeAttribute('tabindex');\n }\n } else if (!control.hasAttribute(PARKED_TABINDEX)) {\n control.setAttribute(\n PARKED_TABINDEX,\n control.getAttribute('tabindex') ?? '',\n );\n control.setAttribute('tabindex', '-1');\n }\n }\n }\n }\n}\n","@for (entry of visibleNodes(); track entry.node.id; let index = $index) {\n <div\n class=\"row-shell\"\n role=\"none\"\n [animate.enter]=\"motion() ? 'is-entering' : ''\"\n [animate.leave]=\"motion() ? 'is-leaving' : ''\">\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events -- Enter and Space reach the host keydown handler, which activates the focused row -->\n <div\n class=\"row\"\n role=\"treeitem\"\n [attr.data-node-id]=\"entry.node.id\"\n [attr.aria-level]=\"entry.level + 1\"\n [attr.aria-expanded]=\"entry.hasChildren ? entry.expanded : null\"\n [attr.aria-selected]=\"isSelected(entry.node.id)\"\n [attr.aria-disabled]=\"entry.node.disabled ? 'true' : null\"\n [attr.aria-labelledby]=\"idPrefix + '-' + index\"\n [attr.aria-describedby]=\"\n trailing() ? idPrefix + '-' + index + '-trailing' : null\n \"\n [attr.tabindex]=\"isActive(entry.node.id) ? 0 : -1\"\n [class.selected]=\"isSelected(entry.node.id)\"\n [style.--_level]=\"entry.level\"\n (click)=\"onRowClick(entry, $event)\"\n (dblclick)=\"onRowDoubleClick(entry, $event)\"\n (focus)=\"onRowFocus(entry)\"\n (pointerenter)=\"hover(entry.node)\">\n @if (entry.hasChildren && toggleOn() === 'caret') {\n <!-- The row keeps the focus and the tree its one tab stop: ArrowRight and ArrowLeft on the row are the keyboard toggle. -->\n <button\n type=\"button\"\n class=\"caret-button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"\n entry.expanded\n ? labels().collapse(entry.node.label)\n : labels().expand(entry.node.label)\n \"\n [disabled]=\"entry.node.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onCaretClick(entry, $event)\">\n <ds-icon\n class=\"caret\"\n name=\"chevronRight\"\n [class.expanded]=\"entry.expanded\"\n [size]=\"16\" />\n </button>\n } @else if (entry.hasChildren) {\n <ds-icon\n class=\"caret\"\n name=\"chevronRight\"\n [class.expanded]=\"entry.expanded\"\n [size]=\"16\" />\n } @else if (!entry.node.icon) {\n <span class=\"caret-spacer\"></span>\n }\n\n @if (entry.node.icon; as icon) {\n <ds-icon\n class=\"node-icon\"\n [name]=\"icon\"\n [size]=\"16\" />\n }\n\n @if (label(); as label) {\n <span\n class=\"custom-label\"\n [id]=\"idPrefix + '-' + index\">\n <ng-container\n *ngTemplateOutlet=\"\n label.template;\n context: {\n $implicit: entry.node,\n node: entry.node,\n level: entry.level,\n selected: isSelected(entry.node.id),\n disabled: !!entry.node.disabled,\n }\n \" />\n </span>\n } @else {\n <span\n class=\"label\"\n [id]=\"idPrefix + '-' + index\">\n {{ entry.node.label }}\n </span>\n }\n\n @if (trailing(); as trailing) {\n <span\n class=\"trailing\"\n [id]=\"idPrefix + '-' + index + '-trailing'\">\n <ng-container\n *ngTemplateOutlet=\"\n trailing.template;\n context: { $implicit: entry.node, node: entry.node }\n \" />\n </span>\n }\n </div>\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mapp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AAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,SAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,cAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,WAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,kBAAkB,0FACf,qBAAqB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEjFlE;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-tree.mjs","sources":["../../../src/lib/components/tree/tree-label.directive.ts","../../../src/lib/components/tree/tree-trailing.directive.ts","../../../src/lib/components/tree/tree.component.ts","../../../src/lib/components/tree/tree.component.html","../../../src/lib/components/tree/ids-group-ltd-ids-design-system-components-tree.ts"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport type { TreeNode } from './tree.types';\n\n/** What a `dsTreeLabel` template is handed: the row's node, its nesting level (`0` for a root\n * node) and whether the row is selected and disabled. */\nexport interface TreeLabelContext {\n readonly $implicit: TreeNode;\n readonly node: TreeNode;\n readonly level: number;\n readonly selected: boolean;\n readonly disabled: boolean;\n}\n\n/**\n * Content drawn in place of a `ds-tree` row's label, for a label of more than one line or one\n * that mixes styles.\n *\n * ```html\n * <ds-tree [nodes]=\"layers\">\n * <ng-template dsTreeLabel let-node>\n * <span class=\"tag\">{{ tags[node.id] }}</span>\n * <span class=\"text\">{{ node.label }}</span>\n * </ng-template>\n * </ds-tree>\n * ```\n *\n * The row grows to the template's height and the label takes the width between the icon and\n * the trailing content, so an element inside it can cut its text with an ellipsis. The text the\n * template renders is the row's accessible name; a template that draws no text needs a\n * visually hidden element with the name in it. A click inside it selects the row as a click on\n * the default label does.\n */\n@Directive({\n selector: 'ng-template[dsTreeLabel]',\n standalone: true,\n})\nexport class TreeLabelDirective {\n readonly template = inject<TemplateRef<TreeLabelContext>>(TemplateRef);\n\n static ngTemplateContextGuard(\n _directive: TreeLabelDirective,\n _context: unknown,\n ): _context is TreeLabelContext {\n return true;\n }\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\nimport type { TreeNode } from './tree.types';\n\n/** What a `dsTreeTrailing` template is handed: the row's node, as `$implicit` and again as `node`,\n * and whether the row is expanded (`false` for a row without children). */\nexport interface TreeTrailingContext {\n readonly $implicit: TreeNode;\n readonly node: TreeNode;\n readonly expanded: boolean;\n}\n\n/**\n * Content drawn at the end of every `ds-tree` row: a badge, a count, a small icon button.\n *\n * ```html\n * <ds-tree [nodes]=\"layers\">\n * <ng-template dsTreeTrailing let-node>\n * <ds-badge size=\"sm\">{{ node.id }}</ds-badge>\n * </ng-template>\n * </ds-tree>\n * ```\n *\n * `let-expanded=\"expanded\"` reads whether the row is open, to show a folder's count only while it\n * is collapsed. A click inside it neither selects nor toggles the row. Its controls are tab stops only on\n * the focused row: Tab from that row reaches them, and the other rows' controls stay out of\n * the tab order.\n */\n@Directive({\n selector: 'ng-template[dsTreeTrailing]',\n standalone: true,\n})\nexport class TreeTrailingDirective {\n readonly template = inject<TemplateRef<TreeTrailingContext>>(TemplateRef);\n\n static ngTemplateContextGuard(\n _directive: TreeTrailingDirective,\n _context: unknown,\n ): _context is TreeTrailingContext {\n return true;\n }\n}\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n afterEveryRender,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport {\n DS_INTL,\n DS_INTL_DEFAULTS,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { TreeLabelDirective } from './tree-label.directive';\nimport { TreeTrailingDirective } from './tree-trailing.directive';\nimport type { TreeNode, TreeSelection, TreeToggleOn } from './tree.types';\n\ninterface VisibleNode {\n node: TreeNode;\n level: number;\n hasChildren: boolean;\n expanded: boolean;\n}\n\nconst FOCUSABLE =\n 'a[href], button, input, select, textarea, [tabindex]:not([tabindex=\"-1\"])';\nconst PARKED_TABINDEX = 'data-ds-tree-tabindex';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-tree',\n standalone: true,\n imports: [IconComponent, NgTemplateOutlet],\n templateUrl: './tree.component.html',\n styleUrl: './tree.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'tree',\n '[attr.aria-multiselectable]': \"multiple() ? 'true' : null\",\n '[class.is-animated]': 'motion()',\n '(keydown)': 'onKeydown($event)',\n '(pointerleave)': 'hover(null)',\n },\n})\nexport class TreeComponent {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly intl = inject(DS_INTL);\n\n /** Root-level nodes; nest via `children`. */\n readonly nodes = input<readonly TreeNode[]>([]);\n /** Ids of the expanded nodes. */\n readonly expandedIds = model<Set<string>>(new Set());\n /** `'multiple'` reads and writes `selectedIds`; `'single'` reads and writes `selectedId`. */\n readonly selection = input<TreeSelection>('single');\n /** Id of the selected node, in `'single'` selection. */\n readonly selectedId = model<string | null>(null);\n /** Ids of the selected nodes, in `'multiple'` selection. */\n readonly selectedIds = model<string[]>([]);\n /** What expands and collapses a parent. `'row'`: activating the row (click, Enter, Space) selects\n * it and toggles it. `'caret'`: activating the row only selects it, and the chevron is a button of\n * its own that toggles. `'doubleClick'`: a click selects, a double click toggles. In every mode\n * ArrowRight expands and ArrowLeft collapses the focused row. */\n readonly toggleOn = input<TreeToggleOn>('row');\n /** Rows slide open and shut and the chevron turns when the user expands or collapses a parent.\n * Rows of the first render, and rows shown or hidden by `nodes` or `expandedIds` set from outside,\n * appear and go at once, and their chevron turns at once. Off under `prefers-reduced-motion: reduce`. */\n readonly animate = input(true, { transform: booleanAttribute });\n /** Fires with the node when a row is selected (click or Enter/Space), not when one is deselected. */\n readonly nodeSelected = output<TreeNode>();\n /** Fires with the node under the pointer or newly focused, and `null` when the pointer leaves the tree. */\n readonly nodeHover = output<TreeNode | null>();\n\n protected readonly label = contentChild(TreeLabelDirective);\n protected readonly trailing = contentChild(TreeTrailingDirective);\n protected readonly idPrefix = `ds-tree-${++nextId}`;\n\n private readonly activeId = signal<string | null>(null);\n private hoveredId: string | null = null;\n // Rows fold and carets turn only while the tree shows the state the user's own toggle made: the\n // first render, and nodes or expanded ids set from outside, show and remove rows without motion.\n // Dropping the motion a render after the toggle would remove the caret's transition before the\n // browser ever styles the turn.\n private readonly toggled = signal<{\n expandedIds: Set<string>;\n nodes: readonly TreeNode[];\n } | null>(null);\n\n protected readonly motion = computed(() => {\n const toggled = this.toggled();\n\n return (\n this.animate() &&\n toggled?.expandedIds === this.expandedIds() &&\n toggled.nodes === this.nodes()\n );\n });\n protected readonly multiple = computed(() => this.selection() === 'multiple');\n protected readonly labels = computed(() => ({\n ...DS_INTL_DEFAULTS.tree,\n ...this.intl().tree,\n }));\n\n protected readonly visibleNodes = computed<VisibleNode[]>(() => {\n const out: VisibleNode[] = [];\n const walk = (list: readonly TreeNode[], level: number): void => {\n for (const node of list) {\n const hasChildren = !!node.children?.length;\n const expanded = this.isExpanded(node.id);\n out.push({ node, level, hasChildren, expanded });\n if (hasChildren && expanded) {\n walk(node.children ?? [], level + 1);\n }\n }\n };\n walk(this.nodes(), 0);\n\n return out;\n });\n\n protected readonly effectiveActiveId = computed(\n () => this.activeId() ?? this.visibleNodes()[0]?.node.id ?? null,\n );\n\n constructor() {\n // Content inside a trailing template can change without a signal of the tree changing,\n // so its tab stops are re-parked after every render.\n afterEveryRender({ write: () => this.parkTrailingTabStops() });\n }\n\n protected isExpanded(id: string): boolean {\n return this.expandedIds().has(id);\n }\n\n protected isSelected(id: string): boolean {\n return this.multiple()\n ? this.selectedIds().includes(id)\n : this.selectedId() === id;\n }\n\n protected isActive(id: string): boolean {\n return this.effectiveActiveId() === id;\n }\n\n protected onRowClick(entry: VisibleNode, event: MouseEvent): void {\n // The second click of a double click belongs to the toggle, not to a second selection.\n if (\n this.fromTrailing(event) ||\n (this.toggleOn() === 'doubleClick' && event.detail > 1)\n ) {\n return;\n }\n this.activate(entry, event.shiftKey || event.ctrlKey || event.metaKey);\n }\n\n protected onRowDoubleClick(entry: VisibleNode, event: MouseEvent): void {\n if (\n this.toggleOn() !== 'doubleClick' ||\n this.fromTrailing(event) ||\n event.shiftKey ||\n event.ctrlKey ||\n event.metaKey\n ) {\n return;\n }\n this.toggle(entry.node);\n }\n\n protected onCaretClick(entry: VisibleNode, event: MouseEvent): void {\n event.stopPropagation();\n if (entry.node.disabled) {\n return;\n }\n this.focusNode(entry.node.id);\n this.toggle(entry.node);\n }\n\n protected onRowFocus(entry: VisibleNode): void {\n this.activeId.set(entry.node.id);\n this.hover(entry.node);\n }\n\n protected hover(node: TreeNode | null): void {\n const id = node?.id ?? null;\n if (id === this.hoveredId) {\n return;\n }\n this.hoveredId = id;\n this.nodeHover.emit(node);\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.fromTrailing(event)) {\n return;\n }\n const visible = this.visibleNodes();\n const index = visible.findIndex(\n (entry) => entry.node.id === this.effectiveActiveId(),\n );\n if (index < 0) {\n return;\n }\n const current = visible[index];\n switch (event.key) {\n case 'ArrowDown':\n this.moveActive(index + 1);\n break;\n case 'ArrowUp':\n this.moveActive(index - 1);\n break;\n case 'Home':\n this.moveActive(0);\n break;\n case 'End':\n this.moveActive(visible.length - 1);\n break;\n case 'ArrowRight':\n if (current.hasChildren && !current.expanded) {\n this.toggle(current.node);\n } else if (current.hasChildren) {\n this.moveActive(index + 1);\n }\n break;\n case 'ArrowLeft':\n if (current.hasChildren && current.expanded) {\n this.toggle(current.node);\n } else {\n this.moveToParent(visible, index);\n }\n break;\n case 'Enter':\n case ' ':\n if (!event.repeat) {\n this.activate(\n current,\n event.shiftKey || event.ctrlKey || event.metaKey,\n );\n }\n break;\n default:\n return;\n }\n event.preventDefault();\n }\n\n // A modified activation in multiple selection only adds or removes the node; every other\n // activation selects the node alone, and toggles a parent when the row is the toggle.\n private activate(entry: VisibleNode, modified: boolean): void {\n const node = entry.node;\n if (node.disabled) {\n return;\n }\n this.activeId.set(node.id);\n if (this.multiple() && modified) {\n const ids = this.selectedIds();\n if (ids.includes(node.id)) {\n this.selectedIds.set(ids.filter((id) => id !== node.id));\n } else {\n this.selectedIds.set([...ids, node.id]);\n this.nodeSelected.emit(node);\n }\n\n return;\n }\n if (this.multiple()) {\n this.selectedIds.set([node.id]);\n } else {\n this.selectedId.set(node.id);\n }\n this.nodeSelected.emit(node);\n if (entry.hasChildren && this.toggleOn() === 'row') {\n this.toggle(node);\n }\n }\n\n private toggle(node: TreeNode): void {\n if (node.disabled || !node.children?.length) {\n return;\n }\n const next = new Set(this.expandedIds());\n if (next.has(node.id)) {\n next.delete(node.id);\n } else {\n next.add(node.id);\n }\n this.toggled.set({ expandedIds: next, nodes: this.nodes() });\n this.expandedIds.set(next);\n }\n\n private moveActive(targetIndex: number): void {\n const visible = this.visibleNodes();\n if (targetIndex < 0 || targetIndex >= visible.length) {\n return;\n }\n this.focusNode(visible[targetIndex].node.id);\n }\n\n private moveToParent(visible: VisibleNode[], index: number): void {\n const level = visible[index].level;\n for (let i = index - 1; i >= 0; i--) {\n if (visible[i].level < level) {\n this.focusNode(visible[i].node.id);\n\n return;\n }\n }\n }\n\n private focusNode(id: string): void {\n this.activeId.set(id);\n this.host.nativeElement\n .querySelector<HTMLElement>(\n `.row-shell:not(.is-leaving) > [data-node-id=\"${CSS.escape(id)}\"]`,\n )\n ?.focus();\n }\n\n private fromTrailing(event: Event): boolean {\n return (\n event.target instanceof Element && !!event.target.closest('.trailing')\n );\n }\n\n // The tree keeps one tab stop: controls in a trailing template are tabbable on the active\n // row only, and get their own tabindex back when their row becomes active.\n private parkTrailingTabStops(): void {\n const activeId = this.effectiveActiveId();\n for (const area of this.host.nativeElement.querySelectorAll('.trailing')) {\n const onActiveRow =\n area.closest('[data-node-id]')?.getAttribute('data-node-id') ===\n activeId;\n const controls = area.querySelectorAll<HTMLElement>(\n onActiveRow ? `[${PARKED_TABINDEX}]` : FOCUSABLE,\n );\n for (const control of controls) {\n if (onActiveRow) {\n const own = control.getAttribute(PARKED_TABINDEX);\n control.removeAttribute(PARKED_TABINDEX);\n if (own) {\n control.setAttribute('tabindex', own);\n } else {\n control.removeAttribute('tabindex');\n }\n } else if (!control.hasAttribute(PARKED_TABINDEX)) {\n control.setAttribute(\n PARKED_TABINDEX,\n control.getAttribute('tabindex') ?? '',\n );\n control.setAttribute('tabindex', '-1');\n }\n }\n }\n }\n}\n","@for (entry of visibleNodes(); track entry.node.id; let index = $index) {\n <div\n class=\"row-shell\"\n role=\"none\"\n [animate.enter]=\"motion() ? 'is-entering' : ''\"\n [animate.leave]=\"motion() ? 'is-leaving' : ''\">\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events -- Enter and Space reach the host keydown handler, which activates the focused row -->\n <div\n class=\"row\"\n role=\"treeitem\"\n [attr.data-node-id]=\"entry.node.id\"\n [attr.aria-level]=\"entry.level + 1\"\n [attr.aria-expanded]=\"entry.hasChildren ? entry.expanded : null\"\n [attr.aria-selected]=\"isSelected(entry.node.id)\"\n [attr.aria-disabled]=\"entry.node.disabled ? 'true' : null\"\n [attr.aria-labelledby]=\"idPrefix + '-' + index\"\n [attr.aria-describedby]=\"\n trailing() ? idPrefix + '-' + index + '-trailing' : null\n \"\n [attr.tabindex]=\"isActive(entry.node.id) ? 0 : -1\"\n [class.selected]=\"isSelected(entry.node.id)\"\n [style.--_level]=\"entry.level\"\n (click)=\"onRowClick(entry, $event)\"\n (dblclick)=\"onRowDoubleClick(entry, $event)\"\n (focus)=\"onRowFocus(entry)\"\n (pointerenter)=\"hover(entry.node)\">\n @if (entry.hasChildren && toggleOn() === 'caret') {\n <!-- The row keeps the focus and the tree its one tab stop: ArrowRight and ArrowLeft on the row are the keyboard toggle. -->\n <button\n type=\"button\"\n class=\"caret-button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"\n entry.expanded\n ? labels().collapse(entry.node.label)\n : labels().expand(entry.node.label)\n \"\n [disabled]=\"entry.node.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onCaretClick(entry, $event)\">\n <ds-icon\n class=\"caret\"\n name=\"chevronRight\"\n [class.expanded]=\"entry.expanded\"\n [size]=\"16\" />\n </button>\n } @else if (entry.hasChildren) {\n <ds-icon\n class=\"caret\"\n name=\"chevronRight\"\n [class.expanded]=\"entry.expanded\"\n [size]=\"16\" />\n } @else if (!entry.node.icon) {\n <span class=\"caret-spacer\"></span>\n }\n\n @if (entry.node.icon; as icon) {\n <ds-icon\n class=\"node-icon\"\n [name]=\"icon\"\n [size]=\"16\" />\n }\n\n @if (label(); as label) {\n <span\n class=\"custom-label\"\n [id]=\"idPrefix + '-' + index\">\n <ng-container\n *ngTemplateOutlet=\"\n label.template;\n context: {\n $implicit: entry.node,\n node: entry.node,\n level: entry.level,\n selected: isSelected(entry.node.id),\n disabled: !!entry.node.disabled,\n }\n \" />\n </span>\n } @else {\n <span\n class=\"label\"\n [id]=\"idPrefix + '-' + index\">\n {{ entry.node.label }}\n </span>\n }\n\n @if (trailing(); as trailing) {\n <span\n class=\"trailing\"\n [id]=\"idPrefix + '-' + index + '-trailing'\">\n <ng-container\n *ngTemplateOutlet=\"\n trailing.template;\n context: {\n $implicit: entry.node,\n node: entry.node,\n expanded: entry.hasChildren && entry.expanded,\n }\n \" />\n </span>\n }\n </div>\n </div>\n}\n","/**\n * Generated bundle index. Do not ed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