@sixbell-telco/sdk 4.1.2 → 4.3.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 (252) hide show
  1. package/CHANGELOG.md +102 -1
  2. package/README.md +98 -66
  3. package/_index.css +2 -1498
  4. package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -1
  5. package/components/alert/README.md +27 -0
  6. package/components/alert/index.d.ts +5 -0
  7. package/components/alert/public-api.d.ts +1 -0
  8. package/components/alert/src/alert.component.d.ts +85 -0
  9. package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +1 -1
  10. package/components/audio-player/button-play/button-play.component.d.ts +7 -7
  11. package/components/audio-player/src/audio-player.component.d.ts +2 -2
  12. package/components/audio-player/volume-control/volume-control.component.d.ts +1 -1
  13. package/components/avatar/README.md +1 -0
  14. package/components/avatar/src/avatar.component.d.ts +2 -2
  15. package/components/badge/src/badge.component.d.ts +4 -4
  16. package/components/button/README.md +5 -4
  17. package/components/button/src/button.component.d.ts +38 -16
  18. package/components/card/README.md +2 -0
  19. package/components/card/card-footer/card-footer.component.d.ts +37 -2
  20. package/components/card/card-section-group/card-section-group.component.d.ts +1 -1
  21. package/components/card/src/card.component.d.ts +6 -6
  22. package/components/countdown/src/countdown.component.d.ts +4 -4
  23. package/components/data-table/README.md +26 -0
  24. package/components/data-table/expandable/expandable.component.d.ts +4 -4
  25. package/components/data-table/sortable-header/sortable-header.component.d.ts +1 -1
  26. package/components/data-table/src/data-table.component.d.ts +15 -8
  27. package/components/data-table/sub-component-toggle/sub-component-toggle.component.d.ts +1 -1
  28. package/components/description-list/README.md +27 -0
  29. package/components/description-list/index.d.ts +5 -0
  30. package/components/description-list/public-api.d.ts +1 -0
  31. package/components/description-list/src/description-list.component.d.ts +90 -0
  32. package/components/dialog/README.md +10 -6
  33. package/components/dialog/dialog-actions/dialog-actions.component.d.ts +4 -0
  34. package/components/dialog/src/dialog.component.d.ts +27 -6
  35. package/components/dialog/src/fullscreen-block-scroll-strategy.d.ts +31 -0
  36. package/components/divider/src/divider.component.d.ts +1 -1
  37. package/components/dropdown/README.md +1 -1
  38. package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +1 -1
  39. package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +4 -4
  40. package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +5 -5
  41. package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +5 -5
  42. package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +1 -1
  43. package/components/dropdown-menu/README.md +1 -1
  44. package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +1 -1
  45. package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +1 -1
  46. package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +3 -3
  47. package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +4 -4
  48. package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +4 -4
  49. package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +1 -1
  50. package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +1 -1
  51. package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +1 -1
  52. package/components/dropdown-menu/dropdown-menu-chevron/dropdown-menu-chevron.component.d.ts +1 -1
  53. package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +3 -3
  54. package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +1 -1
  55. package/components/empty-state/README.md +40 -0
  56. package/components/empty-state/index.d.ts +5 -0
  57. package/components/empty-state/public-api.d.ts +1 -0
  58. package/components/empty-state/src/empty-state.component.d.ts +73 -0
  59. package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +4 -4
  60. package/components/file-upload/file-uploader/file-uploader.component.d.ts +2 -2
  61. package/components/forms/checkbox/src/checkbox.component.d.ts +1 -1
  62. package/components/forms/combobox/README.md +1 -0
  63. package/components/forms/combobox/src/combobox.component.d.ts +29 -7
  64. package/components/forms/date-picker/src/date-picker.component.d.ts +21 -9
  65. package/components/forms/form-hint/README.md +29 -0
  66. package/components/forms/form-hint/index.d.ts +5 -0
  67. package/components/forms/form-hint/public-api.d.ts +1 -0
  68. package/components/forms/form-hint/src/form-hint.component.d.ts +38 -0
  69. package/components/forms/form-item/src/form-item.component.d.ts +45 -1
  70. package/components/forms/input/README.md +2 -0
  71. package/components/forms/input/src/input.component.d.ts +41 -7
  72. package/components/forms/radio/src/radio.component.d.ts +1 -1
  73. package/components/forms/range/src/range.component.d.ts +26 -4
  74. package/components/forms/select/README.md +1 -0
  75. package/components/forms/select/src/select.component.d.ts +28 -5
  76. package/components/forms/switch/src/switch.component.d.ts +1 -1
  77. package/components/forms/textarea/src/textarea.component.d.ts +20 -5
  78. package/components/forms/toggle/src/toggle.component.d.ts +1 -1
  79. package/components/notification/src/notification.component.d.ts +1 -1
  80. package/components/overlay/README.md +1 -1
  81. package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +1 -1
  82. package/components/overlay/src/overlay.component.d.ts +1 -1
  83. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +3 -3
  84. package/components/progress/src/progress.component.d.ts +1 -1
  85. package/components/segmented-button/README.md +57 -0
  86. package/components/segmented-button/index.d.ts +5 -0
  87. package/components/segmented-button/public-api.d.ts +1 -0
  88. package/components/segmented-button/src/segmented-button.component.d.ts +110 -0
  89. package/components/sonner/toaster/src/toaster.component.d.ts +3 -3
  90. package/components/tab/src/tab.component.d.ts +2 -2
  91. package/components/table/README.md +51 -3
  92. package/components/table/public-api.d.ts +1 -0
  93. package/components/table/src/table.component.d.ts +20 -13
  94. package/components/table/table-action/table-action.component.d.ts +14 -3
  95. package/components/table/table-actions/table-actions.component.d.ts +12 -1
  96. package/components/table/tokens/README.md +7 -0
  97. package/components/table/tokens/index.d.ts +5 -0
  98. package/components/table/tokens/public-api.d.ts +1 -0
  99. package/components/table/tokens/table-empty-state.d.ts +6 -0
  100. package/components/tooltip/README.md +22 -5
  101. package/components/tooltip/src/tooltip.component.d.ts +36 -4
  102. package/components/tree/README.md +73 -0
  103. package/components/tree/index.d.ts +5 -0
  104. package/components/tree/public-api.d.ts +1 -0
  105. package/components/tree/src/tree.component.d.ts +180 -0
  106. package/components/wizard/README.md +9 -0
  107. package/components/wizard/wizard-content/wizard-content.component.d.ts +1 -1
  108. package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +15 -6
  109. package/directives/auto-focus/src/auto-focus.directive.d.ts +1 -1
  110. package/directives/only-numbers/src/only-numbers.directive.d.ts +1 -1
  111. package/directives/truncate/README.md +49 -0
  112. package/directives/truncate/index.d.ts +5 -0
  113. package/directives/truncate/public-api.d.ts +1 -0
  114. package/directives/truncate/src/truncate-popover.component.d.ts +11 -0
  115. package/directives/truncate/src/truncate.directive.d.ts +96 -0
  116. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +2 -2
  117. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  118. package/fesm2022/sixbell-telco-sdk-components-alert.mjs +152 -0
  119. package/fesm2022/sixbell-telco-sdk-components-alert.mjs.map +1 -0
  120. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +15 -15
  121. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  122. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +4 -4
  123. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  124. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +5 -5
  125. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  126. package/fesm2022/sixbell-telco-sdk-components-button.mjs +53 -19
  127. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  128. package/fesm2022/sixbell-telco-sdk-components-card.mjs +61 -14
  129. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  130. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +5 -5
  131. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
  132. package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +3 -3
  133. package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -1
  134. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +34 -33
  135. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
  136. package/fesm2022/sixbell-telco-sdk-components-description-list.mjs +200 -0
  137. package/fesm2022/sixbell-telco-sdk-components-description-list.mjs.map +1 -0
  138. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +128 -17
  139. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
  140. package/fesm2022/sixbell-telco-sdk-components-divider.mjs +2 -2
  141. package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -1
  142. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +16 -16
  143. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
  144. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +2 -2
  145. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
  146. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +6 -6
  147. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
  148. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +17 -17
  149. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  150. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
  151. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  152. package/fesm2022/sixbell-telco-sdk-components-empty-state.mjs +131 -0
  153. package/fesm2022/sixbell-telco-sdk-components-empty-state.mjs.map +1 -0
  154. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +9 -9
  155. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
  156. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +2 -2
  157. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  158. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +80 -25
  159. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  160. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +28 -12
  161. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
  162. package/fesm2022/sixbell-telco-sdk-components-forms-form-hint.mjs +81 -0
  163. package/fesm2022/sixbell-telco-sdk-components-forms-form-hint.mjs.map +1 -0
  164. package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +45 -3
  165. package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -1
  166. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +62 -13
  167. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  168. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +2 -2
  169. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  170. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +38 -7
  171. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  172. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +60 -15
  173. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  174. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
  175. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  176. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +36 -22
  177. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  178. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +2 -2
  179. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  180. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +2 -2
  181. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  182. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +3 -3
  183. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
  184. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +4 -4
  185. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  186. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +2 -2
  187. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  188. package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs +329 -0
  189. package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs.map +1 -0
  190. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +4 -4
  191. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
  192. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +4 -4
  193. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
  194. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +3 -3
  195. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  196. package/fesm2022/sixbell-telco-sdk-components-table-tokens.mjs +14 -0
  197. package/fesm2022/sixbell-telco-sdk-components-table-tokens.mjs.map +1 -0
  198. package/fesm2022/sixbell-telco-sdk-components-table.mjs +63 -32
  199. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  200. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +156 -25
  201. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  202. package/fesm2022/sixbell-telco-sdk-components-tree.mjs +478 -0
  203. package/fesm2022/sixbell-telco-sdk-components-tree.mjs.map +1 -0
  204. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +18 -9
  205. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  206. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +2 -2
  207. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
  208. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +2 -2
  209. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
  210. package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs +339 -0
  211. package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs.map +1 -0
  212. package/fesm2022/sixbell-telco-sdk-layouts.mjs +43 -35
  213. package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
  214. package/fesm2022/sixbell-telco-sdk-utils-date.mjs +15 -2
  215. package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -1
  216. package/fesm2022/sixbell-telco-sdk-utils-mfe.mjs +87 -2
  217. package/fesm2022/sixbell-telco-sdk-utils-mfe.mjs.map +1 -1
  218. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +242 -4
  219. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
  220. package/fesm2022/sixbell-telco-sdk-utils-translation-testing.mjs +203 -0
  221. package/fesm2022/sixbell-telco-sdk-utils-translation-testing.mjs.map +1 -0
  222. package/fesm2022/sixbell-telco-sdk-utils-unsaved-changes.mjs +150 -0
  223. package/fesm2022/sixbell-telco-sdk-utils-unsaved-changes.mjs.map +1 -0
  224. package/i18n/sdk/en.json +224 -0
  225. package/i18n/sdk/es.json +224 -0
  226. package/i18n/sdk/pt.json +224 -0
  227. package/layouts/README.md +11 -10
  228. package/layouts/src/app-layout/app-layout.component.d.ts +11 -8
  229. package/layouts/src/layout.config.d.ts +1 -1
  230. package/layouts/src/navbar/navbar.component.d.ts +5 -5
  231. package/layouts/src/page-banner/page-banner.component.d.ts +6 -1
  232. package/layouts/src/side-menu/side-menu.component.d.ts +2 -2
  233. package/layouts/src/user-menu/user-menu.component.d.ts +5 -5
  234. package/package.json +63 -23
  235. package/src/_index.css +1616 -0
  236. package/utils/mfe/README.md +1 -0
  237. package/utils/mfe/src/hoist-property-rules.d.ts +13 -0
  238. package/utils/mfe/src/mfe-shadow-shell.component.d.ts +3 -0
  239. package/utils/theme/README.md +94 -1
  240. package/utils/theme/public-api.d.ts +2 -1
  241. package/utils/theme/src/models/theme.d.ts +32 -0
  242. package/utils/theme/src/overlay/theme-overlay.d.ts +33 -0
  243. package/utils/theme/src/providers/theme.provider.types.d.ts +7 -0
  244. package/utils/translation/README.md +61 -0
  245. package/utils/translation/testing/index.d.ts +5 -0
  246. package/utils/translation/testing/public-api.d.ts +2 -0
  247. package/utils/translation/testing/src/translation-testing.d.ts +96 -0
  248. package/utils/unsaved-changes/README.md +33 -0
  249. package/utils/unsaved-changes/index.d.ts +5 -0
  250. package/utils/unsaved-changes/public-api.d.ts +1 -0
  251. package/utils/unsaved-changes/src/unsaved-changes-dialog.component.d.ts +24 -0
  252. package/utils/unsaved-changes/src/unsaved-changes.d.ts +50 -0
@@ -2,7 +2,7 @@ import { Overlay, CdkOverlayOrigin, CdkConnectedOverlay } from '@angular/cdk/ove
2
2
  import { ScrollDispatcher } from '@angular/cdk/scrolling';
3
3
  import { CommonModule, NgTemplateOutlet } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { ChangeDetectionStrategy, Component, inject, ElementRef, Renderer2, DestroyRef, input, contentChild, signal, computed, viewChild, afterRenderEffect, effect } from '@angular/core';
5
+ import { ChangeDetectionStrategy, Component, inject, ElementRef, Renderer2, DestroyRef, input, numberAttribute, contentChild, signal, computed, viewChild, afterRenderEffect, effect } from '@angular/core';
6
6
  import { IconComponent } from '@sixbell-telco/sdk/components/icon';
7
7
  import { cn } from '@sixbell-telco/sdk/utils/cn';
