@ids-group-ltd/ids-design-system 0.14.3 → 0.14.5

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 (335) hide show
  1. package/CHANGELOG.md +279 -0
  2. package/components.md +16 -16
  3. package/docs/agent/INDEX.md +1 -1
  4. package/docs/agent/charts/column-series-component.md +1 -1
  5. package/docs/agent/charts/ds-bar-chart.md +1 -1
  6. package/docs/agent/charts/ds-chart.md +1 -1
  7. package/docs/agent/charts/ds-column-chart.md +1 -1
  8. package/docs/agent/charts/ds-funnel-chart.md +1 -1
  9. package/docs/agent/charts/ds-heatmap-chart.md +1 -1
  10. package/docs/agent/charts/ds-line-chart.md +1 -1
  11. package/docs/agent/charts/ds-pie-chart.md +3 -3
  12. package/docs/agent/charts/ds-scatter-chart.md +1 -1
  13. package/docs/agent/charts/ds-waterfall-chart.md +1 -1
  14. package/docs/agent/charts/line-series-component.md +1 -1
  15. package/docs/agent/navigation/ds-breadcrumbs.md +1 -1
  16. package/docs/agent/overlays/ds-tooltip.md +2 -2
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -6
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -3
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +58 -163
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +21 -34
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +34 -105
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +3 -3
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +22 -48
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +7 -7
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +6 -10
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +28 -131
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +11 -29
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +10 -28
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +16 -13
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +3 -3
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +42 -69
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +15 -20
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +6 -7
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +3 -10
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +12 -28
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +109 -105
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +190 -439
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +8 -12
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +8 -22
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +28 -124
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +45 -116
  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-description-list.mjs +3 -3
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +4 -6
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -16
  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 +7 -8
  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-empty-state.mjs +3 -3
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +16 -45
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +10 -14
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +19 -41
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +48 -164
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +29 -84
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +17 -25
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +21 -41
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +3 -6
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +55 -169
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +7 -7
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +6 -11
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +19 -36
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +30 -57
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +37 -103
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +5 -6
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +9 -15
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +8 -12
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +9 -24
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +32 -121
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +14 -24
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +15 -24
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +9 -16
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -1
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +64 -96
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +16 -41
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +8 -11
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +18 -52
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -7
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +30 -49
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +8 -12
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -7
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +163 -0
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -0
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +3 -3
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +8 -9
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +5 -20
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +4 -4
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +3 -3
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +5 -9
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +11 -23
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +7 -16
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +9 -43
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +167 -353
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +33 -86
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +7 -7
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +23 -47
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +21 -49
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +35 -63
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -3
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +38 -50
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +3 -5
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +3 -3
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +28 -82
  186. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  187. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +325 -571
  188. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  189. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +51 -85
  190. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  191. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +4 -21
  192. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  193. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +4 -13
  194. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
  195. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +1 -2
  196. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -1
  197. package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -0
  198. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  199. package/migrations/0.14.4.json +231 -0
  200. package/migrations/0.14.5.json +311 -0
  201. package/package.json +9 -1
  202. package/schematics/check-overrides/surface.json +30 -2
  203. package/styles/_breakpoints.scss +6 -23
  204. package/styles/_chart-data-table.scss +3 -11
  205. package/styles/_chart-frame.scss +14 -65
  206. package/styles/_chart-interactive.scss +8 -36
  207. package/styles/_chart-motion.scss +11 -39
  208. package/styles/_check-box.scss +7 -26
  209. package/styles/_check-mark.scss +7 -23
  210. package/styles/_chip-row.scss +3 -14
  211. package/styles/_clear-button.scss +2 -7
  212. package/styles/_control-label.scss +2 -13
  213. package/styles/_control-line.scss +2 -6
  214. package/styles/_dropdown-overlay.scss +8 -33
  215. package/styles/_ds-color.scss +9 -28
  216. package/styles/_field-box.scss +4 -16
  217. package/styles/_field-group-segment.scss +6 -6
  218. package/styles/_field-label.scss +3 -14
  219. package/styles/_field-state.scss +5 -10
  220. package/styles/_focus.scss +20 -60
  221. package/styles/_icon-base.scss +0 -2
  222. package/styles/_layout-utils.scss +0 -3
  223. package/styles/_link.scss +4 -18
  224. package/styles/_overlay-motion.scss +15 -38
  225. package/styles/_page-grid.scss +4 -29
  226. package/styles/_press.scss +5 -18
  227. package/styles/_reset.scss +1 -14
  228. package/styles/_scrollbar.scss +0 -2
  229. package/styles/_skeleton-shimmer.scss +3 -14
  230. package/styles/_status.scss +5 -13
  231. package/styles/_surface-motion.scss +7 -34
  232. package/styles/_table-controls.scss +3 -6
  233. package/styles/_text-clip.scss +2 -6
  234. package/styles/_theme-activation.scss +7 -20
  235. package/styles/_toast-overlay.scss +8 -3
  236. package/styles/_tokens-charts.scss +31 -90
  237. package/styles/_tokens.scss +115 -154
  238. package/styles/_typography.scss +6 -13
  239. package/styles/_visually-hidden.scss +2 -3
  240. package/styles/ds.scss +2 -10
  241. package/themes/_base-palette.scss +12 -35
  242. package/themes/_semantic.scss +29 -98
  243. package/themes/dark/_palette.scss +15 -29
  244. package/themes/dark/_theme.scss +14 -32
  245. package/themes/light/_palette.scss +2 -17
  246. package/themes/light/_theme.scss +1 -7
  247. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +2 -6
  248. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +2 -3
  249. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +45 -119
  250. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +19 -32
  251. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +29 -92
  252. package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +1 -1
  253. package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +23 -46
  254. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +5 -5
  255. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -8
  256. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +27 -136
  257. package/types/ids-group-ltd-ids-design-system-components-bar.d.ts +13 -32
  258. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +6 -12
  259. package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +6 -9
  260. package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +1 -1
  261. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +36 -55
  262. package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +13 -18
  263. package/types/ids-group-ltd-ids-design-system-components-card.d.ts +2 -2
  264. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +5 -11
  265. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +10 -26
  266. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +31 -49
  267. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +165 -382
  268. package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +6 -10
  269. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +5 -14
  270. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +29 -125
  271. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +23 -70
  272. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -3
  273. package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +3 -7
  274. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +1 -3
  275. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +6 -8
  276. package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +1 -1
  277. package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +17 -50
  278. package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +8 -12
  279. package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +13 -28
  280. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +25 -113
  281. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +19 -83
  282. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +15 -23
  283. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +18 -37
  284. package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +3 -3
  285. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +54 -163
  286. package/types/ids-group-ltd-ids-design-system-components-list.d.ts +3 -3
  287. package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +4 -9
  288. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +13 -21
  289. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +15 -28
  290. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +27 -83
  291. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +5 -6
  292. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +5 -7
  293. package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +1 -1
  294. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -10
  295. package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +8 -22
  296. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +18 -102
  297. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +7 -11
  298. package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +14 -25
  299. package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +7 -12
  300. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +25 -94
  301. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +12 -33
  302. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +6 -7
  303. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +12 -41
  304. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +8 -15
  305. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +23 -40
  306. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +3 -5
  307. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +4 -4
  308. package/types/ids-group-ltd-ids-design-system-components-sparkline.d.ts +58 -0
  309. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -1
  310. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +6 -7
  311. package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +2 -15
  312. package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +2 -2
  313. package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +4 -6
  314. package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +5 -9
  315. package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +3 -7
  316. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +4 -8
  317. package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +9 -43
  318. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +160 -369
  319. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +21 -49
  320. package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +5 -5
  321. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +17 -34
  322. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +17 -38
  323. package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +2 -2
  324. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +20 -37
  325. package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +2 -3
  326. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +17 -36
  327. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +2 -2
  328. package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +1 -1
  329. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +21 -67
  330. package/types/ids-group-ltd-ids-design-system-components.d.ts +266 -410
  331. package/types/ids-group-ltd-ids-design-system-core.d.ts +134 -259
  332. package/types/ids-group-ltd-ids-design-system-icons.d.ts +2 -24
  333. package/types/ids-group-ltd-ids-design-system-overlay.d.ts +4 -13
  334. package/types/ids-group-ltd-ids-design-system-theme.d.ts +4 -6
  335. package/types/ids-group-ltd-ids-design-system.d.ts +1 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-toggle-button.mjs","sources":["../../../src/lib/components/toggle-button/toggle-button.component.ts","../../../src/lib/components/toggle-button/toggle-button.component.html","../../../src/lib/components/toggle-button/ids-group-ltd-ids-design-system-components-toggle-button.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n model,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\n\n/** A single binary toggle button (pressed / not pressed) with an optional\n * leading icon and a projected label. Distinct from `ds-segmented` (a\n * one-of-many value toggle) — this is a standalone on/off control. */\n@Component({\n selector: 'ds-toggle-button',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './toggle-button.component.html',\n styleUrl: './toggle-button.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ToggleButtonComponent {\n /** Pressed (on/off) state; two-way bound. */\n readonly pressed = model<boolean>(false);\n /** Optional leading icon name. */\n readonly icon = input<string>('');\n /** Disables the toggle. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n protected toggle(): void {\n if (this.disabled()) {\n return;\n }\n this.pressed.update((value) => !value);\n }\n}\n","<button\n type=\"button\"\n class=\"button-toggle\"\n [attr.aria-pressed]=\"pressed()\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\">\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"14\" />\n }\n\n <ng-content></ng-content>\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AASA;;AAEuE;MAS1D,qBAAqB,CAAA;;AAEvB,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;;AAE/B,IAAA,IAAI,GAAG,KAAK,CAAS,EAAE,2EAAC;;IAExB,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IAEvD,MAAM,GAAA;AACd,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE,EAAE;YACnB;QACF;AACA,QAAA,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC;IACxC;wGAbW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,OAAA,EAAA,eAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECpBlC,2RAcA,EAAA,MAAA,EAAA,CAAA,msFAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDCY,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAKZ,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBARjC,SAAS;+BACE,kBAAkB,EAAA,UAAA,EAChB,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,CAAC,EAAA,aAAA,EAGT,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,2RAAA,EAAA,MAAA,EAAA,CAAA,msFAAA,CAAA,EAAA;;;AElB3C;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-toggle-button.mjs","sources":["../../../src/lib/components/toggle-button/toggle-button.component.ts","../../../src/lib/components/toggle-button/toggle-button.component.html","../../../src/lib/components/toggle-button/ids-group-ltd-ids-design-system-components-toggle-button.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n model,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\n\n/** A standalone on/off toggle button with an optional leading icon and a projected label.\n * For a one-of-many choice use `ds-segmented`. */\n@Component({\n selector: 'ds-toggle-button',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './toggle-button.component.html',\n styleUrl: './toggle-button.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ToggleButtonComponent {\n /** Pressed (on/off) state; two-way bound. */\n readonly pressed = model<boolean>(false);\n /** Optional leading icon name. */\n readonly icon = input<string>('');\n /** Disables the toggle. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n protected toggle(): void {\n if (this.disabled()) {\n return;\n }\n this.pressed.update((value) => !value);\n }\n}\n","<button\n type=\"button\"\n class=\"button-toggle\"\n [attr.aria-pressed]=\"pressed()\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\">\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"14\" />\n }\n\n <ng-content></ng-content>\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AASA;AACmD;MAStC,qBAAqB,CAAA;;AAEvB,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;;AAE/B,IAAA,IAAI,GAAG,KAAK,CAAS,EAAE,2EAAC;;IAExB,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IAEvD,MAAM,GAAA;AACd,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE,EAAE;YACnB;QACF;AACA,QAAA,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC;IACxC;wGAbW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,OAAA,EAAA,eAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECnBlC,2RAcA,EAAA,MAAA,EAAA,CAAA,msFAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDAY,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAKZ,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBARjC,SAAS;+BACE,kBAAkB,EAAA,UAAA,EAChB,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,CAAC,EAAA,aAAA,EAGT,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,2RAAA,EAAA,MAAA,EAAA,CAAA,msFAAA,CAAA,EAAA;;;AEjB3C;;AAEG;;;;"}
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { input, ViewEncapsulation, Component, inject, ElementRef, booleanAttribute, afterNextRender, HostListener, Directive } from '@angular/core';
3
3
  import { Overlay } from '@angular/cdk/overlay';
4
4
  import { ComponentPortal } from '@angular/cdk/portal';
5
- import { prepareOverlayEnter } from '@ids-group-ltd/ids-design-system/components';
5
+ import { prepareOverlayEnter, overlayPlacementOf } from '@ids-group-ltd/ids-design-system/components';
6
6
  import { isTextClipped } from '@ids-group-ltd/ids-design-system/core';
7
7
 
8
8
  class TooltipPanelComponent {
@@ -13,7 +13,7 @@ class TooltipPanelComponent {
13
13
  /** Element `id`, referenced by the trigger's `aria-describedby`. */
14
14
  panelId = input('', ...(ngDevMode ? [{ debugName: "panelId" }] : /* istanbul ignore next */ []));
15
15
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TooltipPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
16
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: TooltipPanelComponent, isStandalone: true, selector: "ds-tooltip-panel", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: true, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: true, transformFunction: null }, panelId: { classPropertyName: "panelId", publicName: "panelId", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "tooltip" }, properties: { "attr.id": "panelId()", "class.top": "placement() === 'top'", "class.bottom": "placement() === 'bottom'", "class.left": "placement() === 'left'", "class.right": "placement() === 'right'" } }, ngImport: i0, template: `{{ text() }}`, isInline: true, styles: ["@charset \"UTF-8\";:host{--_tooltip-bg-color: var(--ds-tooltip-bg-color, var(--surface-inverted));--_tooltip-text-color: var(--ds-tooltip-text-color, var(--text-inverted));--_tooltip-radius: var(--ds-tooltip-radius, var(--ds-radius-control));--_tooltip-shadow: var(--ds-tooltip-shadow, var(--ds-elevation-overlay));--_tooltip-max-width: var(--ds-tooltip-max-width, var(--tooltip-maxw));--_tooltip-padding: var(--ds-tooltip-padding, var(--space-1-5) var(--space-2-5));display:block;position:relative;background:var(--_tooltip-bg-color);color:var(--_tooltip-text-color);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-base) var(--font-sans);padding:var(--_tooltip-padding);border-radius:var(--_tooltip-radius);max-width:var(--_tooltip-max-width);overflow-wrap:anywhere;z-index:var(--layer-tooltip);box-shadow:var(--_tooltip-shadow)}:host:after{content:\"\";position:absolute;width:var(--space-2);height:var(--space-2);background:var(--_tooltip-bg-color);transform:rotate(45deg)}:host(.bottom):after{top:calc(var(--tooltip-arrow) / -2);left:50%;margin-left:calc(var(--tooltip-arrow) / -2)}:host(.top):after{bottom:calc(var(--tooltip-arrow) / -2);left:50%;margin-left:calc(var(--tooltip-arrow) / -2)}:host(.left):after{right:calc(var(--tooltip-arrow) / -2);top:50%;margin-top:calc(var(--tooltip-arrow) / -2)}:host(.right):after{left:calc(var(--tooltip-arrow) / -2);top:50%;margin-top:calc(var(--tooltip-arrow) / -2)}\n"] });
16
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: TooltipPanelComponent, isStandalone: true, selector: "ds-tooltip-panel", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: true, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: true, transformFunction: null }, panelId: { classPropertyName: "panelId", publicName: "panelId", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "tooltip" }, properties: { "attr.id": "panelId()", "class.top": "placement() === 'top'", "class.bottom": "placement() === 'bottom'", "class.left": "placement() === 'left'", "class.right": "placement() === 'right'" } }, ngImport: i0, template: `{{ text() }}`, isInline: true, styles: [":host{--_tooltip-bg-color: var(--ds-tooltip-bg-color, var(--tooltip-bg-color));--_tooltip-text-color: var(--ds-tooltip-text-color, var(--tooltip-text-color));--_tooltip-border-color: var(--ds-tooltip-border-color, var(--tooltip-border-color));--_tooltip-radius: var(--ds-tooltip-radius, var(--ds-radius-control));--_tooltip-shadow: var(--ds-tooltip-shadow, var(--ds-elevation-overlay));--_tooltip-max-width: var(--ds-tooltip-max-width, var(--tooltip-maxw));--_tooltip-padding: var(--ds-tooltip-padding, var(--space-1-5) var(--space-2-5));display:block;position:relative;background:var(--_tooltip-bg-color);color:var(--_tooltip-text-color);border:var(--border-width-default) solid var(--_tooltip-border-color);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-base) var(--font-sans);padding:var(--_tooltip-padding);border-radius:var(--_tooltip-radius);max-width:var(--_tooltip-max-width);overflow-wrap:anywhere;z-index:var(--layer-tooltip);box-shadow:var(--_tooltip-shadow)}:host:after{content:\"\";position:absolute;width:var(--space-2);height:var(--space-2);background:var(--_tooltip-bg-color);border:0 solid var(--_tooltip-border-color);transform:rotate(45deg)}:host(.bottom):after{top:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));left:50%;margin-left:calc(var(--tooltip-arrow) / -2);border-top-width:var(--border-width-default);border-left-width:var(--border-width-default)}:host(.top):after{bottom:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));left:50%;margin-left:calc(var(--tooltip-arrow) / -2);border-bottom-width:var(--border-width-default);border-right-width:var(--border-width-default)}:host(.left):after{right:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));top:50%;margin-top:calc(var(--tooltip-arrow) / -2);border-top-width:var(--border-width-default);border-right-width:var(--border-width-default)}:host(.right):after{left:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));top:50%;margin-top:calc(var(--tooltip-arrow) / -2);border-bottom-width:var(--border-width-default);border-left-width:var(--border-width-default)}\n"] });
17
17
  }
