@slotted/angular 0.1.0-beta.34 → 0.1.0-beta.36

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 (257) hide show
  1. package/docs/accordion.json +2 -0
  2. package/docs/accordion.md +1 -1
  3. package/docs/avatar.json +1 -0
  4. package/docs/avatar.md +1 -1
  5. package/docs/badge.json +1 -0
  6. package/docs/badge.md +1 -1
  7. package/docs/button.json +59 -2
  8. package/docs/button.md +8 -1
  9. package/docs/calendar.json +59 -0
  10. package/docs/calendar.md +8 -1
  11. package/docs/card.json +7 -0
  12. package/docs/card.md +1 -0
  13. package/docs/chart.json +32 -4
  14. package/docs/chart.md +9 -5
  15. package/docs/checkbox.json +8 -3
  16. package/docs/checkbox.md +3 -3
  17. package/docs/collapsible.json +33 -1
  18. package/docs/collapsible.md +5 -1
  19. package/docs/command-palette.json +3 -1
  20. package/docs/command-palette.md +1 -1
  21. package/docs/dashboard-grid.json +13 -4
  22. package/docs/dashboard-grid.md +3 -2
  23. package/docs/description-list.json +9 -1
  24. package/docs/description-list.md +2 -1
  25. package/docs/entity-picker.json +4 -2
  26. package/docs/entity-picker.md +2 -2
  27. package/docs/field-group.json +1 -1
  28. package/docs/field-group.md +1 -1
  29. package/docs/floating-panel.json +203 -0
  30. package/docs/floating-panel.md +97 -0
  31. package/docs/guidelines/index.md +2 -0
  32. package/docs/guidelines/own-elements.md +20 -0
  33. package/docs/index.md +3 -1
  34. package/docs/inline-message.json +1 -0
  35. package/docs/inline-message.md +1 -1
  36. package/docs/kbd.json +1 -0
  37. package/docs/kbd.md +1 -1
  38. package/docs/link.json +1 -1
  39. package/docs/link.md +1 -1
  40. package/docs/list-item.json +31 -8
  41. package/docs/list-item.md +19 -6
  42. package/docs/list.json +14 -0
  43. package/docs/list.md +3 -1
  44. package/docs/listbox.json +13 -0
  45. package/docs/listbox.md +2 -1
  46. package/docs/markdown.json +1 -1
  47. package/docs/markdown.md +1 -1
  48. package/docs/message.json +17 -2
  49. package/docs/message.md +4 -2
  50. package/docs/meter.json +248 -0
  51. package/docs/meter.md +121 -0
  52. package/docs/page.json +21 -0
  53. package/docs/page.md +3 -1
  54. package/docs/prompt-composer.json +1 -1
  55. package/docs/rating.json +1 -0
  56. package/docs/rating.md +1 -1
  57. package/docs/section.json +28 -3
  58. package/docs/section.md +6 -3
  59. package/docs/segmented-control.json +5 -4
  60. package/docs/segmented-control.md +3 -3
  61. package/docs/side-navigation.json +8 -0
  62. package/docs/side-navigation.md +2 -1
  63. package/docs/skills/build-own-element/SKILL.md +42 -2
  64. package/docs/slider.json +8 -0
  65. package/docs/slider.md +2 -1
  66. package/docs/sparkline.json +1 -1
  67. package/docs/sparkline.md +1 -1
  68. package/docs/stat-card.json +7 -0
  69. package/docs/stat-card.md +1 -0
  70. package/docs/switch.json +16 -0
  71. package/docs/switch.md +3 -1
  72. package/docs/table.json +39 -1
  73. package/docs/table.md +6 -1
  74. package/docs/tag.json +1 -0
  75. package/docs/tag.md +1 -1
  76. package/docs/tokens.md +13 -1
  77. package/docs/toolbar.json +2 -1
  78. package/docs/toolbar.md +1 -1
  79. package/docs/top-navigation.json +1 -0
  80. package/docs/top-navigation.md +1 -1
  81. package/docs/typography.json +15 -0
  82. package/docs/typography.md +3 -1
  83. package/fesm2022/slotted-angular-accordion.mjs +2 -2
  84. package/fesm2022/slotted-angular-accordion.mjs.map +1 -1
  85. package/fesm2022/slotted-angular-avatar.mjs +2 -2
  86. package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
  87. package/fesm2022/slotted-angular-badge.mjs +2 -2
  88. package/fesm2022/slotted-angular-badge.mjs.map +1 -1
  89. package/fesm2022/slotted-angular-button.mjs +87 -23
  90. package/fesm2022/slotted-angular-button.mjs.map +1 -1
  91. package/fesm2022/slotted-angular-calendar.mjs +114 -23
  92. package/fesm2022/slotted-angular-calendar.mjs.map +1 -1
  93. package/fesm2022/slotted-angular-card.mjs +15 -5
  94. package/fesm2022/slotted-angular-card.mjs.map +1 -1
  95. package/fesm2022/slotted-angular-cascader.mjs +5 -5
  96. package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
  97. package/fesm2022/slotted-angular-chart.mjs +47 -5
  98. package/fesm2022/slotted-angular-chart.mjs.map +1 -1
  99. package/fesm2022/slotted-angular-checkbox.mjs +2 -2
  100. package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
  101. package/fesm2022/slotted-angular-collapsible.mjs +69 -8
  102. package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
  103. package/fesm2022/slotted-angular-column-manager.mjs +1 -1
  104. package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
  105. package/fesm2022/slotted-angular-combobox.mjs +2 -2
  106. package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
  107. package/fesm2022/slotted-angular-command-palette.mjs +11 -2
  108. package/fesm2022/slotted-angular-command-palette.mjs.map +1 -1
  109. package/fesm2022/slotted-angular-dashboard-grid.mjs +19 -5
  110. package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
  111. package/fesm2022/slotted-angular-data-grid.mjs +40 -15
  112. package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
  113. package/fesm2022/slotted-angular-data-list.mjs +2 -2
  114. package/fesm2022/slotted-angular-data-list.mjs.map +1 -1
  115. package/fesm2022/slotted-angular-date-picker.mjs +1 -1
  116. package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
  117. package/fesm2022/slotted-angular-date-range-picker.mjs +1 -1
  118. package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
  119. package/fesm2022/slotted-angular-datetime-picker.mjs +1 -1
  120. package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
  121. package/fesm2022/slotted-angular-datetime-range-picker.mjs +1 -1
  122. package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
  123. package/fesm2022/slotted-angular-description-list.mjs +13 -6
  124. package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
  125. package/fesm2022/slotted-angular-detail-panel.mjs +1 -1
  126. package/fesm2022/slotted-angular-detail-panel.mjs.map +1 -1
  127. package/fesm2022/slotted-angular-entity-picker.mjs +14 -2
  128. package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
  129. package/fesm2022/slotted-angular-field-group.mjs +2 -2
  130. package/fesm2022/slotted-angular-field-group.mjs.map +1 -1
  131. package/fesm2022/slotted-angular-filter-bar.mjs +4 -4
  132. package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -1
  133. package/fesm2022/slotted-angular-floating-panel.mjs +257 -0
  134. package/fesm2022/slotted-angular-floating-panel.mjs.map +1 -0
  135. package/fesm2022/slotted-angular-import-export-center.mjs +1 -1
  136. package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
  137. package/fesm2022/slotted-angular-inline-message.mjs +2 -2
  138. package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
  139. package/fesm2022/slotted-angular-kbd.mjs +4 -4
  140. package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
  141. package/fesm2022/slotted-angular-list-item.mjs +41 -6
  142. package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
  143. package/fesm2022/slotted-angular-list.mjs +20 -4
  144. package/fesm2022/slotted-angular-list.mjs.map +1 -1
  145. package/fesm2022/slotted-angular-listbox.mjs +63 -6
  146. package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
  147. package/fesm2022/slotted-angular-markdown.mjs +1 -1
  148. package/fesm2022/slotted-angular-markdown.mjs.map +1 -1
  149. package/fesm2022/slotted-angular-message.mjs +78 -36
  150. package/fesm2022/slotted-angular-message.mjs.map +1 -1
  151. package/fesm2022/slotted-angular-meter.mjs +108 -0
  152. package/fesm2022/slotted-angular-meter.mjs.map +1 -0
  153. package/fesm2022/slotted-angular-multi-select.mjs +2 -2
  154. package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
  155. package/fesm2022/slotted-angular-notification-center.mjs +1 -1
  156. package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
  157. package/fesm2022/slotted-angular-page.mjs +53 -6
  158. package/fesm2022/slotted-angular-page.mjs.map +1 -1
  159. package/fesm2022/slotted-angular-prompt-composer.mjs +24 -6
  160. package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -1
  161. package/fesm2022/slotted-angular-rating.mjs +6 -6
  162. package/fesm2022/slotted-angular-rating.mjs.map +1 -1
  163. package/fesm2022/slotted-angular-saved-views.mjs +1 -1
  164. package/fesm2022/slotted-angular-saved-views.mjs.map +1 -1
  165. package/fesm2022/slotted-angular-section.mjs +23 -6
  166. package/fesm2022/slotted-angular-section.mjs.map +1 -1
  167. package/fesm2022/slotted-angular-segmented-control.mjs +29 -7
  168. package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
  169. package/fesm2022/slotted-angular-select.mjs +42 -18
  170. package/fesm2022/slotted-angular-select.mjs.map +1 -1
  171. package/fesm2022/slotted-angular-side-navigation.mjs +29 -7
  172. package/fesm2022/slotted-angular-side-navigation.mjs.map +1 -1
  173. package/fesm2022/slotted-angular-slider.mjs +26 -16
  174. package/fesm2022/slotted-angular-slider.mjs.map +1 -1
  175. package/fesm2022/slotted-angular-split-button.mjs +4 -4
  176. package/fesm2022/slotted-angular-split-button.mjs.map +1 -1
  177. package/fesm2022/slotted-angular-stat-card.mjs +82 -28
  178. package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
  179. package/fesm2022/slotted-angular-status-indicator.mjs +2 -2
  180. package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
  181. package/fesm2022/slotted-angular-switch.mjs +14 -4
  182. package/fesm2022/slotted-angular-switch.mjs.map +1 -1
  183. package/fesm2022/slotted-angular-table.mjs +76 -15
  184. package/fesm2022/slotted-angular-table.mjs.map +1 -1
  185. package/fesm2022/slotted-angular-tag.mjs +2 -2
  186. package/fesm2022/slotted-angular-tag.mjs.map +1 -1
  187. package/fesm2022/slotted-angular-tags-input.mjs +2 -2
  188. package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
  189. package/fesm2022/slotted-angular-toolbar.mjs +2 -2
  190. package/fesm2022/slotted-angular-toolbar.mjs.map +1 -1
  191. package/fesm2022/slotted-angular-tooltip.mjs +2 -2
  192. package/fesm2022/slotted-angular-tooltip.mjs.map +1 -1
  193. package/fesm2022/slotted-angular-top-navigation.mjs +2 -2
  194. package/fesm2022/slotted-angular-top-navigation.mjs.map +1 -1
  195. package/fesm2022/slotted-angular-tour.mjs +1 -1
  196. package/fesm2022/slotted-angular-tour.mjs.map +1 -1
  197. package/fesm2022/slotted-angular-transfer.mjs +1 -1
  198. package/fesm2022/slotted-angular-transfer.mjs.map +1 -1
  199. package/fesm2022/slotted-angular-typography.mjs +31 -6
  200. package/fesm2022/slotted-angular-typography.mjs.map +1 -1
  201. package/fesm2022/slotted-angular-wizard.mjs +1 -1
  202. package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
  203. package/package.json +11 -3
  204. package/types/slotted-angular-button.d.ts +57 -5
  205. package/types/slotted-angular-button.d.ts.map +1 -1
  206. package/types/slotted-angular-calendar.d.ts +62 -5
  207. package/types/slotted-angular-calendar.d.ts.map +1 -1
  208. package/types/slotted-angular-card.d.ts +7 -1
  209. package/types/slotted-angular-card.d.ts.map +1 -1
  210. package/types/slotted-angular-chart.d.ts +10 -2
  211. package/types/slotted-angular-chart.d.ts.map +1 -1
  212. package/types/slotted-angular-checkbox.d.ts +3 -1
  213. package/types/slotted-angular-checkbox.d.ts.map +1 -1
  214. package/types/slotted-angular-collapsible.d.ts +29 -3
  215. package/types/slotted-angular-collapsible.d.ts.map +1 -1
  216. package/types/slotted-angular-command-palette.d.ts.map +1 -1
  217. package/types/slotted-angular-dashboard-grid.d.ts +9 -1
  218. package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
  219. package/types/slotted-angular-data-grid.d.ts +5 -1
  220. package/types/slotted-angular-data-grid.d.ts.map +1 -1
  221. package/types/slotted-angular-description-list.d.ts +11 -3
  222. package/types/slotted-angular-description-list.d.ts.map +1 -1
  223. package/types/slotted-angular-entity-picker.d.ts +1 -0
  224. package/types/slotted-angular-entity-picker.d.ts.map +1 -1
  225. package/types/slotted-angular-floating-panel.d.ts +82 -0
  226. package/types/slotted-angular-floating-panel.d.ts.map +1 -0
  227. package/types/slotted-angular-list-item.d.ts +33 -6
  228. package/types/slotted-angular-list-item.d.ts.map +1 -1
  229. package/types/slotted-angular-list.d.ts +45 -29
  230. package/types/slotted-angular-list.d.ts.map +1 -1
  231. package/types/slotted-angular-listbox.d.ts +7 -1
  232. package/types/slotted-angular-listbox.d.ts.map +1 -1
  233. package/types/slotted-angular-message.d.ts +17 -3
  234. package/types/slotted-angular-message.d.ts.map +1 -1
  235. package/types/slotted-angular-meter.d.ts +67 -0
  236. package/types/slotted-angular-meter.d.ts.map +1 -0
  237. package/types/slotted-angular-page.d.ts +33 -10
  238. package/types/slotted-angular-page.d.ts.map +1 -1
  239. package/types/slotted-angular-prompt-composer.d.ts +2 -0
  240. package/types/slotted-angular-prompt-composer.d.ts.map +1 -1
  241. package/types/slotted-angular-section.d.ts +18 -3
  242. package/types/slotted-angular-section.d.ts.map +1 -1
  243. package/types/slotted-angular-segmented-control.d.ts +8 -2
  244. package/types/slotted-angular-segmented-control.d.ts.map +1 -1
  245. package/types/slotted-angular-select.d.ts.map +1 -1
  246. package/types/slotted-angular-side-navigation.d.ts +14 -2
  247. package/types/slotted-angular-side-navigation.d.ts.map +1 -1
  248. package/types/slotted-angular-slider.d.ts +7 -1
  249. package/types/slotted-angular-slider.d.ts.map +1 -1
  250. package/types/slotted-angular-stat-card.d.ts +20 -2
  251. package/types/slotted-angular-stat-card.d.ts.map +1 -1
  252. package/types/slotted-angular-switch.d.ts +16 -2
  253. package/types/slotted-angular-switch.d.ts.map +1 -1
  254. package/types/slotted-angular-table.d.ts +32 -3
  255. package/types/slotted-angular-table.d.ts.map +1 -1
  256. package/types/slotted-angular-typography.d.ts +21 -2
  257. package/types/slotted-angular-typography.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-toolbar.mjs","sources":["../../toolbar/src/toolbar-defaults.ts","../../toolbar/src/toolbar.ts","../../toolbar/src/toolbar-overflow.ts","../../toolbar/src/slotted-angular-toolbar.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\n/** Which way the bar runs. */\nexport type ToolbarOrientation = 'horizontal' | 'vertical';\n\n/** The step the bar's own inset, gap and separator sit at. */\nexport type ToolbarSize = 'sm' | 'md' | 'lg';\n\n/** Whether the bar paints a ground of its own. */\nexport type ToolbarVariant = 'plain' | 'outline';\n\n/**\n * What a bar does with more controls than it has room for. `wrap` keeps every\n * one of them visible on a second row, and the arrows wrap from row to row\n * because the item list is linear.\n */\nexport type ToolbarOverflowMode = 'wrap' | 'scroll' | 'menu';\n\nexport interface ToolbarDefaults {\n loop: boolean;\n orientation: ToolbarOrientation;\n overflow: ToolbarOverflowMode;\n size: ToolbarSize;\n variant: ToolbarVariant;\n}\n\nconst FALLBACK: ToolbarDefaults = {\n loop: true,\n orientation: 'horizontal',\n overflow: 'wrap',\n size: 'md',\n variant: 'plain',\n};\n\nexport const TOOLBAR_DEFAULTS = new InjectionToken<ToolbarDefaults>('slotted toolbar defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its bars are drawn and how they behave — a\n * product whose bars are all framed and compact says so in one place rather\n * than on every bar. A bar that states any of them itself still wins.\n */\nexport function provideToolbarDefaults(defaults: Partial<ToolbarDefaults>) {\n return {\n provide: TOOLBAR_DEFAULTS,\n useFactory: (): ToolbarDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a toolbar renders as here, before it states anything of its own. */\nexport function injectToolbarDefaults(): ToolbarDefaults {\n return inject(TOOLBAR_DEFAULTS);\n}\n","import { createRovingTabindex, TOOLBAR_ITEM_SELECTOR, toolbarOwnedKeys } from '@slotted/core/focus';\nimport type { RovingTabindexHandle } from '@slotted/core/focus';\nimport { createCollapse } from '@slotted/core/overflow';\nimport type { CollapseHandle } from '@slotted/core/overflow';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n input,\n output,\n signal,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectToolbarDefaults } from './toolbar-defaults';\nimport type {\n ToolbarOrientation,\n ToolbarOverflowMode,\n ToolbarSize,\n ToolbarVariant,\n} from './toolbar-defaults';\n\nexport type {\n ToolbarDefaults,\n ToolbarOrientation,\n ToolbarOverflowMode,\n ToolbarSize,\n ToolbarVariant,\n} from './toolbar-defaults';\n\n/**\n * The accessible name of the control that holds what did not fit. A string is\n * used verbatim; a function is given the number of units behind the control,\n * because three dots say nothing about how much is behind them.\n */\nexport type ToolbarOverflowLabel = string | ((hidden: number) => string);\n\n/**\n * One unit that gave way, in the order the bar held it.\n *\n * `separatorBefore` is derived rather than declared: the bar is the participant\n * that hid the units, so it is the only one that knows which of its own rules\n * are now dividing two things that are both in the surface.\n */\nexport interface ToolbarCollapsedUnit {\n readonly id: string;\n readonly separatorBefore: boolean;\n}\n\n/** The attribute that says a unit has somewhere to go. */\nexport const TOOLBAR_UNIT_ATTRIBUTE = 'data-unit';\n\n/**\n * Everything the bar lays out, and nothing that is or holds the trigger: the\n * control the units give way *to* would otherwise be counted twice, and the\n * Angular trigger sits inside a `display: contents` host of its own.\n */\nfunction unitsOf(container: HTMLElement) {\n return [...container.children].filter(\n (child): child is HTMLElement =>\n child instanceof HTMLElement &&\n child.getAttribute('data-part') !== 'overflow' &&\n child.querySelector('[data-part=\"overflow\"]') === null,\n );\n}\n\n/**\n * Whether one of the bar's own rules sits between two units that both gave way.\n * It is read from the DOM because a separator is a sibling of the units it\n * divides and nothing in the component tree relates them.\n */\nfunction ruleBetween(from: Element, to: Element) {\n for (\n let node = from.nextElementSibling;\n node !== null && node !== to;\n node = node.nextElementSibling\n ) {\n if (node.getAttribute('data-part') === 'separator') return true;\n }\n return false;\n}\n\n/**\n * A set of controls that share one tab stop.\n *\n * **The keyboard is the whole point of the role.** `Tab` enters the bar once and\n * lands on the control that last had focus, the arrows of the flow axis move\n * between the controls and wrap — from row to row when the bar wrapped, because\n * the item list is linear — and `Home` and `End` reach the ends. The cross axis\n * duplicates the pair, which the APG permits and which is what gives focus a way\n * out of an item that keeps the flow arrows for itself.\n *\n * **The items are the consumer's own controls.** Anything focusable inside the\n * bar is an item, found through `TOOLBAR_ITEM_SELECTOR`, so this library's\n * `button`, `link`, `checkbox`, `switch` and `text-field` — and a menu trigger,\n * and a consumer's own control — drop in unwrapped.\n *\n * **The bar paints itself and nothing inside it.** A bar out of action is\n * `<fieldset disabled>` around it: the platform disables every control inside,\n * and a natively disabled control cannot be focused, so the arrows skip exactly\n * those.\n */\n@Component({\n selector: '[slToolbar]',\n standalone: true,\n exportAs: 'slToolbar',\n template: '<ng-content />',\n styleUrl: '../../../styles/src/toolbar/toolbar.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'toolbar',\n 'data-ui-toolbar': '',\n 'data-part': 'root',\n 'data-part-root': '',\n role: 'toolbar',\n '[attr.data-orientation]': 'resolvedOrientation()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-overflow]': 'resolvedOverflow()',\n '[attr.data-collapsed]': 'collapsedCount()',\n '[attr.aria-orientation]': 'ariaOrientation()',\n },\n})\nexport class SlToolbar {\n readonly orientation = input<ToolbarOrientation | undefined>(undefined);\n readonly size = input<ToolbarSize | undefined>(undefined);\n readonly variant = input<ToolbarVariant | undefined>(undefined);\n readonly overflow = input<ToolbarOverflowMode | undefined>(undefined);\n /** Whether the arrows wrap past the ends of the bar. */\n readonly loop = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n\n /**\n * Reports how many units gave way, once per change. The collapsed set is a\n * measurement rather than a value, so there is no two-way binding over it: a\n * consumer who owned it could assert that a bar fits when the layout says it\n * does not.\n */\n readonly overflowChange = output<number>();\n\n private readonly defaults = injectToolbarDefaults();\n private readonly element = inject(ElementRef<HTMLElement>).nativeElement;\n\n private readonly counterparts = signal(new Map<string, TemplateRef<unknown>>());\n private readonly trigger = signal<HTMLElement | null>(null);\n private readonly ready = signal(false);\n private ring: RovingTabindexHandle | null = null;\n\n /** The units that gave way, in the order the bar held them. */\n readonly collapsedUnits = signal<readonly ToolbarCollapsedUnit[]>([]);\n\n readonly resolvedOrientation = computed(() => this.orientation() ?? this.defaults.orientation);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedOverflow = computed(() => this.overflow() ?? this.defaults.overflow);\n readonly resolvedLoop = computed(() => this.loop() ?? this.defaults.loop);\n\n protected readonly ariaOrientation = computed(() =>\n this.resolvedOrientation() === 'vertical' ? 'vertical' : null,\n );\n\n protected readonly collapsedCount = computed(() =>\n this.resolvedOverflow() === 'menu' ? String(this.collapsedUnits().length) : null,\n );\n\n /** Records what a unit becomes in the surface. */\n registerUnit(id: string, template: TemplateRef<unknown>) {\n this.counterparts.update((held) => new Map(held).set(id, template));\n }\n\n releaseUnit(id: string) {\n this.counterparts.update((held) => {\n const next = new Map(held);\n next.delete(id);\n return next;\n });\n }\n\n counterpart(id: string) {\n return this.counterparts().get(id) ?? null;\n }\n\n /** The control that opens what did not fit. The bar measures it. */\n registerTrigger(element: HTMLElement | null) {\n this.trigger.set(element);\n }\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n afterNextRender(() => {\n const ring: RovingTabindexHandle = createRovingTabindex(this.element, {\n crossAxis: true,\n includeAriaDisabled: true,\n itemSelector: TOOLBAR_ITEM_SELECTOR,\n loop: () => this.resolvedLoop(),\n orientation: () => this.resolvedOrientation(),\n ownedKeys: (item) => toolbarOwnedKeys(item, this.resolvedOrientation()),\n });\n\n this.ring = ring;\n\n /**\n * A control arriving or leaving has to reach the tab stop, and neither\n * binding can be told by the other's change detection. The DOM is the one\n * thing they agree on — and the same event invalidates the measurement,\n * because a bar that grows a button collapses one.\n */\n const observer = new MutationObserver(() => {\n ring.refresh();\n this.collapse?.refresh();\n });\n observer.observe(this.element, { childList: true, subtree: true });\n\n this.ready.set(true);\n\n destroyRef.onDestroy(() => {\n observer.disconnect();\n ring.destroy();\n this.ring = null;\n });\n });\n\n /**\n * The collapse runs only under `overflow=\"menu\"`, and only once the bar\n * holds a trigger: with nothing to give way *to*, every unit is pinned and\n * the bar scrolls instead — the same degradation a bar of pinned units\n * gets.\n */\n effect((onCleanup) => {\n const trigger = this.trigger();\n const orientation = this.resolvedOrientation();\n if (!this.ready() || this.resolvedOverflow() !== 'menu') return;\n\n const handle: CollapseHandle = createCollapse(this.element, {\n collapsible: (unit) => unit.hasAttribute(TOOLBAR_UNIT_ATTRIBUTE),\n divides: (unit) => unit.getAttribute('data-part') === 'separator',\n /* A spacer grows into whatever is left, so its room is nought — and it\n is still one of the boxes the gaps run between. */\n fixedSize: (unit) => (unit.getAttribute('data-part') === 'spacer' ? 0 : undefined),\n onChange: (units) => {\n const named = units.filter((unit) => unit.hasAttribute(TOOLBAR_UNIT_ATTRIBUTE));\n this.collapsedUnits.set(\n named.map((unit, index) => {\n const previous = named[index - 1];\n return {\n id: unit.getAttribute(TOOLBAR_UNIT_ATTRIBUTE) ?? '',\n separatorBefore: previous !== undefined && ruleBetween(previous, unit),\n };\n }),\n );\n /* A unit that left the bar leaves the ring with it, and one that came\n back rejoins it. */\n this.ring?.refresh();\n this.overflowChange.emit(named.length);\n },\n orientation: () => orientation,\n trigger: () => trigger,\n units: () => unitsOf(this.element),\n });\n\n this.collapse = handle;\n onCleanup(() => {\n handle.destroy();\n this.collapse = null;\n this.collapsedUnits.set([]);\n });\n });\n }\n\n private collapse: CollapseHandle | null = null;\n}\n\n/**\n * A run of related controls, announced as a group.\n *\n * The distance inside it is half the bar's gap and the distance around it is a\n * gap and a half, so the boundary between two groups reads wider than the\n * boundary between two controls. Its accessible name is the consumer's own\n * `aria-label`.\n *\n * The arrows do not stop at its edge: a group is a label around a run, not a\n * second keyboard.\n */\n@Directive({\n selector: '[slToolbarGroup]',\n standalone: true,\n exportAs: 'slToolbarGroup',\n host: {\n 'data-part': 'group',\n 'data-part-group': '',\n role: 'group',\n '[attr.data-unit]': 'unit.id()',\n },\n})\nexport class SlToolbarGroup {\n /**\n * What the whole run becomes when the bar has no room for it, under\n * `overflow=\"menu\"`. A group that declares none is pinned.\n */\n readonly counterpart = input<TemplateRef<unknown> | undefined>(undefined, {\n alias: 'slToolbarGroupCounterpart',\n });\n\n protected readonly unit = declareUnit(() => this.counterpart());\n}\n\n/**\n * One unit the bar may give up, and what it becomes when it does.\n *\n * A unit is a direct child of the root, which is deliberately not the same\n * thing as an item: the keyboard finds items by being focusable, at any depth,\n * and the collapse acts on the boxes the bar lays out. A `slButtonGroup` inside\n * one of these is one unit and four items.\n *\n * It is only needed under `overflow=\"menu\"`, and only around a control the bar\n * is allowed to hide. A control placed in a bar unwrapped is a unit too — a\n * pinned one, because it declares nothing to become.\n */\n@Directive({\n selector: '[slToolbarItem]',\n standalone: true,\n exportAs: 'slToolbarItem',\n host: { 'data-part': 'item', 'data-part-item': '', '[attr.data-unit]': 'unit.id()' },\n})\nexport class SlToolbarItem {\n /**\n * What the control becomes in the surface. An item that declares none cannot\n * be hidden, which is how a primary action stays visible: it has nowhere to\n * go, rather than a rank above the others.\n */\n readonly counterpart = input<TemplateRef<unknown> | undefined>(undefined, {\n alias: 'slToolbarItemCounterpart',\n });\n\n protected readonly unit = declareUnit(() => this.counterpart());\n}\n\n/**\n * Records what a unit becomes in the surface, and says so in the DOM.\n *\n * The attribute is what the measurement reads: a unit carrying it has somewhere\n * to go, and one without it is pinned. Pinning is therefore the absence of a\n * counterpart rather than a second input — one fact, in the place a reader is\n * already looking, and no way for the two to disagree.\n */\nlet unitCount = 0;\n\nfunction declareUnit(counterpart: () => TemplateRef<unknown> | undefined) {\n const toolbar = inject(SlToolbar, { optional: true });\n const destroyRef = inject(DestroyRef);\n const identity = `slotted-toolbar-unit-${(unitCount += 1)}`;\n\n const id = computed(() => (counterpart() === undefined ? null : identity));\n\n effect(() => {\n const template = counterpart();\n if (toolbar === null) return;\n if (template === undefined) toolbar.releaseUnit(identity);\n else toolbar.registerUnit(identity, template);\n });\n\n destroyRef.onDestroy(() => toolbar?.releaseUnit(identity));\n\n return { id };\n}\n\n/**\n * A hairline between two runs.\n *\n * It is a part of this family rather than a `divider`, because its geometry\n * belongs to the bar: it is measured against the controls beside it, and it\n * turns with the bar. `aria-orientation` states the axis of the rule itself,\n * which is perpendicular to the one the controls run along.\n */\n@Directive({\n selector: '[slToolbarSeparator]',\n standalone: true,\n exportAs: 'slToolbarSeparator',\n host: {\n 'data-part': 'separator',\n 'data-part-separator': '',\n role: 'separator',\n '[attr.aria-orientation]': 'ariaOrientation()',\n },\n})\nexport class SlToolbarSeparator {\n private readonly toolbar = inject(SlToolbar);\n\n protected readonly ariaOrientation = computed(() =>\n this.toolbar.resolvedOrientation() === 'vertical' ? 'horizontal' : 'vertical',\n );\n}\n\n/**\n * The free space between two runs, so what follows sits at the end of the bar.\n *\n * It replaces a `justify` axis: an axis decides the placement of every control\n * at once, and what a bar needs is one boundary — the editing controls at the\n * start, the destructive one at the end.\n */\n@Directive({\n selector: '[slToolbarSpacer]',\n standalone: true,\n exportAs: 'slToolbarSpacer',\n host: { 'data-part': 'spacer', 'data-part-spacer': '', 'aria-hidden': 'true' },\n})\nexport class SlToolbarSpacer {}\n","import { toolbarMessages } from '@slotted/core/i18n';\nimport { writeSelectorKey } from '@slotted/core/selector-key';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n ElementRef,\n HostAttributeToken,\n inject,\n Injector,\n input,\n ViewEncapsulation,\n viewChild,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport { SlMenu, SlMenuSeparator, SlMenuTrigger } from '@slotted/angular/menu';\nimport type { MenuAlign, MenuSide, MenuSize } from '@slotted/angular/menu';\n\nimport { SlToolbar } from './toolbar';\nimport type { ToolbarOverflowLabel } from './toolbar';\n\n/**\n * The control that opens what did not fit, and the surface holding it.\n *\n * It is `menu`'s own trigger and surface wearing this family's geometry, so the\n * keyboard, the dismissal and the focus return are `menu`'s and are not written\n * twice. What this family adds is the measurement: the bar decides which units\n * give way, and the counterparts they declared are rendered here in the order\n * the bar held them, with a separator wherever one of the bar's own rules sat\n * between two of them.\n *\n * The counterpart is an `ng-template` rendered through `NgTemplateOutlet` only\n * while its unit is collapsed, so a menu item that is never reached builds\n * nothing. That is where the two bindings differ most, and it is idiom rather\n * than asymmetry: React's `ReactNode` is built with the element that declares\n * it, which is React's own answer and its own cost.\n *\n * **A template resolves its dependencies where it was written, not where it is\n * rendered.** The counterpart is authored beside the control it replaces, which\n * is outside the surface, so `slMenuItem` looked for the `SlMenu` above the bar\n * and found none — `NG0201`. The outlet is therefore given an injector that\n * provides the surface this component draws, and the item finds the menu it is\n * actually inside. The DOM was never wrong; only the injector was.\n *\n * The host is `display: contents`, so the `button` below is a child of the bar\n * itself: the part that carries the geometry has to be the box the bar lays\n * out, and a wrapper between them would be a unit the collapse would try to\n * measure.\n *\n * **The `hidden` attribute on the trigger belongs to the bar.** `createCollapse`\n * writes it, because the same measurement that decides whether the control is\n * needed is the one that has to reveal it to read its width.\n */\n@Component({\n selector: 'sl-toolbar-overflow',\n standalone: true,\n exportAs: 'slToolbarOverflow',\n imports: [NgTemplateOutlet, SlGlyph, SlIcon, SlMenu, SlMenuSeparator, SlMenuTrigger],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: { style: 'display: contents' },\n template: `\n <button\n #trigger\n data-part=\"overflow\"\n data-part-overflow=\"\"\n type=\"button\"\n [slMenuTriggerFor]=\"surface\"\n [attr.aria-label]=\"name()\"\n >\n <span slIcon><svg slGlyph name=\"ellipsis\"></svg></span>\n </button>\n <sl-menu #surface [align]=\"align()\" [side]=\"side()\" [size]=\"size()\">\n @for (unit of toolbar.collapsedUnits(); track unit.id) {\n @if (unit.separatorBefore) {\n <hr slMenuSeparator />\n }\n <ng-container\n *ngTemplateOutlet=\"toolbar.counterpart(unit.id)!; injector: surfaceInjector()\"\n />\n }\n </sl-menu>\n `,\n})\nexport class SlToolbarOverflow {\n /** Where the surface sits against the trigger. */\n readonly align = input<MenuAlign | undefined>(undefined);\n readonly side = input<MenuSide | undefined>(undefined);\n /** The surface's own measure, which is `menu`'s axis rather than the bar's. */\n readonly size = input<MenuSize | undefined>(undefined);\n /**\n * The accessible name. Defaults to a count — \"3 more actions\" — because the\n * mark says nothing about how much is behind it.\n */\n readonly label = input<ToolbarOverflowLabel | undefined>(undefined);\n\n protected readonly toolbar = inject(SlToolbar);\n\n /** The counted default, in the language in force. */\n private readonly t = injectMessages(toolbarMessages);\n /** A name the consumer wrote on the host survives the counted default. */\n private readonly stated = inject(new HostAttributeToken('aria-label'), { optional: true });\n\n protected readonly name = computed(() => {\n if (this.stated !== null) return this.stated;\n const given = this.label();\n const hidden = this.toolbar.collapsedUnits().length;\n if (typeof given === 'function') return given(hidden);\n if (given !== undefined) return given;\n return this.t('more', { count: hidden });\n });\n\n private readonly trigger = viewChild.required<ElementRef<HTMLElement>>('trigger');\n private readonly surface = viewChild(SlMenu);\n private readonly injector = inject(Injector);\n\n /**\n * `null` until the view exists, which is also while nothing has collapsed and\n * the outlet renders nothing.\n */\n protected readonly surfaceInjector = computed(() => {\n const menu = this.surface();\n if (menu === undefined) return null;\n return Injector.create({\n parent: this.injector,\n providers: [{ provide: SlMenu, useValue: menu }],\n });\n });\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n afterNextRender(() => {\n const element = this.trigger().nativeElement;\n\n /**\n * `slMenuTriggerFor` binds `[attr.data-part]` and resolves it to `null`\n * for a trigger that is neither a bar's item nor a submenu's, and a host\n * binding of `null` removes the attribute the author wrote. The part is\n * therefore written back after the first change detection, where nothing\n * writes over it again: the expression is a constant, so Angular applies\n * it once.\n *\n * React does not have the problem because the family's own props are\n * spread after the menu's; here the two writers are directives on one\n * element and the last one wins.\n */\n writeSelectorKey(element, 'part', 'overflow');\n\n /* The bar measures the control, so it has to hold it. */\n this.toolbar.registerTrigger(element);\n });\n destroyRef.onDestroy(() => this.toolbar.registerTrigger(null));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AA0BA,MAAM,QAAQ,GAAoB;AAChC,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,WAAW,EAAE,YAAY;AACzB,IAAA,QAAQ,EAAE,MAAM;AAChB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,OAAO,EAAE,OAAO;CACjB;MAEY,gBAAgB,GAAG,IAAI,cAAc,CAAkB,0BAA0B,EAAE;AAC9F,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;;;;AAIG;AACG,SAAU,sBAAsB,CAAC,QAAkC,EAAA;IACvE,OAAO;AACL,QAAA,OAAO,EAAE,gBAAgB;AACzB,QAAA,UAAU,EAAE,OAAwB,EAAE,GAAG,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;KAClE;AACH;AAEA;SACgB,qBAAqB,GAAA;AACnC,IAAA,OAAO,MAAM,CAAC,gBAAgB,CAAC;AACjC;;ACGA;AACO,MAAM,sBAAsB,GAAG;AAEtC;;;;AAIG;AACH,SAAS,OAAO,CAAC,SAAsB,EAAA;AACrC,IAAA,OAAO,CAAC,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC,MAAM,CACnC,CAAC,KAAK,KACJ,KAAK,YAAY,WAAW;AAC5B,QAAA,KAAK,CAAC,YAAY,CA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A,SAAS,qFAC3C,MAAM,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACrH7C;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-toolbar.mjs","sources":["../../toolbar/src/toolbar-defaults.ts","../../toolbar/src/toolbar.ts","../../toolbar/src/toolbar-overflow.ts","../../toolbar/src/slotted-angular-toolbar.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\n/** Which way the bar runs. */\nexport type ToolbarOrientation = 'horizontal' | 'vertical';\n\n/** The step the bar's own inset, gap and separator sit at. */\nexport type ToolbarSize = 'sm' | 'md' | 'lg';\n\n/** Whether the bar paints a ground of its own. */\nexport type ToolbarVariant = 'plain' | 'outline';\n\n/**\n * What a bar does with more controls than it has room for. `wrap` keeps every\n * one of them visible on a second row, and the arrows wrap from row to row\n * because the item list is linear.\n */\nexport type ToolbarOverflowMode = 'wrap' | 'scroll' | 'menu';\n\nexport interface ToolbarDefaults {\n loop: boolean;\n orientation: ToolbarOrientation;\n overflow: ToolbarOverflowMode;\n size: ToolbarSize;\n variant: ToolbarVariant;\n}\n\nconst FALLBACK: ToolbarDefaults = {\n loop: true,\n orientation: 'horizontal',\n overflow: 'wrap',\n size: 'md',\n variant: 'plain',\n};\n\nexport const TOOLBAR_DEFAULTS = new InjectionToken<ToolbarDefaults>('slotted toolbar defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its bars are drawn and how they behave — a\n * product whose bars are all framed and compact says so in one place rather\n * than on every bar. A bar that states any of them itself still wins.\n */\nexport function provideToolbarDefaults(defaults: Partial<ToolbarDefaults>) {\n return {\n provide: TOOLBAR_DEFAULTS,\n useFactory: (): ToolbarDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a toolbar renders as here, before it states anything of its own. */\nexport function injectToolbarDefaults(): ToolbarDefaults {\n return inject(TOOLBAR_DEFAULTS);\n}\n","import { createRovingTabindex, TOOLBAR_ITEM_SELECTOR, toolbarOwnedKeys } from '@slotted/core/focus';\nimport type { RovingTabindexHandle } from '@slotted/core/focus';\nimport { createCollapse } from '@slotted/core/overflow';\nimport type { CollapseHandle } from '@slotted/core/overflow';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n input,\n output,\n signal,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectToolbarDefaults } from './toolbar-defaults';\nimport type {\n ToolbarOrientation,\n ToolbarOverflowMode,\n ToolbarSize,\n ToolbarVariant,\n} from './toolbar-defaults';\n\nexport type {\n ToolbarDefaults,\n ToolbarOrientation,\n ToolbarOverflowMode,\n ToolbarSize,\n ToolbarVariant,\n} from './toolbar-defaults';\n\n/**\n * The accessible name of the control that holds what did not fit. A string is\n * used verbatim; a function is given the number of units behind the control,\n * because three dots say nothing about how much is behind them.\n */\nexport type ToolbarOverflowLabel = string | ((hidden: number) => string);\n\n/**\n * One unit that gave way, in the order the bar held it.\n *\n * `separatorBefore` is derived rather than declared: the bar is the participant\n * that hid the units, so it is the only one that knows which of its own rules\n * are now dividing two things that are both in the surface.\n */\nexport interface ToolbarCollapsedUnit {\n readonly id: string;\n readonly separatorBefore: boolean;\n}\n\n/** The attribute that says a unit has somewhere to go. */\nexport const TOOLBAR_UNIT_ATTRIBUTE = 'data-unit';\n\n/**\n * Everything the bar lays out, and nothing that is or holds the trigger: the\n * control the units give way *to* would otherwise be counted twice, and the\n * Angular trigger sits inside a `display: contents` host of its own.\n */\nfunction unitsOf(container: HTMLElement) {\n return [...container.children].filter(\n (child): child is HTMLElement =>\n child instanceof HTMLElement &&\n child.getAttribute('data-part') !== 'overflow' &&\n child.querySelector('[data-part=\"overflow\"]') === null,\n );\n}\n\n/**\n * Whether one of the bar's own rules sits between two units that both gave way.\n * It is read from the DOM because a separator is a sibling of the units it\n * divides and nothing in the component tree relates them.\n */\nfunction ruleBetween(from: Element, to: Element) {\n for (\n let node = from.nextElementSibling;\n node !== null && node !== to;\n node = node.nextElementSibling\n ) {\n if (node.getAttribute('data-part') === 'separator') return true;\n }\n return false;\n}\n\n/**\n * A set of controls that share one tab stop.\n *\n * **The keyboard is the whole point of the role.** `Tab` enters the bar once and\n * lands on the control that last had focus, the arrows of the flow axis move\n * between the controls and wrap — from row to row when the bar wrapped, because\n * the item list is linear — and `Home` and `End` reach the ends. The cross axis\n * duplicates the pair, which the APG permits and which is what gives focus a way\n * out of an item that keeps the flow arrows for itself.\n *\n * **The items are the consumer's own controls.** Anything focusable inside the\n * bar is an item, found through `TOOLBAR_ITEM_SELECTOR`, so this library's\n * `button`, `link`, `checkbox`, `switch` and `text-field` — and a menu trigger,\n * and a consumer's own control — drop in unwrapped.\n *\n * **The bar paints itself and nothing inside it.** A bar out of action is\n * `<fieldset disabled>` around it: the platform disables every control inside,\n * and a natively disabled control cannot be focused, so the arrows skip exactly\n * those.\n */\n@Component({\n selector: '[slToolbar]',\n standalone: true,\n exportAs: 'slToolbar',\n template: '<ng-content />',\n styleUrl: '../../../styles/src/toolbar/toolbar.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'toolbar',\n 'data-ui-toolbar': '',\n 'data-part': 'root',\n 'data-part-root': '',\n role: 'toolbar',\n '[attr.data-orientation]': 'resolvedOrientation()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-overflow]': 'resolvedOverflow()',\n '[attr.data-collapsed]': 'collapsedCount()',\n '[attr.aria-orientation]': 'ariaOrientation()',\n },\n})\nexport class SlToolbar {\n readonly orientation = input<ToolbarOrientation | undefined>(undefined);\n readonly size = input<ToolbarSize | undefined>(undefined);\n readonly variant = input<ToolbarVariant | undefined>(undefined);\n readonly overflow = input<ToolbarOverflowMode | undefined>(undefined);\n /** Whether the arrows wrap past the ends of the bar. */\n readonly loop = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n\n /**\n * Reports how many units gave way, once per change. The collapsed set is a\n * measurement rather than a value, so there is no two-way binding over it: a\n * consumer who owned it could assert that a bar fits when the layout says it\n * does not.\n */\n readonly overflowChange = output<number>();\n\n private readonly defaults = injectToolbarDefaults();\n private readonly element = inject(ElementRef<HTMLElement>).nativeElement;\n\n private readonly counterparts = signal(new Map<string, TemplateRef<unknown>>());\n private readonly trigger = signal<HTMLElement | null>(null);\n private readonly ready = signal(false);\n private ring: RovingTabindexHandle | null = null;\n\n /** The units that gave way, in the order the bar held them. */\n readonly collapsedUnits = signal<readonly ToolbarCollapsedUnit[]>([]);\n\n readonly resolvedOrientation = computed(() => this.orientation() ?? this.defaults.orientation);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedOverflow = computed(() => this.overflow() ?? this.defaults.overflow);\n readonly resolvedLoop = computed(() => this.loop() ?? this.defaults.loop);\n\n protected readonly ariaOrientation = computed(() =>\n this.resolvedOrientation() === 'vertical' ? 'vertical' : null,\n );\n\n protected readonly collapsedCount = computed(() =>\n this.resolvedOverflow() === 'menu' ? String(this.collapsedUnits().length) : null,\n );\n\n /** Records what a unit becomes in the surface. */\n registerUnit(id: string, template: TemplateRef<unknown>) {\n this.counterparts.update((held) => new Map(held).set(id, template));\n }\n\n releaseUnit(id: string) {\n this.counterparts.update((held) => {\n const next = new Map(held);\n next.delete(id);\n return next;\n });\n }\n\n counterpart(id: string) {\n return this.counterparts().get(id) ?? null;\n }\n\n /** The control that opens what did not fit. The bar measures it. */\n registerTrigger(element: HTMLElement | null) {\n this.trigger.set(element);\n }\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n afterNextRender(() => {\n const ring: RovingTabindexHandle = createRovingTabindex(this.element, {\n crossAxis: true,\n includeAriaDisabled: true,\n itemSelector: TOOLBAR_ITEM_SELECTOR,\n loop: () => this.resolvedLoop(),\n orientation: () => this.resolvedOrientation(),\n ownedKeys: (item) => toolbarOwnedKeys(item, this.resolvedOrientation()),\n });\n\n this.ring = ring;\n\n /**\n * A control arriving or leaving has to reach the tab stop, and neither\n * binding can be told by the other's change detection. The DOM is the one\n * thing they agree on — and the same event invalidates the measurement,\n * because a bar that grows a button collapses one.\n */\n const observer = new MutationObserver(() => {\n ring.refresh();\n this.collapse?.refresh();\n });\n observer.observe(this.element, { childList: true, subtree: true });\n\n this.ready.set(true);\n\n destroyRef.onDestroy(() => {\n observer.disconnect();\n ring.destroy();\n this.ring = null;\n });\n });\n\n /**\n * The collapse runs only under `overflow=\"menu\"`, and only once the bar\n * holds a trigger: with nothing to give way *to*, every unit is pinned and\n * the bar scrolls instead — the same degradation a bar of pinned units\n * gets.\n */\n effect((onCleanup) => {\n const trigger = this.trigger();\n const orientation = this.resolvedOrientation();\n if (!this.ready() || this.resolvedOverflow() !== 'menu') return;\n\n const handle: CollapseHandle = createCollapse(this.element, {\n collapsible: (unit) => unit.hasAttribute(TOOLBAR_UNIT_ATTRIBUTE),\n divides: (unit) => unit.getAttribute('data-part') === 'separator',\n /* A spacer grows into whatever is left, so its room is nought — and it\n is still one of the boxes the gaps run between. */\n fixedSize: (unit) => (unit.getAttribute('data-part') === 'spacer' ? 0 : undefined),\n onChange: (units) => {\n const named = units.filter((unit) => unit.hasAttribute(TOOLBAR_UNIT_ATTRIBUTE));\n this.collapsedUnits.set(\n named.map((unit, index) => {\n const previous = named[index - 1];\n return {\n id: unit.getAttribute(TOOLBAR_UNIT_ATTRIBUTE) ?? '',\n separatorBefore: previous !== undefined && ruleBetween(previous, unit),\n };\n }),\n );\n /* A unit that left the bar leaves the ring with it, and one that came\n back rejoins it. */\n this.ring?.refresh();\n this.overflowChange.emit(named.length);\n },\n orientation: () => orientation,\n trigger: () => trigger,\n units: () => unitsOf(this.element),\n });\n\n this.collapse = handle;\n onCleanup(() => {\n handle.destroy();\n this.collapse = null;\n this.collapsedUnits.set([]);\n });\n });\n }\n\n private collapse: CollapseHandle | null = null;\n}\n\n/**\n * A run of related controls, announced as a group.\n *\n * The distance inside it is half the bar's gap and the distance around it is a\n * gap and a half, so the boundary between two groups reads wider than the\n * boundary between two controls. Its accessible name is the consumer's own\n * `aria-label`.\n *\n * The arrows do not stop at its edge: a group is a label around a run, not a\n * second keyboard.\n */\n@Directive({\n selector: '[slToolbarGroup]',\n standalone: true,\n exportAs: 'slToolbarGroup',\n host: {\n 'data-part': 'group',\n 'data-part-group': '',\n role: 'group',\n '[attr.data-unit]': 'unit.id()',\n },\n})\nexport class SlToolbarGroup {\n /**\n * What the whole run becomes when the bar has no room for it, under\n * `overflow=\"menu\"`. A group that declares none is pinned.\n */\n readonly counterpart = input<TemplateRef<unknown> | undefined>(undefined, {\n alias: 'slToolbarGroupCounterpart',\n });\n\n protected readonly unit = declareUnit(() => this.counterpart());\n}\n\n/**\n * One unit the bar may give up, and what it becomes when it does.\n *\n * A unit is a direct child of the root, which is deliberately not the same\n * thing as an item: the keyboard finds items by being focusable, at any depth,\n * and the collapse acts on the boxes the bar lays out. A `slButtonGroup` inside\n * one of these is one unit and four items.\n *\n * It is only needed under `overflow=\"menu\"`, and only around a control the bar\n * is allowed to hide. A control placed in a bar unwrapped is a unit too — a\n * pinned one, because it declares nothing to become.\n */\n@Directive({\n selector: '[slToolbarItem]',\n standalone: true,\n exportAs: 'slToolbarItem',\n host: { 'data-part': 'item', 'data-part-item': '', '[attr.data-unit]': 'unit.id()' },\n})\nexport class SlToolbarItem {\n /**\n * What the control becomes in the surface. An item that declares none cannot\n * be hidden, which is how a primary action stays visible: it has nowhere to\n * go, rather than a rank above the others.\n */\n readonly counterpart = input<TemplateRef<unknown> | undefined>(undefined, {\n alias: 'slToolbarItemCounterpart',\n });\n\n protected readonly unit = declareUnit(() => this.counterpart());\n}\n\n/**\n * Records what a unit becomes in the surface, and says so in the DOM.\n *\n * The attribute is what the measurement reads: a unit carrying it has somewhere\n * to go, and one without it is pinned. Pinning is therefore the absence of a\n * counterpart rather than a second input — one fact, in the place a reader is\n * already looking, and no way for the two to disagree.\n */\nlet unitCount = 0;\n\nfunction declareUnit(counterpart: () => TemplateRef<unknown> | undefined) {\n const toolbar = inject(SlToolbar, { optional: true });\n const destroyRef = inject(DestroyRef);\n const identity = `slotted-toolbar-unit-${(unitCount += 1)}`;\n\n const id = computed(() => (counterpart() === undefined ? null : identity));\n\n effect(() => {\n const template = counterpart();\n if (toolbar === null) return;\n if (template === undefined) toolbar.releaseUnit(identity);\n else toolbar.registerUnit(identity, template);\n });\n\n destroyRef.onDestroy(() => toolbar?.releaseUnit(identity));\n\n return { id };\n}\n\n/**\n * A hairline between two runs.\n *\n * It is a part of this family rather than a `divider`, because its geometry\n * belongs to the bar: it is measured against the controls beside it, and it\n * turns with the bar. `aria-orientation` states the axis of the rule itself,\n * which is perpendicular to the one the controls run along.\n */\n@Directive({\n selector: '[slToolbarSeparator]',\n standalone: true,\n exportAs: 'slToolbarSeparator',\n host: {\n 'data-part': 'separator',\n 'data-part-separator': '',\n role: 'separator',\n '[attr.aria-orientation]': 'ariaOrientation()',\n },\n})\nexport class SlToolbarSeparator {\n private readonly toolbar = inject(SlToolbar);\n\n protected readonly ariaOrientation = computed(() =>\n this.toolbar.resolvedOrientation() === 'vertical' ? 'horizontal' : 'vertical',\n );\n}\n\n/**\n * The free space between two runs, so what follows sits at the end of the bar.\n *\n * It replaces a `justify` axis: an axis decides the placement of every control\n * at once, and what a bar needs is one boundary — the editing controls at the\n * start, the destructive one at the end.\n */\n@Directive({\n selector: '[slToolbarSpacer]',\n standalone: true,\n exportAs: 'slToolbarSpacer',\n host: { 'data-part': 'spacer', 'data-part-spacer': '', 'aria-hidden': 'true' },\n})\nexport class SlToolbarSpacer {}\n","import { toolbarMessages } from '@slotted/core/i18n';\nimport { writeSelectorKey } from '@slotted/core/selector-key';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n ElementRef,\n HostAttributeToken,\n inject,\n Injector,\n input,\n ViewEncapsulation,\n viewChild,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport { SlMenu, SlMenuSeparator, SlMenuTrigger } from '@slotted/angular/menu';\nimport type { MenuAlign, MenuSide, MenuSize } from '@slotted/angular/menu';\n\nimport { SlToolbar } from './toolbar';\nimport type { ToolbarOverflowLabel } from './toolbar';\n\n/**\n * The control that opens what did not fit, and the surface holding it.\n *\n * It is `menu`'s own trigger and surface wearing this family's geometry, so the\n * keyboard, the dismissal and the focus return are `menu`'s and are not written\n * twice. What this family adds is the measurement: the bar decides which units\n * give way, and the counterparts they declared are rendered here in the order\n * the bar held them, with a separator wherever one of the bar's own rules sat\n * between two of them.\n *\n * The counterpart is an `ng-template` rendered through `NgTemplateOutlet` only\n * while its unit is collapsed, so a menu item that is never reached builds\n * nothing. That is where the two bindings differ most, and it is idiom rather\n * than asymmetry: React's `ReactNode` is built with the element that declares\n * it, which is React's own answer and its own cost.\n *\n * **A template resolves its dependencies where it was written, not where it is\n * rendered.** The counterpart is authored beside the control it replaces, which\n * is outside the surface, so `slMenuItem` looked for the `SlMenu` above the bar\n * and found none — `NG0201`. The outlet is therefore given an injector that\n * provides the surface this component draws, and the item finds the menu it is\n * actually inside. The DOM was never wrong; only the injector was.\n *\n * The host is `display: contents`, so the `button` below is a child of the bar\n * itself: the part that carries the geometry has to be the box the bar lays\n * out, and a wrapper between them would be a unit the collapse would try to\n * measure.\n *\n * **The `hidden` attribute on the trigger belongs to the bar.** `createCollapse`\n * writes it, because the same measurement that decides whether the control is\n * needed is the one that has to reveal it to read its width.\n */\n@Component({\n selector: 'sl-toolbar-overflow',\n standalone: true,\n exportAs: 'slToolbarOverflow',\n imports: [NgTemplateOutlet, SlGlyph, SlIcon, SlMenu, SlMenuSeparator, SlMenuTrigger],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: { style: 'display: contents' },\n template: `\n <button\n #trigger\n data-part=\"overflow\"\n data-part-overflow=\"\"\n type=\"button\"\n [slMenuTriggerFor]=\"surface\"\n [attr.aria-label]=\"name()\"\n >\n <span slIcon><svg slGlyph name=\"ellipsis\"></svg></span>\n </button>\n <sl-menu #surface [align]=\"align()\" [side]=\"side()\" [size]=\"size()\">\n @for (unit of toolbar.collapsedUnits(); track unit.id) {\n @if (unit.separatorBefore) {\n <hr slMenuSeparator />\n }\n <ng-container\n *ngTemplateOutlet=\"toolbar.counterpart(unit.id)!; injector: surfaceInjector()\"\n />\n }\n </sl-menu>\n `,\n})\nexport class SlToolbarOverflow {\n /** Where the surface sits against the trigger. */\n readonly align = input<MenuAlign | undefined>(undefined);\n readonly side = input<MenuSide | undefined>(undefined);\n /** The surface's own measure, which is `menu`'s axis rather than the bar's. */\n readonly size = input<MenuSize | undefined>(undefined);\n /**\n * The accessible name. Defaults to a count — \"3 more actions\" — because the\n * mark says nothing about how much is behind it.\n */\n readonly label = input<ToolbarOverflowLabel | undefined>(undefined);\n\n protected readonly toolbar = inject(SlToolbar);\n\n /** The counted default, in the language in force. */\n private readonly t = injectMessages(toolbarMessages);\n /** A name the consumer wrote on the host survives the counted default. */\n private readonly stated = inject(new HostAttributeToken('aria-label'), { optional: true });\n\n protected readonly name = computed(() => {\n if (this.stated !== null) return this.stated;\n const given = this.label();\n const hidden = this.toolbar.collapsedUnits().length;\n if (typeof given === 'function') return given(hidden);\n if (given !== undefined) return given;\n return this.t('more', { count: hidden });\n });\n\n private readonly trigger = viewChild.required<ElementRef<HTMLElement>>('trigger');\n private readonly surface = viewChild(SlMenu);\n private readonly injector = inject(Injector);\n\n /**\n * `null` until the view exists, which is also while nothing has collapsed and\n * the outlet renders nothing.\n */\n protected readonly surfaceInjector = computed(() => {\n const menu = this.surface();\n if (menu === undefined) return null;\n return Injector.create({\n parent: this.injector,\n providers: [{ provide: SlMenu, useValue: menu }],\n });\n });\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n afterNextRender(() => {\n const element = this.trigger().nativeElement;\n\n /**\n * `slMenuTriggerFor` binds `[attr.data-part]` and resolves it to `null`\n * for a trigger that is neither a bar's item nor a submenu's, and a host\n * binding of `null` removes the attribute the author wrote. The part is\n * therefore written back after the first change detection, where nothing\n * writes over it again: the expression is a constant, so Angular applies\n * it once.\n *\n * React does not have the problem because the family's own props are\n * spread after the menu's; here the two writers are directives on one\n * element and the last one wins.\n */\n writeSelectorKey(element, 'part', 'overflow');\n\n /* The bar measures the control, so it has to hold it. */\n this.toolbar.registerTrigger(element);\n });\n destroyRef.onDestroy(() => this.toolbar.registerTrigger(null));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AA0BA,MAAM,QAAQ,GAAoB;AAChC,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,WAAW,EAAE,YAAY;AACzB,IAAA,QAAQ,EAAE,MAAM;AAChB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,OAAO,EAAE,OAAO;CACjB;MAEY,gBAAgB,GAAG,IAAI,cAAc,CAAkB,0BAA0B,EAAE;AAC9F,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;;;;AAIG;AACG,SAAU,sBAAsB,CAAC,QAAkC,EAAA;IACvE,OAAO;AACL,QAAA,OAAO,EAAE,gBAAgB;AACzB,QAAA,UAAU,EAAE,OAAwB,EAAE,GAAG,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;KAClE;AACH;AAEA;SACgB,qBAAqB,GAAA;AACnC,IAAA,OAAO,MAAM,CAAC,gBAAgB,CAAC;AACjC;;ACGA;AACO,MAAM,sBAAsB,GAAG;AAEtC;;;;AAIG;AACH,SAAS,OAAO,CAAC,SAAsB,EAAA;AACrC,IAAA,OAAO,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,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,SAAS,qFAC3C,MAAM,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACrH7C;;AAEG;;"}
@@ -736,7 +736,7 @@ class SlTooltipContent {
736
736
  hidden = computed(() => this.tooltip.resolvedDescribes() === 'none' ? true : null, /* @ts-ignore */
737
737
  ...(ngDevMode ? [{ debugName: "hidden" }] : /* istanbul ignore next */ []));
738
738
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTooltipContent, deps: [], target: i0.ɵɵFactoryTarget.Component });
739
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: SlTooltipContent, isStandalone: true, selector: "[slTooltipContent]", host: { attributes: { "data-part": "content", "data-part-content": "", "role": "tooltip" }, properties: { "attr.id": "tooltip.contentId", "attr.aria-hidden": "hidden()" } }, exportAs: ["slTooltipContent"], ngImport: i0, template: '<ng-content />', isInline: true, styles: ["@layer slotted.components{[data-ui-tooltip]{--_gap: var(--slotted-tooltip-gap, var(--slotted-space-4, .5rem));--_surface: var(--slotted-tooltip-surface, var(--slotted-surface-inverse, #172033));--_text: var(--slotted-tooltip-text, var(--slotted-text-inverse, #f8fafc));--_border-color: transparent;--_border-width: 0;--_radius: var(--slotted-tooltip-radius, var(--slotted-radius-sm, 4px));--_shadow: var(--slotted-tooltip-shadow, var(--slotted-shadow-xs));--_arrow-size: var(--slotted-tooltip-arrow-size, .5rem);--_arrow-tip-radius: var(--slotted-tooltip-arrow-tip-radius, var(--slotted-radius-xs, 2px));--_padding-inline: var(--slotted-control-padding-inline-md, .8125rem);--_padding-block: var(--slotted-control-gap-md, .5rem);--_font-size: var(--slotted-control-font-size-md, .8125rem);--_line-height: var(--slotted-line-height-sm, 1.45);--_measure: var(--slotted-tooltip-measure, 18rem);position:absolute;inset-block-start:0;z-index:calc(var(--slotted-z-index-popover, 1100) + var(--slotted-layer-depth, 0));isolation:isolate;box-sizing:border-box;padding:var(--_gap);inline-size:max-content;max-inline-size:min(var(--_measure),var(--slotted-positioner-available-width, 100vw));pointer-events:none;--_enter-distance: var(--slotted-space-2, .25rem);translate:0 calc(-1 * var(--_enter-distance));transition:translate var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui-tooltip][data-side=top]{translate:0 var(--_enter-distance)}[data-ui-tooltip]:is([data-side=left],[data-side=right]){translate:0 0}[data-ui-tooltip][data-open]{translate:0 0;transition:none}[data-ui-tooltip][data-open][data-positioned]{animation:slotted-tooltip-enter-down var(--slotted-duration-medium) var(--slotted-easing-enter)}[data-ui-tooltip][data-open][data-positioned][data-side=top]{animation-name:slotted-tooltip-enter-up}@keyframes slotted-tooltip-enter-down{0%{translate:0 calc(-1 * var(--_enter-distance))}}@keyframes slotted-tooltip-enter-up{0%{translate:0 var(--_enter-distance)}}@keyframes slotted-tooltip-fade{0%{opacity:0}}[data-ui-tooltip]>[data-part-content],[data-ui-tooltip]>[data-part-arrow]{opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui-tooltip][data-open]>[data-part-content],[data-ui-tooltip][data-open]>[data-part-arrow]{opacity:1;transition:none}[data-ui-tooltip][data-open][data-positioned]>[data-part-content],[data-ui-tooltip][data-open][data-positioned]>[data-part-arrow]{animation:slotted-tooltip-fade var(--slotted-duration-medium) var(--slotted-easing-enter)}@media(prefers-reduced-motion:reduce){[data-ui-tooltip],[data-ui-tooltip][data-side=top],[data-ui-tooltip][data-side=left],[data-ui-tooltip][data-side=right]{translate:0 0;transition:translate var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui-tooltip][data-open][data-positioned],[data-ui-tooltip][data-open][data-positioned][data-side=top],[data-ui-tooltip][data-open][data-positioned][data-side=left],[data-ui-tooltip][data-open][data-positioned][data-side=right]{animation-name:none}}[data-ui-tooltip][data-open][data-hoverable]{pointer-events:auto}[data-ui-tooltip][data-detached]{visibility:hidden}[data-ui-tooltip][data-size=sm]{--_padding-inline: var(--slotted-control-padding-inline-sm, .625rem);--_padding-block: var(--slotted-control-gap-sm, .375rem);--_font-size: var(--slotted-control-font-size-sm, .75rem);--_measure: var(--slotted-tooltip-measure-sm, 14rem)}[data-ui-tooltip][data-variant=surface]{--_surface: var(--slotted-tooltip-surface-raised, var(--slotted-surface-raised, #ffffff));--_text: var(--slotted-tooltip-text-raised, var(--slotted-text, #0f172a));--_border-color: var(--slotted-tooltip-border-color, var(--slotted-border-subtle, #e2e8f0));--_border-width: var(--slotted-border-width-thin, 1px)}[data-ui-tooltip]>[data-part-content]{box-sizing:border-box;display:block;max-inline-size:100%;border:var(--_border-width) solid var(--_border-color);border-radius:var(--_radius);background:var(--_surface);color:var(--_text);box-shadow:var(--_shadow);padding-block:var(--_padding-block);padding-inline:var(--_padding-inline);font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);font-size:var(--_font-size);font-weight:var(--slotted-font-weight-regular, 400);line-height:var(--_line-height);text-align:start;overflow-wrap:anywhere;unicode-bidi:plaintext;-webkit-backdrop-filter:var(--slotted-tooltip-backdrop-filter, none);backdrop-filter:var(--slotted-tooltip-backdrop-filter, none)}@media(prefers-reduced-transparency:reduce),(forced-colors:active){[data-ui-tooltip]>[data-part-content]{-webkit-backdrop-filter:none;backdrop-filter:none}}[data-ui-tooltip]>[data-part-arrow]{position:absolute;z-index:1;inline-size:var(--_arrow-size);block-size:var(--_arrow-size);rotate:45deg;background:var(--_surface);border:0 solid var(--_border-color)}[data-ui-tooltip][data-side=top]>[data-part-arrow]{left:var(--slotted-positioner-arrow-x, 0);top:auto;bottom:calc(var(--_gap) - var(--_arrow-size) / 2);border-right-width:var(--_border-width);border-bottom-width:var(--_border-width);border-bottom-right-radius:var(--_arrow-tip-radius)}[data-ui-tooltip][data-side=bottom]>[data-part-arrow]{left:var(--slotted-positioner-arrow-x, 0);top:calc(var(--_gap) - var(--_arrow-size) / 2);bottom:auto;border-top-width:var(--_border-width);border-left-width:var(--_border-width);border-top-left-radius:var(--_arrow-tip-radius)}[data-ui-tooltip][data-side=left]>[data-part-arrow]{top:var(--slotted-positioner-arrow-y, 0);left:auto;right:calc(var(--_gap) - var(--_arrow-size) / 2);border-top-width:var(--_border-width);border-right-width:var(--_border-width);border-top-right-radius:var(--_arrow-tip-radius)}[data-ui-tooltip][data-side=right]>[data-part-arrow]{top:var(--slotted-positioner-arrow-y, 0);left:calc(var(--_gap) - var(--_arrow-size) / 2);right:auto;border-bottom-width:var(--_border-width);border-left-width:var(--_border-width);border-bottom-left-radius:var(--_arrow-tip-radius)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
739
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: SlTooltipContent, isStandalone: true, selector: "[slTooltipContent]", host: { attributes: { "data-part": "content", "data-part-content": "", "role": "tooltip" }, properties: { "attr.id": "tooltip.contentId", "attr.aria-hidden": "hidden()" } }, exportAs: ["slTooltipContent"], ngImport: i0, template: '<ng-content />', isInline: true, styles: ["@layer slotted.components{[data-ui-tooltip]{--_gap: var(--slotted-tooltip-gap, var(--slotted-space-4, .5rem));--_surface: var(--slotted-tooltip-surface, var(--slotted-surface-inverse, #172033));--_text: var(--slotted-tooltip-text, var(--slotted-text-inverse, #f8fafc));--_border-color: transparent;--_border-width: 0;--_radius: var(--slotted-tooltip-radius, var(--slotted-radius-sm, 4px));--_shadow: var(--slotted-tooltip-shadow, var(--slotted-shadow-xs));--_arrow-size: var(--slotted-tooltip-arrow-size, .5rem);--_arrow-overlap: .5px;--_arrow-tip-radius: var(--slotted-tooltip-arrow-tip-radius, var(--slotted-radius-xs, 2px));--_padding-inline: var(--slotted-control-padding-inline-md, .8125rem);--_padding-block: var(--slotted-control-gap-md, .5rem);--_font-size: var(--slotted-control-font-size-md, .8125rem);--_line-height: var(--slotted-line-height-sm, 1.45);--_measure: var(--slotted-tooltip-measure, 18rem);position:absolute;inset-block-start:0;z-index:calc(var(--slotted-z-index-popover, 1100) + var(--slotted-layer-depth, 0));isolation:isolate;box-sizing:border-box;padding:var(--_gap);inline-size:max-content;max-inline-size:min(var(--_measure),var(--slotted-positioner-available-width, 100vw));pointer-events:none;--_enter-distance: var(--slotted-space-2, .25rem);translate:0 calc(-1 * var(--_enter-distance));transition:translate var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui-tooltip][data-side=top]{translate:0 var(--_enter-distance)}[data-ui-tooltip]:is([data-side=left],[data-side=right]){translate:0 0}[data-ui-tooltip][data-open]{translate:0 0;transition:none}[data-ui-tooltip][data-open][data-positioned]{animation:slotted-tooltip-enter-down var(--slotted-duration-medium) var(--slotted-easing-enter)}[data-ui-tooltip][data-open][data-positioned][data-side=top]{animation-name:slotted-tooltip-enter-up}@keyframes slotted-tooltip-enter-down{0%{translate:0 calc(-1 * var(--_enter-distance))}}@keyframes slotted-tooltip-enter-up{0%{translate:0 var(--_enter-distance)}}@keyframes slotted-tooltip-fade{0%{opacity:0}}[data-ui-tooltip]>[data-part-content],[data-ui-tooltip]>[data-part-arrow]{opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui-tooltip][data-open]>[data-part-content],[data-ui-tooltip][data-open]>[data-part-arrow]{opacity:1;transition:none}[data-ui-tooltip][data-open][data-positioned]>[data-part-content],[data-ui-tooltip][data-open][data-positioned]>[data-part-arrow]{animation:slotted-tooltip-fade var(--slotted-duration-medium) var(--slotted-easing-enter)}@media(prefers-reduced-motion:reduce){[data-ui-tooltip],[data-ui-tooltip][data-side=top],[data-ui-tooltip][data-side=left],[data-ui-tooltip][data-side=right]{translate:0 0;transition:translate var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui-tooltip][data-open][data-positioned],[data-ui-tooltip][data-open][data-positioned][data-side=top],[data-ui-tooltip][data-open][data-positioned][data-side=left],[data-ui-tooltip][data-open][data-positioned][data-side=right]{animation-name:none}}[data-ui-tooltip][data-open][data-hoverable]{pointer-events:auto}[data-ui-tooltip][data-detached]{visibility:hidden}[data-ui-tooltip][data-size=sm]{--_padding-inline: var(--slotted-control-padding-inline-sm, .625rem);--_padding-block: var(--slotted-control-gap-sm, .375rem);--_font-size: var(--slotted-control-font-size-sm, .75rem);--_measure: var(--slotted-tooltip-measure-sm, 14rem)}[data-ui-tooltip][data-variant=surface]{--_surface: var(--slotted-tooltip-surface-raised, var(--slotted-surface-raised, #ffffff));--_text: var(--slotted-tooltip-text-raised, var(--slotted-text, #0f172a));--_border-color: var(--slotted-tooltip-border-color, var(--slotted-border-subtle, #e2e8f0));--_border-width: var(--slotted-border-width-thin, 1px);--_arrow-overlap: calc(var(--_border-width) * 1.5)}[data-ui-tooltip]>[data-part-content]{box-sizing:border-box;display:block;max-inline-size:100%;border:var(--_border-width) solid var(--_border-color);border-radius:var(--_radius);background:var(--_surface);color:var(--_text);box-shadow:var(--_shadow);padding-block:var(--_padding-block);padding-inline:var(--_padding-inline);font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);font-size:var(--_font-size);font-weight:var(--slotted-font-weight-regular, 400);line-height:var(--_line-height);text-align:start;overflow-wrap:anywhere;unicode-bidi:plaintext;-webkit-backdrop-filter:var(--slotted-tooltip-backdrop-filter, none);backdrop-filter:var(--slotted-tooltip-backdrop-filter, none)}@media(prefers-reduced-transparency:reduce),(forced-colors:active){[data-ui-tooltip]>[data-part-content]{-webkit-backdrop-filter:none;backdrop-filter:none}}[data-ui-tooltip]>[data-part-arrow]{position:absolute;z-index:1;inline-size:var(--_arrow-size);block-size:var(--_arrow-size);rotate:45deg;background:var(--_surface);border:0 solid var(--_border-color)}[data-ui-tooltip][data-side=top]>[data-part-arrow]{left:var(--slotted-positioner-arrow-x, 0);top:auto;bottom:calc(var(--_gap) - var(--_arrow-size) / 2);border-right-width:var(--_border-width);border-bottom-width:var(--_border-width);border-bottom-right-radius:var(--_arrow-tip-radius);clip-path:polygon(100% 100%,100% calc(-1 * var(--_arrow-overlap)),calc(-1 * var(--_arrow-overlap)) 100%)}[data-ui-tooltip][data-side=bottom]>[data-part-arrow]{left:var(--slotted-positioner-arrow-x, 0);top:calc(var(--_gap) - var(--_arrow-size) / 2);bottom:auto;border-top-width:var(--_border-width);border-left-width:var(--_border-width);border-top-left-radius:var(--_arrow-tip-radius);clip-path:polygon(0 0,calc(100% + var(--_arrow-overlap)) 0,0 calc(100% + var(--_arrow-overlap)))}[data-ui-tooltip][data-side=left]>[data-part-arrow]{top:var(--slotted-positioner-arrow-y, 0);left:auto;right:calc(var(--_gap) - var(--_arrow-size) / 2);border-top-width:var(--_border-width);border-right-width:var(--_border-width);border-top-right-radius:var(--_arrow-tip-radius);clip-path:polygon(100% 0,100% calc(100% + var(--_arrow-overlap)),calc(-1 * var(--_arrow-overlap)) 0)}[data-ui-tooltip][data-side=right]>[data-part-arrow]{top:var(--slotted-positioner-arrow-y, 0);left:calc(var(--_gap) - var(--_arrow-size) / 2);right:auto;border-bottom-width:var(--_border-width);border-left-width:var(--_border-width);border-bottom-left-radius:var(--_arrow-tip-radius);clip-path:polygon(0 100%,0 calc(-1 * var(--_arrow-overlap)),calc(100% + var(--_arrow-overlap)) 100%)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
740
740
  }
741
741
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlTooltipContent, decorators: [{
742
742
  type: Component,
@@ -746,7 +746,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
746
746
  role: 'tooltip',
747
747
  '[attr.id]': 'tooltip.contentId',
748
748
  '[attr.aria-hidden]': 'hidden()',
749
- }, styles: ["@layer slotted.components{[data-ui-tooltip]{--_gap: var(--slotted-tooltip-gap, var(--slotted-space-4, .5rem));--_surface: var(--slotted-tooltip-surface, var(--slotted-surface-inverse, #172033));--_text: var(--slotted-tooltip-text, var(--slotted-text-inverse, #f8fafc));--_border-color: transparent;--_border-width: 0;--_radius: var(--slotted-tooltip-radius, var(--slotted-radius-sm, 4px));--_shadow: var(--slotted-tooltip-shadow, var(--slotted-shadow-xs));--_arrow-size: var(--slotted-tooltip-arrow-size, .5rem);--_arrow-tip-radius: var(--slotted-tooltip-arrow-tip-radius, var(--slotted-radius-xs, 2px));--_padding-inline: var(--slotted-control-padding-inline-md, .8125rem);--_padding-block: var(--slotted-control-gap-md, .5rem);--_font-size: var(--slotted-control-font-size-md, .8125rem);--_line-height: var(--slotted-line-height-sm, 1.45);--_measure: var(--slotted-tooltip-measure, 18rem);position:absolute;inset-block-start:0;z-index:calc(var(--slotted-z-index-popover, 1100) + var(--slotted-layer-depth, 0));isolation:isolate;box-sizing:border-box;padding:var(--_gap);inline-size:max-content;max-inline-size:min(var(--_measure),var(--slotted-positioner-available-width, 100vw));pointer-events:none;--_enter-distance: var(--slotted-space-2, .25rem);translate:0 calc(-1 * var(--_enter-distance));transition:translate var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui-tooltip][data-side=top]{translate:0 var(--_enter-distance)}[data-ui-tooltip]:is([data-side=left],[data-side=right]){translate:0 0}[data-ui-tooltip][data-open]{translate:0 0;transition:none}[data-ui-tooltip][data-open][data-positioned]{animation:slotted-tooltip-enter-down var(--slotted-duration-medium) var(--slotted-easing-enter)}[data-ui-tooltip][data-open][data-positioned][data-side=top]{animation-name:slotted-tooltip-enter-up}@keyframes slotted-tooltip-enter-down{0%{translate:0 calc(-1 * var(--_enter-distance))}}@keyframes slotted-tooltip-enter-up{0%{translate:0 var(--_enter-distance)}}@keyframes slotted-tooltip-fade{0%{opacity:0}}[data-ui-tooltip]>[data-part-content],[data-ui-tooltip]>[data-part-arrow]{opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui-tooltip][data-open]>[data-part-content],[data-ui-tooltip][data-open]>[data-part-arrow]{opacity:1;transition:none}[data-ui-tooltip][data-open][data-positioned]>[data-part-content],[data-ui-tooltip][data-open][data-positioned]>[data-part-arrow]{animation:slotted-tooltip-fade var(--slotted-duration-medium) var(--slotted-easing-enter)}@media(prefers-reduced-motion:reduce){[data-ui-tooltip],[data-ui-tooltip][data-side=top],[data-ui-tooltip][data-side=left],[data-ui-tooltip][data-side=right]{translate:0 0;transition:translate var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui-tooltip][data-open][data-positioned],[data-ui-tooltip][data-open][data-positioned][data-side=top],[data-ui-tooltip][data-open][data-positioned][data-side=left],[data-ui-tooltip][data-open][data-positioned][data-side=right]{animation-name:none}}[data-ui-tooltip][data-open][data-hoverable]{pointer-events:auto}[data-ui-tooltip][data-detached]{visibility:hidden}[data-ui-tooltip][data-size=sm]{--_padding-inline: var(--slotted-control-padding-inline-sm, .625rem);--_padding-block: var(--slotted-control-gap-sm, .375rem);--_font-size: var(--slotted-control-font-size-sm, .75rem);--_measure: var(--slotted-tooltip-measure-sm, 14rem)}[data-ui-tooltip][data-variant=surface]{--_surface: var(--slotted-tooltip-surface-raised, var(--slotted-surface-raised, #ffffff));--_text: var(--slotted-tooltip-text-raised, var(--slotted-text, #0f172a));--_border-color: var(--slotted-tooltip-border-color, var(--slotted-border-subtle, #e2e8f0));--_border-width: var(--slotted-border-width-thin, 1px)}[data-ui-tooltip]>[data-part-content]{box-sizing:border-box;display:block;max-inline-size:100%;border:var(--_border-width) solid var(--_border-color);border-radius:var(--_radius);background:var(--_surface);color:var(--_text);box-shadow:var(--_shadow);padding-block:var(--_padding-block);padding-inline:var(--_padding-inline);font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);font-size:var(--_font-size);font-weight:var(--slotted-font-weight-regular, 400);line-height:var(--_line-height);text-align:start;overflow-wrap:anywhere;unicode-bidi:plaintext;-webkit-backdrop-filter:var(--slotted-tooltip-backdrop-filter, none);backdrop-filter:var(--slotted-tooltip-backdrop-filter, none)}@media(prefers-reduced-transparency:reduce),(forced-colors:active){[data-ui-tooltip]>[data-part-content]{-webkit-backdrop-filter:none;backdrop-filter:none}}[data-ui-tooltip]>[data-part-arrow]{position:absolute;z-index:1;inline-size:var(--_arrow-size);block-size:var(--_arrow-size);rotate:45deg;background:var(--_surface);border:0 solid var(--_border-color)}[data-ui-tooltip][data-side=top]>[data-part-arrow]{left:var(--slotted-positioner-arrow-x, 0);top:auto;bottom:calc(var(--_gap) - var(--_arrow-size) / 2);border-right-width:var(--_border-width);border-bottom-width:var(--_border-width);border-bottom-right-radius:var(--_arrow-tip-radius)}[data-ui-tooltip][data-side=bottom]>[data-part-arrow]{left:var(--slotted-positioner-arrow-x, 0);top:calc(var(--_gap) - var(--_arrow-size) / 2);bottom:auto;border-top-width:var(--_border-width);border-left-width:var(--_border-width);border-top-left-radius:var(--_arrow-tip-radius)}[data-ui-tooltip][data-side=left]>[data-part-arrow]{top:var(--slotted-positioner-arrow-y, 0);left:auto;right:calc(var(--_gap) - var(--_arrow-size) / 2);border-top-width:var(--_border-width);border-right-width:var(--_border-width);border-top-right-radius:var(--_arrow-tip-radius)}[data-ui-tooltip][data-side=right]>[data-part-arrow]{top:var(--slotted-positioner-arrow-y, 0);left:calc(var(--_gap) - var(--_arrow-size) / 2);right:auto;border-bottom-width:var(--_border-width);border-left-width:var(--_border-width);border-bottom-left-radius:var(--_arrow-tip-radius)}}\n"] }]
749
+ }, styles: ["@layer slotted.components{[data-ui-tooltip]{--_gap: var(--slotted-tooltip-gap, var(--slotted-space-4, .5rem));--_surface: var(--slotted-tooltip-surface, var(--slotted-surface-inverse, #172033));--_text: var(--slotted-tooltip-text, var(--slotted-text-inverse, #f8fafc));--_border-color: transparent;--_border-width: 0;--_radius: var(--slotted-tooltip-radius, var(--slotted-radius-sm, 4px));--_shadow: var(--slotted-tooltip-shadow, var(--slotted-shadow-xs));--_arrow-size: var(--slotted-tooltip-arrow-size, .5rem);--_arrow-overlap: .5px;--_arrow-tip-radius: var(--slotted-tooltip-arrow-tip-radius, var(--slotted-radius-xs, 2px));--_padding-inline: var(--slotted-control-padding-inline-md, .8125rem);--_padding-block: var(--slotted-control-gap-md, .5rem);--_font-size: var(--slotted-control-font-size-md, .8125rem);--_line-height: var(--slotted-line-height-sm, 1.45);--_measure: var(--slotted-tooltip-measure, 18rem);position:absolute;inset-block-start:0;z-index:calc(var(--slotted-z-index-popover, 1100) + var(--slotted-layer-depth, 0));isolation:isolate;box-sizing:border-box;padding:var(--_gap);inline-size:max-content;max-inline-size:min(var(--_measure),var(--slotted-positioner-available-width, 100vw));pointer-events:none;--_enter-distance: var(--slotted-space-2, .25rem);translate:0 calc(-1 * var(--_enter-distance));transition:translate var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui-tooltip][data-side=top]{translate:0 var(--_enter-distance)}[data-ui-tooltip]:is([data-side=left],[data-side=right]){translate:0 0}[data-ui-tooltip][data-open]{translate:0 0;transition:none}[data-ui-tooltip][data-open][data-positioned]{animation:slotted-tooltip-enter-down var(--slotted-duration-medium) var(--slotted-easing-enter)}[data-ui-tooltip][data-open][data-positioned][data-side=top]{animation-name:slotted-tooltip-enter-up}@keyframes slotted-tooltip-enter-down{0%{translate:0 calc(-1 * var(--_enter-distance))}}@keyframes slotted-tooltip-enter-up{0%{translate:0 var(--_enter-distance)}}@keyframes slotted-tooltip-fade{0%{opacity:0}}[data-ui-tooltip]>[data-part-content],[data-ui-tooltip]>[data-part-arrow]{opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui-tooltip][data-open]>[data-part-content],[data-ui-tooltip][data-open]>[data-part-arrow]{opacity:1;transition:none}[data-ui-tooltip][data-open][data-positioned]>[data-part-content],[data-ui-tooltip][data-open][data-positioned]>[data-part-arrow]{animation:slotted-tooltip-fade var(--slotted-duration-medium) var(--slotted-easing-enter)}@media(prefers-reduced-motion:reduce){[data-ui-tooltip],[data-ui-tooltip][data-side=top],[data-ui-tooltip][data-side=left],[data-ui-tooltip][data-side=right]{translate:0 0;transition:translate var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui-tooltip][data-open][data-positioned],[data-ui-tooltip][data-open][data-positioned][data-side=top],[data-ui-tooltip][data-open][data-positioned][data-side=left],[data-ui-tooltip][data-open][data-positioned][data-side=right]{animation-name:none}}[data-ui-tooltip][data-open][data-hoverable]{pointer-events:auto}[data-ui-tooltip][data-detached]{visibility:hidden}[data-ui-tooltip][data-size=sm]{--_padding-inline: var(--slotted-control-padding-inline-sm, .625rem);--_padding-block: var(--slotted-control-gap-sm, .375rem);--_font-size: var(--slotted-control-font-size-sm, .75rem);--_measure: var(--slotted-tooltip-measure-sm, 14rem)}[data-ui-tooltip][data-variant=surface]{--_surface: var(--slotted-tooltip-surface-raised, var(--slotted-surface-raised, #ffffff));--_text: var(--slotted-tooltip-text-raised, var(--slotted-text, #0f172a));--_border-color: var(--slotted-tooltip-border-color, var(--slotted-border-subtle, #e2e8f0));--_border-width: var(--slotted-border-width-thin, 1px);--_arrow-overlap: calc(var(--_border-width) * 1.5)}[data-ui-tooltip]>[data-part-content]{box-sizing:border-box;display:block;max-inline-size:100%;border:var(--_border-width) solid var(--_border-color);border-radius:var(--_radius);background:var(--_surface);color:var(--_text);box-shadow:var(--_shadow);padding-block:var(--_padding-block);padding-inline:var(--_padding-inline);font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);font-size:var(--_font-size);font-weight:var(--slotted-font-weight-regular, 400);line-height:var(--_line-height);text-align:start;overflow-wrap:anywhere;unicode-bidi:plaintext;-webkit-backdrop-filter:var(--slotted-tooltip-backdrop-filter, none);backdrop-filter:var(--slotted-tooltip-backdrop-filter, none)}@media(prefers-reduced-transparency:reduce),(forced-colors:active){[data-ui-tooltip]>[data-part-content]{-webkit-backdrop-filter:none;backdrop-filter:none}}[data-ui-tooltip]>[data-part-arrow]{position:absolute;z-index:1;inline-size:var(--_arrow-size);block-size:var(--_arrow-size);rotate:45deg;background:var(--_surface);border:0 solid var(--_border-color)}[data-ui-tooltip][data-side=top]>[data-part-arrow]{left:var(--slotted-positioner-arrow-x, 0);top:auto;bottom:calc(var(--_gap) - var(--_arrow-size) / 2);border-right-width:var(--_border-width);border-bottom-width:var(--_border-width);border-bottom-right-radius:var(--_arrow-tip-radius);clip-path:polygon(100% 100%,100% calc(-1 * var(--_arrow-overlap)),calc(-1 * var(--_arrow-overlap)) 100%)}[data-ui-tooltip][data-side=bottom]>[data-part-arrow]{left:var(--slotted-positioner-arrow-x, 0);top:calc(var(--_gap) - var(--_arrow-size) / 2);bottom:auto;border-top-width:var(--_border-width);border-left-width:var(--_border-width);border-top-left-radius:var(--_arrow-tip-radius);clip-path:polygon(0 0,calc(100% + var(--_arrow-overlap)) 0,0 calc(100% + var(--_arrow-overlap)))}[data-ui-tooltip][data-side=left]>[data-part-arrow]{top:var(--slotted-positioner-arrow-y, 0);left:auto;right:calc(var(--_gap) - var(--_arrow-size) / 2);border-top-width:var(--_border-width);border-right-width:var(--_border-width);border-top-right-radius:var(--_arrow-tip-radius);clip-path:polygon(100% 0,100% calc(100% + var(--_arrow-overlap)),calc(-1 * var(--_arrow-overlap)) 0)}[data-ui-tooltip][data-side=right]>[data-part-arrow]{top:var(--slotted-positioner-arrow-y, 0);left:calc(var(--_gap) - var(--_arrow-size) / 2);right:auto;border-bottom-width:var(--_border-width);border-left-width:var(--_border-width);border-bottom-left-radius:var(--_arrow-tip-radius);clip-path:polygon(0 100%,0 calc(-1 * var(--_arrow-overlap)),calc(100% + var(--_arrow-overlap)) 100%)}}\n"] }]
750
750
  }] });