8
8
  import { generateUniqueId } from '@sixbell-telco/sdk/utils/generators/uuid';
@@ -102,6 +102,58 @@ function isKeyboardFocus(element) {
102
102
  return true;
103
103
  }
104
104
  }
105
+ const normalizeText = (value) => (value ?? '').replace(/\s+/g, ' ').trim().toLowerCase();
106
+ /** Text of the subtree that counts toward a name: skips `hidden`/`aria-hidden` subtrees and reads `img` `alt`. */
107
+ function visibleText(node) {
108
+ if (node.nodeType === Node.TEXT_NODE)
109
+ return node.textContent ?? '';
110
+ if (node.nodeType !== Node.ELEMENT_NODE)
111
+ return '';
112
+ const element = node;
113
+ if (element.hidden || element.getAttribute('aria-hidden') === 'true')
114
+ return '';
115
+ if (element.localName === 'img')
116
+ return element.getAttribute('alt') ?? '';
117
+ return Array.from(element.childNodes, visibleText).join(' ');
118
+ }
119
+ /** Text of the `<label>`s associated with a form control (`for` or wrapping), via `labels` or a `for` lookup. */
120
+ function nativeLabelText(element) {
121
+ const labels = element.labels;
122
+ if (labels)
123
+ return Array.from(labels, visibleText).join(' ');
124
+ const id = element.id;
125
+ if (!id)
126
+ return '';
127
+ const root = element.getRootNode();
128
+ return Array.from(root.querySelectorAll?.('label[for]') ?? [])
129
+ .filter((label) => label.getAttribute('for') === id)
130
+ .map(visibleText)
131
+ .join(' ');
132
+ }
133
+ /**
134
+ * Approximates the accessible name: `aria-labelledby`, then `aria-label`, then the associated `<label>`, then the
135
+ * visible text content (or `alt`), then `title`.
136
+ */
137
+ function approximateAccessibleName(element) {
138
+ const root = element.getRootNode();
139
+ const labelledBy = (element.getAttribute('aria-labelledby') ?? '')
140
+ .split(/\s+/)
141
+ .filter(Boolean)
142
+ .map((id) => root.getElementById?.(id)?.textContent ?? '')
143
+ .join(' ');
144
+ return (normalizeText(labelledBy) ||
145
+ normalizeText(element.getAttribute('aria-label')) ||
146
+ normalizeText(nativeLabelText(element)) ||
147
+ normalizeText(visibleText(element)) ||
148
+ normalizeText(element.getAttribute('title')));
149
+ }
150
+ const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
151
+ /** True when `name` is, or contains as whole words, the tooltip `text` (so "Delete" is not found in "Undelete"). */
152
+ function nameContainsText(name, text) {
153
+ if (!text)
154
+ return true;
155
+ return new RegExp(`(?<![\\p{L}\\p{N}])${escapeRegExp(text)}(?![\\p{L}\\p{N}])`, 'u').test(name);
156
+ }
105
157
  function isEnabledFocusable(element) {
106
158
  let ancestor = element;
107
159
  while (ancestor) {
@@ -185,6 +237,12 @@ class TooltipComponent {
185
237
  * @defaultValue 'left'
186
238
  */
187
239
  iconPosition = input('left');
240
+ /**
241
+ * Delay in milliseconds before the tooltip hides after the pointer leaves the trigger or the tooltip,
242
+ * so the pointer can cross the gap onto the tooltip (WCAG 1.4.13 hoverable). `0` hides immediately.
243
+ * @defaultValue 120
244
+ */
245
+ closeDelay = input(120, { transform: numberAttribute });
188
246
  /**
189
247
  * @internal
190
248
  * Reference to custom tooltip content component
@@ -197,21 +255,24 @@ class TooltipComponent {
197
255
  * Computed flag indicating presence of custom content
198
256
  */
199
257
  hasCustomContent = computed(() => !!this.customContent());
200
- hasTooltipContent = computed(() => {
201
- const label = this.label()?.trim();
202
- const richContent = this.richContentText();
203
- return Boolean(label || richContent);
204
- });
258
+ /** @internal Plain-text description the trigger's `aria-describedby` resolves to, open or closed. */
259
+ descriptionText = computed(() => this.label()?.trim() || this.richContentText());
260
+ hasTooltipContent = computed(() => Boolean(this.descriptionText()));
205
261
  requestedOpen = signal(false);
206
262
  pointerInside = signal(false);
263
+ pointerOverPane = signal(false);
264
+ closeTimer = null;
207
265
  focusedTarget = signal(null);
208
- escapeClosed = signal(false);
266
+ keyboardFocused = signal(false);
267
+ /** Set by a press, an activation or Escape; only a fresh pointer enter or keyboard focus clears it. */
268
+ dismissed = signal(false);
209
269
  renderedOpen = signal(false);
210
270
  phase = signal('closed');
211
271
  activePosition = signal(null);
212
272
  closingSide = signal(null);
213
273
  transitionToken = 0;
214
274
  tooltipId = `st-tooltip-${generateUniqueId()}`;
275
+ paneId = `${this.tooltipId}-pane`;
215
276
  origin = viewChild.required(CdkOverlayOrigin);
216
277
  animationFallbackHandle = null;
217
278
  triggerTabIndexValue = signal(0);
@@ -253,12 +314,28 @@ class TooltipComponent {
253
314
  this.requestOpen(false);
254
315
  }
255
316
  });
317
+ this.listenForPress();
256
318
  this.destroyRef.onDestroy(() => {
319
+ this.clearCloseTimer();
257
320
  this.clearTooltipAnimationFallback();
258
321
  this.syncDescribedBy(null);
259
322
  this.transitionToken += 1;
260
323
  });
261
324
  }