18
18
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TooltipPanelComponent, decorators: [{
19
19
  type: Component,
@@ -24,10 +24,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
24
24
  '[class.bottom]': "placement() === 'bottom'",
25
25
  '[class.left]': "placement() === 'left'",
26
26
  '[class.right]': "placement() === 'right'",
27
- }, encapsulation: ViewEncapsulation.Emulated, styles: ["@charset \"UTF-8\";:host{--_tooltip-bg-color: var(--ds-tooltip-bg-color, var(--surface-inverted));--_tooltip-text-color: var(--ds-tooltip-text-color, var(--text-inverted));--_tooltip-radius: var(--ds-tooltip-radius, var(--ds-radius-control));--_tooltip-shadow: var(--ds-tooltip-shadow, var(--ds-elevation-overlay));--_tooltip-max-width: var(--ds-tooltip-max-width, var(--tooltip-maxw));--_tooltip-padding: var(--ds-tooltip-padding, var(--space-1-5) var(--space-2-5));display:block;position:relative;background:var(--_tooltip-bg-color);color:var(--_tooltip-text-color);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-base) var(--font-sans);padding:var(--_tooltip-padding);border-radius:var(--_tooltip-radius);max-width:var(--_tooltip-max-width);overflow-wrap:anywhere;z-index:var(--layer-tooltip);box-shadow:var(--_tooltip-shadow)}:host:after{content:\"\";position:absolute;width:var(--space-2);height:var(--space-2);background:var(--_tooltip-bg-color);transform:rotate(45deg)}:host(.bottom):after{top:calc(var(--tooltip-arrow) / -2);left:50%;margin-left:calc(var(--tooltip-arrow) / -2)}:host(.top):after{bottom:calc(var(--tooltip-arrow) / -2);left:50%;margin-left:calc(var(--tooltip-arrow) / -2)}:host(.left):after{right:calc(var(--tooltip-arrow) / -2);top:50%;margin-top:calc(var(--tooltip-arrow) / -2)}:host(.right):after{left:calc(var(--tooltip-arrow) / -2);top:50%;margin-top:calc(var(--tooltip-arrow) / -2)}\n"] }]
27
+ }, encapsulation: ViewEncapsulation.Emulated, styles: [":host{--_tooltip-bg-color: var(--ds-tooltip-bg-color, var(--tooltip-bg-color));--_tooltip-text-color: var(--ds-tooltip-text-color, var(--tooltip-text-color));--_tooltip-border-color: var(--ds-tooltip-border-color, var(--tooltip-border-color));--_tooltip-radius: var(--ds-tooltip-radius, var(--ds-radius-control));--_tooltip-shadow: var(--ds-tooltip-shadow, var(--ds-elevation-overlay));--_tooltip-max-width: var(--ds-tooltip-max-width, var(--tooltip-maxw));--_tooltip-padding: var(--ds-tooltip-padding, var(--space-1-5) var(--space-2-5));display:block;position:relative;background:var(--_tooltip-bg-color);color:var(--_tooltip-text-color);border:var(--border-width-default) solid var(--_tooltip-border-color);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-base) var(--font-sans);padding:var(--_tooltip-padding);border-radius:var(--_tooltip-radius);max-width:var(--_tooltip-max-width);overflow-wrap:anywhere;z-index:var(--layer-tooltip);box-shadow:var(--_tooltip-shadow)}:host:after{content:\"\";position:absolute;width:var(--space-2);height:var(--space-2);background:var(--_tooltip-bg-color);border:0 solid var(--_tooltip-border-color);transform:rotate(45deg)}:host(.bottom):after{top:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));left:50%;margin-left:calc(var(--tooltip-arrow) / -2);border-top-width:var(--border-width-default);border-left-width:var(--border-width-default)}:host(.top):after{bottom:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));left:50%;margin-left:calc(var(--tooltip-arrow) / -2);border-bottom-width:var(--border-width-default);border-right-width:var(--border-width-default)}:host(.left):after{right:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));top:50%;margin-top:calc(var(--tooltip-arrow) / -2);border-top-width:var(--border-width-default);border-right-width:var(--border-width-default)}:host(.right):after{left:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));top:50%;margin-top:calc(var(--tooltip-arrow) / -2);border-bottom-width:var(--border-width-default);border-left-width:var(--border-width-default)}\n"] }]
28
28
  }], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: true }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: true }] }], panelId: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelId", required: false }] }] } });
29
29
 
30
30
  const TRIGGER_GAP_PX = 8;
