@ids-group-ltd/ids-design-system 0.14.7 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/CHANGELOG.md +735 -230
  2. package/components.md +64 -25
  3. package/docs/agent/INDEX.md +3 -1
  4. package/docs/agent/charts/ds-bar-chart.md +7 -4
  5. package/docs/agent/charts/ds-chart.md +1 -1
  6. package/docs/agent/charts/ds-column-chart.md +1 -1
  7. package/docs/agent/charts/ds-funnel-chart.md +1 -1
  8. package/docs/agent/charts/ds-pie-chart.md +1 -1
  9. package/docs/agent/charts/ds-waterfall-chart.md +2 -2
  10. package/docs/agent/feedback/ds-loading-overlay.md +2 -0
  11. package/docs/agent/feedback/ds-skeleton.md +1 -1
  12. package/docs/agent/forms/ds-button.md +2 -2
  13. package/docs/agent/forms/ds-date-picker.md +1 -0
  14. package/docs/agent/foundations/global-helper-classes.md +3 -3
  15. package/docs/agent/overlays/ds-bottom-sheet.md +1 -1
  16. package/docs/agent/overlays/ds-definition-term.md +10 -0
  17. package/docs/agent/overlays/ds-drawer.md +1 -1
  18. package/docs/agent/overlays/ds-info-hint.md +10 -0
  19. package/docs/agent/overlays/ds-menu.md +1 -1
  20. package/docs/agent/overlays/ds-modal-card.md +1 -1
  21. package/docs/agent/overlays/ds-modal.md +19 -1
  22. package/docs/agent/overlays/ds-tooltip-panel.md +1 -1
  23. package/docs/agent/overlays/ds-tooltip.md +3 -3
  24. package/docs/agent/tables/ds-table.md +3 -2
  25. package/eslint/deprecated-api.json +889 -0
  26. package/eslint/index.mjs +394 -0
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +6 -12
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +19 -7
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +2 -2
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +169 -37
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +2 -2
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +2 -2
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +195 -27
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +23 -20
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +9 -9
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs +107 -0
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -0
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +2 -2
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +5 -15
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +2 -2
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +11 -8
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +4 -3
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +2 -2
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +44 -0
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -0
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +6 -6
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +10 -4
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +4 -4
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +2 -2
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +136 -29
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +21 -26
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +19 -7
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +2 -2
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +2 -2
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +8 -6
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +2 -2
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +4 -4
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +19 -5
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -2
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +21 -7
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +6 -6
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +2 -2
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +2 -2
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +2 -2
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +2 -2
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +4 -4
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +223 -8
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +4 -4
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +4 -4
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +410 -145
  186. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  187. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
  188. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
  189. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
  190. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  191. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
  192. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  193. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +14 -11
  194. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  195. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +86 -2
  196. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  197. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +18 -81
  198. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  199. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +2 -2
  200. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  201. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +1 -0
  202. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
  203. package/fesm2022/ids-group-ltd-ids-design-system.mjs +2 -0
  204. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  205. package/migrations/0.10.0.json +79 -21
  206. package/migrations/0.10.1.json +38 -21
  207. package/migrations/0.10.2.json +44 -7
  208. package/migrations/0.10.3.json +7 -5
  209. package/migrations/0.11.0.json +10 -7
  210. package/migrations/0.11.1.json +25 -14
  211. package/migrations/0.11.2.json +3 -3
  212. package/migrations/0.11.3.json +9 -6
  213. package/migrations/0.11.4.json +13 -12
  214. package/migrations/0.12.1.json +41 -14
  215. package/migrations/0.12.2.json +7 -6
  216. package/migrations/0.12.3.json +3 -3
  217. package/migrations/0.13.0.json +11 -11
  218. package/migrations/0.13.1.json +60 -8
  219. package/migrations/0.13.2.json +98 -44
  220. package/migrations/0.13.3.json +46 -16
  221. package/migrations/0.13.4.json +23 -22
  222. package/migrations/0.14.0.json +5 -5
  223. package/migrations/0.14.1.json +5 -5
  224. package/migrations/0.14.2.json +1 -1
  225. package/migrations/0.14.4.json +6 -5
  226. package/migrations/0.14.5.json +13 -7
  227. package/migrations/0.14.6.json +2 -2
  228. package/migrations/0.14.8.json +56 -0
  229. package/migrations/0.15.0.json +999 -0
  230. package/migrations/0.2.0.json +2 -2
  231. package/migrations/0.3.0.json +43 -6
  232. package/migrations/0.4.0.json +95 -13
  233. package/migrations/0.5.0.json +116 -10
  234. package/migrations/0.5.1.json +97 -11
  235. package/migrations/0.6.0.json +30 -1
  236. package/migrations/0.6.1.json +22 -1
  237. package/migrations/0.6.2.json +8 -4
  238. package/migrations/0.6.3.json +17 -5
  239. package/migrations/0.7.0.json +58 -9
  240. package/migrations/0.7.1.json +62 -8
  241. package/migrations/0.8.0.json +60 -12
  242. package/migrations/0.9.0.json +68 -25
  243. package/migrations/0.9.1.json +1 -1
  244. package/migrations/README.md +57 -3
  245. package/package.json +19 -1
  246. package/schematics/check-overrides/index.cjs +4 -11
  247. package/schematics/check-overrides/scan.cjs +12 -1
  248. package/schematics/check-overrides/surface.json +51 -10
  249. package/schematics/ng-add/index.cjs +7 -1
  250. package/stylelint/deprecated-tokens.json +2697 -0
  251. package/stylelint/index.mjs +94 -0
  252. package/stylelint/since-version.mjs +26 -0
  253. package/styles/_chart-motion.scss +3 -9
  254. package/styles/_chip-row.scss +5 -2
  255. package/styles/_clear-button.scss +2 -0
  256. package/styles/_component-base.scss +56 -0
  257. package/styles/_dismiss-button.scss +16 -0
  258. package/styles/_dropdown-overlay.scss +19 -0
  259. package/styles/_focus.scss +4 -1
  260. package/styles/_overlay-motion.scss +4 -6
  261. package/styles/_pinned.scss +43 -0
  262. package/styles/_skeleton-shimmer.scss +2 -8
  263. package/styles/_table-controls.scss +4 -0
  264. package/styles/_target.scss +40 -0
  265. package/styles/_text-clip.scss +23 -4
  266. package/styles/_tokens.scss +0 -1
  267. package/styles/_typography.scss +2 -0
  268. package/styles/_visually-hidden.scss +2 -0
  269. package/styles/ds.scss +0 -1
  270. package/themes/README.md +7 -7
  271. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +4 -1
  272. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +74 -4
  273. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
  274. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +40 -4
  275. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +8 -3
  276. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +4 -3
  277. package/types/ids-group-ltd-ids-design-system-components-definition-term.d.ts +22 -0
  278. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +0 -1
  279. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +7 -3
  280. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +1 -0
  281. package/types/ids-group-ltd-ids-design-system-components-info-hint.d.ts +14 -0
  282. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +5 -0
  283. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +8 -3
  284. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +0 -2
  285. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +4 -1
  286. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +5 -3
  287. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +13 -3
  288. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +4 -1
  289. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +30 -3
  290. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +48 -17
  291. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +6 -2
  292. package/types/ids-group-ltd-ids-design-system-components.d.ts +26 -2
  293. package/types/ids-group-ltd-ids-design-system-core.d.ts +7 -11
  294. package/types/ids-group-ltd-ids-design-system.d.ts +3 -1
