@ids-group-ltd/ids-design-system 0.14.8 → 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 (293) hide show
  1. package/CHANGELOG.md +715 -234
  2. package/components.md +63 -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-date-picker.md +1 -0
  13. package/docs/agent/foundations/global-helper-classes.md +3 -3
  14. package/docs/agent/overlays/ds-bottom-sheet.md +1 -1
  15. package/docs/agent/overlays/ds-definition-term.md +10 -0
  16. package/docs/agent/overlays/ds-drawer.md +1 -1
  17. package/docs/agent/overlays/ds-info-hint.md +10 -0
  18. package/docs/agent/overlays/ds-menu.md +1 -1
  19. package/docs/agent/overlays/ds-modal-card.md +1 -1
  20. package/docs/agent/overlays/ds-modal.md +19 -1
  21. package/docs/agent/overlays/ds-tooltip-panel.md +1 -1
  22. package/docs/agent/overlays/ds-tooltip.md +3 -3
  23. package/docs/agent/tables/ds-table.md +2 -2
  24. package/eslint/deprecated-api.json +889 -0
  25. package/eslint/index.mjs +394 -0
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +6 -12
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +19 -7
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +2 -2
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +169 -37
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +2 -2
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +2 -2
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +195 -27
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +23 -20
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +9 -9
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs +107 -0
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -0
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +2 -2
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +5 -15
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +2 -2
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +11 -8
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +4 -3
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +2 -2
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +44 -0
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -0
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +6 -6
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +10 -4
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +4 -4
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +2 -2
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +136 -29
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +21 -26
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +19 -7
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +2 -2
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +2 -2
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +8 -6
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +2 -2
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +4 -4
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +19 -5
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -2
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +21 -7
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +6 -6
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +2 -2
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +2 -2
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +2 -2
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +2 -2
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +4 -4
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +223 -8
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +4 -4
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +4 -4
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +409 -152
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  186. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
  187. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
  188. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
  189. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  190. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
  191. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  192. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +14 -11
  193. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  194. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +86 -2
  195. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  196. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +18 -81
  197. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  198. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +2 -2
  199. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  200. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +1 -0
  201. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
  202. package/fesm2022/ids-group-ltd-ids-design-system.mjs +2 -0
  203. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  204. package/migrations/0.10.0.json +79 -21
  205. package/migrations/0.10.1.json +38 -21
  206. package/migrations/0.10.2.json +44 -7
  207. package/migrations/0.10.3.json +7 -5
  208. package/migrations/0.11.0.json +10 -7
  209. package/migrations/0.11.1.json +25 -14
  210. package/migrations/0.11.2.json +3 -3
  211. package/migrations/0.11.3.json +9 -6
  212. package/migrations/0.11.4.json +13 -12
  213. package/migrations/0.12.1.json +41 -14
  214. package/migrations/0.12.2.json +7 -6
  215. package/migrations/0.12.3.json +3 -3
  216. package/migrations/0.13.0.json +11 -11
  217. package/migrations/0.13.1.json +60 -8
  218. package/migrations/0.13.2.json +98 -44
  219. package/migrations/0.13.3.json +46 -16
  220. package/migrations/0.13.4.json +23 -22
  221. package/migrations/0.14.0.json +5 -5
  222. package/migrations/0.14.1.json +5 -5
  223. package/migrations/0.14.2.json +1 -1
  224. package/migrations/0.14.4.json +6 -5
  225. package/migrations/0.14.5.json +13 -7
  226. package/migrations/0.14.6.json +2 -2
  227. package/migrations/0.14.8.json +26 -2
  228. package/migrations/0.15.0.json +999 -0
  229. package/migrations/0.2.0.json +2 -2
  230. package/migrations/0.3.0.json +43 -6
  231. package/migrations/0.4.0.json +95 -13
  232. package/migrations/0.5.0.json +116 -10
  233. package/migrations/0.5.1.json +97 -11
  234. package/migrations/0.6.0.json +30 -1
  235. package/migrations/0.6.1.json +22 -1
  236. package/migrations/0.6.2.json +8 -4
  237. package/migrations/0.6.3.json +17 -5
  238. package/migrations/0.7.0.json +58 -9
  239. package/migrations/0.7.1.json +62 -8
  240. package/migrations/0.8.0.json +60 -12
  241. package/migrations/0.9.0.json +68 -25
  242. package/migrations/0.9.1.json +1 -1
  243. package/migrations/README.md +57 -3
  244. package/package.json +19 -1
  245. package/schematics/check-overrides/index.cjs +4 -11
  246. package/schematics/check-overrides/scan.cjs +12 -1
  247. package/schematics/check-overrides/surface.json +49 -11
  248. package/schematics/ng-add/index.cjs +7 -1
  249. package/stylelint/deprecated-tokens.json +2697 -0
  250. package/stylelint/index.mjs +94 -0
  251. package/stylelint/since-version.mjs +26 -0
  252. package/styles/_chart-motion.scss +3 -9
  253. package/styles/_chip-row.scss +5 -2
  254. package/styles/_clear-button.scss +2 -0
  255. package/styles/_component-base.scss +56 -0
  256. package/styles/_dismiss-button.scss +16 -0
  257. package/styles/_dropdown-overlay.scss +19 -0
  258. package/styles/_focus.scss +4 -1
  259. package/styles/_overlay-motion.scss +4 -6
  260. package/styles/_pinned.scss +43 -0
  261. package/styles/_skeleton-shimmer.scss +2 -8
  262. package/styles/_table-controls.scss +4 -0
  263. package/styles/_target.scss +40 -0
  264. package/styles/_text-clip.scss +23 -4
  265. package/styles/_tokens.scss +0 -1
  266. package/styles/_typography.scss +2 -0
  267. package/styles/_visually-hidden.scss +2 -0
  268. package/styles/ds.scss +0 -1
  269. package/themes/README.md +7 -7
  270. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +4 -1
  271. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +74 -4
  272. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
  273. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +40 -4
  274. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +8 -3
  275. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +4 -3
  276. package/types/ids-group-ltd-ids-design-system-components-definition-term.d.ts +22 -0
  277. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +0 -1
  278. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +7 -3
  279. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +1 -0
  280. package/types/ids-group-ltd-ids-design-system-components-info-hint.d.ts +14 -0
  281. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +5 -0
  282. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +8 -3
  283. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +0 -2
  284. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +4 -1
  285. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +5 -3
  286. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +13 -3
  287. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +4 -1
  288. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +26 -3
  289. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +48 -20
  290. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +6 -2
  291. package/types/ids-group-ltd-ids-design-system-components.d.ts +26 -2
  292. package/types/ids-group-ltd-ids-design-system-core.d.ts +7 -11
  293. 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;white-space:pre-line;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;white-space:pre-line;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,95 +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