31
+ const VIEWPORT_MARGIN_PX = 8;
32
+ const OPPOSITE_PLACEMENT = {
33
+ top: 'bottom',
34
+ bottom: 'top',
35
+ left: 'right',
36
+ right: 'left',
37
+ };
31
38
  const NATIVELY_FOCUSABLE = 'a[href], button, input, select, textarea, summary';
32
39
  const FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]`;
33
40
  const KEYBOARD_FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]:not([tabindex^="-"])`;
@@ -64,30 +71,20 @@ let nextId = 0;
64
71
  class TooltipDirective {
65
72
  overlay = inject(Overlay);
66
73
  host = inject((ElementRef));
67
- /** Tip text. An empty string is how you turn the tooltip off — a host bound to a
68
- * value that may be blank needs no separate condition. */
74
+ /** Tip text. An empty string turns the tooltip off. */
69
75
  dsTooltip = input('', ...(ngDevMode ? [{ debugName: "dsTooltip" }] : /* istanbul ignore next */ []));
70
- /** Which side the tip opens on. It does NOT flip: only the requested side is
71
- * offered to the overlay, so a tip with no room there is pushed rather than moved
72
- * to the opposite side. */
76
+ /** Which side the tip opens on. It does NOT flip: with no room it is pushed, not moved. */
73
77
  dsTooltipPlacement = input('top', ...(ngDevMode ? [{ debugName: "dsTooltipPlacement" }] : /* istanbul ignore next */ []));
74
- /** Milliseconds before the tip appears. Hiding is immediate — this delay only ever
75
- * suppresses a tip the pointer passed over on its way somewhere else. */
78
+ /** Milliseconds before the tip appears. Hiding is immediate. */
76
79
  dsTooltipDelay = input(120, ...(ngDevMode ? [{ debugName: "dsTooltipDelay" }] : /* istanbul ignore next */ []));
77
- /** Show the tip only while the host is actually showing less text than it holds. For a label
78
- * that already reads in full, a tip repeating it is noise. Re-tested on every open, so a tip
79
- * appears and stops appearing as the column, panel or window is resized, with no observer to
80
- * run.
80
+ /** Show the tip only while the host shows less text than it holds. Re-tested on every open.
81
81
  *
82
- * With this on, `dsTooltip` may be left empty and the host's own text is disclosed. That is
83
- * what makes it usable on projected content, where the component holding the tip cannot know
84
- * what it was handed. A tip whose text the host already contains sets no `aria-describedby`;
85
- * one given a `dsTooltip` that says more than the host does describes it as usual. */
82
+ * Applies the tooltip on its own: without a `dsTooltip` the host's own text is disclosed. A tip
83
+ * whose text the host already contains sets no `aria-describedby`; one given a `dsTooltip`
84
+ * that says more than the host does describes it as usual. */
86
85
  dsTooltipWhenClipped = input(false, { ...(ngDevMode ? { debugName: "dsTooltipWhenClipped" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
87
- /** A selector for the element inside the host whose clipping `dsTooltipWhenClipped` tests and
88
- * whose text it discloses. It lets the pointer area be a whole row while the text is one part
89
- * of it. Resolved on every open, so the element may come and go with the host's content; while
90
- * nothing matches, no clipped tip opens. */
86
+ /** Selector for the element inside the host whose clipping `dsTooltipWhenClipped` tests and
87
+ * whose text it discloses. Resolved on every open; while nothing matches, no clipped tip opens. */
91
88
  dsTooltipTextSelector = input(null, ...(ngDevMode ? [{ debugName: "dsTooltipTextSelector" }] : /* istanbul ignore next */ []));
92
89
  get hostElement() {
93
90
  return this.host.nativeElement;
@@ -109,8 +106,7 @@ class TooltipDirective {
109
106
  }
110
107
  return (this.textElement()?.textContent ?? '').trim();
111
108
  }
112
- /** A clipped host's full text is already in the DOM, so a screen reader has it; describing
113
- * the element with it again would announce it twice. */
109
+ /** A clipped host's full text is already in the DOM; describing it again would announce it twice. */
114
110
  disclosesOwnText(text) {
115
111
  if (!this.dsTooltipWhenClipped()) {
116
112
  return false;
@@ -122,29 +118,21 @@ class TooltipDirective {
122
118
  timer = null;
123
119
  tipId = `ds-tooltip-${++nextId}`;
124
120
  /**
125
- * Where `aria-describedby` belongs, when focus is involved. A host that is not
126
- * focusable itself never reaches a screen reader — `ds-menu-item` carries
127
- * `role="none"` and puts the real `<button>` inside — so describing the host
128
- * describes something the user never focuses. `focusin` bubbles, so its target
129
- * IS whatever took focus; recording it is what keeps this directive out of the
130
- * host component's internal DOM. A pointer-only open leaves this null and
131
- * falls back to the host, where no screen reader is involved anyway.
121
+ * Where `aria-describedby` belongs when focus is involved: a non-focusable host
122
+ * (`ds-menu-item` is `role="none"` around a real `<button>`) never reaches a screen
123
+ * reader, so `focusin`'s target is recorded. A pointer-only open leaves it null.
132
124
  */
133
125
  focusedTarget = null;
134
126
  /**
135
- * Where `aria-describedby` was actually written, remembered so teardown strips
136
- * it from the same element. Not derivable at teardown: focus can arrive after
137
- * the panel opened (hover, then click or arrow onto it), which moves
138
- * `focusedTarget` and would otherwise strand the attribute on the host,
139
- * pointing at a panel that no longer exists.
127
+ * Where `aria-describedby` was written, so teardown strips it from the same element
128
+ * even if focus moved `focusedTarget` after the panel opened.
140
129
  */
141
130
  describedElement = null;
142
131
  detachAncestor = null;
143
132
  constructor() {
144
133
  afterNextRender(() => this.listenToFocusableAncestor());
145
134
  }
146
- /** `:focus-visible` keeps a click, which focuses the ancestor too, from opening it. Only the
147
- * first clipped host of one ancestor opens, so two panels never stack. */
135
+ /** `:focus-visible` keeps a click from opening it. Only the first clipped host of one ancestor opens. */
148
136
  listenToFocusableAncestor() {
149
137
  const host = this.host.nativeElement;
150
138
  if (!this.dsTooltipWhenClipped() || host.matches(FOCUSABLE)) {
@@ -162,7 +150,7 @@ class TooltipDirective {
162
150
  tooltips.add(this);
163
151
  const open = (event) => {
164
152
  if (event.target !== ancestor ||
165
- // Tested here, not when registering: a disabled trigger carries tabindex="-1" until enabled.
153
+ // Tested here, not at registration: a disabled trigger carries tabindex="-1" until enabled.
166
154
  !ancestor.matches(KEYBOARD_FOCUSABLE) ||
167
155
  !ancestor.matches(':focus-visible') ||
168
156
  firstClippedHost(tooltips) !== this) {
@@ -190,8 +178,7 @@ class TooltipDirective {
190
178
  onPointerEnter() {
191
179
  this.scheduleShow();
192
180
  }
193
- // A clipped host that takes focus itself follows the same rule as one reached through its
194
- // focusable ancestor: keyboard focus on the host opens, a click's focus does not.
181
+ // Same rule as via a focusable ancestor: keyboard focus opens, a click's focus does not.
195
182
  onFocusIn(event) {
196
183
  const host = this.hostElement;
197
184
  if (this.dsTooltipWhenClipped() &&
@@ -220,9 +207,7 @@ class TooltipDirective {
220
207
  }
221
208
  this.timer = window.setTimeout(() => this.show(), this.dsTooltipDelay());
222
209
  }
223
- // Close on activation too: clicking the thing the tip describes is a clear
224
- // dismiss, and a re-rendered anchor (e.g. a navigated sidenav item) under a
225
- // stationary cursor fires no mouseleave, which would otherwise strand the panel.
210
+ // Close on click too: a re-rendered anchor under a stationary cursor fires no mouseleave.
226
211
  onClose() {
227
212
  if (this.timer !== null) {
228
213
  clearTimeout(this.timer);
@@ -260,15 +245,17 @@ class TooltipDirective {
260
245
  }
261
246
  }
262
247
  show() {
263
- // A re-render or re-entrant hover can call show() with a panel still open;
264
- // dispose it first so the OverlayRef isn't leaked and aria-describedby
265
- // doesn't accumulate the same id twice.
248
+ // show() can be re-entered with a panel open: dispose it first to avoid a leaked OverlayRef and a duplicate id.
266
249
  this.disposeRef();
267
250
  const placement = this.dsTooltipPlacement();
268
251
  const positionStrategy = this.overlay
269
252
  .position()
270
253
  .flexibleConnectedTo(this.host)
271
- .withPositions([this.positionFor(placement)]);
254
+ .withPositions([
255
+ this.positionFor(placement),
256
+ this.positionFor(OPPOSITE_PLACEMENT[placement]),
257
+ ])
258
+ .withViewportMargin(VIEWPORT_MARGIN_PX);
272
259
  this.ref = this.overlay.create({
273
260
  positionStrategy,
274
261
  panelClass: 'ds-overlay-pane',
@@ -279,6 +266,7 @@ class TooltipDirective {
279
266
  const text = this.tipText();
280
267
  cmpRef.setInput('text', text);
281
268
  cmpRef.setInput('placement', placement);
269
+ positionStrategy.positionChanges.subscribe(({ connectionPair }) => cmpRef.setInput('placement', overlayPlacementOf(connectionPair.overlayY, connectionPair.overlayX)));
282
270
  cmpRef.setInput('panelId', this.tipId);
283
271
  if (this.disclosesOwnText(text)) {
284
272
  return;
@@ -329,12 +317,12 @@ class TooltipDirective {
329
317
  this.onClose();
330
318
  }
331
319
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
332
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: TooltipDirective, isStandalone: true, selector: "[dsTooltip]", inputs: { dsTooltip: { classPropertyName: "dsTooltip", publicName: "dsTooltip", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipPlacement: { classPropertyName: "dsTooltipPlacement", publicName: "dsTooltipPlacement", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipDelay: { classPropertyName: "dsTooltipDelay", publicName: "dsTooltipDelay", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipWhenClipped: { classPropertyName: "dsTooltipWhenClipped", publicName: "dsTooltipWhenClipped", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipTextSelector: { classPropertyName: "dsTooltipTextSelector", publicName: "dsTooltipTextSelector", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mouseenter": "onPointerEnter()", "focusin": "onFocusIn($event)", "focusout": "onFocusOut()", "mouseleave": "onClose()", "click": "onClose()", "keydown": "onKeydown()", "keydown.escape": "onEscape()" } }, ngImport: i0 });
320
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: TooltipDirective, isStandalone: true, selector: "[dsTooltip], [dsTooltipWhenClipped]", inputs: { dsTooltip: { classPropertyName: "dsTooltip", publicName: "dsTooltip", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipPlacement: { classPropertyName: "dsTooltipPlacement", publicName: "dsTooltipPlacement", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipDelay: { classPropertyName: "dsTooltipDelay", publicName: "dsTooltipDelay", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipWhenClipped: { classPropertyName: "dsTooltipWhenClipped", publicName: "dsTooltipWhenClipped", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipTextSelector: { classPropertyName: "dsTooltipTextSelector", publicName: "dsTooltipTextSelector", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mouseenter": "onPointerEnter()", "focusin": "onFocusIn($event)", "focusout": "onFocusOut()", "mouseleave": "onClose()", "click": "onClose()", "keydown": "onKeydown()", "keydown.escape": "onEscape()" } }, ngImport: i0 });
333
321
  }
334
322
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TooltipDirective, decorators: [{
335
323
  type: Directive,
336
324
  args: [{
337
- selector: '[dsTooltip]',
325
+ selector: '[dsTooltip], [dsTooltipWhenClipped]',
338
326
  standalone: true,
339
327
  }]
340
328
  }], ctorParameters: () => [], propDecorators: { dsTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltip", required: false }] }], dsTooltipPlacement: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipPlacement", required: false }] }], dsTooltipDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipDelay", required: false }] }], dsTooltipWhenClipped: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipWhenClipped", required: false }] }], dsTooltipTextSelector: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipTextSelector", required: false }] }], onPointerEnter: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-tooltip.mjs","sources":["../../../src/lib/components/tooltip/tooltip-panel.component.ts","../../../src/lib/components/tooltip/tooltip.directive.ts","../../../src/lib/components/tooltip/ids-group-ltd-ids-design-system-components-tooltip.ts"],"sourcesContent":["import { Component, ViewEncapsulation, input } from '@angular/core';\nimport type { TooltipPlacement } from './tooltip.types';\n\n@Component({\n selector: 'ds-tooltip-panel',\n standalone: true,\n template: `{{ text() }}`,\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 },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TooltipPanelComponent {\n /** Tooltip text content. */\n readonly text = input.required<string>();\n /** Side of the trigger the panel is positioned on; also drives the arrow class. */\n readonly placement = input.required<TooltipPlacement>();\n /** Element `id`, referenced by the trigger's `aria-describedby`. */\n readonly panelId = input<string>('');\n}\n","import {\n Directive,\n ElementRef,\n HostListener,\n OnDestroy,\n afterNextRender,\n booleanAttribute,\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 { prepareOverlayEnter } from '@ids-group-ltd/ids-design-system/components';\nimport { isTextClipped } from '@ids-group-ltd/ids-design-system/core';\nimport type { TooltipPlacement } from './tooltip.types';\n\nconst TRIGGER_GAP_PX = 8;\n\nconst NATIVELY_FOCUSABLE = 'a[href], button, input, select, textarea, summary';\nconst FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]`;\nconst KEYBOARD_FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]:not([tabindex^=\"-\"])`;\nconst INTERACTIVE = [\n NATIVELY_FOCUSABLE,\n 'tr:not([role])',\n ...[\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 ].map((role) => `[role=\"${role}\"]`),\n].join(', ');\n\nconst clippedHostsByAncestor = new WeakMap<\n HTMLElement,\n Set<TooltipDirective>\n>();\n\nfunction firstClippedHost(\n tooltips: Set<TooltipDirective>,\n): TooltipDirective | undefined {\n return [...tooltips]\n .sort((a, b) =>\n a.hostElement.compareDocumentPosition(b.hostElement) &\n Node.DOCUMENT_POSITION_FOLLOWING\n ? -1\n : 1,\n )\n .find((tooltip) => tooltip.isClipped());\n}\n\nlet nextId = 0;\n\n@Directive({\n selector: '[dsTooltip]',\n standalone: true,\n})\nexport class TooltipDirective implements OnDestroy {\n private readonly overlay = inject(Overlay);\n private readonly host = inject(ElementRef<HTMLElement>);\n\n /** Tip text. An empty string is how you turn the tooltip off — a host bound to a\n * value that may be blank needs no separate condition. */\n readonly dsTooltip = input<string>('');\n /** Which side the tip opens on. It does NOT flip: only the requested side is\n * offered to the overlay, so a tip with no room there is pushed rather than moved\n * to the opposite side. */\n readonly dsTooltipPlacement = input<TooltipPlacement>('top');\n /** Milliseconds before the tip appears. Hiding is immediate — this delay only ever\n * suppresses a tip the pointer passed over on its way somewhere else. */\n readonly dsTooltipDelay = input<number>(120);\n /** Show the tip only while the host is actually showing less text than it holds. For a label\n * that already reads in full, a tip repeating it is noise. Re-tested on every open, so a tip\n * appears and stops appearing as the column, panel or window is resized, with no observer to\n * run.\n *\n * With this on, `dsTooltip` may be left empty and the host's own text is disclosed. That is\n * what makes it usable on projected content, where the component holding the tip cannot know\n * what it was handed. A tip whose text the host already contains sets no `aria-describedby`;\n * one given a `dsTooltip` that says more than the host does describes it as usual. */\n readonly dsTooltipWhenClipped = input(false, { transform: booleanAttribute });\n /** A selector for the element inside the host whose clipping `dsTooltipWhenClipped` tests and\n * whose text it discloses. It lets the pointer area be a whole row while the text is one part\n * of it. Resolved on every open, so the element may come and go with the host's content; while\n * nothing matches, no clipped tip opens. */\n readonly dsTooltipTextSelector = input<string | null>(null);\n\n get hostElement(): HTMLElement {\n return this.host.nativeElement;\n }\n\n private textElement(): HTMLElement | null {\n const selector = this.dsTooltipTextSelector();\n\n return selector\n ? this.hostElement.querySelector<HTMLElement>(selector)\n : this.hostElement;\n }\n\n isClipped(): boolean {\n const textElement = this.textElement();\n\n return textElement !== null && isTextClipped(textElement);\n }\n\n private tipText(): string {\n const given = this.dsTooltip();\n if (given || !this.dsTooltipWhenClipped()) {\n return given;\n }\n\n return (this.textElement()?.textContent ?? '').trim();\n }\n\n /** A clipped host's full text is already in the DOM, so a screen reader has it; describing\n * the element with it again would announce it twice. */\n private disclosesOwnText(text: string): boolean {\n if (!this.dsTooltipWhenClipped()) {\n return false;\n }\n const collapse = (value: string) => value.replace(/\\s+/g, ' ').trim();\n\n return collapse(this.textElement()?.textContent ?? '').includes(\n collapse(text),\n );\n }\n\n private ref: OverlayRef | null = null;\n private timer: number | null = null;\n private readonly tipId = `ds-tooltip-${++nextId}`;\n\n /**\n * Where `aria-describedby` belongs, when focus is involved. A host that is not\n * focusable itself never reaches a screen reader — `ds-menu-item` carries\n * `role=\"none\"` and puts the real `<button>` inside — so describing the host\n * describes something the user never focuses. `focusin` bubbles, so its target\n * IS whatever took focus; recording it is what keeps this directive out of the\n * host component's internal DOM. A pointer-only open leaves this null and\n * falls back to the host, where no screen reader is involved anyway.\n */\n private focusedTarget: HTMLElement | null = null;\n\n /**\n * Where `aria-describedby` was actually written, remembered so teardown strips\n * it from the same element. Not derivable at teardown: focus can arrive after\n * the panel opened (hover, then click or arrow onto it), which moves\n * `focusedTarget` and would otherwise strand the attribute on the host,\n * pointing at a panel that no longer exists.\n */\n private describedElement: HTMLElement | null = null;\n\n private detachAncestor: (() => void) | null = null;\n\n constructor() {\n afterNextRender(() => this.listenToFocusableAncestor());\n }\n\n /** `:focus-visible` keeps a click, which focuses the ancestor too, from opening it. Only the\n * first clipped host of one ancestor opens, so two panels never stack. */\n private listenToFocusableAncestor(): void {\n const host: HTMLElement = this.host.nativeElement;\n if (!this.dsTooltipWhenClipped() || host.matches(FOCUSABLE)) {\n return;\n }\n const ancestor = host.parentElement?.closest<HTMLElement>(FOCUSABLE);\n if (!ancestor?.matches(INTERACTIVE)) {\n return;\n }\n let tooltips = clippedHostsByAncestor.get(ancestor);\n if (!tooltips) {\n tooltips = new Set();\n clippedHostsByAncestor.set(ancestor, tooltips);\n }\n tooltips.add(this);\n const open = (event: FocusEvent) => {\n if (\n event.target !== ancestor ||\n // Tested here, not when registering: a disabled trigger carries tabindex=\"-1\" until enabled.\n !ancestor.matches(KEYBOARD_FOCUSABLE) ||\n !ancestor.matches(':focus-visible') ||\n firstClippedHost(tooltips) !== this\n ) {\n return;\n }\n this.focusedTarget = ancestor;\n this.scheduleShow();\n };\n const close = () => {\n this.focusedTarget = null;\n this.onClose();\n };\n ancestor.addEventListener('focusin', open);\n ancestor.addEventListener('focusout', close);\n ancestor.addEventListener('click', close);\n ancestor.addEventListener('keydown', close);\n this.detachAncestor = () => {\n tooltips.delete(this);\n ancestor.removeEventListener('focusin', open);\n ancestor.removeEventListener('focusout', close);\n ancestor.removeEventListener('click', close);\n ancestor.removeEventListener('keydown', close);\n };\n }\n\n @HostListener('mouseenter')\n protected onPointerEnter(): void {\n this.scheduleShow();\n }\n\n // A clipped host that takes focus itself follows the same rule as one reached through its\n // focusable ancestor: keyboard focus on the host 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.dsTooltipWhenClipped() &&\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.tipText()) {\n return;\n }\n if (this.dsTooltipWhenClipped() && !this.isClipped()) {\n return;\n }\n if (this.timer !== null) {\n clearTimeout(this.timer);\n }\n this.timer = window.setTimeout(() => this.show(), this.dsTooltipDelay());\n }\n\n // Close on activation too: clicking the thing the tip describes is a clear\n // dismiss, and a re-rendered anchor (e.g. a navigated sidenav item) under a\n // stationary cursor fires no mouseleave, which would otherwise strand the panel.\n @HostListener('mouseleave')\n @HostListener('click')\n protected onClose(): void {\n if (this.timer !== null) {\n clearTimeout(this.timer);\n this.timer = null;\n }\n this.disposeRef();\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.dsTooltipWhenClipped()) {\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 // A re-render or re-entrant hover can call show() with a panel still open;\n // dispose it first so the OverlayRef isn't leaked and aria-describedby\n // doesn't accumulate the same id twice.\n this.disposeRef();\n const placement = this.dsTooltipPlacement();\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.host)\n .withPositions([this.positionFor(placement)]);\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\n const cmpRef = this.ref.attach(new ComponentPortal(TooltipPanelComponent));\n const text = this.tipText();\n cmpRef.setInput('text', text);\n cmpRef.setInput('placement', placement);\n cmpRef.setInput('panelId', this.tipId);\n if (this.disclosesOwnText(text)) {\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 private 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\n ngOnDestroy(): void {\n this.detachAncestor?.();\n this.onClose();\n }\n}\n","/**\n * Generated bundle index. Do not edit.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AAA,EAAA,EAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;sBAoJE,YAAY;uBAAC,YAAY;;sBAOzB,YAAY;uBAAC,SAAS,EAAE,CAAC,QAAQ,CAAC;;sBAgBlC,YAAY;uBAAC,UAAU;;sBAsBvB,YAAY;uBAAC,YAAY;;sBACzB,YAAY;uBAAC,OAAO;;sBA4BpB,YAAY;uBAAC,SAAS;;sBAOtB,YAAY;uBAAC,gBAAgB;;;ACvShC;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-tooltip.mjs","sources":["../../../src/lib/components/tooltip/tooltip-panel.component.ts","../../../src/lib/components/tooltip/tooltip.directive.ts","../../../src/lib/components/tooltip/ids-group-ltd-ids-design-system-components-tooltip.ts"],"sourcesContent":["import { Component, ViewEncapsulation, input } from '@angular/core';\nimport type { TooltipPlacement } from './tooltip.types';\n\n@Component({\n selector: 'ds-tooltip-panel',\n standalone: true,\n template: `{{ text() }}`,\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 },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TooltipPanelComponent {\n /** Tooltip text content. */\n readonly text = input.required<string>();\n /** Side of the trigger the panel is positioned on; also drives the arrow class. */\n readonly placement = input.required<TooltipPlacement>();\n /** Element `id`, referenced by the trigger's `aria-describedby`. */\n readonly panelId = input<string>('');\n}\n","import {\n Directive,\n ElementRef,\n HostListener,\n OnDestroy,\n afterNextRender,\n booleanAttribute,\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 {\n overlayPlacementOf,\n prepareOverlayEnter,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { isTextClipped } from '@ids-group-ltd/ids-design-system/core';\nimport type { TooltipPlacement } from './tooltip.types';\n\nconst TRIGGER_GAP_PX = 8;\nconst VIEWPORT_MARGIN_PX = 8;\nconst OPPOSITE_PLACEMENT: Record<TooltipPlacement, TooltipPlacement> = {\n top: 'bottom',\n bottom: 'top',\n left: 'right',\n right: 'left',\n};\n\nconst NATIVELY_FOCUSABLE = 'a[href], button, input, select, textarea, summary';\nconst FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]`;\nconst KEYBOARD_FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]:not([tabindex^=\"-\"])`;\nconst INTERACTIVE = [\n NATIVELY_FOCUSABLE,\n 'tr:not([role])',\n ...[\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 ].map((role) => `[role=\"${role}\"]`),\n].join(', ');\n\nconst clippedHostsByAncestor = new WeakMap<\n HTMLElement,\n Set<TooltipDirective>\n>();\n\nfunction firstClippedHost(\n tooltips: Set<TooltipDirective>,\n): TooltipDirective | undefined {\n return [...tooltips]\n .sort((a, b) =>\n a.hostElement.compareDocumentPosition(b.hostElement) &\n Node.DOCUMENT_POSITION_FOLLOWING\n ? -1\n : 1,\n )\n .find((tooltip) => tooltip.isClipped());\n}\n\nlet nextId = 0;\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\n /** Tip text. An empty string turns the tooltip off. */\n readonly dsTooltip = input<string>('');\n /** Which side the tip opens on. It does NOT flip: with no room it is pushed, not moved. */\n readonly dsTooltipPlacement = input<TooltipPlacement>('top');\n /** Milliseconds before the tip appears. Hiding is immediate. */\n readonly dsTooltipDelay = input<number>(120);\n /** Show the tip only while the host shows less text than it holds. Re-tested on every open.\n *\n * Applies the tooltip on its own: without a `dsTooltip` the host's own 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 readonly dsTooltipWhenClipped = input(false, { transform: booleanAttribute });\n /** Selector for the element inside the host whose clipping `dsTooltipWhenClipped` tests and\n * whose text it discloses. Resolved on every open; while nothing matches, no clipped tip opens. */\n readonly dsTooltipTextSelector = input<string | null>(null);\n\n get hostElement(): HTMLElement {\n return this.host.nativeElement;\n }\n\n private textElement(): HTMLElement | null {\n const selector = this.dsTooltipTextSelector();\n\n return selector\n ? this.hostElement.querySelector<HTMLElement>(selector)\n : this.hostElement;\n }\n\n isClipped(): boolean {\n const textElement = this.textElement();\n\n return textElement !== null && isTextClipped(textElement);\n }\n\n private tipText(): string {\n const given = this.dsTooltip();\n if (given || !this.dsTooltipWhenClipped()) {\n return given;\n }\n\n return (this.textElement()?.textContent ?? '').trim();\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.dsTooltipWhenClipped()) {\n return false;\n }\n const collapse = (value: string) => value.replace(/\\s+/g, ' ').trim();\n\n return collapse(this.textElement()?.textContent ?? '').includes(\n collapse(text),\n );\n }\n\n private ref: OverlayRef | null = null;\n private timer: number | 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 constructor() {\n afterNextRender(() => this.listenToFocusableAncestor());\n }\n\n /** `:focus-visible` keeps a click from opening it. Only the first clipped host of one ancestor opens. */\n private listenToFocusableAncestor(): void {\n const host: HTMLElement = this.host.nativeElement;\n if (!this.dsTooltipWhenClipped() || host.matches(FOCUSABLE)) {\n return;\n }\n const ancestor = host.parentElement?.closest<HTMLElement>(FOCUSABLE);\n if (!ancestor?.matches(INTERACTIVE)) {\n return;\n }\n let tooltips = clippedHostsByAncestor.get(ancestor);\n if (!tooltips) {\n tooltips = new Set();\n clippedHostsByAncestor.set(ancestor, tooltips);\n }\n tooltips.add(this);\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(tooltips) !== this\n ) {\n return;\n }\n this.focusedTarget = ancestor;\n this.scheduleShow();\n };\n const close = () => {\n this.focusedTarget = null;\n this.onClose();\n };\n ancestor.addEventListener('focusin', open);\n ancestor.addEventListener('focusout', close);\n ancestor.addEventListener('click', close);\n ancestor.addEventListener('keydown', close);\n this.detachAncestor = () => {\n tooltips.delete(this);\n ancestor.removeEventListener('focusin', open);\n ancestor.removeEventListener('focusout', close);\n ancestor.removeEventListener('click', close);\n ancestor.removeEventListener('keydown', close);\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.dsTooltipWhenClipped() &&\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.tipText()) {\n return;\n }\n if (this.dsTooltipWhenClipped() && !this.isClipped()) {\n return;\n }\n if (this.timer !== null) {\n clearTimeout(this.timer);\n }\n this.timer = window.setTimeout(() => this.show(), this.dsTooltipDelay());\n }\n\n // Close on click too: a re-rendered anchor under a stationary cursor fires no mouseleave.\n @HostListener('mouseleave')\n @HostListener('click')\n protected onClose(): void {\n if (this.timer !== null) {\n clearTimeout(this.timer);\n this.timer = null;\n }\n this.disposeRef();\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.dsTooltipWhenClipped()) {\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.dsTooltipPlacement();\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.host)\n .withPositions([\n this.positionFor(placement),\n this.positionFor(OPPOSITE_PLACEMENT[placement]),\n ])\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\n const cmpRef = this.ref.attach(new ComponentPortal(TooltipPanelComponent));\n const text = this.tipText();\n cmpRef.setInput('text', text);\n cmpRef.setInput('placement', placement);\n positionStrategy.positionChanges.subscribe(({ connectionPair }) =>\n cmpRef.setInput(\n 'placement',\n overlayPlacementOf(connectionPair.overlayY, connectionPair.overlayX),\n ),\n );\n cmpRef.setInput('panelId', this.tipId);\n if (this.disclosesOwnText(text)) {\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 private 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\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":";;;;;;;MAkBa,qBAAqB,CAAA;;AAEvB,IAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,0EAAU;;AAE/B,IAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,+EAAoB;;AAE9C,IAAA,OAAO,GAAG,KAAK,CAAS,EAAE,8EAAC;wGANzB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAArB,IAAA,OAAA,IAAA,GAAA,EAAA,CAA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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;;sBAiIE,YAAY;uBAAC,YAAY;;sBAMzB,YAAY;uBAAC,SAAS,EAAE,CAAC,QAAQ,CAAC;;sBAgBlC,YAAY;uBAAC,UAAU;;sBAoBvB,YAAY;uBAAC,YAAY;;sBACzB,YAAY;uBAAC,OAAO;;sBA4BpB,YAAY;uBAAC,SAAS;;sBAOtB,YAAY;uBAAC,gBAAgB;;;AC3RhC;;AAEG;;;;"}
@@ -3,11 +3,11 @@ import { ViewEncapsulation, Component } from '@angular/core';
3
3
 
4
4
  class TopBarComponent {
5
5
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TopBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: TopBarComponent, isStandalone: true, selector: "ds-topbar", ngImport: i0, template: "<header class=\"topbar\">\n <div class=\"title\">\n <ng-content select=\"[title]\"></ng-content>\n </div>\n\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"spacer\">\n <ng-content select=\"[search]\"></ng-content>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</header>\n", styles: ["@charset \"UTF-8\";:host{--_topbar-height: var(--ds-topbar-height, var(--topbar-h));--_topbar-bg-color: var(--ds-topbar-bg-color, var(--surface-default));--_topbar-border: var(--ds-topbar-border, var(--border-divider));--_topbar-title-text-color: var(--ds-topbar-title-text-color, var(--text-primary));--_topbar-crumb-text-color: var(--ds-topbar-crumb-text-color, var(--text-tertiary));--_topbar-crumb-hover-text-color: var(--ds-topbar-crumb-hover-text-color, var(--accent));--_topbar-crumb-separator-icon-color: var(--ds-topbar-crumb-separator-icon-color, var(--icon-muted));--_topbar-crumb-current-text-color: var(--ds-topbar-crumb-current-text-color, var(--text-primary));display:block}.topbar{display:flex;align-items:center;gap:var(--space-4);height:var(--_topbar-height);padding:0 var(--space-6);background-color:var(--_topbar-bg-color);border-bottom:var(--border-width-default) solid var(--_topbar-border)}.topbar .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);color:var(--_topbar-title-text-color)}.topbar .spacer{flex:1;min-width:0}.topbar .actions{display:flex;align-items:center;gap:var(--space-2);margin-left:auto}.topbar .crumbs-trail{display:flex;align-items:center;gap:var(--space-2);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_topbar-crumb-text-color);min-width:0;max-width:100%;flex-wrap:nowrap;overflow:hidden}.topbar .crumb{color:var(--_topbar-crumb-text-color);text-decoration:none;display:inline-flex;align-items:center;gap:var(--space-1);overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap;max-width:24ch;transition:color var(--duration-fast) var(--ease-standard)}.topbar .crumb:hover{color:var(--_topbar-crumb-hover-text-color)}.topbar .crumb.crumb--current{color:var(--_topbar-crumb-current-text-color);font-weight:var(--font-weight-bold);max-width:32ch}.topbar .crumb-sep{color:var(--_topbar-crumb-separator-icon-color);display:inline-flex;align-items:center}\n"] });
6
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: TopBarComponent, isStandalone: true, selector: "ds-topbar", ngImport: i0, template: "<header class=\"topbar\">\n <div class=\"title\">\n <ng-content select=\"[title]\"></ng-content>\n </div>\n\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"spacer\">\n <ng-content select=\"[search]\"></ng-content>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</header>\n", styles: [":host{--_topbar-height: var(--ds-topbar-height, var(--topbar-h));--_topbar-bg-color: var(--ds-topbar-bg-color, var(--surface-default));--_topbar-border: var(--ds-topbar-border, var(--border-divider));--_topbar-title-text-color: var(--ds-topbar-title-text-color, var(--text-primary));--_topbar-crumb-text-color: var(--ds-topbar-crumb-text-color, var(--text-tertiary));--_topbar-crumb-hover-text-color: var(--ds-topbar-crumb-hover-text-color, var(--accent));--_topbar-crumb-separator-icon-color: var(--ds-topbar-crumb-separator-icon-color, var(--icon-muted));--_topbar-crumb-current-text-color: var(--ds-topbar-crumb-current-text-color, var(--text-primary));display:block}.topbar{display:flex;align-items:center;gap:var(--space-4);height:var(--_topbar-height);padding:0 var(--space-6);background-color:var(--_topbar-bg-color);border-bottom:var(--border-width-default) solid var(--_topbar-border)}.topbar .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);color:var(--_topbar-title-text-color)}.topbar .spacer{flex:1;min-width:0}.topbar .actions{display:flex;align-items:center;gap:var(--space-2);margin-left:auto}.topbar .crumbs-trail{display:flex;align-items:center;gap:var(--space-2);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_topbar-crumb-text-color);min-width:0;max-width:100%;flex-wrap:nowrap;overflow:hidden}.topbar .crumb{color:var(--_topbar-crumb-text-color);text-decoration:none;display:inline-flex;align-items:center;gap:var(--space-1);overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap;max-width:24ch;transition:color var(--duration-fast) var(--ease-standard)}.topbar .crumb:hover{color:var(--_topbar-crumb-hover-text-color)}.topbar .crumb.crumb--current{color:var(--_topbar-crumb-current-text-color);font-weight:var(--font-weight-bold);max-width:32ch}.topbar .crumb-sep{color:var(--_topbar-crumb-separator-icon-color);display:inline-flex;align-items:center}\n"] });
7
7
  }
8
8
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TopBarComponent, decorators: [{
9
9
  type: Component,
10
- args: [{ selector: 'ds-topbar', standalone: true, encapsulation: ViewEncapsulation.Emulated, template: "<header class=\"topbar\">\n <div class=\"title\">\n <ng-content select=\"[title]\"></ng-content>\n </div>\n\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"spacer\">\n <ng-content select=\"[search]\"></ng-content>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</header>\n", styles: ["@charset \"UTF-8\";:host{--_topbar-height: var(--ds-topbar-height, var(--topbar-h));--_topbar-bg-color: var(--ds-topbar-bg-color, var(--surface-default));--_topbar-border: var(--ds-topbar-border, var(--border-divider));--_topbar-title-text-color: var(--ds-topbar-title-text-color, var(--text-primary));--_topbar-crumb-text-color: var(--ds-topbar-crumb-text-color, var(--text-tertiary));--_topbar-crumb-hover-text-color: var(--ds-topbar-crumb-hover-text-color, var(--accent));--_topbar-crumb-separator-icon-color: var(--ds-topbar-crumb-separator-icon-color, var(--icon-muted));--_topbar-crumb-current-text-color: var(--ds-topbar-crumb-current-text-color, var(--text-primary));display:block}.topbar{display:flex;align-items:center;gap:var(--space-4);height:var(--_topbar-height);padding:0 var(--space-6);background-color:var(--_topbar-bg-color);border-bottom:var(--border-width-default) solid var(--_topbar-border)}.topbar .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);color:var(--_topbar-title-text-color)}.topbar .spacer{flex:1;min-width:0}.topbar .actions{display:flex;align-items:center;gap:var(--space-2);margin-left:auto}.topbar .crumbs-trail{display:flex;align-items:center;gap:var(--space-2);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_topbar-crumb-text-color);min-width:0;max-width:100%;flex-wrap:nowrap;overflow:hidden}.topbar .crumb{color:var(--_topbar-crumb-text-color);text-decoration:none;display:inline-flex;align-items:center;gap:var(--space-1);overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap;max-width:24ch;transition:color var(--duration-fast) var(--ease-standard)}.topbar .crumb:hover{color:var(--_topbar-crumb-hover-text-color)}.topbar .crumb.crumb--current{color:var(--_topbar-crumb-current-text-color);font-weight:var(--font-weight-bold);max-width:32ch}.topbar .crumb-sep{color:var(--_topbar-crumb-separator-icon-color);display:inline-flex;align-items:center}\n"] }]
10
+ args: [{ selector: 'ds-topbar', standalone: true, encapsulation: ViewEncapsulation.Emulated, template: "<header class=\"topbar\">\n <div class=\"title\">\n <ng-content select=\"[title]\"></ng-content>\n </div>\n\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"spacer\">\n <ng-content select=\"[search]\"></ng-content>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</header>\n", styles: [":host{--_topbar-height: var(--ds-topbar-height, var(--topbar-h));--_topbar-bg-color: var(--ds-topbar-bg-color, var(--surface-default));--_topbar-border: var(--ds-topbar-border, var(--border-divider));--_topbar-title-text-color: var(--ds-topbar-title-text-color, var(--text-primary));--_topbar-crumb-text-color: var(--ds-topbar-crumb-text-color, var(--text-tertiary));--_topbar-crumb-hover-text-color: var(--ds-topbar-crumb-hover-text-color, var(--accent));--_topbar-crumb-separator-icon-color: var(--ds-topbar-crumb-separator-icon-color, var(--icon-muted));--_topbar-crumb-current-text-color: var(--ds-topbar-crumb-current-text-color, var(--text-primary));display:block}.topbar{display:flex;align-items:center;gap:var(--space-4);height:var(--_topbar-height);padding:0 var(--space-6);background-color:var(--_topbar-bg-color);border-bottom:var(--border-width-default) solid var(--_topbar-border)}.topbar .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);color:var(--_topbar-title-text-color)}.topbar .spacer{flex:1;min-width:0}.topbar .actions{display:flex;align-items:center;gap:var(--space-2);margin-left:auto}.topbar .crumbs-trail{display:flex;align-items:center;gap:var(--space-2);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_topbar-crumb-text-color);min-width:0;max-width:100%;flex-wrap:nowrap;overflow:hidden}.topbar .crumb{color:var(--_topbar-crumb-text-color);text-decoration:none;display:inline-flex;align-items:center;gap:var(--space-1);overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap;max-width:24ch;transition:color var(--duration-fast) var(--ease-standard)}.topbar .crumb:hover{color:var(--_topbar-crumb-hover-text-color)}.topbar .crumb.crumb--current{color:var(--_topbar-crumb-current-text-color);font-weight:var(--font-weight-bold);max-width:32ch}.topbar .crumb-sep{color:var(--_topbar-crumb-separator-icon-color);display:inline-flex;align-items:center}\n"] }]
11
11
  }] });
12
12
 
13
13
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-topbar.mjs","sources":["../../../src/lib/components/topbar/topbar.component.ts","../../../src/lib/components/topbar/topbar.component.html","../../../src/lib/components/topbar/ids-group-ltd-ids-design-system-components-topbar.ts"],"sourcesContent":["import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ds-topbar',\n standalone: true,\n templateUrl: './topbar.component.html',\n styleUrl: './topbar.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TopBarComponent {}\n","<header class=\"topbar\">\n <div class=\"title\">\n <ng-content select=\"[title]\"></ng-content>\n </div>\n\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"spacer\">\n <ng-content select=\"[search]\"></ng-content>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</header>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MASa,eAAe,CAAA;wGAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAf,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,eAAe,qECT5B,yWAeA,EAAA,MAAA,EAAA,CAAA,u/DAAA,CAAA,EAAA,CAAA;;4FDNa,eAAe,EAAA,UAAA,EAAA,CAAA;kBAP3B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,EAAA,UAAA,EACT,IAAI,EAAA,aAAA,EAGD,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,yWAAA,EAAA,MAAA,EAAA,CAAA,u/DAAA,CAAA,EAAA;;;AEP3C;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-topbar.mjs","sources":["../../../src/lib/components/topbar/topbar.component.ts","../../../src/lib/components/topbar/topbar.component.html","../../../src/lib/components/topbar/ids-group-ltd-ids-design-system-components-topbar.ts"],"sourcesContent":["import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ds-topbar',\n standalone: true,\n templateUrl: './topbar.component.html',\n styleUrl: './topbar.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TopBarComponent {}\n","<header class=\"topbar\">\n <div class=\"title\">\n <ng-content select=\"[title]\"></ng-content>\n </div>\n\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"spacer\">\n <ng-content select=\"[search]\"></ng-content>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</header>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MASa,eAAe,CAAA;wGAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAf,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,eAAe,qECT5B,yWAeA,EAAA,MAAA,EAAA,CAAA,o+DAAA,CAAA,EAAA,CAAA;;4FDNa,eAAe,EAAA,UAAA,EAAA,CAAA;kBAP3B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,EAAA,UAAA,EACT,IAAI,EAAA,aAAA,EAGD,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,yWAAA,EAAA,MAAA,EAAA,CAAA,o+DAAA,CAAA,EAAA;;;AEP3C;;AAEG;;;;"}
@@ -6,14 +6,13 @@ class TreeComponent {
6
6
  host = inject(ElementRef);
7
7
  /** Root-level nodes; nest via `children`. */
8
8
  nodes = input([], ...(ngDevMode ? [{ debugName: "nodes" }] : /* istanbul ignore next */ []));
9
- /** Two-way set of currently expanded node ids. */
9
+ /** Ids of the expanded nodes. */
10
10
  expandedIds = model(new Set(), ...(ngDevMode ? [{ debugName: "expandedIds" }] : /* istanbul ignore next */ []));
11
- /** Two-way id of the currently selected node. */
11
+ /** Id of the selected node. */
12
12
  selectedId = model(null, ...(ngDevMode ? [{ debugName: "selectedId" }] : /* istanbul ignore next */ []));
13
13
  /** Fires with the node when a row is selected (click or Enter/Space). */
14
14
  nodeSelected = output();
15
15
  activeId = signal(null, ...(ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []));
16
- // Depth-first list of currently-visible nodes; drives rendering and keyboard nav.
17
16
  visibleNodes = computed(() => {
18
17
  const out = [];
19
18
  const walk = (list, level) => {
@@ -29,7 +28,6 @@ class TreeComponent {
29
28
  walk(this.nodes(), 0);
30
29
  return out;
31
30
  }, ...(ngDevMode ? [{ debugName: "visibleNodes" }] : /* istanbul ignore next */ []));
32
- // The single roving-tabindex treeitem — the active node, or the first one.
33
31
  effectiveActiveId = computed(() => this.activeId() ?? this.visibleNodes()[0]?.node.id ?? null, ...(ngDevMode ? [{ debugName: "effectiveActiveId" }] : /* istanbul ignore next */ []));
34
32
  isExpanded(id) {
35
33
  return this.expandedIds().has(id);
@@ -86,7 +84,7 @@ class TreeComponent {
86
84
  }
87
85
  break;
88
86
  default:
89
- // Enter / Space activate the focused row via its native button click.
87
+ // Enter and Space activate through the row button's native click.
90
88
  return;
91
89
  }
92
90
  event.preventDefault();
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-tree.mjs","sources":["../../../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 {\n Component,\n ElementRef,\n ViewEncapsulation,\n computed,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport type { TreeNode } from './tree.types';\n\ninterface VisibleNode {\n node: TreeNode;\n level: number;\n hasChildren: boolean;\n expanded: boolean;\n}\n\n@Component({\n selector: 'ds-tree',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './tree.component.html',\n styleUrl: './tree.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'tree',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class TreeComponent {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** Root-level nodes; nest via `children`. */\n readonly nodes = input<readonly TreeNode[]>([]);\n /** Two-way set of currently expanded node ids. */\n readonly expandedIds = model<Set<string>>(new Set());\n /** Two-way id of the currently selected node. */\n readonly selectedId = model<string | null>(null);\n /** Fires with the node when a row is selected (click or Enter/Space). */\n readonly nodeSelected = output<TreeNode>();\n\n private readonly activeId = signal<string | null>(null);\n\n // Depth-first list of currently-visible nodes; drives rendering and keyboard nav.\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 // The single roving-tabindex treeitem — the active node, or the first one.\n protected readonly effectiveActiveId = computed(\n () => this.activeId() ?? this.visibleNodes()[0]?.node.id ?? null,\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.selectedId() === id;\n }\n\n protected isActive(id: string): boolean {\n return this.effectiveActiveId() === id;\n }\n\n protected onRowClick(entry: VisibleNode): void {\n if (entry.node.disabled) {\n return;\n }\n this.select(entry.node);\n if (entry.hasChildren) {\n this.toggle(entry.node);\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\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 default:\n // Enter / Space activate the focused row via its native button click.\n return;\n }\n event.preventDefault();\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 select(node: TreeNode): void {\n if (node.disabled) {\n return;\n }\n this.selectedId.set(node.id);\n this.activeId.set(node.id);\n this.nodeSelected.emit(node);\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>(`[data-node-id=\"${id}\"]`)\n ?.focus();\n }\n}\n","@for (entry of visibleNodes(); track entry.node.id) {\n <button\n type=\"button\"\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.tabindex]=\"isActive(entry.node.id) ? 0 : -1\"\n [class.selected]=\"isSelected(entry.node.id)\"\n [disabled]=\"entry.node.disabled\"\n [style.--_level]=\"entry.level\"\n (click)=\"onRowClick(entry)\">\n @if (entry.hasChildren) {\n <ds-icon\n class=\"caret\"\n [name]=\"entry.expanded ? 'chevronDown' : 'chevronRight'\"\n [size]=\"16\" />\n } @else {\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 <span class=\"label\">\n {{ entry.node.label }}\n </span>\n </button>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAiCa,aAAa,CAAA;AACP,IAAA,IAAI,GAAG,MAAM,CAA0B,UAAU,CAAC;;AAG1D,IAAA,KAAK,GAAG,KAAK,CAAsB,EAAE,4EAAC;;AAEtC,IAAA,WAAW,GAAG,KAAK,CAAc,IAAI,GAAG,EAAE,kFAAC;;AAE3C,IAAA,UAAU,GAAG,KAAK,CAAgB,IAAI,iFAAC;;IAEvC,YAAY,GAAG,MAAM,EAAY;AAEzB,IAAA,QAAQ,GAAG,MAAM,CAAgB,IAAI,+EAAC;;AAGpC,IAAA,YAAY,GAAG,QAAQ,CAAgB,MAAK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,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,WAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,kBAAA,EAAA,YAAA,EAAA,cAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,MAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,SAAA,EAAA,mBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECjC1B,ygCAmCA,EAAA,MAAA,EAAA,CAAA,iiGAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDXY,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FASZ,aAAa,EAAA,UAAA,EAAA,CAAA;kBAZzB,SAAS;+BACE,SAAS,EAAA,UAAA,EACP,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,CAAC,EAAA,aAAA,EAGT,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,WAAW,EAAE,mBAAmB;AACjC,qBAAA,EAAA,QAAA,EAAA,ygCAAA,EAAA,MAAA,EAAA,CAAA,iiGAAA,CAAA,EAAA;;;AE/BH;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-tree.mjs","sources":["../../../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 {\n Component,\n ElementRef,\n ViewEncapsulation,\n computed,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport type { TreeNode } from './tree.types';\n\ninterface VisibleNode {\n node: TreeNode;\n level: number;\n hasChildren: boolean;\n expanded: boolean;\n}\n\n@Component({\n selector: 'ds-tree',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './tree.component.html',\n styleUrl: './tree.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'tree',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class TreeComponent {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\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 /** Id of the selected node. */\n readonly selectedId = model<string | null>(null);\n /** Fires with the node when a row is selected (click or Enter/Space). */\n readonly nodeSelected = output<TreeNode>();\n\n private readonly activeId = signal<string | null>(null);\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 protected isExpanded(id: string): boolean {\n return this.expandedIds().has(id);\n }\n\n protected isSelected(id: string): boolean {\n return this.selectedId() === id;\n }\n\n protected isActive(id: string): boolean {\n return this.effectiveActiveId() === id;\n }\n\n protected onRowClick(entry: VisibleNode): void {\n if (entry.node.disabled) {\n return;\n }\n this.select(entry.node);\n if (entry.hasChildren) {\n this.toggle(entry.node);\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\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 default:\n // Enter and Space activate through the row button's native click.\n return;\n }\n event.preventDefault();\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 select(node: TreeNode): void {\n if (node.disabled) {\n return;\n }\n this.selectedId.set(node.id);\n this.activeId.set(node.id);\n this.nodeSelected.emit(node);\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>(`[data-node-id=\"${id}\"]`)\n ?.focus();\n }\n}\n","@for (entry of visibleNodes(); track entry.node.id) {\n <button\n type=\"button\"\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.tabindex]=\"isActive(entry.node.id) ? 0 : -1\"\n [class.selected]=\"isSelected(entry.node.id)\"\n [disabled]=\"entry.node.disabled\"\n [style.--_level]=\"entry.level\"\n (click)=\"onRowClick(entry)\">\n @if (entry.hasChildren) {\n <ds-icon\n class=\"caret\"\n [name]=\"entry.expanded ? 'chevronDown' : 'chevronRight'\"\n [size]=\"16\" />\n } @else {\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 <span class=\"label\">\n {{ entry.node.label }}\n </span>\n </button>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAiCa,aAAa,CAAA;AACP,IAAA,IAAI,GAAG,MAAM,CAA0B,UAAU,CAAC;;AAG1D,IAAA,KAAK,GAAG,KAAK,CAAsB,EAAE,4EAAC;;AAEtC,IAAA,WAAW,GAAG,KAAK,CAAc,IAAI,GAAG,EAAE,kFAAC;;AAE3C,IAAA,UAAU,GAAG,KAAK,CAAgB,IAAI,iFAAC;;IAEvC,YAAY,GAAG,MAAM,EAAY;AAEzB,IAAA,QAAQ,GAAG,MAAM,CAAgB,IAAI,+EAAC;AAEpC,IAAA,YAAY,GAAG,QAAQ,CAAgB,MAAK;QAC7D,MAAM,GAAG,GAAkB,EAAE;AAC7B,QAAA,MAAM,IAAI,GAAG,CAAC,IAAyB,EAAE,KAAa,KAAU;AAC9D,YAAA,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE;gBACvB,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM;gBAC3C,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;AACzC,gBAAA,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;AAChD,gBAAA,IAAI,WAAW,IAAI,QAAQ,EAA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AAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDXY,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FASZ,aAAa,EAAA,UAAA,EAAA,CAAA;kBAZzB,SAAS;+BACE,SAAS,EAAA,UAAA,EACP,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,CAAC,EAAA,aAAA,EAGT,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,WAAW,EAAE,mBAAmB;AACjC,qBAAA,EAAA,QAAA,EAAA,ygCAAA,EAAA,MAAA,EAAA,CAAA,iiGAAA,CAAA,EAAA;;;AE/BH;;AAEG;;;;"}
@@ -5,7 +5,7 @@ import { DS_INTL } from '@ids-group-ltd/ids-design-system/core';
5
5
 
6
6
  class W3wComponent {
7
7
  intl = inject(DS_INTL);
8
- /** Marker rendered before the address (e.g. the "///" glyph). */
8
+ /** Marker before the address. */
9
9
  prefix = input('///', ...(ngDevMode ? [{ debugName: "prefix" }] : /* istanbul ignore next */ []));
10
10
  /** The three-word address, rendered after `prefix`. */
11
11
  address = input.required(...(ngDevMode ? [{ debugName: "address" }] : /* istanbul ignore next */ []));
@@ -28,7 +28,7 @@ class W3wComponent {
28
28
  this.copied.emit(this.address());
29
29
  }
30
30
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: W3wComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
31
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: W3wComponent, isStandalone: true, selector: "ds-w3w", inputs: { prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, address: { classPropertyName: "address", publicName: "address", isSignal: true, isRequired: true, transformFunction: null }, copyable: { classPropertyName: "copyable", publicName: "copyable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { copied: "copied" }, host: { listeners: { "click": "onCopy()", "keydown.enter": "onCopy()", "keydown.space": "onKeyActivate($event)" }, properties: { "attr.role": "copyable() ? 'button' : null", "attr.tabindex": "copyable() ? 0 : null", "attr.aria-label": "copyable() ? intl().what3words.copy(prefix() + address()) : null" } }, ngImport: i0, template: "<ds-icon\n name=\"map\"\n [size]=\"14\" />\n\n<span class=\"words\">\n <span class=\"mark\">\n {{ prefix() }}\n </span>\n {{ address() }}\n</span>\n\n@if (copyable()) {\n <ds-icon\n name=\"copy\"\n [size]=\"12\" />\n}\n", styles: ["@charset \"UTF-8\";:host{--_w3w-bg-color: var(--ds-w3w-bg-color, var(--accent-subtitle));--_w3w-text-color: var(--ds-w3w-text-color, var(--accent));--_w3w-hover-bg-color: var(--ds-w3w-hover-bg-color, var(--accent-muted));--_w3w-mark-color: var(--ds-w3w-mark-color, var(--error));display:inline-flex;align-items:center;gap:var(--space-1-5);padding:var(--space-1) var(--space-2);background:var(--_w3w-bg-color);color:var(--_w3w-text-color);border-radius:var(--radius-md);font-family:var(--font-mono);font-size:var(--font-size-mono);cursor:pointer;transition:background-color var(--duration-fast) var(--ease-standard)}:host:hover{background:var(--_w3w-hover-bg-color)}:host .words{display:inline-flex}:host .mark{color:var(--_w3w-mark-color);font-weight:var(--font-weight-bold)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
31
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: W3wComponent, isStandalone: true, selector: "ds-w3w", inputs: { prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, address: { classPropertyName: "address", publicName: "address", isSignal: true, isRequired: true, transformFunction: null }, copyable: { classPropertyName: "copyable", publicName: "copyable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { copied: "copied" }, host: { listeners: { "click": "onCopy()", "keydown.enter": "onCopy()", "keydown.space": "onKeyActivate($event)" }, properties: { "attr.role": "copyable() ? 'button' : null", "attr.tabindex": "copyable() ? 0 : null", "attr.aria-label": "copyable() ? intl().what3words.copy(prefix() + address()) : null" } }, ngImport: i0, template: "<ds-icon\n name=\"map\"\n [size]=\"14\" />\n\n<span class=\"words\">\n <span class=\"mark\">\n {{ prefix() }}\n </span>\n {{ address() }}\n</span>\n\n@if (copyable()) {\n <ds-icon\n name=\"copy\"\n [size]=\"12\" />\n}\n", styles: [":host{--_w3w-bg-color: var(--ds-w3w-bg-color, var(--accent-subtitle));--_w3w-text-color: var(--ds-w3w-text-color, var(--accent));--_w3w-hover-bg-color: var(--ds-w3w-hover-bg-color, var(--accent-muted));--_w3w-mark-color: var(--ds-w3w-mark-color, var(--error));display:inline-flex;align-items:center;gap:var(--space-1-5);padding:var(--space-1) var(--space-2);background:var(--_w3w-bg-color);color:var(--_w3w-text-color);border-radius:var(--radius-md);font-family:var(--font-mono);font-size:var(--font-size-mono);cursor:pointer;transition:background-color var(--duration-fast) var(--ease-standard)}:host:hover{background:var(--_w3w-hover-bg-color)}:host .words{display:inline-flex}:host .mark{color:var(--_w3w-mark-color);font-weight:var(--font-weight-bold)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
32
32
  }
33
33
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: W3wComponent, decorators: [{
34
34
  type: Component,
@@ -39,7 +39,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
39
39
  '(click)': 'onCopy()',
40
40
  '(keydown.enter)': 'onCopy()',
41
41
  '(keydown.space)': 'onKeyActivate($event)',
42
- }, template: "<ds-icon\n name=\"map\"\n [size]=\"14\" />\n\n<span class=\"words\">\n <span class=\"mark\">\n {{ prefix() }}\n </span>\n {{ address() }}\n</span>\n\n@if (copyable()) {\n <ds-icon\n name=\"copy\"\n [size]=\"12\" />\n}\n", styles: ["@charset \"UTF-8\";:host{--_w3w-bg-color: var(--ds-w3w-bg-color, var(--accent-subtitle));--_w3w-text-color: var(--ds-w3w-text-color, var(--accent));--_w3w-hover-bg-color: var(--ds-w3w-hover-bg-color, var(--accent-muted));--_w3w-mark-color: var(--ds-w3w-mark-color, var(--error));display:inline-flex;align-items:center;gap:var(--space-1-5);padding:var(--space-1) var(--space-2);background:var(--_w3w-bg-color);color:var(--_w3w-text-color);border-radius:var(--radius-md);font-family:var(--font-mono);font-size:var(--font-size-mono);cursor:pointer;transition:background-color var(--duration-fast) var(--ease-standard)}:host:hover{background:var(--_w3w-hover-bg-color)}:host .words{display:inline-flex}:host .mark{color:var(--_w3w-mark-color);font-weight:var(--font-weight-bold)}\n"] }]
42
+ }, template: "<ds-icon\n name=\"map\"\n [size]=\"14\" />\n\n<span class=\"words\">\n <span class=\"mark\">\n {{ prefix() }}\n </span>\n {{ address() }}\n</span>\n\n@if (copyable()) {\n <ds-icon\n name=\"copy\"\n [size]=\"12\" />\n}\n", styles: [":host{--_w3w-bg-color: var(--ds-w3w-bg-color, var(--accent-subtitle));--_w3w-text-color: var(--ds-w3w-text-color, var(--accent));--_w3w-hover-bg-color: var(--ds-w3w-hover-bg-color, var(--accent-muted));--_w3w-mark-color: var(--ds-w3w-mark-color, var(--error));display:inline-flex;align-items:center;gap:var(--space-1-5);padding:var(--space-1) var(--space-2);background:var(--_w3w-bg-color);color:var(--_w3w-text-color);border-radius:var(--radius-md);font-family:var(--font-mono);font-size:var(--font-size-mono);cursor:pointer;transition:background-color var(--duration-fast) var(--ease-standard)}:host:hover{background:var(--_w3w-hover-bg-color)}:host .words{display:inline-flex}:host .mark{color:var(--_w3w-mark-color);font-weight:var(--font-weight-bold)}\n"] }]
43
43
  }], propDecorators: { prefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefix", required: false }] }], address: [{ type: i0.Input, args: [{ isSignal: true, alias: "address", required: true }] }], copyable: [{ type: i0.Input, args: [{ isSignal: true, alias: "copyable", required: false }] }], copied: [{ type: i0.Output, args: ["copied"] }] } });
44
44
 
45
45
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-w3w.mjs","sources":["../../../src/lib/components/w3w/w3w.component.ts","../../../src/lib/components/w3w/w3w.component.html","../../../src/lib/components/w3w/ids-group-ltd-ids-design-system-components-w3w.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n inject,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-w3w',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './w3w.component.html',\n styleUrl: './w3w.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.role]': \"copyable() ? 'button' : null\",\n '[attr.tabindex]': 'copyable() ? 0 : null',\n '[attr.aria-label]':\n 'copyable() ? intl().what3words.copy(prefix() + address()) : null',\n '(click)': 'onCopy()',\n '(keydown.enter)': 'onCopy()',\n '(keydown.space)': 'onKeyActivate($event)',\n },\n})\nexport class W3wComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Marker rendered before the address (e.g. the \"///\" glyph). */\n readonly prefix = input<string>('///');\n /** The three-word address, rendered after `prefix`. */\n readonly address = input.required<string>();\n /** Makes the address clickable/focusable and copies `prefix` + `address` to the clipboard. */\n readonly copyable = input(true, { transform: booleanAttribute });\n /** Fires with `address` after a successful copy. */\n readonly copied = output<string>();\n\n protected onKeyActivate(event: Event): void {\n event.preventDefault();\n this.onCopy();\n }\n\n protected onCopy(): void {\n if (!this.copyable()) {\n return;\n }\n const text = `${this.prefix()}${this.address()}`;\n if (typeof navigator !== 'undefined' && navigator.clipboard) {\n void navigator.clipboard.writeText(text);\n }\n this.copied.emit(this.address());\n }\n}\n","<ds-icon\n name=\"map\"\n [size]=\"14\" />\n\n<span class=\"words\">\n <span class=\"mark\">\n {{ prefix() }}\n </span>\n {{ address() }}\n</span>\n\n@if (copyable()) {\n <ds-icon\n name=\"copy\"\n [size]=\"12\" />\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MA4Ba,YAAY,CAAA;AACJ,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;;AAGhC,IAAA,MAAM,GAAG,KAAK,CAAS,KAAK,6EAAC;;AAE7B,IAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,6EAAU;;IAElC,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAEvD,MAAM,GAAG,MAAM,EAAU;AAExB,IAAA,aAAa,CAAC,KAAY,EAAA;QAClC,KAAK,CAAC,cAAc,EAAE;QACtB,IAAI,CAAC,MAAM,EAAE;IACf;IAEU,MAAM,GAAA;AACd,QAAA,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE;YACpB;QACF;AACA,QAAA,MAAM,IAAI,GAAG,CAAA,EAAG,IAAI,CAAC,MAAM,EAAE,CAAA,EAAG,IAAI,CAAC,OAAO,EAAE,EAAE;QAChD,IAAI,OAAO,SAAS,KAAK,WAAW,IAAI,SAAS,CAAC,SAAS,EAAE;YAC3D,KAAK,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC;QAC1C;QACA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;IAClC;wGA1BW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,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wBAAA,mBAAmB,EACjB,kEAAkE;AACpE,wBAAA,SAAS,EAAE,UAAU;AACrB,wBAAA,iBAAiB,EAAE,UAAU;AAC7B,wBAAA,iBAAiB,EAAE,uBAAuB;AAC3C,qBAAA,EAAA,QAAA,EAAA,4OAAA,EAAA,MAAA,EAAA,CAAA,2wBAAA,CAAA,EAAA;;;AE1BH;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-w3w.mjs","sources":["../../../src/lib/components/w3w/w3w.component.ts","../../../src/lib/components/w3w/w3w.component.html","../../../src/lib/components/w3w/ids-group-ltd-ids-design-system-components-w3w.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n inject,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-w3w',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './w3w.component.html',\n styleUrl: './w3w.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.role]': \"copyable() ? 'button' : null\",\n '[attr.tabindex]': 'copyable() ? 0 : null',\n '[attr.aria-label]':\n 'copyable() ? intl().what3words.copy(prefix() + address()) : null',\n '(click)': 'onCopy()',\n '(keydown.enter)': 'onCopy()',\n '(keydown.space)': 'onKeyActivate($event)',\n },\n})\nexport class W3wComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Marker before the address. */\n readonly prefix = input<string>('///');\n /** The three-word address, rendered after `prefix`. */\n readonly address = input.required<string>();\n /** Makes the address clickable/focusable and copies `prefix` + `address` to the clipboard. */\n readonly copyable = input(true, { transform: booleanAttribute });\n /** Fires with `address` after a successful copy. */\n readonly copied = output<string>();\n\n protected onKeyActivate(event: Event): void {\n event.preventDefault();\n this.onCopy();\n }\n\n protected onCopy(): void {\n if (!this.copyable()) {\n return;\n }\n const text = `${this.prefix()}${this.address()}`;\n if (typeof navigator !== 'undefined' && navigator.clipboard) {\n void navigator.clipboard.writeText(text);\n }\n this.copied.emit(this.address());\n }\n}\n","<ds-icon\n name=\"map\"\n [size]=\"14\" />\n\n<span class=\"words\">\n <span class=\"mark\">\n {{ prefix() }}\n </span>\n {{ address() }}\n</span>\n\n@if (copyable()) {\n <ds-icon\n name=\"copy\"\n [size]=\"12\" />\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MA4Ba,YAAY,CAAA;AACJ,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;;AAGhC,IAAA,MAAM,GAAG,KAAK,CAAS,KAAK,6EAAC;;AAE7B,IAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,6EAAU;;IAElC,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAEvD,MAAM,GAAG,MAAM,EAAU;AAExB,IAAA,aAAa,CAAC,KAAY,EAAA;QAClC,KAAK,CAAC,cAAc,EAAE;QACtB,IAAI,CAAC,MAAM,EAAE;IACf;IAEU,MAAM,GAAA;AACd,QAAA,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE;YACpB;QACF;AACA,QAAA,MAAM,IAAI,GAAG,CAAA,EAAG,IAAI,CAAC,MAAM,EAAE,CAAA,EAAG,IAAI,CAAC,OAAO,EAAE,EAAE;QAChD,IAAI,OAAO,SAAS,KAAK,WAAW,IAAI,SAAS,CAAC,SAAS,EAAE;YAC3D,KAAK,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC;QAC1C;QACA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;IAClC;wGA1BW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,E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