@@ -1,31 +1,258 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, ViewEncapsulation, Component, inject, ElementRef, booleanAttribute, afterNextRender, HostListener, Directive } from '@angular/core';
2
+ import { input, computed, ViewEncapsulation, Component, InjectionToken, inject, ElementRef, DOCUMENT, 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, overlayPlacementOf } from '@ids-group-ltd/ids-design-system/components';
6
5
  import { isTextClipped } from '@ids-group-ltd/ids-design-system/core';
6
+ import { listenForEscape, prepareOverlayEnter, closeOnScroll, overlayPlacementOf } from '@ids-group-ltd/ids-design-system/components';
7
+
8
+ const TOKEN = /(\\\*\\\*|\*\*)/;
9
+ const ESCAPED = '\\*\\*';
10
+ const BOLD = '**';
11
+ /** Splits tip text on `**` into plain and bold runs. `\*\*` is a literal `**`; an unpaired `**` is literal too. */
12
+ function parseTooltipMarkup(text) {
13
+ const tokens = text.split(TOKEN);
14
+ const markerCount = tokens.filter((token) => token === BOLD).length;
15
+ const pairedMarkers = markerCount - (markerCount % 2);
16
+ const segments = [];
17
+ let bold = false;
18
+ let seen = 0;
19
+ for (const token of tokens) {
20
+ let piece = token;
21
+ if (token === ESCAPED) {
22
+ piece = BOLD;
23
+ }
24
+ else if (token === BOLD && seen++ < pairedMarkers) {
25
+ bold = !bold;
26
+ continue;
27
+ }
28
+ if (!piece) {
29
+ continue;
30
+ }
31
+ const last = segments[segments.length - 1];
32
+ if (last?.bold === bold) {
33
+ last.text += piece;
34
+ }
35
+ else {
36
+ segments.push({ text: piece, bold });
37
+ }
38
+ }
39
+ return segments;
40
+ }
41
+ function escapeTooltipMarkup(text) {
42
+ return text.replaceAll(BOLD, ESCAPED);
43
+ }
44
+ function plainTooltipText(text) {
45
+ return parseTooltipMarkup(text)
46
+ .map((segment) => segment.text)
47
+ .join('');
48
+ }
7
49
 