325
+ /**
326
+ * Capture phase, so a projected control that stops propagation (`st-button [stopPropagation]`) still
327
+ * dismisses it. `click` also covers keyboard activation (Enter/Space), which has no pointerdown.
328
+ */
329
+ listenForPress() {
330
+ const host = this.elementRef.nativeElement;
331
+ const onPress = () => this.onPress();
332
+ host.addEventListener('pointerdown', onPress, { capture: true });
333
+ host.addEventListener('click', onPress, { capture: true });
334
+ this.destroyRef.onDestroy(() => {
335
+ host.removeEventListener('pointerdown', onPress, { capture: true });
336
+ host.removeEventListener('click', onPress, { capture: true });
337
+ });
338
+ }
262
339
  positions = computed(() => {
263
340
  const requestedSide = this.sideFromPair(this.primaryPosition(this.position()));
264
341
  const [firstOrthogonal, secondOrthogonal] = this.orthogonalSides(requestedSide);
@@ -372,10 +449,14 @@ class TooltipComponent {
372
449
  }
373
450
  if (previous && previous !== target)
374
451
  this.removeDescribedBy(previous);
452
+ this.focusedTarget.set(target);
453
+ if (nameContainsText(approximateAccessibleName(target), normalizeText(this.descriptionText()))) {
454
+ this.removeDescribedBy(target);
455
+ return;
456
+ }
375
457
  const tokens = (target.getAttribute('aria-describedby') ?? '').split(/\s+/).filter(Boolean);
376
458
  if (!tokens.includes(this.tooltipId))
377
459
  this.renderer.setAttribute(target, 'aria-describedby', [...tokens, this.tooltipId].join(' '));
378
- this.focusedTarget.set(target);
379
460
  }
380
461
  removeDescribedBy(target) {
381
462
  const tokens = (target.getAttribute('aria-describedby') ?? '').split(/\s+/).filter((token) => token && token !== this.tooltipId);
@@ -385,7 +466,8 @@ class TooltipComponent {
385
466
  this.renderer.removeAttribute(target, 'aria-describedby');
386
467
  }
387
468
  requestOpen(next) {
388
- if (next && (this.escapeClosed() || !this.hasTooltipContent()))
469
+ this.clearCloseTimer();
470
+ if (next && (this.dismissed() || !this.hasTooltipContent()))
389
471
  return;
390
472
  if (next === this.requestedOpen())
391
473
  return;
@@ -413,27 +495,66 @@ class TooltipComponent {
413
495
  }
414
496
  onPointerEnter() {
415
497
  this.pointerInside.set(true);
416
- this.escapeClosed.set(false);
498
+ this.dismissed.set(false);
417
499
  this.requestOpen(true);
418
500
  }
419
501
  onPointerLeave() {
420
502
  this.pointerInside.set(false);
421
- if (!this.focusedTarget())
422
- this.requestOpen(false);
503
+ this.scheduleClose();
504
+ }
505
+ /** The pointer may move onto the tooltip without hiding it (WCAG 1.4.13 hoverable). */
506
+ onPaneEnter() {
507
+ this.pointerOverPane.set(true);
508
+ this.clearCloseTimer();
509
+ if (this.renderedOpen() && !this.requestedOpen())
510
+ this.requestOpen(true);
423
511
  }
512
+ onPaneLeave() {
513
+ this.pointerOverPane.set(false);
514
+ this.scheduleClose();
515
+ }
516
+ scheduleClose() {
517
+ this.clearCloseTimer();
518
+ const close = () => {
519
+ if (!this.pointerInside() && !this.pointerOverPane() && !this.keyboardFocused())
520
+ this.requestOpen(false);
521
+ };
522
+ const delay = this.closeDelay();
523
+ if (!Number.isFinite(delay) || delay <= 0 || !this.requestedOpen()) {
524
+ close();
525
+ return;
526
+ }
527
+ this.closeTimer = setTimeout(() => {
528
+ this.closeTimer = null;
529
+ close();
530
+ }, delay);
531
+ }
532
+ clearCloseTimer() {
533
+ if (this.closeTimer === null)
534
+ return;
535
+ clearTimeout(this.closeTimer);
536
+ this.closeTimer = null;
537
+ }
538
+ /**
539
+ * Only keyboard focus (`:focus-visible`) opens or keeps the tooltip open. Focus caused by a mouse press,
540
+ * or restored by a dialog after one, describes the control but never shows or pins the tooltip.
541
+ */
424
542
  onFocusIn(event) {
425
543
  const target = this.resolveFocusTarget(event);
426
544
  this.syncDescribedBy(target);
427
- // After a press or Escape, only keyboard focus may reopen it: the focus that the press itself
428
- // causes, or that a dialog restores to the trigger on close, must not pin it open again.
429
- if (this.escapeClosed() && !(target && isKeyboardFocus(target)))
545
+ const keyboard = Boolean(target && isKeyboardFocus(target));
546
+ this.keyboardFocused.set(keyboard);
547
+ if (!keyboard) {
548
+ if (!this.pointerInside() && !this.pointerOverPane())
549
+ this.requestOpen(false);
430
550
  return;
431
- this.escapeClosed.set(false);
432
- this.requestOpen(Boolean(target));
551
+ }
552
+ this.dismissed.set(false);
553
+ this.requestOpen(true);
433
554
  }
434
- /** Pressing the trigger dismisses the tooltip until a fresh pointer enter or keyboard focus. */
555
+ /** Pressing or activating the trigger dismisses the tooltip until a fresh pointer enter or keyboard focus. */
435
556
  onPress() {
436
- this.escapeClosed.set(true);
557
+ this.dismissed.set(true);
437
558
  this.requestOpen(false);
438
559
  }
439
560
  onFocusOut(event) {
@@ -441,11 +562,20 @@ class TooltipComponent {
441
562
  if (related instanceof Node && this.elementRef.nativeElement.contains(related))
442
563
  return;
443
564
  this.syncDescribedBy(null);
444
- if (!this.pointerInside())
565
+ this.keyboardFocused.set(false);
566
+ if (!this.pointerInside() && !this.pointerOverPane())
445
567
  this.requestOpen(false);
446
568
  }
447
- onEscape() {
448
- this.escapeClosed.set(true);
569
+ /**
570
+ * Escape arrives through the CDK overlay keyboard stack, which hands it only to the topmost overlay that
571
+ * listens. While the tooltip is the top layer it closes the tooltip alone; an enclosing `st-dialog`
572
+ * keeps its own Escape for the next press, and a menu opened above the tooltip keeps this one.
573
+ */
574
+ onOverlayKeydown(event) {
575
+ if (event.key !== 'Escape' || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey)
576
+ return;
577
+ event.preventDefault();
578
+ this.dismissed.set(true);
449
579
  this.requestOpen(false);
450
580
  }
451
581
  onTooltipPositionChange(event) {
@@ -494,6 +624,7 @@ class TooltipComponent {
494
624
  this.transitionToken += 1;
495
625
  this.cdkPositionStrategy = null;
496
626
  this.activePosition.set(null);
627
+ this.pointerOverPane.set(false);
497
628
  this.renderedOpen.set(false);
498
629
  this.phase.set('closed');
499
630
  }
@@ -512,7 +643,7 @@ class TooltipComponent {
512
643
  }
513
644
  scheduleTooltipAnimationFallback(token, phase) {
514
645
  this.clearTooltipAnimationFallback();
515
- const root = this.elementRef.nativeElement.ownerDocument.getElementById(this.tooltipId);
646
+ const root = this.elementRef.nativeElement.ownerDocument.getElementById(this.paneId);
516
647
  const style = root ? getComputedStyle(root) : null;
517
648
  const parseTime = (value) => {
518
649
  const parsed = Number.parseFloat(value);
@@ -536,13 +667,13 @@ class TooltipComponent {
536
667
  this.animationFallbackHandle = null;
537
668
  }
538
669
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
539
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TooltipComponent, isStandalone: true, selector: "st-tooltip", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "inline-flex items-center" }, queries: [{ propertyName: "customContent", first: true, predicate: TooltipContentComponent, descendants: true, isSignal: true }, { propertyName: "richContentElement", first: true, predicate: TooltipContentComponent, descendants: true, read: ElementRef, isSignal: true }], viewQueries: [{ propertyName: "origin", first: true, predicate: CdkOverlayOrigin, descendants: true, isSignal: true }], ngImport: i0, template: "@let labelVar = label()?.trim();\n@let componentClassVar = componentClass();\n\n<ng-template #richContent><ng-content select=\"st-tooltip-content\"></ng-content></ng-template>\n\n<div\n\tcdkOverlayOrigin\n\t[class]=\"componentClassVar\"\n\t[attr.tabindex]=\"triggerTabIndexValue()\"\n\t(mouseenter)=\"onPointerEnter()\"\n\t(mouseleave)=\"onPointerLeave()\"\n\t(focusin)=\"onFocusIn($event)\"\n\t(focusout)=\"onFocusOut($event)\"\n\t(keydown.escape)=\"onEscape()\"\n\t(pointerdown)=\"onPress()\"\n>\n\t@let iconVar = icon();\n\t@let iconPositionVar = iconPosition() ?? 'left';\n\t@if (iconVar && iconPositionVar === 'left') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n\n\t<ng-content></ng-content>\n\n\t@if (iconVar && iconPositionVar === 'right') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n</div>\n\n@if (renderedOpen()) {\n\t<ng-template\n\t\tcdkConnectedOverlay\n\t\t[cdkConnectedOverlayOrigin]=\"origin()\"\n\t\t[cdkConnectedOverlayOpen]=\"true\"\n\t\t[cdkConnectedOverlayPositionStrategy]=\"tooltipPositionStrategy()\"\n\t\t[cdkConnectedOverlayPositions]=\"positions()\"\n\t\t[cdkConnectedOverlayScrollStrategy]=\"repositionScrollStrategy\"\n\t\t[cdkConnectedOverlayPush]=\"true\"\n\t\t[cdkConnectedOverlayViewportMargin]=\"8\"\n\t\t[cdkConnectedOverlayDisableClose]=\"true\"\n\t\t[cdkConnectedOverlayPanelClass]=\"'pointer-events-none!'\"\n\t\t(positionChange)=\"onTooltipPositionChange($event)\"\n\t\t(detach)=\"onTooltipDetach()\"\n\t>\n\t\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(origin().elementRef.nativeElement)\">\n\t\t\t<div\n\t\t\t\t[attr.id]=\"tooltipId\"\n\t\t\t\trole=\"tooltip\"\n\t\t\t\t[class]=\"tooltipAnimationClass()\"\n\t\t\t\t[attr.data-state]=\"phase()\"\n\t\t\t\t[attr.data-side]=\"tooltipDirection()\"\n\t\t\t\t[style.transform-origin]=\"transformOrigin()\"\n\t\t\t\t(animationend)=\"onTooltipAnimationEnd($event)\"\n\t\t\t\t(animationcancel)=\"onTooltipAnimationCancel($event)\"\n\t\t\t>\n\t\t\t\t@if (labelVar) {\n\t\t\t\t\t{{ labelVar }}\n\t\t\t\t} @else {\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"richContent\"></ng-container>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n}\n", styles: [""], dependencies: [{ kind: "directive", type: CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }] });
670
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TooltipComponent, isStandalone: true, selector: "st-tooltip", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, closeDelay: { classPropertyName: "closeDelay", publicName: "closeDelay", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "inline-flex items-center" }, queries: [{ propertyName: "customContent", first: true, predicate: TooltipContentComponent, descendants: true, isSignal: true }, { propertyName: "richContentElement", first: true, predicate: TooltipContentComponent, descendants: true, read: ElementRef, isSignal: true }], viewQueries: [{ propertyName: "origin", first: true, predicate: CdkOverlayOrigin, descendants: true, isSignal: true }], ngImport: i0, template: "@let labelVar = label()?.trim();\n@let componentClassVar = componentClass();\n\n<ng-template #richContent><ng-content select=\"st-tooltip-content\"></ng-content></ng-template>\n\n<div\n\tcdkOverlayOrigin\n\t[class]=\"componentClassVar\"\n\t[attr.tabindex]=\"triggerTabIndexValue()\"\n\t(mouseenter)=\"onPointerEnter()\"\n\t(mouseleave)=\"onPointerLeave()\"\n\t(focusin)=\"onFocusIn($event)\"\n\t(focusout)=\"onFocusOut($event)\"\n>\n\t@let iconVar = icon();\n\t@let iconPositionVar = iconPosition() ?? 'left';\n\t@if (iconVar && iconPositionVar === 'left') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n\n\t<ng-content></ng-content>\n\n\t@if (iconVar && iconPositionVar === 'right') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n</div>\n\n@let descriptionVar = descriptionText();\n@if (descriptionVar) {\n\t<span [attr.id]=\"tooltipId\" role=\"tooltip\" hidden>{{ descriptionVar }}</span>\n}\n\n@if (renderedOpen()) {\n\t<ng-template\n\t\tcdkConnectedOverlay\n\t\t[cdkConnectedOverlayOrigin]=\"origin()\"\n\t\t[cdkConnectedOverlayOpen]=\"true\"\n\t\t[cdkConnectedOverlayPositionStrategy]=\"tooltipPositionStrategy()\"\n\t\t[cdkConnectedOverlayPositions]=\"positions()\"\n\t\t[cdkConnectedOverlayScrollStrategy]=\"repositionScrollStrategy\"\n\t\t[cdkConnectedOverlayPush]=\"true\"\n\t\t[cdkConnectedOverlayViewportMargin]=\"8\"\n\t\t[cdkConnectedOverlayDisableClose]=\"true\"\n\t\t(overlayKeydown)=\"onOverlayKeydown($event)\"\n\t\t(positionChange)=\"onTooltipPositionChange($event)\"\n\t\t(detach)=\"onTooltipDetach()\"\n\t>\n\t\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(origin().elementRef.nativeElement)\">\n\t\t\t<div\n\t\t\t\t[attr.id]=\"paneId\"\n\t\t\t\tdata-st-tooltip-pane\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\t[class]=\"tooltipAnimationClass()\"\n\t\t\t\t[attr.data-state]=\"phase()\"\n\t\t\t\t[attr.data-side]=\"tooltipDirection()\"\n\t\t\t\t[style.transform-origin]=\"transformOrigin()\"\n\t\t\t\t(animationend)=\"onTooltipAnimationEnd($event)\"\n\t\t\t\t(animationcancel)=\"onTooltipAnimationCancel($event)\"\n\t\t\t\t(mouseenter)=\"onPaneEnter()\"\n\t\t\t\t(mouseleave)=\"onPaneLeave()\"\n\t\t\t>\n\t\t\t\t@if (labelVar) {\n\t\t\t\t\t{{ labelVar }}\n\t\t\t\t} @else {\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"richContent\"></ng-container>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n}\n", styles: [""], dependencies: [{ kind: "directive", type: CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }] });
540
671
  }
541
672
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TooltipComponent, decorators: [{
542
673
  type: Component,
543
674
  args: [{ selector: 'st-tooltip', standalone: true, imports: [CdkConnectedOverlay, CdkOverlayOrigin, NgTemplateOutlet, IconComponent], host: {
544
675
  class: 'inline-flex items-center',
545
- }, template: "@let labelVar = label()?.trim();\n@let componentClassVar = componentClass();\n\n<ng-template #richContent><ng-content select=\"st-tooltip-content\"></ng-content></ng-template>\n\n<div\n\tcdkOverlayOrigin\n\t[class]=\"componentClassVar\"\n\t[attr.tabindex]=\"triggerTabIndexValue()\"\n\t(mouseenter)=\"onPointerEnter()\"\n\t(mouseleave)=\"onPointerLeave()\"\n\t(focusin)=\"onFocusIn($event)\"\n\t(focusout)=\"onFocusOut($event)\"\n\t(keydown.escape)=\"onEscape()\"\n\t(pointerdown)=\"onPress()\"\n>\n\t@let iconVar = icon();\n\t@let iconPositionVar = iconPosition() ?? 'left';\n\t@if (iconVar && iconPositionVar === 'left') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n\n\t<ng-content></ng-content>\n\n\t@if (iconVar && iconPositionVar === 'right') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n</div>\n\n@if (renderedOpen()) {\n\t<ng-template\n\t\tcdkConnectedOverlay\n\t\t[cdkConnectedOverlayOrigin]=\"origin()\"\n\t\t[cdkConnectedOverlayOpen]=\"true\"\n\t\t[cdkConnectedOverlayPositionStrategy]=\"tooltipPositionStrategy()\"\n\t\t[cdkConnectedOverlayPositions]=\"positions()\"\n\t\t[cdkConnectedOverlayScrollStrategy]=\"repositionScrollStrategy\"\n\t\t[cdkConnectedOverlayPush]=\"true\"\n\t\t[cdkConnectedOverlayViewportMargin]=\"8\"\n\t\t[cdkConnectedOverlayDisableClose]=\"true\"\n\t\t[cdkConnectedOverlayPanelClass]=\"'pointer-events-none!'\"\n\t\t(positionChange)=\"onTooltipPositionChange($event)\"\n\t\t(detach)=\"onTooltipDetach()\"\n\t>\n\t\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(origin().elementRef.nativeElement)\">\n\t\t\t<div\n\t\t\t\t[attr.id]=\"tooltipId\"\n\t\t\t\trole=\"tooltip\"\n\t\t\t\t[class]=\"tooltipAnimationClass()\"\n\t\t\t\t[attr.data-state]=\"phase()\"\n\t\t\t\t[attr.data-side]=\"tooltipDirection()\"\n\t\t\t\t[style.transform-origin]=\"transformOrigin()\"\n\t\t\t\t(animationend)=\"onTooltipAnimationEnd($event)\"\n\t\t\t\t(animationcancel)=\"onTooltipAnimationCancel($event)\"\n\t\t\t>\n\t\t\t\t@if (labelVar) {\n\t\t\t\t\t{{ labelVar }}\n\t\t\t\t} @else {\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"richContent\"></ng-container>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n}\n" }]
676
+ }, template: "@let labelVar = label()?.trim();\n@let componentClassVar = componentClass();\n\n<ng-template #richContent><ng-content select=\"st-tooltip-content\"></ng-content></ng-template>\n\n<div\n\tcdkOverlayOrigin\n\t[class]=\"componentClassVar\"\n\t[attr.tabindex]=\"triggerTabIndexValue()\"\n\t(mouseenter)=\"onPointerEnter()\"\n\t(mouseleave)=\"onPointerLeave()\"\n\t(focusin)=\"onFocusIn($event)\"\n\t(focusout)=\"onFocusOut($event)\"\n>\n\t@let iconVar = icon();\n\t@let iconPositionVar = iconPosition() ?? 'left';\n\t@if (iconVar && iconPositionVar === 'left') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n\n\t<ng-content></ng-content>\n\n\t@if (iconVar && iconPositionVar === 'right') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n</div>\n\n@let descriptionVar = descriptionText();\n@if (descriptionVar) {\n\t<span [attr.id]=\"tooltipId\" role=\"tooltip\" hidden>{{ descriptionVar }}</span>\n}\n\n@if (renderedOpen()) {\n\t<ng-template\n\t\tcdkConnectedOverlay\n\t\t[cdkConnectedOverlayOrigin]=\"origin()\"\n\t\t[cdkConnectedOverlayOpen]=\"true\"\n\t\t[cdkConnectedOverlayPositionStrategy]=\"tooltipPositionStrategy()\"\n\t\t[cdkConnectedOverlayPositions]=\"positions()\"\n\t\t[cdkConnectedOverlayScrollStrategy]=\"repositionScrollStrategy\"\n\t\t[cdkConnectedOverlayPush]=\"true\"\n\t\t[cdkConnectedOverlayViewportMargin]=\"8\"\n\t\t[cdkConnectedOverlayDisableClose]=\"true\"\n\t\t(overlayKeydown)=\"onOverlayKeydown($event)\"\n\t\t(positionChange)=\"onTooltipPositionChange($event)\"\n\t\t(detach)=\"onTooltipDetach()\"\n\t>\n\t\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(origin().elementRef.nativeElement)\">\n\t\t\t<div\n\t\t\t\t[attr.id]=\"paneId\"\n\t\t\t\tdata-st-tooltip-pane\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\t[class]=\"tooltipAnimationClass()\"\n\t\t\t\t[attr.data-state]=\"phase()\"\n\t\t\t\t[attr.data-side]=\"tooltipDirection()\"\n\t\t\t\t[style.transform-origin]=\"transformOrigin()\"\n\t\t\t\t(animationend)=\"onTooltipAnimationEnd($event)\"\n\t\t\t\t(animationcancel)=\"onTooltipAnimationCancel($event)\"\n\t\t\t\t(mouseenter)=\"onPaneEnter()\"\n\t\t\t\t(mouseleave)=\"onPaneLeave()\"\n\t\t\t>\n\t\t\t\t@if (labelVar) {\n\t\t\t\t\t{{ labelVar }}\n\t\t\t\t} @else {\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"richContent\"></ng-container>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n}\n" }]
546
677
  }], ctorParameters: () => [] });
547
678
 