+ }
69
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() });
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 */ []));
89
- /** Opens the tip with this line above `dsTooltip` while the host shows less text than it holds.
90
- * The tip keeps its own line break, so the two read as separate lines. */
91
- dsTooltipClippedLead = input('', ...(ngDevMode ? [{ debugName: "dsTooltipClippedLead" }] : /* 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
+ }
92
362
  get hostElement() {
93
363
  return this.host.nativeElement;
94
364
  }
95
- textElement() {
96
- const selector = this.dsTooltipTextSelector();
97
- return selector
98
- ? this.hostElement.querySelector(selector)
99
- : this.hostElement;
365
+ pinsOnClick() {
366
+ return this.hostPinOnClick?.() ?? this.dsTooltipPinOnClick();
100
367
  }
101
- isClipped() {
102
- const textElement = this.textElement();
103
- return textElement !== null && isTextClipped(textElement);
368
+ ownText() {
369
+ return ownTextOf(clipElement(this.hostElement, this.dsTooltipWhenClipped()));
104
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. */
105
372
  tipText() {
106
373
  const given = this.dsTooltip();
107
- const lead = this.dsTooltipClippedLead();
108
- if (given && lead && this.isClipped()) {
109
- return `${lead}
110
- ${given}`;
374
+ const own = this.ownText();
375
+ if (!given) {
376
+ return this.dsTooltipWhenClipped() ? escapeTooltipMarkup(own) : '';
111
377
  }
112
- if (given || !this.dsTooltipWhenClipped()) {
113
- return given;
378
+ if (this.leadsWithOwnText &&
379
+ own &&
380
+ this.isClipped() &&
381
+ !textContains(plainTooltipText(given), own)) {
382
+ return `**${escapeTooltipMarkup(own)}**
383
+ ${given}`;
114
384
  }
115
- return (this.textElement()?.textContent ?? '').trim();
385
+ return given;
116
386
  }
117
387
  /** A clipped host's full text is already in the DOM; describing it again would announce it twice. */
118
388
  disclosesOwnText(text) {
119
389
  if (!this.dsTooltipWhenClipped()) {
120
390
  return false;
121
391
  }
122
- const collapse = (value) => value.replace(/\s+/g, ' ').trim();
123
- return collapse(this.textElement()?.textContent ?? '').includes(collapse(text));
392
+ return textContains(this.ownText(), plainTooltipText(text));
124
393
  }
125
394
  ref = null;
126
395
  timer = null;
396
+ unpin = null;
127
397
  tipId = `ds-tooltip-${++nextId}`;
128
398
  /**
129
399
  * Where `aria-describedby` belongs when focus is involved: a non-focusable host
@@ -137,51 +407,26 @@ ${given}`;
137
407
  */
138
408
  describedElement = null;
139
409
  detachAncestor = null;
140
- constructor() {
141
- afterNextRender(() => this.listenToFocusableAncestor());
142
- }
143
- /** `:focus-visible` keeps a click from opening it. Only the first clipped host of one ancestor opens. */
144
- listenToFocusableAncestor() {
145
- const host = this.host.nativeElement;
146
- if (!this.dsTooltipWhenClipped() || host.matches(FOCUSABLE)) {
147
- return;
148
- }
149
- const ancestor = host.parentElement?.closest(FOCUSABLE);
150
- if (!ancestor?.matches(INTERACTIVE)) {
151
- return;
152
- }
153
- let tooltips = clippedHostsByAncestor.get(ancestor);
154
- if (!tooltips) {
155
- tooltips = new Set();
156
- clippedHostsByAncestor.set(ancestor, tooltips);
157
- }
158
- tooltips.add(this);
159
- const open = (event) => {
160
- if (event.target !== ancestor ||
161
- // Tested here, not at registration: a disabled trigger carries tabindex="-1" until enabled.
162
- !ancestor.matches(KEYBOARD_FOCUSABLE) ||
163
- !ancestor.matches(':focus-visible') ||
164
- firstClippedHost(tooltips) !== this) {
165
- return;
166
- }
410
+ ancestorFocusTrigger = {
411
+ host: this.hostElement,
412
+ isClipped: () => this.isClipped(),
413
+ openFor: (ancestor) => {
167
414
  this.focusedTarget = ancestor;
168
415
  this.scheduleShow();
169
- };
170
- const close = () => {
416
+ },
417
+ close: () => {
171
418
  this.focusedTarget = null;
172
419
  this.onClose();
173
- };
174
- ancestor.addEventListener('focusin', open);
175
- ancestor.addEventListener('focusout', close);
176
- ancestor.addEventListener('click', close);
177
- ancestor.addEventListener('keydown', close);
178
- this.detachAncestor = () => {
179
- tooltips.delete(this);
180
- ancestor.removeEventListener('focusin', open);
181
- ancestor.removeEventListener('focusout', close);
182
- ancestor.removeEventListener('click', close);
183
- ancestor.removeEventListener('keydown', close);
184
- };
420
+ },
421
+ };
422
+ constructor() {
423
+ afterNextRender(() => {
424
+ if (this.dsTooltipWhenClipped()) {
425
+ this.detachAncestor =
426
+ watchFocusableAncestor(this.ancestorFocusTrigger) ??
427
+ tabStopWhileClipped(this.ancestorFocusTrigger);
428
+ }
429
+ });
185
430
  }
186
431
  onPointerEnter() {
187
432
  this.scheduleShow();
@@ -204,7 +449,10 @@ ${given}`;
204
449
  this.onClose();
205
450
  }
206
451
  scheduleShow() {
207
- if (!this.tipText()) {
452
+ if (this.unpin || !this.tipText()) {
453
+ return;
454
+ }
455
+ if (this.pinsOnClick() && this.ref?.hasAttached()) {
208
456
  return;
209
457
  }
210
458
  if (this.dsTooltipWhenClipped() && !this.isClipped()) {
@@ -213,16 +461,58 @@ ${given}`;
213
461
  if (this.timer !== null) {
214
462
  clearTimeout(this.timer);
215
463
  }
216
- 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
+ }
217
470
  }
218
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
+ }
219
480
  onClose() {
220
481
  if (this.timer !== null) {
221
482
  clearTimeout(this.timer);
222
483
  this.timer = null;
223
484
  }
485
+ this.unpin?.();
224
486
  this.disposeRef();
225
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
+ }
226
516
  disposeRef() {
227
517
  this.ref?.dispose();
228
518
  this.ref = null;
@@ -259,10 +549,7 @@ ${given}`;
259
549
  const positionStrategy = this.overlay
260
550
  .position()
261
551
  .flexibleConnectedTo(this.host)
262
- .withPositions([
263
- this.positionFor(placement),
264
- this.positionFor(OPPOSITE_PLACEMENT[placement]),
265
- ])
552
+ .withPositions(positionsFor(placement))
266
553
  .withViewportMargin(VIEWPORT_MARGIN_PX);
267
554
  this.ref = this.overlay.create({
268
555
  positionStrategy,
@@ -270,12 +557,18 @@ ${given}`;
270
557
  scrollStrategy: this.overlay.scrollStrategies.close(),
271
558
  });
272
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);
273
563
  const cmpRef = this.ref.attach(new ComponentPortal(TooltipPanelComponent));
274
564
  const text = this.tipText();
275
565
  cmpRef.setInput('text', text);
276
566
  cmpRef.setInput('placement', placement);
567
+ cmpRef.setInput('arrow', this.dsTooltipArrow());
277
568
  positionStrategy.positionChanges.subscribe(({ connectionPair }) => cmpRef.setInput('placement', overlayPlacementOf(connectionPair.overlayY, connectionPair.overlayX)));
278
569
  cmpRef.setInput('panelId', this.tipId);
570
+ pointArrowAtHost(this.ref, cmpRef.location.nativeElement, this.hostElement);
571
+ this.ref.detachments().subscribe(() => this.unpin?.());
279
572
  if (this.disclosesOwnText(text)) {
280
573
  return;
281
574
  }
@@ -284,48 +577,12 @@ ${given}`;
284
577
  const existing = described.getAttribute('aria-describedby');
285
578
  described.setAttribute('aria-describedby', existing ? `${existing} ${this.tipId}` : this.tipId);
286
579
  }
287
- positionFor(placement) {
288
- switch (placement) {
289
- case 'top':
290
- return {
291
- originX: 'center',
292
- originY: 'top',
293
- overlayX: 'center',
294
- overlayY: 'bottom',
295
- offsetY: -TRIGGER_GAP_PX,
296
- };
297
- case 'bottom':
298
- return {
299
- originX: 'center',
300
- originY: 'bottom',
301
- overlayX: 'center',
302
- overlayY: 'top',
303
- offsetY: TRIGGER_GAP_PX,
304
- };
305
- case 'left':
306
- return {
307
- originX: 'start',
308
- originY: 'center',
309
- overlayX: 'end',
310
- overlayY: 'center',
311
- offsetX: -TRIGGER_GAP_PX,
312
- };
313
- case 'right':
314
- return {
315
- originX: 'end',
316
- originY: 'center',
317
- overlayX: 'start',
318
- overlayY: 'center',
319
- offsetX: TRIGGER_GAP_PX,
320
- };
321
- }
322
- }
323
580
  ngOnDestroy() {
324
581
  this.detachAncestor?.();
325
582
  this.onClose();
326
583
  }
327
584
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
328
- 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 }, dsTooltipClippedLead: { classPropertyName: "dsTooltipClippedLead", publicName: "dsTooltipClippedLead", 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 });
329
586
  }
330
587
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TooltipDirective, decorators: [{
331
588
  type: Directive,
@@ -333,7 +590,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
333
590
  selector: '[dsTooltip], [dsTooltipWhenClipped]',
334
591
  standalone: true,
335
592
  }]
336
- }], 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 }] }], dsTooltipClippedLead: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsTooltipClippedLead", 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: [{
337
594
  type: HostListener,
338
595
  args: ['mouseenter']
339
596
  }], onFocusIn: [{
@@ -342,10 +599,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
342
599
  }], onFocusOut: [{
343
600
  type: HostListener,
344
601
  args: ['focusout']
345
- }], onClose: [{
602
+ }], onPointerLeave: [{
346
603
  type: HostListener,
347
604
  args: ['mouseleave']
348
- }, {
605
+ }], onClick: [{
349
606
  type: HostListener,
350
607
  args: ['click']
351
608
  }], onKeydown: [{
@@ -360,5 +617,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
360
617
  * Generated bundle index. Do not edit.
361
618
  */
362
619
 
363
- export { TooltipDirective, TooltipPanelComponent };
620
+ export { TOOLTIP_LEADS_WITH_OWN_TEXT, TOOLTIP_PIN_ON_CLICK, TooltipDirective, TooltipPanelComponent };
364
621
  //# sourceMappingURL=ids-group-ltd-ids-design-system-components-tooltip.mjs.map