8
50
  class TooltipPanelComponent {
9
- /** Tooltip text content. */
51
+ /** Tooltip text; `**bold**` runs render bold. */
10
52
  text = input.required(...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
53
+ segments = computed(() => parseTooltipMarkup(this.text()), ...(ngDevMode ? [{ debugName: "segments" }] : /* istanbul ignore next */ []));
11
54
  /** Side of the trigger the panel is positioned on; also drives the arrow class. */
12
55
  placement = input.required(...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
56
+ /** Whether the arrow pointing at the trigger is drawn. */
57
+ arrow = input(true, ...(ngDevMode ? [{ debugName: "arrow" }] : /* istanbul ignore next */ []));
13
58
  /** Element `id`, referenced by the trigger's `aria-describedby`. */
14
59
  panelId = input('', ...(ngDevMode ? [{ debugName: "panelId" }] : /* istanbul ignore next */ []));
15
60
  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: [":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"] });
61
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.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 }, arrow: { classPropertyName: "arrow", publicName: "arrow", isSignal: true, isRequired: false, 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'", "class.no-arrow": "!arrow()" } }, ngImport: i0, template: `
62
+ @for (segment of segments(); track $index) {
63
+ @if (segment.bold) {
64
+ <strong [textContent]="segment.text"></strong>
65
+ } @else {
66
+ <span [textContent]="segment.text"></span>
67
+ }
68
+ }
69
+ `, isInline: true, styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}: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));--_tooltip-arrow-inset: calc(var(--_tooltip-radius) + var(--tooltip-arrow));--_tooltip-arrow-left: clamp(min(var(--_tooltip-arrow-inset), 50%), var(--_tooltip-arrow-x, 50%), max(100% - var(--_tooltip-arrow-inset), 50%));--_tooltip-arrow-top: clamp(min(var(--_tooltip-arrow-inset), 50%), var(--_tooltip-arrow-y, 50%), max(100% - var(--_tooltip-arrow-inset), 50%));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;white-space:pre-line;z-index:var(--layer-tooltip);box-shadow:var(--_tooltip-shadow)}:host strong{font-weight:var(--font-weight-bold)}: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(.no-arrow):after{display:none}:host(.bottom):after{top:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));left:var(--_tooltip-arrow-left);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:var(--_tooltip-arrow-left);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:var(--_tooltip-arrow-top);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:var(--_tooltip-arrow-top);margin-top:calc(var(--tooltip-arrow) / -2);border-bottom-width:var(--border-width-default);border-left-width:var(--border-width-default)}\n"] });
17
70
  }
18
71
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TooltipPanelComponent, decorators: [{
19
72
  type: Component,
20
- args: [{ selector: 'ds-tooltip-panel', standalone: true, template: `{{ text() }}`, host: {
73
+ args: [{ selector: 'ds-tooltip-panel', standalone: true, template: `
74
+ @for (segment of segments(); track $index) {
75
+ @if (segment.bold) {
76
+ <strong [textContent]="segment.text"></strong>
77
+ } @else {
78
+ <span [textContent]="segment.text"></span>
79
+ }
80
+ }
81
+ `, host: {
21
82
  role: 'tooltip',
22
83
  '[attr.id]': 'panelId()',
23
84
  '[class.top]': "placement() === 'top'",
24
85
  '[class.bottom]': "placement() === 'bottom'",
25
86
  '[class.left]': "placement() === 'left'",
26
87
  '[class.right]': "placement() === 'right'",
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
- }], 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 }] }] } });
88
+ '[class.no-arrow]': '!arrow()',
89
+ }, encapsulation: ViewEncapsulation.Emulated, styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}: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));--_tooltip-arrow-inset: calc(var(--_tooltip-radius) + var(--tooltip-arrow));--_tooltip-arrow-left: clamp(min(var(--_tooltip-arrow-inset), 50%), var(--_tooltip-arrow-x, 50%), max(100% - var(--_tooltip-arrow-inset), 50%));--_tooltip-arrow-top: clamp(min(var(--_tooltip-arrow-inset), 50%), var(--_tooltip-arrow-y, 50%), max(100% - var(--_tooltip-arrow-inset), 50%));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;white-space:pre-line;z-index:var(--layer-tooltip);box-shadow:var(--_tooltip-shadow)}:host strong{font-weight:var(--font-weight-bold)}: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(.no-arrow):after{display:none}:host(.bottom):after{top:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));left:var(--_tooltip-arrow-left);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:var(--_tooltip-arrow-left);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:var(--_tooltip-arrow-top);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:var(--_tooltip-arrow-top);margin-top:calc(var(--tooltip-arrow) / -2);border-bottom-width:var(--border-width-default);border-left-width:var(--border-width-default)}\n"] }]
90
+ }], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: true }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: true }] }], arrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "arrow", required: false }] }], panelId: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelId", required: false }] }] } });
91
+
92
+ const NATIVELY_FOCUSABLE = 'a[href], button, input, select, textarea, summary';
93
+ const FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]`;
94
+ const KEYBOARD_FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]:not([tabindex^="-"])`;
95
+ const WIDGET_ROLES = [
96
+ 'button',
97
+ 'link',
98
+ 'tab',
99
+ 'option',
100
+ 'menuitem',
101
+ 'menuitemcheckbox',
102
+ 'menuitemradio',
103
+ 'row',
104
+ 'gridcell',
105
+ 'combobox',
106
+ 'checkbox',
107
+ 'radio',
108
+ 'switch',
109
+ 'treeitem',
110
+ ]
111
+ .map((role) => `[role="${role}"]`)
112
+ .join(', ');
113
+ const INTERACTIVE = `${NATIVELY_FOCUSABLE}, tr:not([role]), ${WIDGET_ROLES}`;
114
+ // A widget role owns its focus (a listbox moves it by `aria-activedescendant`), and a hidden subtree must hold no tab stop.
115
+ const REACHED_OR_HIDDEN = `${NATIVELY_FOCUSABLE}, tr[tabindex]:not([role]), ${WIDGET_ROLES}, [aria-hidden="true"], [inert]`;
116
+ const clippedHostsByAncestor = new WeakMap();
117
+ function firstClippedHost(triggers) {
118
+ return [...triggers]
119
+ .sort((a, b) => a.host.compareDocumentPosition(b.host) & Node.DOCUMENT_POSITION_FOLLOWING
120
+ ? -1
121
+ : 1)
122
+ .find((trigger) => trigger.isClipped());
123
+ }
124
+ /**
125
+ * A clipped host that is not focusable itself opens its tip when its focusable ancestor takes
126
+ * keyboard focus. `:focus-visible` keeps a click from opening it. Only the first clipped host of
127
+ * one ancestor opens. Returns the teardown, or null when the host needs no listening.
128
+ */
129
+ function watchFocusableAncestor(trigger) {
130
+ const host = trigger.host;
131
+ if (host.matches(FOCUSABLE)) {
132
+ return null;
133
+ }
134
+ const ancestor = host.parentElement?.closest(FOCUSABLE);
135
+ if (!ancestor?.matches(INTERACTIVE)) {
136
+ return null;
137
+ }
138
+ let triggers = clippedHostsByAncestor.get(ancestor);
139
+ if (!triggers) {
140
+ triggers = new Set();
141
+ clippedHostsByAncestor.set(ancestor, triggers);
142
+ }
143
+ triggers.add(trigger);
144
+ const open = (event) => {
145
+ if (event.target !== ancestor ||
146
+ // Tested here, not at registration: a disabled trigger carries tabindex="-1" until enabled.
147
+ !ancestor.matches(KEYBOARD_FOCUSABLE) ||
148
+ !ancestor.matches(':focus-visible') ||
149
+ firstClippedHost(triggers) !== trigger) {
150
+ return;
151
+ }
152
+ trigger.openFor(ancestor);
153
+ };
154
+ const close = () => trigger.close();
155
+ ancestor.addEventListener('focusin', open);
156
+ ancestor.addEventListener('focusout', close);
157
+ ancestor.addEventListener('click', close);
158
+ ancestor.addEventListener('keydown', close);
159
+ return () => {
160
+ triggers.delete(trigger);
161
+ ancestor.removeEventListener('focusin', open);
162
+ ancestor.removeEventListener('focusout', close);
163
+ ancestor.removeEventListener('click', close);
164
+ ancestor.removeEventListener('keydown', close);
165
+ };
166
+ }
167
+ const tabStopSyncs = new Map();
168
+ let resizes = null;
169
+ let mutations = null;
170
+ function syncOf(node) {
171
+ for (let current = node; current; current = current.parentElement) {
172
+ const sync = tabStopSyncs.get(current);
173
+ if (sync) {
174
+ return sync;
175
+ }
176
+ }
177
+ return undefined;
178
+ }
179
+ // Every isClipped() read forces layout once a tabindex write has dirtied it, so all reads go first.
180
+ function syncAll(targets) {
181
+ const syncs = [...new Set(targets.map(syncOf))].filter((sync) => sync !== undefined);
182
+ const decided = syncs.map((sync) => [sync, sync.isNeeded()]);
183
+ decided.forEach(([sync, needed]) => sync.apply(needed));
184
+ }
185
+ /**
186
+ * A clipped host that no keyboard path reaches - not focusable, inside no control or widget role,
187
+ * holding no focusable descendant - takes `tabindex="0"` while it is clipped, and loses it once its
188
+ * text fits and it does not hold focus. A tabindex it did not write is never touched. One observer
189
+ * pair serves every host. Returns the teardown, or null when the host is reached another way.
190
+ */
191
+ function tabStopWhileClipped(trigger) {
192
+ const host = trigger.host;
193
+ if (host.matches(FOCUSABLE) || host.closest(REACHED_OR_HIDDEN)) {
194
+ return null;
195
+ }
196
+ let written = false;
197
+ const isNeeded = () => trigger.isClipped() && !host.querySelector(KEYBOARD_FOCUSABLE);
198
+ const apply = (needed) => {
199
+ if (needed && !host.hasAttribute('tabindex')) {
200
+ host.setAttribute('tabindex', '0');
201
+ written = true;
202
+ }
203
+ else if (!needed &&
204
+ written &&
205
+ host.ownerDocument.activeElement !== host) {
206
+ written = false;
207
+ if (host.getAttribute('tabindex') === '0') {
208
+ host.removeAttribute('tabindex');
209
+ }
210
+ }
211
+ };
212
+ const sync = () => apply(isNeeded());
213
+ resizes ??= new ResizeObserver((entries) => syncAll(entries.map((entry) => entry.target)));
214
+ mutations ??= new MutationObserver((records) => syncAll(records.map((record) => record.target)));
215
+ tabStopSyncs.set(host, { isNeeded, apply });
216
+ resizes.observe(host);
217
+ mutations.observe(host, {
218
+ characterData: true,
219
+ childList: true,
220
+ subtree: true,
221
+ });
222
+ host.addEventListener('focusout', sync);
223
+ return () => {
224
+ tabStopSyncs.delete(host);
225
+ resizes?.unobserve(host);
226
+ host.removeEventListener('focusout', sync);
227
+ };
228
+ }
229
+
230
+ /**
231
+ * `''`, `true` and `'true'` test the host itself; any other string is a selector for the element
232
+ * inside the host to test; `false`, `'false'`, `null` and `undefined` turn the test off.
233
+ */
234
+ function toClipTarget(value) {
235
+ if (value === true || value === '' || value === 'true') {
236
+ return { selector: null };
237
+ }
238
+ return !value || value === 'false' ? null : { selector: value };
239
+ }
240
+ function clipElement(host, target) {
241
+ return target?.selector
242
+ ? host.querySelector(target.selector)
243
+ : host;
244
+ }
245
+ function isHostClipped(host, target) {
246
+ const element = clipElement(host, target);
247
+ return element !== null && isTextClipped(element);
248
+ }
249
+ function ownTextOf(element) {
250
+ return (element?.textContent ?? '').trim();
251
+ }
252
+ function textContains(haystack, needle) {
253
+ const collapse = (value) => value.replace(/\s+/g, ' ').trim();
254
+ return collapse(haystack).includes(collapse(needle));
255
+ }
29
256
 
30
257
  const TRIGGER_GAP_PX = 8;
31
258
  const VIEWPORT_MARGIN_PX = 8;
@@ -35,87 +262,138 @@ const OPPOSITE_PLACEMENT = {
35
262
  left: 'right',
36
263
  right: 'left',
37
264
  };
38
- const NATIVELY_FOCUSABLE = 'a[href], button, input, select, textarea, summary';
39
- const FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]`;
40
- const KEYBOARD_FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]:not([tabindex^="-"])`;
41
- const INTERACTIVE = [
42
- NATIVELY_FOCUSABLE,
43
- 'tr:not([role])',
44
- ...[
45
- 'button',
46
- 'link',
47
- 'tab',
48
- 'option',
49
- 'menuitem',
50
- 'menuitemcheckbox',
51
- 'menuitemradio',
52
- 'row',
53
- 'gridcell',
54
- 'combobox',
55
- 'checkbox',
56
- 'radio',
57
- 'switch',
58
- 'treeitem',
59
- ].map((role) => `[role="${role}"]`),
60
- ].join(', ');
61
- const clippedHostsByAncestor = new WeakMap();
62
- function firstClippedHost(tooltips) {
63
- return [...tooltips]
64
- .sort((a, b) => a.hostElement.compareDocumentPosition(b.hostElement) &
65
- Node.DOCUMENT_POSITION_FOLLOWING
66
- ? -1
67
- : 1)
68
- .find((tooltip) => tooltip.isClipped());
265
+ function positionFor(placement) {
266
+ switch (placement) {
267
+ case 'top':
268
+ return {
269
+ originX: 'center',
270
+ originY: 'top',
271
+ overlayX: 'center',
272
+ overlayY: 'bottom',
273
+ offsetY: -TRIGGER_GAP_PX,
274
+ };
275
+ case 'bottom':
276
+ return {
277
+ originX: 'center',
278
+ originY: 'bottom',
279
+ overlayX: 'center',
280
+ overlayY: 'top',
281
+ offsetY: TRIGGER_GAP_PX,
282
+ };
283
+ case 'left':
284
+ return {
285
+ originX: 'start',
286
+ originY: 'center',
287
+ overlayX: 'end',
288
+ overlayY: 'center',
289
+ offsetX: -TRIGGER_GAP_PX,
290
+ };
291
+ case 'right':
292
+ return {
293
+ originX: 'end',
294
+ originY: 'center',
295
+ overlayX: 'start',
296
+ overlayY: 'center',
297
+ offsetX: TRIGGER_GAP_PX,
298
+ };
299
+ }
300
+ }
301
+ function positionsFor(placement) {
302
+ return [positionFor(placement), positionFor(OPPOSITE_PLACEMENT[placement])];
303
+ }
304
+ // positionChanges skips a re-apply that only pushes the pane; the styles CDK writes do not.
305
+ // The pane is measured, not the panel: the panel's enter animation scales it.
306
+ function pointArrowAtHost(ref, panel, host) {
307
+ const pane = ref.overlayElement;
308
+ const point = () => {
309
+ const trigger = host.getBoundingClientRect();
310
+ const box = pane.getBoundingClientRect();
311
+ panel.style.setProperty('--_tooltip-arrow-x', `${trigger.left + trigger.width / 2 - box.left - panel.clientLeft}px`);
312
+ panel.style.setProperty('--_tooltip-arrow-y', `${trigger.top + trigger.height / 2 - box.top - panel.clientTop}px`);
313
+ };
314
+ const observer = new MutationObserver(point);
315
+ observer.observe(ref.hostElement, { attributeFilter: ['style'] });
316
+ observer.observe(pane, { attributeFilter: ['style'] });
317
+ ref.detachments().subscribe({ complete: () => observer.disconnect() });
69
318
  }
319
+
320
+ const PINNED_ATTRIBUTE = 'data-ds-tooltip-pinned';
70
321
  let nextId = 0;
322
+ /** @internal Lets a component that hosts the tooltip make a clipped host lead the tip with its own text. */
323
+ const TOOLTIP_LEADS_WITH_OWN_TEXT = new InjectionToken('TOOLTIP_LEADS_WITH_OWN_TEXT');
324
+ /** @internal Lets a component that hosts the tooltip decide `dsTooltipPinOnClick` for it. */
325
+ const TOOLTIP_PIN_ON_CLICK = new InjectionToken('TOOLTIP_PIN_ON_CLICK');
71
326
  class TooltipDirective {
72
327
  overlay = inject(Overlay);
73
328
  host = inject((ElementRef));
329
+ document = inject(DOCUMENT);
330
+ hostPinOnClick = inject(TOOLTIP_PIN_ON_CLICK, {
331
+ self: true,
332
+ optional: true,
333
+ });
334
+ leadsWithOwnText = inject(TOOLTIP_LEADS_WITH_OWN_TEXT, { self: true, optional: true }) ??
335
+ false;
74
336
  /** Tip text. An empty string turns the tooltip off. */
75
337
  dsTooltip = input('', ...(ngDevMode ? [{ debugName: "dsTooltip" }] : /* istanbul ignore next */ []));
76
338
  /** Which side the tip opens on. With no room there it opens on the opposite side. */
77
339
  dsTooltipPlacement = input('top', ...(ngDevMode ? [{ debugName: "dsTooltipPlacement" }] : /* istanbul ignore next */ []));
78
340
  /** Milliseconds before the tip appears. Hiding is immediate. */
79
341
  dsTooltipDelay = input(120, ...(ngDevMode ? [{ debugName: "dsTooltipDelay" }] : /* istanbul ignore next */ []));
342
+ /** Draws the arrow that points at the host. Turn it off where the tip sits flush against it. */
343
+ dsTooltipArrow = input(true, { ...(ngDevMode ? { debugName: "dsTooltipArrow" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
80
344
  /** Show the tip only while the host shows less text than it holds. Re-tested on every open.
345
+ * A boolean or the bare attribute tests the host. A selector tests the element it matches inside
346
+ * the host and discloses that element's text; while nothing matches, no clipped tip opens.
81
347
  *
82
- * Applies the tooltip on its own: without a `dsTooltip` the host's own text is disclosed. A tip
348
+ * Applies the tooltip on its own: without a `dsTooltip` the tested text is disclosed. A tip
83
349
  * 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. */
85
- dsTooltipWhenClipped = input(false, { ...(ngDevMode ? { debugName: "dsTooltipWhenClipped" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
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. */
88
- dsTooltipTextSelector = input(null, ...(ngDevMode ? [{ debugName: "dsTooltipTextSelector" }] : /* istanbul ignore next */ []));
350
+ * that says more than the host does describes it as usual.
351
+ *
352
+ * Keyboard focus opens it too: on the host, on a control or widget around it, or on a control
353
+ * inside it. A clipped host that none of these reaches takes `tabindex="0"` while it is clipped. */
354
+ dsTooltipWhenClipped = input(null, { ...(ngDevMode ? { debugName: "dsTooltipWhenClipped" } : /* istanbul ignore next */ {}), transform: toClipTarget });
355
+ /** Opens the tip with no delay, and a click on the host keeps it open after the pointer leaves
356
+ * until a click outside, `Escape` or blur; a second click closes it. Without it a click closes the tip.
357
+ * While pinned the host carries `data-ds-tooltip-pinned`, a hook for styling the pinned trigger. */
358
+ dsTooltipPinOnClick = input(false, { ...(ngDevMode ? { debugName: "dsTooltipPinOnClick" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
359
+ isClipped() {
360
+ return isHostClipped(this.hostElement, this.dsTooltipWhenClipped());
361
+ }
89
362
  get hostElement() {
90
363
  return this.host.nativeElement;
91
364
  }
92
- textElement() {
93
- const selector = this.dsTooltipTextSelector();
94
- return selector
95
- ? this.hostElement.querySelector(selector)
96
- : this.hostElement;
365
+ pinsOnClick() {
366
+ return this.hostPinOnClick?.() ?? this.dsTooltipPinOnClick();
97
367
  }
98
- isClipped() {
99
- const textElement = this.textElement();
100
- return textElement !== null && isTextClipped(textElement);
368
+ ownText() {
369
+ return ownTextOf(clipElement(this.hostElement, this.dsTooltipWhenClipped()));
101
370
  }
371
+ /** A host that leads with its own text puts it, in bold, above the tip while it is clipped, unless the tip already says it. */
102
372
  tipText() {
103
373
  const given = this.dsTooltip();
104
- if (given || !this.dsTooltipWhenClipped()) {
105
- return given;
374
+ const own = this.ownText();
375
+ if (!given) {
376
+ return this.dsTooltipWhenClipped() ? escapeTooltipMarkup(own) : '';
377
+ }
378
+ if (this.leadsWithOwnText &&
379
+ own &&
380
+ this.isClipped() &&
381
+ !textContains(plainTooltipText(given), own)) {
382
+ return `**${escapeTooltipMarkup(own)}**
383
+ ${given}`;
106
384
  }
107
- return (this.textElement()?.textContent ?? '').trim();
385
+ return given;
108
386
  }
109
387
  /** A clipped host's full text is already in the DOM; describing it again would announce it twice. */
110
388
  disclosesOwnText(text) {
111
389
  if (!this.dsTooltipWhenClipped()) {
112
390
  return false;
113
391
  }
114
- const collapse = (value) => value.replace(/\s+/g, ' ').trim();
115
- return collapse(this.textElement()?.textContent ?? '').includes(collapse(text));
392
+ return textContains(this.ownText(), plainTooltipText(text));
116
393
  }
117
394
  ref = null;
118
395
  timer = null;
396
+ unpin = null;
119
397
  tipId = `ds-tooltip-${++nextId}`;
120
398
  /**
121
399
  * Where `aria-describedby` belongs when focus is involved: a non-focusable host
@@ -129,51 +407,26 @@ class TooltipDirective {
129
407
  */
130
408
  describedElement = null;
131
409
  detachAncestor = null;
132
- constructor() {
133
- afterNextRender(() => this.listenToFocusableAncestor());
134
- }
135
- /** `:focus-visible` keeps a click from opening it. Only the first clipped host of one ancestor opens. */
136
- listenToFocusableAncestor() {
137
- const host = this.host.nativeElement;
138
- if (!this.dsTooltipWhenClipped() || host.matches(FOCUSABLE)) {
139
- return;
140
- }
141
- const ancestor = host.parentElement?.closest(FOCUSABLE);
142
- if (!ancestor?.matches(INTERACTIVE)) {
143
- return;
144
- }
145
- let tooltips = clippedHostsByAncestor.get(ancestor);
146
- if (!tooltips) {
147
- tooltips = new Set();
148
- clippedHostsByAncestor.set(ancestor, tooltips);
149
- }
150
- tooltips.add(this);
151
- const open = (event) => {
152
- if (event.target !== ancestor ||
153
- // Tested here, not at registration: a disabled trigger carries tabindex="-1" until enabled.
154
- !ancestor.matches(KEYBOARD_FOCUSABLE) ||
155
- !ancestor.matches(':focus-visible') ||
156
- firstClippedHost(tooltips) !== this) {
157
- return;
158
- }
410
+ ancestorFocusTrigger = {
411
+ host: this.hostElement,
412
+ isClipped: () => this.isClipped(),
413
+ openFor: (ancestor) => {
159
414
  this.focusedTarget = ancestor;
160
415
  this.scheduleShow();
161
- };
162
- const close = () => {
416
+ },
417
+ close: () => {
163
418
  this.focusedTarget = null;
164
419
  this.onClose();
165
- };
166
- ancestor.addEventListener('focusin', open);
167
- ancestor.addEventListener('focusout', close);
168
- ancestor.addEventListener('click', close);
169
- ancestor.addEventListener('keydown', close);
170
- this.detachAncestor = () => {
171
- tooltips.delete(this);
172
- ancestor.removeEventListener('focusin', open);
173
- ancestor.removeEventListener('focusout', close);
174
- ancestor.removeEventListener('click', close);
175
- ancestor.removeEventListener('keydown', close);
176
- };
420
+ },
421
+ };
422
+ constructor() {
423
+ afterNextRender(() => {
424
+ if (this.dsTooltipWhenClipped()) {
425
+ this.detachAncestor =
426
+ watchFocusableAncestor(this.ancestorFocusTrigger) ??
427
+ tabStopWhileClipped(this.ancestorFocusTrigger);
428
+ }
429
+ });
177
430
  }
178
431
  onPointerEnter() {
179
432
  this.scheduleShow();
@@ -196,7 +449,10 @@ class TooltipDirective {
196
449
  this.onClose();
197
450
  }
198
451
  scheduleShow() {
199
- if (!this.tipText()) {
452
+ if (this.unpin || !this.tipText()) {
453
+ return;
454
+ }
455
+ if (this.pinsOnClick() && this.ref?.hasAttached()) {
200
456
  return;
201
457
  }
202
458
  if (this.dsTooltipWhenClipped() && !this.isClipped()) {
@@ -205,16 +461,58 @@ class TooltipDirective {
205
461
  if (this.timer !== null) {
206
462
  clearTimeout(this.timer);
207
463
  }
208
- this.timer = window.setTimeout(() => this.show(), this.dsTooltipDelay());
464
+ this.timer = window.setTimeout(() => this.show(), this.pinsOnClick() ? 0 : this.dsTooltipDelay());
465
+ }
466
+ onPointerLeave() {
467
+ if (!this.unpin) {
468
+ this.onClose();
469
+ }
209
470
  }
210
471
  // Close on click too: a re-rendered anchor under a stationary cursor fires no mouseleave.
472
+ onClick() {
473
+ if (this.pinsOnClick() && !this.unpin) {
474
+ this.pin();
475
+ }
476
+ else {
477
+ this.onClose();
478
+ }
479
+ }
211
480
  onClose() {
212
481
  if (this.timer !== null) {
213
482
  clearTimeout(this.timer);
214
483
  this.timer = null;
215
484
  }
485
+ this.unpin?.();
216
486
  this.disposeRef();
217
487
  }
488
+ pin() {
489
+ if (this.timer !== null) {
490
+ clearTimeout(this.timer);
491
+ this.timer = null;
492
+ }
493
+ if (!this.ref?.hasAttached()) {
494
+ if (!this.tipText()) {
495
+ return;
496
+ }
497
+ this.show();
498
+ }
499
+ const closeOutside = (event) => {
500
+ const target = event.target;
501
+ if (!this.hostElement.contains(target) &&
502
+ !this.ref?.overlayElement.contains(target)) {
503
+ this.onClose();
504
+ }
505
+ };
506
+ this.document.addEventListener('pointerdown', closeOutside, true);
507
+ const stopEscape = listenForEscape(this.document, () => this.onClose());
508
+ this.hostElement.setAttribute(PINNED_ATTRIBUTE, '');
509
+ this.unpin = () => {
510
+ this.unpin = null;
511
+ this.hostElement.removeAttribute(PINNED_ATTRIBUTE);
512
+ this.document.removeEventListener('pointerdown', closeOutside, true);
513
+ stopEscape();
514
+ };
515
+ }
218
516
  disposeRef() {
219
517
  this.ref?.dispose();
220
518
  this.ref = null;
@@ -251,10 +549,7 @@ class TooltipDirective {
251
549
  const positionStrategy = this.overlay
252
550
  .position()
253
551
  .flexibleConnectedTo(this.host)
254
- .withPositions([
255
- this.positionFor(placement),
256
- this.positionFor(OPPOSITE_PLACEMENT[placement]),
257
- ])
552
+ .withPositions(positionsFor(placement))
258
553
  .withViewportMargin(VIEWPORT_MARGIN_PX);
259
554
  this.ref = this.overlay.create({
260
555
  positionStrategy,
@@ -262,12 +557,18 @@ class TooltipDirective {
262
557
  scrollStrategy: this.overlay.scrollStrategies.close(),
263
558
  });
264
559
  prepareOverlayEnter(this.ref, this.host.nativeElement, positionStrategy);
560
+ // The CDK strategy sees only the window and cdkScrollable ancestors, not a plain overflow container.
561
+ const stopScrollClose = closeOnScroll(this.ref, () => this.onClose());
562
+ this.ref.detachments().subscribe(stopScrollClose);
265
563
  const cmpRef = this.ref.attach(new ComponentPortal(TooltipPanelComponent));
266
564
  const text = this.tipText();
267
565
  cmpRef.setInput('text', text);
268
566
  cmpRef.setInput('placement', placement);
567
+ cmpRef.setInput('arrow', this.dsTooltipArrow());
269
568
  positionStrategy.positionChanges.subscribe(({ connectionPair }) => cmpRef.setInput('placement', overlayPlacementOf(connectionPair.overlayY, connectionPair.overlayX)));
270
569
  cmpRef.setInput('panelId', this.tipId);
570
+ pointArrowAtHost(this.ref, cmpRef.location.nativeElement, this.hostElement);
571
+ this.ref.detachments().subscribe(() => this.unpin?.());
271
572
  if (this.disclosesOwnText(text)) {
272
573
  return;
273
574
  }
@@ -276,48 +577,12 @@ class TooltipDirective {
276
577
  const existing = described.getAttribute('aria-describedby');
277
578
  described.setAttribute('aria-describedby', existing ? `${existing} ${this.tipId}` : this.tipId);
278
579
  }
279
- positionFor(placement) {
280
- switch (placement) {
281
- case 'top':
282
- return {
283
- originX: 'center',
284
- originY: 'top',
285
- overlayX: 'center',
286
- overlayY: 'bottom',
287
- offsetY: -TRIGGER_GAP_PX,
288
- };
289
- case 'bottom':
290
- return {
291
- originX: 'center',
292
- originY: 'bottom',
293
- overlayX: 'center',
294
- overlayY: 'top',
295
- offsetY: TRIGGER_GAP_PX,
296
- };
297
- case 'left':
298
- return {
299
- originX: 'start',
300
- originY: 'center',
301
- overlayX: 'end',
302
- overlayY: 'center',
303
- offsetX: -TRIGGER_GAP_PX,
304
- };
305
- case 'right':
306
- return {
307
- originX: 'end',
308
- originY: 'center',
309
- overlayX: 'start',
310
- overlayY: 'center',
311
- offsetX: TRIGGER_GAP_PX,
312
- };
313
- }
314
- }
315
580
  ngOnDestroy() {
316
581
  this.detachAncestor?.();
317
582
  this.onClose();
318
583
  }
319
584
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
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 });
585
+ 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 }, dsTooltipArrow: { classPropertyName: "dsTooltipArrow", publicName: "dsTooltipArrow", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipWhenClipped: { classPropertyName: "dsTooltipWhenClipped", publicName: "dsTooltipWhenClipped", isSignal: true, isRequired: false, transformFunction: null }, dsTooltipPinOnClick: { classPropertyName: "dsTooltipPinOnClick", publicName: "dsTooltipPinOnClick", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mouseenter": "onPointerEnter()", "focusin": "onFocusIn($event)", "focusout": "onFocusOut()", "mouseleave": "onPointerLeave()", "click": "onClick()", "keydown": "onKeydown()", "keydown.escape": "onEscape()" } }, ngImport: i0 });
321
586
  }
322
587
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TooltipDirective, decorators: [{
323
588
  type: Directive,
@@ -325,7 +590,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
325
590
  selector: '[dsTooltip], [dsTooltipWhenClipped]',
326
591
  standalone: true,
327
592
  }]
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: [{
593
+ }], 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 }] }], dsTooltipArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipArrow", required: false }] }], dsTooltipWhenClipped: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipWhenClipped", required: false }] }], dsTooltipPinOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipPinOnClick", required: false }] }], onPointerEnter: [{
329
594
  type: HostListener,
330
595
  args: ['mouseenter']
331
596
  }], onFocusIn: [{
@@ -334,10 +599,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
334
599
  }], onFocusOut: [{
335
600
  type: HostListener,
336
601
  args: ['focusout']
337
- }], onClose: [{
602
+ }], onPointerLeave: [{
338
603
  type: HostListener,
339
604
  args: ['mouseleave']
340
- }, {
605
+ }], onClick: [{
341
606
  type: HostListener,
342
607
  args: ['click']
343
608
  }], onKeydown: [{
@@ -352,5 +617,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
352
617
  * Generated bundle index. Do not edit.
353
618
  */
354
619
 
355
- export { TooltipDirective, TooltipPanelComponent };
620
+ export { TOOLTIP_LEADS_WITH_OWN_TEXT, TOOLTIP_PIN_ON_CLICK, TooltipDirective, TooltipPanelComponent };
356
621
  //# sourceMappingURL=ids-group-ltd-ids-design-system-components-tooltip.mjs.map