751
751
  /**
752
752
  * The mark that points at the anchor. The family draws it; the positioner
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-tooltip.mjs","sources":["../../tooltip/src/tooltip-defaults.ts","../../tooltip/src/tooltip.ts","../../tooltip/src/tooltip-parts.ts","../../tooltip/src/slotted-angular-tooltip.ts"],"sourcesContent":["import { setPortalContainer } from '@slotted/core/portal';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport type { Provider } from '@angular/core';\n\n/**\n * How the hint is painted. `inverse` is a surface opposite to the page, which\n * separates itself in every scheme without an edge; `surface` is the raised\n * panel with a hairline, for a page that is already dark.\n */\nexport type TooltipVariant = 'inverse' | 'surface';\n\n/** The type step the hint is set at. Both move with density. */\nexport type TooltipSize = 'sm' | 'md';\n\n/**\n * What the tooltip is to its trigger. `description` writes `aria-describedby`;\n * `label` writes `aria-labelledby` instead, which is the icon-only button whose\n * only words are the tooltip's — described by it and named by nothing, that\n * button is announced as \"button\".\n *\n * `none` writes neither and hides the content from the reader: the hint that\n * repeats words the trigger already carries is read twice under either\n * reference.\n */\nexport type TooltipDescribes = 'description' | 'label' | 'none';\n\n/** What opens it. `hover` also opens on keyboard focus, and instantly. */\nexport type TooltipOpenOn = 'hover' | 'focus' | 'manual';\n\n/** The edge of the anchor the layer prefers. The two logical values mirror. */\nexport type TooltipSide = 'top' | 'bottom' | 'inline-start' | 'inline-end' | 'left' | 'right';\n\n/** Where the layer sits along the side it took. */\nexport type TooltipAlign = 'start' | 'center' | 'end';\n\n/** When the layer exists. `describes=\"label\"` forces `eager`. */\nexport type TooltipMount = 'active' | 'lazy' | 'eager';\n\n/** `fixed` for a layer inside `overflow: hidden`, `absolute` for one inside a transform. */\nexport type TooltipStrategy = 'absolute' | 'fixed';\n\n/**\n * What `openChangeRequest` carries: the value asked for, the previous one, the\n * reason, the originating event and `cancel()`. The name React's binding gives\n * the same request.\n */\nexport type TooltipChangeRequest = ChangeRequest<boolean>;\n\n/** Why the hint opened or closed. */\nexport type TooltipOpenReason = Extract<\n ChangeRequest<boolean>['reason'],\n 'pointer' | 'keyboard' | 'escape' | 'blur' | 'programmatic'\n>;\n\n/** What an application sets once for every tooltip under it. */\nexport interface TooltipDefaults {\n align: TooltipAlign;\n alignOffset: number;\n arrow: boolean;\n arrowPadding: number;\n closeDelay: number;\n closeOnPress: boolean;\n collisionPadding: number;\n describes: TooltipDescribes;\n flip: boolean;\n groupDelay: number;\n hideWhenDetached: boolean;\n hoverable: boolean;\n mount: TooltipMount;\n openDelay: number;\n openOn: TooltipOpenOn;\n portal: boolean;\n shift: boolean;\n side: TooltipSide;\n sideOffset: number;\n size: TooltipSize;\n strategy: TooltipStrategy;\n touchDelay: number;\n variant: TooltipVariant;\n /** Opens only while the trigger's own content is cut by its box. */\n whenClipped: boolean;\n}\n\n/**\n * The numbers, and why they are these numbers.\n *\n * `openDelay` is long enough that a pointer crossing a toolbar opens nothing\n * and short enough that a deliberate hover is answered; `closeDelay` is the\n * window the pointer has to travel onto the layer, and zero makes a hoverable\n * tooltip unreachable; `groupDelay` is what stops a row of icon buttons\n * charging the warmup once per button.\n */\nexport const TOOLTIP_FALLBACK: TooltipDefaults = {\n align: 'center',\n alignOffset: 0,\n arrow: true,\n arrowPadding: 8,\n closeDelay: 150,\n closeOnPress: true,\n collisionPadding: 8,\n describes: 'description',\n flip: true,\n groupDelay: 400,\n hideWhenDetached: true,\n hoverable: true,\n mount: 'active',\n openDelay: 600,\n openOn: 'hover',\n portal: true,\n shift: true,\n side: 'top',\n sideOffset: 0,\n size: 'md',\n strategy: 'absolute',\n touchDelay: 500,\n variant: 'inverse',\n whenClipped: false,\n};\n\nexport const TOOLTIP_DEFAULTS = new InjectionToken<TooltipDefaults>('slotted tooltip defaults', {\n providedIn: 'root',\n factory: () => TOOLTIP_FALLBACK,\n});\n\n/**\n * When the last tooltip in this injector closed. A tooltip asked to open inside\n * `groupDelay` of that moment opens in the same task, so reading a row of icon\n * buttons pays the warmup once. It is held per injector rather than per\n * tooltip, because a value held per tooltip could not say what \"the next one\"\n * means.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlTooltipGroup {\n lastClosedAt = 0;\n}\n\n/**\n * An application decides once how its tooltips behave and look. A tooltip that\n * states any of them itself still wins.\n *\n * What is stated here is written over the defaults already in force rather than\n * over the fallback, which is what React's provider does and what a family that\n * sets two axes for itself needs: a column header asking for `describes=\"none\"`\n * would otherwise hand the application's own delays back to the fallback.\n *\n * The group is provided beside the defaults, so a component that sets its own\n * defaults also gets its own warmup window — the same scoping React's provider\n * gives.\n */\nexport function provideTooltipDefaults(defaults: Partial<TooltipDefaults>): Provider[] {\n return [\n {\n provide: TOOLTIP_DEFAULTS,\n useFactory: (): TooltipDefaults => ({\n ...(inject(TOOLTIP_DEFAULTS, { optional: true, skipSelf: true }) ?? TOOLTIP_FALLBACK),\n ...defaults,\n }),\n },\n SlTooltipGroup,\n ];\n}\n\n/** What a tooltip renders as here, before it states anything of its own. */\nexport function injectTooltipDefaults(): TooltipDefaults {\n return inject(TOOLTIP_DEFAULTS);\n}\n\n/**\n * Whether `provideSlottedPortalContainer` named a container in this injector.\n * A factory runs only when something injects its token, so `slTooltipLayer`\n * injects this one before it builds a layer.\n */\nexport const SLOTTED_PORTAL_CONTAINER = new InjectionToken<boolean>('slotted portal container');\n\n/**\n * Where every layer is rendered, for the whole application. It calls\n * `setPortalContainer` from `@slotted/core/portal`, which is per document, so\n * an application shell that builds its own stacking context names it once.\n */\nexport function provideSlottedPortalContainer(container: () => Element | null): Provider {\n return {\n provide: SLOTTED_PORTAL_CONTAINER,\n useFactory: () => {\n setPortalContainer(container());\n return true;\n },\n };\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `field` records:\n * a module-level counter produces colliding sequences when two applications\n * render in one server process, and the server and the client sequences have to\n * match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlTooltipIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-tooltip-${this.count}`;\n }\n}\n","import { isClipped } from '@slotted/core/overflow';\nimport { createControllable } from '@slotted/core/state';\nimport {\n booleanAttribute,\n computed,\n DestroyRef,\n Directive,\n effect,\n inject,\n input,\n model,\n numberAttribute,\n output,\n type OnInit,\n signal,\n untracked,\n} from '@angular/core';\n\nimport { injectTooltipDefaults, SlTooltipGroup, SlTooltipIdFactory } from './tooltip-defaults';\nimport type {\n TooltipAlign,\n TooltipChangeRequest,\n TooltipDescribes,\n TooltipMount,\n TooltipOpenOn,\n TooltipOpenReason,\n TooltipSide,\n TooltipSize,\n TooltipStrategy,\n TooltipVariant,\n} from './tooltip-defaults';\n\nexport type {\n TooltipAlign,\n TooltipChangeRequest,\n TooltipDefaults,\n TooltipDescribes,\n TooltipMount,\n TooltipOpenOn,\n TooltipOpenReason,\n TooltipSide,\n TooltipSize,\n TooltipStrategy,\n TooltipVariant,\n} from './tooltip-defaults';\n\n/** Unstated stays unstated, so a tooltip defers to the provider rather than to `false`. */\nconst optionalBoolean = (state: boolean | string | undefined) =>\n state === undefined ? undefined : booleanAttribute(state);\n\n/** Unstated stays unstated, for the same reason, on a number. */\nconst optionalNumber = (value: number | string | undefined) =>\n value === undefined ? undefined : numberAttribute(value);\n\n/**\n * A short, non-interactive sentence about the element under the pointer or\n * under focus.\n *\n * It is written on an `ng-container`, because it renders nothing: the trigger\n * stays where the consumer wrote it and the layer is portalled to the end of\n * the document, so no one element could hold both. What it holds is the state,\n * the delays, and the values every part reads.\n *\n * The layer never takes focus and never holds a control. The APG's tooltip\n * pattern says so, and names the non-modal dialog for the other case, which is\n * `slPopover`.\n */\n@Directive({\n selector: '[slTooltip]',\n standalone: true,\n exportAs: 'slTooltip',\n})\nexport class SlTooltip implements OnInit {\n /** Whether the hint is showing. Two-way, so a template may bind it directly. */\n readonly open = model<boolean>(false);\n /** The state an uncontrolled tooltip starts in, read once in `ngOnInit`. */\n readonly defaultOpen = input(false, { transform: booleanAttribute });\n /** The tooltip never opens. The trigger's own `disabled` is the consumer's. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /**\n * Opens only while the trigger's own content is cut by its box — a column\n * header narrowed to `Op…`, a breadcrumb in a rail. The measurement is taken\n * at the moment the hint would open, so a column dragged wider stops opening\n * one without anything being told.\n */\n readonly whenClipped = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n\n readonly variant = input<TooltipVariant | undefined>(undefined);\n readonly size = input<TooltipSize | undefined>(undefined);\n readonly describes = input<TooltipDescribes | undefined>(undefined);\n readonly openOn = input<TooltipOpenOn | undefined>(undefined);\n readonly side = input<TooltipSide | undefined>(undefined);\n readonly align = input<TooltipAlign | undefined>(undefined);\n readonly mount = input<TooltipMount | undefined>(undefined);\n readonly strategy = input<TooltipStrategy | undefined>(undefined);\n\n readonly arrow = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly hoverable = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly closeOnPress = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly flip = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly shift = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly hideWhenDetached = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly portal = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n\n readonly openDelay = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly closeDelay = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly touchDelay = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly sideOffset = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly alignOffset = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly collisionPadding = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly arrowPadding = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n\n /** One output for one transition, carrying the reason and the event. */\n readonly openChangeRequest = output<TooltipChangeRequest>();\n\n private readonly defaults = injectTooltipDefaults();\n private readonly group = inject(SlTooltipGroup);\n private readonly destroyRef = inject(DestroyRef);\n\n readonly contentId = `${inject(SlTooltipIdFactory).next()}-content`;\n\n /** The elements the parts register, which the layer measures and listens to. */\n readonly triggerNode = signal<HTMLElement | null>(null);\n readonly arrowNode = signal<HTMLElement | null>(null);\n\n readonly isOpen = computed(() => this.open() && !this.disabled());\n\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedDescribes = computed(() => this.describes() ?? this.defaults.describes);\n readonly resolvedWhenClipped = computed(() => this.whenClipped() ?? this.defaults.whenClipped);\n readonly resolvedOpenOn = computed(() => this.openOn() ?? this.defaults.openOn);\n readonly resolvedSide = computed(() => this.side() ?? this.defaults.side);\n readonly resolvedAlign = computed(() => this.align() ?? this.defaults.align);\n readonly resolvedStrategy = computed(() => this.strategy() ?? this.defaults.strategy);\n readonly resolvedArrow = computed(() => (this.arrow() ?? this.defaults.arrow) === true);\n readonly resolvedHoverable = computed(\n () => (this.hoverable() ?? this.defaults.hoverable) === true,\n );\n readonly resolvedCloseOnPress = computed(\n () => (this.closeOnPress() ?? this.defaults.closeOnPress) === true,\n );\n readonly resolvedFlip = computed(() => (this.flip() ?? this.defaults.flip) === true);\n readonly resolvedShift = computed(() => (this.shift() ?? this.defaults.shift) === true);\n readonly resolvedHideWhenDetached = computed(\n () => (this.hideWhenDetached() ?? this.defaults.hideWhenDetached) === true,\n );\n readonly resolvedPortal = computed(() => (this.portal() ?? this.defaults.portal) === true);\n readonly resolvedSideOffset = computed(() => this.sideOffset() ?? this.defaults.sideOffset);\n readonly resolvedAlignOffset = computed(() => this.alignOffset() ?? this.defaults.alignOffset);\n readonly resolvedCollisionPadding = computed(\n () => this.collisionPadding() ?? this.defaults.collisionPadding,\n );\n readonly resolvedArrowPadding = computed(() => this.arrowPadding() ?? this.defaults.arrowPadding);\n\n /**\n * Under `label` the layer is the trigger's accessible name, so it has to be\n * in the document before it is ever opened. Forcing the axis is deliberate:\n * the alternative is a button silently announced as \"button\".\n */\n readonly resolvedMount = computed<TooltipMount>(() =>\n this.resolvedDescribes() === 'label' ? 'eager' : (this.mount() ?? this.defaults.mount),\n );\n\n private readonly everOpened = signal(false);\n readonly seen = computed(() => this.everOpened() || this.isOpen());\n\n /**\n * One timer for the whole family. An open waiting on `openDelay`, a close\n * waiting on `closeDelay` and a long press waiting on `touchDelay` are never\n * pending at once — each cancels the others.\n */\n private timer: ReturnType<typeof setTimeout> | undefined;\n\n constructor() {\n this.destroyRef.onDestroy(() => this.cancelPending());\n /** Disabling cancels a waiting open and drops an open one, so enabling opens nothing. */\n effect(() => {\n if (!this.disabled()) return;\n untracked(() => {\n this.cancelPending();\n if (this.open()) this.open.set(false);\n });\n });\n }\n\n /**\n * Read here rather than in the constructor, because inputs are not set yet\n * there, and once: a later change to it is not new state.\n */\n ngOnInit() {\n if (this.defaultOpen() && !this.open()) this.open.set(true);\n }\n\n cancelPending() {\n if (this.timer !== undefined) clearTimeout(this.timer);\n this.timer = undefined;\n }\n\n /** Opens after `openDelay`, or in the same task inside the group window. */\n openAfterDelay(source?: Event) {\n this.cancelPending();\n const delay = this.openDelay() ?? this.defaults.openDelay;\n const sinceLast = Date.now() - this.group.lastClosedAt;\n if (delay <= 0 || sinceLast < this.defaults.groupDelay) {\n this.toggle(true, 'pointer', source);\n return;\n }\n this.timer = setTimeout(() => this.toggle(true, 'pointer', source), delay);\n }\n\n /** Closes after `closeDelay`, which is the window the pointer has to reach the layer. */\n closeAfterDelay(source?: Event) {\n this.cancelPending();\n const delay = this.closeDelay() ?? this.defaults.closeDelay;\n if (delay <= 0) {\n this.toggle(false, 'pointer', source);\n return;\n }\n this.timer = setTimeout(() => this.toggle(false, 'pointer', source), delay);\n }\n\n /** A coarse pointer has no hover, so a press held still opens the hint. */\n pressAndHold(source?: Event) {\n this.cancelPending();\n const delay = this.touchDelay() ?? this.defaults.touchDelay;\n this.timer = setTimeout(() => this.toggle(true, 'pointer', source), delay);\n }\n\n /** Opens now, ignoring every delay. One of the two imperative actions. */\n show() {\n this.toggle(true, 'programmatic');\n }\n\n /** Closes now. */\n hide() {\n this.toggle(false, 'programmatic');\n }\n\n toggle(next: boolean, reason: TooltipOpenReason, source?: Event) {\n this.cancelPending();\n if (next === this.isOpen()) return;\n /**\n * Refused rather than recorded: an open granted while disabled is hidden by\n * `isOpen`, and the leave that follows finds nothing to close, so it would\n * surface the moment `disabled` turned false.\n */\n if (next && this.disabled()) return;\n /**\n * Measured here rather than watched: the answer is needed at the moment the\n * hint would open, and a box measured then is never a box two column drags\n * old.\n */\n const trigger = this.triggerNode();\n if (next && this.resolvedWhenClipped() && trigger !== null && !isClipped(trigger)) return;\n\n let cancelled = false;\n const state = createControllable<boolean>({\n initial: this.isOpen(),\n onRequest: (request) => {\n this.openChangeRequest.emit(request);\n cancelled = request.cancelled;\n },\n });\n const moved = state.request(next, reason, source);\n if (cancelled) return;\n\n if (next) this.everOpened.set(true);\n /**\n * The window the next tooltip opens instantly inside starts when this one\n * closes, so a reader crossing a toolbar pays one warmup.\n */\n if (!next) this.group.lastClosedAt = Date.now();\n if (moved) this.open.set(next);\n }\n}\n","import { writeSelectorKey } from '@slotted/core/selector-key';\nimport { createDismissableLayer } from '@slotted/core/dismissable-layer';\nimport type { DismissableLayerHandle } from '@slotted/core/dismissable-layer';\nimport { createPortalRoot } from '@slotted/core/portal';\nimport type { PortalRootHandle } from '@slotted/core/portal';\nimport { createPositioner } from '@slotted/core/positioner';\nimport type { PositionerHandle } from '@slotted/core/positioner';\nimport { createPresence } from '@slotted/core/presence';\nimport type { PresenceStatus } from '@slotted/core/presence';\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n PLATFORM_ID,\n signal,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport type { EmbeddedViewRef } from '@angular/core';\n\nimport { SlTooltip } from './tooltip';\nimport { SLOTTED_PORTAL_CONTAINER } from './tooltip-defaults';\n\n/**\n * The element the hint is about.\n *\n * The directive goes on the consumer's own control, which is what this\n * ecosystem composes with. It writes the ARIA relationship and `data-open` and\n * **no `data-part`**: `data-part` names a part of the family that owns the\n * element, and sixteen stylesheets in this repository key on\n * `[data-part='root']`, so claiming a `slBadge` or a `slCheckbox` used as a\n * trigger would unstyle it and nothing would report it.\n *\n * A control the page disabled with the native attribute fires no pointer events\n * at all, so the one explanation of why it is disabled would be unreachable.\n * The reference page shows the two shapes that work: `aria-disabled` on a\n * control that stays focusable, or a wrapping element carrying the trigger.\n */\n@Directive({\n selector: '[slTooltipTrigger]',\n standalone: true,\n exportAs: 'slTooltipTrigger',\n host: {\n '[attr.aria-describedby]': 'describedBy()',\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.data-open]': \"tooltip.isOpen() ? '' : null\",\n '(pointerenter)': 'onPointerEnter($event)',\n '(pointerleave)': 'onPointerLeave($event)',\n '(pointerdown)': 'onPointerDown($event)',\n '(pointerup)': 'onPointerRelease()',\n '(pointercancel)': 'onPointerRelease()',\n '(focus)': 'onFocus($event)',\n '(blur)': 'onBlur($event)',\n '(click)': 'onClick($event)',\n },\n})\nexport class SlTooltipTrigger {\n protected readonly tooltip = inject(SlTooltip);\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n private holding = false;\n\n /**\n * Named by the layer under `label`, described by it otherwise. Under `none`\n * the trigger references nothing: it already says the words.\n */\n private readonly names = computed(\n () =>\n this.tooltip.resolvedDescribes() !== 'none' &&\n (this.tooltip.isOpen() || this.tooltip.resolvedDescribes() === 'label'),\n );\n protected readonly describedBy = computed(() =>\n this.names() && this.tooltip.resolvedDescribes() === 'description'\n ? this.tooltip.contentId\n : null,\n );\n protected readonly labelledBy = computed(() =>\n this.names() && this.tooltip.resolvedDescribes() === 'label' ? this.tooltip.contentId : null,\n );\n\n constructor() {\n this.tooltip.triggerNode.set(this.native);\n inject(DestroyRef).onDestroy(() => this.tooltip.triggerNode.set(null));\n }\n\n protected onPointerEnter(event: PointerEvent) {\n if (this.tooltip.resolvedOpenOn() !== 'hover' || event.pointerType === 'touch') return;\n this.tooltip.openAfterDelay(event);\n }\n\n protected onPointerLeave(event: PointerEvent) {\n this.holding = false;\n if (this.tooltip.resolvedOpenOn() === 'manual') return;\n this.tooltip.closeAfterDelay(event);\n }\n\n protected onPointerDown(event: PointerEvent) {\n if (event.pointerType === 'touch') {\n this.holding = true;\n this.tooltip.pressAndHold(event);\n return;\n }\n if (this.tooltip.resolvedCloseOnPress() && this.tooltip.isOpen()) {\n this.tooltip.toggle(false, 'pointer', event);\n }\n }\n\n protected onPointerRelease() {\n if (!this.holding) return;\n this.holding = false;\n this.tooltip.cancelPending();\n }\n\n /**\n * `:focus-visible` rather than every focus. A pointer press focuses a button\n * too, and a tooltip opened by it would arrive before the delay it was given\n * and stay after the press that was meant to dismiss it.\n */\n protected onFocus(event: FocusEvent) {\n if (this.tooltip.resolvedOpenOn() === 'manual') return;\n if (!this.native.matches(':focus-visible')) return;\n this.tooltip.toggle(true, 'keyboard', event);\n }\n\n protected onBlur(event: FocusEvent) {\n if (this.tooltip.resolvedOpenOn() === 'manual') return;\n this.tooltip.toggle(false, 'blur', event);\n }\n\n /**\n * A click synthesised by the keyboard reports no detail; a real one reports\n * the click count. It is how `Enter` and `Space` are told from a press\n * without a key listener existing for either.\n */\n protected onClick(event: MouseEvent) {\n if (!this.tooltip.resolvedCloseOnPress() || !this.tooltip.isOpen()) return;\n this.tooltip.toggle(false, event.detail === 0 ? 'keyboard' : 'pointer', event);\n }\n}\n\n/**\n * The positioned layer, built from a template rather than from an element.\n *\n * `mount=\"active\"` means the layer exists only while it is open, and a\n * component cannot remove its own host element — so the consumer writes an\n * `ng-template` and this directive builds the layer around the stamped view.\n * It is the shape `ng-template[slCollapsibleContent]` already uses here, and\n * Angular Material's `matExpansionPanelContent` before it.\n *\n * The element it builds is what `packages/core/src/positioner` writes\n * `position`, `left` and `top` onto, and the one that scales and fades; its\n * padding is the gap the pointer crosses onto a hoverable tooltip.\n */\n@Directive({\n selector: 'ng-template[slTooltipLayer]',\n standalone: true,\n exportAs: 'slTooltipLayer',\n})\nexport class SlTooltipLayer {\n private readonly tooltip = inject(SlTooltip);\n private readonly template = inject(TemplateRef<unknown>);\n private readonly viewContainer = inject(ViewContainerRef);\n private readonly comment: Comment = this.viewContainer.element.nativeElement;\n /**\n * Angular's server document is not the page. There the layer stays where the\n * template wrote it, as React's server markup has it, and nothing measures,\n * stacks or moves it into a portal.\n */\n private readonly browser = isPlatformBrowser(inject(PLATFORM_ID));\n /** Where the arrow stood in the layer while `arrow` is false. */\n private arrowPlace: Comment | null = null;\n\n /**\n * A signal rather than a field, and the reason is a defect the first spec run\n * found: the effects that place, stack and paint the layer all read it, and\n * with a plain field none of them re-ran when `build()` filled it in a later\n * flush. The layer existed and carried no attribute the stylesheet reads.\n */\n private readonly layerNode = signal<HTMLElement | null>(null);\n private view: EmbeddedViewRef<unknown> | null = null;\n private portal: PortalRootHandle | null = null;\n private positioner: PositionerHandle | null = null;\n private dismissable: DismissableLayerHandle | null = null;\n private releaseBridge: (() => void) | null = null;\n\n private readonly status = signal<PresenceStatus>('unmounted');\n private readonly positioned = signal(false);\n private readonly presence = createPresence({\n present: false,\n onStatusChange: (next) => this.status.set(next),\n });\n\n /**\n * `active` drops the layer after the exit, `lazy` keeps it once it has been\n * open, `eager` never removes it — which is what `describes=\"label\"` forces,\n * because an accessible name has to exist before it is read.\n */\n readonly mounted = computed(() => {\n const mount = this.tooltip.resolvedMount();\n if (mount === 'eager') return true;\n if (mount === 'lazy') return this.tooltip.seen();\n return this.status() !== 'unmounted';\n });\n\n constructor() {\n /* Injected for its side effect: the factory of\n `provideSlottedPortalContainer` names the document's portal container,\n and runs only when something asks for its token — before the first layer\n asks `createPortalRoot` for a container. */\n inject(SLOTTED_PORTAL_CONTAINER, { optional: true });\n effect(() => this.presence.sync(this.tooltip.isOpen()));\n effect(() => (this.mounted() ? this.build() : this.teardown()));\n effect(() => this.place());\n effect(() => this.stack());\n effect(() => this.paint());\n\n inject(DestroyRef).onDestroy(() => {\n this.presence.destroy();\n this.teardown();\n });\n }\n\n /** Measures and places the layer again. The imperative action of this part. */\n reposition() {\n void this.positioner?.update();\n }\n\n private build() {\n if (this.layerNode() !== null) return;\n\n const document = this.comment.ownerDocument;\n const layer = document.createElement('div');\n writeSelectorKey(layer, 'ui', 'tooltip');\n writeSelectorKey(layer, 'part', 'root');\n\n const view = this.viewContainer.createEmbeddedView(this.template);\n view.detectChanges();\n for (const node of view.rootNodes as Node[]) layer.appendChild(node);\n\n const portal = this.browser\n ? createPortalRoot({\n origin: this.tooltip.triggerNode(),\n disabled: !this.tooltip.resolvedPortal(),\n })\n : null;\n const container = portal?.container ?? this.comment.parentNode;\n if (container === this.comment.parentNode) container?.insertBefore(layer, this.comment);\n else container?.appendChild(layer);\n\n this.view = view;\n this.portal = portal;\n this.releaseBridge = bindHoverBridge(layer, this.tooltip);\n this.presence.setNode(layer);\n this.layerNode.set(layer);\n }\n\n private teardown() {\n this.releaseBridge?.();\n this.releaseBridge = null;\n this.positioner?.destroy();\n this.positioner = null;\n this.dismissable?.destroy();\n this.dismissable = null;\n this.presence.setNode(null);\n this.layerNode()?.remove();\n this.layerNode.set(null);\n this.view?.destroy();\n this.view = null;\n this.portal?.release();\n this.portal = null;\n this.arrowPlace = null;\n this.positioned.set(false);\n }\n\n /** Rebuilt whenever an option it was created with changes. */\n private place() {\n const layer = this.layerNode();\n const anchor = this.tooltip.triggerNode();\n const options = {\n align: this.tooltip.resolvedAlign(),\n alignOffset: this.tooltip.resolvedAlignOffset(),\n boundaryPadding: this.tooltip.resolvedCollisionPadding(),\n flip: this.tooltip.resolvedFlip(),\n hideWhenDetached: this.tooltip.resolvedHideWhenDetached(),\n shift: this.tooltip.resolvedShift(),\n side: this.tooltip.resolvedSide(),\n sideOffset: this.tooltip.resolvedSideOffset(),\n strategy: this.tooltip.resolvedStrategy(),\n };\n const arrow = this.tooltip.resolvedArrow() ? this.tooltip.arrowNode() : null;\n\n this.positioner?.destroy();\n this.positioner = null;\n if (layer === null || anchor === null || !this.browser) return;\n\n this.positioner = createPositioner(anchor, layer, {\n ...options,\n ...(arrow ? { arrow, arrowPadding: this.tooltip.resolvedArrowPadding() } : {}),\n });\n /* `data-open` is written on the element in the task that opened the tip,\n with the position, rather than by the effect on the next check. */\n void this.positioner.update().then(() => {\n if (this.tooltip.isOpen()) layer.setAttribute('data-open', '');\n this.positioned.set(true);\n });\n }\n\n /**\n * The layer joins the single stack only while it is open, so its depth is its\n * real position among the layers a reader has opened. Escape reaches the\n * topmost layer alone; the trigger is a branch, so pressing it is not an\n * outside press and the family closes on it deliberately instead.\n */\n private stack() {\n const layer = this.layerNode();\n const open = this.tooltip.isOpen();\n const trigger = this.tooltip.triggerNode();\n\n this.dismissable?.destroy();\n this.dismissable = null;\n if (layer === null || !open || !this.browser) return;\n\n this.dismissable = createDismissableLayer(layer, {\n escape: true,\n focusOutside: false,\n modal: false,\n outsidePress: true,\n scrollLock: false,\n ...(trigger ? { branches: [trigger] } : {}),\n onDismiss: (request) => {\n this.tooltip.toggle(\n false,\n request.reason === 'escape' ? 'escape' : 'pointer',\n request.source,\n );\n },\n });\n }\n\n /** Every attribute the stylesheet reads, and the two listeners hoverable needs. */\n private paint() {\n const layer = this.layerNode();\n if (layer === null) return;\n\n layer.setAttribute('data-align', this.tooltip.resolvedAlign());\n layer.setAttribute('data-size', this.tooltip.resolvedSize());\n layer.setAttribute('data-variant', this.tooltip.resolvedVariant());\n toggleAttribute(layer, 'data-hoverable', this.tooltip.resolvedHoverable());\n toggleAttribute(layer, 'data-open', this.tooltip.isOpen() && this.positioned());\n this.showArrow(layer);\n }\n\n /**\n * The arrow is the consumer's element inside the template, so under\n * `arrow=\"false\"` the layer takes it out — React's arrow renders nothing\n * then — and puts it back in the same place under `true`.\n */\n private showArrow(layer: HTMLElement) {\n const arrow = this.tooltip.arrowNode();\n if (arrow === null) return;\n if (this.tooltip.resolvedArrow()) {\n this.arrowPlace?.replaceWith(arrow);\n this.arrowPlace = null;\n return;\n }\n if (this.arrowPlace !== null || !layer.contains(arrow)) return;\n this.arrowPlace = layer.ownerDocument.createComment('');\n arrow.replaceWith(this.arrowPlace);\n }\n}\n\nfunction toggleAttribute(element: HTMLElement, name: string, present: boolean) {\n if (present) element.setAttribute(name, '');\n else element.removeAttribute(name);\n}\n\n/**\n * The painted surface, and the element the trigger's ARIA relationship names.\n *\n * It is the one part written as a component, because a component is what can\n * carry `styleUrl`: this is where the family's single authored stylesheet\n * enters an Angular application, exactly as every other family here does it.\n */\n@Component({\n selector: '[slTooltipContent]',\n standalone: true,\n exportAs: 'slTooltipContent',\n template: '<ng-content />',\n styleUrl: '../../../styles/src/tooltip/tooltip.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'content',\n 'data-part-content': '',\n role: 'tooltip',\n '[attr.id]': 'tooltip.contentId',\n '[attr.aria-hidden]': 'hidden()',\n },\n})\nexport class SlTooltipContent {\n protected readonly tooltip = inject(SlTooltip);\n\n /** Hidden from the reader under `none`, which is a hint shown and not read. */\n protected readonly hidden = computed(() =>\n this.tooltip.resolvedDescribes() === 'none' ? true : null,\n );\n}\n\n/**\n * The mark that points at the anchor. The family draws it; the positioner\n * measures it and says where it goes. It is hidden from assistive technology,\n * because it is decoration a reader has no use for.\n */\n@Directive({\n selector: '[slTooltipArrow]',\n standalone: true,\n exportAs: 'slTooltipArrow',\n host: {\n 'data-part': 'arrow',\n 'data-part-arrow': '',\n 'aria-hidden': 'true',\n },\n})\nexport class SlTooltipArrow {\n constructor() {\n const tooltip = inject(SlTooltip);\n const native: HTMLElement = inject(ElementRef).nativeElement;\n tooltip.arrowNode.set(native);\n inject(DestroyRef).onDestroy(() => tooltip.arrowNode.set(null));\n }\n}\n\n/**\n * The layer's own pointer handlers, written on the layer element rather than\n * bound by a directive, because the element is built here rather than by the\n * consumer. Entering the layer cancels the pending close; leaving it starts one\n * again, which is the whole of `hoverable`.\n */\nfunction bindHoverBridge(layer: HTMLElement, tooltip: SlTooltip): () => void {\n const enter = () => {\n if (tooltip.resolvedHoverable()) tooltip.cancelPending();\n };\n const leave = (event: PointerEvent) => {\n if (tooltip.resolvedHoverable()) tooltip.closeAfterDelay(event);\n };\n layer.addEventListener('pointerenter', enter);\n layer.addEventListener('pointerleave', leave);\n return () => {\n layer.removeEventListener('pointerenter', enter);\n layer.removeEventListener('pointerleave', leave);\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAoFA;;;;;;;;AAQG;AACI,MAAM,gBAAgB,GAAoB;AAC/C,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,WAAW,EAAE,CAAC;AACd,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,YAAY,EAAE,CAAC;AACf,IAAA,UAAU,EAAE,GAAG;AACf,IAAA,YAAY,EAAE,IAAI;AAClB,IAAA,gBAAgB,EAAE,CAAC;AACnB,IAAA,SAAS,EAAE,aAAa;AACxB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,UAAU,EAAE,GAAG;AACf,IAAA,gBAAgB,EAAE,IAAI;AACtB,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,SAAS,EAAE,GAAG;AACd,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,UAAU,EAAE,CAAC;AACb,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,UAAU,EAAE,GAAG;AACf,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,WAAW,EAAE,KAAK;;MAGP,gBAAgB,GAAG,IAAI,cAAc,CAAkB,0BAA0B,EA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,CAAC;AACH;;ACzcA;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-tooltip.mjs","sources":["../../tooltip/src/tooltip-defaults.ts","../../tooltip/src/tooltip.ts","../../tooltip/src/tooltip-parts.ts","../../tooltip/src/slotted-angular-tooltip.ts"],"sourcesContent":["import { setPortalContainer } from '@slotted/core/portal';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport type { Provider } from '@angular/core';\n\n/**\n * How the hint is painted. `inverse` is a surface opposite to the page, which\n * separates itself in every scheme without an edge; `surface` is the raised\n * panel with a hairline, for a page that is already dark.\n */\nexport type TooltipVariant = 'inverse' | 'surface';\n\n/** The type step the hint is set at. Both move with density. */\nexport type TooltipSize = 'sm' | 'md';\n\n/**\n * What the tooltip is to its trigger. `description` writes `aria-describedby`;\n * `label` writes `aria-labelledby` instead, which is the icon-only button whose\n * only words are the tooltip's — described by it and named by nothing, that\n * button is announced as \"button\".\n *\n * `none` writes neither and hides the content from the reader: the hint that\n * repeats words the trigger already carries is read twice under either\n * reference.\n */\nexport type TooltipDescribes = 'description' | 'label' | 'none';\n\n/** What opens it. `hover` also opens on keyboard focus, and instantly. */\nexport type TooltipOpenOn = 'hover' | 'focus' | 'manual';\n\n/** The edge of the anchor the layer prefers. The two logical values mirror. */\nexport type TooltipSide = 'top' | 'bottom' | 'inline-start' | 'inline-end' | 'left' | 'right';\n\n/** Where the layer sits along the side it took. */\nexport type TooltipAlign = 'start' | 'center' | 'end';\n\n/** When the layer exists. `describes=\"label\"` forces `eager`. */\nexport type TooltipMount = 'active' | 'lazy' | 'eager';\n\n/** `fixed` for a layer inside `overflow: hidden`, `absolute` for one inside a transform. */\nexport type TooltipStrategy = 'absolute' | 'fixed';\n\n/**\n * What `openChangeRequest` carries: the value asked for, the previous one, the\n * reason, the originating event and `cancel()`. The name React's binding gives\n * the same request.\n */\nexport type TooltipChangeRequest = ChangeRequest<boolean>;\n\n/** Why the hint opened or closed. */\nexport type TooltipOpenReason = Extract<\n ChangeRequest<boolean>['reason'],\n 'pointer' | 'keyboard' | 'escape' | 'blur' | 'programmatic'\n>;\n\n/** What an application sets once for every tooltip under it. */\nexport interface TooltipDefaults {\n align: TooltipAlign;\n alignOffset: number;\n arrow: boolean;\n arrowPadding: number;\n closeDelay: number;\n closeOnPress: boolean;\n collisionPadding: number;\n describes: TooltipDescribes;\n flip: boolean;\n groupDelay: number;\n hideWhenDetached: boolean;\n hoverable: boolean;\n mount: TooltipMount;\n openDelay: number;\n openOn: TooltipOpenOn;\n portal: boolean;\n shift: boolean;\n side: TooltipSide;\n sideOffset: number;\n size: TooltipSize;\n strategy: TooltipStrategy;\n touchDelay: number;\n variant: TooltipVariant;\n /** Opens only while the trigger's own content is cut by its box. */\n whenClipped: boolean;\n}\n\n/**\n * The numbers, and why they are these numbers.\n *\n * `openDelay` is long enough that a pointer crossing a toolbar opens nothing\n * and short enough that a deliberate hover is answered; `closeDelay` is the\n * window the pointer has to travel onto the layer, and zero makes a hoverable\n * tooltip unreachable; `groupDelay` is what stops a row of icon buttons\n * charging the warmup once per button.\n */\nexport const TOOLTIP_FALLBACK: TooltipDefaults = {\n align: 'center',\n alignOffset: 0,\n arrow: true,\n arrowPadding: 8,\n closeDelay: 150,\n closeOnPress: true,\n collisionPadding: 8,\n describes: 'description',\n flip: true,\n groupDelay: 400,\n hideWhenDetached: true,\n hoverable: true,\n mount: 'active',\n openDelay: 600,\n openOn: 'hover',\n portal: true,\n shift: true,\n side: 'top',\n sideOffset: 0,\n size: 'md',\n strategy: 'absolute',\n touchDelay: 500,\n variant: 'inverse',\n whenClipped: false,\n};\n\nexport const TOOLTIP_DEFAULTS = new InjectionToken<TooltipDefaults>('slotted tooltip defaults', {\n providedIn: 'root',\n factory: () => TOOLTIP_FALLBACK,\n});\n\n/**\n * When the last tooltip in this injector closed. A tooltip asked to open inside\n * `groupDelay` of that moment opens in the same task, so reading a row of icon\n * buttons pays the warmup once. It is held per injector rather than per\n * tooltip, because a value held per tooltip could not say what \"the next one\"\n * means.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlTooltipGroup {\n lastClosedAt = 0;\n}\n\n/**\n * An application decides once how its tooltips behave and look. A tooltip that\n * states any of them itself still wins.\n *\n * What is stated here is written over the defaults already in force rather than\n * over the fallback, which is what React's provider does and what a family that\n * sets two axes for itself needs: a column header asking for `describes=\"none\"`\n * would otherwise hand the application's own delays back to the fallback.\n *\n * The group is provided beside the defaults, so a component that sets its own\n * defaults also gets its own warmup window — the same scoping React's provider\n * gives.\n */\nexport function provideTooltipDefaults(defaults: Partial<TooltipDefaults>): Provider[] {\n return [\n {\n provide: TOOLTIP_DEFAULTS,\n useFactory: (): TooltipDefaults => ({\n ...(inject(TOOLTIP_DEFAULTS, { optional: true, skipSelf: true }) ?? TOOLTIP_FALLBACK),\n ...defaults,\n }),\n },\n SlTooltipGroup,\n ];\n}\n\n/** What a tooltip renders as here, before it states anything of its own. */\nexport function injectTooltipDefaults(): TooltipDefaults {\n return inject(TOOLTIP_DEFAULTS);\n}\n\n/**\n * Whether `provideSlottedPortalContainer` named a container in this injector.\n * A factory runs only when something injects its token, so `slTooltipLayer`\n * injects this one before it builds a layer.\n */\nexport const SLOTTED_PORTAL_CONTAINER = new InjectionToken<boolean>('slotted portal container');\n\n/**\n * Where every layer is rendered, for the whole application. It calls\n * `setPortalContainer` from `@slotted/core/portal`, which is per document, so\n * an application shell that builds its own stacking context names it once.\n */\nexport function provideSlottedPortalContainer(container: () => Element | null): Provider {\n return {\n provide: SLOTTED_PORTAL_CONTAINER,\n useFactory: () => {\n setPortalContainer(container());\n return true;\n },\n };\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `field` records:\n * a module-level counter produces colliding sequences when two applications\n * render in one server process, and the server and the client sequences have to\n * match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlTooltipIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-tooltip-${this.count}`;\n }\n}\n","import { isClipped } from '@slotted/core/overflow';\nimport { createControllable } from '@slotted/core/state';\nimport {\n booleanAttribute,\n computed,\n DestroyRef,\n Directive,\n effect,\n inject,\n input,\n model,\n numberAttribute,\n output,\n type OnInit,\n signal,\n untracked,\n} from '@angular/core';\n\nimport { injectTooltipDefaults, SlTooltipGroup, SlTooltipIdFactory } from './tooltip-defaults';\nimport type {\n TooltipAlign,\n TooltipChangeRequest,\n TooltipDescribes,\n TooltipMount,\n TooltipOpenOn,\n TooltipOpenReason,\n TooltipSide,\n TooltipSize,\n TooltipStrategy,\n TooltipVariant,\n} from './tooltip-defaults';\n\nexport type {\n TooltipAlign,\n TooltipChangeRequest,\n TooltipDefaults,\n TooltipDescribes,\n TooltipMount,\n TooltipOpenOn,\n TooltipOpenReason,\n TooltipSide,\n TooltipSize,\n TooltipStrategy,\n TooltipVariant,\n} from './tooltip-defaults';\n\n/** Unstated stays unstated, so a tooltip defers to the provider rather than to `false`. */\nconst optionalBoolean = (state: boolean | string | undefined) =>\n state === undefined ? undefined : booleanAttribute(state);\n\n/** Unstated stays unstated, for the same reason, on a number. */\nconst optionalNumber = (value: number | string | undefined) =>\n value === undefined ? undefined : numberAttribute(value);\n\n/**\n * A short, non-interactive sentence about the element under the pointer or\n * under focus.\n *\n * It is written on an `ng-container`, because it renders nothing: the trigger\n * stays where the consumer wrote it and the layer is portalled to the end of\n * the document, so no one element could hold both. What it holds is the state,\n * the delays, and the values every part reads.\n *\n * The layer never takes focus and never holds a control. The APG's tooltip\n * pattern says so, and names the non-modal dialog for the other case, which is\n * `slPopover`.\n */\n@Directive({\n selector: '[slTooltip]',\n standalone: true,\n exportAs: 'slTooltip',\n})\nexport class SlTooltip implements OnInit {\n /** Whether the hint is showing. Two-way, so a template may bind it directly. */\n readonly open = model<boolean>(false);\n /** The state an uncontrolled tooltip starts in, read once in `ngOnInit`. */\n readonly defaultOpen = input(false, { transform: booleanAttribute });\n /** The tooltip never opens. The trigger's own `disabled` is the consumer's. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /**\n * Opens only while the trigger's own content is cut by its box — a column\n * header narrowed to `Op…`, a breadcrumb in a rail. The measurement is taken\n * at the moment the hint would open, so a column dragged wider stops opening\n * one without anything being told.\n */\n readonly whenClipped = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n\n readonly variant = input<TooltipVariant | undefined>(undefined);\n readonly size = input<TooltipSize | undefined>(undefined);\n readonly describes = input<TooltipDescribes | undefined>(undefined);\n readonly openOn = input<TooltipOpenOn | undefined>(undefined);\n readonly side = input<TooltipSide | undefined>(undefined);\n readonly align = input<TooltipAlign | undefined>(undefined);\n readonly mount = input<TooltipMount | undefined>(undefined);\n readonly strategy = input<TooltipStrategy | undefined>(undefined);\n\n readonly arrow = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly hoverable = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly closeOnPress = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly flip = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly shift = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly hideWhenDetached = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n readonly portal = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: optionalBoolean,\n });\n\n readonly openDelay = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly closeDelay = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly touchDelay = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly sideOffset = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly alignOffset = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly collisionPadding = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n readonly arrowPadding = input<number | undefined, number | string | undefined>(undefined, {\n transform: optionalNumber,\n });\n\n /** One output for one transition, carrying the reason and the event. */\n readonly openChangeRequest = output<TooltipChangeRequest>();\n\n private readonly defaults = injectTooltipDefaults();\n private readonly group = inject(SlTooltipGroup);\n private readonly destroyRef = inject(DestroyRef);\n\n readonly contentId = `${inject(SlTooltipIdFactory).next()}-content`;\n\n /** The elements the parts register, which the layer measures and listens to. */\n readonly triggerNode = signal<HTMLElement | null>(null);\n readonly arrowNode = signal<HTMLElement | null>(null);\n\n readonly isOpen = computed(() => this.open() && !this.disabled());\n\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedDescribes = computed(() => this.describes() ?? this.defaults.describes);\n readonly resolvedWhenClipped = computed(() => this.whenClipped() ?? this.defaults.whenClipped);\n readonly resolvedOpenOn = computed(() => this.openOn() ?? this.defaults.openOn);\n readonly resolvedSide = computed(() => this.side() ?? this.defaults.side);\n readonly resolvedAlign = computed(() => this.align() ?? this.defaults.align);\n readonly resolvedStrategy = computed(() => this.strategy() ?? this.defaults.strategy);\n readonly resolvedArrow = computed(() => (this.arrow() ?? this.defaults.arrow) === true);\n readonly resolvedHoverable = computed(\n () => (this.hoverable() ?? this.defaults.hoverable) === true,\n );\n readonly resolvedCloseOnPress = computed(\n () => (this.closeOnPress() ?? this.defaults.closeOnPress) === true,\n );\n readonly resolvedFlip = computed(() => (this.flip() ?? this.defaults.flip) === true);\n readonly resolvedShift = computed(() => (this.shift() ?? this.defaults.shift) === true);\n readonly resolvedHideWhenDetached = computed(\n () => (this.hideWhenDetached() ?? this.defaults.hideWhenDetached) === true,\n );\n readonly resolvedPortal = computed(() => (this.portal() ?? this.defaults.portal) === true);\n readonly resolvedSideOffset = computed(() => this.sideOffset() ?? this.defaults.sideOffset);\n readonly resolvedAlignOffset = computed(() => this.alignOffset() ?? this.defaults.alignOffset);\n readonly resolvedCollisionPadding = computed(\n () => this.collisionPadding() ?? this.defaults.collisionPadding,\n );\n readonly resolvedArrowPadding = computed(() => this.arrowPadding() ?? this.defaults.arrowPadding);\n\n /**\n * Under `label` the layer is the trigger's accessible name, so it has to be\n * in the document before it is ever opened. Forcing the axis is deliberate:\n * the alternative is a button silently announced as \"button\".\n */\n readonly resolvedMount = computed<TooltipMount>(() =>\n this.resolvedDescribes() === 'label' ? 'eager' : (this.mount() ?? this.defaults.mount),\n );\n\n private readonly everOpened = signal(false);\n readonly seen = computed(() => this.everOpened() || this.isOpen());\n\n /**\n * One timer for the whole family. An open waiting on `openDelay`, a close\n * waiting on `closeDelay` and a long press waiting on `touchDelay` are never\n * pending at once — each cancels the others.\n */\n private timer: ReturnType<typeof setTimeout> | undefined;\n\n constructor() {\n this.destroyRef.onDestroy(() => this.cancelPending());\n /** Disabling cancels a waiting open and drops an open one, so enabling opens nothing. */\n effect(() => {\n if (!this.disabled()) return;\n untracked(() => {\n this.cancelPending();\n if (this.open()) this.open.set(false);\n });\n });\n }\n\n /**\n * Read here rather than in the constructor, because inputs are not set yet\n * there, and once: a later change to it is not new state.\n */\n ngOnInit() {\n if (this.defaultOpen() && !this.open()) this.open.set(true);\n }\n\n cancelPending() {\n if (this.timer !== undefined) clearTimeout(this.timer);\n this.timer = undefined;\n }\n\n /** Opens after `openDelay`, or in the same task inside the group window. */\n openAfterDelay(source?: Event) {\n this.cancelPending();\n const delay = this.openDelay() ?? this.defaults.openDelay;\n const sinceLast = Date.now() - this.group.lastClosedAt;\n if (delay <= 0 || sinceLast < this.defaults.groupDelay) {\n this.toggle(true, 'pointer', source);\n return;\n }\n this.timer = setTimeout(() => this.toggle(true, 'pointer', source), delay);\n }\n\n /** Closes after `closeDelay`, which is the window the pointer has to reach the layer. */\n closeAfterDelay(source?: Event) {\n this.cancelPending();\n const delay = this.closeDelay() ?? this.defaults.closeDelay;\n if (delay <= 0) {\n this.toggle(false, 'pointer', source);\n return;\n }\n this.timer = setTimeout(() => this.toggle(false, 'pointer', source), delay);\n }\n\n /** A coarse pointer has no hover, so a press held still opens the hint. */\n pressAndHold(source?: Event) {\n this.cancelPending();\n const delay = this.touchDelay() ?? this.defaults.touchDelay;\n this.timer = setTimeout(() => this.toggle(true, 'pointer', source), delay);\n }\n\n /** Opens now, ignoring every delay. One of the two imperative actions. */\n show() {\n this.toggle(true, 'programmatic');\n }\n\n /** Closes now. */\n hide() {\n this.toggle(false, 'programmatic');\n }\n\n toggle(next: boolean, reason: TooltipOpenReason, source?: Event) {\n this.cancelPending();\n if (next === this.isOpen()) return;\n /**\n * Refused rather than recorded: an open granted while disabled is hidden by\n * `isOpen`, and the leave that follows finds nothing to close, so it would\n * surface the moment `disabled` turned false.\n */\n if (next && this.disabled()) return;\n /**\n * Measured here rather than watched: the answer is needed at the moment the\n * hint would open, and a box measured then is never a box two column drags\n * old.\n */\n const trigger = this.triggerNode();\n if (next && this.resolvedWhenClipped() && trigger !== null && !isClipped(trigger)) return;\n\n let cancelled = false;\n const state = createControllable<boolean>({\n initial: this.isOpen(),\n onRequest: (request) => {\n this.openChangeRequest.emit(request);\n cancelled = request.cancelled;\n },\n });\n const moved = state.request(next, reason, source);\n if (cancelled) return;\n\n if (next) this.everOpened.set(true);\n /**\n * The window the next tooltip opens instantly inside starts when this one\n * closes, so a reader crossing a toolbar pays one warmup.\n */\n if (!next) this.group.lastClosedAt = Date.now();\n if (moved) this.open.set(next);\n }\n}\n","import { writeSelectorKey } from '@slotted/core/selector-key';\nimport { createDismissableLayer } from '@slotted/core/dismissable-layer';\nimport type { DismissableLayerHandle } from '@slotted/core/dismissable-layer';\nimport { createPortalRoot } from '@slotted/core/portal';\nimport type { PortalRootHandle } from '@slotted/core/portal';\nimport { createPositioner } from '@slotted/core/positioner';\nimport type { PositionerHandle } from '@slotted/core/positioner';\nimport { createPresence } from '@slotted/core/presence';\nimport type { PresenceStatus } from '@slotted/core/presence';\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n PLATFORM_ID,\n signal,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport type { EmbeddedViewRef } from '@angular/core';\n\nimport { SlTooltip } from './tooltip';\nimport { SLOTTED_PORTAL_CONTAINER } from './tooltip-defaults';\n\n/**\n * The element the hint is about.\n *\n * The directive goes on the consumer's own control, which is what this\n * ecosystem composes with. It writes the ARIA relationship and `data-open` and\n * **no `data-part`**: `data-part` names a part of the family that owns the\n * element, and sixteen stylesheets in this repository key on\n * `[data-part='root']`, so claiming a `slBadge` or a `slCheckbox` used as a\n * trigger would unstyle it and nothing would report it.\n *\n * A control the page disabled with the native attribute fires no pointer events\n * at all, so the one explanation of why it is disabled would be unreachable.\n * The reference page shows the two shapes that work: `aria-disabled` on a\n * control that stays focusable, or a wrapping element carrying the trigger.\n */\n@Directive({\n selector: '[slTooltipTrigger]',\n standalone: true,\n exportAs: 'slTooltipTrigger',\n host: {\n '[attr.aria-describedby]': 'describedBy()',\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.data-open]': \"tooltip.isOpen() ? '' : null\",\n '(pointerenter)': 'onPointerEnter($event)',\n '(pointerleave)': 'onPointerLeave($event)',\n '(pointerdown)': 'onPointerDown($event)',\n '(pointerup)': 'onPointerRelease()',\n '(pointercancel)': 'onPointerRelease()',\n '(focus)': 'onFocus($event)',\n '(blur)': 'onBlur($event)',\n '(click)': 'onClick($event)',\n },\n})\nexport class SlTooltipTrigger {\n protected readonly tooltip = inject(SlTooltip);\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n private holding = false;\n\n /**\n * Named by the layer under `label`, described by it otherwise. Under `none`\n * the trigger references nothing: it already says the words.\n */\n private readonly names = computed(\n () =>\n this.tooltip.resolvedDescribes() !== 'none' &&\n (this.tooltip.isOpen() || this.tooltip.resolvedDescribes() === 'label'),\n );\n protected readonly describedBy = computed(() =>\n this.names() && this.tooltip.resolvedDescribes() === 'description'\n ? this.tooltip.contentId\n : null,\n );\n protected readonly labelledBy = computed(() =>\n this.names() && this.tooltip.resolvedDescribes() === 'label' ? this.tooltip.contentId : null,\n );\n\n constructor() {\n this.tooltip.triggerNode.set(this.native);\n inject(DestroyRef).onDestroy(() => this.tooltip.triggerNode.set(null));\n }\n\n protected onPointerEnter(event: PointerEvent) {\n if (this.tooltip.resolvedOpenOn() !== 'hover' || event.pointerType === 'touch') return;\n this.tooltip.openAfterDelay(event);\n }\n\n protected onPointerLeave(event: PointerEvent) {\n this.holding = false;\n if (this.tooltip.resolvedOpenOn() === 'manual') return;\n this.tooltip.closeAfterDelay(event);\n }\n\n protected onPointerDown(event: PointerEvent) {\n if (event.pointerType === 'touch') {\n this.holding = true;\n this.tooltip.pressAndHold(event);\n return;\n }\n if (this.tooltip.resolvedCloseOnPress() && this.tooltip.isOpen()) {\n this.tooltip.toggle(false, 'pointer', event);\n }\n }\n\n protected onPointerRelease() {\n if (!this.holding) return;\n this.holding = false;\n this.tooltip.cancelPending();\n }\n\n /**\n * `:focus-visible` rather than every focus. A pointer press focuses a button\n * too, and a tooltip opened by it would arrive before the delay it was given\n * and stay after the press that was meant to dismiss it.\n */\n protected onFocus(event: FocusEvent) {\n if (this.tooltip.resolvedOpenOn() === 'manual') return;\n if (!this.native.matches(':focus-visible')) return;\n this.tooltip.toggle(true, 'keyboard', event);\n }\n\n protected onBlur(event: FocusEvent) {\n if (this.tooltip.resolvedOpenOn() === 'manual') return;\n this.tooltip.toggle(false, 'blur', event);\n }\n\n /**\n * A click synthesised by the keyboard reports no detail; a real one reports\n * the click count. It is how `Enter` and `Space` are told from a press\n * without a key listener existing for either.\n */\n protected onClick(event: MouseEvent) {\n if (!this.tooltip.resolvedCloseOnPress() || !this.tooltip.isOpen()) return;\n this.tooltip.toggle(false, event.detail === 0 ? 'keyboard' : 'pointer', event);\n }\n}\n\n/**\n * The positioned layer, built from a template rather than from an element.\n *\n * `mount=\"active\"` means the layer exists only while it is open, and a\n * component cannot remove its own host element — so the consumer writes an\n * `ng-template` and this directive builds the layer around the stamped view.\n * It is the shape `ng-template[slCollapsibleContent]` already uses here, and\n * Angular Material's `matExpansionPanelContent` before it.\n *\n * The element it builds is what `packages/core/src/positioner` writes\n * `position`, `left` and `top` onto, and the one that scales and fades; its\n * padding is the gap the pointer crosses onto a hoverable tooltip.\n */\n@Directive({\n selector: 'ng-template[slTooltipLayer]',\n standalone: true,\n exportAs: 'slTooltipLayer',\n})\nexport class SlTooltipLayer {\n private readonly tooltip = inject(SlTooltip);\n private readonly template = inject(TemplateRef<unknown>);\n private readonly viewContainer = inject(ViewContainerRef);\n private readonly comment: Comment = this.viewContainer.element.nativeElement;\n /**\n * Angular's server document is not the page. There the layer stays where the\n * template wrote it, as React's server markup has it, and nothing measures,\n * stacks or moves it into a portal.\n */\n private readonly browser = isPlatformBrowser(inject(PLATFORM_ID));\n /** Where the arrow stood in the layer while `arrow` is false. */\n private arrowPlace: Comment | null = null;\n\n /**\n * A signal rather than a field, and the reason is a defect the first spec run\n * found: the effects that place, stack and paint the layer all read it, and\n * with a plain field none of them re-ran when `build()` filled it in a later\n * flush. The layer existed and carried no attribute the stylesheet reads.\n */\n private readonly layerNode = signal<HTMLElement | null>(null);\n private view: EmbeddedViewRef<unknown> | null = null;\n private portal: PortalRootHandle | null = null;\n private positioner: PositionerHandle | null = null;\n private dismissable: DismissableLayerHandle | null = null;\n private releaseBridge: (() => void) | null = null;\n\n private readonly status = signal<PresenceStatus>('unmounted');\n private readonly positioned = signal(false);\n private readonly presence = createPresence({\n present: false,\n onStatusChange: (next) => this.status.set(next),\n });\n\n /**\n * `active` drops the layer after the exit, `lazy` keeps it once it has been\n * open, `eager` never removes it — which is what `describes=\"label\"` forces,\n * because an accessible name has to exist before it is read.\n */\n readonly mounted = computed(() => {\n const mount = this.tooltip.resolvedMount();\n if (mount === 'eager') return true;\n if (mount === 'lazy') return this.tooltip.seen();\n return this.status() !== 'unmounted';\n });\n\n constructor() {\n /* Injected for its side effect: the factory of\n `provideSlottedPortalContainer` names the document's portal container,\n and runs only when something asks for its token — before the first layer\n asks `createPortalRoot` for a container. */\n inject(SLOTTED_PORTAL_CONTAINER, { optional: true });\n effect(() => this.presence.sync(this.tooltip.isOpen()));\n effect(() => (this.mounted() ? this.build() : this.teardown()));\n effect(() => this.place());\n effect(() => this.stack());\n effect(() => this.paint());\n\n inject(DestroyRef).onDestroy(() => {\n this.presence.destroy();\n this.teardown();\n });\n }\n\n /** Measures and places the layer again. The imperative action of this part. */\n reposition() {\n void this.positioner?.update();\n }\n\n private build() {\n if (this.layerNode() !== null) return;\n\n const document = this.comment.ownerDocument;\n const layer = document.createElement('div');\n writeSelectorKey(layer, 'ui', 'tooltip');\n writeSelectorKey(layer, 'part', 'root');\n\n const view = this.viewContainer.createEmbeddedView(this.template);\n view.detectChanges();\n for (const node of view.rootNodes as Node[]) layer.appendChild(node);\n\n const portal = this.browser\n ? createPortalRoot({\n origin: this.tooltip.triggerNode(),\n disabled: !this.tooltip.resolvedPortal(),\n })\n : null;\n const container = portal?.container ?? this.comment.parentNode;\n if (container === this.comment.parentNode) container?.insertBefore(layer, this.comment);\n else container?.appendChild(layer);\n\n this.view = view;\n this.portal = portal;\n this.releaseBridge = bindHoverBridge(layer, this.tooltip);\n this.presence.setNode(layer);\n this.layerNode.set(layer);\n }\n\n private teardown() {\n this.releaseBridge?.();\n this.releaseBridge = null;\n this.positioner?.destroy();\n this.positioner = null;\n this.dismissable?.destroy();\n this.dismissable = null;\n this.presence.setNode(null);\n this.layerNode()?.remove();\n this.layerNode.set(null);\n this.view?.destroy();\n this.view = null;\n this.portal?.release();\n this.portal = null;\n this.arrowPlace = null;\n this.positioned.set(false);\n }\n\n /** Rebuilt whenever an option it was created with changes. */\n private place() {\n const layer = this.layerNode();\n const anchor = this.tooltip.triggerNode();\n const options = {\n align: this.tooltip.resolvedAlign(),\n alignOffset: this.tooltip.resolvedAlignOffset(),\n boundaryPadding: this.tooltip.resolvedCollisionPadding(),\n flip: this.tooltip.resolvedFlip(),\n hideWhenDetached: this.tooltip.resolvedHideWhenDetached(),\n shift: this.tooltip.resolvedShift(),\n side: this.tooltip.resolvedSide(),\n sideOffset: this.tooltip.resolvedSideOffset(),\n strategy: this.tooltip.resolvedStrategy(),\n };\n const arrow = this.tooltip.resolvedArrow() ? this.tooltip.arrowNode() : null;\n\n this.positioner?.destroy();\n this.positioner = null;\n if (layer === null || anchor === null || !this.browser) return;\n\n this.positioner = createPositioner(anchor, layer, {\n ...options,\n ...(arrow ? { arrow, arrowPadding: this.tooltip.resolvedArrowPadding() } : {}),\n });\n /* `data-open` is written on the element in the task that opened the tip,\n with the position, rather than by the effect on the next check. */\n void this.positioner.update().then(() => {\n if (this.tooltip.isOpen()) layer.setAttribute('data-open', '');\n this.positioned.set(true);\n });\n }\n\n /**\n * The layer joins the single stack only while it is open, so its depth is its\n * real position among the layers a reader has opened. Escape reaches the\n * topmost layer alone; the trigger is a branch, so pressing it is not an\n * outside press and the family closes on it deliberately instead.\n */\n private stack() {\n const layer = this.layerNode();\n const open = this.tooltip.isOpen();\n const trigger = this.tooltip.triggerNode();\n\n this.dismissable?.destroy();\n this.dismissable = null;\n if (layer === null || !open || !this.browser) return;\n\n this.dismissable = createDismissableLayer(layer, {\n escape: true,\n focusOutside: false,\n modal: false,\n outsidePress: true,\n scrollLock: false,\n ...(trigger ? { branches: [trigger] } : {}),\n onDismiss: (request) => {\n this.tooltip.toggle(\n false,\n request.reason === 'escape' ? 'escape' : 'pointer',\n request.source,\n );\n },\n });\n }\n\n /** Every attribute the stylesheet reads, and the two listeners hoverable needs. */\n private paint() {\n const layer = this.layerNode();\n if (layer === null) return;\n\n layer.setAttribute('data-align', this.tooltip.resolvedAlign());\n layer.setAttribute('data-size', this.tooltip.resolvedSize());\n layer.setAttribute('data-variant', this.tooltip.resolvedVariant());\n toggleAttribute(layer, 'data-hoverable', this.tooltip.resolvedHoverable());\n toggleAttribute(layer, 'data-open', this.tooltip.isOpen() && this.positioned());\n this.showArrow(layer);\n }\n\n /**\n * The arrow is the consumer's element inside the template, so under\n * `arrow=\"false\"` the layer takes it out — React's arrow renders nothing\n * then — and puts it back in the same place under `true`.\n */\n private showArrow(layer: HTMLElement) {\n const arrow = this.tooltip.arrowNode();\n if (arrow === null) return;\n if (this.tooltip.resolvedArrow()) {\n this.arrowPlace?.replaceWith(arrow);\n this.arrowPlace = null;\n return;\n }\n if (this.arrowPlace !== null || !layer.contains(arrow)) return;\n this.arrowPlace = layer.ownerDocument.createComment('');\n arrow.replaceWith(this.arrowPlace);\n }\n}\n\nfunction toggleAttribute(element: HTMLElement, name: string, present: boolean) {\n if (present) element.setAttribute(name, '');\n else element.removeAttribute(name);\n}\n\n/**\n * The painted surface, and the element the trigger's ARIA relationship names.\n *\n * It is the one part written as a component, because a component is what can\n * carry `styleUrl`: this is where the family's single authored stylesheet\n * enters an Angular application, exactly as every other family here does it.\n */\n@Component({\n selector: '[slTooltipContent]',\n standalone: true,\n exportAs: 'slTooltipContent',\n template: '<ng-content />',\n styleUrl: '../../../styles/src/tooltip/tooltip.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'content',\n 'data-part-content': '',\n role: 'tooltip',\n '[attr.id]': 'tooltip.contentId',\n '[attr.aria-hidden]': 'hidden()',\n },\n})\nexport class SlTooltipContent {\n protected readonly tooltip = inject(SlTooltip);\n\n /** Hidden from the reader under `none`, which is a hint shown and not read. */\n protected readonly hidden = computed(() =>\n this.tooltip.resolvedDescribes() === 'none' ? true : null,\n );\n}\n\n/**\n * The mark that points at the anchor. The family draws it; the positioner\n * measures it and says where it goes. It is hidden from assistive technology,\n * because it is decoration a reader has no use for.\n */\n@Directive({\n selector: '[slTooltipArrow]',\n standalone: true,\n exportAs: 'slTooltipArrow',\n host: {\n 'data-part': 'arrow',\n 'data-part-arrow': '',\n 'aria-hidden': 'true',\n },\n})\nexport class SlTooltipArrow {\n constructor() {\n const tooltip = inject(SlTooltip);\n const native: HTMLElement = inject(ElementRef).nativeElement;\n tooltip.arrowNode.set(native);\n inject(DestroyRef).onDestroy(() => tooltip.arrowNode.set(null));\n }\n}\n\n/**\n * The layer's own pointer handlers, written on the layer element rather than\n * bound by a directive, because the element is built here rather than by the\n * consumer. Entering the layer cancels the pending close; leaving it starts one\n * again, which is the whole of `hoverable`.\n */\nfunction bindHoverBridge(layer: HTMLElement, tooltip: SlTooltip): () => void {\n const enter = () => {\n if (tooltip.resolvedHoverable()) tooltip.cancelPending();\n };\n const leave = (event: PointerEvent) => {\n if (tooltip.resolvedHoverable()) tooltip.closeAfterDelay(event);\n };\n layer.addEventListener('pointerenter', enter);\n layer.addEventListener('pointerleave', leave);\n return () => {\n layer.removeEventListener('pointerenter', enter);\n layer.removeEventListener('pointerleave', leave);\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAoFA;;;;;;;;AAQG;AACI,MAAM,gBAAgB,GAAoB;AAC/C,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,WAAW,EAAE,CAAC;AACd,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,YAAY,EAAE,CAAC;AACf,IAAA,UAAU,EAAE,GAAG;AACf,IAAA,YAAY,EAAE,IAAI;AAClB,IAAA,gBAAgB,EAAE,CAAC;AACnB,IAAA,SAAS,EAAE,aAAa;AACxB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,UAAU,EAAE,GAAG;AACf,IAAA,gBAAgB,EAAE,IAAI;AACtB,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,SAAS,EAAE,GAAG;AACd,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,UAAU,EAAE,CAAC;AACb,IAAA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