548
679
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-tooltip.mjs","sources":["../../../projects/sdk/components/tooltip/tooltip-content/tooltip-content.component.ts","../../../projects/sdk/components/tooltip/tooltip-content/tooltip-content.component.html","../../../projects/sdk/components/tooltip/src/tooltip.component.ts","../../../projects/sdk/components/tooltip/src/tooltip.component.html","../../../projects/sdk/components/tooltip/sixbell-telco-sdk-components-tooltip.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * A container component for custom tooltip content\n *\n * @remarks\n * Designed to be used within `<st-tooltip>` components to provide\n * rich, customized tooltip content. When used, replaces the default\n * text label with any arbitrary content.\n *\n * @example\n * ```html\n * <st-tooltip variant=\"warning\">\n * <button class=\"btn\">Hover me</button>\n * <st-tooltip-content>\n * <div class=\"animate-pulse text-red-500\">\n * ⚠️ Critical warning!\n * </div>\n * </st-tooltip-content>\n * </st-tooltip>\n * ```\n *\n * @example\n * ```html\n * <st-tooltip position=\"right\">\n * <st-tooltip-content>\n * <div class=\"flex items-center gap-2\">\n * <st-icon icon=\"info\"></st-icon>\n * <span>Custom tooltip layout</span>\n * </div>\n * </st-tooltip-content>\n * <p class=\"cursor-pointer\">Hover for details</p>\n * </st-tooltip>\n * ```\n */\n@Component({\n\tselector: 'st-tooltip-content',\n\timports: [CommonModule],\n\ttemplateUrl: './tooltip-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TooltipContentComponent {}\n","<ng-content></ng-content>\n","import {\n\tCdkConnectedOverlay,\n\tCdkOverlayOrigin,\n\tConnectedOverlayPositionChange,\n\tConnectedPosition,\n\tFlexibleConnectedPositionStrategy,\n\tOverlay,\n\tScrollStrategy,\n} from '@angular/cdk/overlay';\nimport { ScrollDispatcher } from '@angular/cdk/scrolling';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n\tafterRenderEffect,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tDestroyRef,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tRenderer2,\n\tsignal,\n\tviewChild,\n} from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { generateUniqueId } from '@sixbell-telco/sdk/utils/generators/uuid';\nimport { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';\nimport { cva } from 'class-variance-authority';\nimport { TooltipContentComponent } from '../tooltip-content/tooltip-content.component';\n\n/**\n * @internal\n * Generates base tooltip classes with style variants\n */\nexport const tooltipComponent = cva(['tooltip', 'inline-flex', 'items-center', 'align-top', 'text-pretty', 'font-body', 'gap-1'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tbase: [],\n\t\t\tprimary: ['tooltip-primary'],\n\t\t\tsecondary: ['tooltip-secondary'],\n\t\t\ttertiary: ['tooltip-tertiary'],\n\t\t\tsuccess: ['tooltip-success'],\n\t\t\tneutral: ['tooltip-neutral'],\n\t\t\twarning: ['tooltip-warning'],\n\t\t\terror: ['tooltip-error'],\n\t\t\tinfo: ['tooltip-info'],\n\t\t},\n\t\tposition: {\n\t\t\ttop: ['tooltip-top'],\n\t\t\tbottom: ['tooltip-bottom'],\n\t\t\tright: ['tooltip-right'],\n\t\t\tleft: ['tooltip-left'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'base',\n\t\tposition: 'bottom',\n\t},\n});\n\n/** Possible tooltip color variants */\nexport type TooltipVariantProps =\n\t'base' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'neutral' | 'warning' | 'error' | 'info' | null | undefined;\n\nconst tooltipVariantSurface: Record<NonNullable<TooltipVariantProps>, string> = {\n\tbase: 'bg-base-300 text-base-content',\n\tprimary: 'bg-primary text-primary-content',\n\tsecondary: 'bg-secondary text-secondary-content',\n\ttertiary: 'bg-tertiary text-tertiary-content',\n\tsuccess: 'bg-success text-success-content',\n\tneutral: 'bg-neutral text-neutral-content',\n\twarning: 'bg-warning text-warning-content',\n\terror: 'bg-error text-error-content',\n\tinfo: 'bg-info text-info-content',\n};\n\n/** Possible tooltip position variants */\nexport type TooltipPositionProps = 'top' | 'bottom' | 'right' | 'left' | null | undefined;\n\n/** Configuration object for tooltip styling */\nexport type TooltipProps = {\n\tvariant?: TooltipVariantProps;\n\tposition?: TooltipPositionProps;\n};\n\ntype TooltipSide = 'top' | 'bottom' | 'right' | 'left';\ntype TooltipPhase = 'closed' | 'opening' | 'open' | 'closing';\n\nconst focusableSelector = 'a[href], area[href], button, input, select, textarea, [contenteditable=\"true\"], [tabindex]:not([tabindex=\"-1\"])';\n\n/** Focus the browser would show a ring for (keyboard, or programmatic after keyboard), shadow roots included. */\nfunction isKeyboardFocus(element: HTMLElement): boolean {\n\ttry {\n\t\treturn element.matches(':focus-visible');\n\t} catch {\n\t\treturn true;\n\t}\n}\n\nfunction isEnabledFocusable(element: HTMLElement): boolean {\n\tlet ancestor: HTMLElement | null = element;\n\twhile (ancestor) {\n\t\tconst ancestorStyle = getComputedStyle(ancestor);\n\t\tif (\n\t\t\tancestor.style.display === 'none' ||\n\t\t\tancestor.style.visibility === 'hidden' ||\n\t\t\tancestorStyle.display === 'none' ||\n\t\t\tancestorStyle.visibility === 'hidden'\n\t\t)\n\t\t\treturn false;\n\t\tancestor = ancestor.parentElement;\n\t}\n\n\tconst style = getComputedStyle(element);\n\treturn Boolean(\n\t\telement.isConnected &&\n\t\telement.tabIndex >= 0 &&\n\t\t!element.matches(':disabled') &&\n\t\t!(element as HTMLButtonElement).disabled &&\n\t\telement.getAttribute('aria-disabled') !== 'true' &&\n\t\t!element.closest('[hidden], [inert], [aria-hidden=\"true\"], fieldset[disabled]') &&\n\t\t!element.hidden &&\n\t\t!(element as HTMLElement & { inert?: boolean }).inert &&\n\t\tstyle.display !== 'none' &&\n\t\tstyle.visibility !== 'hidden',\n\t);\n}\n\n/**\n * A customizable tooltip component with multiple variants and content options\n *\n * @remarks\n * Built with Tailwind CSS and class-variance-authority for style management.\n * Supports both simple text labels and custom content tooltips.\n *\n * @example\n * ```html\n * <!-- Simple text tooltip -->\n * <st-tooltip variant=\"primary\" label=\"Information tooltip\">\n * <button class=\"btn\">Hover me</button>\n * </st-tooltip>\n * ```\n *\n * @example\n * ```html\n * <!-- Custom content tooltip -->\n * <st-tooltip position=\"right\" variant=\"warning\">\n * <button class=\"btn\">Dangerous action</button>\n * <st-tooltip-content>\n * <div class=\"text-red-500 font-bold\">\n * ⚠️ Proceed with caution!\n * </div>\n * </st-tooltip-content>\n * </st-tooltip>\n * ```\n */\n@Component({\n\tselector: 'st-tooltip',\n\tstandalone: true,\n\timports: [CdkConnectedOverlay, CdkOverlayOrigin, NgTemplateOutlet, IconComponent],\n\ttemplateUrl: './tooltip.component.html',\n\tstyles: '',\n\thost: {\n\t\tclass: 'inline-flex items-center',\n\t},\n})\nexport class TooltipComponent {\n\tprotected readonly themeDomService = inject(ThemeDomService);\n\tprivate readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\tprivate readonly renderer = inject(Renderer2);\n\tprivate readonly destroyRef = inject(DestroyRef);\n\tprivate readonly scrollDispatcher = inject(ScrollDispatcher);\n\tprivate readonly overlay = inject(Overlay);\n\tprotected readonly repositionScrollStrategy: ScrollStrategy = this.overlay.scrollStrategies.reposition();\n\tprivate cdkPositionStrategy: FlexibleConnectedPositionStrategy | null = null;\n\t/**\n\t * Tooltip color variant\n\t * @defaultValue 'base'\n\t */\n\tvariant = input<TooltipVariantProps>();\n\n\t/**\n\t * Tooltip position relative to target element\n\t * @defaultValue 'bottom'\n\t */\n\tposition = input<TooltipPositionProps>();\n\n\t/**\n\t * Text label for simple tooltip content\n\t */\n\tlabel = input<string>();\n\n\t/**\n\t * Optional icon name to render inside the trigger (mirrors Button API)\n\t */\n\ticon = input<string | undefined>();\n\n\t/**\n\t * Icon position relative to content\n\t * @defaultValue 'left'\n\t */\n\ticonPosition = input<'left' | 'right' | null | undefined>('left');\n\n\t/**\n\t * @internal\n\t * Reference to custom tooltip content component\n\t */\n\tcustomContent = contentChild(TooltipContentComponent);\n\tprivate readonly richContentElement = contentChild(TooltipContentComponent, { read: ElementRef<HTMLElement> });\n\tprivate readonly richContentText = signal('');\n\n\t/**\n\t * @internal\n\t * Computed flag indicating presence of custom content\n\t */\n\thasCustomContent = computed(() => !!this.customContent());\n\n\tprivate readonly hasTooltipContent = computed(() => {\n\t\tconst label = this.label()?.trim();\n\t\tconst richContent = this.richContentText();\n\t\treturn Boolean(label || richContent);\n\t});\n\n\tprivate readonly requestedOpen = signal(false);\n\tprivate readonly pointerInside = signal(false);\n\tprivate readonly focusedTarget = signal<HTMLElement | null>(null);\n\tprivate readonly escapeClosed = signal(false);\n\tprotected readonly renderedOpen = signal(false);\n\tprotected readonly phase = signal<TooltipPhase>('closed');\n\tprivate readonly activePosition = signal<ConnectedPosition | null>(null);\n\tprivate readonly closingSide = signal<TooltipSide | null>(null);\n\tprivate transitionToken = 0;\n\tprotected readonly tooltipId = `st-tooltip-${generateUniqueId()}`;\n\tprotected readonly origin = viewChild.required(CdkOverlayOrigin);\n\tprivate animationFallbackHandle: ReturnType<typeof setTimeout> | null = null;\n\tprotected readonly triggerTabIndexValue = signal<number | null>(0);\n\n\t/**\n\t * @internal\n\t * Computed class string for the tooltip container\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\ttooltipComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tposition: this.position(),\n\t\t\t}),\n\t\t);\n\t});\n\n\tconstructor() {\n\t\tafterRenderEffect(() => {\n\t\t\tconst richContent = this.richContentElement()?.nativeElement.textContent?.trim() ?? '';\n\t\t\tif (richContent !== this.richContentText()) this.richContentText.set(richContent);\n\t\t\tthis.triggerTabIndexValue.set(this.hasFocusableDescendant() ? null : 0);\n\t\t});\n\t\teffect((onCleanup) => {\n\t\t\tconst element = this.richContentElement()?.nativeElement;\n\t\t\tif (!element || typeof MutationObserver === 'undefined') return;\n\t\t\tconst updateRichContent = () => {\n\t\t\t\tconst richContent = element.textContent?.trim() ?? '';\n\t\t\t\tif (richContent !== this.richContentText()) this.richContentText.set(richContent);\n\t\t\t};\n\t\t\tconst observer = new MutationObserver(updateRichContent);\n\t\t\tobserver.observe(element, { characterData: true, childList: true, subtree: true });\n\t\t\tupdateRichContent();\n\t\t\tonCleanup(() => observer.disconnect());\n\t\t});\n\t\teffect(() => {\n\t\t\tif (!this.hasTooltipContent()) {\n\t\t\t\tthis.syncDescribedBy(null);\n\t\t\t\tif (this.requestedOpen()) this.requestOpen(false);\n\t\t\t}\n\t\t});\n\t\tthis.destroyRef.onDestroy(() => {\n\t\t\tthis.clearTooltipAnimationFallback();\n\t\t\tthis.syncDescribedBy(null);\n\t\t\tthis.transitionToken += 1;\n\t\t});\n\t}\n\n\tprotected readonly positions = computed<ConnectedPosition[]>(() => {\n\t\tconst requestedSide = this.sideFromPair(this.primaryPosition(this.position()));\n\t\tconst [firstOrthogonal, secondOrthogonal] = this.orthogonalSides(requestedSide);\n\t\treturn [requestedSide, this.oppositeSide(requestedSide), firstOrthogonal, secondOrthogonal].map((side) => this.primaryPosition(side));\n\t});\n\n\tprivate primaryPosition(position: TooltipPositionProps): ConnectedPosition {\n\t\tswitch (position) {\n\t\t\tcase 'top':\n\t\t\t\treturn { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom', offsetX: 0, offsetY: -8 };\n\t\t\tcase 'right':\n\t\t\t\treturn { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', offsetX: 8, offsetY: 0 };\n\t\t\tcase 'left':\n\t\t\t\treturn { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center', offsetX: -8, offsetY: 0 };\n\t\t\tdefault:\n\t\t\t\treturn { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top', offsetX: 0, offsetY: 8 };\n\t\t}\n\t}\n\n\tprivate oppositeSide(side: TooltipSide): TooltipSide {\n\t\treturn ({ bottom: 'top', top: 'bottom', right: 'left', left: 'right' } satisfies Record<TooltipSide, TooltipSide>)[side];\n\t}\n\n\tprivate orthogonalSides(side: TooltipSide): [TooltipSide, TooltipSide] {\n\t\treturn side === 'bottom' || side === 'top' ? ['right', 'left'] : ['bottom', 'top'];\n\t}\n\n\tprivate sideFromPair(pair: ConnectedPosition): TooltipSide {\n\t\tif (pair.originY === 'bottom' && pair.overlayY === 'top') return 'bottom';\n\t\tif (pair.originY === 'top' && pair.overlayY === 'bottom') return 'top';\n\t\tif (pair.originX === 'end' && pair.overlayX === 'start') return 'right';\n\t\tif (pair.originX === 'start' && pair.overlayX === 'end') return 'left';\n\t\treturn 'bottom';\n\t}\n\n\tprotected readonly tooltipDirection = computed<TooltipSide>(() => {\n\t\treturn this.closingSide() ?? this.sideFromPair(this.activePosition() ?? this.positions()[0]);\n\t});\n\n\tprotected readonly tooltipClasses = computed(() => {\n\t\tconst phase = this.phase();\n\t\tif (phase === 'closed') return '';\n\t\tconst side = this.tooltipDirection();\n\t\tconst classes: Record<TooltipSide, Record<'opening' | 'open' | 'closing', string>> = {\n\t\t\tbottom: {\n\t\t\t\topening: 'animate-fade-in-up animate-duration-150 origin-top',\n\t\t\t\topen: 'animate-fade-in-up animate-duration-150 origin-top',\n\t\t\t\tclosing: 'animate-fade-out-down animate-duration-150 origin-top',\n\t\t\t},\n\t\t\ttop: {\n\t\t\t\topening: 'animate-fade-in-down animate-duration-150 origin-bottom',\n\t\t\t\topen: 'animate-fade-in-down animate-duration-150 origin-bottom',\n\t\t\t\tclosing: 'animate-fade-out-up animate-duration-150 origin-bottom',\n\t\t\t},\n\t\t\tright: {\n\t\t\t\topening: 'animate-fade-in-right animate-duration-150 origin-left',\n\t\t\t\topen: 'animate-fade-in-right animate-duration-150 origin-left',\n\t\t\t\tclosing: 'animate-fade-out-left animate-duration-150 origin-left',\n\t\t\t},\n\t\t\tleft: {\n\t\t\t\topening: 'animate-fade-in-left animate-duration-150 origin-right',\n\t\t\t\topen: 'animate-fade-in-left animate-duration-150 origin-right',\n\t\t\t\tclosing: 'animate-fade-out-right animate-duration-150 origin-right',\n\t\t\t},\n\t\t};\n\t\tconst variant = this.variant() ?? 'base';\n\t\tconst variantClass = this.variant() ? `tooltip-${this.variant()}` : '';\n\t\tconst surface = tooltipVariantSurface[variant] ?? tooltipVariantSurface.base;\n\t\treturn `tooltip ${variantClass} ${surface} rounded-field px-2 py-1 shadow-sm ${classes[side][phase]}`.trim();\n\t});\n\n\tprotected readonly transformOrigin = computed(() => ({ bottom: 'top', top: 'bottom', right: 'left', left: 'right' })[this.tooltipDirection()]);\n\n\tprotected tooltipAnimationClass(): string {\n\t\treturn this.tooltipClasses();\n\t}\n\n\tprivate expectedTooltipAnimationName(phase: 'opening' | 'closing', side: TooltipSide): string {\n\t\treturn {\n\t\t\tbottom: { opening: 'fade-in-up', closing: 'fade-out-down' },\n\t\t\ttop: { opening: 'fade-in-down', closing: 'fade-out-up' },\n\t\t\tright: { opening: 'fade-in-right', closing: 'fade-out-left' },\n\t\t\tleft: { opening: 'fade-in-left', closing: 'fade-out-right' },\n\t\t}[side][phase];\n\t}\n\n\tprivate hasFocusableDescendant(): boolean {\n\t\tconst origin = this.origin().elementRef.nativeElement as HTMLElement;\n\t\treturn Array.from(origin.querySelectorAll<HTMLElement>(focusableSelector)).some((element) => isEnabledFocusable(element));\n\t}\n\n\tprotected resolveFocusTarget(event: FocusEvent): HTMLElement | null {\n\t\tconst origin = this.origin().elementRef.nativeElement as HTMLElement;\n\t\tfor (const item of event.composedPath()) {\n\t\t\tif (!(item instanceof HTMLElement) || !this.elementRef.nativeElement.contains(item)) continue;\n\t\t\tif (item === origin && event.target !== origin) continue;\n\t\t\tif ((item === origin || item.matches(focusableSelector)) && isEnabledFocusable(item)) return item;\n\t\t}\n\t\treturn null;\n\t}\n\n\tprotected syncDescribedBy(target: HTMLElement | null): void {\n\t\tconst previous = this.focusedTarget();\n\t\tif (!this.hasTooltipContent()) {\n\t\t\tif (previous) this.removeDescribedBy(previous);\n\t\t\tthis.focusedTarget.set(null);\n\t\t\treturn;\n\t\t}\n\t\tif (!target) {\n\t\t\tif (previous) this.removeDescribedBy(previous);\n\t\t\tthis.focusedTarget.set(null);\n\t\t\treturn;\n\t\t}\n\t\tif (previous && previous !== target) this.removeDescribedBy(previous);\n\t\tconst tokens = (target.getAttribute('aria-describedby') ?? '').split(/\\s+/).filter(Boolean);\n\t\tif (!tokens.includes(this.tooltipId)) this.renderer.setAttribute(target, 'aria-describedby', [...tokens, this.tooltipId].join(' '));\n\t\tthis.focusedTarget.set(target);\n\t}\n\n\tprivate removeDescribedBy(target: HTMLElement): void {\n\t\tconst tokens = (target.getAttribute('aria-describedby') ?? '').split(/\\s+/).filter((token) => token && token !== this.tooltipId);\n\t\tif (tokens.length) this.renderer.setAttribute(target, 'aria-describedby', tokens.join(' '));\n\t\telse this.renderer.removeAttribute(target, 'aria-describedby');\n\t}\n\n\tprotected requestOpen(next: boolean): void {\n\t\tif (next && (this.escapeClosed() || !this.hasTooltipContent())) return;\n\t\tif (next === this.requestedOpen()) return;\n\t\tthis.requestedOpen.set(next);\n\t\tthis.transitionToken += 1;\n\t\tthis.clearTooltipAnimationFallback();\n\t\tconst token = this.transitionToken;\n\t\tif (next) {\n\t\t\tthis.closingSide.set(null);\n\t\t\tif (!this.renderedOpen()) this.activePosition.set(null);\n\t\t\tthis.renderedOpen.set(true);\n\t\t\tthis.phase.set('opening');\n\t\t\tthis.animationFallbackHandle = setTimeout(() => {\n\t\t\t\tthis.animationFallbackHandle = null;\n\t\t\t\tif (token === this.transitionToken && this.phase() === 'opening') this.scheduleTooltipAnimationFallback(token, 'opening');\n\t\t\t}, 0);\n\t\t} else {\n\t\t\tthis.closingSide.set(this.sideFromPair(this.activePosition() ?? this.positions()[0]));\n\t\t\tthis.phase.set('closing');\n\t\t\tthis.scheduleTooltipAnimationFallback(token, 'closing');\n\t\t}\n\t}\n\n\tprotected onPointerEnter(): void {\n\t\tthis.pointerInside.set(true);\n\t\tthis.escapeClosed.set(false);\n\t\tthis.requestOpen(true);\n\t}\n\n\tprotected onPointerLeave(): void {\n\t\tthis.pointerInside.set(false);\n\t\tif (!this.focusedTarget()) this.requestOpen(false);\n\t}\n\n\tprotected onFocusIn(event: FocusEvent): void {\n\t\tconst target = this.resolveFocusTarget(event);\n\t\tthis.syncDescribedBy(target);\n\t\t// After a press or Escape, only keyboard focus may reopen it: the focus that the press itself\n\t\t// causes, or that a dialog restores to the trigger on close, must not pin it open again.\n\t\tif (this.escapeClosed() && !(target && isKeyboardFocus(target))) return;\n\t\tthis.escapeClosed.set(false);\n\t\tthis.requestOpen(Boolean(target));\n\t}\n\n\t/** Pressing the trigger dismisses the tooltip until a fresh pointer enter or keyboard focus. */\n\tprotected onPress(): void {\n\t\tthis.escapeClosed.set(true);\n\t\tthis.requestOpen(false);\n\t}\n\n\tprotected onFocusOut(event: FocusEvent): void {\n\t\tconst related = event.relatedTarget;\n\t\tif (related instanceof Node && this.elementRef.nativeElement.contains(related)) return;\n\t\tthis.syncDescribedBy(null);\n\t\tif (!this.pointerInside()) this.requestOpen(false);\n\t}\n\n\tprotected onEscape(): void {\n\t\tthis.escapeClosed.set(true);\n\t\tthis.requestOpen(false);\n\t}\n\n\tprotected onTooltipPositionChange(event: ConnectedOverlayPositionChange): void {\n\t\tthis.activePosition.set(event.connectionPair);\n\t\tif (this.isOriginOutsideView(event)) {\n\t\t\tthis.syncDescribedBy(null);\n\t\t\tthis.requestOpen(false);\n\t\t}\n\t}\n\n\tprotected tooltipPositionStrategy(): FlexibleConnectedPositionStrategy {\n\t\tconst strategy = this.cdkPositionStrategy ?? (this.cdkPositionStrategy = this.overlay.position().flexibleConnectedTo(this.origin().elementRef));\n\t\tstrategy\n\t\t\t.setOrigin(this.origin().elementRef)\n\t\t\t.withPositions(this.positions())\n\t\t\t.withPush(true)\n\t\t\t.withViewportMargin(8)\n\t\t\t.withScrollableContainers(this.scrollDispatcher.getAncestorScrollContainers(this.origin().elementRef));\n\t\treturn strategy;\n\t}\n\n\tprivate isOriginOutsideView(change: ConnectedOverlayPositionChange): boolean {\n\t\treturn change.scrollableViewProperties?.isOriginOutsideView === true;\n\t}\n\n\tprotected onTooltipAnimationEnd(event: AnimationEvent): void {\n\t\tconst phase = this.phase();\n\t\tif ((phase !== 'opening' && phase !== 'closing') || event.target !== event.currentTarget) return;\n\t\tconst side = this.tooltipDirection();\n\t\tif (event.animationName !== this.expectedTooltipAnimationName(phase, side)) return;\n\t\tif (phase === 'opening') this.settleTooltipOpening(this.transitionToken);\n\t\telse this.settleTooltipClosing(this.transitionToken);\n\t}\n\n\tprotected onTooltipAnimationCancel(event: AnimationEvent): void {\n\t\tconst phase = this.phase();\n\t\tif ((phase !== 'opening' && phase !== 'closing') || event.target !== event.currentTarget) return;\n\t\tconst side = this.tooltipDirection();\n\t\tif (event.animationName !== this.expectedTooltipAnimationName(phase, side)) return;\n\t\tthis.scheduleTooltipAnimationFallback(this.transitionToken, phase);\n\t}\n\n\tprotected onTooltipDetach(): void {\n\t\tthis.clearTooltipAnimationFallback();\n\t\tthis.transitionToken += 1;\n\t\tthis.cdkPositionStrategy = null;\n\t\tthis.activePosition.set(null);\n\t\tthis.renderedOpen.set(false);\n\t\tthis.phase.set('closed');\n\t}\n\n\tprivate settleTooltipOpening(token: number): void {\n\t\tif (token !== this.transitionToken || !this.requestedOpen() || this.phase() !== 'opening') return;\n\t\tthis.clearTooltipAnimationFallback();\n\t\tthis.phase.set('open');\n\t}\n\n\tprivate settleTooltipClosing(token: number): void {\n\t\tif (token !== this.transitionToken || this.requestedOpen() || this.phase() !== 'closing') return;\n\t\tthis.clearTooltipAnimationFallback();\n\t\tthis.cdkPositionStrategy = null;\n\t\tthis.renderedOpen.set(false);\n\t}\n\n\tprivate scheduleTooltipAnimationFallback(token: number, phase: 'opening' | 'closing'): void {\n\t\tthis.clearTooltipAnimationFallback();\n\t\tconst root = this.elementRef.nativeElement.ownerDocument.getElementById(this.tooltipId);\n\t\tconst style = root ? getComputedStyle(root) : null;\n\t\tconst parseTime = (value: string) => {\n\t\t\tconst parsed = Number.parseFloat(value);\n\t\t\treturn Number.isFinite(parsed) ? (value.trim().endsWith('ms') ? parsed : parsed * 1000) : 0;\n\t\t};\n\t\tconst durations = style?.animationDuration.split(',').map(parseTime) ?? [0];\n\t\tconst delays = style?.animationDelay.split(',').map(parseTime) ?? [0];\n\t\tconst duration = Math.max(...durations.map((value, index) => value + (delays[index] ?? delays[0] ?? 0)), 0);\n\t\tthis.animationFallbackHandle = setTimeout(() => {\n\t\t\tthis.animationFallbackHandle = null;\n\t\t\tif (phase === 'opening') this.settleTooltipOpening(token);\n\t\t\telse this.settleTooltipClosing(token);\n\t\t}, duration);\n\t}\n\n\tprivate clearTooltipAnimationFallback(): void {\n\t\tif (this.animationFallbackHandle === null) return;\n\t\tclearTimeout(this.animationFallbackHandle);\n\t\tthis.animationFallbackHandle = null;\n\t}\n}\n","@let labelVar = label()?.trim();\n@let componentClassVar = componentClass();\n\n<ng-template #richContent><ng-content select=\"st-tooltip-content\"></ng-content></ng-template>\n\n<div\n\tcdkOverlayOrigin\n\t[class]=\"componentClassVar\"\n\t[attr.tabindex]=\"triggerTabIndexValue()\"\n\t(mouseenter)=\"onPointerEnter()\"\n\t(mouseleave)=\"onPointerLeave()\"\n\t(focusin)=\"onFocusIn($event)\"\n\t(focusout)=\"onFocusOut($event)\"\n\t(keydown.escape)=\"onEscape()\"\n\t(pointerdown)=\"onPress()\"\n>\n\t@let iconVar = icon();\n\t@let iconPositionVar = iconPosition() ?? 'left';\n\t@if (iconVar && iconPositionVar === 'left') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n\n\t<ng-content></ng-content>\n\n\t@if (iconVar && iconPositionVar === 'right') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n</div>\n\n@if (renderedOpen()) {\n\t<ng-template\n\t\tcdkConnectedOverlay\n\t\t[cdkConnectedOverlayOrigin]=\"origin()\"\n\t\t[cdkConnectedOverlayOpen]=\"true\"\n\t\t[cdkConnectedOverlayPositionStrategy]=\"tooltipPositionStrategy()\"\n\t\t[cdkConnectedOverlayPositions]=\"positions()\"\n\t\t[cdkConnectedOverlayScrollStrategy]=\"repositionScrollStrategy\"\n\t\t[cdkConnectedOverlayPush]=\"true\"\n\t\t[cdkConnectedOverlayViewportMargin]=\"8\"\n\t\t[cdkConnectedOverlayDisableClose]=\"true\"\n\t\t[cdkConnectedOverlayPanelClass]=\"'pointer-events-none!'\"\n\t\t(positionChange)=\"onTooltipPositionChange($event)\"\n\t\t(detach)=\"onTooltipDetach()\"\n\t>\n\t\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(origin().elementRef.nativeElement)\">\n\t\t\t<div\n\t\t\t\t[attr.id]=\"tooltipId\"\n\t\t\t\trole=\"tooltip\"\n\t\t\t\t[class]=\"tooltipAnimationClass()\"\n\t\t\t\t[attr.data-state]=\"phase()\"\n\t\t\t\t[attr.data-side]=\"tooltipDirection()\"\n\t\t\t\t[style.transform-origin]=\"transformOrigin()\"\n\t\t\t\t(animationend)=\"onTooltipAnimationEnd($event)\"\n\t\t\t\t(animationcancel)=\"onTooltipAnimationCancel($event)\"\n\t\t\t>\n\t\t\t\t@if (labelVar) {\n\t\t\t\t\t{{ labelVar }}\n\t\t\t\t} @else {\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"richContent\"></ng-container>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCG;MAOU,uBAAuB,CAAA;wGAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC1CpC,6BACA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDqCW,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAIV,uBAAuB,EAA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A,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,QAAA,EAAA,4DAAA,EAAA,QAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,oJAAE,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAOpE,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAV5B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,EAAA,UAAA,EACV,IAAI,EAAA,OAAA,EACP,CAAC,mBAAmB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAA,IAAA,EAG3E;AACL,wBAAA,KAAK,EAAE,0BAA0B;AACjC,qBAAA,EAAA,QAAA,EAAA,0rEAAA,EAAA;;;AEvKF;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-tooltip.mjs","sources":["../../../projects/sdk/components/tooltip/tooltip-content/tooltip-content.component.ts","../../../projects/sdk/components/tooltip/tooltip-content/tooltip-content.component.html","../../../projects/sdk/components/tooltip/src/tooltip.component.ts","../../../projects/sdk/components/tooltip/src/tooltip.component.html","../../../projects/sdk/components/tooltip/sixbell-telco-sdk-components-tooltip.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * A container component for custom tooltip content\n *\n * @remarks\n * Designed to be used within `<st-tooltip>` components to provide\n * rich, customized tooltip content. When used, replaces the default\n * text label with any arbitrary content.\n *\n * @example\n * ```html\n * <st-tooltip variant=\"warning\">\n * <button class=\"btn\">Hover me</button>\n * <st-tooltip-content>\n * <div class=\"animate-pulse text-red-500\">\n * ⚠️ Critical warning!\n * </div>\n * </st-tooltip-content>\n * </st-tooltip>\n * ```\n *\n * @example\n * ```html\n * <st-tooltip position=\"right\">\n * <st-tooltip-content>\n * <div class=\"flex items-center gap-2\">\n * <st-icon icon=\"info\"></st-icon>\n * <span>Custom tooltip layout</span>\n * </div>\n * </st-tooltip-content>\n * <p class=\"cursor-pointer\">Hover for details</p>\n * </st-tooltip>\n * ```\n */\n@Component({\n\tselector: 'st-tooltip-content',\n\timports: [CommonModule],\n\ttemplateUrl: './tooltip-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TooltipContentComponent {}\n","<ng-content></ng-content>\n","import {\n\tCdkConnectedOverlay,\n\tCdkOverlayOrigin,\n\tConnectedOverlayPositionChange,\n\tConnectedPosition,\n\tFlexibleConnectedPositionStrategy,\n\tOverlay,\n\tScrollStrategy,\n} from '@angular/cdk/overlay';\nimport { ScrollDispatcher } from '@angular/cdk/scrolling';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n\tafterRenderEffect,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tDestroyRef,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tnumberAttribute,\n\tRenderer2,\n\tsignal,\n\tviewChild,\n} from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { generateUniqueId } from '@sixbell-telco/sdk/utils/generators/uuid';\nimport { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';\nimport { cva } from 'class-variance-authority';\nimport { TooltipContentComponent } from '../tooltip-content/tooltip-content.component';\n\n/**\n * @internal\n * Generates base tooltip classes with style variants\n */\nexport const tooltipComponent = cva(['tooltip', 'inline-flex', 'items-center', 'align-top', 'text-pretty', 'font-body', 'gap-1'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tbase: [],\n\t\t\tprimary: ['tooltip-primary'],\n\t\t\tsecondary: ['tooltip-secondary'],\n\t\t\ttertiary: ['tooltip-tertiary'],\n\t\t\tsuccess: ['tooltip-success'],\n\t\t\tneutral: ['tooltip-neutral'],\n\t\t\twarning: ['tooltip-warning'],\n\t\t\terror: ['tooltip-error'],\n\t\t\tinfo: ['tooltip-info'],\n\t\t},\n\t\tposition: {\n\t\t\ttop: ['tooltip-top'],\n\t\t\tbottom: ['tooltip-bottom'],\n\t\t\tright: ['tooltip-right'],\n\t\t\tleft: ['tooltip-left'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'base',\n\t\tposition: 'bottom',\n\t},\n});\n\n/** Possible tooltip color variants */\nexport type TooltipVariantProps =\n\t'base' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'neutral' | 'warning' | 'error' | 'info' | null | undefined;\n\nconst tooltipVariantSurface: Record<NonNullable<TooltipVariantProps>, string> = {\n\tbase: 'bg-base-300 text-base-content',\n\tprimary: 'bg-primary text-primary-content',\n\tsecondary: 'bg-secondary text-secondary-content',\n\ttertiary: 'bg-tertiary text-tertiary-content',\n\tsuccess: 'bg-success text-success-content',\n\tneutral: 'bg-neutral text-neutral-content',\n\twarning: 'bg-warning text-warning-content',\n\terror: 'bg-error text-error-content',\n\tinfo: 'bg-info text-info-content',\n};\n\n/** Possible tooltip position variants */\nexport type TooltipPositionProps = 'top' | 'bottom' | 'right' | 'left' | null | undefined;\n\n/** Configuration object for tooltip styling */\nexport type TooltipProps = {\n\tvariant?: TooltipVariantProps;\n\tposition?: TooltipPositionProps;\n};\n\ntype TooltipSide = 'top' | 'bottom' | 'right' | 'left';\ntype TooltipPhase = 'closed' | 'opening' | 'open' | 'closing';\n\nconst focusableSelector = 'a[href], area[href], button, input, select, textarea, [contenteditable=\"true\"], [tabindex]:not([tabindex=\"-1\"])';\n\n/** Focus the browser would show a ring for (keyboard, or programmatic after keyboard), shadow roots included. */\nfunction isKeyboardFocus(element: HTMLElement): boolean {\n\ttry {\n\t\treturn element.matches(':focus-visible');\n\t} catch {\n\t\treturn true;\n\t}\n}\n\nconst normalizeText = (value: string | null | undefined): string => (value ?? '').replace(/\\s+/g, ' ').trim().toLowerCase();\n\n/** Text of the subtree that counts toward a name: skips `hidden`/`aria-hidden` subtrees and reads `img` `alt`. */\nfunction visibleText(node: Node): string {\n\tif (node.nodeType === Node.TEXT_NODE) return node.textContent ?? '';\n\tif (node.nodeType !== Node.ELEMENT_NODE) return '';\n\tconst element = node as HTMLElement;\n\tif (element.hidden || element.getAttribute('aria-hidden') === 'true') return '';\n\tif (element.localName === 'img') return element.getAttribute('alt') ?? '';\n\treturn Array.from(element.childNodes, visibleText).join(' ');\n}\n\n/** Text of the `<label>`s associated with a form control (`for` or wrapping), via `labels` or a `for` lookup. */\nfunction nativeLabelText(element: HTMLElement): string {\n\tconst labels = (element as HTMLInputElement).labels;\n\tif (labels) return Array.from(labels, visibleText).join(' ');\n\tconst id = element.id;\n\tif (!id) return '';\n\tconst root = element.getRootNode() as Document | ShadowRoot;\n\treturn Array.from(root.querySelectorAll?.('label[for]') ?? [])\n\t\t.filter((label) => label.getAttribute('for') === id)\n\t\t.map(visibleText)\n\t\t.join(' ');\n}\n\n/**\n * Approximates the accessible name: `aria-labelledby`, then `aria-label`, then the associated `<label>`, then the\n * visible text content (or `alt`), then `title`.\n */\nfunction approximateAccessibleName(element: HTMLElement): string {\n\tconst root = element.getRootNode() as Document | ShadowRoot;\n\tconst labelledBy = (element.getAttribute('aria-labelledby') ?? '')\n\t\t.split(/\\s+/)\n\t\t.filter(Boolean)\n\t\t.map((id) => root.getElementById?.(id)?.textContent ?? '')\n\t\t.join(' ');\n\treturn (\n\t\tnormalizeText(labelledBy) ||\n\t\tnormalizeText(element.getAttribute('aria-label')) ||\n\t\tnormalizeText(nativeLabelText(element)) ||\n\t\tnormalizeText(visibleText(element)) ||\n\t\tnormalizeText(element.getAttribute('title'))\n\t);\n}\n\nconst escapeRegExp = (value: string): string => value.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\n/** True when `name` is, or contains as whole words, the tooltip `text` (so \"Delete\" is not found in \"Undelete\"). */\nfunction nameContainsText(name: string, text: string): boolean {\n\tif (!text) return true;\n\treturn new RegExp(`(?<![\\\\p{L}\\\\p{N}])${escapeRegExp(text)}(?![\\\\p{L}\\\\p{N}])`, 'u').test(name);\n}\n\nfunction isEnabledFocusable(element: HTMLElement): boolean {\n\tlet ancestor: HTMLElement | null = element;\n\twhile (ancestor) {\n\t\tconst ancestorStyle = getComputedStyle(ancestor);\n\t\tif (\n\t\t\tancestor.style.display === 'none' ||\n\t\t\tancestor.style.visibility === 'hidden' ||\n\t\t\tancestorStyle.display === 'none' ||\n\t\t\tancestorStyle.visibility === 'hidden'\n\t\t)\n\t\t\treturn false;\n\t\tancestor = ancestor.parentElement;\n\t}\n\n\tconst style = getComputedStyle(element);\n\treturn Boolean(\n\t\telement.isConnected &&\n\t\telement.tabIndex >= 0 &&\n\t\t!element.matches(':disabled') &&\n\t\t!(element as HTMLButtonElement).disabled &&\n\t\telement.getAttribute('aria-disabled') !== 'true' &&\n\t\t!element.closest('[hidden], [inert], [aria-hidden=\"true\"], fieldset[disabled]') &&\n\t\t!element.hidden &&\n\t\t!(element as HTMLElement & { inert?: boolean }).inert &&\n\t\tstyle.display !== 'none' &&\n\t\tstyle.visibility !== 'hidden',\n\t);\n}\n\n/**\n * A customizable tooltip component with multiple variants and content options\n *\n * @remarks\n * Built with Tailwind CSS and class-variance-authority for style management.\n * Supports both simple text labels and custom content tooltips.\n *\n * @example\n * ```html\n * <!-- Simple text tooltip -->\n * <st-tooltip variant=\"primary\" label=\"Information tooltip\">\n * <button class=\"btn\">Hover me</button>\n * </st-tooltip>\n * ```\n *\n * @example\n * ```html\n * <!-- Custom content tooltip -->\n * <st-tooltip position=\"right\" variant=\"warning\">\n * <button class=\"btn\">Dangerous action</button>\n * <st-tooltip-content>\n * <div class=\"text-red-500 font-bold\">\n * ⚠️ Proceed with caution!\n * </div>\n * </st-tooltip-content>\n * </st-tooltip>\n * ```\n */\n@Component({\n\tselector: 'st-tooltip',\n\tstandalone: true,\n\timports: [CdkConnectedOverlay, CdkOverlayOrigin, NgTemplateOutlet, IconComponent],\n\ttemplateUrl: './tooltip.component.html',\n\tstyles: '',\n\thost: {\n\t\tclass: 'inline-flex items-center',\n\t},\n})\nexport class TooltipComponent {\n\tprotected readonly themeDomService = inject(ThemeDomService);\n\tprivate readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\tprivate readonly renderer = inject(Renderer2);\n\tprivate readonly destroyRef = inject(DestroyRef);\n\tprivate readonly scrollDispatcher = inject(ScrollDispatcher);\n\tprivate readonly overlay = inject(Overlay);\n\tprotected readonly repositionScrollStrategy: ScrollStrategy = this.overlay.scrollStrategies.reposition();\n\tprivate cdkPositionStrategy: FlexibleConnectedPositionStrategy | null = null;\n\t/**\n\t * Tooltip color variant\n\t * @defaultValue 'base'\n\t */\n\tvariant = input<TooltipVariantProps>();\n\n\t/**\n\t * Tooltip position relative to target element\n\t * @defaultValue 'bottom'\n\t */\n\tposition = input<TooltipPositionProps>();\n\n\t/**\n\t * Text label for simple tooltip content\n\t */\n\tlabel = input<string>();\n\n\t/**\n\t * Optional icon name to render inside the trigger (mirrors Button API)\n\t */\n\ticon = input<string | undefined>();\n\n\t/**\n\t * Icon position relative to content\n\t * @defaultValue 'left'\n\t */\n\ticonPosition = input<'left' | 'right' | null | undefined>('left');\n\n\t/**\n\t * Delay in milliseconds before the tooltip hides after the pointer leaves the trigger or the tooltip,\n\t * so the pointer can cross the gap onto the tooltip (WCAG 1.4.13 hoverable). `0` hides immediately.\n\t * @defaultValue 120\n\t */\n\tcloseDelay = input(120, { transform: numberAttribute });\n\n\t/**\n\t * @internal\n\t * Reference to custom tooltip content component\n\t */\n\tcustomContent = contentChild(TooltipContentComponent);\n\tprivate readonly richContentElement = contentChild(TooltipContentComponent, { read: ElementRef<HTMLElement> });\n\tprivate readonly richContentText = signal('');\n\n\t/**\n\t * @internal\n\t * Computed flag indicating presence of custom content\n\t */\n\thasCustomContent = computed(() => !!this.customContent());\n\n\t/** @internal Plain-text description the trigger's `aria-describedby` resolves to, open or closed. */\n\tprotected readonly descriptionText = computed(() => this.label()?.trim() || this.richContentText());\n\n\tprivate readonly hasTooltipContent = computed(() => Boolean(this.descriptionText()));\n\n\tprivate readonly requestedOpen = signal(false);\n\tprivate readonly pointerInside = signal(false);\n\tprivate readonly pointerOverPane = signal(false);\n\tprivate closeTimer: ReturnType<typeof setTimeout> | null = null;\n\tprivate readonly focusedTarget = signal<HTMLElement | null>(null);\n\tprivate readonly keyboardFocused = signal(false);\n\t/** Set by a press, an activation or Escape; only a fresh pointer enter or keyboard focus clears it. */\n\tprivate readonly dismissed = signal(false);\n\tprotected readonly renderedOpen = signal(false);\n\tprotected readonly phase = signal<TooltipPhase>('closed');\n\tprivate readonly activePosition = signal<ConnectedPosition | null>(null);\n\tprivate readonly closingSide = signal<TooltipSide | null>(null);\n\tprivate transitionToken = 0;\n\tprotected readonly tooltipId = `st-tooltip-${generateUniqueId()}`;\n\tprotected readonly paneId = `${this.tooltipId}-pane`;\n\tprotected readonly origin = viewChild.required(CdkOverlayOrigin);\n\tprivate animationFallbackHandle: ReturnType<typeof setTimeout> | null = null;\n\tprotected readonly triggerTabIndexValue = signal<number | null>(0);\n\n\t/**\n\t * @internal\n\t * Computed class string for the tooltip container\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\ttooltipComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tposition: this.position(),\n\t\t\t}),\n\t\t);\n\t});\n\n\tconstructor() {\n\t\tafterRenderEffect(() => {\n\t\t\tconst richContent = this.richContentElement()?.nativeElement.textContent?.trim() ?? '';\n\t\t\tif (richContent !== this.richContentText()) this.richContentText.set(richContent);\n\t\t\tthis.triggerTabIndexValue.set(this.hasFocusableDescendant() ? null : 0);\n\t\t});\n\t\teffect((onCleanup) => {\n\t\t\tconst element = this.richContentElement()?.nativeElement;\n\t\t\tif (!element || typeof MutationObserver === 'undefined') return;\n\t\t\tconst updateRichContent = () => {\n\t\t\t\tconst richContent = element.textContent?.trim() ?? '';\n\t\t\t\tif (richContent !== this.richContentText()) this.richContentText.set(richContent);\n\t\t\t};\n\t\t\tconst observer = new MutationObserver(updateRichContent);\n\t\t\tobserver.observe(element, { characterData: true, childList: true, subtree: true });\n\t\t\tupdateRichContent();\n\t\t\tonCleanup(() => observer.disconnect());\n\t\t});\n\t\teffect(() => {\n\t\t\tif (!this.hasTooltipContent()) {\n\t\t\t\tthis.syncDescribedBy(null);\n\t\t\t\tif (this.requestedOpen()) this.requestOpen(false);\n\t\t\t}\n\t\t});\n\t\tthis.listenForPress();\n\t\tthis.destroyRef.onDestroy(() => {\n\t\t\tthis.clearCloseTimer();\n\t\t\tthis.clearTooltipAnimationFallback();\n\t\t\tthis.syncDescribedBy(null);\n\t\t\tthis.transitionToken += 1;\n\t\t});\n\t}\n\n\t/**\n\t * Capture phase, so a projected control that stops propagation (`st-button [stopPropagation]`) still\n\t * dismisses it. `click` also covers keyboard activation (Enter/Space), which has no pointerdown.\n\t */\n\tprivate listenForPress(): void {\n\t\tconst host = this.elementRef.nativeElement;\n\t\tconst onPress = () => this.onPress();\n\t\thost.addEventListener('pointerdown', onPress, { capture: true });\n\t\thost.addEventListener('click', onPress, { capture: true });\n\t\tthis.destroyRef.onDestroy(() => {\n\t\t\thost.removeEventListener('pointerdown', onPress, { capture: true });\n\t\t\thost.removeEventListener('click', onPress, { capture: true });\n\t\t});\n\t}\n\n\tprotected readonly positions = computed<ConnectedPosition[]>(() => {\n\t\tconst requestedSide = this.sideFromPair(this.primaryPosition(this.position()));\n\t\tconst [firstOrthogonal, secondOrthogonal] = this.orthogonalSides(requestedSide);\n\t\treturn [requestedSide, this.oppositeSide(requestedSide), firstOrthogonal, secondOrthogonal].map((side) => this.primaryPosition(side));\n\t});\n\n\tprivate primaryPosition(position: TooltipPositionProps): ConnectedPosition {\n\t\tswitch (position) {\n\t\t\tcase 'top':\n\t\t\t\treturn { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom', offsetX: 0, offsetY: -8 };\n\t\t\tcase 'right':\n\t\t\t\treturn { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', offsetX: 8, offsetY: 0 };\n\t\t\tcase 'left':\n\t\t\t\treturn { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center', offsetX: -8, offsetY: 0 };\n\t\t\tdefault:\n\t\t\t\treturn { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top', offsetX: 0, offsetY: 8 };\n\t\t}\n\t}\n\n\tprivate oppositeSide(side: TooltipSide): TooltipSide {\n\t\treturn ({ bottom: 'top', top: 'bottom', right: 'left', left: 'right' } satisfies Record<TooltipSide, TooltipSide>)[side];\n\t}\n\n\tprivate orthogonalSides(side: TooltipSide): [TooltipSide, TooltipSide] {\n\t\treturn side === 'bottom' || side === 'top' ? ['right', 'left'] : ['bottom', 'top'];\n\t}\n\n\tprivate sideFromPair(pair: ConnectedPosition): TooltipSide {\n\t\tif (pair.originY === 'bottom' && pair.overlayY === 'top') return 'bottom';\n\t\tif (pair.originY === 'top' && pair.overlayY === 'bottom') return 'top';\n\t\tif (pair.originX === 'end' && pair.overlayX === 'start') return 'right';\n\t\tif (pair.originX === 'start' && pair.overlayX === 'end') return 'left';\n\t\treturn 'bottom';\n\t}\n\n\tprotected readonly tooltipDirection = computed<TooltipSide>(() => {\n\t\treturn this.closingSide() ?? this.sideFromPair(this.activePosition() ?? this.positions()[0]);\n\t});\n\n\tprotected readonly tooltipClasses = computed(() => {\n\t\tconst phase = this.phase();\n\t\tif (phase === 'closed') return '';\n\t\tconst side = this.tooltipDirection();\n\t\tconst classes: Record<TooltipSide, Record<'opening' | 'open' | 'closing', string>> = {\n\t\t\tbottom: {\n\t\t\t\topening: 'animate-fade-in-up animate-duration-150 origin-top',\n\t\t\t\topen: 'animate-fade-in-up animate-duration-150 origin-top',\n\t\t\t\tclosing: 'animate-fade-out-down animate-duration-150 origin-top',\n\t\t\t},\n\t\t\ttop: {\n\t\t\t\topening: 'animate-fade-in-down animate-duration-150 origin-bottom',\n\t\t\t\topen: 'animate-fade-in-down animate-duration-150 origin-bottom',\n\t\t\t\tclosing: 'animate-fade-out-up animate-duration-150 origin-bottom',\n\t\t\t},\n\t\t\tright: {\n\t\t\t\topening: 'animate-fade-in-right animate-duration-150 origin-left',\n\t\t\t\topen: 'animate-fade-in-right animate-duration-150 origin-left',\n\t\t\t\tclosing: 'animate-fade-out-left animate-duration-150 origin-left',\n\t\t\t},\n\t\t\tleft: {\n\t\t\t\topening: 'animate-fade-in-left animate-duration-150 origin-right',\n\t\t\t\topen: 'animate-fade-in-left animate-duration-150 origin-right',\n\t\t\t\tclosing: 'animate-fade-out-right animate-duration-150 origin-right',\n\t\t\t},\n\t\t};\n\t\tconst variant = this.variant() ?? 'base';\n\t\tconst variantClass = this.variant() ? `tooltip-${this.variant()}` : '';\n\t\tconst surface = tooltipVariantSurface[variant] ?? tooltipVariantSurface.base;\n\t\treturn `tooltip ${variantClass} ${surface} rounded-field px-2 py-1 shadow-sm ${classes[side][phase]}`.trim();\n\t});\n\n\tprotected readonly transformOrigin = computed(() => ({ bottom: 'top', top: 'bottom', right: 'left', left: 'right' })[this.tooltipDirection()]);\n\n\tprotected tooltipAnimationClass(): string {\n\t\treturn this.tooltipClasses();\n\t}\n\n\tprivate expectedTooltipAnimationName(phase: 'opening' | 'closing', side: TooltipSide): string {\n\t\treturn {\n\t\t\tbottom: { opening: 'fade-in-up', closing: 'fade-out-down' },\n\t\t\ttop: { opening: 'fade-in-down', closing: 'fade-out-up' },\n\t\t\tright: { opening: 'fade-in-right', closing: 'fade-out-left' },\n\t\t\tleft: { opening: 'fade-in-left', closing: 'fade-out-right' },\n\t\t}[side][phase];\n\t}\n\n\tprivate hasFocusableDescendant(): boolean {\n\t\tconst origin = this.origin().elementRef.nativeElement as HTMLElement;\n\t\treturn Array.from(origin.querySelectorAll<HTMLElement>(focusableSelector)).some((element) => isEnabledFocusable(element));\n\t}\n\n\tprotected resolveFocusTarget(event: FocusEvent): HTMLElement | null {\n\t\tconst origin = this.origin().elementRef.nativeElement as HTMLElement;\n\t\tfor (const item of event.composedPath()) {\n\t\t\tif (!(item instanceof HTMLElement) || !this.elementRef.nativeElement.contains(item)) continue;\n\t\t\tif (item === origin && event.target !== origin) continue;\n\t\t\tif ((item === origin || item.matches(focusableSelector)) && isEnabledFocusable(item)) return item;\n\t\t}\n\t\treturn null;\n\t}\n\n\tprotected syncDescribedBy(target: HTMLElement | null): void {\n\t\tconst previous = this.focusedTarget();\n\t\tif (!this.hasTooltipContent()) {\n\t\t\tif (previous) this.removeDescribedBy(previous);\n\t\t\tthis.focusedTarget.set(null);\n\t\t\treturn;\n\t\t}\n\t\tif (!target) {\n\t\t\tif (previous) this.removeDescribedBy(previous);\n\t\t\tthis.focusedTarget.set(null);\n\t\t\treturn;\n\t\t}\n\t\tif (previous && previous !== target) this.removeDescribedBy(previous);\n\t\tthis.focusedTarget.set(target);\n\t\tif (nameContainsText(approximateAccessibleName(target), normalizeText(this.descriptionText()))) {\n\t\t\tthis.removeDescribedBy(target);\n\t\t\treturn;\n\t\t}\n\t\tconst tokens = (target.getAttribute('aria-describedby') ?? '').split(/\\s+/).filter(Boolean);\n\t\tif (!tokens.includes(this.tooltipId)) this.renderer.setAttribute(target, 'aria-describedby', [...tokens, this.tooltipId].join(' '));\n\t}\n\n\tprivate removeDescribedBy(target: HTMLElement): void {\n\t\tconst tokens = (target.getAttribute('aria-describedby') ?? '').split(/\\s+/).filter((token) => token && token !== this.tooltipId);\n\t\tif (tokens.length) this.renderer.setAttribute(target, 'aria-describedby', tokens.join(' '));\n\t\telse this.renderer.removeAttribute(target, 'aria-describedby');\n\t}\n\n\tprotected requestOpen(next: boolean): void {\n\t\tthis.clearCloseTimer();\n\t\tif (next && (this.dismissed() || !this.hasTooltipContent())) return;\n\t\tif (next === this.requestedOpen()) return;\n\t\tthis.requestedOpen.set(next);\n\t\tthis.transitionToken += 1;\n\t\tthis.clearTooltipAnimationFallback();\n\t\tconst token = this.transitionToken;\n\t\tif (next) {\n\t\t\tthis.closingSide.set(null);\n\t\t\tif (!this.renderedOpen()) this.activePosition.set(null);\n\t\t\tthis.renderedOpen.set(true);\n\t\t\tthis.phase.set('opening');\n\t\t\tthis.animationFallbackHandle = setTimeout(() => {\n\t\t\t\tthis.animationFallbackHandle = null;\n\t\t\t\tif (token === this.transitionToken && this.phase() === 'opening') this.scheduleTooltipAnimationFallback(token, 'opening');\n\t\t\t}, 0);\n\t\t} else {\n\t\t\tthis.closingSide.set(this.sideFromPair(this.activePosition() ?? this.positions()[0]));\n\t\t\tthis.phase.set('closing');\n\t\t\tthis.scheduleTooltipAnimationFallback(token, 'closing');\n\t\t}\n\t}\n\n\tprotected onPointerEnter(): void {\n\t\tthis.pointerInside.set(true);\n\t\tthis.dismissed.set(false);\n\t\tthis.requestOpen(true);\n\t}\n\n\tprotected onPointerLeave(): void {\n\t\tthis.pointerInside.set(false);\n\t\tthis.scheduleClose();\n\t}\n\n\t/** The pointer may move onto the tooltip without hiding it (WCAG 1.4.13 hoverable). */\n\tprotected onPaneEnter(): void {\n\t\tthis.pointerOverPane.set(true);\n\t\tthis.clearCloseTimer();\n\t\tif (this.renderedOpen() && !this.requestedOpen()) this.requestOpen(true);\n\t}\n\n\tprotected onPaneLeave(): void {\n\t\tthis.pointerOverPane.set(false);\n\t\tthis.scheduleClose();\n\t}\n\n\tprivate scheduleClose(): void {\n\t\tthis.clearCloseTimer();\n\t\tconst close = () => {\n\t\t\tif (!this.pointerInside() && !this.pointerOverPane() && !this.keyboardFocused()) this.requestOpen(false);\n\t\t};\n\t\tconst delay = this.closeDelay();\n\t\tif (!Number.isFinite(delay) || delay <= 0 || !this.requestedOpen()) {\n\t\t\tclose();\n\t\t\treturn;\n\t\t}\n\t\tthis.closeTimer = setTimeout(() => {\n\t\t\tthis.closeTimer = null;\n\t\t\tclose();\n\t\t}, delay);\n\t}\n\n\tprivate clearCloseTimer(): void {\n\t\tif (this.closeTimer === null) return;\n\t\tclearTimeout(this.closeTimer);\n\t\tthis.closeTimer = null;\n\t}\n\n\t/**\n\t * Only keyboard focus (`:focus-visible`) opens or keeps the tooltip open. Focus caused by a mouse press,\n\t * or restored by a dialog after one, describes the control but never shows or pins the tooltip.\n\t */\n\tprotected onFocusIn(event: FocusEvent): void {\n\t\tconst target = this.resolveFocusTarget(event);\n\t\tthis.syncDescribedBy(target);\n\t\tconst keyboard = Boolean(target && isKeyboardFocus(target));\n\t\tthis.keyboardFocused.set(keyboard);\n\t\tif (!keyboard) {\n\t\t\tif (!this.pointerInside() && !this.pointerOverPane()) this.requestOpen(false);\n\t\t\treturn;\n\t\t}\n\t\tthis.dismissed.set(false);\n\t\tthis.requestOpen(true);\n\t}\n\n\t/** Pressing or activating the trigger dismisses the tooltip until a fresh pointer enter or keyboard focus. */\n\tprotected onPress(): void {\n\t\tthis.dismissed.set(true);\n\t\tthis.requestOpen(false);\n\t}\n\n\tprotected onFocusOut(event: FocusEvent): void {\n\t\tconst related = event.relatedTarget;\n\t\tif (related instanceof Node && this.elementRef.nativeElement.contains(related)) return;\n\t\tthis.syncDescribedBy(null);\n\t\tthis.keyboardFocused.set(false);\n\t\tif (!this.pointerInside() && !this.pointerOverPane()) this.requestOpen(false);\n\t}\n\n\t/**\n\t * Escape arrives through the CDK overlay keyboard stack, which hands it only to the topmost overlay that\n\t * listens. While the tooltip is the top layer it closes the tooltip alone; an enclosing `st-dialog`\n\t * keeps its own Escape for the next press, and a menu opened above the tooltip keeps this one.\n\t */\n\tprotected onOverlayKeydown(event: KeyboardEvent): void {\n\t\tif (event.key !== 'Escape' || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) return;\n\t\tevent.preventDefault();\n\t\tthis.dismissed.set(true);\n\t\tthis.requestOpen(false);\n\t}\n\n\tprotected onTooltipPositionChange(event: ConnectedOverlayPositionChange): void {\n\t\tthis.activePosition.set(event.connectionPair);\n\t\tif (this.isOriginOutsideView(event)) {\n\t\t\tthis.syncDescribedBy(null);\n\t\t\tthis.requestOpen(false);\n\t\t}\n\t}\n\n\tprotected tooltipPositionStrategy(): FlexibleConnectedPositionStrategy {\n\t\tconst strategy = this.cdkPositionStrategy ?? (this.cdkPositionStrategy = this.overlay.position().flexibleConnectedTo(this.origin().elementRef));\n\t\tstrategy\n\t\t\t.setOrigin(this.origin().elementRef)\n\t\t\t.withPositions(this.positions())\n\t\t\t.withPush(true)\n\t\t\t.withViewportMargin(8)\n\t\t\t.withScrollableContainers(this.scrollDispatcher.getAncestorScrollContainers(this.origin().elementRef));\n\t\treturn strategy;\n\t}\n\n\tprivate isOriginOutsideView(change: ConnectedOverlayPositionChange): boolean {\n\t\treturn change.scrollableViewProperties?.isOriginOutsideView === true;\n\t}\n\n\tprotected onTooltipAnimationEnd(event: AnimationEvent): void {\n\t\tconst phase = this.phase();\n\t\tif ((phase !== 'opening' && phase !== 'closing') || event.target !== event.currentTarget) return;\n\t\tconst side = this.tooltipDirection();\n\t\tif (event.animationName !== this.expectedTooltipAnimationName(phase, side)) return;\n\t\tif (phase === 'opening') this.settleTooltipOpening(this.transitionToken);\n\t\telse this.settleTooltipClosing(this.transitionToken);\n\t}\n\n\tprotected onTooltipAnimationCancel(event: AnimationEvent): void {\n\t\tconst phase = this.phase();\n\t\tif ((phase !== 'opening' && phase !== 'closing') || event.target !== event.currentTarget) return;\n\t\tconst side = this.tooltipDirection();\n\t\tif (event.animationName !== this.expectedTooltipAnimationName(phase, side)) return;\n\t\tthis.scheduleTooltipAnimationFallback(this.transitionToken, phase);\n\t}\n\n\tprotected onTooltipDetach(): void {\n\t\tthis.clearTooltipAnimationFallback();\n\t\tthis.transitionToken += 1;\n\t\tthis.cdkPositionStrategy = null;\n\t\tthis.activePosition.set(null);\n\t\tthis.pointerOverPane.set(false);\n\t\tthis.renderedOpen.set(false);\n\t\tthis.phase.set('closed');\n\t}\n\n\tprivate settleTooltipOpening(token: number): void {\n\t\tif (token !== this.transitionToken || !this.requestedOpen() || this.phase() !== 'opening') return;\n\t\tthis.clearTooltipAnimationFallback();\n\t\tthis.phase.set('open');\n\t}\n\n\tprivate settleTooltipClosing(token: number): void {\n\t\tif (token !== this.transitionToken || this.requestedOpen() || this.phase() !== 'closing') return;\n\t\tthis.clearTooltipAnimationFallback();\n\t\tthis.cdkPositionStrategy = null;\n\t\tthis.renderedOpen.set(false);\n\t}\n\n\tprivate scheduleTooltipAnimationFallback(token: number, phase: 'opening' | 'closing'): void {\n\t\tthis.clearTooltipAnimationFallback();\n\t\tconst root = this.elementRef.nativeElement.ownerDocument.getElementById(this.paneId);\n\t\tconst style = root ? getComputedStyle(root) : null;\n\t\tconst parseTime = (value: string) => {\n\t\t\tconst parsed = Number.parseFloat(value);\n\t\t\treturn Number.isFinite(parsed) ? (value.trim().endsWith('ms') ? parsed : parsed * 1000) : 0;\n\t\t};\n\t\tconst durations = style?.animationDuration.split(',').map(parseTime) ?? [0];\n\t\tconst delays = style?.animationDelay.split(',').map(parseTime) ?? [0];\n\t\tconst duration = Math.max(...durations.map((value, index) => value + (delays[index] ?? delays[0] ?? 0)), 0);\n\t\tthis.animationFallbackHandle = setTimeout(() => {\n\t\t\tthis.animationFallbackHandle = null;\n\t\t\tif (phase === 'opening') this.settleTooltipOpening(token);\n\t\t\telse this.settleTooltipClosing(token);\n\t\t}, duration);\n\t}\n\n\tprivate clearTooltipAnimationFallback(): void {\n\t\tif (this.animationFallbackHandle === null) return;\n\t\tclearTimeout(this.animationFallbackHandle);\n\t\tthis.animationFallbackHandle = null;\n\t}\n}\n","@let labelVar = label()?.trim();\n@let componentClassVar = componentClass();\n\n<ng-template #richContent><ng-content select=\"st-tooltip-content\"></ng-content></ng-template>\n\n<div\n\tcdkOverlayOrigin\n\t[class]=\"componentClassVar\"\n\t[attr.tabindex]=\"triggerTabIndexValue()\"\n\t(mouseenter)=\"onPointerEnter()\"\n\t(mouseleave)=\"onPointerLeave()\"\n\t(focusin)=\"onFocusIn($event)\"\n\t(focusout)=\"onFocusOut($event)\"\n>\n\t@let iconVar = icon();\n\t@let iconPositionVar = iconPosition() ?? 'left';\n\t@if (iconVar && iconPositionVar === 'left') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n\n\t<ng-content></ng-content>\n\n\t@if (iconVar && iconPositionVar === 'right') {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t}\n</div>\n\n@let descriptionVar = descriptionText();\n@if (descriptionVar) {\n\t<span [attr.id]=\"tooltipId\" role=\"tooltip\" hidden>{{ descriptionVar }}</span>\n}\n\n@if (renderedOpen()) {\n\t<ng-template\n\t\tcdkConnectedOverlay\n\t\t[cdkConnectedOverlayOrigin]=\"origin()\"\n\t\t[cdkConnectedOverlayOpen]=\"true\"\n\t\t[cdkConnectedOverlayPositionStrategy]=\"tooltipPositionStrategy()\"\n\t\t[cdkConnectedOverlayPositions]=\"positions()\"\n\t\t[cdkConnectedOverlayScrollStrategy]=\"repositionScrollStrategy\"\n\t\t[cdkConnectedOverlayPush]=\"true\"\n\t\t[cdkConnectedOverlayViewportMargin]=\"8\"\n\t\t[cdkConnectedOverlayDisableClose]=\"true\"\n\t\t(overlayKeydown)=\"onOverlayKeydown($event)\"\n\t\t(positionChange)=\"onTooltipPositionChange($event)\"\n\t\t(detach)=\"onTooltipDetach()\"\n\t>\n\t\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(origin().elementRef.nativeElement)\">\n\t\t\t<div\n\t\t\t\t[attr.id]=\"paneId\"\n\t\t\t\tdata-st-tooltip-pane\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\t[class]=\"tooltipAnimationClass()\"\n\t\t\t\t[attr.data-state]=\"phase()\"\n\t\t\t\t[attr.data-side]=\"tooltipDirection()\"\n\t\t\t\t[style.transform-origin]=\"transformOrigin()\"\n\t\t\t\t(animationend)=\"onTooltipAnimationEnd($event)\"\n\t\t\t\t(animationcancel)=\"onTooltipAnimationCancel($event)\"\n\t\t\t\t(mouseenter)=\"onPaneEnter()\"\n\t\t\t\t(mouseleave)=\"onPaneLeave()\"\n\t\t\t>\n\t\t\t\t@if (labelVar) {\n\t\t\t\t\t{{ labelVar }}\n\t\t\t\t} @else {\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"richContent\"></ng-container>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCG;MAOU,uBAAuB,CAAA;wGAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC1CpC,6BACA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDqCW,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAIV,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBANnC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oBAAoB,WACrB,CAAC,YAAY,CAAC,EAAA,eAAA,EAEN,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6BAAA,EAAA;;;AEPhD;;;AAGG;MACU,gBAAgB,GAAG,GAAG,CAAC,CAAC,SAAS,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE;AACjI,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,CAAC,iBAAiB,CAAC;YAC5B,SAAS,EAAE,CAAC,mBAAmB,CAA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