spell-ui 0.8.9 → 0.8.11

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 (1168) hide show
  1. package/README-components.md +9 -3
  2. package/README-frameworks.md +5 -5
  3. package/README-migrating.md +2 -2
  4. package/README.md +5 -5
  5. package/dist/{CodeEngine-GL9EzwF1.js → CodeEngine-B684vKxR.js} +39 -100
  6. package/dist/{CodeEngine-GL9EzwF1.js.map → CodeEngine-B684vKxR.js.map} +1 -1
  7. package/dist/{Dragging-CMZoLEWQ.js → Dragging-B93hbRxF.js} +17 -15
  8. package/dist/Dragging-B93hbRxF.js.map +1 -0
  9. package/dist/{MarkdownEngine-CW1WGqNp.js → MarkdownEngine-D1jqcFeU.js} +11 -72
  10. package/dist/{MarkdownEngine-CW1WGqNp.js.map → MarkdownEngine-D1jqcFeU.js.map} +1 -1
  11. package/dist/MarkdownSanitizer-CqsWivYJ.js +866 -0
  12. package/dist/MarkdownSanitizer-CqsWivYJ.js.map +1 -0
  13. package/dist/{PrefStore-Qv0e5y04.js → PrefStore-Di83C0bY.js} +13 -9
  14. package/dist/PrefStore-Di83C0bY.js.map +1 -0
  15. package/dist/ScrollingRow-DkOtx2QK.js +89 -0
  16. package/dist/ScrollingRow-DkOtx2QK.js.map +1 -0
  17. package/dist/{SitePages-CciwREek.js → SitePages-B3zd5Zgu.js} +37 -10
  18. package/dist/SitePages-B3zd5Zgu.js.map +1 -0
  19. package/dist/SlottedItems-DWfAZYqM.js +88 -0
  20. package/dist/SlottedItems-DWfAZYqM.js.map +1 -0
  21. package/dist/{TemporalPolyfill-D9mr7_wA.js → TemporalPolyfill-Bv_c_xa0.js} +7 -12
  22. package/dist/{TemporalPolyfill-D9mr7_wA.js.map → TemporalPolyfill-Bv_c_xa0.js.map} +1 -1
  23. package/dist/{ThemeDraft-B7NPif4d.js → ThemeDraft-CyX3YA_L.js} +41 -43
  24. package/dist/{ThemeDraft-B7NPif4d.js.map → ThemeDraft-CyX3YA_L.js.map} +1 -1
  25. package/dist/{TreeMeasure-BVJeGb1L.js → TreeMeasure-BK74uexu.js} +3 -4
  26. package/dist/{TreeMeasure-BVJeGb1L.js.map → TreeMeasure-BK74uexu.js.map} +1 -1
  27. package/dist/UIButton-BmIiXYDC.js +5 -0
  28. package/dist/UIButton-BmIiXYDC.js.map +1 -0
  29. package/dist/UIGrid-2ZUA1YEc.js +200 -0
  30. package/dist/UIGrid-2ZUA1YEc.js.map +1 -0
  31. package/dist/{UIInput-BodVbUoQ.js → UIInput-B3K0w4ow.js} +2 -3
  32. package/dist/UIInput-B3K0w4ow.js.map +1 -0
  33. package/dist/{UIKeys-Rh_gUZjP.js → UIKeys-DmXvyJuU.js} +12 -12
  34. package/dist/UIKeys-DmXvyJuU.js.map +1 -0
  35. package/dist/{UILabel-DgJUBzB_.js → UILabel-pCjKxQlQ.js} +2 -3
  36. package/dist/UILabel-pCjKxQlQ.js.map +1 -0
  37. package/dist/UIMenu-CqURPocK.js +42 -0
  38. package/dist/UIMenu-CqURPocK.js.map +1 -0
  39. package/dist/{UIRuntime-KH309p5B.js → UIRuntime-BXutHphM.js} +253 -239
  40. package/dist/UIRuntime-BXutHphM.js.map +1 -0
  41. package/dist/{UISegment-CMMIW7cZ.js → UISegment-BF4Tgy2D.js} +2 -3
  42. package/dist/UISegment-BF4Tgy2D.js.map +1 -0
  43. package/dist/_spell-element/UIComponent.d.ts +8 -0
  44. package/dist/_spell-element/vocabulary.types.d.ts +20 -2
  45. package/dist/_util/Dragging.d.ts +14 -2
  46. package/dist/_util/dom.d.ts +12 -8
  47. package/dist/_util/measures/Dimension.d.ts +1 -1
  48. package/dist/_util/persist/PrefStore.d.ts +7 -2
  49. package/dist/_util/persist/persist.types.d.ts +6 -0
  50. package/dist/_util/platform.d.ts +54 -0
  51. package/dist/_util/string.d.ts +32 -0
  52. package/dist/api.js +2 -3
  53. package/dist/api.js.map +1 -1
  54. package/dist/{apple.palette-B4ivrNlM.js → apple.palette-YLjENwUt.js} +2 -3
  55. package/dist/apple.palette-YLjENwUt.js.map +1 -0
  56. package/dist/{classic-DCTQrteU.js → classic-BHyJFvQa.js} +2 -3
  57. package/dist/classic-BHyJFvQa.js.map +1 -0
  58. package/dist/components/ComponentDefinitions.d.ts +55 -8
  59. package/dist/components/components.es.d.ts +2 -1
  60. package/dist/components/components.planned.d.ts +1 -1
  61. package/dist/components/components.types.d.ts +22 -0
  62. package/dist/components/ui-accordion/UIAccordion.d.ts +1 -0
  63. package/dist/components/ui-accordion/UIAccordion.en.d.ts +1 -0
  64. package/dist/components/ui-action/UIAction.d.ts +38 -1
  65. package/dist/components/ui-action/UIAction.en.d.ts +17 -8
  66. package/dist/components/ui-action/UIAction.es.d.ts +1 -0
  67. package/dist/components/ui-ad/UIAd.d.ts +1 -0
  68. package/dist/components/ui-ad/UIAd.en.d.ts +1 -0
  69. package/dist/components/ui-app-menu/UIAppMenu.d.ts +41 -0
  70. package/dist/components/ui-app-menu/UIAppMenu.en.d.ts +294 -0
  71. package/dist/components/ui-app-menu/UIAppMenu.es.d.ts +35 -0
  72. package/dist/components/ui-app-menu/index.d.ts +2 -0
  73. package/dist/components/ui-breadcrumbs/UIBreadcrumb.d.ts +1 -0
  74. package/dist/components/ui-breadcrumbs/UIBreadcrumb.en.d.ts +1 -0
  75. package/dist/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +1 -0
  76. package/dist/components/ui-breadcrumbs/UIBreadcrumbs.en.d.ts +1 -0
  77. package/dist/components/ui-button/UIButton.d.ts +5 -4
  78. package/dist/components/ui-button/UIButton.en.d.ts +4 -3
  79. package/dist/components/ui-button/UIButton.fallback.d.ts +4 -3
  80. package/dist/components/ui-button/UIButton.types.d.ts +1 -1
  81. package/dist/components/ui-button/UIButtons.d.ts +7 -5
  82. package/dist/components/ui-button/UIButtons.en.d.ts +5 -3
  83. package/dist/components/ui-button/UIButtons.es.d.ts +1 -0
  84. package/dist/components/ui-button/UIOr.d.ts +1 -0
  85. package/dist/components/ui-button/UIOr.en.d.ts +1 -0
  86. package/dist/components/ui-calendar/UICalendar.d.ts +1 -0
  87. package/dist/components/ui-calendar/UICalendar.en.d.ts +1 -0
  88. package/dist/components/ui-calendar/UICalendar.fallback.d.ts +1 -0
  89. package/dist/components/ui-card/UICard.d.ts +1 -0
  90. package/dist/components/ui-card/UICard.en.d.ts +1 -0
  91. package/dist/components/ui-card/UICards.d.ts +1 -0
  92. package/dist/components/ui-card/UICards.en.d.ts +1 -0
  93. package/dist/components/ui-checkbox/UICheckbox.d.ts +1 -0
  94. package/dist/components/ui-checkbox/UICheckbox.en.d.ts +1 -0
  95. package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +1 -0
  96. package/dist/components/ui-checkbox/UIRadio.d.ts +1 -0
  97. package/dist/components/ui-checkbox/UIRadio.en.d.ts +1 -0
  98. package/dist/components/ui-code/CodeHighlighter.d.ts +7 -3
  99. package/dist/components/ui-code/UICode.d.ts +12 -1
  100. package/dist/components/ui-code/UICode.en.d.ts +1 -0
  101. package/dist/components/ui-code/UICode.types.d.ts +9 -0
  102. package/dist/components/ui-comment/UIComment.d.ts +1 -0
  103. package/dist/components/ui-comment/UIComment.en.d.ts +1 -0
  104. package/dist/components/ui-comment/UIComments.d.ts +1 -0
  105. package/dist/components/ui-comment/UIComments.en.d.ts +1 -0
  106. package/dist/components/ui-components/UIComponents.d.ts +1 -0
  107. package/dist/components/ui-components/UIComponents.en.d.ts +1 -0
  108. package/dist/components/ui-container/UIContainer.d.ts +54 -1
  109. package/dist/components/ui-container/UIContainer.en.d.ts +40 -1
  110. package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
  111. package/dist/components/ui-device/UIDevice.d.ts +234 -0
  112. package/dist/components/ui-device/UIDevice.en.d.ts +126 -0
  113. package/dist/components/ui-device/UIDevice.es.d.ts +52 -0
  114. package/dist/components/ui-device/index.d.ts +1 -0
  115. package/dist/components/ui-diagram/UIDiagram.d.ts +1 -0
  116. package/dist/components/ui-diagram/UIDiagram.en.d.ts +1 -0
  117. package/dist/components/ui-diagram/UIDiagramNode.d.ts +1 -0
  118. package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +1 -0
  119. package/dist/components/ui-dimension/UIDimension.d.ts +1 -0
  120. package/dist/components/ui-dimension/UIDimension.en.d.ts +1 -0
  121. package/dist/components/ui-dimmer/UIDimmer.d.ts +1 -0
  122. package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
  123. package/dist/components/ui-divider/UIDivider.d.ts +1 -0
  124. package/dist/components/ui-divider/UIDivider.en.d.ts +1 -0
  125. package/dist/components/ui-dropdown/SlottedItems.d.ts +9 -1
  126. package/dist/components/ui-dropdown/UIDropdown.d.ts +1 -0
  127. package/dist/components/ui-dropdown/UIDropdown.en.d.ts +1 -0
  128. package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +1 -0
  129. package/dist/components/ui-embed/UIEmbed.d.ts +1 -0
  130. package/dist/components/ui-embed/UIEmbed.en.d.ts +1 -0
  131. package/dist/components/ui-emoji/UIEmoji.d.ts +1 -0
  132. package/dist/components/ui-emoji/UIEmoji.en.d.ts +1 -0
  133. package/dist/components/ui-example/UIExample.en.d.ts +1 -0
  134. package/dist/components/ui-feed/UIFeed.d.ts +1 -0
  135. package/dist/components/ui-feed/UIFeed.en.d.ts +1 -0
  136. package/dist/components/ui-feed/UIFeedEvent.d.ts +1 -0
  137. package/dist/components/ui-feed/UIFeedEvent.en.d.ts +1 -0
  138. package/dist/components/ui-flag/UIFlag.d.ts +1 -0
  139. package/dist/components/ui-flag/UIFlag.en.d.ts +1 -0
  140. package/dist/components/ui-flyout/UIFlyout.d.ts +1 -0
  141. package/dist/components/ui-flyout/UIFlyout.en.d.ts +1 -0
  142. package/dist/components/ui-form/UIField.d.ts +11 -4
  143. package/dist/components/ui-form/UIField.en.d.ts +3 -2
  144. package/dist/components/ui-form/UIFields.d.ts +1 -0
  145. package/dist/components/ui-form/UIFields.en.d.ts +1 -0
  146. package/dist/components/ui-form/UIForm.d.ts +1 -0
  147. package/dist/components/ui-form/UIForm.en.d.ts +1 -0
  148. package/dist/components/ui-form/UIRepeat.d.ts +1 -0
  149. package/dist/components/ui-form/UIRepeat.en.d.ts +1 -0
  150. package/dist/components/ui-grid/UIColumn.d.ts +4 -3
  151. package/dist/components/ui-grid/UIColumn.en.d.ts +4 -3
  152. package/dist/components/ui-grid/UIGrid.d.ts +1 -0
  153. package/dist/components/ui-grid/UIGrid.en.d.ts +1 -0
  154. package/dist/components/ui-grid/UIRow.d.ts +1 -0
  155. package/dist/components/ui-grid/UIRow.en.d.ts +1 -0
  156. package/dist/components/ui-icon/UIIcon.d.ts +1 -0
  157. package/dist/components/ui-icon/UIIcon.en.d.ts +1 -0
  158. package/dist/components/ui-icon/UIIcons.d.ts +1 -0
  159. package/dist/components/ui-icon/UIIcons.en.d.ts +1 -0
  160. package/dist/components/ui-icon-picker/UIIconPicker.d.ts +5 -1
  161. package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +1 -0
  162. package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +1 -0
  163. package/dist/components/ui-image/UIImage.d.ts +1 -0
  164. package/dist/components/ui-image/UIImage.en.d.ts +1 -0
  165. package/dist/components/ui-image/UIImages.d.ts +1 -0
  166. package/dist/components/ui-image/UIImages.en.d.ts +1 -0
  167. package/dist/components/ui-include/UIInclude.d.ts +1 -0
  168. package/dist/components/ui-include/UIInclude.en.d.ts +1 -0
  169. package/dist/components/ui-input/UIInput.d.ts +1 -0
  170. package/dist/components/ui-input/UIInput.en.d.ts +1 -0
  171. package/dist/components/ui-input/UIInput.fallback.d.ts +1 -0
  172. package/dist/components/ui-input/UITextarea.d.ts +1 -0
  173. package/dist/components/ui-input/UITextarea.en.d.ts +1 -0
  174. package/dist/components/ui-item/UIItem.d.ts +19 -8
  175. package/dist/components/ui-item/UIItem.en.d.ts +2 -1
  176. package/dist/components/ui-items/UIItems.d.ts +1 -0
  177. package/dist/components/ui-items/UIItems.en.d.ts +1 -0
  178. package/dist/components/ui-json/UIJson.d.ts +1 -0
  179. package/dist/components/ui-json/UIJson.en.d.ts +1 -0
  180. package/dist/components/ui-keys/UIKeys.d.ts +1 -0
  181. package/dist/components/ui-keys/UIKeys.en.d.ts +1 -0
  182. package/dist/components/ui-label/UILabel.d.ts +3 -2
  183. package/dist/components/ui-label/UILabel.en.d.ts +3 -2
  184. package/dist/components/ui-label/UILabels.d.ts +1 -0
  185. package/dist/components/ui-label/UILabels.en.d.ts +1 -0
  186. package/dist/components/ui-list/UIList.d.ts +1 -0
  187. package/dist/components/ui-list/UIList.en.d.ts +1 -0
  188. package/dist/components/ui-loader/UILoader.d.ts +1 -0
  189. package/dist/components/ui-loader/UILoader.en.d.ts +1 -0
  190. package/dist/components/ui-markdown/MarkdownBox.d.ts +7 -2
  191. package/dist/components/ui-markdown/MarkdownFormats.d.ts +9 -4
  192. package/dist/components/ui-markdown/UIMarkdown.en.d.ts +5 -0
  193. package/dist/components/ui-markdown/UIMarkdown.es.d.ts +1 -0
  194. package/dist/components/ui-menu/ScrollingRow.d.ts +19 -1
  195. package/dist/components/ui-menu/SegmentedThumb.d.ts +8 -1
  196. package/dist/components/ui-menu/SubMenuAim.d.ts +115 -0
  197. package/dist/components/ui-menu/TitleFit.d.ts +16 -1
  198. package/dist/components/ui-menu/UIMenu.d.ts +112 -9
  199. package/dist/components/ui-menu/UIMenu.en.d.ts +3 -2
  200. package/dist/components/ui-menu/UISubmenu.d.ts +261 -0
  201. package/dist/components/ui-menu/UISubmenu.en.d.ts +102 -0
  202. package/dist/components/ui-menu/UISubmenu.es.d.ts +21 -0
  203. package/dist/components/ui-menu/index.d.ts +3 -1
  204. package/dist/components/ui-message/UIMessage.d.ts +3 -2
  205. package/dist/components/ui-message/UIMessage.en.d.ts +4 -3
  206. package/dist/components/ui-modal/ModalDialogs.d.ts +35 -3
  207. package/dist/components/ui-modal/UIModal.d.ts +6 -0
  208. package/dist/components/ui-modal/UIModal.en.d.ts +6 -0
  209. package/dist/components/ui-nag/UINag.d.ts +1 -0
  210. package/dist/components/ui-nag/UINag.en.d.ts +1 -0
  211. package/dist/components/ui-page/UIPage.d.ts +1 -0
  212. package/dist/components/ui-page/UIPage.en.d.ts +1 -0
  213. package/dist/components/ui-page-layout/UIPageLayout.d.ts +311 -0
  214. package/dist/components/ui-page-layout/UIPageLayout.en.d.ts +99 -0
  215. package/dist/components/ui-page-layout/UIPageLayout.es.d.ts +38 -0
  216. package/dist/components/ui-page-layout/index.d.ts +1 -0
  217. package/dist/components/ui-panel/ScrollShades.d.ts +38 -0
  218. package/dist/components/ui-panel/UIPanel.d.ts +21 -2
  219. package/dist/components/ui-panel/UIPanel.en.d.ts +68 -61
  220. package/dist/components/ui-parts/UIActions.d.ts +1 -0
  221. package/dist/components/ui-parts/UIActions.en.d.ts +1 -0
  222. package/dist/components/ui-parts/UIAuthor.d.ts +1 -0
  223. package/dist/components/ui-parts/UIAuthor.en.d.ts +1 -0
  224. package/dist/components/ui-parts/UIAvatar.d.ts +11 -2
  225. package/dist/components/ui-parts/UIAvatar.en.d.ts +3 -2
  226. package/dist/components/ui-parts/UIContent.d.ts +1 -0
  227. package/dist/components/ui-parts/UIContent.en.d.ts +1 -0
  228. package/dist/components/ui-parts/UIDate.d.ts +1 -0
  229. package/dist/components/ui-parts/UIDate.en.d.ts +1 -0
  230. package/dist/components/ui-parts/UIDescription.d.ts +1 -0
  231. package/dist/components/ui-parts/UIDescription.en.d.ts +1 -0
  232. package/dist/components/ui-parts/UIDetail.d.ts +1 -0
  233. package/dist/components/ui-parts/UIDetail.en.d.ts +1 -0
  234. package/dist/components/ui-parts/UIExtra.d.ts +1 -0
  235. package/dist/components/ui-parts/UIExtra.en.d.ts +1 -0
  236. package/dist/components/ui-parts/UIHeader.d.ts +4 -3
  237. package/dist/components/ui-parts/UIHeader.en.d.ts +4 -3
  238. package/dist/components/ui-parts/UIMeta.d.ts +1 -0
  239. package/dist/components/ui-parts/UIMeta.en.d.ts +1 -0
  240. package/dist/components/ui-parts/UIParts.types.d.ts +18 -5
  241. package/dist/components/ui-parts/UISummary.d.ts +1 -0
  242. package/dist/components/ui-parts/UISummary.en.d.ts +1 -0
  243. package/dist/components/ui-parts/UITitle.d.ts +1 -0
  244. package/dist/components/ui-parts/UITitle.en.d.ts +1 -0
  245. package/dist/components/ui-parts/UIValue.d.ts +1 -0
  246. package/dist/components/ui-parts/UIValue.en.d.ts +1 -0
  247. package/dist/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
  248. package/dist/components/ui-placeholder/UIPlaceholder.en.d.ts +1 -0
  249. package/dist/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
  250. package/dist/components/ui-placeholder/UIPlaceholderHeader.en.d.ts +1 -0
  251. package/dist/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
  252. package/dist/components/ui-placeholder/UIPlaceholderImage.en.d.ts +1 -0
  253. package/dist/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
  254. package/dist/components/ui-placeholder/UIPlaceholderLine.en.d.ts +1 -0
  255. package/dist/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
  256. package/dist/components/ui-placeholder/UIPlaceholderParagraph.en.d.ts +1 -0
  257. package/dist/components/ui-popup/UIPopup.d.ts +21 -3
  258. package/dist/components/ui-popup/UIPopup.en.d.ts +1 -0
  259. package/dist/components/ui-progress/UIProgress.d.ts +3 -2
  260. package/dist/components/ui-progress/UIProgress.en.d.ts +4 -3
  261. package/dist/components/ui-property-editor/UIProperty.d.ts +47 -13
  262. package/dist/components/ui-property-editor/UIProperty.en.d.ts +1 -0
  263. package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +14 -1
  264. package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
  265. package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +7 -1
  266. package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +15 -6
  267. package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +1 -0
  268. package/dist/components/ui-quote/UIQuote.d.ts +1 -0
  269. package/dist/components/ui-quote/UIQuote.en.d.ts +1 -0
  270. package/dist/components/ui-rail/UIRail.d.ts +4 -3
  271. package/dist/components/ui-rail/UIRail.en.d.ts +4 -3
  272. package/dist/components/ui-rating/UIRating.d.ts +1 -0
  273. package/dist/components/ui-rating/UIRating.en.d.ts +1 -0
  274. package/dist/components/ui-rating/UIRating.fallback.d.ts +1 -0
  275. package/dist/components/ui-reveal/UIReveal.d.ts +1 -0
  276. package/dist/components/ui-reveal/UIReveal.en.d.ts +1 -0
  277. package/dist/components/ui-root/UIRoot.en.d.ts +1 -0
  278. package/dist/components/ui-search/UISearch.d.ts +1 -0
  279. package/dist/components/ui-search/UISearch.en.d.ts +1 -0
  280. package/dist/components/ui-search/UISearch.fallback.d.ts +1 -0
  281. package/dist/components/ui-section/UISection.d.ts +3 -2
  282. package/dist/components/ui-section/UISection.en.d.ts +3 -2
  283. package/dist/components/ui-section/UISections.d.ts +1 -0
  284. package/dist/components/ui-section/UISections.en.d.ts +1 -0
  285. package/dist/components/ui-segment/UISegment.d.ts +9 -10
  286. package/dist/components/ui-segment/UISegment.en.d.ts +10 -11
  287. package/dist/components/ui-segment/UISegments.d.ts +1 -0
  288. package/dist/components/ui-segment/UISegments.en.d.ts +1 -0
  289. package/dist/components/ui-select/UISelect.d.ts +1 -0
  290. package/dist/components/ui-select/UISelect.en.d.ts +1 -0
  291. package/dist/components/ui-select/UISelect.fallback.d.ts +1 -0
  292. package/dist/components/ui-shape/UIShape.d.ts +1 -0
  293. package/dist/components/ui-shape/UIShape.en.d.ts +1 -0
  294. package/dist/components/ui-shape/UISide.d.ts +1 -0
  295. package/dist/components/ui-shape/UISide.en.d.ts +1 -0
  296. package/dist/components/ui-sidebar/UIPushable.d.ts +1 -0
  297. package/dist/components/ui-sidebar/UIPushable.en.d.ts +1 -0
  298. package/dist/components/ui-sidebar/UIPusher.d.ts +1 -0
  299. package/dist/components/ui-sidebar/UIPusher.en.d.ts +1 -0
  300. package/dist/components/ui-sidebar/UISidebar.d.ts +1 -0
  301. package/dist/components/ui-sidebar/UISidebar.en.d.ts +1 -0
  302. package/dist/components/ui-sides/UISides.d.ts +1 -0
  303. package/dist/components/ui-sides/UISides.en.d.ts +1 -0
  304. package/dist/components/ui-sides/UISides.fallback.d.ts +1 -0
  305. package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.d.ts +118 -0
  306. package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.en.d.ts +49 -0
  307. package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.es.d.ts +22 -0
  308. package/dist/components/ui-site-breadcrumbs/index.d.ts +1 -0
  309. package/dist/components/ui-site-nav/SitePages.d.ts +26 -3
  310. package/dist/components/ui-site-nav/UISiteNav.d.ts +43 -5
  311. package/dist/components/ui-site-nav/UISiteNav.en.d.ts +10 -1
  312. package/dist/components/ui-site-nav-button/UISiteNavButton.d.ts +63 -0
  313. package/dist/components/ui-site-nav-button/UISiteNavButton.en.d.ts +173 -0
  314. package/dist/components/ui-site-nav-button/UISiteNavButton.es.d.ts +20 -0
  315. package/dist/components/ui-site-nav-button/index.d.ts +1 -0
  316. package/dist/components/ui-site-tabs/UISiteTabs.d.ts +21 -6
  317. package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +1 -0
  318. package/dist/components/ui-slider/UISlider.d.ts +1 -0
  319. package/dist/components/ui-slider/UISlider.en.d.ts +1 -0
  320. package/dist/components/ui-slider/UISlider.fallback.d.ts +1 -0
  321. package/dist/components/ui-space/UISpace.d.ts +1 -0
  322. package/dist/components/ui-space/UISpace.en.d.ts +1 -0
  323. package/dist/components/ui-split-panel/UISplitPanel.d.ts +43 -7
  324. package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +2 -1
  325. package/dist/components/ui-stack/UIStack.d.ts +1 -0
  326. package/dist/components/ui-stack/UIStack.en.d.ts +1 -0
  327. package/dist/components/ui-statistic/UIStatistic.d.ts +1 -0
  328. package/dist/components/ui-statistic/UIStatistic.en.d.ts +1 -0
  329. package/dist/components/ui-statistic/UIStatistics.d.ts +1 -0
  330. package/dist/components/ui-statistic/UIStatistics.en.d.ts +1 -0
  331. package/dist/components/ui-step/UIStep.d.ts +1 -0
  332. package/dist/components/ui-step/UIStep.en.d.ts +1 -0
  333. package/dist/components/ui-step/UISteps.d.ts +3 -2
  334. package/dist/components/ui-step/UISteps.en.d.ts +3 -2
  335. package/dist/components/ui-sticky/UISticky.d.ts +1 -0
  336. package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
  337. package/dist/components/ui-tab/UITab.d.ts +3 -2
  338. package/dist/components/ui-tab/UITab.en.d.ts +4 -3
  339. package/dist/components/ui-tab/UITabs.d.ts +5 -4
  340. package/dist/components/ui-tab/UITabs.en.d.ts +4 -3
  341. package/dist/components/ui-table/TableGrammar.d.ts +2 -2
  342. package/dist/components/ui-table/UICell.d.ts +1 -0
  343. package/dist/components/ui-table/UICell.en.d.ts +1 -0
  344. package/dist/components/ui-table/UITable.d.ts +7 -6
  345. package/dist/components/ui-table/UITable.en.d.ts +7 -6
  346. package/dist/components/ui-terms/UITerm.d.ts +1 -0
  347. package/dist/components/ui-terms/UITerm.en.d.ts +1 -0
  348. package/dist/components/ui-terms/UITerms.d.ts +1 -0
  349. package/dist/components/ui-terms/UITerms.en.d.ts +1 -0
  350. package/dist/components/ui-text/UILink.d.ts +1 -0
  351. package/dist/components/ui-text/UILink.en.d.ts +1 -0
  352. package/dist/components/ui-text/UIText.d.ts +2 -1
  353. package/dist/components/ui-text/UIText.en.d.ts +2 -1
  354. package/dist/components/ui-theme-editor/BenchAddress.d.ts +9 -0
  355. package/dist/components/ui-theme-editor/UIColorChip.d.ts +1 -0
  356. package/dist/components/ui-theme-editor/UIColorChip.en.d.ts +1 -0
  357. package/dist/components/ui-theme-editor/UIThemeEditor.d.ts +1 -0
  358. package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +1 -0
  359. package/dist/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
  360. package/dist/components/ui-theme-editor/UIThemeToken.en.d.ts +1 -0
  361. package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +37 -15
  362. package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +3 -2
  363. package/dist/components/ui-toast/ToastStack.d.ts +9 -0
  364. package/dist/components/ui-toast/UIToast.d.ts +1 -0
  365. package/dist/components/ui-toast/UIToast.en.d.ts +1 -0
  366. package/dist/components/ui-toc/UIToc.d.ts +1 -0
  367. package/dist/components/ui-toc/UIToc.en.d.ts +1 -0
  368. package/dist/components/ui-toolbar/UIToolbar.d.ts +134 -1
  369. package/dist/components/ui-toolbar/UIToolbar.en.d.ts +75 -42
  370. package/dist/components/ui-toolbar/UIToolbar.es.d.ts +5 -0
  371. package/dist/components/ui-transition/UITransition.d.ts +1 -0
  372. package/dist/components/ui-transition/UITransition.en.d.ts +1 -0
  373. package/dist/components/ui-tree/UITree.d.ts +102 -2
  374. package/dist/components/ui-tree/UITree.en.d.ts +14 -1
  375. package/dist/components/ui-tree/UITree.es.d.ts +3 -0
  376. package/dist/components/ui-tree/UITreeItem.d.ts +21 -2
  377. package/dist/components/ui-tree/UITreeItem.en.d.ts +5 -1
  378. package/dist/components/ui-tree/UITreeItem.es.d.ts +1 -0
  379. package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +1 -0
  380. package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +1 -0
  381. package/dist/components/ui-tree-diagram/UITreeNode.d.ts +1 -0
  382. package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +1 -0
  383. package/dist/components/ui-video/UIAudio.d.ts +1 -0
  384. package/dist/components/ui-video/UIAudio.en.d.ts +1 -0
  385. package/dist/components/ui-video/UIVideo.d.ts +1 -0
  386. package/dist/components/ui-video/UIVideo.en.d.ts +1 -0
  387. package/dist/components/ui-visibility/UIVisibility.d.ts +1 -0
  388. package/dist/components/ui-visibility/UIVisibility.en.d.ts +1 -0
  389. package/dist/components/ui-zoom/UIZoom.d.ts +1 -0
  390. package/dist/components/ui-zoom/UIZoom.en.d.ts +1 -0
  391. package/dist/{components.es-BOa_7gFF.js → components.es-DEa8Ep42.js} +265 -77
  392. package/dist/components.es-DEa8Ep42.js.map +1 -0
  393. package/dist/core.js +795 -702
  394. package/dist/core.js.map +1 -1
  395. package/dist/{crisp-VfYZlTph.js → crisp-DIpY320U.js} +3 -4
  396. package/dist/crisp-DIpY320U.js.map +1 -0
  397. package/dist/crisp.theme-Ir9p4BDC.js +5 -0
  398. package/dist/crisp.theme-Ir9p4BDC.js.map +1 -0
  399. package/dist/{dark-CbUdPe0a.js → dark-B5s4QbmU.js} +2 -3
  400. package/dist/dark-B5s4QbmU.js.map +1 -0
  401. package/dist/{dist-BLYIGZVK.js → dist-BQT4KajA.js} +34 -80
  402. package/dist/dist-BQT4KajA.js.map +1 -0
  403. package/dist/docs-components/docs-components.types.d.ts +6 -0
  404. package/dist/docs-components/ui-docs-palette/UIDocsPalette.d.ts +180 -0
  405. package/dist/docs-components/ui-docs-palette/UIDocsPalette.en.d.ts +88 -0
  406. package/dist/docs-components/ui-docs-palette/UIDocsPalette.types.d.ts +5 -0
  407. package/dist/docs-components/ui-docs-palette/index.d.ts +2 -0
  408. package/dist/docs-components/ui-docs-tokens/UIDocsTokens.d.ts +23 -0
  409. package/dist/docs-components/ui-docs-tokens/UIDocsTokens.en.d.ts +5 -1
  410. package/dist/elements/PartComponent.d.ts +5 -0
  411. package/dist/elements/PopoverPanel.d.ts +12 -1
  412. package/dist/elements/Validator.d.ts +1 -1
  413. package/dist/emoji/cldr/{0-DSUpV2d7.js → 0-B6B0nyLW.js} +2 -3
  414. package/dist/emoji/cldr/0-B6B0nyLW.js.map +1 -0
  415. package/dist/emoji/cldr/{a-D_oB4vJ-.js → a-C12vpdzK.js} +2 -3
  416. package/dist/emoji/cldr/a-C12vpdzK.js.map +1 -0
  417. package/dist/emoji/cldr/{b-DX0W0Mda.js → b-BGkQUJ8v.js} +2 -3
  418. package/dist/emoji/cldr/b-BGkQUJ8v.js.map +1 -0
  419. package/dist/emoji/cldr/{c-DUHidpE9.js → c-DtqAfVnG.js} +2 -3
  420. package/dist/emoji/cldr/c-DtqAfVnG.js.map +1 -0
  421. package/dist/emoji/cldr/{d-CiCXZXay.js → d-B5SNGAad.js} +2 -3
  422. package/dist/emoji/cldr/d-B5SNGAad.js.map +1 -0
  423. package/dist/emoji/cldr/{e-DILJo3Ri.js → e-CMUDvE48.js} +2 -3
  424. package/dist/emoji/cldr/e-CMUDvE48.js.map +1 -0
  425. package/dist/emoji/cldr/{f-ByGFLyOq.js → f-Dfhd9bp8.js} +2 -3
  426. package/dist/emoji/cldr/f-Dfhd9bp8.js.map +1 -0
  427. package/dist/emoji/cldr/{g-BZ0FRsud.js → g-VpFllv6y.js} +2 -3
  428. package/dist/emoji/cldr/g-VpFllv6y.js.map +1 -0
  429. package/dist/emoji/cldr/{h-jtLdvRXQ.js → h-CE6GevC3.js} +2 -3
  430. package/dist/emoji/cldr/h-CE6GevC3.js.map +1 -0
  431. package/dist/emoji/cldr/{i-DcbJ5utE.js → i-BUPzV8pA.js} +2 -3
  432. package/dist/emoji/cldr/i-BUPzV8pA.js.map +1 -0
  433. package/dist/emoji/cldr/{j-BuEqP5nz.js → j-BFAg68Ig.js} +2 -3
  434. package/dist/emoji/cldr/j-BFAg68Ig.js.map +1 -0
  435. package/dist/emoji/cldr/{k-P1J6Gvze.js → k-jnBMfMlM.js} +2 -3
  436. package/dist/emoji/cldr/k-jnBMfMlM.js.map +1 -0
  437. package/dist/emoji/cldr/{l-28XcbsPr.js → l-ClLOCfnc.js} +2 -3
  438. package/dist/emoji/cldr/l-ClLOCfnc.js.map +1 -0
  439. package/dist/emoji/cldr/{m-DKgGJ8rW.js → m-p358YNne.js} +2 -3
  440. package/dist/emoji/cldr/m-p358YNne.js.map +1 -0
  441. package/dist/emoji/cldr/{n-DmPLP4F3.js → n-DOh1UxA2.js} +2 -3
  442. package/dist/emoji/cldr/n-DOh1UxA2.js.map +1 -0
  443. package/dist/emoji/cldr/{o-f98nt3s7.js → o-D_nTGMIR.js} +2 -3
  444. package/dist/emoji/cldr/o-D_nTGMIR.js.map +1 -0
  445. package/dist/emoji/cldr/{p-CxnsOTOt.js → p-BA8Ct3hE.js} +2 -3
  446. package/dist/emoji/cldr/p-BA8Ct3hE.js.map +1 -0
  447. package/dist/emoji/cldr/{r-D0GPRJ-Q.js → r-BFZ26mlC.js} +2 -3
  448. package/dist/emoji/cldr/r-BFZ26mlC.js.map +1 -0
  449. package/dist/emoji/cldr/{s-DcFuepnw.js → s-CIZH91hj.js} +2 -3
  450. package/dist/emoji/cldr/s-CIZH91hj.js.map +1 -0
  451. package/dist/emoji/cldr/{t-BvHgGpUr.js → t-qg9oQuYr.js} +2 -3
  452. package/dist/emoji/cldr/t-qg9oQuYr.js.map +1 -0
  453. package/dist/emoji/cldr/{u-ChFYHtUf.js → u-CN-QpqjC.js} +2 -3
  454. package/dist/emoji/cldr/u-CN-QpqjC.js.map +1 -0
  455. package/dist/emoji/cldr/{v-WmX3nWtZ.js → v-CO_76wOC.js} +2 -3
  456. package/dist/emoji/cldr/v-CO_76wOC.js.map +1 -0
  457. package/dist/emoji/cldr/{w-BPySQUWW.js → w-DOQn50Cw.js} +2 -3
  458. package/dist/emoji/cldr/w-DOQn50Cw.js.map +1 -0
  459. package/dist/emoji/cldr/x-DddFDGbR.js +5 -0
  460. package/dist/emoji/cldr/x-DddFDGbR.js.map +1 -0
  461. package/dist/emoji/cldr/{y-zB_yhTFg.js → y-auUWML2r.js} +2 -3
  462. package/dist/emoji/cldr/y-auUWML2r.js.map +1 -0
  463. package/dist/emoji/cldr/{z-BgJ94Cap.js → z-BYAp28d6.js} +2 -3
  464. package/dist/emoji/cldr/z-BYAp28d6.js.map +1 -0
  465. package/dist/emoji/fomantic/0-BdzcjXW3.js +9 -0
  466. package/dist/emoji/fomantic/0-BdzcjXW3.js.map +1 -0
  467. package/dist/emoji/fomantic/{a-CrqYlC21.js → a-R3ZJ-207.js} +2 -3
  468. package/dist/emoji/fomantic/a-R3ZJ-207.js.map +1 -0
  469. package/dist/emoji/fomantic/{b-DneVHRdQ.js → b-NF1y0dRD.js} +2 -3
  470. package/dist/emoji/fomantic/b-NF1y0dRD.js.map +1 -0
  471. package/dist/emoji/fomantic/{c-ClxKRuir.js → c-CuIzdNXI.js} +2 -3
  472. package/dist/emoji/fomantic/c-CuIzdNXI.js.map +1 -0
  473. package/dist/emoji/fomantic/{d-Djqs_y4s.js → d-CuS9uvGS.js} +2 -3
  474. package/dist/emoji/fomantic/d-CuS9uvGS.js.map +1 -0
  475. package/dist/emoji/fomantic/{e-CuF-jOQd.js → e-S2pyUDgP.js} +2 -3
  476. package/dist/emoji/fomantic/e-S2pyUDgP.js.map +1 -0
  477. package/dist/emoji/fomantic/{f-D8VglrJ4.js → f-DnHzZwKR.js} +2 -3
  478. package/dist/emoji/fomantic/f-DnHzZwKR.js.map +1 -0
  479. package/dist/emoji/fomantic/{g-Du_HFl6U.js → g-CdqbF8yB.js} +2 -3
  480. package/dist/emoji/fomantic/g-CdqbF8yB.js.map +1 -0
  481. package/dist/emoji/fomantic/{h-CLE5tHnM.js → h-Dgmy17VC.js} +2 -3
  482. package/dist/emoji/fomantic/h-Dgmy17VC.js.map +1 -0
  483. package/dist/emoji/fomantic/{i-BjOsrQDZ.js → i-BCe1z6Es.js} +2 -3
  484. package/dist/emoji/fomantic/i-BCe1z6Es.js.map +1 -0
  485. package/dist/emoji/fomantic/{j-CyUDXKCu.js → j-D39udLwj.js} +2 -3
  486. package/dist/emoji/fomantic/j-D39udLwj.js.map +1 -0
  487. package/dist/emoji/fomantic/{k-Clypg4R8.js → k-KDlJnEWX.js} +2 -3
  488. package/dist/emoji/fomantic/k-KDlJnEWX.js.map +1 -0
  489. package/dist/emoji/fomantic/{l-DvLPdBh-.js → l-rVE39-7Z.js} +2 -3
  490. package/dist/emoji/fomantic/l-rVE39-7Z.js.map +1 -0
  491. package/dist/emoji/fomantic/{m-B1lIb1kP.js → m-Bys5Cs9k.js} +2 -3
  492. package/dist/emoji/fomantic/m-Bys5Cs9k.js.map +1 -0
  493. package/dist/emoji/fomantic/{n-Bgpp_ht5.js → n-DzPz1atY.js} +2 -3
  494. package/dist/emoji/fomantic/n-DzPz1atY.js.map +1 -0
  495. package/dist/emoji/fomantic/{o-BhYZzpjp.js → o-lKtDGpuN.js} +2 -3
  496. package/dist/emoji/fomantic/o-lKtDGpuN.js.map +1 -0
  497. package/dist/emoji/fomantic/{p-VLL0GK3m.js → p-DUvy18Aa.js} +2 -3
  498. package/dist/emoji/fomantic/p-DUvy18Aa.js.map +1 -0
  499. package/dist/emoji/fomantic/q-WtSN0kE7.js +5 -0
  500. package/dist/emoji/fomantic/q-WtSN0kE7.js.map +1 -0
  501. package/dist/emoji/fomantic/{r-Bd1DjkkI.js → r-Dm_1szGZ.js} +2 -3
  502. package/dist/emoji/fomantic/r-Dm_1szGZ.js.map +1 -0
  503. package/dist/emoji/fomantic/{s-Bqatw1W7.js → s-LPRU4KZk.js} +2 -3
  504. package/dist/emoji/fomantic/s-LPRU4KZk.js.map +1 -0
  505. package/dist/emoji/fomantic/{t-Bs7IFhv3.js → t-iQksEIKb.js} +2 -3
  506. package/dist/emoji/fomantic/t-iQksEIKb.js.map +1 -0
  507. package/dist/emoji/fomantic/{u-M6GfYC-U.js → u-CkDd-u7Y.js} +2 -3
  508. package/dist/emoji/fomantic/u-CkDd-u7Y.js.map +1 -0
  509. package/dist/emoji/fomantic/{v-BKHNqkn0.js → v-C83uQ5pk.js} +2 -3
  510. package/dist/emoji/fomantic/v-C83uQ5pk.js.map +1 -0
  511. package/dist/emoji/fomantic/{w-B_XvIu7h.js → w-D_redhGe.js} +2 -3
  512. package/dist/emoji/fomantic/w-D_redhGe.js.map +1 -0
  513. package/dist/emoji/fomantic/x-eI_dPUEx.js +8 -0
  514. package/dist/emoji/fomantic/x-eI_dPUEx.js.map +1 -0
  515. package/dist/emoji/fomantic/{y-DPZaoIla.js → y-CO_6qz-J.js} +2 -3
  516. package/dist/emoji/fomantic/y-CO_6qz-J.js.map +1 -0
  517. package/dist/emoji/fomantic/{z-FH-kPXch.js → z-C-wWxD0a.js} +2 -3
  518. package/dist/emoji/fomantic/z-C-wWxD0a.js.map +1 -0
  519. package/dist/forms.js +65 -75
  520. package/dist/forms.js.map +1 -1
  521. package/dist/fruity-CsfZNeXb.js +5 -0
  522. package/dist/fruity-CsfZNeXb.js.map +1 -0
  523. package/dist/{fruity.theme-CbC7Jyvk.js → fruity.theme-BL7cCZUQ.js} +3 -4
  524. package/dist/fruity.theme-BL7cCZUQ.js.map +1 -0
  525. package/dist/glass-BCK30hpe.js +5 -0
  526. package/dist/glass-BCK30hpe.js.map +1 -0
  527. package/dist/glass.theme-C7QSRB7b.js +5 -0
  528. package/dist/glass.theme-C7QSRB7b.js.map +1 -0
  529. package/dist/hot.js +18 -32
  530. package/dist/hot.js.map +1 -1
  531. package/dist/index.d.ts +5 -0
  532. package/dist/index.js +96 -91
  533. package/dist/jsx.d.ts +3875 -711
  534. package/dist/matrix-DEnqBfwC.js +5 -0
  535. package/dist/matrix-DEnqBfwC.js.map +1 -0
  536. package/dist/matrix.theme-YV6_nvXv.js +5 -0
  537. package/dist/matrix.theme-YV6_nvXv.js.map +1 -0
  538. package/dist/{merlot-DOXLuUaU.js → merlot-DFa6kDbA.js} +3 -4
  539. package/dist/merlot-DFa6kDbA.js.map +1 -0
  540. package/dist/merlot.theme-B1K8nn2u.js +5 -0
  541. package/dist/merlot.theme-B1K8nn2u.js.map +1 -0
  542. package/dist/{midnight-BxlTQSfw.js → midnight-q0-3-V6U.js} +3 -4
  543. package/dist/midnight-q0-3-V6U.js.map +1 -0
  544. package/dist/midnight.theme-C7M02wTD.js +5 -0
  545. package/dist/midnight.theme-C7M02wTD.js.map +1 -0
  546. package/dist/mockup-D0vovNO7.js +5 -0
  547. package/dist/mockup-D0vovNO7.js.map +1 -0
  548. package/dist/mockup.theme-C92r9NI0.js +5 -0
  549. package/dist/mockup.theme-C92r9NI0.js.map +1 -0
  550. package/dist/{paper-M61nUilz.js → paper-DPxolmdy.js} +3 -4
  551. package/dist/paper-DPxolmdy.js.map +1 -0
  552. package/dist/paper.theme-BAKk3DY1.js +5 -0
  553. package/dist/paper.theme-BAKk3DY1.js.map +1 -0
  554. package/dist/{persist.types-D2m6wD-S.js → persist.types-D7N7GewC.js} +2 -3
  555. package/dist/persist.types-D7N7GewC.js.map +1 -0
  556. package/dist/{pop-CxXfytjk.js → pop-Dw_6k177.js} +3 -4
  557. package/dist/pop-Dw_6k177.js.map +1 -0
  558. package/dist/pop.theme-Cw-yD0MO.js +5 -0
  559. package/dist/pop.theme-Cw-yD0MO.js.map +1 -0
  560. package/dist/property/PropertyEditorPages.d.ts +1 -1
  561. package/dist/property/PropertyLayouts.d.ts +119 -0
  562. package/dist/property/PropertySchemas.d.ts +5 -1
  563. package/dist/property/index.d.ts +2 -0
  564. package/dist/{rolldown-runtime-CYGlBXrH.js → rolldown-runtime-c6e9CmGy.js} +2 -3
  565. package/dist/runtime/Browser.d.ts +7 -0
  566. package/dist/runtime/DataTooltips.d.ts +2 -0
  567. package/dist/runtime/Keyboard.d.ts +4 -1
  568. package/dist/runtime/Toasts.d.ts +10 -0
  569. package/dist/runtime/runtime.types.d.ts +52 -0
  570. package/dist/{search-CzSzx7bX.js → search-C2Rq9HF1.js} +1 -2
  571. package/dist/search-C2Rq9HF1.js.map +1 -0
  572. package/dist/spell-CB-MivSX.js +5 -0
  573. package/dist/spell-CB-MivSX.js.map +1 -0
  574. package/dist/spell.theme-CUoc5rTq.js +5 -0
  575. package/dist/spell.theme-CUoc5rTq.js.map +1 -0
  576. package/dist/styles/StyleGenerator.d.ts +7 -0
  577. package/dist/styles/styles.en.d.ts +27 -18
  578. package/dist/{styles.en-CUUxNwHo.js → styles.en-DZlSJiOR.js} +21 -21
  579. package/dist/styles.en-DZlSJiOR.js.map +1 -0
  580. package/dist/styles.js +9 -10
  581. package/dist/styles.js.map +1 -1
  582. package/dist/ui-accordion.editor-BP8uQGGU.js +5 -0
  583. package/dist/ui-accordion.editor-BP8uQGGU.js.map +1 -0
  584. package/dist/ui-accordion.js +59 -60
  585. package/dist/ui-accordion.js.map +1 -1
  586. package/dist/ui-action.editor-m5R5N5Wy.js +5 -0
  587. package/dist/ui-action.editor-m5R5N5Wy.js.map +1 -0
  588. package/dist/ui-action.js +73 -45
  589. package/dist/ui-action.js.map +1 -1
  590. package/dist/ui-actions.editor-Buc3N2ik.js +5 -0
  591. package/dist/ui-actions.editor-Buc3N2ik.js.map +1 -0
  592. package/dist/ui-ad.editor-BHTDuSii.js +5 -0
  593. package/dist/ui-ad.editor-BHTDuSii.js.map +1 -0
  594. package/dist/ui-ad.js +8 -9
  595. package/dist/ui-ad.js.map +1 -1
  596. package/dist/ui-app-menu.editor-DxPPnMUT.js +5 -0
  597. package/dist/ui-app-menu.editor-DxPPnMUT.js.map +1 -0
  598. package/dist/ui-app-menu.js +89 -0
  599. package/dist/ui-app-menu.js.map +1 -0
  600. package/dist/ui-audio.editor-Y6WeqLRh.js +5 -0
  601. package/dist/ui-audio.editor-Y6WeqLRh.js.map +1 -0
  602. package/dist/ui-author.editor-Bmf-rEXY.js +5 -0
  603. package/dist/ui-author.editor-Bmf-rEXY.js.map +1 -0
  604. package/dist/ui-avatar.editor-CSU6snQz.js +5 -0
  605. package/dist/ui-avatar.editor-CSU6snQz.js.map +1 -0
  606. package/dist/ui-breadcrumb.editor-N1-8OzDq.js +5 -0
  607. package/dist/ui-breadcrumb.editor-N1-8OzDq.js.map +1 -0
  608. package/dist/ui-breadcrumbs.editor-Mml0fUR_.js +5 -0
  609. package/dist/ui-breadcrumbs.editor-Mml0fUR_.js.map +1 -0
  610. package/dist/ui-breadcrumbs.js +18 -17
  611. package/dist/ui-breadcrumbs.js.map +1 -1
  612. package/dist/ui-button.editor-BV9Bh_xf.js +5 -0
  613. package/dist/ui-button.editor-BV9Bh_xf.js.map +1 -0
  614. package/dist/ui-button.js +157 -156
  615. package/dist/ui-button.js.map +1 -1
  616. package/dist/ui-buttons.editor-CSsEIo2s.js +5 -0
  617. package/dist/ui-buttons.editor-CSsEIo2s.js.map +1 -0
  618. package/dist/ui-calendar.editor-TsP8a97s.js +5 -0
  619. package/dist/ui-calendar.editor-TsP8a97s.js.map +1 -0
  620. package/dist/ui-calendar.js +148 -157
  621. package/dist/ui-calendar.js.map +1 -1
  622. package/dist/ui-card.editor-BBZj9e03.js +5 -0
  623. package/dist/ui-card.editor-BBZj9e03.js.map +1 -0
  624. package/dist/ui-card.js +70 -70
  625. package/dist/ui-card.js.map +1 -1
  626. package/dist/ui-cards.editor-Hrmldr4q.js +5 -0
  627. package/dist/ui-cards.editor-Hrmldr4q.js.map +1 -0
  628. package/dist/ui-cell.editor-Dmz_mwJ0.js +5 -0
  629. package/dist/ui-cell.editor-Dmz_mwJ0.js.map +1 -0
  630. package/dist/ui-checkbox.editor-DnOz9r6d.js +5 -0
  631. package/dist/ui-checkbox.editor-DnOz9r6d.js.map +1 -0
  632. package/dist/ui-checkbox.js +49 -48
  633. package/dist/ui-checkbox.js.map +1 -1
  634. package/dist/ui-code.editor-Drr_FVB6.js +5 -0
  635. package/dist/ui-code.editor-Drr_FVB6.js.map +1 -0
  636. package/dist/ui-code.js +116 -79
  637. package/dist/ui-code.js.map +1 -1
  638. package/dist/ui-color-chip.editor-B3zV8FkB.js +5 -0
  639. package/dist/ui-color-chip.editor-B3zV8FkB.js.map +1 -0
  640. package/dist/ui-column.editor-hdUb-qwT.js +5 -0
  641. package/dist/ui-column.editor-hdUb-qwT.js.map +1 -0
  642. package/dist/ui-comment.editor-DJpE_8tz.js +5 -0
  643. package/dist/ui-comment.editor-DJpE_8tz.js.map +1 -0
  644. package/dist/ui-comment.js +15 -14
  645. package/dist/ui-comment.js.map +1 -1
  646. package/dist/ui-comments.editor-GFJN6l3Q.js +5 -0
  647. package/dist/ui-comments.editor-GFJN6l3Q.js.map +1 -0
  648. package/dist/ui-components.editor-BKFXnARt.js +5 -0
  649. package/dist/ui-components.editor-BKFXnARt.js.map +1 -0
  650. package/dist/ui-components.js +12 -13
  651. package/dist/ui-components.js.map +1 -1
  652. package/dist/ui-container.editor-CBNhNkRm.js +5 -0
  653. package/dist/ui-container.editor-CBNhNkRm.js.map +1 -0
  654. package/dist/ui-container.js +106 -21
  655. package/dist/ui-container.js.map +1 -1
  656. package/dist/ui-content.editor-B78lxK3P.js +5 -0
  657. package/dist/ui-content.editor-B78lxK3P.js.map +1 -0
  658. package/dist/ui-date.editor-PHEnU7QX.js +5 -0
  659. package/dist/ui-date.editor-PHEnU7QX.js.map +1 -0
  660. package/dist/ui-description.editor-DWFDJ9mV.js +5 -0
  661. package/dist/ui-description.editor-DWFDJ9mV.js.map +1 -0
  662. package/dist/ui-detail.editor-wliuVbx3.js +5 -0
  663. package/dist/ui-detail.editor-wliuVbx3.js.map +1 -0
  664. package/dist/ui-device.editor-kl48NVma.js +5 -0
  665. package/dist/ui-device.editor-kl48NVma.js.map +1 -0
  666. package/dist/ui-device.js +436 -0
  667. package/dist/ui-device.js.map +1 -0
  668. package/dist/ui-diagram-node.editor-6FyjT7oj.js +5 -0
  669. package/dist/ui-diagram-node.editor-6FyjT7oj.js.map +1 -0
  670. package/dist/ui-diagram.editor-Dn3ef-J9.js +5 -0
  671. package/dist/ui-diagram.editor-Dn3ef-J9.js.map +1 -0
  672. package/dist/ui-diagram.js +128 -129
  673. package/dist/ui-diagram.js.map +1 -1
  674. package/dist/ui-dimension.editor-BEXGKcCB.js +5 -0
  675. package/dist/ui-dimension.editor-BEXGKcCB.js.map +1 -0
  676. package/dist/ui-dimension.js +111 -12
  677. package/dist/ui-dimension.js.map +1 -1
  678. package/dist/ui-dimmer.editor-D14xzXIe.js +5 -0
  679. package/dist/ui-dimmer.editor-D14xzXIe.js.map +1 -0
  680. package/dist/ui-dimmer.js +29 -30
  681. package/dist/ui-dimmer.js.map +1 -1
  682. package/dist/ui-divider.editor-D6ozEXjx.js +5 -0
  683. package/dist/ui-divider.editor-D6ozEXjx.js.map +1 -0
  684. package/dist/ui-divider.js +9 -10
  685. package/dist/ui-divider.js.map +1 -1
  686. package/dist/ui-dropdown.editor-OFDGi1oz.js +5 -0
  687. package/dist/ui-dropdown.editor-OFDGi1oz.js.map +1 -0
  688. package/dist/ui-dropdown.js +155 -156
  689. package/dist/ui-dropdown.js.map +1 -1
  690. package/dist/ui-embed.editor-DHsrjw1j.js +5 -0
  691. package/dist/ui-embed.editor-DHsrjw1j.js.map +1 -0
  692. package/dist/ui-embed.js +23 -24
  693. package/dist/ui-embed.js.map +1 -1
  694. package/dist/ui-emoji.editor-DUL230Hi.js +5 -0
  695. package/dist/ui-emoji.editor-DUL230Hi.js.map +1 -0
  696. package/dist/ui-emoji.js +63 -64
  697. package/dist/ui-emoji.js.map +1 -1
  698. package/dist/ui-event.editor-Bk17y7wW.js +5 -0
  699. package/dist/ui-event.editor-Bk17y7wW.js.map +1 -0
  700. package/dist/ui-example.editor-D46Vnctp.js +5 -0
  701. package/dist/ui-example.editor-D46Vnctp.js.map +1 -0
  702. package/dist/ui-example.js +67 -74
  703. package/dist/ui-example.js.map +1 -1
  704. package/dist/ui-extra.editor-rX6sfH2e.js +5 -0
  705. package/dist/ui-extra.editor-rX6sfH2e.js.map +1 -0
  706. package/dist/ui-feed.editor-B7ycWh1b.js +5 -0
  707. package/dist/ui-feed.editor-B7ycWh1b.js.map +1 -0
  708. package/dist/ui-feed.js +26 -25
  709. package/dist/ui-feed.js.map +1 -1
  710. package/dist/ui-field.editor-Bz9xyCVv.js +5 -0
  711. package/dist/ui-field.editor-Bz9xyCVv.js.map +1 -0
  712. package/dist/ui-fields.editor-BUtW4NTk.js +5 -0
  713. package/dist/ui-fields.editor-BUtW4NTk.js.map +1 -0
  714. package/dist/ui-flag.editor-DNfdXo7y.js +5 -0
  715. package/dist/ui-flag.editor-DNfdXo7y.js.map +1 -0
  716. package/dist/ui-flag.js +13 -14
  717. package/dist/ui-flag.js.map +1 -1
  718. package/dist/ui-flyout.editor-b7UJYiV9.js +5 -0
  719. package/dist/ui-flyout.editor-b7UJYiV9.js.map +1 -0
  720. package/dist/ui-flyout.js +10 -11
  721. package/dist/ui-flyout.js.map +1 -1
  722. package/dist/ui-form.editor-BJC3WhNf.js +5 -0
  723. package/dist/ui-form.editor-BJC3WhNf.js.map +1 -0
  724. package/dist/ui-form.js +199 -195
  725. package/dist/ui-form.js.map +1 -1
  726. package/dist/ui-grid.editor-DVn2YIBW.js +5 -0
  727. package/dist/ui-grid.editor-DVn2YIBW.js.map +1 -0
  728. package/dist/ui-grid.js +43 -234
  729. package/dist/ui-grid.js.map +1 -1
  730. package/dist/ui-header.editor-meOjCASK.js +5 -0
  731. package/dist/ui-header.editor-meOjCASK.js.map +1 -0
  732. package/dist/ui-icon-picker.editor-vFPbT9Kh.js +5 -0
  733. package/dist/ui-icon-picker.editor-vFPbT9Kh.js.map +1 -0
  734. package/dist/ui-icon-picker.js +64 -69
  735. package/dist/ui-icon-picker.js.map +1 -1
  736. package/dist/ui-icon.editor-DoKK49PD.js +5 -0
  737. package/dist/ui-icon.editor-DoKK49PD.js.map +1 -0
  738. package/dist/ui-icon.js +15 -14
  739. package/dist/ui-icon.js.map +1 -1
  740. package/dist/ui-icons.editor-CSD6fOVt.js +5 -0
  741. package/dist/ui-icons.editor-CSD6fOVt.js.map +1 -0
  742. package/dist/ui-image.editor-D4ZUC_Ka.js +5 -0
  743. package/dist/ui-image.editor-D4ZUC_Ka.js.map +1 -0
  744. package/dist/ui-image.js +26 -26
  745. package/dist/ui-image.js.map +1 -1
  746. package/dist/ui-images.editor-Cb0D3vnI.js +5 -0
  747. package/dist/ui-images.editor-Cb0D3vnI.js.map +1 -0
  748. package/dist/ui-include.editor-CZcsVJbH.js +5 -0
  749. package/dist/ui-include.editor-CZcsVJbH.js.map +1 -0
  750. package/dist/ui-include.js +21 -22
  751. package/dist/ui-include.js.map +1 -1
  752. package/dist/ui-input.editor-budoNoB0.js +5 -0
  753. package/dist/ui-input.editor-budoNoB0.js.map +1 -0
  754. package/dist/ui-input.js +131 -130
  755. package/dist/ui-input.js.map +1 -1
  756. package/dist/ui-item.editor-BlWp1HXu.js +5 -0
  757. package/dist/ui-item.editor-BlWp1HXu.js.map +1 -0
  758. package/dist/ui-item.js +127 -113
  759. package/dist/ui-item.js.map +1 -1
  760. package/dist/ui-items.editor-GOul3Xss.js +5 -0
  761. package/dist/ui-items.editor-GOul3Xss.js.map +1 -0
  762. package/dist/ui-items.js +11 -12
  763. package/dist/ui-items.js.map +1 -1
  764. package/dist/ui-json.editor-BgZbrB_W.js +5 -0
  765. package/dist/ui-json.editor-BgZbrB_W.js.map +1 -0
  766. package/dist/ui-json.js +18 -19
  767. package/dist/ui-json.js.map +1 -1
  768. package/dist/ui-keys.editor-BI9EDtS4.js +5 -0
  769. package/dist/ui-keys.editor-BI9EDtS4.js.map +1 -0
  770. package/dist/ui-keys.js +2 -3
  771. package/dist/ui-label.editor-BVUYLSUs.js +5 -0
  772. package/dist/ui-label.editor-BVUYLSUs.js.map +1 -0
  773. package/dist/ui-label.js +22 -22
  774. package/dist/ui-label.js.map +1 -1
  775. package/dist/ui-labels.editor-BWJth86p.js +5 -0
  776. package/dist/ui-labels.editor-BWJth86p.js.map +1 -0
  777. package/dist/ui-link.editor-CpI53scP.js +5 -0
  778. package/dist/ui-link.editor-CpI53scP.js.map +1 -0
  779. package/dist/ui-list.editor-DhBZIkAa.js +5 -0
  780. package/dist/ui-list.editor-DhBZIkAa.js.map +1 -0
  781. package/dist/ui-list.js +9 -10
  782. package/dist/ui-list.js.map +1 -1
  783. package/dist/ui-loader.editor-BJlvmP7S.js +5 -0
  784. package/dist/ui-loader.editor-BJlvmP7S.js.map +1 -0
  785. package/dist/ui-loader.js +10 -11
  786. package/dist/ui-loader.js.map +1 -1
  787. package/dist/ui-markdown.editor-DPVKyxXa.js +5 -0
  788. package/dist/ui-markdown.editor-DPVKyxXa.js.map +1 -0
  789. package/dist/ui-markdown.js +208 -154
  790. package/dist/ui-markdown.js.map +1 -1
  791. package/dist/ui-menu.editor-DJ3PhWtK.js +5 -0
  792. package/dist/ui-menu.editor-DJ3PhWtK.js.map +1 -0
  793. package/dist/ui-menu.js +815 -223
  794. package/dist/ui-menu.js.map +1 -1
  795. package/dist/ui-message.editor-vfT0pyu5.js +5 -0
  796. package/dist/ui-message.editor-vfT0pyu5.js.map +1 -0
  797. package/dist/ui-message.js +32 -33
  798. package/dist/ui-message.js.map +1 -1
  799. package/dist/ui-meta.editor-Bk5m43-E.js +5 -0
  800. package/dist/ui-meta.editor-Bk5m43-E.js.map +1 -0
  801. package/dist/ui-modal.editor-B6gmmGsR.js +5 -0
  802. package/dist/ui-modal.editor-B6gmmGsR.js.map +1 -0
  803. package/dist/ui-modal.js +128 -99
  804. package/dist/ui-modal.js.map +1 -1
  805. package/dist/ui-nag.editor-BJ3Ia2Bi.js +5 -0
  806. package/dist/ui-nag.editor-BJ3Ia2Bi.js.map +1 -0
  807. package/dist/ui-nag.js +23 -24
  808. package/dist/ui-nag.js.map +1 -1
  809. package/dist/ui-or.editor-BfBLNVgm.js +5 -0
  810. package/dist/ui-or.editor-BfBLNVgm.js.map +1 -0
  811. package/dist/ui-page-layout.editor-xtQW0FZk.js +5 -0
  812. package/dist/ui-page-layout.editor-xtQW0FZk.js.map +1 -0
  813. package/dist/ui-page-layout.js +363 -0
  814. package/dist/ui-page-layout.js.map +1 -0
  815. package/dist/ui-page.editor-Bd5mzlj7.js +5 -0
  816. package/dist/ui-page.editor-Bd5mzlj7.js.map +1 -0
  817. package/dist/ui-page.js +11 -12
  818. package/dist/ui-page.js.map +1 -1
  819. package/dist/ui-panel.editor-BCUkdr4S.js +5 -0
  820. package/dist/ui-panel.editor-BCUkdr4S.js.map +1 -0
  821. package/dist/ui-panel.js +105 -27
  822. package/dist/ui-panel.js.map +1 -1
  823. package/dist/ui-parts.js +83 -68
  824. package/dist/ui-parts.js.map +1 -1
  825. package/dist/ui-placeholder-header.editor-CJNO08Ax.js +5 -0
  826. package/dist/ui-placeholder-header.editor-CJNO08Ax.js.map +1 -0
  827. package/dist/ui-placeholder-image.editor-DctJiCNv.js +5 -0
  828. package/dist/ui-placeholder-image.editor-DctJiCNv.js.map +1 -0
  829. package/dist/ui-placeholder-line.editor-DcxH7mOo.js +5 -0
  830. package/dist/ui-placeholder-line.editor-DcxH7mOo.js.map +1 -0
  831. package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js +5 -0
  832. package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js.map +1 -0
  833. package/dist/ui-placeholder.editor-Bc0CYlZZ.js +5 -0
  834. package/dist/ui-placeholder.editor-Bc0CYlZZ.js.map +1 -0
  835. package/dist/ui-placeholder.js +23 -19
  836. package/dist/ui-placeholder.js.map +1 -1
  837. package/dist/ui-popup.editor-ByUi4CYs.js +5 -0
  838. package/dist/ui-popup.editor-ByUi4CYs.js.map +1 -0
  839. package/dist/ui-popup.js +107 -100
  840. package/dist/ui-popup.js.map +1 -1
  841. package/dist/ui-progress.editor-DX0IjhxZ.js +5 -0
  842. package/dist/ui-progress.editor-DX0IjhxZ.js.map +1 -0
  843. package/dist/ui-progress.js +23 -24
  844. package/dist/ui-progress.js.map +1 -1
  845. package/dist/ui-property-editor.editor-pS6tCPPT.js +5 -0
  846. package/dist/ui-property-editor.editor-pS6tCPPT.js.map +1 -0
  847. package/dist/ui-property-editor.js +649 -277
  848. package/dist/ui-property-editor.js.map +1 -1
  849. package/dist/ui-property-group.editor-BlpUMVlr.js +5 -0
  850. package/dist/ui-property-group.editor-BlpUMVlr.js.map +1 -0
  851. package/dist/ui-property.editor-BC-jtjjt.js +5 -0
  852. package/dist/ui-property.editor-BC-jtjjt.js.map +1 -0
  853. package/dist/ui-pushable.editor-8_EmUD9x.js +5 -0
  854. package/dist/ui-pushable.editor-8_EmUD9x.js.map +1 -0
  855. package/dist/ui-pusher.editor-CiCX6-1J.js +5 -0
  856. package/dist/ui-pusher.editor-CiCX6-1J.js.map +1 -0
  857. package/dist/ui-quote.editor-BvmAjmo9.js +5 -0
  858. package/dist/ui-quote.editor-BvmAjmo9.js.map +1 -0
  859. package/dist/ui-quote.js +8 -9
  860. package/dist/ui-quote.js.map +1 -1
  861. package/dist/ui-radio.editor-DPzActfO.js +5 -0
  862. package/dist/ui-radio.editor-DPzActfO.js.map +1 -0
  863. package/dist/ui-rail.editor-DRfVH4P2.js +5 -0
  864. package/dist/ui-rail.editor-DRfVH4P2.js.map +1 -0
  865. package/dist/ui-rail.js +11 -12
  866. package/dist/ui-rail.js.map +1 -1
  867. package/dist/ui-rating.editor-C19syymj.js +5 -0
  868. package/dist/ui-rating.editor-C19syymj.js.map +1 -0
  869. package/dist/ui-rating.js +40 -49
  870. package/dist/ui-rating.js.map +1 -1
  871. package/dist/ui-repeat.editor-DEf-bFGj.js +5 -0
  872. package/dist/ui-repeat.editor-DEf-bFGj.js.map +1 -0
  873. package/dist/ui-reveal.editor-D7pDOaen.js +5 -0
  874. package/dist/ui-reveal.editor-D7pDOaen.js.map +1 -0
  875. package/dist/ui-reveal.js +10 -11
  876. package/dist/ui-reveal.js.map +1 -1
  877. package/dist/ui-root.editor-CAokPDVa.js +5 -0
  878. package/dist/ui-root.editor-CAokPDVa.js.map +1 -0
  879. package/dist/ui-root.js +206 -102
  880. package/dist/ui-root.js.map +1 -1
  881. package/dist/ui-row.editor-C00Z6Jl5.js +5 -0
  882. package/dist/ui-row.editor-C00Z6Jl5.js.map +1 -0
  883. package/dist/ui-search.editor-CtzfYgNu.js +5 -0
  884. package/dist/ui-search.editor-CtzfYgNu.js.map +1 -0
  885. package/dist/ui-search.js +143 -146
  886. package/dist/ui-search.js.map +1 -1
  887. package/dist/ui-section.editor-DmNICxCs.js +5 -0
  888. package/dist/ui-section.editor-DmNICxCs.js.map +1 -0
  889. package/dist/ui-section.js +74 -73
  890. package/dist/ui-section.js.map +1 -1
  891. package/dist/ui-sections.editor-BxXECGv9.js +5 -0
  892. package/dist/ui-sections.editor-BxXECGv9.js.map +1 -0
  893. package/dist/ui-segment.editor-CebyLPFn.js +5 -0
  894. package/dist/ui-segment.editor-CebyLPFn.js.map +1 -0
  895. package/dist/ui-segment.js +43 -43
  896. package/dist/ui-segment.js.map +1 -1
  897. package/dist/ui-segments.editor-CSumzMa5.js +5 -0
  898. package/dist/ui-segments.editor-CSumzMa5.js.map +1 -0
  899. package/dist/ui-select.editor-wAcZzvU7.js +5 -0
  900. package/dist/ui-select.editor-wAcZzvU7.js.map +1 -0
  901. package/dist/ui-select.js +86 -87
  902. package/dist/ui-select.js.map +1 -1
  903. package/dist/ui-shape.editor-By9-8aD2.js +5 -0
  904. package/dist/ui-shape.editor-By9-8aD2.js.map +1 -0
  905. package/dist/ui-shape.js +39 -38
  906. package/dist/ui-shape.js.map +1 -1
  907. package/dist/ui-side.editor-CFSqGHGH.js +5 -0
  908. package/dist/ui-side.editor-CFSqGHGH.js.map +1 -0
  909. package/dist/ui-sidebar.editor-DWFPQcXv.js +5 -0
  910. package/dist/ui-sidebar.editor-DWFPQcXv.js.map +1 -0
  911. package/dist/ui-sidebar.js +79 -77
  912. package/dist/ui-sidebar.js.map +1 -1
  913. package/dist/ui-sides.editor-CONIJ1r3.js +5 -0
  914. package/dist/ui-sides.editor-CONIJ1r3.js.map +1 -0
  915. package/dist/ui-sides.js +25 -26
  916. package/dist/ui-sides.js.map +1 -1
  917. package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js +5 -0
  918. package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js.map +1 -0
  919. package/dist/ui-site-breadcrumbs.js +143 -0
  920. package/dist/ui-site-breadcrumbs.js.map +1 -0
  921. package/dist/ui-site-nav-button.editor-6J-zJLtZ.js +5 -0
  922. package/dist/ui-site-nav-button.editor-6J-zJLtZ.js.map +1 -0
  923. package/dist/ui-site-nav-button.js +113 -0
  924. package/dist/ui-site-nav-button.js.map +1 -0
  925. package/dist/ui-site-nav.editor-CKEsOGCX.js +5 -0
  926. package/dist/ui-site-nav.editor-CKEsOGCX.js.map +1 -0
  927. package/dist/ui-site-nav.js +133 -97
  928. package/dist/ui-site-nav.js.map +1 -1
  929. package/dist/ui-site-tabs.editor-DDvQfH6S.js +5 -0
  930. package/dist/ui-site-tabs.editor-DDvQfH6S.js.map +1 -0
  931. package/dist/ui-site-tabs.js +53 -48
  932. package/dist/ui-site-tabs.js.map +1 -1
  933. package/dist/ui-slider.editor-BEaasx5Q.js +5 -0
  934. package/dist/ui-slider.editor-BEaasx5Q.js.map +1 -0
  935. package/dist/ui-slider.js +37 -38
  936. package/dist/ui-slider.js.map +1 -1
  937. package/dist/ui-space.editor-s-XVWFBN.js +5 -0
  938. package/dist/ui-space.editor-s-XVWFBN.js.map +1 -0
  939. package/dist/ui-space.js +9 -10
  940. package/dist/ui-space.js.map +1 -1
  941. package/dist/ui-split-panel.editor-Cvy5W7nk.js +5 -0
  942. package/dist/ui-split-panel.editor-Cvy5W7nk.js.map +1 -0
  943. package/dist/ui-split-panel.js +107 -68
  944. package/dist/ui-split-panel.js.map +1 -1
  945. package/dist/ui-stack.editor-D69Fky6H.js +5 -0
  946. package/dist/ui-stack.editor-D69Fky6H.js.map +1 -0
  947. package/dist/ui-stack.js +12 -13
  948. package/dist/ui-stack.js.map +1 -1
  949. package/dist/ui-statistic.editor-CBzYqbQ5.js +5 -0
  950. package/dist/ui-statistic.editor-CBzYqbQ5.js.map +1 -0
  951. package/dist/ui-statistic.js +28 -27
  952. package/dist/ui-statistic.js.map +1 -1
  953. package/dist/ui-statistics.editor-fzh3uk_b.js +5 -0
  954. package/dist/ui-statistics.editor-fzh3uk_b.js.map +1 -0
  955. package/dist/ui-step.editor-CYmNXrk_.js +5 -0
  956. package/dist/ui-step.editor-CYmNXrk_.js.map +1 -0
  957. package/dist/ui-step.js +62 -61
  958. package/dist/ui-step.js.map +1 -1
  959. package/dist/ui-steps.editor-BkMIrUrj.js +5 -0
  960. package/dist/ui-steps.editor-BkMIrUrj.js.map +1 -0
  961. package/dist/ui-sticky.editor-D7R1AlJv.js +5 -0
  962. package/dist/ui-sticky.editor-D7R1AlJv.js.map +1 -0
  963. package/dist/ui-sticky.js +10 -11
  964. package/dist/ui-sticky.js.map +1 -1
  965. package/dist/ui-submenu.editor-NdjS0em-.js +5 -0
  966. package/dist/ui-submenu.editor-NdjS0em-.js.map +1 -0
  967. package/dist/ui-summary.editor-CCHS1mVz.js +5 -0
  968. package/dist/ui-summary.editor-CCHS1mVz.js.map +1 -0
  969. package/dist/ui-tab.editor-DCS-gCZV.js +5 -0
  970. package/dist/ui-tab.editor-DCS-gCZV.js.map +1 -0
  971. package/dist/ui-tab.js +115 -117
  972. package/dist/ui-tab.js.map +1 -1
  973. package/dist/ui-table.editor-DJvfg9oG.js +5 -0
  974. package/dist/ui-table.editor-DJvfg9oG.js.map +1 -0
  975. package/dist/ui-table.js +272 -272
  976. package/dist/ui-table.js.map +1 -1
  977. package/dist/ui-tabs.editor-waeMoFNM.js +5 -0
  978. package/dist/ui-tabs.editor-waeMoFNM.js.map +1 -0
  979. package/dist/ui-term.editor-BMCF3jBM.js +5 -0
  980. package/dist/ui-term.editor-BMCF3jBM.js.map +1 -0
  981. package/dist/ui-terms.editor-BLfVVsjI.js +5 -0
  982. package/dist/ui-terms.editor-BLfVVsjI.js.map +1 -0
  983. package/dist/ui-terms.js +13 -12
  984. package/dist/ui-terms.js.map +1 -1
  985. package/dist/ui-text.editor-B6AENK13.js +5 -0
  986. package/dist/ui-text.editor-B6AENK13.js.map +1 -0
  987. package/dist/ui-text.js +37 -36
  988. package/dist/ui-text.js.map +1 -1
  989. package/dist/ui-textarea.editor-C25lVwrF.js +5 -0
  990. package/dist/ui-textarea.editor-C25lVwrF.js.map +1 -0
  991. package/dist/ui-theme-editor.editor-CQGAgy-Q.js +5 -0
  992. package/dist/ui-theme-editor.editor-CQGAgy-Q.js.map +1 -0
  993. package/dist/ui-theme-editor.js +448 -461
  994. package/dist/ui-theme-editor.js.map +1 -1
  995. package/dist/{ui-theme-menu-CuIjr8Ou.js → ui-theme-menu-BZYUMrHe.js} +356 -352
  996. package/dist/ui-theme-menu-BZYUMrHe.js.map +1 -0
  997. package/dist/ui-theme-menu.editor-DNeI-hxN.js +5 -0
  998. package/dist/ui-theme-menu.editor-DNeI-hxN.js.map +1 -0
  999. package/dist/ui-theme-token.editor-C2YAdEye.js +5 -0
  1000. package/dist/ui-theme-token.editor-C2YAdEye.js.map +1 -0
  1001. package/dist/ui-title.editor-40PZSOpn.js +5 -0
  1002. package/dist/ui-title.editor-40PZSOpn.js.map +1 -0
  1003. package/dist/ui-toast.editor-BDmIUsU_.js +5 -0
  1004. package/dist/ui-toast.editor-BDmIUsU_.js.map +1 -0
  1005. package/dist/ui-toast.js +141 -139
  1006. package/dist/ui-toast.js.map +1 -1
  1007. package/dist/ui-toc.editor-D_S1KFY_.js +5 -0
  1008. package/dist/ui-toc.editor-D_S1KFY_.js.map +1 -0
  1009. package/dist/ui-toc.js +52 -53
  1010. package/dist/ui-toc.js.map +1 -1
  1011. package/dist/ui-toolbar.editor-CNQ8nJmR.js +5 -0
  1012. package/dist/ui-toolbar.editor-CNQ8nJmR.js.map +1 -0
  1013. package/dist/ui-toolbar.js +254 -50
  1014. package/dist/ui-toolbar.js.map +1 -1
  1015. package/dist/ui-transition.editor-8SQkDkZ6.js +5 -0
  1016. package/dist/ui-transition.editor-8SQkDkZ6.js.map +1 -0
  1017. package/dist/ui-transition.js +13 -14
  1018. package/dist/ui-transition.js.map +1 -1
  1019. package/dist/ui-tree-diagram.editor-DkEK8i7J.js +5 -0
  1020. package/dist/ui-tree-diagram.editor-DkEK8i7J.js.map +1 -0
  1021. package/dist/ui-tree-diagram.js +128 -127
  1022. package/dist/ui-tree-diagram.js.map +1 -1
  1023. package/dist/ui-tree-item.editor-C4fuAlbJ.js +5 -0
  1024. package/dist/ui-tree-item.editor-C4fuAlbJ.js.map +1 -0
  1025. package/dist/ui-tree-node.editor-CB1z_w9F.js +5 -0
  1026. package/dist/ui-tree-node.editor-CB1z_w9F.js.map +1 -0
  1027. package/dist/ui-tree.editor-BoQztwdz.js +5 -0
  1028. package/dist/ui-tree.editor-BoQztwdz.js.map +1 -0
  1029. package/dist/ui-tree.js +393 -134
  1030. package/dist/ui-tree.js.map +1 -1
  1031. package/dist/ui-value.editor-CYak24cr.js +5 -0
  1032. package/dist/ui-value.editor-CYak24cr.js.map +1 -0
  1033. package/dist/ui-video.editor-CuWtFVjR.js +5 -0
  1034. package/dist/ui-video.editor-CuWtFVjR.js.map +1 -0
  1035. package/dist/ui-video.js +15 -14
  1036. package/dist/ui-video.js.map +1 -1
  1037. package/dist/ui-visibility.editor-Crx0DTlv.js +5 -0
  1038. package/dist/ui-visibility.editor-Crx0DTlv.js.map +1 -0
  1039. package/dist/ui-visibility.js +25 -26
  1040. package/dist/ui-visibility.js.map +1 -1
  1041. package/dist/ui-zoom.editor-DZ3HsWV4.js +5 -0
  1042. package/dist/ui-zoom.editor-DZ3HsWV4.js.map +1 -0
  1043. package/dist/ui-zoom.js +82 -83
  1044. package/dist/ui-zoom.js.map +1 -1
  1045. package/dist/util/TopLayerTip.d.ts +11 -2
  1046. package/dist/vocabulary/SharedVocabulary.d.ts +2 -0
  1047. package/dist/vocabulary/SharedVocabulary.es.d.ts +1 -0
  1048. package/dist/vocabulary/help.generated.d.ts +11 -0
  1049. package/dist/vocabulary/partsOfSpeech.generated.d.ts +6 -0
  1050. package/package.json +3 -3
  1051. package/dist/Dragging-CMZoLEWQ.js.map +0 -1
  1052. package/dist/MarkdownSanitizer-zTnnbrLe.js +0 -884
  1053. package/dist/MarkdownSanitizer-zTnnbrLe.js.map +0 -1
  1054. package/dist/PrefStore-Qv0e5y04.js.map +0 -1
  1055. package/dist/ScrollingRow-7n7Z-HIE.js +0 -88
  1056. package/dist/ScrollingRow-7n7Z-HIE.js.map +0 -1
  1057. package/dist/SitePages-CciwREek.js.map +0 -1
  1058. package/dist/SlottedItems-Du3aJwG1.js +0 -80
  1059. package/dist/SlottedItems-Du3aJwG1.js.map +0 -1
  1060. package/dist/UIButton-DFEds67r.js +0 -6
  1061. package/dist/UIButton-DFEds67r.js.map +0 -1
  1062. package/dist/UIInput-BodVbUoQ.js.map +0 -1
  1063. package/dist/UIKeys-Rh_gUZjP.js.map +0 -1
  1064. package/dist/UILabel-DgJUBzB_.js.map +0 -1
  1065. package/dist/UIMenu-zdcAtwTa.js +0 -42
  1066. package/dist/UIMenu-zdcAtwTa.js.map +0 -1
  1067. package/dist/UIRuntime-KH309p5B.js.map +0 -1
  1068. package/dist/UISegment-CMMIW7cZ.js.map +0 -1
  1069. package/dist/apple.palette-B4ivrNlM.js.map +0 -1
  1070. package/dist/classic-DCTQrteU.js.map +0 -1
  1071. package/dist/components.es-BOa_7gFF.js.map +0 -1
  1072. package/dist/crisp-VfYZlTph.js.map +0 -1
  1073. package/dist/crisp.theme-DRiePRdf.js +0 -6
  1074. package/dist/crisp.theme-DRiePRdf.js.map +0 -1
  1075. package/dist/dark-CbUdPe0a.js.map +0 -1
  1076. package/dist/dist-BLYIGZVK.js.map +0 -1
  1077. package/dist/emoji/cldr/0-DSUpV2d7.js.map +0 -1
  1078. package/dist/emoji/cldr/a-D_oB4vJ-.js.map +0 -1
  1079. package/dist/emoji/cldr/b-DX0W0Mda.js.map +0 -1
  1080. package/dist/emoji/cldr/c-DUHidpE9.js.map +0 -1
  1081. package/dist/emoji/cldr/d-CiCXZXay.js.map +0 -1
  1082. package/dist/emoji/cldr/e-DILJo3Ri.js.map +0 -1
  1083. package/dist/emoji/cldr/f-ByGFLyOq.js.map +0 -1
  1084. package/dist/emoji/cldr/g-BZ0FRsud.js.map +0 -1
  1085. package/dist/emoji/cldr/h-jtLdvRXQ.js.map +0 -1
  1086. package/dist/emoji/cldr/i-DcbJ5utE.js.map +0 -1
  1087. package/dist/emoji/cldr/j-BuEqP5nz.js.map +0 -1
  1088. package/dist/emoji/cldr/k-P1J6Gvze.js.map +0 -1
  1089. package/dist/emoji/cldr/l-28XcbsPr.js.map +0 -1
  1090. package/dist/emoji/cldr/m-DKgGJ8rW.js.map +0 -1
  1091. package/dist/emoji/cldr/n-DmPLP4F3.js.map +0 -1
  1092. package/dist/emoji/cldr/o-f98nt3s7.js.map +0 -1
  1093. package/dist/emoji/cldr/p-CxnsOTOt.js.map +0 -1
  1094. package/dist/emoji/cldr/r-D0GPRJ-Q.js.map +0 -1
  1095. package/dist/emoji/cldr/s-DcFuepnw.js.map +0 -1
  1096. package/dist/emoji/cldr/t-BvHgGpUr.js.map +0 -1
  1097. package/dist/emoji/cldr/u-ChFYHtUf.js.map +0 -1
  1098. package/dist/emoji/cldr/v-WmX3nWtZ.js.map +0 -1
  1099. package/dist/emoji/cldr/w-BPySQUWW.js.map +0 -1
  1100. package/dist/emoji/cldr/x-SC3r1n9O.js +0 -6
  1101. package/dist/emoji/cldr/x-SC3r1n9O.js.map +0 -1
  1102. package/dist/emoji/cldr/y-zB_yhTFg.js.map +0 -1
  1103. package/dist/emoji/cldr/z-BgJ94Cap.js.map +0 -1
  1104. package/dist/emoji/fomantic/0-CGf6gC3a.js +0 -10
  1105. package/dist/emoji/fomantic/0-CGf6gC3a.js.map +0 -1
  1106. package/dist/emoji/fomantic/a-CrqYlC21.js.map +0 -1
  1107. package/dist/emoji/fomantic/b-DneVHRdQ.js.map +0 -1
  1108. package/dist/emoji/fomantic/c-ClxKRuir.js.map +0 -1
  1109. package/dist/emoji/fomantic/d-Djqs_y4s.js.map +0 -1
  1110. package/dist/emoji/fomantic/e-CuF-jOQd.js.map +0 -1
  1111. package/dist/emoji/fomantic/f-D8VglrJ4.js.map +0 -1
  1112. package/dist/emoji/fomantic/g-Du_HFl6U.js.map +0 -1
  1113. package/dist/emoji/fomantic/h-CLE5tHnM.js.map +0 -1
  1114. package/dist/emoji/fomantic/i-BjOsrQDZ.js.map +0 -1
  1115. package/dist/emoji/fomantic/j-CyUDXKCu.js.map +0 -1
  1116. package/dist/emoji/fomantic/k-Clypg4R8.js.map +0 -1
  1117. package/dist/emoji/fomantic/l-DvLPdBh-.js.map +0 -1
  1118. package/dist/emoji/fomantic/m-B1lIb1kP.js.map +0 -1
  1119. package/dist/emoji/fomantic/n-Bgpp_ht5.js.map +0 -1
  1120. package/dist/emoji/fomantic/o-BhYZzpjp.js.map +0 -1
  1121. package/dist/emoji/fomantic/p-VLL0GK3m.js.map +0 -1
  1122. package/dist/emoji/fomantic/q-CKrtMwhc.js +0 -6
  1123. package/dist/emoji/fomantic/q-CKrtMwhc.js.map +0 -1
  1124. package/dist/emoji/fomantic/r-Bd1DjkkI.js.map +0 -1
  1125. package/dist/emoji/fomantic/s-Bqatw1W7.js.map +0 -1
  1126. package/dist/emoji/fomantic/t-Bs7IFhv3.js.map +0 -1
  1127. package/dist/emoji/fomantic/u-M6GfYC-U.js.map +0 -1
  1128. package/dist/emoji/fomantic/v-BKHNqkn0.js.map +0 -1
  1129. package/dist/emoji/fomantic/w-B_XvIu7h.js.map +0 -1
  1130. package/dist/emoji/fomantic/x-CG1_nzCF.js +0 -9
  1131. package/dist/emoji/fomantic/x-CG1_nzCF.js.map +0 -1
  1132. package/dist/emoji/fomantic/y-DPZaoIla.js.map +0 -1
  1133. package/dist/emoji/fomantic/z-FH-kPXch.js.map +0 -1
  1134. package/dist/fruity-BRVlgJZd.js +0 -6
  1135. package/dist/fruity-BRVlgJZd.js.map +0 -1
  1136. package/dist/fruity.theme-CbC7Jyvk.js.map +0 -1
  1137. package/dist/glass-x9tbbwVq.js +0 -6
  1138. package/dist/glass-x9tbbwVq.js.map +0 -1
  1139. package/dist/glass.theme-24wY2wH9.js +0 -6
  1140. package/dist/glass.theme-24wY2wH9.js.map +0 -1
  1141. package/dist/matrix-QY2gWbJ0.js +0 -6
  1142. package/dist/matrix-QY2gWbJ0.js.map +0 -1
  1143. package/dist/matrix.theme-_8xtwhDq.js +0 -6
  1144. package/dist/matrix.theme-_8xtwhDq.js.map +0 -1
  1145. package/dist/merlot-DOXLuUaU.js.map +0 -1
  1146. package/dist/merlot.theme-S-QnNGsw.js +0 -6
  1147. package/dist/merlot.theme-S-QnNGsw.js.map +0 -1
  1148. package/dist/midnight-BxlTQSfw.js.map +0 -1
  1149. package/dist/midnight.theme-wXbqRYLy.js +0 -6
  1150. package/dist/midnight.theme-wXbqRYLy.js.map +0 -1
  1151. package/dist/mockup-83ELBuVr.js +0 -6
  1152. package/dist/mockup-83ELBuVr.js.map +0 -1
  1153. package/dist/mockup.theme-DmpBgGBl.js +0 -6
  1154. package/dist/mockup.theme-DmpBgGBl.js.map +0 -1
  1155. package/dist/paper-M61nUilz.js.map +0 -1
  1156. package/dist/paper.theme-B8R5Jn5H.js +0 -6
  1157. package/dist/paper.theme-B8R5Jn5H.js.map +0 -1
  1158. package/dist/persist.types-D2m6wD-S.js.map +0 -1
  1159. package/dist/pop-CxXfytjk.js.map +0 -1
  1160. package/dist/pop.theme-CXzv8B9x.js +0 -6
  1161. package/dist/pop.theme-CXzv8B9x.js.map +0 -1
  1162. package/dist/search-CzSzx7bX.js.map +0 -1
  1163. package/dist/spell-By5Y3jKP.js +0 -6
  1164. package/dist/spell-By5Y3jKP.js.map +0 -1
  1165. package/dist/spell.theme-DxGj7qHx.js +0 -6
  1166. package/dist/spell.theme-DxGj7qHx.js.map +0 -1
  1167. package/dist/styles.en-CUUxNwHo.js.map +0 -1
  1168. package/dist/ui-theme-menu-CuIjr8Ou.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ui-toast.js","names":["this","ref={(element) => this.box = element}","<Show when={this.progress === UIT.TOP}>{this.progressBar()}</Show>","<div\n ref={(element) => this.box = element}\n class={this.boxClasses}\n part={this.partForName(\"box\")}\n onClick={this.onClick}\n onKeyDown={this.onKeyDown}\n >\n <Show when={this.progress === UIT.TOP}>{this.progressBar()}</Show>\n <Show when={this.actionsAreAttached && !this.actionsAreVertical && this.actionWords.has(UIT.TOP)}>\n {this.actionsBox()}\n </Show>\n <Show when={this.actionsAreAttached && this.actionsAreVertical} fallback={this.toast()}>\n <div class={this.verticalClasses}>\n <Show when={this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>\n {this.toast()}\n <Show when={!this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>\n </div>\n </Show>\n <Show when={this.actionsAreAttached && !this.actionsAreVertical && !this.actionWords.has(UIT.TOP)}>\n {this.actionsBox()}\n </Show>\n <Show when={this.progress === UIT.BOTTOM}>{this.progressBar()}</Show>\n </div>","<Show when={this.actionsAreAttached && !this.actionsAreVertical && this.actionWords.has(UIT.TOP)}>\n {this.actionsBox()}\n </Show>","this.actionsAreAttached && !this.actionsAreVertical && this.actionWords.has(UIT.TOP)","<Show when={this.actionsAreAttached && this.actionsAreVertical} fallback={this.toast()}>\n <div class={this.verticalClasses}>\n <Show when={this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>\n {this.toast()}\n <Show when={!this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>\n </div>\n </Show>","this.actionsAreAttached && this.actionsAreVertical","<Show when={this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>","<div class={this.verticalClasses}>\n <Show when={this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>\n {this.toast()}\n <Show when={!this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>\n </div>","<Show when={!this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>","<Show when={this.actionsAreAttached && !this.actionsAreVertical && !this.actionWords.has(UIT.TOP)}>\n {this.actionsBox()}\n </Show>","this.actionsAreAttached && !this.actionsAreVertical && !this.actionWords.has(UIT.TOP)","<Show when={this.progress === UIT.BOTTOM}>{this.progressBar()}</Show>","part={this.partForName(\"box\")}","<Show when={this.iconName !== void 0}>\n <span class={ICON_BOX_CLASS} part={this.partForName(\"icon\")}>\n {this.iconGlyph.svg}\n </span>\n </Show>","part={this.partForName(\"icon\")}","<span class={ICON_BOX_CLASS} part={this.partForName(\"icon\")}>\n {this.iconGlyph.svg}\n </span>","<div class={this.rootClass} part={this.partForName(\"toast\")} role={this.type === ERROR ? \"alert\" : \"status\"}>\n <Show when={this.iconName !== void 0}>\n <span class={ICON_BOX_CLASS} part={this.partForName(\"icon\")}>\n {this.iconGlyph.svg}\n </span>\n </Show>\n <div class={UIT.CONTENT} part={this.partForName(\"content\")}>\n <Show when={this.heading}>\n <div class={UIT.HEADER} part={this.partForName(\"header\")}>\n {this.heading}\n </div>\n </Show>\n <Show when={this.message}>\n <div class={UIT.MESSAGE} part={this.partForName(\"message\")}>\n {this.message}\n </div>\n </Show>\n <slot />\n </div>\n {this.closeButton.draw()}\n <Show when={this.hasActions && !this.actionsAreAttached}>{this.actionsBox()}</Show>\n </div>","<Show when={this.heading}>\n <div class={UIT.HEADER} part={this.partForName(\"header\")}>\n {this.heading}\n </div>\n </Show>","part={this.partForName(\"header\")}","<div class={UIT.HEADER} part={this.partForName(\"header\")}>\n {this.heading}\n </div>","<div class={UIT.CONTENT} part={this.partForName(\"content\")}>\n <Show when={this.heading}>\n <div class={UIT.HEADER} part={this.partForName(\"header\")}>\n {this.heading}\n </div>\n </Show>\n <Show when={this.message}>\n <div class={UIT.MESSAGE} part={this.partForName(\"message\")}>\n {this.message}\n </div>\n </Show>\n <slot />\n </div>","<Show when={this.message}>\n <div class={UIT.MESSAGE} part={this.partForName(\"message\")}>\n {this.message}\n </div>\n </Show>","part={this.partForName(\"message\")}","<div class={UIT.MESSAGE} part={this.partForName(\"message\")}>\n {this.message}\n </div>","<Show when={this.hasActions && !this.actionsAreAttached}>{this.actionsBox()}</Show>","this.hasActions && !this.actionsAreAttached","part={this.partForName(\"toast\")}","role={this.type === ERROR ? \"alert\" : \"status\"}","class={UIT.CONTENT}","part={this.partForName(\"content\")}","part={this.partForName(\"actions\")}","name={this.slotForName(ACTIONS)}","<div class={this.actionsClasses} part={this.partForName(\"actions\")}>\n <slot name={this.slotForName(ACTIONS)} />\n </div>","<Show when={this.displayDuration > 0}>\n <div class={this.progressClasses} part={this.partForName(\"progress\")}>\n <div\n class={this.barClasses}\n part={this.partForName(\"bar\")}\n data-ui-motion={ESSENTIAL}\n style={{ \"animation-duration\": `${this.displayDuration}ms` }}\n />\n </div>\n </Show>","part={this.partForName(\"progress\")}","class={this.barClasses}","part={this.partForName(\"bar\")}","\"animation-duration\": `${this.displayDuration}ms`","<div class={this.progressClasses} part={this.partForName(\"progress\")}>\n <div\n class={this.barClasses}\n part={this.partForName(\"bar\")}\n data-ui-motion={ESSENTIAL}\n style={{ \"animation-duration\": `${this.displayDuration}ms` }}\n />\n </div>","E.DOMElement","E.UIComponent","E.proto","E.protoMerged","E.derived","E.onChange","E.cssState","E.state","E.on","E.SlotContent","E.IconGlyph","E.CloseButton","E.Disclosure","UIT.WHITESPACE","UIT.LEFT","UIT.BOTTOM","UIT.ACTIVE","_$createComponent","_$memo","_$readShallow","_$setAttribute","UIT.HEADER","UIT.MESSAGE","_$getOwner","UIT.CONTENT","_$setStyleProperty","E.after","__name","toastCSS","_$delegateEvents","UIT.WHITESPACE","UIT.FLUID","UIT.BUTTON","UIT.ICON","containerCSS","E.isBrowser","ICON","ModalActions","__name$1","HEADER","Key","WHITESPACE","__publicField","LEFT","__decorateElement","MESSAGE","__decoratorMetadata","__runInitializers","__privateAdd","BUTTON","CONTENT","ToggleCommands","ACTIVE","BOTTOM","FLUID","__decoratorStart","getOwner$1","toastVocabulary","ACTIONS","ATTACHED","INVERTED","VERTICAL","UIToast_default","_tmpl$","_tmpl$2","_tmpl$3","_tmpl$4","_tmpl$5","_tmpl$6","_tmpl$7","_onCommand_dec","_onFocusOut_dec","_onFocusIn_dec","_onPointerLeave_dec","_onPointerMove_dec","_onPointerEnter_dec","_isPaused_dec","_countdownHasStarted_dec","_displayDuration_dec","_isClosing_dec","_onConnectedChanged_dec","_barClasses_dec","_progressClasses_dec","_actionsClasses_dec","_verticalClasses_dec","_boxClasses_dec","_actionWords_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_isClosing","_countdownHasStarted","_isPaused","DOMElement","_UIToast","UIComponent","proto","protoMerged","derived","onChange","cssState","state","on","args","SlotContent","IconGlyph","CloseButton","event","reason","Disclosure","open","found","kind","action","detail","FORM_CONTROLS","OwnControls","allowed","ValueSets","words","word","actions","COMPACT","FLOATING","TOAST_BOX","UNCLICKABLE","UI_BUTTONS","PROGRESS","UP","DOWN","PROGRESSING","icon","TYPE_ICONS","NEUTRAL","_self$","_el$","_el$2","_el$3","_el$8","_el$9","_el$10","addEvent","ref","element","insert","createComponent","Show","memo","_el$4","_el$5","_el$6","_el$7","effect","readShallow","_v$","_$p","className","_p$","t","setAttribute","_self$2","_el$11","_el$13","_el$15","_el$17","_el$18","_el$19","_el$12","ICON_BOX_CLASS","_el$14","_el$16","ERROR","a","o","i","_self$3","_el$20","_el$21","_self$4","_el$22","_el$23","ESSENTIAL","setStyleProperty","isConnected","isReady","UI","box","SCALE","originalEvent","value","time","body","node","NodeType","MIN_DISPLAY_TIME","WORDS_PER_MINUTE","after","slotName","target","BUTTONS","UIToast","delegateEvents","UIToast_container_default","ToastStack","document","id","options","ID_PREFIX","toast","container","settle","closed","resolve","HIDE_EVENT","showIcon","attributes","DEFAULT_DISPLAY_TIME","TYPE_WORDS","HUES","name","layout","buttons","group","GROUP_NOUN","fragment","button","buttonsElement","definition","known","KEY_ONLY","switches","old","before","COLOR","click","spec","vocabulary","MULTIPLE","noun","position","DEFAULT_POSITION","ToastPositions","Warnings","key","existing","CONTAINER_SHEET","CONTAINER_CLASS","NOTIFICATIONS","record","isBrowser"],"sources":["../src/components/ui-toast/UIToast.en.ts","../src/components/ui-toast/UIToast.types.ts","../src/components/ui-toast/UIToast.css?inline","../src/components/ui-toast/UIToast.tsx","../src/components/ui-toast/UIToast.container.css?inline","../src/components/ui-toast/ToastStack.ts","../src/components/ui-toast/index.ts"],"sourcesContent":["/**\n * Every name `<ui-toast>` uses: tag, attributes (kind + allowed values), events, slots, parts, states, texts.\n * Schema: `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-toast type=\"success\" inverted>` => `ui success inverted toast`. The element adds the layout words after\n * the noun (`vertical`, `actions`, `attached top`, `compact`), as Fomantic's JS did.\n * - `type` and `color` are both remaps (`colors.css`); `type` is `kind: \"valueOnly\"` because it emits its value alone\n * (`ui success toast`), as message's `state` does.\n * `neutral` (the default look) has no remap: `UIToast.css` owns it.\n * - `UI.toast({...})` (`ToastStack`) builds one of these per call, in a container per position;\n * a `<ui-toast>` written in the page shows where it is.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `<ui-toast>`\n * A toast: `<div class=\"floating toast-box\" part=\"box\">` around `<div class=\"ui ... toast\" part=\"toast\">`,\n * an optional progress bar and attached actions.\n ****************/\nexport const toastVocabulary = {\n tag: \"ui-toast\",\n icon: \"bell\",\n topics: [\"notifications\", \"messages\", \"feedback\", \"overlays\", \"modules\"],\n aka: [\"snackbar\", \"notification\", \"growl\", \"flash message\", \"toaster\"],\n noun: \"toast\",\n description: \"A toast gives people a short, non-blocking notification.\",\n attributes: [\n {\n name: \"type\",\n group: \"appearance\",\n kind: \"valueOnly\",\n values: [\"info\", \"success\", \"warning\", \"error\", \"neutral\"],\n description: \"Consequence (Fomantic's `class`), tinting it like a colour; `error` also announces it as an alert.\"\n },\n { name: \"color\", group: \"appearance\", kind: \"color\", description: \"Hue: a filled toast in that colour.\" },\n {\n name: \"inverted\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description: \"The dark scheme; a coloured one takes its light variant.\"\n },\n {\n name: \"heading\",\n replaces: [\"header\"],\n group: \"name\",\n kind: \"string\",\n description: \"Bold first line (Fomantic's `title`). Its old name was `header`.\"\n },\n { name: \"message\", group: \"appearance\", kind: \"string\", description: \"Body text; slotted content follows it.\" },\n {\n name: \"icon\",\n group: \"content\",\n kind: \"icon\",\n description:\n 'Icon name beside the content; bare `icon` (or `\"true\"`, as frameworks write it) uses the type\\'s own ' +\n \"(info, check, warning, cross).\"\n },\n {\n name: \"closable\",\n group: \"behaviour\",\n kind: \"boolean\",\n description: \"Shows a close icon (Fomantic's `closeIcon`).\"\n },\n {\n name: \"close-on-click\",\n group: \"appearance\",\n kind: \"boolean\",\n default: true,\n description:\n \"A click anywhere on it closes it (Fomantic's `closeOnClick`); off anyway with `closable`, actions or \" +\n \"form controls inside.\"\n },\n {\n name: \"display-time\",\n group: \"behaviour\",\n kind: \"string\",\n description:\n \"Milliseconds before it closes itself; absent or `0` keeps it until closed; `auto` ~== reading time \" +\n \"(120 words a minute, at least a second). `UI.toast()` defaults to `3000`.\"\n },\n {\n name: \"progress\",\n group: \"appearance\",\n kind: \"enum\",\n values: [\"top\", \"bottom\"],\n description: \"Shows a bar counting the display time down, at the `top` or `bottom` (Fomantic's `showProgress`).\"\n },\n { name: \"progress-up\", group: \"behaviour\", kind: \"boolean\", description: \"The bar fills up instead of emptying.\" },\n {\n name: \"pause-on-hover\",\n group: \"behaviour\",\n kind: \"boolean\",\n default: true,\n description: \"Pauses the countdown while the pointer is over it. Focus inside ALWAYS pauses it.\"\n },\n {\n name: \"compact\",\n group: \"layout\",\n kind: \"boolean\",\n default: true,\n description: 'A fixed width (350px); `compact=\"false\"` sizes it to its content.'\n },\n {\n name: \"actions\",\n group: \"appearance\",\n kind: \"string\",\n values: [\"basic\", \"left\", \"attached\", \"vertical\", \"top\", \"bottom\"],\n description:\n \"Layout words of the `actions` slot (Fomantic's `classActions`): `basic` (no bar), `left` (aligned left), \" +\n \"`attached` (joined below, or `attached top` above), `vertical` (a column beside the content).\"\n }\n ],\n events: [\n {\n name: \"ui-opened\",\n detail: \"{ displayTime: number }\",\n description: \"Shown, its entry animation finished (Fomantic's `onVisible`); the countdown has started.\"\n },\n {\n name: \"ui-closing\",\n detail: \"{ reason: ToastCloseReason, originalEvent?: Event }\",\n cancelable: true,\n description:\n \"About to close: the countdown ran out, the close icon, a click, Escape inside it, an action, a `--close` invoker command. \" +\n \"`preventDefault()` keeps it (Fomantic's `onHide` returning `false`).\"\n },\n {\n name: \"ui-closed\",\n detail: \"{ reason: ToastCloseReason }\",\n description:\n \"Closed, its exit animation finished (Fomantic's `onHidden`); the host is `hidden` now. \" +\n \"`UI.toast()` removes its toasts here.\"\n },\n {\n name: \"ui-approving\",\n detail: \"{ action: Element, originalEvent?: Event }\",\n cancelable: true,\n description:\n \"An approve action (`.approve` / `.ok` / `.positive`, `<ui-button positive>`) was activated; \" +\n \"`preventDefault()` keeps the toast open.\"\n },\n {\n name: \"ui-denying\",\n detail: \"{ action: Element, originalEvent?: Event }\",\n cancelable: true,\n description:\n \"A deny action (`.deny` / `.cancel` / `.negative`, `<ui-button negative>`) was activated; \" +\n \"`preventDefault()` keeps the toast open.\"\n }\n ],\n slots: [\n { name: \"\", description: \"Rich content, after the `message`.\" },\n {\n name: \"actions\",\n description:\n \"Buttons: `<ui-button>`s, or a `<ui-buttons>` group for `attached` actions. Any activated one closes \" +\n \"the toast unless its click was `preventDefault()`ed.\"\n }\n ],\n parts: [\n { name: \"box\", description: \"The toast box around the toast, its progress bar and attached actions.\" },\n { name: \"toast\", description: \"The toast itself (`role=status`, `alert` for errors).\" },\n { name: \"icon\", description: \"The icon box.\" },\n { name: \"content\", description: \"The content block: header, message, slot.\" },\n { name: \"header\", description: \"The `header` shorthand.\" },\n { name: \"message\", description: \"The `message` shorthand.\" },\n { name: \"close\", description: \"The close icon of a `closable` toast.\" },\n { name: \"actions\", description: \"The box around the `actions` slot.\" },\n { name: \"progress\", description: \"The progress bar's track.\" },\n { name: \"bar\", description: \"The progress bar.\" }\n ],\n states: [\n { name: \"paused\", description: \"Countdown paused: pointer over it, or focus inside.\" },\n { name: \"closing\", description: \"Closing: its exit animation is running.\" }\n ],\n texts: [\n { key: \"close\", text: \"Close\", description: \"Accessible name of the close icon.\" },\n {\n key: \"notifications\",\n text: \"Notifications\",\n description: \"Accessible name of each `UI.toast()` container (a `region` landmark).\"\n }\n ]\n} as const satisfies E.ComponentVocabulary\n","/**\n * The constants and types the `ui-toast` family's files share: `UIToast` and `ToastStack`.\n * - Pure data, at the bottom of the folder's imports: `import type` only, so node can load it (`yarn site:data`).\n * - A constant only one class reads sits below that class (epic `wwod-spell-ui`, Q18).\n */\n\nimport type { toastVocabulary } from \"./UIToast.en\"\n\n/** The vocabulary type, for brevity. */\nexport type Vocabulary = typeof toastVocabulary\n\n////////////////\n// ## Markup contract\n////////////////\n\n/** The `actions` word: the actions box's class and part, and the slot of the buttons. */\nexport const ACTIONS = \"actions\"\n\n/** The `attached` word: an `actions` layout word, and its class. */\nexport const ATTACHED = \"attached\"\n\n/** The `inverted` word: an attribute, a class, a `class` word `UI.toast()` sorts. */\nexport const INVERTED = \"inverted\"\n\n/** The `vertical` word: an `actions` layout word, and its class. */\nexport const VERTICAL = \"vertical\"\n\n/** The `ui` word of Fomantic's grammar, which the toast's extra boxes (bar, containers) spell out themselves. */\nexport const UI_WORD = \"ui\"\n","/*\n * `<ui-toast>`: port of Fomantic's `toast.less` + `toast.variables`\n * (the toast box and toast; the container is `UIToast.container.css`, a page sheet).\n * - Shadow markup contract (class grammar on semantic elements; a toast has no better element than `<div>`):\n * `<div class=\"floating toast-box [compact] [unclickable]\" part=\"box\">`, holding in order:\n * - `progress=\"top\"`: `<div class=\"ui attached active progress top [type] [color] [inverted]\" part=\"progress\">`\n * around `<div class=\"bar down|up [progressing]\" part=\"bar\">` (`animation-duration` inline)\n * - `attached top` actions: `<div class=\"ui buttons attached top actions\" part=\"actions\"><slot name=\"actions\">`\n * - the toast: `<div class=\"ui [type] [color] [inverted] toast [vertical] [actions] [attached top|bottom|left]\n * [compact]\" part=\"toast\" role=\"status|alert\">` holding\n * - `<span class=\"centered icon\" part=\"icon\">svg</span>` with an icon\n * - `<div class=\"content\" part=\"content\">`, ALWAYS:\n * `<div class=\"header\" part=\"header\">`, `<div class=\"message\" part=\"message\">`, the default `<slot>`\n * - `closable`: `<button type=\"button\" class=\"close icon\" part=\"close\" aria-label=\"...\">svg</button>`\n * - actions that aren't attached: `<div class=\"[words] actions\" part=\"actions\"><slot name=\"actions\">`\n * - `vertical attached` actions wrap the toast and their box in `<div class=\"vertical attached [compact]\">`\n * - `attached` (bottom) actions, then `progress=\"bottom\"`\n * - Colours: `type` (`info success warning error`) and `color` (hues) are remaps (`colors.css`);\n * one rule fills the toast with `--ui-color` and its contrast-picked `--ui-color-on`.\n * - `neutral` (the default) is the page surface.\n * - `inverted`: a plain toast turns dark, a coloured one takes the hue's inverted variant.\n * - Slotted actions: `<ui-button>`s (or a `<ui-buttons>` group for `attached` layouts, whose own sheet joins them);\n * this sheet only places them.\n * - Public tokens (`--ui-toast-*`, the theming surface) are NEVER declared here:\n * the box's token block reads each through a private alias, and every rule reads the alias:\n * `--_ui-toast-radius: var(--ui-toast-radius, var(--ui-radius))`.\n * So a value set on `:root`, an ancestor, the DOM element, `::part(box)` or in the app stylesheet\n * reaches the toast (`notes/theming.md` \"Component tokens\").\n * The container's `--ui-toast-container-distance` likewise (`UIToast.container.css`).\n * - Countdown: the progress bar's `progressing` animation runs while `:state(paused)` is off.\n * - It is `data-ui-motion=\"essential\"` (it IS the remaining time), so reduced motion keeps it (`reset.css`).\n * - The entry / exit animations are `UI.transitions`' `scale`, timed by `--ui-toast-duration`.\n * - NOTE: left out, on purpose:\n * - `.ui.message` / `.ui.card` toasts (Fomantic's `$('.ui.message').toast()`): a toast is a `<ui-toast>`;\n * slot a message's content instead\n * - image toasts (`showImage`, `classImage`) and the left close icon (`closeIcon: 'left'`)\n * - `opacity` / `hoverfloating`: toasts are always opaque and `floating`\n * - `center aligned` / `centered` toast CONTENT (the `centered` icon stays: vertically centred)\n */\n\n@layer ui.components.toast.types, ui.components.toast.content, ui.components.toast.variations, ui.components.toast.states;\n\n/*******************************\n Toast box\n*******************************/\n\n@layer ui.components.toast.types {\n :host {\n display: block;\n }\n\n /* Tokens: one private alias per `toast.variables` entry that still matters, from the global tokens. */\n .toast-box {\n --_ui-toast-width: var(--ui-toast-width, 350px);\n --_ui-toast-mobile-width: var(--ui-toast-mobile-width, 280px);\n --_ui-toast-radius: var(--ui-toast-radius, var(--ui-radius));\n --_ui-toast-padding: var(--ui-toast-padding, 0.78571429em 1em);\n --_ui-toast-font-size: var(--ui-toast-font-size, var(--ui-font-size));\n --_ui-toast-box-margin: var(--ui-toast-box-margin, 0.5em);\n --_ui-toast-background: var(--ui-toast-background, var(--ui-surface));\n --_ui-toast-color: var(--ui-toast-color, var(--ui-text-color));\n --_ui-toast-inverted-background: var(--ui-toast-inverted-background, var(--ui-surface));\n --_ui-toast-border: var(--ui-toast-border, 1px solid var(--ui-border-color));\n --_ui-toast-inverted-border: var(\n --ui-toast-inverted-border,\n 1px solid oklch(from var(--ui-ink-on-dark) l c h / 0.5)\n );\n --_ui-toast-shadow: var(--ui-toast-shadow, var(--ui-shadow-floating));\n --_ui-toast-duration: var(--ui-toast-duration, var(--ui-duration-slower));\n --_ui-toast-icon-size: var(--ui-toast-icon-size, 1.5em);\n --_ui-toast-icon-padding: var(--ui-toast-icon-padding, 3em);\n --_ui-toast-close-distance: var(--ui-toast-close-distance, 0.3em);\n --_ui-toast-close-opacity: var(--ui-toast-close-opacity, 0.7);\n /* Fomantic's white wash lifts a light toast; on a dark one it's a grey band, so the dark scheme shades instead */\n --_ui-toast-action-background: var(\n --ui-toast-action-background,\n light-dark(oklch(1 0 0 / 0.25), oklch(0 0 0 / 0.2))\n );\n --_ui-toast-action-border: var(--ui-toast-action-border, 1px solid oklch(0 0 0 / 0.2));\n --_ui-toast-action-margin: var(--ui-toast-action-margin, -1em);\n --_ui-toast-action-margin-top: var(--ui-toast-action-margin-top, 0.5em);\n --_ui-toast-action-margin-left: var(--ui-toast-action-margin-left, 1em);\n --_ui-toast-action-gap: var(--ui-toast-action-gap, 0.3em);\n --_ui-toast-action-padding: var(--ui-toast-action-padding, 0.5em);\n --_ui-toast-action-padding-bottom: var(--ui-toast-action-padding-bottom, 0.75em);\n --_ui-toast-progress-height: var(--ui-toast-progress-height, 0.2em);\n --ui-animation-duration: var(--_ui-toast-duration);\n position: relative;\n box-sizing: border-box;\n display: block;\n width: fit-content;\n max-width: 100%;\n margin: 0 0 var(--_ui-toast-box-margin);\n border-radius: var(--_ui-toast-radius);\n font-size: var(--_ui-toast-font-size);\n line-height: var(--ui-line-height);\n cursor: default;\n will-change: transform, opacity;\n }\n .toast-box:not(.unclickable):hover {\n cursor: var(--ui-control-cursor);\n }\n :host(:last-child) > .toast-box {\n margin-bottom: 0;\n }\n\n /*******************************\n Toast\n *******************************/\n\n .ui.toast {\n position: relative;\n box-sizing: border-box;\n display: block;\n margin: 0;\n padding: var(--_ui-toast-padding);\n border-radius: var(--_ui-toast-radius);\n background: var(--ui-color, var(--_ui-toast-background));\n color: var(--ui-color-on, var(--_ui-toast-color));\n }\n .ui.toast > .content > .header {\n margin: 0;\n color: inherit;\n font-weight: var(--ui-font-weight-bold);\n }\n .ui.toast > .content > .message {\n color: inherit;\n }\n}\n\n/*******************************\n Content\n*******************************/\n\n@layer ui.components.toast.content {\n /* Icon: large, beside the content, vertically centred. */\n .ui.toast > .icon:not(.close) {\n position: absolute;\n top: 50%;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 1em;\n height: 1em;\n font-size: var(--_ui-toast-icon-size);\n transform: translateY(-50%);\n }\n .ui.toast > .icon:not(.close) > svg {\n width: 1em;\n height: 1em;\n }\n .ui.toast > .icon:not(.close) + .content {\n min-height: 1.5em;\n padding-inline-start: var(--_ui-toast-icon-padding);\n }\n .ui.vertical.toast > .icon:not(.close) {\n position: static;\n align-self: center;\n flex-shrink: 0;\n transform: none;\n }\n .ui.vertical.toast > .icon:not(.close) + .content {\n padding-inline-start: 1em;\n }\n .ui.actions.toast:not(.vertical) > .centered.icon {\n top: calc(50% - 1.2em);\n }\n\n /* Close icon: a bare button, top right. */\n .ui.toast > .close.icon {\n position: absolute;\n top: var(--_ui-toast-close-distance);\n right: var(--_ui-toast-close-distance);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 1.5em;\n height: 1.5em;\n margin: 0;\n padding: 0.25em;\n border: 0;\n border-radius: var(--ui-radius-s);\n background: none;\n color: inherit;\n font: inherit;\n opacity: var(--_ui-toast-close-opacity);\n cursor: var(--ui-control-cursor);\n transition: opacity var(--ui-duration-normal) var(--ui-ease);\n }\n .ui.toast > .close.icon:hover,\n .ui.toast > .close.icon:focus-visible {\n opacity: 1;\n }\n .ui.toast > .close.icon > svg {\n width: 1em;\n height: 1em;\n }\n .ui.toast:has(> .close.icon) > .content {\n padding-inline-end: 1.5em;\n }\n .ui.vertical.toast > .close.icon {\n position: static;\n align-self: flex-start;\n order: 1;\n margin: calc(var(--_ui-toast-close-distance) * -1) calc(var(--_ui-toast-close-distance) * -1) 0 0;\n }\n\n /* Actions: a bar across the bottom, buttons at the end. */\n .ui.toast .actions {\n margin: var(--_ui-toast-action-margin-top) var(--_ui-toast-action-margin) var(--_ui-toast-action-margin);\n padding: var(--_ui-toast-action-padding) var(--_ui-toast-action-padding) var(--_ui-toast-action-padding-bottom);\n text-align: right;\n }\n .ui.toast .actions:not(.basic, .attached) {\n border-top: var(--_ui-toast-action-border);\n border-end-start-radius: var(--_ui-toast-radius);\n border-end-end-radius: var(--_ui-toast-radius);\n background: var(--_ui-toast-action-background);\n }\n /*\n * A bar that ends the toast takes the place of its bottom padding: the bar's `-1em` is more than that padding\n * (Fomantic's too), so it hung past the toast's bottom edge and rounded corners.\n */\n .ui.toast:has(> .actions:not(.basic, .attached, .vertical):last-child) {\n padding-bottom: 0;\n }\n .ui.toast > .actions:not(.basic, .attached, .vertical):last-child {\n margin-bottom: 0;\n }\n .ui.toast .left.actions {\n text-align: left;\n }\n .actions > ::slotted(*) {\n margin-inline-start: var(--_ui-toast-action-gap);\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.toast.variations {\n /* Compact: a fixed width. */\n .toast-box.compact,\n .toast-box > .compact {\n width: var(--_ui-toast-width);\n }\n\n /* Floating: lifted with a shadow and hairline border. */\n .toast-box.floating {\n border: var(--_ui-toast-border);\n box-shadow: var(--_ui-toast-shadow);\n }\n .toast-box.floating:has(> .inverted.toast) {\n border: var(--_ui-toast-inverted-border);\n }\n\n /* Neutral: the page surface, like no type at all. */\n .ui.neutral.toast {\n --ui-color: initial;\n --ui-color-on: initial;\n }\n\n /* Inverted: the dark scheme; a coloured one takes the hue's inverted variant. */\n .ui.inverted.toast {\n --ui-scheme: dark;\n color-scheme: dark;\n background: var(--ui-color-inverted, var(--_ui-toast-inverted-background));\n color: var(--ui-color-inverted-on, var(--_ui-toast-color));\n }\n\n /* Vertical actions: a column beside the content. */\n .ui.vertical.toast {\n display: flex;\n }\n .ui.vertical.toast > .content {\n flex-grow: 1;\n }\n .ui.toast .vertical.actions {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n margin: calc(var(--_ui-toast-action-padding-bottom) * -1) -1em calc(var(--_ui-toast-action-padding-bottom) * -1)\n var(--_ui-toast-action-margin-left);\n padding: var(--_ui-toast-action-padding);\n border-top: 0;\n border-radius: 0 var(--_ui-toast-radius) var(--_ui-toast-radius) 0;\n }\n .ui.toast .vertical.actions:not(.basic) {\n border-inline-start: var(--_ui-toast-action-border);\n }\n .ui.toast .vertical.top.actions {\n justify-content: flex-start;\n }\n .ui.toast .vertical.bottom.actions {\n justify-content: flex-end;\n }\n .vertical.actions > ::slotted(*) {\n margin-inline-start: 0;\n }\n .vertical.actions > ::slotted(:not(:last-child)) {\n margin-block-end: var(--_ui-toast-action-gap);\n }\n\n /* Attached actions: joined to the toast's edge, outside it. */\n .toast-box > .attached.actions,\n .vertical.attached > .attached.actions {\n display: flex;\n margin: 0;\n }\n .toast-box > .attached.actions > ::slotted(*),\n .vertical.attached > .attached.actions > ::slotted(*) {\n flex: 1 1 auto;\n }\n .ui.attached.toast.top,\n .ui.attached.toast:not(.top, .bottom, .left) {\n border-end-start-radius: 0;\n border-end-end-radius: 0;\n }\n .ui.attached.toast.bottom {\n border-start-start-radius: 0;\n border-start-end-radius: 0;\n }\n .vertical.attached {\n display: flex;\n }\n .vertical.attached > .ui.toast {\n flex: 1;\n border-radius: var(--_ui-toast-radius) 0 0 var(--_ui-toast-radius);\n }\n .vertical.attached > .ui.left.toast {\n border-radius: 0 var(--_ui-toast-radius) var(--_ui-toast-radius) 0;\n }\n .vertical.attached > .attached.actions {\n flex-direction: column;\n }\n\n /* Progress bar: a thin track at the top or bottom edge, the bar counting down. */\n .toast-box > .ui.attached.progress {\n position: relative;\n z-index: 1;\n height: var(--_ui-toast-progress-height);\n overflow: hidden;\n background: transparent;\n }\n .toast-box > .ui.attached.progress.top {\n margin-bottom: calc(var(--_ui-toast-progress-height) * -1);\n border-start-start-radius: var(--_ui-toast-radius);\n border-start-end-radius: var(--_ui-toast-radius);\n }\n .toast-box > .ui.attached.progress.bottom {\n margin-top: calc(var(--_ui-toast-progress-height) * -1);\n border-end-start-radius: var(--_ui-toast-radius);\n border-end-end-radius: var(--_ui-toast-radius);\n }\n .toast-box > .ui.progress > .bar {\n width: 100%;\n min-width: 0;\n height: 100%;\n background: oklch(from var(--ui-color, var(--ui-text-muted)) calc(l - 0.15) c h);\n }\n .toast-box > .ui.inverted.progress > .bar {\n background: oklch(from var(--ui-color-inverted, var(--ui-text-inverted-muted)) calc(l + 0.1) c h);\n }\n .toast-box > .ui.progress > .up.bar {\n width: 0;\n }\n .toast-box > .ui.progress > .progressing {\n animation-timing-function: linear;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n }\n .toast-box > .ui.progress > .up.progressing {\n animation-name: ui-toast-progress-up;\n }\n .toast-box > .ui.progress > .down.progressing {\n animation-name: ui-toast-progress-down;\n }\n\n /* Phones: shrink to the content (Fomantic's `display: table`), at least `--ui-toast-mobile-width`. */\n @media only screen and (max-width: 420px) {\n .toast-box,\n .toast-box.compact,\n .toast-box > .compact {\n width: fit-content;\n min-width: var(--_ui-toast-mobile-width);\n max-width: 100%;\n }\n }\n}\n\n/*******************************\n States\n*******************************/\n\n@layer ui.components.toast.states {\n /* Paused: pointer over it or focus inside; the bar holds. */\n :host(:state(paused)) .progressing {\n animation-play-state: paused;\n }\n\n /* Closing: no more clicks while it animates out. */\n :host(:state(closing)) .toast-box {\n pointer-events: none;\n }\n}\n\n@keyframes ui-toast-progress-down {\n from {\n width: 100%;\n }\n to {\n width: 0;\n }\n}\n\n@keyframes ui-toast-progress-up {\n from {\n width: 0;\n }\n to {\n width: 100%;\n }\n}\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E, UI, UIT } from \"spell/ui/core\"\nimport { toastVocabulary } from \"./UIToast.en\"\nimport { ACTIONS, ATTACHED, INVERTED, UI_WORD, VERTICAL, type Vocabulary } from \"./UIToast.types\"\n\nimport toastCSS from \"./UIToast.css?inline\"\n\n/****************\n * ### `DOMToastElement`\n * The DOM element of `<ui-toast>`: it adds `close()`, the toast's script API, which its component does.\n *\n * - NOTE: `DOMElement` checks its members against the attributes' property names; `close` isn't one.\n * - Above the component: its `elementSetup` reads this class while the component is defined.\n ****************/\nexport class DOMToastElement extends E.DOMElement<UIToast> {\n /** Close it now, reason `dismiss` (the cancelable `ui-closing` first); true when it closes. */\n close(): boolean {\n return this.component?.close() ?? false\n }\n}\n\n/****************\n * ### `UIToast`\n * The component behind `<ui-toast>`: a toast, a short message that shows for a while.\n * Its shadow DOM:\n * `<div class=\"floating toast-box\" part=\"box\">` around `<div class=\"ui … toast\" part=\"toast\">`\n * (icon, content block, close icon, actions), with an optional progress bar above or below and `attached` actions.\n *\n * - Where it shows: where it is.\n * - `UI.toast({…})` (`ToastStack`) puts the ones it builds in a container per position,\n * a popover in the top layer.\n * - A `<ui-toast>` written in the page is an ordinary block.\n *\n * - Its life: once connected it animates in (Fomantic's `scale`), fires `ui-opened`,\n * and starts counting down `display-time` (absent or `0`: it stays).\n * - Closing (the countdown, the close icon, a click, Escape inside it, an action, `domElement.close()`)\n * fires the cancelable `ui-closing` (with a `reason`), animates out,\n * sets `hidden` on the DOM element and fires `ui-closed`.\n * - It never removes itself: whoever inserted it owns the node.\n *\n * - The countdown pauses while the pointer moves over it (`pause-on-hover`, on by default)\n * and ALWAYS while focus is inside (WCAG 2.2.1), with `:state(paused)`; the progress bar pauses with it.\n *\n * - Accessibility: the toast is `role=status` (polite), `alert` for `type=\"error\"`; it never takes focus.\n * - The close icon is a real `<button>`.\n * - Escape closes it while focus is inside, with no page-wide Escape\n * (kind `toast` in `UI.overlays`, which also lets `UI.overlays.closeAll(\"toast\")` close every one).\n * - Motion follows `UI.transitions` (reduced motion: none);\n * the progress bar is `data-ui-motion=\"essential\"`: it IS the time left.\n *\n * - Invoker commands (`<button commandfor=\"id\" command=\"--close\">`):\n * `--close` closes it, reason `close`, as its close icon does.\n * - Nothing shows it again (a closed toast stays closed, `hidden`: the app inserts a new one),\n * so `--show` and `--toggle` are not answered.\n *\n * - Actions: a slotted button closes the toast unless its click was `preventDefault()`ed;\n * approve / deny ones (`UIT.ModalActionSelectors`) fire the cancelable `ui-approving` / `ui-denying` first.\n ****************/\nexport class UIToast extends E.UIComponent<Vocabulary> {\n @E.proto static vocabulary = toastVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { toast: toastCSS },\n DOMElement: DOMToastElement,\n // nothing to delegate to: a click on the text must not jump to an action button\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n constructor(...args: ConstructorParameters<typeof E.UIComponent>) {\n super(...args)\n this.domElement.addReleaseCallback(() => this.countdownTimer?.cancel())\n }\n\n ////////////////\n // ## Actions\n ////////////////\n\n /** Light-DOM slot occupancy: slotted actions. */\n readonly slots = new E.SlotContent(this.domElement)\n\n /** Has slotted actions? */\n get hasActions(): boolean {\n return this.slots.hasContent(this.slotForName(ACTIONS))\n }\n\n /** Layout words of the `actions` attribute, only the ones its vocabulary allows. */\n @E.derived\n get actionWords(): ReadonlySet<string> {\n const allowed = E.ValueSets.get(this.elementDefinition.attribute(ACTIONS).spec.values ?? [])\n const words = (this.actions ?? \"\").split(UIT.WHITESPACE).filter((word) => allowed.includes(word))\n return new Set(words)\n }\n\n /** Actions joined to the toast's edge (`attached`). */\n get actionsAreAttached(): boolean {\n return this.hasActions && this.actionWords.has(ATTACHED)\n }\n\n /** Actions in a column beside the content (`vertical`). */\n get actionsAreVertical(): boolean {\n return this.hasActions && this.actionWords.has(VERTICAL)\n }\n\n ////////////////\n // ## Classes\n ////////////////\n\n /** Layout words before the noun, the ones Fomantic's JS added: `vertical`, `actions`, `attached top`, `compact`. */\n protected get extraClass(): string | undefined {\n const words: string[] = []\n const actions = this.actionWords\n if (this.actionsAreVertical) words.push(VERTICAL)\n if (this.hasActions && !this.actionsAreAttached && (!actions.has(UIT.BASIC) || actions.has(UIT.LEFT))) {\n words.push(ACTIONS)\n }\n if (this.actionsAreAttached) {\n words.push(ATTACHED)\n if (this.actionsAreVertical) {\n if (actions.has(UIT.LEFT)) words.push(UIT.LEFT)\n } else words.push(actions.has(UIT.TOP) ? UIT.BOTTOM : UIT.TOP)\n }\n if (this.compact) words.push(COMPACT)\n return words.join(\" \") || undefined\n }\n\n /** Classes of the box. */\n @E.derived\n private get boxClasses(): string {\n const words = [FLOATING, TOAST_BOX]\n if (this.compact) words.push(COMPACT)\n if (!this.anyClickCloses) words.push(UNCLICKABLE)\n return words.join(\" \")\n }\n\n /** Classes of the wrapper of `vertical attached` actions. */\n @E.derived\n private get verticalClasses(): string {\n return [VERTICAL, ATTACHED, ...(this.compact ? [COMPACT] : [])].join(\" \")\n }\n\n /** Classes of the actions box: its layout words, and `ui buttons` when attached (Fomantic's). */\n @E.derived\n private get actionsClasses(): string {\n const words = [...this.actionWords]\n return (this.actionsAreAttached ? [UI_BUTTONS, ...words, ACTIONS] : [...words, ACTIONS]).join(\" \")\n }\n\n /** Classes of the progress track: its edge and the toast's colour words. */\n @E.derived\n private get progressClasses(): string {\n const words = [UI_WORD, ATTACHED, UIT.ACTIVE, PROGRESS, this.progress ?? UIT.BOTTOM]\n if (this.type) words.push(this.type)\n if (this.color) words.push(this.color)\n if (this.inverted) words.push(INVERTED)\n return words.join(\" \")\n }\n\n /** Classes of the bar: its direction, and `progressing` once the countdown runs. */\n @E.derived\n private get barClasses(): string {\n const words = [UIT.BAR, this.progressUp ? UP : DOWN]\n if (this.countdownHasStarted) words.push(PROGRESSING)\n return words.join(\" \")\n }\n\n ////////////////\n // ## Icons\n ////////////////\n\n /** Glyph of the icon: the `icon` name, or the type's own for a bare `icon`. */\n readonly iconGlyph = new E.IconGlyph({ owner: this, name: () => this.iconName })\n\n /** The close icon, while `closable`. */\n readonly closeButton = new E.CloseButton({\n owner: this,\n shows: () => !!this.closable,\n label: () => this.translationForKey(\"close\"),\n part: this.partForName(\"close\"),\n onClick: (event) => this.onCloseIcon(event)\n })\n\n /** Icon name: `icon`, or the type's own for a bare `icon`; `undefined` for none. */\n private get iconName(): string | undefined {\n const icon = this.icon\n if (icon === undefined || icon === null) return undefined\n return icon || TYPE_ICONS[this.type ?? NEUTRAL]\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n /** The box. */\n private box?: HTMLDivElement\n\n render(): JSX.Element {\n return (\n <div\n ref={(element) => (this.box = element)}\n class={this.boxClasses}\n part={this.partForName(\"box\")}\n onClick={this.onClick}\n onKeyDown={this.onKeyDown}\n >\n <Show when={this.progress === UIT.TOP}>{this.progressBar()}</Show>\n <Show when={this.actionsAreAttached && !this.actionsAreVertical && this.actionWords.has(UIT.TOP)}>\n {this.actionsBox()}\n </Show>\n <Show when={this.actionsAreAttached && this.actionsAreVertical} fallback={this.toast()}>\n <div class={this.verticalClasses}>\n <Show when={this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>\n {this.toast()}\n <Show when={!this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>\n </div>\n </Show>\n <Show when={this.actionsAreAttached && !this.actionsAreVertical && !this.actionWords.has(UIT.TOP)}>\n {this.actionsBox()}\n </Show>\n <Show when={this.progress === UIT.BOTTOM}>{this.progressBar()}</Show>\n </div>\n )\n }\n\n /** The toast itself: icon, content (header, message, slot), close icon, inline actions. */\n private toast(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"toast\")} role={this.type === ERROR ? \"alert\" : \"status\"}>\n <Show when={this.iconName !== undefined}>\n <span class={ICON_BOX_CLASS} part={this.partForName(\"icon\")}>\n {this.iconGlyph.svg}\n </span>\n </Show>\n <div class={UIT.CONTENT} part={this.partForName(\"content\")}>\n <Show when={this.heading}>\n <div class={UIT.HEADER} part={this.partForName(\"header\")}>\n {this.heading}\n </div>\n </Show>\n <Show when={this.message}>\n <div class={UIT.MESSAGE} part={this.partForName(\"message\")}>\n {this.message}\n </div>\n </Show>\n <slot />\n </div>\n {this.closeButton.draw()}\n <Show when={this.hasActions && !this.actionsAreAttached}>{this.actionsBox()}</Show>\n </div>\n )\n }\n\n /** The box around the `actions` slot; rendered in ONE place at a time (a slot name must be unique). */\n private actionsBox(): JSX.Element {\n return (\n <div class={this.actionsClasses} part={this.partForName(\"actions\")}>\n <slot name={this.slotForName(ACTIONS)} />\n </div>\n )\n }\n\n /** The progress track and bar; the bar runs once the countdown has started. */\n private progressBar(): JSX.Element {\n return (\n <Show when={this.displayDuration > 0}>\n <div class={this.progressClasses} part={this.partForName(\"progress\")}>\n <div\n class={this.barClasses}\n part={this.partForName(\"bar\")}\n data-ui-motion={ESSENTIAL}\n style={{ \"animation-duration\": `${this.displayDuration}ms` }}\n />\n </div>\n </Show>\n )\n }\n\n ////////////////\n // ## Appearing\n ////////////////\n\n /** Has appeared once: `ui-opened` fired, the countdown started. */\n private hasShown = false\n\n /** This element's `UI.overlays` entry: no Escape, no outside clicks, no focus restore (kind `toast`). */\n private readonly overlay: E.OverlayEntry = {\n element: this.domElement,\n kind: \"toast\",\n restoreFocus: false,\n onDismiss: (reason) => void this.close(reason === \"close-all\" ? \"close-all\" : \"dismiss\")\n }\n\n /**\n * Connected and ready: appear; the cleanup disappears.\n * - It waits for the runtime (`isReady`) too, as the render does: appearing animates the rendered box.\n */\n @E.onChange(\"isConnected\", \"isReady\")\n protected onConnectedChanged(isConnected: boolean, isReady: boolean) {\n if (!isConnected || !isReady) return\n this.appear()\n return () => this.disappear()\n }\n\n /** Connected: join `UI.overlays`; the first time, animate in, start counting, `ui-opened`. */\n private appear() {\n if (this.isClosing) return\n UI.overlays.open(this.overlay)\n if (this.hasShown) return this.resumeTimer()\n this.hasShown = true\n this.startTimer()\n const box = this.box\n const entered = box\n ? UI.transitions.animate({ element: box, name: SCALE, direction: UIT.IN })\n : Promise.resolve(true)\n void entered.then(() => {\n if (!this.isClosing) this.disclosure.sendAfter(true)\n })\n }\n\n /** Disconnected: leave `UI.overlays`, hold the countdown. */\n private disappear() {\n UI.overlays.close(this.overlay)\n this.pauseTimer()\n }\n\n ////////////////\n // ## Closing\n ////////////////\n\n /** Closing (or closed): no further closes, no restarts; `:state(closing)`. */\n @E.cssState(\"closing\")\n @E.state\n accessor isClosing = false\n\n /** A click anywhere closes it: `close-on-click`, no close icon, no actions (Fomantic's rule). */\n get anyClickCloses(): boolean {\n return !!this.closeOnClick && !this.closable && !this.hasActions\n }\n\n /**\n * Open until it closes, once: `ui-opened` as it has appeared, the cancelable `ui-closing` as it's asked to close,\n * `ui-closed` once it has gone.\n */\n readonly disclosure = new E.Disclosure({\n component: this,\n kept: {\n isOpen: () => !this.isClosing,\n setOpen: (open) => {\n if (!open) this.startClosing()\n }\n },\n detail: (_open, originalEvent): UIT.ToastCloseDetail => ({ reason: this.closeReason, originalEvent }),\n afterDetail: (open): UIT.ToastShowDetail | UIT.ToastCloseDetail =>\n open ? { displayTime: this.displayDuration } : { reason: this.closeReason }\n })\n\n /** Why it was asked to close: `ui-closing`'s and `ui-closed`'s `reason`. */\n private closeReason: UIT.ToastCloseReason = \"dismiss\"\n\n /**\n * Close for `reason`: the cancelable `ui-closing`, then the exit animation, `hidden` on the DOM element and `ui-closed`.\n * - True when it closes; false when vetoed or already closing.\n */\n close(reason: UIT.ToastCloseReason = \"dismiss\", originalEvent?: Event): boolean {\n if (this.isClosing) return false\n this.closeReason = reason\n return this.disclosure.close(originalEvent)\n }\n\n /** `ui-closing` wasn't cancelled: the exit animation, `hidden` on the DOM element, `ui-closed`. */\n private startClosing() {\n this.isClosing = true\n this.stopTimer()\n UI.overlays.close(this.overlay)\n const box = this.box\n const exited = box\n ? UI.transitions.animate({ element: box, name: SCALE, direction: UIT.OUT })\n : Promise.resolve(true)\n void exited.then(() => {\n this.domElement.hidden = true\n this.disclosure.sendAfter(false)\n })\n }\n\n ////////////////\n // ## Countdown\n ////////////////\n\n /**\n * Milliseconds it stays; `0` for \"until closed\".\n * - `@derived`: `auto` walks the light DOM and counts words.\n */\n @E.derived\n get displayDuration(): number {\n const value = this.displayTime\n if (value === \"auto\") return this.readingTime\n const time = Number(value)\n return Number.isFinite(time) && time > 0 ? time : 0\n }\n\n /**\n * `display-time=\"auto\"`: reading time of its message at `WORDS_PER_MINUTE`, at least `MIN_DISPLAY_TIME`.\n * - The message: `header`, `message` and the default slot's content, never the slotted actions' labels.\n */\n private get readingTime(): number {\n const actions = this.slotForName(ACTIONS)\n const body = [...this.domElement.childNodes].filter((node) =>\n node.nodeType === E.NodeType.element ? (node as Element).slot !== actions : node.nodeType === E.NodeType.text\n )\n const text = [this.heading, this.message, ...body.map((node) => node.textContent)].join(\" \")\n const words = text.split(UIT.WHITESPACE).filter(Boolean).length\n return Math.max(MIN_DISPLAY_TIME, (words / WORDS_PER_MINUTE) * 60_000)\n }\n\n /** The countdown has started: the progress bar runs. Never cleared. */\n @E.state accessor countdownHasStarted = false\n\n /** Countdown paused: pointer over it or focus inside. `:state(paused)`. */\n @E.cssState(\"paused\")\n @E.state\n accessor isPaused = false\n\n /** Pending countdown. */\n private countdownTimer?: E.CancelablePromise<unknown>\n\n /** ms left on the countdown. */\n private timeLeft = 0\n\n /** When the running countdown (re)started, `performance.now()`. */\n private startedAt = 0\n\n /** Start counting `displayDuration` down (nothing for `0`). */\n private startTimer() {\n const time = this.displayDuration\n if (time <= 0) return\n this.timeLeft = time\n this.countdownHasStarted = true\n if (!this.isHovered && !this.focusIsInside) this.resumeTimer()\n }\n\n /** Run the countdown from where it stopped. */\n private resumeTimer() {\n if (this.countdownTimer || this.isClosing || this.timeLeft <= 0 || !this.domElement.isConnected) return\n this.startedAt = performance.now()\n this.countdownTimer = E.after(this.timeLeft / 1000, () => {\n this.countdownTimer = undefined\n this.timeLeft = 0\n this.close(\"timeout\")\n })\n }\n\n /** Hold the countdown, keeping what's left. */\n private pauseTimer() {\n if (!this.countdownTimer) return\n this.countdownTimer.cancel()\n this.countdownTimer = undefined\n this.timeLeft = Math.max(0, this.timeLeft - (performance.now() - this.startedAt))\n }\n\n /** Stop counting for good. */\n private stopTimer() {\n this.countdownTimer?.cancel()\n this.countdownTimer = undefined\n this.timeLeft = 0\n }\n\n /** Pause or resume after the pointer / focus moved. */\n private updatePause() {\n this.isPaused = this.isHovered || this.focusIsInside\n if (this.isPaused) this.pauseTimer()\n else this.resumeTimer()\n }\n\n ////////////////\n // ## Pointer and focus\n ////////////////\n\n /** The pointer entered it (maybe without moving). */\n private hasPointerEntered = false\n\n /** The pointer is over it and has really moved: the countdown pauses. */\n private isHovered = false\n\n /** Focus is inside it (the toast itself never has it). */\n private focusIsInside = false\n\n /**\n * Pointer entered it: only noted.\n * - A toast appearing under a RESTING pointer gets a `pointerenter` (the browser's synthetic move) with no real move;\n * pausing on that alone could hold it forever, so `onPointerMove` pauses.\n */\n @E.on(\"pointerenter\")\n protected onPointerEnter() {\n this.hasPointerEntered = true\n }\n\n /** A real pointer move over it (`movementX/Y` nonzero: synthetic ones have none): pause (with `pause-on-hover`). */\n @E.on(\"pointermove\")\n protected onPointerMove(event: PointerEvent) {\n if (!this.hasPointerEntered || this.isHovered || (!event.movementX && !event.movementY)) return\n if (!this.pauseOnHover) return\n this.isHovered = true\n this.updatePause()\n }\n\n /** Pointer off it: resume. */\n @E.on(\"pointerleave\")\n protected onPointerLeave() {\n this.hasPointerEntered = false\n this.isHovered = false\n this.updatePause()\n }\n\n /** Focus came in: pause. */\n @E.on(\"focusin\")\n protected onFocusIn() {\n this.focusIsInside = true\n this.updatePause()\n }\n\n /** Focus moved: resume once it has really left (a move inside refocuses before the microtask). */\n @E.on(\"focusout\")\n protected onFocusOut() {\n E.afterSolidUpdate(() => {\n this.focusIsInside = this.domElement.matches(\":focus-within\")\n this.updatePause()\n })\n }\n\n ////////////////\n // ## Commands, keys and clicks\n ////////////////\n\n /** An invoker command aimed at the DOM element: only `ToggleCommands.close`. */\n @E.on(\"command\")\n protected onCommand(event: Event) {\n if ((event as Event & { command?: string }).command === UIT.ToggleCommands.close) this.close(\"close\", event)\n }\n\n /** Close icon. */\n private readonly onCloseIcon = (event: MouseEvent) => {\n event.stopPropagation()\n this.close(\"close\", event)\n }\n\n /** Escape with focus inside: close (unless something earlier handled it, e.g. a modal). */\n private readonly onKeyDown = (event: KeyboardEvent) => {\n if (event.key !== UIT.Key.escape || event.defaultPrevented) return\n if (this.close(\"escape\", event)) event.preventDefault()\n }\n\n /**\n * A click inside: an action closes (approve / deny ask first);\n * elsewhere a click closes a `close-on-click` toast,\n * unless it landed on something interactive or the toast holds form controls.\n */\n private readonly onClick = (event: MouseEvent) => {\n if (this.isClosing) return\n const found = this.actionFor(event)\n if (found) {\n if (event.defaultPrevented) return\n const [kind, action] = found\n if (kind !== \"action\") {\n const detail: UIT.ToastActionDetail = { action, originalEvent: event }\n if (!this.send(kind === \"approve\" ? \"ui-approving\" : \"ui-denying\", detail)) return\n }\n this.close(kind, event)\n return\n }\n // a click on a control of its own inside is that control's (`E.OwnControls`)\n if (!this.anyClickCloses || this.domElement.querySelector(FORM_CONTROLS)) return\n if (E.OwnControls.isClicked(event, { upTo: this.domElement })) return\n this.close(\"click\", event)\n }\n\n ////////////////\n // ## Reading the light DOM\n ////////////////\n\n /**\n * The action `event` activated: walking the composed path up to the DOM element,\n * the innermost light-DOM element that approves / denies (`ModalActionSelectors`) or is a button --\n * counted only inside a child slotted as `actions`.\n */\n private actionFor(event: Event): [ToastAction, Element] | undefined {\n const slotName = this.slotForName(ACTIONS)\n let found: [ToastAction, Element] | undefined\n for (const target of UIT.ModalActions.lightPath(event, this.domElement)) {\n if (!found) {\n const action = UIT.ModalActions.of(target) ?? (UIToast.isButton(target) ? \"action\" : undefined)\n if (action) found = [action, target]\n }\n if (target.parentElement === this.domElement) return target.slot === slotName ? found : undefined\n }\n return undefined\n }\n\n /**\n * A native button / link, or an element whose definition's noun is `button` (`<ui-button>`, translated too).\n * - Static: it reads only the element and the page-wide `UIComponent.registry.definitions`.\n */\n private static isButton(element: Element): boolean {\n return (\n element.matches(BUTTONS) ||\n E.UIComponent.registry.definitions.get(element.localName)?.vocabulary.noun === UIT.BUTTON\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIToast extends E.AttributeValues<Vocabulary> {}\n\n/** What an activated action does: approve, deny, or just close (any other button). */\ntype ToastAction = Extract<UIT.ToastCloseReason, \"approve\" | \"deny\" | \"action\">\n\n/** The `type` value announced as an alert (`role=alert`), not a status. */\nconst ERROR = \"error\"\n\n/** The class word of the box around the toast: it floats (`UIToast.css`). */\nconst FLOATING = \"floating\"\n\n/** The class word of the box around the toast, its progress bar and attached actions. */\nconst TOAST_BOX = \"toast-box\"\n\n/** The class word of a fixed-width toast (`compact`, on by default). */\nconst COMPACT = \"compact\"\n\n/** The class word of a box a click doesn't close. */\nconst UNCLICKABLE = \"unclickable\"\n\n/** Icons of a bare `icon`, by type (Fomantic's `icons` setting, in Font Awesome names). */\nconst TYPE_ICONS: Readonly<Record<string, string>> = {\n info: \"circle-info\",\n success: \"circle-check\",\n warning: \"triangle-exclamation\",\n error: \"circle-xmark\"\n}\n\n/** `type` of a toast without one: its icon is none of `TYPE_ICONS`. */\nconst NEUTRAL = \"neutral\"\n\n/** `display-time=\"auto\"`: reading speed (Fomantic's `wordsPerMinute`). */\nconst WORDS_PER_MINUTE = 120\n\n/** `display-time=\"auto\"`: the floor, in ms (Fomantic's `minDisplayTime`). */\nconst MIN_DISPLAY_TIME = 1000\n\n/** `UI.transitions` animation in and out (Fomantic's `showMethod` / `hideMethod`). */\nconst SCALE = \"scale\"\n\n/** Class words of the icon box (`UIToast.css`). */\nconst ICON_BOX_CLASS = \"centered icon\"\n\n/** Class words of `attached` actions: a button group (Fomantic's). */\nconst UI_BUTTONS = \"ui buttons\"\n\n/** Class word of the progress track. */\nconst PROGRESS = \"progress\"\n\n/** Class word of a bar that fills up (`progress-up`). */\nconst UP = \"up\"\n\n/** Class word of a bar that empties. */\nconst DOWN = \"down\"\n\n/** Class word of a running bar. */\nconst PROGRESSING = \"progressing\"\n\n/** `data-ui-motion` value that keeps the bar running under reduced motion (`reset.css`). */\nconst ESSENTIAL = \"essential\"\n\n/** Buttons an action click can come from, besides `<ui-button>`s. */\nconst BUTTONS = \"button, a[href], [role=button], input[type=button], input[type=submit]\"\n\n/** Form controls that turn `close-on-click` off (Fomantic's `selector.input`). */\nconst FORM_CONTROLS = \"input:not([type=hidden]), textarea, select, button\"\n","/*\n * The toast CONTAINERS `UI.toast()` puts its toasts in: port of the `.ui.toast-container` rules of Fomantic's\n * `toast.less`. A PAGE sheet (`ToastStack` registers it once, `page: true`): containers are light DOM.\n * - Markup contract: `<div popover=\"manual\" class=\"ui [position] toast-container [horizontal]\" role=\"region\"\n * aria-label=\"...\">` in `<body>`, one per position, holding `<ui-toast>` DOM elements.\n * - positions:\n * `top right` (default), `top left`, `top center`, `bottom right`, `bottom left`, `bottom center`, `centered`\n * - A `manual` popover, so it sits in the TOP LAYER above dialogs shown before it, with no light dismiss;\n * `ToastStack` re-shows it for each new toast to lift it above anything shown since. The UA popover box (inset,\n * margin, border, padding, background) is undone here.\n * - `--ui-toast-container-distance` (the gap to the viewport's edge) is read through a private alias,\n * never declared, so a value set on `:root` reaches the containers (`notes/theming.md` \"Component tokens\").\n * - Toasts stack in a column (a row when `horizontal`), aligned to the container's side.\n * - NOTE: left out: `absolute` containers (Fomantic's `context` setting) and `attached` full-width containers.\n */\n\n@layer ui.components {\n .ui.toast-container {\n --_ui-toast-container-distance: var(--ui-toast-container-distance, 12px);\n position: fixed;\n inset: auto;\n z-index: var(--ui-z-toast);\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n width: max-content;\n max-width: calc(100vw - 2 * var(--_ui-toast-container-distance));\n max-height: calc(100vh - 2 * var(--_ui-toast-container-distance));\n margin: 0;\n padding: 0;\n overflow: visible;\n border: 0;\n background: transparent;\n color: var(--ui-text-color);\n font-size: var(--ui-font-size);\n }\n .ui.toast-container:not(:popover-open) {\n display: none;\n }\n .ui.toast-container > * {\n max-width: 100%;\n }\n\n /* Positions. */\n .ui.top.toast-container {\n top: var(--_ui-toast-container-distance);\n }\n .ui.bottom.toast-container {\n bottom: var(--_ui-toast-container-distance);\n }\n .ui.right.toast-container {\n right: var(--_ui-toast-container-distance);\n align-items: flex-end;\n }\n .ui.left.toast-container {\n left: var(--_ui-toast-container-distance);\n }\n .ui.center.toast-container {\n left: 50%;\n align-items: center;\n transform: translate(-50%, 0);\n }\n .ui.centered.toast-container {\n top: 50%;\n left: 50%;\n align-items: center;\n transform: translate(-50%, -50%);\n }\n\n /* Horizontal: toasts side by side. */\n .ui.horizontal.toast-container {\n flex-direction: row;\n align-items: flex-start;\n gap: 0.5em;\n }\n}\n","import { E, UI, UIT } from \"spell/ui/core\"\nimport { toastVocabulary } from \"./UIToast.en\"\nimport { ACTIONS, ATTACHED, INVERTED, UI_WORD, VERTICAL, type Vocabulary } from \"./UIToast.types\"\n\nimport containerCSS from \"./UIToast.container.css?inline\"\n\n/****************\n * ### `ToastStack`\n * The toasts behind `UI.toast({…})` / `UI.toasts.show()` (Fomantic's `$.toast({…})`):\n * a `<ui-toast>` built for the call, put in the container for its `position`, removed once it has hidden.\n *\n * - Containers:\n * one `<div popover=\"manual\" class=\"ui [position] toast-container\" role=\"region\">` per position (and `horizontal`),\n * in `<body>`, styled by the page sheet `toast-container` (`UIToast.container.css`).\n * - Shown (or re-shown, to be lifted above anything opened since) for each new toast, unless focus is inside it.\n * - Removed when its last toast goes.\n * - Options map onto attributes (`title` => `heading`, `showProgress` => `progress` …);\n * `displayTime` defaults to Fomantic's `3000`.\n * - `class` words sort themselves: a `type` word, a hue (`color`) or `inverted`.\n * Every word also stays on the `<ui-toast>`,\n * so a page can theme one toast by its own class (the `--ui-toast-*` tokens).\n * - Actions become `<ui-button slot=\"actions\">`s:\n * Fomantic's `class` on the button (so `.positive` / `.deny` … still approve / deny),\n * its button words and hue as attributes.\n * - `attached` layouts wrap them in a `<ui-buttons>`.\n * - An action's `click()` returning `false` prevents the click's default, which keeps the toast.\n * - Replacing: `show({ id })` with the id of a showing toast removes that one first (its `closed` resolves).\n * - Everything is light DOM built with `createElement` / `textContent`: never `innerHTML` with caller text.\n * - Registered by the family barrel as `UI.toasts`' provider; the runtime never imports it.\n ****************/\nexport class ToastStack implements E.ToastProvider {\n /** Page the toasts and their containers are made in; a test passes its own. */\n readonly document: Document\n\n /** Showing toasts by id, with what settles their `closed`. */\n private readonly showingToasts = new Map<string, ToastRecord>()\n\n /** Containers by position key. */\n private readonly containers = new Map<string, HTMLElement>()\n\n constructor({ document = globalThis.document }: ToastStackProps = {}) {\n this.document = document\n }\n\n /** Show a `<ui-toast>` for `options`, replacing a showing one with the same `id`. */\n show(options: E.ToastOptions): E.ToastHandle {\n const id = options.id ?? UI.ids.next(ID_PREFIX)\n this.remove(id)\n const toast = this.toastFor(options, id)\n const container = this.containerFor(options)\n if (options.newestOnTop) container.prepend(toast)\n else container.append(toast)\n ToastStack.raise(container)\n let settle!: () => void\n const closed = new Promise<void>((resolve) => (settle = resolve))\n this.showingToasts.set(id, { element: toast, settle })\n toast.addEventListener(HIDE_EVENT, () => this.remove(id), { once: true })\n return { id, closed, element: toast }\n }\n\n /** Close toast `id` as `domElement.close()` does (the cancelable `ui-closing` first); nothing for an unknown id. */\n dismiss(id: string) {\n const record = this.showingToasts.get(id)\n ;(record?.element as { close?: () => boolean } | undefined)?.close?.()\n }\n\n ////////////////\n // ## Building\n ////////////////\n\n /** The `<ui-toast>` for `options`. */\n private toastFor(options: E.ToastOptions, id: string): HTMLElement {\n const toast = this.document.createElement(toastVocabulary.tag)\n toast.id = id\n const showIcon = options.showIcon ?? true\n // keys checked against the vocabulary\n const attributes: Partial<Record<E.AttributeNameOf<Vocabulary>, string>> = {\n heading: options.title,\n message: options.message,\n \"display-time\": String(options.displayTime ?? DEFAULT_DISPLAY_TIME),\n icon: showIcon === true ? \"\" : showIcon || undefined,\n progress: options.showProgress || undefined,\n \"progress-up\": options.progressUp ? \"\" : undefined,\n \"pause-on-hover\": options.pauseOnHover === false ? \"false\" : undefined,\n closable: options.closeIcon ? \"\" : undefined,\n \"close-on-click\": options.closeOnClick === false ? \"false\" : undefined,\n compact: options.compact === false ? \"false\" : undefined,\n actions: options.actions?.length ? options.classActions : undefined,\n type: options.type\n }\n const words = (options.class ?? \"\").split(UIT.WHITESPACE).filter(Boolean)\n for (const word of words) {\n if (TYPE_WORDS.includes(word)) attributes.type = word\n else if (E.ValueSets.has(HUES, word)) attributes.color = word\n else if (word === INVERTED) attributes.inverted = \"\"\n }\n for (const [name, value] of Object.entries(attributes)) if (value !== undefined) toast.setAttribute(name, value)\n // every word stays on the DOM element too (Fomantic's `class`): the page themes this one toast by it\n if (words.length) toast.className = words.join(\" \")\n if (options.actions?.length) toast.append(this.actionsFor(options.actions, options.classActions ?? \"\"))\n return toast\n }\n\n /**\n * The actions:\n * `<ui-button slot=\"actions\">`s, or one `<ui-buttons slot=\"actions\">` around them for `attached` layouts\n * (`vertical` with `vertical attached`).\n */\n private actionsFor(actions: readonly E.ToastAction[], layout: string): Node {\n const words = layout.split(UIT.WHITESPACE)\n const buttons = actions.map((action) => this.buttonFor(action))\n const group = ToastStack.definitionFor(GROUP_NOUN)\n if (!words.includes(ATTACHED) || !group) {\n const fragment = this.document.createDocumentFragment()\n for (const button of buttons) {\n button.slot = ACTIONS\n fragment.append(button)\n }\n return fragment\n }\n const buttonsElement = this.document.createElement(group.tag)\n buttonsElement.slot = ACTIONS\n buttonsElement.setAttribute(words.includes(VERTICAL) ? VERTICAL : UIT.FLUID, \"\")\n buttonsElement.append(...buttons)\n return buttonsElement\n }\n\n /**\n * One action as a `<ui-button>`:\n * - `class` kept on the DOM element (approve / deny classes)\n * - its words that are button attributes, or an old switch a button attribute replaces (`positive` => `color`,\n * `basic` => `appearance`), or hues (`color`), set as attributes\n * - `click` wired, `false` keeping the toast open\n */\n private buttonFor(action: E.ToastAction): HTMLElement {\n const definition = ToastStack.definitionFor(UIT.BUTTON)\n const button = this.document.createElement(definition?.tag ?? \"button\")\n const words = (action.class ?? \"\").split(UIT.WHITESPACE).filter(Boolean)\n if (words.length) button.className = words.join(\" \")\n const known = new Set(\n definition?.vocabulary.attributes.filter(({ kind }) => kind === KEY_ONLY).map(({ name }) => name)\n )\n const switches = ToastStack.oldSwitchesOf(definition?.vocabulary)\n for (const word of words) {\n const old = switches.get(word)\n if (known.has(word)) button.setAttribute(word, \"\")\n else if (old) {\n const before = old.isMultiple ? button.getAttribute(old.name) : null\n button.setAttribute(old.name, before ? `${before} ${old.value}` : old.value)\n } else if (E.ValueSets.has(HUES, word)) button.setAttribute(COLOR, word)\n }\n if (action.icon && definition) button.setAttribute(UIT.ICON, action.icon)\n if (action.text) button.textContent = action.text\n else if (action.icon) button.setAttribute(\"aria-label\", action.icon)\n const click = action.click\n if (click) {\n button.addEventListener(\"click\", (event) => {\n if (click(event) === false) event.preventDefault()\n })\n }\n return button\n }\n\n /**\n * The old switches `vocabulary`'s attributes replace (`AttributeSpec.replaces`), by old name:\n * `positive` => `color=\"positive\"`, `basic` => a word of `appearance`.\n * - Static: pure, of the vocabulary alone.\n */\n private static oldSwitchesOf(vocabulary: E.ComponentVocabulary | undefined): Map<string, OldSwitch> {\n const switches = new Map<string, OldSwitch>()\n for (const spec of vocabulary?.attributes ?? []) {\n for (const old of spec.replaces ?? []) {\n if (typeof old === \"string\" || old.value === undefined) continue\n switches.set(old.from, { name: spec.name, value: old.value, isMultiple: spec.kind === MULTIPLE })\n }\n }\n return switches\n }\n\n /**\n * The registered definition whose vocabulary noun is `noun` (`<ui-button>`, or a translated tag).\n * - Static: it reads the page-wide registry, `UIComponent.registry.definitions`, nothing of this stack's.\n */\n private static definitionFor(noun: string) {\n for (const definition of E.UIComponent.registry.definitions.values()) {\n if (definition.vocabulary.noun === noun) return definition\n }\n return undefined\n }\n\n ////////////////\n // ## Containers\n ////////////////\n\n /** The container for `options`' position (and `horizontal`), made (and its sheet registered) on first use. */\n private containerFor(options: E.ToastOptions): HTMLElement {\n let position = options.position ?? DEFAULT_POSITION\n if (!ToastPositions.includes(position as ToastPosition)) {\n E.Warnings.devWarn(\"UI.toast()\", `unknown position \"${position}\"; using \"${DEFAULT_POSITION}\"`)\n position = DEFAULT_POSITION\n }\n const key = options.horizontal ? `${position} horizontal` : position\n const existing = this.containers.get(key)\n if (existing?.isConnected) return existing\n if (!UI.styles.has(CONTAINER_SHEET)) UI.styles.register(CONTAINER_SHEET, containerCSS, { page: true })\n const container = this.document.createElement(\"div\")\n container.popover = \"manual\"\n const words = [UI_WORD, position, CONTAINER_CLASS, ...(options.horizontal ? [\"horizontal\"] : [])]\n container.className = words.join(\" \")\n container.setAttribute(\"role\", \"region\")\n container.setAttribute(\"aria-label\", UI.i18n.t(NOTIFICATIONS))\n this.document.body.append(container)\n this.containers.set(key, container)\n return container\n }\n\n /**\n * Show `container` on top of the top layer; left alone while focus is inside (re-showing would drop it).\n * - Static: it touches only the container it's given.\n */\n private static raise(container: HTMLElement) {\n const open = container.matches(\":popover-open\")\n if (open && container.matches(\":focus-within\")) return\n if (open) container.hidePopover()\n container.showPopover()\n }\n\n /** Forget toast `id`: remove its element, settle its `closed`, drop an emptied container. */\n private remove(id: string) {\n const record = this.showingToasts.get(id)\n if (!record) return\n this.showingToasts.delete(id)\n const container = record.element.parentElement\n record.element.remove()\n record.settle()\n if (container && !container.children.length) {\n if (container.matches(\":popover-open\")) container.hidePopover()\n container.remove()\n for (const [key, value] of this.containers) if (value === container) this.containers.delete(key)\n }\n }\n}\n\n/** Constructor props for `ToastStack`. */\nexport type ToastStackProps = {\n /** page to build in. Default: the global `document`. */\n document?: Document\n}\n\n/** A showing toast. */\ntype ToastRecord = {\n /** its `<ui-toast>` */\n element: HTMLElement\n /** resolves the handle's `closed` */\n settle: () => void\n}\n\n/** The event that ends a toast: the stack removes its toasts on it. */\nconst HIDE_EVENT: E.EventName<Vocabulary> = \"ui-closed\"\n\n/** Positions a toast container takes (Fomantic's). */\nconst ToastPositions = [\n \"top right\",\n \"top left\",\n \"top center\",\n \"bottom right\",\n \"bottom left\",\n \"bottom center\",\n \"centered\"\n] as const\n\n/** One of `ToastPositions`. */\ntype ToastPosition = (typeof ToastPositions)[number]\n\n/** Position of a toast that names none: out of the way of what a page's top holds (Fomantic's is top right). */\nconst DEFAULT_POSITION: ToastPosition = \"bottom right\"\n\n/** `UI.ids` prefix of toast ids. */\nconst ID_PREFIX = toastVocabulary.tag\n\n/** Fomantic's default `displayTime`, in ms. */\nconst DEFAULT_DISPLAY_TIME = 3000\n\n/** `type` words (the vocabulary's): a `class` word among them becomes `type`. */\nconst TYPE_WORDS = (toastVocabulary.attributes.find(({ name }) => name === \"type\") as E.AttributeSpec)\n .values as readonly string[]\n\n/** Value set of the hues: a `class` word among them becomes `color`. */\nconst HUES = \"hues\"\n\n/** Attribute kind of a button's words (`positive`, `basic` ...): a `class` word of that kind becomes an attribute. */\nconst KEY_ONLY = \"keyOnly\"\n\n/** Attribute kind that takes several words at once: an old switch adds its word (`appearance=\"basic circular\"`). */\nconst MULTIPLE = \"multiple\"\n\n/** An old switch a button attribute replaces: the attribute, the value it sets, and whether it adds a word. */\ntype OldSwitch = { name: string; value: string; isMultiple: boolean }\n\n/** `<ui-button>`'s hue attribute (canonical). */\nconst COLOR = \"color\"\n\n/** Noun of the button group (`<ui-buttons>`) that holds `attached` actions. */\nconst GROUP_NOUN = \"buttons\"\n\n/** Page sheet of the containers (`UIToast.container.css`). */\nconst CONTAINER_SHEET = \"toast-container\"\n\n/** Class word of a container. */\nconst CONTAINER_CLASS = \"toast-container\"\n\n/** Text key of the containers' name. */\nconst NOTIFICATIONS = \"notifications\"\n","/**\n * The toast family: defines `<ui-toast>` and exports its component, `UIToast`, and its DOM element, `DOMToastElement`.\n * - SIDE EFFECTS:\n * - defines `<ui-toast>`, and `<ui-button>` / `<ui-buttons>` too\n * (through `spell/ui/components/ui-button`: `UI.toast()` builds its actions from them)\n * - registers `ToastStack` as `UI.toasts`' provider once the runtime has loaded, so `UI.toast({…})` works\n * - Also the library's `spell/ui/ui-toast` entry (its size is in `notes/report.md`).\n */\n\nimport { E, UI } from \"spell/ui/core\"\nimport { DOMToastElement, UIToast } from \"./UIToast\"\nimport { ToastStack } from \"./ToastStack\"\n\nimport \"spell/ui/components/ui-button\"\n\nUIToast.define()\nif (E.isBrowser()) void UI.load().then(() => UI.toasts.register(new ToastStack()))\n\nexport { UIToast, DOMToastElement, ToastStack }\n"],"mappings":";;;;;;AAoBA,IAAakG,IAAkB;CAC7B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAiB;EAAY;EAAY;EAAY;CAAS;CACvE,KAAK;EAAC;EAAY;EAAgB;EAAS;EAAiB;CAAS;CACrE,MAAM;CACN,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ;IAAC;IAAQ;IAAW;IAAW;IAAS;GAAS;GACzD,aAAa;EACf;EACA;GAAE,MAAM;GAAS,OAAO;GAAc,MAAM;GAAS,aAAa;EAAuC;EACzG;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,UAAU,CAAC,QAAQ;GACnB,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GAAE,MAAM;GAAW,OAAO;GAAc,MAAM;GAAU,aAAa;EAA0C;EAC/G;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aACE;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AAe,MACzCnG,KAAMmG,EAAU,YAAY,GAChCA,EAAU,YAAY;CACxB;CAGA,OAAe,GAAY;EACzB,IAAMuC,IAAS,KAAK,cAAc,IAAI3C,CAAE;EACxC,IAAI,CAAC2C,GAAQ;EACb,KAAK,cAAc,OAAO3C,CAAE;EAC5B,IAAMI,IAAYuC,EAAO,QAAQ;EAGjC,IAFAA,EAAO,QAAQ,OAAO,GACtBA,EAAO,OAAO,GACVvC,KAAa,CAACA,EAAU,SAAS,QAAQ;GAE3C,AADIA,EAAU,QAAQ,eAAe,KAAGA,EAAU,YAAY,GAC9DA,EAAU,OAAO;GACjB,KAAK,IAAM,CAACkC,GAAKtD,MAAU,KAAK,YAAY,AAAIA,MAAUoB,KAAW,KAAK,WAAW,OAAOkC,CAAG;EACjG;CACF;AACF,GAiBM9B,KAAsC,aAGtC4B,KAAiB;CACrB;CACA;CACA;CACA;CACA;CACA;CACA;AACF,GAMMD,IAAkC,gBAGlCjC,KAAYvJ,EAAgB,KAG5BgK,KAAuB,KAGvBC,KAAcjK,EAAgB,WAAW,MAAM,EAAE,cAAWmK,MAAS,MAAM,CAAC,CAC/E,QAGGD,KAAO,QAGPW,KAAW,WAGXQ,KAAW,YAMXJ,KAAQ,SAGRV,KAAa,WAGbsB,IAAkB,mBAGlBC,KAAkB,mBAGlBC,KAAgB;ACzStB/C,GAAQ,OAAO,GACXtK,GAAY,KAAGuJ,EAAQ,KAAK,CAAC,CAAC,WAAWA,EAAG,OAAO,SAAS,IAAIkB,GAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"ui-toast.js","names":["this","ref={(element) => this.box = element}","<Show when={this.progress === UIT.TOP}>{this.progressBar()}</Show>","<div\n ref={(element) => this.box = element}\n class={this.boxClasses}\n part={this.partForName(\"box\")}\n onClick={this.onClick}\n onKeyDown={this.onKeyDown}\n >\n <Show when={this.progress === UIT.TOP}>{this.progressBar()}</Show>\n <Show when={this.actionsAreAttached && !this.actionsAreVertical && this.actionWords.has(UIT.TOP)}>\n {this.actionsBox()}\n </Show>\n <Show when={this.actionsAreAttached && this.actionsAreVertical} fallback={this.toast()}>\n <div class={this.verticalClasses}>\n <Show when={this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>\n {this.toast()}\n <Show when={!this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>\n </div>\n </Show>\n <Show when={this.actionsAreAttached && !this.actionsAreVertical && !this.actionWords.has(UIT.TOP)}>\n {this.actionsBox()}\n </Show>\n <Show when={this.progress === UIT.BOTTOM}>{this.progressBar()}</Show>\n </div>","<Show when={this.actionsAreAttached && !this.actionsAreVertical && this.actionWords.has(UIT.TOP)}>\n {this.actionsBox()}\n </Show>","this.actionsAreAttached && !this.actionsAreVertical && this.actionWords.has(UIT.TOP)","<Show when={this.actionsAreAttached && this.actionsAreVertical} fallback={this.toast()}>\n <div class={this.verticalClasses}>\n <Show when={this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>\n {this.toast()}\n <Show when={!this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>\n </div>\n </Show>","this.actionsAreAttached && this.actionsAreVertical","<Show when={this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>","<div class={this.verticalClasses}>\n <Show when={this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>\n {this.toast()}\n <Show when={!this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>\n </div>","<Show when={!this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>","<Show when={this.actionsAreAttached && !this.actionsAreVertical && !this.actionWords.has(UIT.TOP)}>\n {this.actionsBox()}\n </Show>","this.actionsAreAttached && !this.actionsAreVertical && !this.actionWords.has(UIT.TOP)","<Show when={this.progress === UIT.BOTTOM}>{this.progressBar()}</Show>","part={this.partForName(\"box\")}","<Show when={this.iconName !== void 0}>\n <span class={ICON_BOX_CLASS} part={this.partForName(\"icon\")}>\n {this.iconGlyph.svg}\n </span>\n </Show>","part={this.partForName(\"icon\")}","<span class={ICON_BOX_CLASS} part={this.partForName(\"icon\")}>\n {this.iconGlyph.svg}\n </span>","<div class={this.rootClass} part={this.partForName(\"toast\")} role={this.type === ERROR ? \"alert\" : \"status\"}>\n <Show when={this.iconName !== void 0}>\n <span class={ICON_BOX_CLASS} part={this.partForName(\"icon\")}>\n {this.iconGlyph.svg}\n </span>\n </Show>\n <div class={UIT.CONTENT} part={this.partForName(\"content\")}>\n <Show when={this.heading}>\n <div class={UIT.HEADER} part={this.partForName(\"header\")}>\n {this.heading}\n </div>\n </Show>\n <Show when={this.message}>\n <div class={UIT.MESSAGE} part={this.partForName(\"message\")}>\n {this.message}\n </div>\n </Show>\n <slot />\n </div>\n {this.closeButton.draw()}\n <Show when={this.hasActions && !this.actionsAreAttached}>{this.actionsBox()}</Show>\n </div>","<Show when={this.heading}>\n <div class={UIT.HEADER} part={this.partForName(\"header\")}>\n {this.heading}\n </div>\n </Show>","part={this.partForName(\"header\")}","<div class={UIT.HEADER} part={this.partForName(\"header\")}>\n {this.heading}\n </div>","<div class={UIT.CONTENT} part={this.partForName(\"content\")}>\n <Show when={this.heading}>\n <div class={UIT.HEADER} part={this.partForName(\"header\")}>\n {this.heading}\n </div>\n </Show>\n <Show when={this.message}>\n <div class={UIT.MESSAGE} part={this.partForName(\"message\")}>\n {this.message}\n </div>\n </Show>\n <slot />\n </div>","<Show when={this.message}>\n <div class={UIT.MESSAGE} part={this.partForName(\"message\")}>\n {this.message}\n </div>\n </Show>","part={this.partForName(\"message\")}","<div class={UIT.MESSAGE} part={this.partForName(\"message\")}>\n {this.message}\n </div>","<Show when={this.hasActions && !this.actionsAreAttached}>{this.actionsBox()}</Show>","this.hasActions && !this.actionsAreAttached","part={this.partForName(\"toast\")}","role={this.type === ERROR ? \"alert\" : \"status\"}","class={UIT.CONTENT}","part={this.partForName(\"content\")}","part={this.partForName(\"actions\")}","name={this.slotForName(ACTIONS)}","<div class={this.actionsClasses} part={this.partForName(\"actions\")}>\n <slot name={this.slotForName(ACTIONS)} />\n </div>","<Show when={this.displayDuration > 0}>\n <div class={this.progressClasses} part={this.partForName(\"progress\")}>\n <div\n class={this.barClasses}\n part={this.partForName(\"bar\")}\n data-ui-motion={ESSENTIAL}\n style={{ \"animation-duration\": `${this.displayDuration}ms` }}\n />\n </div>\n </Show>","part={this.partForName(\"progress\")}","class={this.barClasses}","part={this.partForName(\"bar\")}","\"animation-duration\": `${this.displayDuration}ms`","<div class={this.progressClasses} part={this.partForName(\"progress\")}>\n <div\n class={this.barClasses}\n part={this.partForName(\"bar\")}\n data-ui-motion={ESSENTIAL}\n style={{ \"animation-duration\": `${this.displayDuration}ms` }}\n />\n </div>","E.DOMElement","E.UIComponent","E.proto","E.protoMerged","E.derived","E.onChange","E.cssState","E.state","E.on","E.SlotContent","E.IconGlyph","E.CloseButton","E.Disclosure","UIT.WHITESPACE","UIT.LEFT","UIT.BOTTOM","UIT.ACTIVE","_$readShallow","_$setAttribute","UIT.HEADER","UIT.MESSAGE","_$getOwner","UIT.CONTENT","_$setStyleProperty","E.after","__name","toastCSS","E.hasMarkdown","UIT.WHITESPACE","UIT.FLUID","UIT.BUTTON","UIT.ICON","containerCSS","E.isBrowser","ICON","HEADER","Key","__decoratorStart","__publicField","__name$1","LEFT","WHITESPACE","ToggleCommands","MESSAGE","__decorateElement","ModalActions","__decoratorMetadata","__runInitializers","BUTTON","CONTENT","ACTIVE","__privateAdd","BOTTOM","FLUID","getOwner$1","toastVocabulary","ACTIONS","ATTACHED","INVERTED","VERTICAL","UIToast_default","_tmpl$","_tmpl$2","_tmpl$3","_tmpl$4","_tmpl$5","_tmpl$6","_tmpl$7","_onCommand_dec","_onFocusOut_dec","_onFocusIn_dec","_onPointerLeave_dec","_onPointerMove_dec","_onPointerEnter_dec","_isPaused_dec","_countdownHasStarted_dec","_displayDuration_dec","_isClosing_dec","_onConnectedChanged_dec","_barClasses_dec","_progressClasses_dec","_actionsClasses_dec","_verticalClasses_dec","_boxClasses_dec","_actionWords_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_isClosing","_countdownHasStarted","_isPaused","DOMElement","_UIToast","UIComponent","proto","protoMerged","derived","onChange","cssState","state","on","args","SlotContent","IconGlyph","CloseButton","event","reason","Disclosure","open","found","kind","action","detail","FORM_CONTROLS","OwnControls","allowed","ValueSets","words","word","actions","COMPACT","FLOATING","TOAST_BOX","UNCLICKABLE","UI_BUTTONS","PROGRESS","UP","DOWN","PROGRESSING","icon","TYPE_ICONS","NEUTRAL","_self$","_el$","_el$2","_el$3","_el$8","_el$9","_el$10","addEvent","ref","element","insert","createComponent","Show","memo","_el$4","_el$5","_el$6","_el$7","effect","readShallow","_v$","_$p","className","_p$","t","setAttribute","_self$2","_el$11","_el$13","_el$15","_el$17","_el$18","_el$19","_el$12","ICON_BOX_CLASS","_el$14","_el$16","ERROR","a","o","i","_self$3","_el$20","_el$21","_self$4","_el$22","_el$23","ESSENTIAL","setStyleProperty","isConnected","isReady","UI","box","SCALE","originalEvent","value","time","body","node","NodeType","MIN_DISPLAY_TIME","WORDS_PER_MINUTE","after","slotName","target","BUTTONS","UIToast","delegateEvents","UIToast_container_default","ToastStack","document","id","options","ID_PREFIX","toast","container","settle","closed","resolve","HIDE_EVENT","showIcon","markdown","hasMarkdown","attributes","DEFAULT_DISPLAY_TIME","TYPE_WORDS","HUES","name","Warnings","error","MARKDOWN_TAG","SANITIZED","BREAKS","message","layout","buttons","group","GROUP_NOUN","fragment","button","buttonsElement","definition","known","KEY_ONLY","switches","old","before","COLOR","click","spec","vocabulary","MULTIPLE","noun","position","DEFAULT_POSITION","ToastPositions","key","existing","CONTAINER_SHEET","CONTAINER_CLASS","NOTIFICATIONS","record","isBrowser"],"sources":["../src/components/ui-toast/UIToast.en.ts","../src/components/ui-toast/UIToast.types.ts","../src/components/ui-toast/UIToast.tsx","../src/components/ui-toast/ToastStack.ts","../src/components/ui-toast/index.ts"],"sourcesContent":["/**\n * Every name `<ui-toast>` uses: tag, attributes (kind + allowed values), events, slots, parts, states, texts.\n * Schema: `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-toast type=\"success\" inverted>` => `ui success inverted toast`. The element adds the layout words after\n * the noun (`vertical`, `actions`, `attached top`, `compact`), as Fomantic's JS did.\n * - `type` and `color` are both remaps (`colors.css`); `type` is `kind: \"valueOnly\"` because it emits its value alone\n * (`ui success toast`), as message's `state` does.\n * `neutral` (the default look) has no remap: `UIToast.css` owns it.\n * - `UI.toast({...})` (`ToastStack`) builds one of these per call, in a container per position;\n * a `<ui-toast>` written in the page shows where it is.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `<ui-toast>`\n * A toast: `<div class=\"floating toast-box\" part=\"box\">` around `<div class=\"ui ... toast\" part=\"toast\">`,\n * an optional progress bar and attached actions.\n ****************/\nexport const toastVocabulary = {\n tag: \"ui-toast\",\n icon: \"bell\",\n topics: [\"notifications\", \"messages\", \"feedback\", \"overlays\", \"modules\"],\n aka: [\"snackbar\", \"notification\", \"growl\", \"flash message\", \"toaster\"],\n noun: \"toast\",\n partOfSpeech: \"structure\",\n description: \"A toast gives people a short, non-blocking notification.\",\n attributes: [\n {\n name: \"type\",\n group: \"appearance\",\n kind: \"valueOnly\",\n values: [\"info\", \"success\", \"warning\", \"error\", \"neutral\"],\n description: \"Consequence (Fomantic's `class`), tinting it like a colour; `error` also announces it as an alert.\"\n },\n { name: \"color\", group: \"appearance\", kind: \"color\", description: \"Hue: a filled toast in that colour.\" },\n {\n name: \"inverted\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description: \"The dark scheme; a coloured one takes its light variant.\"\n },\n {\n name: \"heading\",\n replaces: [\"header\"],\n group: \"name\",\n kind: \"string\",\n description: \"Bold first line (Fomantic's `title`). Its old name was `header`.\"\n },\n { name: \"message\", group: \"appearance\", kind: \"string\", description: \"Body text; slotted content follows it.\" },\n {\n name: \"icon\",\n group: \"content\",\n kind: \"icon\",\n description:\n 'Icon name beside the content; bare `icon` (or `\"true\"`, as frameworks write it) uses the type\\'s own ' +\n \"(info, check, warning, cross).\"\n },\n {\n name: \"closable\",\n group: \"behaviour\",\n kind: \"boolean\",\n description: \"Shows a close icon (Fomantic's `closeIcon`).\"\n },\n {\n name: \"close-on-click\",\n group: \"appearance\",\n kind: \"boolean\",\n default: true,\n description:\n \"A click anywhere on it closes it (Fomantic's `closeOnClick`); off anyway with `closable`, actions or \" +\n \"form controls inside.\"\n },\n {\n name: \"display-time\",\n group: \"behaviour\",\n kind: \"string\",\n description:\n \"Milliseconds before it closes itself; absent or `0` keeps it until closed; `auto` ~== reading time \" +\n \"(120 words a minute, at least a second). `UI.toast()` defaults to `3000`.\"\n },\n {\n name: \"progress\",\n group: \"appearance\",\n kind: \"enum\",\n values: [\"top\", \"bottom\"],\n description: \"Shows a bar counting the display time down, at the `top` or `bottom` (Fomantic's `showProgress`).\"\n },\n { name: \"progress-up\", group: \"behaviour\", kind: \"boolean\", description: \"The bar fills up instead of emptying.\" },\n {\n name: \"pause-on-hover\",\n group: \"behaviour\",\n kind: \"boolean\",\n default: true,\n description: \"Pauses the countdown while the pointer is over it. Focus inside ALWAYS pauses it.\"\n },\n {\n name: \"compact\",\n group: \"layout\",\n kind: \"boolean\",\n default: true,\n description: 'A fixed width (350px); `compact=\"false\"` sizes it to its content.'\n },\n {\n name: \"actions\",\n group: \"appearance\",\n kind: \"string\",\n values: [\"basic\", \"left\", \"attached\", \"vertical\", \"top\", \"bottom\"],\n description:\n \"Layout words of the `actions` slot (Fomantic's `classActions`): `basic` (no bar), `left` (aligned left), \" +\n \"`attached` (joined below, or `attached top` above), `vertical` (a column beside the content).\"\n }\n ],\n events: [\n {\n name: \"ui-opened\",\n detail: \"{ displayTime: number }\",\n description: \"Shown, its entry animation finished (Fomantic's `onVisible`); the countdown has started.\"\n },\n {\n name: \"ui-closing\",\n detail: \"{ reason: ToastCloseReason, originalEvent?: Event }\",\n cancelable: true,\n description:\n \"About to close: the countdown ran out, the close icon, a click, Escape inside it, an action, a `--close` invoker command. \" +\n \"`preventDefault()` keeps it (Fomantic's `onHide` returning `false`).\"\n },\n {\n name: \"ui-closed\",\n detail: \"{ reason: ToastCloseReason }\",\n description:\n \"Closed, its exit animation finished (Fomantic's `onHidden`); the host is `hidden` now. \" +\n \"`UI.toast()` removes its toasts here.\"\n },\n {\n name: \"ui-approving\",\n detail: \"{ action: Element, originalEvent?: Event }\",\n cancelable: true,\n description:\n \"An approve action (`.approve` / `.ok` / `.positive`, `<ui-button positive>`) was activated; \" +\n \"`preventDefault()` keeps the toast open.\"\n },\n {\n name: \"ui-denying\",\n detail: \"{ action: Element, originalEvent?: Event }\",\n cancelable: true,\n description:\n \"A deny action (`.deny` / `.cancel` / `.negative`, `<ui-button negative>`) was activated; \" +\n \"`preventDefault()` keeps the toast open.\"\n }\n ],\n slots: [\n { name: \"\", description: \"Rich content, after the `message`.\" },\n {\n name: \"actions\",\n description:\n \"Buttons: `<ui-button>`s, or a `<ui-buttons>` group for `attached` actions. Any activated one closes \" +\n \"the toast unless its click was `preventDefault()`ed.\"\n }\n ],\n parts: [\n { name: \"box\", description: \"The toast box around the toast, its progress bar and attached actions.\" },\n { name: \"toast\", description: \"The toast itself (`role=status`, `alert` for errors).\" },\n { name: \"icon\", description: \"The icon box.\" },\n { name: \"content\", description: \"The content block: header, message, slot.\" },\n { name: \"header\", description: \"The `header` shorthand.\" },\n { name: \"message\", description: \"The `message` shorthand.\" },\n { name: \"close\", description: \"The close icon of a `closable` toast.\" },\n { name: \"actions\", description: \"The box around the `actions` slot.\" },\n { name: \"progress\", description: \"The progress bar's track.\" },\n { name: \"bar\", description: \"The progress bar.\" }\n ],\n states: [\n { name: \"paused\", description: \"Countdown paused: pointer over it, or focus inside.\" },\n { name: \"closing\", description: \"Closing: its exit animation is running.\" }\n ],\n texts: [\n { key: \"close\", text: \"Close\", description: \"Accessible name of the close icon.\" },\n {\n key: \"notifications\",\n text: \"Notifications\",\n description: \"Accessible name of each `UI.toast()` container (a `region` landmark).\"\n }\n ]\n} as const satisfies E.ComponentVocabulary\n","/**\n * The constants and types the `ui-toast` family's files share: `UIToast` and `ToastStack`.\n * - Pure data, at the bottom of the folder's imports: `import type` only, so node can load it (`yarn site:data`).\n * - A constant only one class reads sits below that class (epic `wwod-spell-ui`, Q18).\n */\n\nimport type { toastVocabulary } from \"./UIToast.en\"\n\n/** The vocabulary type, for brevity. */\nexport type Vocabulary = typeof toastVocabulary\n\n////////////////\n// ## Markup contract\n////////////////\n\n/** The `actions` word: the actions box's class and part, and the slot of the buttons. */\nexport const ACTIONS = \"actions\"\n\n/** The `attached` word: an `actions` layout word, and its class. */\nexport const ATTACHED = \"attached\"\n\n/** The `inverted` word: an attribute, a class, a `class` word `UI.toast()` sorts. */\nexport const INVERTED = \"inverted\"\n\n/** The `vertical` word: an `actions` layout word, and its class. */\nexport const VERTICAL = \"vertical\"\n\n/** The `ui` word of Fomantic's grammar, which the toast's extra boxes (bar, containers) spell out themselves. */\nexport const UI_WORD = \"ui\"\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E, UI, UIT } from \"spell/ui/core\"\nimport { toastVocabulary } from \"./UIToast.en\"\nimport { ACTIONS, ATTACHED, INVERTED, UI_WORD, VERTICAL, type Vocabulary } from \"./UIToast.types\"\n\nimport toastCSS from \"./UIToast.css?inline\"\n\n/****************\n * ### `DOMToastElement`\n * The DOM element of `<ui-toast>`: it adds `close()`, the toast's script API, which its component does.\n *\n * - NOTE: `DOMElement` checks its members against the attributes' property names; `close` isn't one.\n * - Above the component: its `elementSetup` reads this class while the component is defined.\n ****************/\nexport class DOMToastElement extends E.DOMElement<UIToast> {\n /** Close it now, reason `dismiss` (the cancelable `ui-closing` first); true when it closes. */\n close(): boolean {\n return this.component?.close() ?? false\n }\n}\n\n/****************\n * ### `UIToast`\n * The component behind `<ui-toast>`: a toast, a short message that shows for a while.\n * Its shadow DOM:\n * `<div class=\"floating toast-box\" part=\"box\">` around `<div class=\"ui … toast\" part=\"toast\">`\n * (icon, content block, close icon, actions), with an optional progress bar above or below and `attached` actions.\n *\n * - Where it shows: where it is.\n * - `UI.toast({…})` (`ToastStack`) puts the ones it builds in a container per position,\n * a popover in the top layer.\n * - A `<ui-toast>` written in the page is an ordinary block.\n *\n * - Its life: once connected it animates in (Fomantic's `scale`), fires `ui-opened`,\n * and starts counting down `display-time` (absent or `0`: it stays).\n * - Closing (the countdown, the close icon, a click, Escape inside it, an action, `domElement.close()`)\n * fires the cancelable `ui-closing` (with a `reason`), animates out,\n * sets `hidden` on the DOM element and fires `ui-closed`.\n * - It never removes itself: whoever inserted it owns the node.\n *\n * - The countdown pauses while the pointer moves over it (`pause-on-hover`, on by default)\n * and ALWAYS while focus is inside (WCAG 2.2.1), with `:state(paused)`; the progress bar pauses with it.\n *\n * - Accessibility: the toast is `role=status` (polite), `alert` for `type=\"error\"`; it never takes focus.\n * - The close icon is a real `<button>`.\n * - Escape closes it while focus is inside, with no page-wide Escape\n * (kind `toast` in `UI.overlays`, which also lets `UI.overlays.closeAll(\"toast\")` close every one).\n * - Motion follows `UI.transitions` (reduced motion: none);\n * the progress bar is `data-ui-motion=\"essential\"`: it IS the time left.\n *\n * - Invoker commands (`<button commandfor=\"id\" command=\"--close\">`):\n * `--close` closes it, reason `close`, as its close icon does.\n * - Nothing shows it again (a closed toast stays closed, `hidden`: the app inserts a new one),\n * so `--show` and `--toggle` are not answered.\n *\n * - Actions: a slotted button closes the toast unless its click was `preventDefault()`ed;\n * approve / deny ones (`UIT.ModalActionSelectors`) fire the cancelable `ui-approving` / `ui-denying` first.\n ****************/\nexport class UIToast extends E.UIComponent<Vocabulary> {\n @E.proto static vocabulary = toastVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { toast: toastCSS },\n DOMElement: DOMToastElement,\n // nothing to delegate to: a click on the text must not jump to an action button\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n constructor(...args: ConstructorParameters<typeof E.UIComponent>) {\n super(...args)\n this.domElement.addReleaseCallback(() => this.countdownTimer?.cancel())\n }\n\n ////////////////\n // ## Actions\n ////////////////\n\n /** Light-DOM slot occupancy: slotted actions. */\n readonly slots = new E.SlotContent(this.domElement)\n\n /** Has slotted actions? */\n get hasActions(): boolean {\n return this.slots.hasContent(this.slotForName(ACTIONS))\n }\n\n /** Layout words of the `actions` attribute, only the ones its vocabulary allows. */\n @E.derived\n get actionWords(): ReadonlySet<string> {\n const allowed = E.ValueSets.get(this.elementDefinition.attribute(ACTIONS).spec.values ?? [])\n const words = (this.actions ?? \"\").split(UIT.WHITESPACE).filter((word) => allowed.includes(word))\n return new Set(words)\n }\n\n /** Actions joined to the toast's edge (`attached`). */\n get actionsAreAttached(): boolean {\n return this.hasActions && this.actionWords.has(ATTACHED)\n }\n\n /** Actions in a column beside the content (`vertical`). */\n get actionsAreVertical(): boolean {\n return this.hasActions && this.actionWords.has(VERTICAL)\n }\n\n ////////////////\n // ## Classes\n ////////////////\n\n /** Layout words before the noun, the ones Fomantic's JS added: `vertical`, `actions`, `attached top`, `compact`. */\n protected get extraClass(): string | undefined {\n const words: string[] = []\n const actions = this.actionWords\n if (this.actionsAreVertical) words.push(VERTICAL)\n if (this.hasActions && !this.actionsAreAttached && (!actions.has(UIT.BASIC) || actions.has(UIT.LEFT))) {\n words.push(ACTIONS)\n }\n if (this.actionsAreAttached) {\n words.push(ATTACHED)\n if (this.actionsAreVertical) {\n if (actions.has(UIT.LEFT)) words.push(UIT.LEFT)\n } else words.push(actions.has(UIT.TOP) ? UIT.BOTTOM : UIT.TOP)\n }\n if (this.compact) words.push(COMPACT)\n return words.join(\" \") || undefined\n }\n\n /** Classes of the box. */\n @E.derived\n private get boxClasses(): string {\n const words = [FLOATING, TOAST_BOX]\n if (this.compact) words.push(COMPACT)\n if (!this.anyClickCloses) words.push(UNCLICKABLE)\n return words.join(\" \")\n }\n\n /** Classes of the wrapper of `vertical attached` actions. */\n @E.derived\n private get verticalClasses(): string {\n return [VERTICAL, ATTACHED, ...(this.compact ? [COMPACT] : [])].join(\" \")\n }\n\n /** Classes of the actions box: its layout words, and `ui buttons` when attached (Fomantic's). */\n @E.derived\n private get actionsClasses(): string {\n const words = [...this.actionWords]\n return (this.actionsAreAttached ? [UI_BUTTONS, ...words, ACTIONS] : [...words, ACTIONS]).join(\" \")\n }\n\n /** Classes of the progress track: its edge and the toast's colour words. */\n @E.derived\n private get progressClasses(): string {\n const words = [UI_WORD, ATTACHED, UIT.ACTIVE, PROGRESS, this.progress ?? UIT.BOTTOM]\n if (this.type) words.push(this.type)\n if (this.color) words.push(this.color)\n if (this.inverted) words.push(INVERTED)\n return words.join(\" \")\n }\n\n /** Classes of the bar: its direction, and `progressing` once the countdown runs. */\n @E.derived\n private get barClasses(): string {\n const words = [UIT.BAR, this.progressUp ? UP : DOWN]\n if (this.countdownHasStarted) words.push(PROGRESSING)\n return words.join(\" \")\n }\n\n ////////////////\n // ## Icons\n ////////////////\n\n /** Glyph of the icon: the `icon` name, or the type's own for a bare `icon`. */\n readonly iconGlyph = new E.IconGlyph({ owner: this, name: () => this.iconName })\n\n /** The close icon, while `closable`. */\n readonly closeButton = new E.CloseButton({\n owner: this,\n shows: () => !!this.closable,\n label: () => this.translationForKey(\"close\"),\n part: this.partForName(\"close\"),\n onClick: (event) => this.onCloseIcon(event)\n })\n\n /** Icon name: `icon`, or the type's own for a bare `icon`; `undefined` for none. */\n private get iconName(): string | undefined {\n const icon = this.icon\n if (icon === undefined || icon === null) return undefined\n return icon || TYPE_ICONS[this.type ?? NEUTRAL]\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n /** The box. */\n private box?: HTMLDivElement\n\n render(): JSX.Element {\n return (\n <div\n ref={(element) => (this.box = element)}\n class={this.boxClasses}\n part={this.partForName(\"box\")}\n onClick={this.onClick}\n onKeyDown={this.onKeyDown}\n >\n <Show when={this.progress === UIT.TOP}>{this.progressBar()}</Show>\n <Show when={this.actionsAreAttached && !this.actionsAreVertical && this.actionWords.has(UIT.TOP)}>\n {this.actionsBox()}\n </Show>\n <Show when={this.actionsAreAttached && this.actionsAreVertical} fallback={this.toast()}>\n <div class={this.verticalClasses}>\n <Show when={this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>\n {this.toast()}\n <Show when={!this.actionWords.has(UIT.LEFT)}>{this.actionsBox()}</Show>\n </div>\n </Show>\n <Show when={this.actionsAreAttached && !this.actionsAreVertical && !this.actionWords.has(UIT.TOP)}>\n {this.actionsBox()}\n </Show>\n <Show when={this.progress === UIT.BOTTOM}>{this.progressBar()}</Show>\n </div>\n )\n }\n\n /** The toast itself: icon, content (header, message, slot), close icon, inline actions. */\n private toast(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"toast\")} role={this.type === ERROR ? \"alert\" : \"status\"}>\n <Show when={this.iconName !== undefined}>\n <span class={ICON_BOX_CLASS} part={this.partForName(\"icon\")}>\n {this.iconGlyph.svg}\n </span>\n </Show>\n <div class={UIT.CONTENT} part={this.partForName(\"content\")}>\n <Show when={this.heading}>\n <div class={UIT.HEADER} part={this.partForName(\"header\")}>\n {this.heading}\n </div>\n </Show>\n <Show when={this.message}>\n <div class={UIT.MESSAGE} part={this.partForName(\"message\")}>\n {this.message}\n </div>\n </Show>\n <slot />\n </div>\n {this.closeButton.draw()}\n <Show when={this.hasActions && !this.actionsAreAttached}>{this.actionsBox()}</Show>\n </div>\n )\n }\n\n /** The box around the `actions` slot; rendered in ONE place at a time (a slot name must be unique). */\n private actionsBox(): JSX.Element {\n return (\n <div class={this.actionsClasses} part={this.partForName(\"actions\")}>\n <slot name={this.slotForName(ACTIONS)} />\n </div>\n )\n }\n\n /** The progress track and bar; the bar runs once the countdown has started. */\n private progressBar(): JSX.Element {\n return (\n <Show when={this.displayDuration > 0}>\n <div class={this.progressClasses} part={this.partForName(\"progress\")}>\n <div\n class={this.barClasses}\n part={this.partForName(\"bar\")}\n data-ui-motion={ESSENTIAL}\n style={{ \"animation-duration\": `${this.displayDuration}ms` }}\n />\n </div>\n </Show>\n )\n }\n\n ////////////////\n // ## Appearing\n ////////////////\n\n /** Has appeared once: `ui-opened` fired, the countdown started. */\n private hasShown = false\n\n /** This element's `UI.overlays` entry: no Escape, no outside clicks, no focus restore (kind `toast`). */\n private readonly overlay: E.OverlayEntry = {\n element: this.domElement,\n kind: \"toast\",\n restoreFocus: false,\n onDismiss: (reason) => void this.close(reason === \"close-all\" ? \"close-all\" : \"dismiss\")\n }\n\n /**\n * Connected and ready: appear; the cleanup disappears.\n * - It waits for the runtime (`isReady`) too, as the render does: appearing animates the rendered box.\n */\n @E.onChange(\"isConnected\", \"isReady\")\n protected onConnectedChanged(isConnected: boolean, isReady: boolean) {\n if (!isConnected || !isReady) return\n this.appear()\n return () => this.disappear()\n }\n\n /** Connected: join `UI.overlays`; the first time, animate in, start counting, `ui-opened`. */\n private appear() {\n if (this.isClosing) return\n UI.overlays.open(this.overlay)\n if (this.hasShown) return this.resumeTimer()\n this.hasShown = true\n this.startTimer()\n const box = this.box\n const entered = box\n ? UI.transitions.animate({ element: box, name: SCALE, direction: UIT.IN })\n : Promise.resolve(true)\n void entered.then(() => {\n if (!this.isClosing) this.disclosure.sendAfter(true)\n })\n }\n\n /** Disconnected: leave `UI.overlays`, hold the countdown. */\n private disappear() {\n UI.overlays.close(this.overlay)\n this.pauseTimer()\n }\n\n ////////////////\n // ## Closing\n ////////////////\n\n /** Closing (or closed): no further closes, no restarts; `:state(closing)`. */\n @E.cssState(\"closing\")\n @E.state\n accessor isClosing = false\n\n /** A click anywhere closes it: `close-on-click`, no close icon, no actions (Fomantic's rule). */\n get anyClickCloses(): boolean {\n return !!this.closeOnClick && !this.closable && !this.hasActions\n }\n\n /**\n * Open until it closes, once: `ui-opened` as it has appeared, the cancelable `ui-closing` as it's asked to close,\n * `ui-closed` once it has gone.\n */\n readonly disclosure = new E.Disclosure({\n component: this,\n kept: {\n isOpen: () => !this.isClosing,\n setOpen: (open) => {\n if (!open) this.startClosing()\n }\n },\n detail: (_open, originalEvent): UIT.ToastCloseDetail => ({ reason: this.closeReason, originalEvent }),\n afterDetail: (open): UIT.ToastShowDetail | UIT.ToastCloseDetail =>\n open ? { displayTime: this.displayDuration } : { reason: this.closeReason }\n })\n\n /** Why it was asked to close: `ui-closing`'s and `ui-closed`'s `reason`. */\n private closeReason: UIT.ToastCloseReason = \"dismiss\"\n\n /**\n * Close for `reason`: the cancelable `ui-closing`, then the exit animation, `hidden` on the DOM element and `ui-closed`.\n * - True when it closes; false when vetoed or already closing.\n */\n close(reason: UIT.ToastCloseReason = \"dismiss\", originalEvent?: Event): boolean {\n if (this.isClosing) return false\n this.closeReason = reason\n return this.disclosure.close(originalEvent)\n }\n\n /** `ui-closing` wasn't cancelled: the exit animation, `hidden` on the DOM element, `ui-closed`. */\n private startClosing() {\n this.isClosing = true\n this.stopTimer()\n UI.overlays.close(this.overlay)\n const box = this.box\n const exited = box\n ? UI.transitions.animate({ element: box, name: SCALE, direction: UIT.OUT })\n : Promise.resolve(true)\n void exited.then(() => {\n this.domElement.hidden = true\n this.disclosure.sendAfter(false)\n })\n }\n\n ////////////////\n // ## Countdown\n ////////////////\n\n /**\n * Milliseconds it stays; `0` for \"until closed\".\n * - `@derived`: `auto` walks the light DOM and counts words.\n */\n @E.derived\n get displayDuration(): number {\n const value = this.displayTime\n if (value === \"auto\") return this.readingTime\n const time = Number(value)\n return Number.isFinite(time) && time > 0 ? time : 0\n }\n\n /**\n * `display-time=\"auto\"`: reading time of its message at `WORDS_PER_MINUTE`, at least `MIN_DISPLAY_TIME`.\n * - The message: `header`, `message` and the default slot's content, never the slotted actions' labels.\n */\n private get readingTime(): number {\n const actions = this.slotForName(ACTIONS)\n const body = [...this.domElement.childNodes].filter((node) =>\n node.nodeType === E.NodeType.element ? (node as Element).slot !== actions : node.nodeType === E.NodeType.text\n )\n const text = [this.heading, this.message, ...body.map((node) => node.textContent)].join(\" \")\n const words = text.split(UIT.WHITESPACE).filter(Boolean).length\n return Math.max(MIN_DISPLAY_TIME, (words / WORDS_PER_MINUTE) * 60_000)\n }\n\n /** The countdown has started: the progress bar runs. Never cleared. */\n @E.state accessor countdownHasStarted = false\n\n /** Countdown paused: pointer over it or focus inside. `:state(paused)`. */\n @E.cssState(\"paused\")\n @E.state\n accessor isPaused = false\n\n /** Pending countdown. */\n private countdownTimer?: E.CancelablePromise<unknown>\n\n /** ms left on the countdown. */\n private timeLeft = 0\n\n /** When the running countdown (re)started, `performance.now()`. */\n private startedAt = 0\n\n /** Start counting `displayDuration` down (nothing for `0`). */\n private startTimer() {\n const time = this.displayDuration\n if (time <= 0) return\n this.timeLeft = time\n this.countdownHasStarted = true\n if (!this.isHovered && !this.focusIsInside) this.resumeTimer()\n }\n\n /** Run the countdown from where it stopped. */\n private resumeTimer() {\n if (this.countdownTimer || this.isClosing || this.timeLeft <= 0 || !this.domElement.isConnected) return\n this.startedAt = performance.now()\n this.countdownTimer = E.after(this.timeLeft / 1000, () => {\n this.countdownTimer = undefined\n this.timeLeft = 0\n this.close(\"timeout\")\n })\n }\n\n /** Hold the countdown, keeping what's left. */\n private pauseTimer() {\n if (!this.countdownTimer) return\n this.countdownTimer.cancel()\n this.countdownTimer = undefined\n this.timeLeft = Math.max(0, this.timeLeft - (performance.now() - this.startedAt))\n }\n\n /** Stop counting for good. */\n private stopTimer() {\n this.countdownTimer?.cancel()\n this.countdownTimer = undefined\n this.timeLeft = 0\n }\n\n /** Pause or resume after the pointer / focus moved. */\n private updatePause() {\n this.isPaused = this.isHovered || this.focusIsInside\n if (this.isPaused) this.pauseTimer()\n else this.resumeTimer()\n }\n\n ////////////////\n // ## Pointer and focus\n ////////////////\n\n /** The pointer entered it (maybe without moving). */\n private hasPointerEntered = false\n\n /** The pointer is over it and has really moved: the countdown pauses. */\n private isHovered = false\n\n /** Focus is inside it (the toast itself never has it). */\n private focusIsInside = false\n\n /**\n * Pointer entered it: only noted.\n * - A toast appearing under a RESTING pointer gets a `pointerenter` (the browser's synthetic move) with no real move;\n * pausing on that alone could hold it forever, so `onPointerMove` pauses.\n */\n @E.on(\"pointerenter\")\n protected onPointerEnter() {\n this.hasPointerEntered = true\n }\n\n /** A real pointer move over it (`movementX/Y` nonzero: synthetic ones have none): pause (with `pause-on-hover`). */\n @E.on(\"pointermove\")\n protected onPointerMove(event: PointerEvent) {\n if (!this.hasPointerEntered || this.isHovered || (!event.movementX && !event.movementY)) return\n if (!this.pauseOnHover) return\n this.isHovered = true\n this.updatePause()\n }\n\n /** Pointer off it: resume. */\n @E.on(\"pointerleave\")\n protected onPointerLeave() {\n this.hasPointerEntered = false\n this.isHovered = false\n this.updatePause()\n }\n\n /** Focus came in: pause. */\n @E.on(\"focusin\")\n protected onFocusIn() {\n this.focusIsInside = true\n this.updatePause()\n }\n\n /** Focus moved: resume once it has really left (a move inside refocuses before the microtask). */\n @E.on(\"focusout\")\n protected onFocusOut() {\n E.afterSolidUpdate(() => {\n this.focusIsInside = this.domElement.matches(\":focus-within\")\n this.updatePause()\n })\n }\n\n ////////////////\n // ## Commands, keys and clicks\n ////////////////\n\n /** An invoker command aimed at the DOM element: only `ToggleCommands.close`. */\n @E.on(\"command\")\n protected onCommand(event: Event) {\n if ((event as Event & { command?: string }).command === UIT.ToggleCommands.close) this.close(\"close\", event)\n }\n\n /** Close icon. */\n private readonly onCloseIcon = (event: MouseEvent) => {\n event.stopPropagation()\n this.close(\"close\", event)\n }\n\n /** Escape with focus inside: close (unless something earlier handled it, e.g. a modal). */\n private readonly onKeyDown = (event: KeyboardEvent) => {\n if (event.key !== UIT.Key.escape || event.defaultPrevented) return\n if (this.close(\"escape\", event)) event.preventDefault()\n }\n\n /**\n * A click inside: an action closes (approve / deny ask first);\n * elsewhere a click closes a `close-on-click` toast,\n * unless it landed on something interactive or the toast holds form controls.\n */\n private readonly onClick = (event: MouseEvent) => {\n if (this.isClosing) return\n const found = this.actionFor(event)\n if (found) {\n if (event.defaultPrevented) return\n const [kind, action] = found\n if (kind !== \"action\") {\n const detail: UIT.ToastActionDetail = { action, originalEvent: event }\n if (!this.send(kind === \"approve\" ? \"ui-approving\" : \"ui-denying\", detail)) return\n }\n this.close(kind, event)\n return\n }\n // a click on a control of its own inside is that control's (`E.OwnControls`)\n if (!this.anyClickCloses || this.domElement.querySelector(FORM_CONTROLS)) return\n if (E.OwnControls.isClicked(event, { upTo: this.domElement })) return\n this.close(\"click\", event)\n }\n\n ////////////////\n // ## Reading the light DOM\n ////////////////\n\n /**\n * The action `event` activated: walking the composed path up to the DOM element,\n * the innermost light-DOM element that approves / denies (`ModalActionSelectors`) or is a button --\n * counted only inside a child slotted as `actions`.\n */\n private actionFor(event: Event): [ToastAction, Element] | undefined {\n const slotName = this.slotForName(ACTIONS)\n let found: [ToastAction, Element] | undefined\n for (const target of UIT.ModalActions.lightPath(event, this.domElement)) {\n if (!found) {\n const action = UIT.ModalActions.of(target) ?? (UIToast.isButton(target) ? \"action\" : undefined)\n if (action) found = [action, target]\n }\n if (target.parentElement === this.domElement) return target.slot === slotName ? found : undefined\n }\n return undefined\n }\n\n /**\n * A native button / link, or an element whose definition's noun is `button` (`<ui-button>`, translated too).\n * - Static: it reads only the element and the page-wide `UIComponent.registry.definitions`.\n */\n private static isButton(element: Element): boolean {\n return (\n element.matches(BUTTONS) ||\n E.UIComponent.registry.definitions.get(element.localName)?.vocabulary.noun === UIT.BUTTON\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIToast extends E.AttributeValues<Vocabulary> {}\n\n/** What an activated action does: approve, deny, or just close (any other button). */\ntype ToastAction = Extract<UIT.ToastCloseReason, \"approve\" | \"deny\" | \"action\">\n\n/** The `type` value announced as an alert (`role=alert`), not a status. */\nconst ERROR = \"error\"\n\n/** The class word of the box around the toast: it floats (`UIToast.css`). */\nconst FLOATING = \"floating\"\n\n/** The class word of the box around the toast, its progress bar and attached actions. */\nconst TOAST_BOX = \"toast-box\"\n\n/** The class word of a fixed-width toast (`compact`, on by default). */\nconst COMPACT = \"compact\"\n\n/** The class word of a box a click doesn't close. */\nconst UNCLICKABLE = \"unclickable\"\n\n/** Icons of a bare `icon`, by type (Fomantic's `icons` setting, in Font Awesome names). */\nconst TYPE_ICONS: Readonly<Record<string, string>> = {\n info: \"circle-info\",\n success: \"circle-check\",\n warning: \"triangle-exclamation\",\n error: \"circle-xmark\"\n}\n\n/** `type` of a toast without one: its icon is none of `TYPE_ICONS`. */\nconst NEUTRAL = \"neutral\"\n\n/** `display-time=\"auto\"`: reading speed (Fomantic's `wordsPerMinute`). */\nconst WORDS_PER_MINUTE = 120\n\n/** `display-time=\"auto\"`: the floor, in ms (Fomantic's `minDisplayTime`). */\nconst MIN_DISPLAY_TIME = 1000\n\n/** `UI.transitions` animation in and out (Fomantic's `showMethod` / `hideMethod`). */\nconst SCALE = \"scale\"\n\n/** Class words of the icon box (`UIToast.css`). */\nconst ICON_BOX_CLASS = \"centered icon\"\n\n/** Class words of `attached` actions: a button group (Fomantic's). */\nconst UI_BUTTONS = \"ui buttons\"\n\n/** Class word of the progress track. */\nconst PROGRESS = \"progress\"\n\n/** Class word of a bar that fills up (`progress-up`). */\nconst UP = \"up\"\n\n/** Class word of a bar that empties. */\nconst DOWN = \"down\"\n\n/** Class word of a running bar. */\nconst PROGRESSING = \"progressing\"\n\n/** `data-ui-motion` value that keeps the bar running under reduced motion (`reset.css`). */\nconst ESSENTIAL = \"essential\"\n\n/** Buttons an action click can come from, besides `<ui-button>`s. */\nconst BUTTONS = \"button, a[href], [role=button], input[type=button], input[type=submit]\"\n\n/** Form controls that turn `close-on-click` off (Fomantic's `selector.input`). */\nconst FORM_CONTROLS = \"input:not([type=hidden]), textarea, select, button\"\n","import { E, UI, UIT } from \"spell/ui/core\"\nimport { toastVocabulary } from \"./UIToast.en\"\nimport { ACTIONS, ATTACHED, INVERTED, UI_WORD, VERTICAL, type Vocabulary } from \"./UIToast.types\"\n\nimport containerCSS from \"./UIToast.container.css?inline\"\n\n/****************\n * ### `ToastStack`\n * The toasts behind `UI.toast({…})` / `UI.toasts.show()` (Fomantic's `$.toast({…})`):\n * a `<ui-toast>` built for the call, put in the container for its `position`, removed once it has hidden.\n *\n * - Containers:\n * one `<div popover=\"manual\" class=\"ui [position] toast-container\" role=\"region\">` per position (and `horizontal`),\n * in `<body>`, styled by the page sheet `toast-container` (`UIToast.container.css`).\n * - Shown (or re-shown, to be lifted above anything opened since) for each new toast, unless focus is inside it.\n * - Removed when its last toast goes.\n * - Options map onto attributes (`title` => `heading`, `showProgress` => `progress` …);\n * `displayTime` defaults to Fomantic's `3000`.\n * - `class` words sort themselves: a `type` word, a hue (`color`) or `inverted`.\n * Every word also stays on the `<ui-toast>`,\n * so a page can theme one toast by its own class (the `--ui-toast-*` tokens).\n * - `markdown`, and the message has Markdown in it (`hasMarkdown()`, `spell/util/string`):\n * a `<ui-markdown sanitized breaks>` in its body instead of its `message`, its family imported the first time.\n * - Actions become `<ui-button slot=\"actions\">`s:\n * Fomantic's `class` on the button (so `.positive` / `.deny` … still approve / deny),\n * its button words and hue as attributes.\n * - `attached` layouts wrap them in a `<ui-buttons>`.\n * - An action's `click()` returning `false` prevents the click's default, which keeps the toast.\n * - Replacing: `show({ id })` with the id of a showing toast removes that one first (its `closed` resolves).\n * - Everything is light DOM built with `createElement` / `textContent`: never `innerHTML` with caller text.\n * - Registered by the family barrel as `UI.toasts`' provider; the runtime never imports it.\n ****************/\nexport class ToastStack implements E.ToastProvider {\n /** Page the toasts and their containers are made in; a test passes its own. */\n readonly document: Document\n\n /** Showing toasts by id, with what settles their `closed`. */\n private readonly showingToasts = new Map<string, ToastRecord>()\n\n /** Containers by position key. */\n private readonly containers = new Map<string, HTMLElement>()\n\n constructor({ document = globalThis.document }: ToastStackProps = {}) {\n this.document = document\n }\n\n /** Show a `<ui-toast>` for `options`, replacing a showing one with the same `id`. */\n show(options: E.ToastOptions): E.ToastHandle {\n const id = options.id ?? UI.ids.next(ID_PREFIX)\n this.remove(id)\n const toast = this.toastFor(options, id)\n const container = this.containerFor(options)\n if (options.newestOnTop) container.prepend(toast)\n else container.append(toast)\n ToastStack.raise(container)\n let settle!: () => void\n const closed = new Promise<void>((resolve) => (settle = resolve))\n this.showingToasts.set(id, { element: toast, settle })\n toast.addEventListener(HIDE_EVENT, () => this.remove(id), { once: true })\n return { id, closed, element: toast }\n }\n\n /** Close toast `id` as `domElement.close()` does (the cancelable `ui-closing` first); nothing for an unknown id. */\n dismiss(id: string) {\n const record = this.showingToasts.get(id)\n ;(record?.element as { close?: () => boolean } | undefined)?.close?.()\n }\n\n ////////////////\n // ## Building\n ////////////////\n\n /** The `<ui-toast>` for `options`. */\n private toastFor(options: E.ToastOptions, id: string): HTMLElement {\n const toast = this.document.createElement(toastVocabulary.tag)\n toast.id = id\n const showIcon = options.showIcon ?? true\n // keys checked against the vocabulary\n // its message as Markdown, where it has some (epic `language` P64): a `<ui-markdown>` in its body, after the heading\n const markdown = options.markdown && options.message && E.hasMarkdown(options.message) ? options.message : undefined\n const attributes: Partial<Record<E.AttributeNameOf<Vocabulary>, string>> = {\n heading: options.title,\n message: markdown ? undefined : options.message,\n \"display-time\": String(options.displayTime ?? DEFAULT_DISPLAY_TIME),\n icon: showIcon === true ? \"\" : showIcon || undefined,\n progress: options.showProgress || undefined,\n \"progress-up\": options.progressUp ? \"\" : undefined,\n \"pause-on-hover\": options.pauseOnHover === false ? \"false\" : undefined,\n closable: options.closeIcon ? \"\" : undefined,\n \"close-on-click\": options.closeOnClick === false ? \"false\" : undefined,\n compact: options.compact === false ? \"false\" : undefined,\n actions: options.actions?.length ? options.classActions : undefined,\n type: options.type\n }\n const words = (options.class ?? \"\").split(UIT.WHITESPACE).filter(Boolean)\n for (const word of words) {\n if (TYPE_WORDS.includes(word)) attributes.type = word\n else if (E.ValueSets.has(HUES, word)) attributes.color = word\n else if (word === INVERTED) attributes.inverted = \"\"\n }\n for (const [name, value] of Object.entries(attributes)) if (value !== undefined) toast.setAttribute(name, value)\n // every word stays on the DOM element too (Fomantic's `class`): the page themes this one toast by it\n if (words.length) toast.className = words.join(\" \")\n if (markdown) toast.append(this.markdownFor(markdown))\n if (options.actions?.length) toast.append(this.actionsFor(options.actions, options.classActions ?? \"\"))\n return toast\n }\n\n /**\n * `message` as a `<ui-markdown sanitized breaks>`, the toast's own content: its family imported the first time.\n * - `sanitized`: the message may hold what someone typed, so raw HTML in it goes through DOMPurify.\n * - `breaks`: each `\\n` a line break, as the plain message has.\n * - Its text is the element's text content, never markup.\n */\n private markdownFor(message: string): HTMLElement {\n void import(\"spell/ui/components/ui-markdown\").catch((error: unknown) =>\n E.Warnings.warn(\"UI.toast()\", \"can't load <ui-markdown> for a Markdown message\", error)\n )\n const markdown = this.document.createElement(MARKDOWN_TAG)\n markdown.toggleAttribute(SANITIZED, true)\n markdown.toggleAttribute(BREAKS, true)\n markdown.textContent = message\n return markdown\n }\n\n /**\n * The actions:\n * `<ui-button slot=\"actions\">`s, or one `<ui-buttons slot=\"actions\">` around them for `attached` layouts\n * (`vertical` with `vertical attached`).\n */\n private actionsFor(actions: readonly E.ToastAction[], layout: string): Node {\n const words = layout.split(UIT.WHITESPACE)\n const buttons = actions.map((action) => this.buttonFor(action))\n const group = ToastStack.definitionFor(GROUP_NOUN)\n if (!words.includes(ATTACHED) || !group) {\n const fragment = this.document.createDocumentFragment()\n for (const button of buttons) {\n button.slot = ACTIONS\n fragment.append(button)\n }\n return fragment\n }\n const buttonsElement = this.document.createElement(group.tag)\n buttonsElement.slot = ACTIONS\n buttonsElement.setAttribute(words.includes(VERTICAL) ? VERTICAL : UIT.FLUID, \"\")\n buttonsElement.append(...buttons)\n return buttonsElement\n }\n\n /**\n * One action as a `<ui-button>`:\n * - `class` kept on the DOM element (approve / deny classes)\n * - its words that are button attributes, or an old switch a button attribute replaces (`positive` => `color`,\n * `basic` => `appearance`), or hues (`color`), set as attributes\n * - `click` wired, `false` keeping the toast open\n */\n private buttonFor(action: E.ToastAction): HTMLElement {\n const definition = ToastStack.definitionFor(UIT.BUTTON)\n const button = this.document.createElement(definition?.tag ?? \"button\")\n const words = (action.class ?? \"\").split(UIT.WHITESPACE).filter(Boolean)\n if (words.length) button.className = words.join(\" \")\n const known = new Set(\n definition?.vocabulary.attributes.filter(({ kind }) => kind === KEY_ONLY).map(({ name }) => name)\n )\n const switches = ToastStack.oldSwitchesOf(definition?.vocabulary)\n for (const word of words) {\n const old = switches.get(word)\n if (known.has(word)) button.setAttribute(word, \"\")\n else if (old) {\n const before = old.isMultiple ? button.getAttribute(old.name) : null\n button.setAttribute(old.name, before ? `${before} ${old.value}` : old.value)\n } else if (E.ValueSets.has(HUES, word)) button.setAttribute(COLOR, word)\n }\n if (action.icon && definition) button.setAttribute(UIT.ICON, action.icon)\n if (action.text) button.textContent = action.text\n else if (action.icon) button.setAttribute(\"aria-label\", action.icon)\n const click = action.click\n if (click) {\n button.addEventListener(\"click\", (event) => {\n if (click(event) === false) event.preventDefault()\n })\n }\n return button\n }\n\n /**\n * The old switches `vocabulary`'s attributes replace (`AttributeSpec.replaces`), by old name:\n * `positive` => `color=\"positive\"`, `basic` => a word of `appearance`.\n * - Static: pure, of the vocabulary alone.\n */\n private static oldSwitchesOf(vocabulary: E.ComponentVocabulary | undefined): Map<string, OldSwitch> {\n const switches = new Map<string, OldSwitch>()\n for (const spec of vocabulary?.attributes ?? []) {\n for (const old of spec.replaces ?? []) {\n if (typeof old === \"string\" || old.value === undefined) continue\n switches.set(old.from, { name: spec.name, value: old.value, isMultiple: spec.kind === MULTIPLE })\n }\n }\n return switches\n }\n\n /**\n * The registered definition whose vocabulary noun is `noun` (`<ui-button>`, or a translated tag).\n * - Static: it reads the page-wide registry, `UIComponent.registry.definitions`, nothing of this stack's.\n */\n private static definitionFor(noun: string) {\n for (const definition of E.UIComponent.registry.definitions.values()) {\n if (definition.vocabulary.noun === noun) return definition\n }\n return undefined\n }\n\n ////////////////\n // ## Containers\n ////////////////\n\n /** The container for `options`' position (and `horizontal`), made (and its sheet registered) on first use. */\n private containerFor(options: E.ToastOptions): HTMLElement {\n let position = options.position ?? DEFAULT_POSITION\n if (!ToastPositions.includes(position as ToastPosition)) {\n E.Warnings.devWarn(\"UI.toast()\", `unknown position \"${position}\"; using \"${DEFAULT_POSITION}\"`)\n position = DEFAULT_POSITION\n }\n const key = options.horizontal ? `${position} horizontal` : position\n const existing = this.containers.get(key)\n if (existing?.isConnected) return existing\n if (!UI.styles.has(CONTAINER_SHEET)) UI.styles.register(CONTAINER_SHEET, containerCSS, { page: true })\n const container = this.document.createElement(\"div\")\n container.popover = \"manual\"\n const words = [UI_WORD, position, CONTAINER_CLASS, ...(options.horizontal ? [\"horizontal\"] : [])]\n container.className = words.join(\" \")\n container.setAttribute(\"role\", \"region\")\n container.setAttribute(\"aria-label\", UI.i18n.t(NOTIFICATIONS))\n this.document.body.append(container)\n this.containers.set(key, container)\n return container\n }\n\n /**\n * Show `container` on top of the top layer; left alone while focus is inside (re-showing would drop it).\n * - Static: it touches only the container it's given.\n */\n private static raise(container: HTMLElement) {\n const open = container.matches(\":popover-open\")\n if (open && container.matches(\":focus-within\")) return\n if (open) container.hidePopover()\n container.showPopover()\n }\n\n /** Forget toast `id`: remove its element, settle its `closed`, drop an emptied container. */\n private remove(id: string) {\n const record = this.showingToasts.get(id)\n if (!record) return\n this.showingToasts.delete(id)\n const container = record.element.parentElement\n record.element.remove()\n record.settle()\n if (container && !container.children.length) {\n if (container.matches(\":popover-open\")) container.hidePopover()\n container.remove()\n for (const [key, value] of this.containers) if (value === container) this.containers.delete(key)\n }\n }\n}\n\n/** Constructor props for `ToastStack`. */\nexport type ToastStackProps = {\n /** page to build in. Default: the global `document`. */\n document?: Document\n}\n\n/** A showing toast. */\ntype ToastRecord = {\n /** its `<ui-toast>` */\n element: HTMLElement\n /** resolves the handle's `closed` */\n settle: () => void\n}\n\n/** The event that ends a toast: the stack removes its toasts on it. */\nconst HIDE_EVENT: E.EventName<Vocabulary> = \"ui-closed\"\n\n/** Positions a toast container takes (Fomantic's). */\nconst ToastPositions = [\n \"top right\",\n \"top left\",\n \"top center\",\n \"bottom right\",\n \"bottom left\",\n \"bottom center\",\n \"centered\"\n] as const\n\n/** One of `ToastPositions`. */\ntype ToastPosition = (typeof ToastPositions)[number]\n\n/** Position of a toast that names none: out of the way of what a page's top holds (Fomantic's is top right). */\nconst DEFAULT_POSITION: ToastPosition = \"bottom right\"\n\n/** `UI.ids` prefix of toast ids. */\nconst ID_PREFIX = toastVocabulary.tag\n\n/** Fomantic's default `displayTime`, in ms. */\nconst DEFAULT_DISPLAY_TIME = 3000\n\n/** `type` words (the vocabulary's): a `class` word among them becomes `type`. */\nconst TYPE_WORDS = (toastVocabulary.attributes.find(({ name }) => name === \"type\") as E.AttributeSpec)\n .values as readonly string[]\n\n/** Value set of the hues: a `class` word among them becomes `color`. */\nconst HUES = \"hues\"\n\n/** Attribute kind of a button's words (`positive`, `basic` ...): a `class` word of that kind becomes an attribute. */\nconst KEY_ONLY = \"keyOnly\"\n\n/** Attribute kind that takes several words at once: an old switch adds its word (`appearance=\"basic circular\"`). */\nconst MULTIPLE = \"multiple\"\n\n/** An old switch a button attribute replaces: the attribute, the value it sets, and whether it adds a word. */\ntype OldSwitch = { name: string; value: string; isMultiple: boolean }\n\n/** `<ui-button>`'s hue attribute (canonical). */\nconst COLOR = \"color\"\n\n/** Noun of the button group (`<ui-buttons>`) that holds `attached` actions. */\nconst GROUP_NOUN = \"buttons\"\n\n/** Page sheet of the containers (`UIToast.container.css`). */\nconst CONTAINER_SHEET = \"toast-container\"\n\n/** Class word of a container. */\nconst CONTAINER_CLASS = \"toast-container\"\n\n/** Text key of the containers' name. */\nconst NOTIFICATIONS = \"notifications\"\n\n/** What draws a Markdown message: Spell UI's `<ui-markdown>`, its page tag in every language. */\nconst MARKDOWN_TAG = \"ui-markdown\"\n\n/** `<ui-markdown>`'s attribute: its markup through DOMPurify. */\nconst SANITIZED = \"sanitized\"\n\n/** `<ui-markdown>`'s attribute: each line break in the text a line break on the page. */\nconst BREAKS = \"breaks\"\n","/**\n * The toast family: defines `<ui-toast>` and exports its component, `UIToast`, and its DOM element, `DOMToastElement`.\n * - SIDE EFFECTS:\n * - defines `<ui-toast>`, and `<ui-button>` / `<ui-buttons>` too\n * (through `spell/ui/components/ui-button`: `UI.toast()` builds its actions from them)\n * - registers `ToastStack` as `UI.toasts`' provider once the runtime has loaded, so `UI.toast({…})` works\n * - Also the library's `spell/ui/ui-toast` entry (its size is in `notes/report.md`).\n */\n\nimport { E, UI } from \"spell/ui/core\"\nimport { DOMToastElement, UIToast } from \"./UIToast\"\nimport { ToastStack } from \"./ToastStack\"\n\nimport \"spell/ui/components/ui-button\"\n\nUIToast.define()\nif (E.isBrowser()) void UI.load().then(() => UI.toasts.register(new ToastStack()))\n\nexport { UIToast, DOMToastElement, ToastStack }\n"],"mappings":";;;;;;AAoBA,IAAagG,IAAkB;CAC7B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAiB;EAAY;EAAY;EAAY;CAAS;CACvE,KAAK;EAAC;EAAY;EAAgB;EAAS;EAAiB;CAAS;CACrE,MAAM;CACN,cAAc;CACd,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ;IAAC;IAAQ;IAAW;IAAW;IAAS;GAAS;GACzD,aAAa;EACf;EACA;GAAE,MAAM;GAAS,OAAO;GAAc,MAAM;GAAS,aAAa;EAAuC;EACzG;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,UAAU,CAAC,QAAQ;GACnB,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GAAE,MAAM;GAAW,OAAO;GAAc,MAAM;GAAU,aAAa;EAA0C;EAC/G;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aACE;EAEJ;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,SAAS;GACT,aACE;EAEJ;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAC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,WAAWA,EAAG,OAAO,SAAS,IAAIkB,GAAW,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ // src/components/ui-toc/ui-toc.editor.html?raw
2
+ var e = "<!-- <ui-toc>'s property editor layout: move, pair (<ui-fields>) or leave out (data-omit) its properties. How: Spell UI's AGENTS.md, \"Property editor layouts\". -->\n<ui-property-editor schema=\"ui-toc\" data-omit=\"\">\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"for\"></ui-property>\n <ui-property name=\"scroller\"></ui-property>\n <ui-property name=\"heading\"></ui-property>\n <ui-property name=\"size\"></ui-property>\n <ui-property name=\"expanded\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
3
+ export { e as default };
4
+
5
+ //# sourceMappingURL=ui-toc.editor-D_S1KFY_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-toc.editor-D_S1KFY_.js","names":["ui_toc_editor_default"],"sources":[],"mappings":""}