spell-ui 0.8.8 → 0.8.10

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 (1167) 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 +25 -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 +36 -2
  207. package/dist/components/ui-modal/UIModal.d.ts +1 -0
  208. package/dist/components/ui-modal/UIModal.en.d.ts +1 -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 +16 -5
  237. package/dist/components/ui-parts/UIHeader.en.d.ts +9 -5
  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 +23 -7
  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/UIToast.d.ts +1 -0
  364. package/dist/components/ui-toast/UIToast.en.d.ts +1 -0
  365. package/dist/components/ui-toc/UIToc.d.ts +1 -0
  366. package/dist/components/ui-toc/UIToc.en.d.ts +1 -0
  367. package/dist/components/ui-toolbar/UIToolbar.d.ts +134 -1
  368. package/dist/components/ui-toolbar/UIToolbar.en.d.ts +75 -42
  369. package/dist/components/ui-toolbar/UIToolbar.es.d.ts +5 -0
  370. package/dist/components/ui-transition/UITransition.d.ts +1 -0
  371. package/dist/components/ui-transition/UITransition.en.d.ts +1 -0
  372. package/dist/components/ui-tree/UITree.d.ts +102 -2
  373. package/dist/components/ui-tree/UITree.en.d.ts +14 -1
  374. package/dist/components/ui-tree/UITree.es.d.ts +3 -0
  375. package/dist/components/ui-tree/UITreeItem.d.ts +21 -2
  376. package/dist/components/ui-tree/UITreeItem.en.d.ts +5 -1
  377. package/dist/components/ui-tree/UITreeItem.es.d.ts +1 -0
  378. package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +1 -0
  379. package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +1 -0
  380. package/dist/components/ui-tree-diagram/UITreeNode.d.ts +1 -0
  381. package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +1 -0
  382. package/dist/components/ui-video/UIAudio.d.ts +1 -0
  383. package/dist/components/ui-video/UIAudio.en.d.ts +1 -0
  384. package/dist/components/ui-video/UIVideo.d.ts +1 -0
  385. package/dist/components/ui-video/UIVideo.en.d.ts +1 -0
  386. package/dist/components/ui-visibility/UIVisibility.d.ts +1 -0
  387. package/dist/components/ui-visibility/UIVisibility.en.d.ts +1 -0
  388. package/dist/components/ui-zoom/UIZoom.d.ts +1 -0
  389. package/dist/components/ui-zoom/UIZoom.en.d.ts +1 -0
  390. package/dist/{components.es-BOa_7gFF.js → components.es-DEa8Ep42.js} +265 -77
  391. package/dist/components.es-DEa8Ep42.js.map +1 -0
  392. package/dist/core.js +884 -806
  393. package/dist/core.js.map +1 -1
  394. package/dist/{crisp-VfYZlTph.js → crisp-DIpY320U.js} +3 -4
  395. package/dist/crisp-DIpY320U.js.map +1 -0
  396. package/dist/crisp.theme-Ir9p4BDC.js +5 -0
  397. package/dist/crisp.theme-Ir9p4BDC.js.map +1 -0
  398. package/dist/{dark-CbUdPe0a.js → dark-B5s4QbmU.js} +2 -3
  399. package/dist/dark-B5s4QbmU.js.map +1 -0
  400. package/dist/{dist-BLYIGZVK.js → dist-BQT4KajA.js} +34 -80
  401. package/dist/dist-BQT4KajA.js.map +1 -0
  402. package/dist/docs-components/docs-components.types.d.ts +6 -0
  403. package/dist/docs-components/ui-docs-palette/UIDocsPalette.d.ts +180 -0
  404. package/dist/docs-components/ui-docs-palette/UIDocsPalette.en.d.ts +88 -0
  405. package/dist/docs-components/ui-docs-palette/UIDocsPalette.types.d.ts +5 -0
  406. package/dist/docs-components/ui-docs-palette/index.d.ts +2 -0
  407. package/dist/docs-components/ui-docs-tokens/UIDocsTokens.d.ts +23 -0
  408. package/dist/docs-components/ui-docs-tokens/UIDocsTokens.en.d.ts +5 -1
  409. package/dist/elements/PartComponent.d.ts +5 -0
  410. package/dist/elements/PopoverPanel.d.ts +12 -1
  411. package/dist/elements/Validator.d.ts +1 -1
  412. package/dist/emoji/cldr/{0-DSUpV2d7.js → 0-B6B0nyLW.js} +2 -3
  413. package/dist/emoji/cldr/0-B6B0nyLW.js.map +1 -0
  414. package/dist/emoji/cldr/{a-D_oB4vJ-.js → a-C12vpdzK.js} +2 -3
  415. package/dist/emoji/cldr/a-C12vpdzK.js.map +1 -0
  416. package/dist/emoji/cldr/{b-DX0W0Mda.js → b-BGkQUJ8v.js} +2 -3
  417. package/dist/emoji/cldr/b-BGkQUJ8v.js.map +1 -0
  418. package/dist/emoji/cldr/{c-DUHidpE9.js → c-DtqAfVnG.js} +2 -3
  419. package/dist/emoji/cldr/c-DtqAfVnG.js.map +1 -0
  420. package/dist/emoji/cldr/{d-CiCXZXay.js → d-B5SNGAad.js} +2 -3
  421. package/dist/emoji/cldr/d-B5SNGAad.js.map +1 -0
  422. package/dist/emoji/cldr/{e-DILJo3Ri.js → e-CMUDvE48.js} +2 -3
  423. package/dist/emoji/cldr/e-CMUDvE48.js.map +1 -0
  424. package/dist/emoji/cldr/{f-ByGFLyOq.js → f-Dfhd9bp8.js} +2 -3
  425. package/dist/emoji/cldr/f-Dfhd9bp8.js.map +1 -0
  426. package/dist/emoji/cldr/{g-BZ0FRsud.js → g-VpFllv6y.js} +2 -3
  427. package/dist/emoji/cldr/g-VpFllv6y.js.map +1 -0
  428. package/dist/emoji/cldr/{h-jtLdvRXQ.js → h-CE6GevC3.js} +2 -3
  429. package/dist/emoji/cldr/h-CE6GevC3.js.map +1 -0
  430. package/dist/emoji/cldr/{i-DcbJ5utE.js → i-BUPzV8pA.js} +2 -3
  431. package/dist/emoji/cldr/i-BUPzV8pA.js.map +1 -0
  432. package/dist/emoji/cldr/{j-BuEqP5nz.js → j-BFAg68Ig.js} +2 -3
  433. package/dist/emoji/cldr/j-BFAg68Ig.js.map +1 -0
  434. package/dist/emoji/cldr/{k-P1J6Gvze.js → k-jnBMfMlM.js} +2 -3
  435. package/dist/emoji/cldr/k-jnBMfMlM.js.map +1 -0
  436. package/dist/emoji/cldr/{l-28XcbsPr.js → l-ClLOCfnc.js} +2 -3
  437. package/dist/emoji/cldr/l-ClLOCfnc.js.map +1 -0
  438. package/dist/emoji/cldr/{m-DKgGJ8rW.js → m-p358YNne.js} +2 -3
  439. package/dist/emoji/cldr/m-p358YNne.js.map +1 -0
  440. package/dist/emoji/cldr/{n-DmPLP4F3.js → n-DOh1UxA2.js} +2 -3
  441. package/dist/emoji/cldr/n-DOh1UxA2.js.map +1 -0
  442. package/dist/emoji/cldr/{o-f98nt3s7.js → o-D_nTGMIR.js} +2 -3
  443. package/dist/emoji/cldr/o-D_nTGMIR.js.map +1 -0
  444. package/dist/emoji/cldr/{p-CxnsOTOt.js → p-BA8Ct3hE.js} +2 -3
  445. package/dist/emoji/cldr/p-BA8Ct3hE.js.map +1 -0
  446. package/dist/emoji/cldr/{r-D0GPRJ-Q.js → r-BFZ26mlC.js} +2 -3
  447. package/dist/emoji/cldr/r-BFZ26mlC.js.map +1 -0
  448. package/dist/emoji/cldr/{s-DcFuepnw.js → s-CIZH91hj.js} +2 -3
  449. package/dist/emoji/cldr/s-CIZH91hj.js.map +1 -0
  450. package/dist/emoji/cldr/{t-BvHgGpUr.js → t-qg9oQuYr.js} +2 -3
  451. package/dist/emoji/cldr/t-qg9oQuYr.js.map +1 -0
  452. package/dist/emoji/cldr/{u-ChFYHtUf.js → u-CN-QpqjC.js} +2 -3
  453. package/dist/emoji/cldr/u-CN-QpqjC.js.map +1 -0
  454. package/dist/emoji/cldr/{v-WmX3nWtZ.js → v-CO_76wOC.js} +2 -3
  455. package/dist/emoji/cldr/v-CO_76wOC.js.map +1 -0
  456. package/dist/emoji/cldr/{w-BPySQUWW.js → w-DOQn50Cw.js} +2 -3
  457. package/dist/emoji/cldr/w-DOQn50Cw.js.map +1 -0
  458. package/dist/emoji/cldr/x-DddFDGbR.js +5 -0
  459. package/dist/emoji/cldr/x-DddFDGbR.js.map +1 -0
  460. package/dist/emoji/cldr/{y-zB_yhTFg.js → y-auUWML2r.js} +2 -3
  461. package/dist/emoji/cldr/y-auUWML2r.js.map +1 -0
  462. package/dist/emoji/cldr/{z-BgJ94Cap.js → z-BYAp28d6.js} +2 -3
  463. package/dist/emoji/cldr/z-BYAp28d6.js.map +1 -0
  464. package/dist/emoji/fomantic/0-BdzcjXW3.js +9 -0
  465. package/dist/emoji/fomantic/0-BdzcjXW3.js.map +1 -0
  466. package/dist/emoji/fomantic/{a-CrqYlC21.js → a-R3ZJ-207.js} +2 -3
  467. package/dist/emoji/fomantic/a-R3ZJ-207.js.map +1 -0
  468. package/dist/emoji/fomantic/{b-DneVHRdQ.js → b-NF1y0dRD.js} +2 -3
  469. package/dist/emoji/fomantic/b-NF1y0dRD.js.map +1 -0
  470. package/dist/emoji/fomantic/{c-ClxKRuir.js → c-CuIzdNXI.js} +2 -3
  471. package/dist/emoji/fomantic/c-CuIzdNXI.js.map +1 -0
  472. package/dist/emoji/fomantic/{d-Djqs_y4s.js → d-CuS9uvGS.js} +2 -3
  473. package/dist/emoji/fomantic/d-CuS9uvGS.js.map +1 -0
  474. package/dist/emoji/fomantic/{e-CuF-jOQd.js → e-S2pyUDgP.js} +2 -3
  475. package/dist/emoji/fomantic/e-S2pyUDgP.js.map +1 -0
  476. package/dist/emoji/fomantic/{f-D8VglrJ4.js → f-DnHzZwKR.js} +2 -3
  477. package/dist/emoji/fomantic/f-DnHzZwKR.js.map +1 -0
  478. package/dist/emoji/fomantic/{g-Du_HFl6U.js → g-CdqbF8yB.js} +2 -3
  479. package/dist/emoji/fomantic/g-CdqbF8yB.js.map +1 -0
  480. package/dist/emoji/fomantic/{h-CLE5tHnM.js → h-Dgmy17VC.js} +2 -3
  481. package/dist/emoji/fomantic/h-Dgmy17VC.js.map +1 -0
  482. package/dist/emoji/fomantic/{i-BjOsrQDZ.js → i-BCe1z6Es.js} +2 -3
  483. package/dist/emoji/fomantic/i-BCe1z6Es.js.map +1 -0
  484. package/dist/emoji/fomantic/{j-CyUDXKCu.js → j-D39udLwj.js} +2 -3
  485. package/dist/emoji/fomantic/j-D39udLwj.js.map +1 -0
  486. package/dist/emoji/fomantic/{k-Clypg4R8.js → k-KDlJnEWX.js} +2 -3
  487. package/dist/emoji/fomantic/k-KDlJnEWX.js.map +1 -0
  488. package/dist/emoji/fomantic/{l-DvLPdBh-.js → l-rVE39-7Z.js} +2 -3
  489. package/dist/emoji/fomantic/l-rVE39-7Z.js.map +1 -0
  490. package/dist/emoji/fomantic/{m-B1lIb1kP.js → m-Bys5Cs9k.js} +2 -3
  491. package/dist/emoji/fomantic/m-Bys5Cs9k.js.map +1 -0
  492. package/dist/emoji/fomantic/{n-Bgpp_ht5.js → n-DzPz1atY.js} +2 -3
  493. package/dist/emoji/fomantic/n-DzPz1atY.js.map +1 -0
  494. package/dist/emoji/fomantic/{o-BhYZzpjp.js → o-lKtDGpuN.js} +2 -3
  495. package/dist/emoji/fomantic/o-lKtDGpuN.js.map +1 -0
  496. package/dist/emoji/fomantic/{p-VLL0GK3m.js → p-DUvy18Aa.js} +2 -3
  497. package/dist/emoji/fomantic/p-DUvy18Aa.js.map +1 -0
  498. package/dist/emoji/fomantic/q-WtSN0kE7.js +5 -0
  499. package/dist/emoji/fomantic/q-WtSN0kE7.js.map +1 -0
  500. package/dist/emoji/fomantic/{r-Bd1DjkkI.js → r-Dm_1szGZ.js} +2 -3
  501. package/dist/emoji/fomantic/r-Dm_1szGZ.js.map +1 -0
  502. package/dist/emoji/fomantic/{s-Bqatw1W7.js → s-LPRU4KZk.js} +2 -3
  503. package/dist/emoji/fomantic/s-LPRU4KZk.js.map +1 -0
  504. package/dist/emoji/fomantic/{t-Bs7IFhv3.js → t-iQksEIKb.js} +2 -3
  505. package/dist/emoji/fomantic/t-iQksEIKb.js.map +1 -0
  506. package/dist/emoji/fomantic/{u-M6GfYC-U.js → u-CkDd-u7Y.js} +2 -3
  507. package/dist/emoji/fomantic/u-CkDd-u7Y.js.map +1 -0
  508. package/dist/emoji/fomantic/{v-BKHNqkn0.js → v-C83uQ5pk.js} +2 -3
  509. package/dist/emoji/fomantic/v-C83uQ5pk.js.map +1 -0
  510. package/dist/emoji/fomantic/{w-B_XvIu7h.js → w-D_redhGe.js} +2 -3
  511. package/dist/emoji/fomantic/w-D_redhGe.js.map +1 -0
  512. package/dist/emoji/fomantic/x-eI_dPUEx.js +8 -0
  513. package/dist/emoji/fomantic/x-eI_dPUEx.js.map +1 -0
  514. package/dist/emoji/fomantic/{y-DPZaoIla.js → y-CO_6qz-J.js} +2 -3
  515. package/dist/emoji/fomantic/y-CO_6qz-J.js.map +1 -0
  516. package/dist/emoji/fomantic/{z-FH-kPXch.js → z-C-wWxD0a.js} +2 -3
  517. package/dist/emoji/fomantic/z-C-wWxD0a.js.map +1 -0
  518. package/dist/forms.js +65 -75
  519. package/dist/forms.js.map +1 -1
  520. package/dist/fruity-CsfZNeXb.js +5 -0
  521. package/dist/fruity-CsfZNeXb.js.map +1 -0
  522. package/dist/{fruity.theme-CbC7Jyvk.js → fruity.theme-BL7cCZUQ.js} +3 -4
  523. package/dist/fruity.theme-BL7cCZUQ.js.map +1 -0
  524. package/dist/glass-BCK30hpe.js +5 -0
  525. package/dist/glass-BCK30hpe.js.map +1 -0
  526. package/dist/glass.theme-C7QSRB7b.js +5 -0
  527. package/dist/glass.theme-C7QSRB7b.js.map +1 -0
  528. package/dist/hot.js +18 -32
  529. package/dist/hot.js.map +1 -1
  530. package/dist/index.d.ts +5 -0
  531. package/dist/index.js +95 -90
  532. package/dist/jsx.d.ts +3869 -715
  533. package/dist/matrix-DEnqBfwC.js +5 -0
  534. package/dist/matrix-DEnqBfwC.js.map +1 -0
  535. package/dist/matrix.theme-YV6_nvXv.js +5 -0
  536. package/dist/matrix.theme-YV6_nvXv.js.map +1 -0
  537. package/dist/{merlot-DOXLuUaU.js → merlot-DFa6kDbA.js} +3 -4
  538. package/dist/merlot-DFa6kDbA.js.map +1 -0
  539. package/dist/merlot.theme-B1K8nn2u.js +5 -0
  540. package/dist/merlot.theme-B1K8nn2u.js.map +1 -0
  541. package/dist/{midnight-BxlTQSfw.js → midnight-q0-3-V6U.js} +3 -4
  542. package/dist/midnight-q0-3-V6U.js.map +1 -0
  543. package/dist/midnight.theme-C7M02wTD.js +5 -0
  544. package/dist/midnight.theme-C7M02wTD.js.map +1 -0
  545. package/dist/mockup-D0vovNO7.js +5 -0
  546. package/dist/mockup-D0vovNO7.js.map +1 -0
  547. package/dist/mockup.theme-C92r9NI0.js +5 -0
  548. package/dist/mockup.theme-C92r9NI0.js.map +1 -0
  549. package/dist/{paper-M61nUilz.js → paper-DPxolmdy.js} +3 -4
  550. package/dist/paper-DPxolmdy.js.map +1 -0
  551. package/dist/paper.theme-BAKk3DY1.js +5 -0
  552. package/dist/paper.theme-BAKk3DY1.js.map +1 -0
  553. package/dist/{persist.types-D2m6wD-S.js → persist.types-D7N7GewC.js} +2 -3
  554. package/dist/persist.types-D7N7GewC.js.map +1 -0
  555. package/dist/{pop-CxXfytjk.js → pop-Dw_6k177.js} +3 -4
  556. package/dist/pop-Dw_6k177.js.map +1 -0
  557. package/dist/pop.theme-Cw-yD0MO.js +5 -0
  558. package/dist/pop.theme-Cw-yD0MO.js.map +1 -0
  559. package/dist/property/PropertyEditorPages.d.ts +1 -1
  560. package/dist/property/PropertyLayouts.d.ts +119 -0
  561. package/dist/property/PropertySchemas.d.ts +5 -1
  562. package/dist/property/index.d.ts +2 -0
  563. package/dist/{rolldown-runtime-CYGlBXrH.js → rolldown-runtime-c6e9CmGy.js} +2 -3
  564. package/dist/runtime/Browser.d.ts +7 -0
  565. package/dist/runtime/DataTooltips.d.ts +2 -0
  566. package/dist/runtime/Keyboard.d.ts +4 -1
  567. package/dist/runtime/Toasts.d.ts +10 -0
  568. package/dist/runtime/runtime.types.d.ts +47 -0
  569. package/dist/{search-CzSzx7bX.js → search-C2Rq9HF1.js} +1 -2
  570. package/dist/search-C2Rq9HF1.js.map +1 -0
  571. package/dist/spell-CB-MivSX.js +5 -0
  572. package/dist/spell-CB-MivSX.js.map +1 -0
  573. package/dist/spell.theme-CUoc5rTq.js +5 -0
  574. package/dist/spell.theme-CUoc5rTq.js.map +1 -0
  575. package/dist/styles/StyleGenerator.d.ts +7 -0
  576. package/dist/styles/styles.en.d.ts +27 -18
  577. package/dist/{styles.en-CUUxNwHo.js → styles.en-DZlSJiOR.js} +21 -21
  578. package/dist/styles.en-DZlSJiOR.js.map +1 -0
  579. package/dist/styles.js +9 -10
  580. package/dist/styles.js.map +1 -1
  581. package/dist/ui-accordion.editor-BP8uQGGU.js +5 -0
  582. package/dist/ui-accordion.editor-BP8uQGGU.js.map +1 -0
  583. package/dist/ui-accordion.js +59 -60
  584. package/dist/ui-accordion.js.map +1 -1
  585. package/dist/ui-action.editor-m5R5N5Wy.js +5 -0
  586. package/dist/ui-action.editor-m5R5N5Wy.js.map +1 -0
  587. package/dist/ui-action.js +73 -45
  588. package/dist/ui-action.js.map +1 -1
  589. package/dist/ui-actions.editor-Buc3N2ik.js +5 -0
  590. package/dist/ui-actions.editor-Buc3N2ik.js.map +1 -0
  591. package/dist/ui-ad.editor-BHTDuSii.js +5 -0
  592. package/dist/ui-ad.editor-BHTDuSii.js.map +1 -0
  593. package/dist/ui-ad.js +8 -9
  594. package/dist/ui-ad.js.map +1 -1
  595. package/dist/ui-app-menu.editor-DxPPnMUT.js +5 -0
  596. package/dist/ui-app-menu.editor-DxPPnMUT.js.map +1 -0
  597. package/dist/ui-app-menu.js +89 -0
  598. package/dist/ui-app-menu.js.map +1 -0
  599. package/dist/ui-audio.editor-Y6WeqLRh.js +5 -0
  600. package/dist/ui-audio.editor-Y6WeqLRh.js.map +1 -0
  601. package/dist/ui-author.editor-Bmf-rEXY.js +5 -0
  602. package/dist/ui-author.editor-Bmf-rEXY.js.map +1 -0
  603. package/dist/ui-avatar.editor-CSU6snQz.js +5 -0
  604. package/dist/ui-avatar.editor-CSU6snQz.js.map +1 -0
  605. package/dist/ui-breadcrumb.editor-N1-8OzDq.js +5 -0
  606. package/dist/ui-breadcrumb.editor-N1-8OzDq.js.map +1 -0
  607. package/dist/ui-breadcrumbs.editor-Mml0fUR_.js +5 -0
  608. package/dist/ui-breadcrumbs.editor-Mml0fUR_.js.map +1 -0
  609. package/dist/ui-breadcrumbs.js +18 -17
  610. package/dist/ui-breadcrumbs.js.map +1 -1
  611. package/dist/ui-button.editor-BV9Bh_xf.js +5 -0
  612. package/dist/ui-button.editor-BV9Bh_xf.js.map +1 -0
  613. package/dist/ui-button.js +157 -156
  614. package/dist/ui-button.js.map +1 -1
  615. package/dist/ui-buttons.editor-CSsEIo2s.js +5 -0
  616. package/dist/ui-buttons.editor-CSsEIo2s.js.map +1 -0
  617. package/dist/ui-calendar.editor-TsP8a97s.js +5 -0
  618. package/dist/ui-calendar.editor-TsP8a97s.js.map +1 -0
  619. package/dist/ui-calendar.js +148 -157
  620. package/dist/ui-calendar.js.map +1 -1
  621. package/dist/ui-card.editor-BBZj9e03.js +5 -0
  622. package/dist/ui-card.editor-BBZj9e03.js.map +1 -0
  623. package/dist/ui-card.js +70 -70
  624. package/dist/ui-card.js.map +1 -1
  625. package/dist/ui-cards.editor-Hrmldr4q.js +5 -0
  626. package/dist/ui-cards.editor-Hrmldr4q.js.map +1 -0
  627. package/dist/ui-cell.editor-Dmz_mwJ0.js +5 -0
  628. package/dist/ui-cell.editor-Dmz_mwJ0.js.map +1 -0
  629. package/dist/ui-checkbox.editor-DnOz9r6d.js +5 -0
  630. package/dist/ui-checkbox.editor-DnOz9r6d.js.map +1 -0
  631. package/dist/ui-checkbox.js +49 -48
  632. package/dist/ui-checkbox.js.map +1 -1
  633. package/dist/ui-code.editor-Drr_FVB6.js +5 -0
  634. package/dist/ui-code.editor-Drr_FVB6.js.map +1 -0
  635. package/dist/ui-code.js +116 -79
  636. package/dist/ui-code.js.map +1 -1
  637. package/dist/ui-color-chip.editor-B3zV8FkB.js +5 -0
  638. package/dist/ui-color-chip.editor-B3zV8FkB.js.map +1 -0
  639. package/dist/ui-column.editor-hdUb-qwT.js +5 -0
  640. package/dist/ui-column.editor-hdUb-qwT.js.map +1 -0
  641. package/dist/ui-comment.editor-DJpE_8tz.js +5 -0
  642. package/dist/ui-comment.editor-DJpE_8tz.js.map +1 -0
  643. package/dist/ui-comment.js +15 -14
  644. package/dist/ui-comment.js.map +1 -1
  645. package/dist/ui-comments.editor-GFJN6l3Q.js +5 -0
  646. package/dist/ui-comments.editor-GFJN6l3Q.js.map +1 -0
  647. package/dist/ui-components.editor-BKFXnARt.js +5 -0
  648. package/dist/ui-components.editor-BKFXnARt.js.map +1 -0
  649. package/dist/ui-components.js +12 -13
  650. package/dist/ui-components.js.map +1 -1
  651. package/dist/ui-container.editor-CBNhNkRm.js +5 -0
  652. package/dist/ui-container.editor-CBNhNkRm.js.map +1 -0
  653. package/dist/ui-container.js +106 -21
  654. package/dist/ui-container.js.map +1 -1
  655. package/dist/ui-content.editor-B78lxK3P.js +5 -0
  656. package/dist/ui-content.editor-B78lxK3P.js.map +1 -0
  657. package/dist/ui-date.editor-PHEnU7QX.js +5 -0
  658. package/dist/ui-date.editor-PHEnU7QX.js.map +1 -0
  659. package/dist/ui-description.editor-DWFDJ9mV.js +5 -0
  660. package/dist/ui-description.editor-DWFDJ9mV.js.map +1 -0
  661. package/dist/ui-detail.editor-wliuVbx3.js +5 -0
  662. package/dist/ui-detail.editor-wliuVbx3.js.map +1 -0
  663. package/dist/ui-device.editor-kl48NVma.js +5 -0
  664. package/dist/ui-device.editor-kl48NVma.js.map +1 -0
  665. package/dist/ui-device.js +436 -0
  666. package/dist/ui-device.js.map +1 -0
  667. package/dist/ui-diagram-node.editor-6FyjT7oj.js +5 -0
  668. package/dist/ui-diagram-node.editor-6FyjT7oj.js.map +1 -0
  669. package/dist/ui-diagram.editor-Dn3ef-J9.js +5 -0
  670. package/dist/ui-diagram.editor-Dn3ef-J9.js.map +1 -0
  671. package/dist/ui-diagram.js +128 -129
  672. package/dist/ui-diagram.js.map +1 -1
  673. package/dist/ui-dimension.editor-BEXGKcCB.js +5 -0
  674. package/dist/ui-dimension.editor-BEXGKcCB.js.map +1 -0
  675. package/dist/ui-dimension.js +111 -12
  676. package/dist/ui-dimension.js.map +1 -1
  677. package/dist/ui-dimmer.editor-D14xzXIe.js +5 -0
  678. package/dist/ui-dimmer.editor-D14xzXIe.js.map +1 -0
  679. package/dist/ui-dimmer.js +29 -30
  680. package/dist/ui-dimmer.js.map +1 -1
  681. package/dist/ui-divider.editor-D6ozEXjx.js +5 -0
  682. package/dist/ui-divider.editor-D6ozEXjx.js.map +1 -0
  683. package/dist/ui-divider.js +9 -10
  684. package/dist/ui-divider.js.map +1 -1
  685. package/dist/ui-dropdown.editor-OFDGi1oz.js +5 -0
  686. package/dist/ui-dropdown.editor-OFDGi1oz.js.map +1 -0
  687. package/dist/ui-dropdown.js +155 -156
  688. package/dist/ui-dropdown.js.map +1 -1
  689. package/dist/ui-embed.editor-DHsrjw1j.js +5 -0
  690. package/dist/ui-embed.editor-DHsrjw1j.js.map +1 -0
  691. package/dist/ui-embed.js +23 -24
  692. package/dist/ui-embed.js.map +1 -1
  693. package/dist/ui-emoji.editor-DUL230Hi.js +5 -0
  694. package/dist/ui-emoji.editor-DUL230Hi.js.map +1 -0
  695. package/dist/ui-emoji.js +63 -64
  696. package/dist/ui-emoji.js.map +1 -1
  697. package/dist/ui-event.editor-Bk17y7wW.js +5 -0
  698. package/dist/ui-event.editor-Bk17y7wW.js.map +1 -0
  699. package/dist/ui-example.editor-D46Vnctp.js +5 -0
  700. package/dist/ui-example.editor-D46Vnctp.js.map +1 -0
  701. package/dist/ui-example.js +67 -74
  702. package/dist/ui-example.js.map +1 -1
  703. package/dist/ui-extra.editor-rX6sfH2e.js +5 -0
  704. package/dist/ui-extra.editor-rX6sfH2e.js.map +1 -0
  705. package/dist/ui-feed.editor-B7ycWh1b.js +5 -0
  706. package/dist/ui-feed.editor-B7ycWh1b.js.map +1 -0
  707. package/dist/ui-feed.js +26 -25
  708. package/dist/ui-feed.js.map +1 -1
  709. package/dist/ui-field.editor-Bz9xyCVv.js +5 -0
  710. package/dist/ui-field.editor-Bz9xyCVv.js.map +1 -0
  711. package/dist/ui-fields.editor-BUtW4NTk.js +5 -0
  712. package/dist/ui-fields.editor-BUtW4NTk.js.map +1 -0
  713. package/dist/ui-flag.editor-DNfdXo7y.js +5 -0
  714. package/dist/ui-flag.editor-DNfdXo7y.js.map +1 -0
  715. package/dist/ui-flag.js +13 -14
  716. package/dist/ui-flag.js.map +1 -1
  717. package/dist/ui-flyout.editor-b7UJYiV9.js +5 -0
  718. package/dist/ui-flyout.editor-b7UJYiV9.js.map +1 -0
  719. package/dist/ui-flyout.js +10 -11
  720. package/dist/ui-flyout.js.map +1 -1
  721. package/dist/ui-form.editor-BJC3WhNf.js +5 -0
  722. package/dist/ui-form.editor-BJC3WhNf.js.map +1 -0
  723. package/dist/ui-form.js +199 -195
  724. package/dist/ui-form.js.map +1 -1
  725. package/dist/ui-grid.editor-DVn2YIBW.js +5 -0
  726. package/dist/ui-grid.editor-DVn2YIBW.js.map +1 -0
  727. package/dist/ui-grid.js +43 -234
  728. package/dist/ui-grid.js.map +1 -1
  729. package/dist/ui-header.editor-meOjCASK.js +5 -0
  730. package/dist/ui-header.editor-meOjCASK.js.map +1 -0
  731. package/dist/ui-icon-picker.editor-vFPbT9Kh.js +5 -0
  732. package/dist/ui-icon-picker.editor-vFPbT9Kh.js.map +1 -0
  733. package/dist/ui-icon-picker.js +64 -69
  734. package/dist/ui-icon-picker.js.map +1 -1
  735. package/dist/ui-icon.editor-DoKK49PD.js +5 -0
  736. package/dist/ui-icon.editor-DoKK49PD.js.map +1 -0
  737. package/dist/ui-icon.js +15 -14
  738. package/dist/ui-icon.js.map +1 -1
  739. package/dist/ui-icons.editor-CSD6fOVt.js +5 -0
  740. package/dist/ui-icons.editor-CSD6fOVt.js.map +1 -0
  741. package/dist/ui-image.editor-D4ZUC_Ka.js +5 -0
  742. package/dist/ui-image.editor-D4ZUC_Ka.js.map +1 -0
  743. package/dist/ui-image.js +26 -26
  744. package/dist/ui-image.js.map +1 -1
  745. package/dist/ui-images.editor-Cb0D3vnI.js +5 -0
  746. package/dist/ui-images.editor-Cb0D3vnI.js.map +1 -0
  747. package/dist/ui-include.editor-CZcsVJbH.js +5 -0
  748. package/dist/ui-include.editor-CZcsVJbH.js.map +1 -0
  749. package/dist/ui-include.js +21 -22
  750. package/dist/ui-include.js.map +1 -1
  751. package/dist/ui-input.editor-budoNoB0.js +5 -0
  752. package/dist/ui-input.editor-budoNoB0.js.map +1 -0
  753. package/dist/ui-input.js +131 -130
  754. package/dist/ui-input.js.map +1 -1
  755. package/dist/ui-item.editor-BlWp1HXu.js +5 -0
  756. package/dist/ui-item.editor-BlWp1HXu.js.map +1 -0
  757. package/dist/ui-item.js +127 -113
  758. package/dist/ui-item.js.map +1 -1
  759. package/dist/ui-items.editor-GOul3Xss.js +5 -0
  760. package/dist/ui-items.editor-GOul3Xss.js.map +1 -0
  761. package/dist/ui-items.js +11 -12
  762. package/dist/ui-items.js.map +1 -1
  763. package/dist/ui-json.editor-BgZbrB_W.js +5 -0
  764. package/dist/ui-json.editor-BgZbrB_W.js.map +1 -0
  765. package/dist/ui-json.js +18 -19
  766. package/dist/ui-json.js.map +1 -1
  767. package/dist/ui-keys.editor-BI9EDtS4.js +5 -0
  768. package/dist/ui-keys.editor-BI9EDtS4.js.map +1 -0
  769. package/dist/ui-keys.js +2 -3
  770. package/dist/ui-label.editor-BVUYLSUs.js +5 -0
  771. package/dist/ui-label.editor-BVUYLSUs.js.map +1 -0
  772. package/dist/ui-label.js +22 -22
  773. package/dist/ui-label.js.map +1 -1
  774. package/dist/ui-labels.editor-BWJth86p.js +5 -0
  775. package/dist/ui-labels.editor-BWJth86p.js.map +1 -0
  776. package/dist/ui-link.editor-CpI53scP.js +5 -0
  777. package/dist/ui-link.editor-CpI53scP.js.map +1 -0
  778. package/dist/ui-list.editor-DhBZIkAa.js +5 -0
  779. package/dist/ui-list.editor-DhBZIkAa.js.map +1 -0
  780. package/dist/ui-list.js +9 -10
  781. package/dist/ui-list.js.map +1 -1
  782. package/dist/ui-loader.editor-BJlvmP7S.js +5 -0
  783. package/dist/ui-loader.editor-BJlvmP7S.js.map +1 -0
  784. package/dist/ui-loader.js +10 -11
  785. package/dist/ui-loader.js.map +1 -1
  786. package/dist/ui-markdown.editor-DPVKyxXa.js +5 -0
  787. package/dist/ui-markdown.editor-DPVKyxXa.js.map +1 -0
  788. package/dist/ui-markdown.js +208 -154
  789. package/dist/ui-markdown.js.map +1 -1
  790. package/dist/ui-menu.editor-DJ3PhWtK.js +5 -0
  791. package/dist/ui-menu.editor-DJ3PhWtK.js.map +1 -0
  792. package/dist/ui-menu.js +815 -223
  793. package/dist/ui-menu.js.map +1 -1
  794. package/dist/ui-message.editor-vfT0pyu5.js +5 -0
  795. package/dist/ui-message.editor-vfT0pyu5.js.map +1 -0
  796. package/dist/ui-message.js +32 -33
  797. package/dist/ui-message.js.map +1 -1
  798. package/dist/ui-meta.editor-Bk5m43-E.js +5 -0
  799. package/dist/ui-meta.editor-Bk5m43-E.js.map +1 -0
  800. package/dist/ui-modal.editor-CkkJRgab.js +5 -0
  801. package/dist/ui-modal.editor-CkkJRgab.js.map +1 -0
  802. package/dist/ui-modal.js +132 -96
  803. package/dist/ui-modal.js.map +1 -1
  804. package/dist/ui-nag.editor-BJ3Ia2Bi.js +5 -0
  805. package/dist/ui-nag.editor-BJ3Ia2Bi.js.map +1 -0
  806. package/dist/ui-nag.js +23 -24
  807. package/dist/ui-nag.js.map +1 -1
  808. package/dist/ui-or.editor-BfBLNVgm.js +5 -0
  809. package/dist/ui-or.editor-BfBLNVgm.js.map +1 -0
  810. package/dist/ui-page-layout.editor-xtQW0FZk.js +5 -0
  811. package/dist/ui-page-layout.editor-xtQW0FZk.js.map +1 -0
  812. package/dist/ui-page-layout.js +363 -0
  813. package/dist/ui-page-layout.js.map +1 -0
  814. package/dist/ui-page.editor-Bd5mzlj7.js +5 -0
  815. package/dist/ui-page.editor-Bd5mzlj7.js.map +1 -0
  816. package/dist/ui-page.js +11 -12
  817. package/dist/ui-page.js.map +1 -1
  818. package/dist/ui-panel.editor-BCUkdr4S.js +5 -0
  819. package/dist/ui-panel.editor-BCUkdr4S.js.map +1 -0
  820. package/dist/ui-panel.js +105 -27
  821. package/dist/ui-panel.js.map +1 -1
  822. package/dist/ui-parts.js +108 -66
  823. package/dist/ui-parts.js.map +1 -1
  824. package/dist/ui-placeholder-header.editor-CJNO08Ax.js +5 -0
  825. package/dist/ui-placeholder-header.editor-CJNO08Ax.js.map +1 -0
  826. package/dist/ui-placeholder-image.editor-DctJiCNv.js +5 -0
  827. package/dist/ui-placeholder-image.editor-DctJiCNv.js.map +1 -0
  828. package/dist/ui-placeholder-line.editor-DcxH7mOo.js +5 -0
  829. package/dist/ui-placeholder-line.editor-DcxH7mOo.js.map +1 -0
  830. package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js +5 -0
  831. package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js.map +1 -0
  832. package/dist/ui-placeholder.editor-Bc0CYlZZ.js +5 -0
  833. package/dist/ui-placeholder.editor-Bc0CYlZZ.js.map +1 -0
  834. package/dist/ui-placeholder.js +23 -19
  835. package/dist/ui-placeholder.js.map +1 -1
  836. package/dist/ui-popup.editor-ByUi4CYs.js +5 -0
  837. package/dist/ui-popup.editor-ByUi4CYs.js.map +1 -0
  838. package/dist/ui-popup.js +107 -100
  839. package/dist/ui-popup.js.map +1 -1
  840. package/dist/ui-progress.editor-DX0IjhxZ.js +5 -0
  841. package/dist/ui-progress.editor-DX0IjhxZ.js.map +1 -0
  842. package/dist/ui-progress.js +23 -24
  843. package/dist/ui-progress.js.map +1 -1
  844. package/dist/ui-property-editor.editor-pS6tCPPT.js +5 -0
  845. package/dist/ui-property-editor.editor-pS6tCPPT.js.map +1 -0
  846. package/dist/ui-property-editor.js +649 -277
  847. package/dist/ui-property-editor.js.map +1 -1
  848. package/dist/ui-property-group.editor-BlpUMVlr.js +5 -0
  849. package/dist/ui-property-group.editor-BlpUMVlr.js.map +1 -0
  850. package/dist/ui-property.editor-BC-jtjjt.js +5 -0
  851. package/dist/ui-property.editor-BC-jtjjt.js.map +1 -0
  852. package/dist/ui-pushable.editor-8_EmUD9x.js +5 -0
  853. package/dist/ui-pushable.editor-8_EmUD9x.js.map +1 -0
  854. package/dist/ui-pusher.editor-CiCX6-1J.js +5 -0
  855. package/dist/ui-pusher.editor-CiCX6-1J.js.map +1 -0
  856. package/dist/ui-quote.editor-BvmAjmo9.js +5 -0
  857. package/dist/ui-quote.editor-BvmAjmo9.js.map +1 -0
  858. package/dist/ui-quote.js +8 -9
  859. package/dist/ui-quote.js.map +1 -1
  860. package/dist/ui-radio.editor-DPzActfO.js +5 -0
  861. package/dist/ui-radio.editor-DPzActfO.js.map +1 -0
  862. package/dist/ui-rail.editor-DRfVH4P2.js +5 -0
  863. package/dist/ui-rail.editor-DRfVH4P2.js.map +1 -0
  864. package/dist/ui-rail.js +11 -12
  865. package/dist/ui-rail.js.map +1 -1
  866. package/dist/ui-rating.editor-C19syymj.js +5 -0
  867. package/dist/ui-rating.editor-C19syymj.js.map +1 -0
  868. package/dist/ui-rating.js +40 -49
  869. package/dist/ui-rating.js.map +1 -1
  870. package/dist/ui-repeat.editor-DEf-bFGj.js +5 -0
  871. package/dist/ui-repeat.editor-DEf-bFGj.js.map +1 -0
  872. package/dist/ui-reveal.editor-D7pDOaen.js +5 -0
  873. package/dist/ui-reveal.editor-D7pDOaen.js.map +1 -0
  874. package/dist/ui-reveal.js +10 -11
  875. package/dist/ui-reveal.js.map +1 -1
  876. package/dist/ui-root.editor-CAokPDVa.js +5 -0
  877. package/dist/ui-root.editor-CAokPDVa.js.map +1 -0
  878. package/dist/ui-root.js +205 -102
  879. package/dist/ui-root.js.map +1 -1
  880. package/dist/ui-row.editor-C00Z6Jl5.js +5 -0
  881. package/dist/ui-row.editor-C00Z6Jl5.js.map +1 -0
  882. package/dist/ui-search.editor-CtzfYgNu.js +5 -0
  883. package/dist/ui-search.editor-CtzfYgNu.js.map +1 -0
  884. package/dist/ui-search.js +143 -146
  885. package/dist/ui-search.js.map +1 -1
  886. package/dist/ui-section.editor-DmNICxCs.js +5 -0
  887. package/dist/ui-section.editor-DmNICxCs.js.map +1 -0
  888. package/dist/ui-section.js +74 -73
  889. package/dist/ui-section.js.map +1 -1
  890. package/dist/ui-sections.editor-BxXECGv9.js +5 -0
  891. package/dist/ui-sections.editor-BxXECGv9.js.map +1 -0
  892. package/dist/ui-segment.editor-CebyLPFn.js +5 -0
  893. package/dist/ui-segment.editor-CebyLPFn.js.map +1 -0
  894. package/dist/ui-segment.js +43 -43
  895. package/dist/ui-segment.js.map +1 -1
  896. package/dist/ui-segments.editor-CSumzMa5.js +5 -0
  897. package/dist/ui-segments.editor-CSumzMa5.js.map +1 -0
  898. package/dist/ui-select.editor-wAcZzvU7.js +5 -0
  899. package/dist/ui-select.editor-wAcZzvU7.js.map +1 -0
  900. package/dist/ui-select.js +86 -87
  901. package/dist/ui-select.js.map +1 -1
  902. package/dist/ui-shape.editor-By9-8aD2.js +5 -0
  903. package/dist/ui-shape.editor-By9-8aD2.js.map +1 -0
  904. package/dist/ui-shape.js +39 -38
  905. package/dist/ui-shape.js.map +1 -1
  906. package/dist/ui-side.editor-CFSqGHGH.js +5 -0
  907. package/dist/ui-side.editor-CFSqGHGH.js.map +1 -0
  908. package/dist/ui-sidebar.editor-DWFPQcXv.js +5 -0
  909. package/dist/ui-sidebar.editor-DWFPQcXv.js.map +1 -0
  910. package/dist/ui-sidebar.js +79 -77
  911. package/dist/ui-sidebar.js.map +1 -1
  912. package/dist/ui-sides.editor-CONIJ1r3.js +5 -0
  913. package/dist/ui-sides.editor-CONIJ1r3.js.map +1 -0
  914. package/dist/ui-sides.js +25 -26
  915. package/dist/ui-sides.js.map +1 -1
  916. package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js +5 -0
  917. package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js.map +1 -0
  918. package/dist/ui-site-breadcrumbs.js +143 -0
  919. package/dist/ui-site-breadcrumbs.js.map +1 -0
  920. package/dist/ui-site-nav-button.editor-6J-zJLtZ.js +5 -0
  921. package/dist/ui-site-nav-button.editor-6J-zJLtZ.js.map +1 -0
  922. package/dist/ui-site-nav-button.js +113 -0
  923. package/dist/ui-site-nav-button.js.map +1 -0
  924. package/dist/ui-site-nav.editor-CKEsOGCX.js +5 -0
  925. package/dist/ui-site-nav.editor-CKEsOGCX.js.map +1 -0
  926. package/dist/ui-site-nav.js +133 -97
  927. package/dist/ui-site-nav.js.map +1 -1
  928. package/dist/ui-site-tabs.editor-DDvQfH6S.js +5 -0
  929. package/dist/ui-site-tabs.editor-DDvQfH6S.js.map +1 -0
  930. package/dist/ui-site-tabs.js +53 -48
  931. package/dist/ui-site-tabs.js.map +1 -1
  932. package/dist/ui-slider.editor-BEaasx5Q.js +5 -0
  933. package/dist/ui-slider.editor-BEaasx5Q.js.map +1 -0
  934. package/dist/ui-slider.js +37 -38
  935. package/dist/ui-slider.js.map +1 -1
  936. package/dist/ui-space.editor-s-XVWFBN.js +5 -0
  937. package/dist/ui-space.editor-s-XVWFBN.js.map +1 -0
  938. package/dist/ui-space.js +9 -10
  939. package/dist/ui-space.js.map +1 -1
  940. package/dist/ui-split-panel.editor-Cvy5W7nk.js +5 -0
  941. package/dist/ui-split-panel.editor-Cvy5W7nk.js.map +1 -0
  942. package/dist/ui-split-panel.js +107 -68
  943. package/dist/ui-split-panel.js.map +1 -1
  944. package/dist/ui-stack.editor-D69Fky6H.js +5 -0
  945. package/dist/ui-stack.editor-D69Fky6H.js.map +1 -0
  946. package/dist/ui-stack.js +12 -13
  947. package/dist/ui-stack.js.map +1 -1
  948. package/dist/ui-statistic.editor-CBzYqbQ5.js +5 -0
  949. package/dist/ui-statistic.editor-CBzYqbQ5.js.map +1 -0
  950. package/dist/ui-statistic.js +28 -27
  951. package/dist/ui-statistic.js.map +1 -1
  952. package/dist/ui-statistics.editor-fzh3uk_b.js +5 -0
  953. package/dist/ui-statistics.editor-fzh3uk_b.js.map +1 -0
  954. package/dist/ui-step.editor-CYmNXrk_.js +5 -0
  955. package/dist/ui-step.editor-CYmNXrk_.js.map +1 -0
  956. package/dist/ui-step.js +62 -61
  957. package/dist/ui-step.js.map +1 -1
  958. package/dist/ui-steps.editor-BkMIrUrj.js +5 -0
  959. package/dist/ui-steps.editor-BkMIrUrj.js.map +1 -0
  960. package/dist/ui-sticky.editor-D7R1AlJv.js +5 -0
  961. package/dist/ui-sticky.editor-D7R1AlJv.js.map +1 -0
  962. package/dist/ui-sticky.js +10 -11
  963. package/dist/ui-sticky.js.map +1 -1
  964. package/dist/ui-submenu.editor-NdjS0em-.js +5 -0
  965. package/dist/ui-submenu.editor-NdjS0em-.js.map +1 -0
  966. package/dist/ui-summary.editor-CCHS1mVz.js +5 -0
  967. package/dist/ui-summary.editor-CCHS1mVz.js.map +1 -0
  968. package/dist/ui-tab.editor-DCS-gCZV.js +5 -0
  969. package/dist/ui-tab.editor-DCS-gCZV.js.map +1 -0
  970. package/dist/ui-tab.js +115 -117
  971. package/dist/ui-tab.js.map +1 -1
  972. package/dist/ui-table.editor-DJvfg9oG.js +5 -0
  973. package/dist/ui-table.editor-DJvfg9oG.js.map +1 -0
  974. package/dist/ui-table.js +272 -272
  975. package/dist/ui-table.js.map +1 -1
  976. package/dist/ui-tabs.editor-waeMoFNM.js +5 -0
  977. package/dist/ui-tabs.editor-waeMoFNM.js.map +1 -0
  978. package/dist/ui-term.editor-BMCF3jBM.js +5 -0
  979. package/dist/ui-term.editor-BMCF3jBM.js.map +1 -0
  980. package/dist/ui-terms.editor-BLfVVsjI.js +5 -0
  981. package/dist/ui-terms.editor-BLfVVsjI.js.map +1 -0
  982. package/dist/ui-terms.js +13 -12
  983. package/dist/ui-terms.js.map +1 -1
  984. package/dist/ui-text.editor-B6AENK13.js +5 -0
  985. package/dist/ui-text.editor-B6AENK13.js.map +1 -0
  986. package/dist/ui-text.js +37 -36
  987. package/dist/ui-text.js.map +1 -1
  988. package/dist/ui-textarea.editor-C25lVwrF.js +5 -0
  989. package/dist/ui-textarea.editor-C25lVwrF.js.map +1 -0
  990. package/dist/ui-theme-editor.editor-CQGAgy-Q.js +5 -0
  991. package/dist/ui-theme-editor.editor-CQGAgy-Q.js.map +1 -0
  992. package/dist/ui-theme-editor.js +448 -461
  993. package/dist/ui-theme-editor.js.map +1 -1
  994. package/dist/{ui-theme-menu-CuIjr8Ou.js → ui-theme-menu-BZYUMrHe.js} +356 -352
  995. package/dist/ui-theme-menu-BZYUMrHe.js.map +1 -0
  996. package/dist/ui-theme-menu.editor-DNeI-hxN.js +5 -0
  997. package/dist/ui-theme-menu.editor-DNeI-hxN.js.map +1 -0
  998. package/dist/ui-theme-token.editor-C2YAdEye.js +5 -0
  999. package/dist/ui-theme-token.editor-C2YAdEye.js.map +1 -0
  1000. package/dist/ui-title.editor-40PZSOpn.js +5 -0
  1001. package/dist/ui-title.editor-40PZSOpn.js.map +1 -0
  1002. package/dist/ui-toast.editor-BDmIUsU_.js +5 -0
  1003. package/dist/ui-toast.editor-BDmIUsU_.js.map +1 -0
  1004. package/dist/ui-toast.js +125 -128
  1005. package/dist/ui-toast.js.map +1 -1
  1006. package/dist/ui-toc.editor-D_S1KFY_.js +5 -0
  1007. package/dist/ui-toc.editor-D_S1KFY_.js.map +1 -0
  1008. package/dist/ui-toc.js +52 -53
  1009. package/dist/ui-toc.js.map +1 -1
  1010. package/dist/ui-toolbar.editor-CNQ8nJmR.js +5 -0
  1011. package/dist/ui-toolbar.editor-CNQ8nJmR.js.map +1 -0
  1012. package/dist/ui-toolbar.js +254 -50
  1013. package/dist/ui-toolbar.js.map +1 -1
  1014. package/dist/ui-transition.editor-8SQkDkZ6.js +5 -0
  1015. package/dist/ui-transition.editor-8SQkDkZ6.js.map +1 -0
  1016. package/dist/ui-transition.js +13 -14
  1017. package/dist/ui-transition.js.map +1 -1
  1018. package/dist/ui-tree-diagram.editor-DkEK8i7J.js +5 -0
  1019. package/dist/ui-tree-diagram.editor-DkEK8i7J.js.map +1 -0
  1020. package/dist/ui-tree-diagram.js +128 -127
  1021. package/dist/ui-tree-diagram.js.map +1 -1
  1022. package/dist/ui-tree-item.editor-C4fuAlbJ.js +5 -0
  1023. package/dist/ui-tree-item.editor-C4fuAlbJ.js.map +1 -0
  1024. package/dist/ui-tree-node.editor-CB1z_w9F.js +5 -0
  1025. package/dist/ui-tree-node.editor-CB1z_w9F.js.map +1 -0
  1026. package/dist/ui-tree.editor-BoQztwdz.js +5 -0
  1027. package/dist/ui-tree.editor-BoQztwdz.js.map +1 -0
  1028. package/dist/ui-tree.js +393 -134
  1029. package/dist/ui-tree.js.map +1 -1
  1030. package/dist/ui-value.editor-CYak24cr.js +5 -0
  1031. package/dist/ui-value.editor-CYak24cr.js.map +1 -0
  1032. package/dist/ui-video.editor-CuWtFVjR.js +5 -0
  1033. package/dist/ui-video.editor-CuWtFVjR.js.map +1 -0
  1034. package/dist/ui-video.js +15 -14
  1035. package/dist/ui-video.js.map +1 -1
  1036. package/dist/ui-visibility.editor-Crx0DTlv.js +5 -0
  1037. package/dist/ui-visibility.editor-Crx0DTlv.js.map +1 -0
  1038. package/dist/ui-visibility.js +25 -26
  1039. package/dist/ui-visibility.js.map +1 -1
  1040. package/dist/ui-zoom.editor-DZ3HsWV4.js +5 -0
  1041. package/dist/ui-zoom.editor-DZ3HsWV4.js.map +1 -0
  1042. package/dist/ui-zoom.js +82 -83
  1043. package/dist/ui-zoom.js.map +1 -1
  1044. package/dist/util/TopLayerTip.d.ts +11 -2
  1045. package/dist/vocabulary/SharedVocabulary.d.ts +2 -0
  1046. package/dist/vocabulary/SharedVocabulary.es.d.ts +1 -0
  1047. package/dist/vocabulary/help.generated.d.ts +11 -0
  1048. package/dist/vocabulary/partsOfSpeech.generated.d.ts +6 -0
  1049. package/package.json +3 -3
  1050. package/dist/Dragging-CMZoLEWQ.js.map +0 -1
  1051. package/dist/MarkdownSanitizer-zTnnbrLe.js +0 -884
  1052. package/dist/MarkdownSanitizer-zTnnbrLe.js.map +0 -1
  1053. package/dist/PrefStore-Qv0e5y04.js.map +0 -1
  1054. package/dist/ScrollingRow-7n7Z-HIE.js +0 -88
  1055. package/dist/ScrollingRow-7n7Z-HIE.js.map +0 -1
  1056. package/dist/SitePages-CciwREek.js.map +0 -1
  1057. package/dist/SlottedItems-Du3aJwG1.js +0 -80
  1058. package/dist/SlottedItems-Du3aJwG1.js.map +0 -1
  1059. package/dist/UIButton-DFEds67r.js +0 -6
  1060. package/dist/UIButton-DFEds67r.js.map +0 -1
  1061. package/dist/UIInput-BodVbUoQ.js.map +0 -1
  1062. package/dist/UIKeys-Rh_gUZjP.js.map +0 -1
  1063. package/dist/UILabel-DgJUBzB_.js.map +0 -1
  1064. package/dist/UIMenu-zdcAtwTa.js +0 -42
  1065. package/dist/UIMenu-zdcAtwTa.js.map +0 -1
  1066. package/dist/UIRuntime-KH309p5B.js.map +0 -1
  1067. package/dist/UISegment-CMMIW7cZ.js.map +0 -1
  1068. package/dist/apple.palette-B4ivrNlM.js.map +0 -1
  1069. package/dist/classic-DCTQrteU.js.map +0 -1
  1070. package/dist/components.es-BOa_7gFF.js.map +0 -1
  1071. package/dist/crisp-VfYZlTph.js.map +0 -1
  1072. package/dist/crisp.theme-DRiePRdf.js +0 -6
  1073. package/dist/crisp.theme-DRiePRdf.js.map +0 -1
  1074. package/dist/dark-CbUdPe0a.js.map +0 -1
  1075. package/dist/dist-BLYIGZVK.js.map +0 -1
  1076. package/dist/emoji/cldr/0-DSUpV2d7.js.map +0 -1
  1077. package/dist/emoji/cldr/a-D_oB4vJ-.js.map +0 -1
  1078. package/dist/emoji/cldr/b-DX0W0Mda.js.map +0 -1
  1079. package/dist/emoji/cldr/c-DUHidpE9.js.map +0 -1
  1080. package/dist/emoji/cldr/d-CiCXZXay.js.map +0 -1
  1081. package/dist/emoji/cldr/e-DILJo3Ri.js.map +0 -1
  1082. package/dist/emoji/cldr/f-ByGFLyOq.js.map +0 -1
  1083. package/dist/emoji/cldr/g-BZ0FRsud.js.map +0 -1
  1084. package/dist/emoji/cldr/h-jtLdvRXQ.js.map +0 -1
  1085. package/dist/emoji/cldr/i-DcbJ5utE.js.map +0 -1
  1086. package/dist/emoji/cldr/j-BuEqP5nz.js.map +0 -1
  1087. package/dist/emoji/cldr/k-P1J6Gvze.js.map +0 -1
  1088. package/dist/emoji/cldr/l-28XcbsPr.js.map +0 -1
  1089. package/dist/emoji/cldr/m-DKgGJ8rW.js.map +0 -1
  1090. package/dist/emoji/cldr/n-DmPLP4F3.js.map +0 -1
  1091. package/dist/emoji/cldr/o-f98nt3s7.js.map +0 -1
  1092. package/dist/emoji/cldr/p-CxnsOTOt.js.map +0 -1
  1093. package/dist/emoji/cldr/r-D0GPRJ-Q.js.map +0 -1
  1094. package/dist/emoji/cldr/s-DcFuepnw.js.map +0 -1
  1095. package/dist/emoji/cldr/t-BvHgGpUr.js.map +0 -1
  1096. package/dist/emoji/cldr/u-ChFYHtUf.js.map +0 -1
  1097. package/dist/emoji/cldr/v-WmX3nWtZ.js.map +0 -1
  1098. package/dist/emoji/cldr/w-BPySQUWW.js.map +0 -1
  1099. package/dist/emoji/cldr/x-SC3r1n9O.js +0 -6
  1100. package/dist/emoji/cldr/x-SC3r1n9O.js.map +0 -1
  1101. package/dist/emoji/cldr/y-zB_yhTFg.js.map +0 -1
  1102. package/dist/emoji/cldr/z-BgJ94Cap.js.map +0 -1
  1103. package/dist/emoji/fomantic/0-CGf6gC3a.js +0 -10
  1104. package/dist/emoji/fomantic/0-CGf6gC3a.js.map +0 -1
  1105. package/dist/emoji/fomantic/a-CrqYlC21.js.map +0 -1
  1106. package/dist/emoji/fomantic/b-DneVHRdQ.js.map +0 -1
  1107. package/dist/emoji/fomantic/c-ClxKRuir.js.map +0 -1
  1108. package/dist/emoji/fomantic/d-Djqs_y4s.js.map +0 -1
  1109. package/dist/emoji/fomantic/e-CuF-jOQd.js.map +0 -1
  1110. package/dist/emoji/fomantic/f-D8VglrJ4.js.map +0 -1
  1111. package/dist/emoji/fomantic/g-Du_HFl6U.js.map +0 -1
  1112. package/dist/emoji/fomantic/h-CLE5tHnM.js.map +0 -1
  1113. package/dist/emoji/fomantic/i-BjOsrQDZ.js.map +0 -1
  1114. package/dist/emoji/fomantic/j-CyUDXKCu.js.map +0 -1
  1115. package/dist/emoji/fomantic/k-Clypg4R8.js.map +0 -1
  1116. package/dist/emoji/fomantic/l-DvLPdBh-.js.map +0 -1
  1117. package/dist/emoji/fomantic/m-B1lIb1kP.js.map +0 -1
  1118. package/dist/emoji/fomantic/n-Bgpp_ht5.js.map +0 -1
  1119. package/dist/emoji/fomantic/o-BhYZzpjp.js.map +0 -1
  1120. package/dist/emoji/fomantic/p-VLL0GK3m.js.map +0 -1
  1121. package/dist/emoji/fomantic/q-CKrtMwhc.js +0 -6
  1122. package/dist/emoji/fomantic/q-CKrtMwhc.js.map +0 -1
  1123. package/dist/emoji/fomantic/r-Bd1DjkkI.js.map +0 -1
  1124. package/dist/emoji/fomantic/s-Bqatw1W7.js.map +0 -1
  1125. package/dist/emoji/fomantic/t-Bs7IFhv3.js.map +0 -1
  1126. package/dist/emoji/fomantic/u-M6GfYC-U.js.map +0 -1
  1127. package/dist/emoji/fomantic/v-BKHNqkn0.js.map +0 -1
  1128. package/dist/emoji/fomantic/w-B_XvIu7h.js.map +0 -1
  1129. package/dist/emoji/fomantic/x-CG1_nzCF.js +0 -9
  1130. package/dist/emoji/fomantic/x-CG1_nzCF.js.map +0 -1
  1131. package/dist/emoji/fomantic/y-DPZaoIla.js.map +0 -1
  1132. package/dist/emoji/fomantic/z-FH-kPXch.js.map +0 -1
  1133. package/dist/fruity-BRVlgJZd.js +0 -6
  1134. package/dist/fruity-BRVlgJZd.js.map +0 -1
  1135. package/dist/fruity.theme-CbC7Jyvk.js.map +0 -1
  1136. package/dist/glass-x9tbbwVq.js +0 -6
  1137. package/dist/glass-x9tbbwVq.js.map +0 -1
  1138. package/dist/glass.theme-24wY2wH9.js +0 -6
  1139. package/dist/glass.theme-24wY2wH9.js.map +0 -1
  1140. package/dist/matrix-QY2gWbJ0.js +0 -6
  1141. package/dist/matrix-QY2gWbJ0.js.map +0 -1
  1142. package/dist/matrix.theme-_8xtwhDq.js +0 -6
  1143. package/dist/matrix.theme-_8xtwhDq.js.map +0 -1
  1144. package/dist/merlot-DOXLuUaU.js.map +0 -1
  1145. package/dist/merlot.theme-S-QnNGsw.js +0 -6
  1146. package/dist/merlot.theme-S-QnNGsw.js.map +0 -1
  1147. package/dist/midnight-BxlTQSfw.js.map +0 -1
  1148. package/dist/midnight.theme-wXbqRYLy.js +0 -6
  1149. package/dist/midnight.theme-wXbqRYLy.js.map +0 -1
  1150. package/dist/mockup-83ELBuVr.js +0 -6
  1151. package/dist/mockup-83ELBuVr.js.map +0 -1
  1152. package/dist/mockup.theme-DmpBgGBl.js +0 -6
  1153. package/dist/mockup.theme-DmpBgGBl.js.map +0 -1
  1154. package/dist/paper-M61nUilz.js.map +0 -1
  1155. package/dist/paper.theme-B8R5Jn5H.js +0 -6
  1156. package/dist/paper.theme-B8R5Jn5H.js.map +0 -1
  1157. package/dist/persist.types-D2m6wD-S.js.map +0 -1
  1158. package/dist/pop-CxXfytjk.js.map +0 -1
  1159. package/dist/pop.theme-CXzv8B9x.js +0 -6
  1160. package/dist/pop.theme-CXzv8B9x.js.map +0 -1
  1161. package/dist/search-CzSzx7bX.js.map +0 -1
  1162. package/dist/spell-By5Y3jKP.js +0 -6
  1163. package/dist/spell-By5Y3jKP.js.map +0 -1
  1164. package/dist/spell.theme-DxGj7qHx.js +0 -6
  1165. package/dist/spell.theme-DxGj7qHx.js.map +0 -1
  1166. package/dist/styles.en-CUUxNwHo.js.map +0 -1
  1167. package/dist/ui-theme-menu-CuIjr8Ou.js.map +0 -1
@@ -1,9 +1,9 @@
1
- import "./rolldown-runtime-CYGlBXrH.js";
2
- import { Bt as e, Ht as t, Lt as n, PartContext as r, Rt as i, SlotContent as a, UIComponent as o, Ut as s, derived as c, h as l, proto as u, protoMerged as d, zt as f } from "./core.js";
1
+ import "./rolldown-runtime-c6e9CmGy.js";
2
+ import { Gt as e, Jt as t, Kt as n, PartContext as r, SlotContent as i, UIComponent as a, Ut as o, Wt as s, Yt as c, derived as l, h as u, proto as d, protoMerged as f } from "./core.js";
3
3
  import "./ui-parts.js";
4
4
  import { Show as p } from "solid-js";
5
5
  import { className as m, createComponent as h, effect as g, getOwner as _, insert as v, readShallow as y, setAttribute as b, template as x } from "@solidjs/web";
6
- //#region src/components/ui-comment/UIComment.en.ts
6
+ // src/components/ui-comment/UIComment.en.ts
7
7
  var S = {
8
8
  tag: "ui-comment",
9
9
  icon: "comment outline",
@@ -19,6 +19,7 @@ var S = {
19
19
  ],
20
20
  skeleton: "header with image, 2 line paragraph",
21
21
  noun: "comment",
22
+ partOfSpeech: "structure",
22
23
  ui: !1,
23
24
  description: "One comment: who wrote it, when, what, and the replies to it.",
24
25
  attributes: [{
@@ -71,12 +72,12 @@ var S = {
71
72
  "actions",
72
73
  "comments"
73
74
  ]
74
- }, C = "@layer ui.components.comment.types{:host{display:contents}.ui.comments,:host(:not(:state(in-comments))){--_ui-comments-max-width:var(--ui-comments-max-width,calc(var(--ui-font-size) * 40.625));--_ui-comments-margin:var(--ui-comments-margin,1.5em);--_ui-comment-distance:var(--ui-comment-distance,.5em);--_ui-comment-line-height:var(--ui-comment-line-height,1.2);--_ui-comments-thread-margin:var(--ui-comments-thread-margin,0 0 .5em .5em);--_ui-comments-thread-padding:var(--ui-comments-thread-padding,1em 0 1em 1em);--_ui-comments-threaded-margin:var(--ui-comments-threaded-margin,-1.5em 0 -1em 1.25em);--_ui-comments-threaded-padding:var(--ui-comments-threaded-padding,3em 0 2em 2.25em);--_ui-comments-threaded-line:var(--ui-comments-threaded-line,calc(var(--ui-border-width) * -1) 0 0 var(--ui-border-color));--_ui-comments-reply-distance:var(--ui-comments-reply-distance,1em);--_ui-comments-disabled-opacity:var(--ui-comments-disabled-opacity,var(--ui-disabled-opacity))}.ui.comments{--_ui-comments-minimal:0;--_comments-threaded:0;--ui-inverted:0;box-sizing:border-box;max-width:var(--_ui-comments-max-width);margin:var(--_comments-margin-top,var(--_ui-comments-margin)) 0 var(--_comments-margin-bottom,var(--_ui-comments-margin));color:var(--ui-text-color);font-size:calc(var(--ui-font-size) * var(--ui-scale,1))}.ui.comments:first-child{--_comments-margin-top:0}.ui.comments:last-child{--_comments-margin-bottom:0}:host(:not(:first-child))>.ui.comments{--_comments-margin-top:initial}:host(:not(:last-child))>.ui.comments{--_comments-margin-bottom:initial}.ui.comments>slot{--ui-scale:initial}:host>.comment,.ui.comments .comment{margin:var(--_ui-comment-distance) 0 0;padding:var(--_ui-comment-distance) 0 0;line-height:var(--_ui-comment-line-height);background:0 0;border:none;position:relative}:host(:first-child)>.comment,.ui.comments .comment:first-child{margin-top:0;padding-top:0}:host(:state(in-comment))>.comments,.ui.comments .comment>.comments{margin:var(--_ui-comments-thread-margin);padding:var(--_ui-comments-thread-padding)}}@layer ui.components.comment.content{:is(.comments,.comment)>.reply,.ui.comments>.reply.form{margin-top:var(--_ui-comments-reply-distance)}.comment>.reply,.ui.comments .comment .reply.form{width:100%}.ui.comments .reply.form textarea{height:12em;font-size:1em}}@layer ui.components.comment.variations{.ui.threaded.comments{--_comments-threaded:1}.ui.threaded.comments .comment>.comments{margin:var(--_ui-comments-threaded-margin);padding:var(--_ui-comments-threaded-padding);box-shadow:var(--_ui-comments-threaded-line)}@container style(--_comments-threaded:1){:host(:state(in-comment))>.comments{margin:var(--_ui-comments-threaded-margin);padding:var(--_ui-comments-threaded-padding);box-shadow:var(--_ui-comments-threaded-line)}}.ui.minimal.comments{--_ui-comments-minimal:1}.ui.inverted.comments{--ui-inverted:1;--ui-scheme:dark;color-scheme:dark}.ui.inverted.comments .comment{background-color:var(--ui-surface)}@container style(--ui-inverted:1){:host(:state(in-comments))>.comment{background-color:var(--ui-surface)}}}@layer ui.components.comment.states{.ui.collapsed.comments,.ui.comments .collapsed:is(.comments,.comment),:host>.collapsed:is(.comments,.comment){display:none}.ui.disabled.comments,.ui.comments .disabled.comment,:host>.disabled:is(.comments,.comment){opacity:var(--_ui-comments-disabled-opacity);pointer-events:none}}", w = /* @__PURE__ */ x("<div><slot>"), T = /* @__PURE__ */ x("<article><slot>"), E, D, O, k, A = class _UIComment extends (O = o, D = [u], E = [d], O) {
75
+ }, C = "@layer ui.components.comment.types{:host{display:contents}.ui.comments,:host(:not(:state(in-comments))){--_ui-comments-max-width:var(--ui-comments-max-width,calc(var(--ui-font-size) * 40.625));--_ui-comments-margin:var(--ui-comments-margin,1.5em);--_ui-comment-distance:var(--ui-comment-distance,.5em);--_ui-comment-line-height:var(--ui-comment-line-height,1.2);--_ui-comments-thread-margin:var(--ui-comments-thread-margin,0 0 .5em .5em);--_ui-comments-thread-padding:var(--ui-comments-thread-padding,1em 0 1em 1em);--_ui-comments-threaded-margin:var(--ui-comments-threaded-margin,-1.5em 0 -1em 1.25em);--_ui-comments-threaded-padding:var(--ui-comments-threaded-padding,3em 0 2em 2.25em);--_ui-comments-threaded-line:var(--ui-comments-threaded-line,calc(var(--ui-border-width) * -1) 0 0 var(--ui-border-color));--_ui-comments-reply-distance:var(--ui-comments-reply-distance,1em);--_ui-comments-disabled-opacity:var(--ui-comments-disabled-opacity,var(--ui-disabled-opacity))}.ui.comments{--_ui-comments-minimal:0;--_comments-threaded:0;--ui-inverted:0;box-sizing:border-box;max-width:var(--_ui-comments-max-width);margin:var(--_comments-margin-top,var(--_ui-comments-margin)) 0 var(--_comments-margin-bottom,var(--_ui-comments-margin));color:var(--ui-text-color);font-size:calc(var(--ui-font-size) * var(--ui-scale,1))}.ui.comments:first-child{--_comments-margin-top:0}.ui.comments:last-child{--_comments-margin-bottom:0}:host(:not(:first-child))>.ui.comments{--_comments-margin-top:initial}:host(:not(:last-child))>.ui.comments{--_comments-margin-bottom:initial}.ui.comments>slot{--ui-scale:initial}:host>.comment,.ui.comments .comment{margin:var(--_ui-comment-distance) 0 0;padding:var(--_ui-comment-distance) 0 0;line-height:var(--_ui-comment-line-height);background:0 0;border:none;position:relative}:host(:first-child)>.comment,.ui.comments .comment:first-child{margin-top:0;padding-top:0}:host(:state(in-comment))>.comments,.ui.comments .comment>.comments{margin:var(--_ui-comments-thread-margin);padding:var(--_ui-comments-thread-padding)}}@layer ui.components.comment.content{:is(.comments,.comment)>.reply,.ui.comments>.reply.form{margin-top:var(--_ui-comments-reply-distance)}.comment>.reply,.ui.comments .comment .reply.form{width:100%}.ui.comments .reply.form textarea{height:12em;font-size:1em}}@layer ui.components.comment.variations{.ui.threaded.comments{--_comments-threaded:1}.ui.threaded.comments .comment>.comments{margin:var(--_ui-comments-threaded-margin);padding:var(--_ui-comments-threaded-padding);box-shadow:var(--_ui-comments-threaded-line)}@container style(--_comments-threaded:1){:host(:state(in-comment))>.comments{margin:var(--_ui-comments-threaded-margin);padding:var(--_ui-comments-threaded-padding);box-shadow:var(--_ui-comments-threaded-line)}}.ui.minimal.comments{--_ui-comments-minimal:1}.ui.inverted.comments{--ui-inverted:1;--ui-scheme:dark;color-scheme:dark}.ui.inverted.comments .comment{background-color:var(--ui-surface)}@container style(--ui-inverted:1){:host(:state(in-comments))>.comment{background-color:var(--ui-surface)}}}@layer ui.components.comment.states{.ui.collapsed.comments,.ui.comments .collapsed:is(.comments,.comment),:host>.collapsed:is(.comments,.comment){display:none}.ui.disabled.comments,.ui.comments .disabled.comment,:host>.disabled:is(.comments,.comment){opacity:var(--_ui-comments-disabled-opacity);pointer-events:none}}", w = /* @__PURE__ */ x("<div><slot>"), T = /* @__PURE__ */ x("<article><slot>"), E, D, O, k, A = class _UIComment extends (O = a, D = [d], E = [f], O) {
75
76
  constructor() {
76
77
  super(...arguments), t(this, "context", new r({
77
78
  domElement: this.domElement,
78
79
  noun: this.vocabulary.noun
79
- })), t(this, "slots", new a(this.domElement));
80
+ })), t(this, "slots", new i(this.domElement));
80
81
  }
81
82
  render() {
82
83
  let e = this;
@@ -103,11 +104,11 @@ var S = {
103
104
  }), t;
104
105
  }
105
106
  };
106
- k = f(O), n(k, 13, "vocabulary", D, A), n(k, 13, "elementSetup", E, A), i(k, A), e(A, "UIComment"), t(A, "vocabulary", s(k, 8, A, S)), s(k, 11, A), t(A, "elementSetup", s(k, 12, A, {
107
+ k = e(O), o(k, 13, "vocabulary", D, A), o(k, 13, "elementSetup", E, A), s(k, A), n(A, "UIComment"), t(A, "vocabulary", c(k, 8, A, S)), c(k, 11, A), t(A, "elementSetup", c(k, 12, A, {
107
108
  styleSheets: { comment: C },
108
109
  cssStates: ["collapsed"],
109
110
  delegatesFocus: !1
110
- })), s(k, 15, A);
111
+ })), c(k, 15, A);
111
112
  var j = A, M = "reply", N = {
112
113
  tag: "ui-comments",
113
114
  icon: "comments outline",
@@ -123,6 +124,7 @@ var j = A, M = "reply", N = {
123
124
  "replies"
124
125
  ],
125
126
  noun: "comments",
127
+ partOfSpeech: "structure",
126
128
  description: "A list of comments, or the thread of replies to one.",
127
129
  attributes: [
128
130
  {
@@ -192,12 +194,12 @@ var j = A, M = "reply", N = {
192
194
  }],
193
195
  texts: [],
194
196
  ownsParts: ["comment"]
195
- }, P = /* @__PURE__ */ x("<div><slot>"), F, I, L, R, z, B = class _UIComments extends (R = o, L = [u], I = [d], F = [c], R) {
197
+ }, P = /* @__PURE__ */ x("<div><slot>"), F, I, L, R, z, B = class _UIComments extends (R = a, L = [d], I = [f], F = [l], R) {
196
198
  constructor() {
197
- super(...arguments), s(z, 5, this), t(this, "context", new r({
199
+ super(...arguments), c(z, 5, this), t(this, "context", new r({
198
200
  domElement: this.domElement,
199
201
  noun: this.vocabulary.noun
200
- })), t(this, "slots", new a(this.domElement));
202
+ })), t(this, "slots", new i(this.domElement));
201
203
  }
202
204
  get isThread() {
203
205
  return !!this.context.owner;
@@ -229,19 +231,18 @@ var j = A, M = "reply", N = {
229
231
  get threadClasses() {
230
232
  return [
231
233
  this.collapsed ? U : "",
232
- this.disabled ? l : "",
234
+ this.disabled ? u : "",
233
235
  this.vocabulary.noun
234
236
  ].filter(Boolean).join(" ");
235
237
  }
236
238
  };
237
- z = f(R), n(z, 2, "threadClasses", F, B), n(z, 13, "vocabulary", L, B), n(z, 13, "elementSetup", I, B), i(z, B), e(B, "UIComments"), t(B, "vocabulary", s(z, 8, B, N)), s(z, 11, B), t(B, "elementSetup", s(z, 12, B, {
239
+ z = e(R), o(z, 2, "threadClasses", F, B), o(z, 13, "vocabulary", L, B), o(z, 13, "elementSetup", I, B), s(z, B), n(B, "UIComments"), t(B, "vocabulary", c(z, 8, B, N)), c(z, 11, B), t(B, "elementSetup", c(z, 12, B, {
238
240
  styleSheets: { comment: C },
239
241
  cssStates: ["collapsed"],
240
242
  delegatesFocus: !1
241
- })), s(z, 15, B);
243
+ })), c(z, 15, B);
242
244
  var V = B, H = "reply", U = "collapsed";
243
245
  V.define(), j.define();
244
- //#endregion
245
246
  export { j as UIComment, V as UIComments };
246
247
 
247
248
  //# sourceMappingURL=ui-comment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-comment.js","names":["<Show when={this.slots.hasContent(this.slotForName(\"reply\"))}>\n <div class={REPLY} part={this.partForName(\"reply\")}>\n <slot name={this.slotForName(\"reply\")} />\n </div>\n </Show>","this","part={this.partForName(\"reply\")}","name={this.slotForName(\"reply\")}","<div class={REPLY} part={this.partForName(\"reply\")}>\n <slot name={this.slotForName(\"reply\")} />\n </div>","part={this.partForName(\"comment\")}","<article class={this.rootClass} part={this.partForName(\"comment\")}>\n <slot />\n <Show when={this.slots.hasContent(this.slotForName(\"reply\"))}>\n <div class={REPLY} part={this.partForName(\"reply\")}>\n <slot name={this.slotForName(\"reply\")} />\n </div>\n </Show>\n </article>","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.PartContext","E.SlotContent","_$getOwner","_$createComponent","_$readShallow","REPLY","_$setAttribute","__name","commentCSS","<Show when={this.slots.hasContent(this.slotForName(\"reply\"))}>\n <div class={REPLY} part={this.partForName(\"reply\")}>\n <slot name={this.slotForName(\"reply\")} />\n </div>\n </Show>","this","part={this.partForName(\"reply\")}","name={this.slotForName(\"reply\")}","<div class={REPLY} part={this.partForName(\"reply\")}>\n <slot name={this.slotForName(\"reply\")} />\n </div>","part={this.partForName(\"comments\")}","<div class={this.isThread ? this.threadClasses : this.rootClass} part={this.partForName(\"comments\")}>\n <slot />\n <Show when={this.slots.hasContent(this.slotForName(\"reply\"))}>\n <div class={REPLY} part={this.partForName(\"reply\")}>\n <slot name={this.slotForName(\"reply\")} />\n </div>\n </Show>\n </div>","E.UIComponent","E.proto","E.protoMerged","E.derived","E.PartContext","E.SlotContent","_$getOwner","_$createComponent","_$readShallow","_$setAttribute","UIT.DISABLED","__name","commentCSS","__name$1","__publicField","__decorateElement","__decoratorMetadata","__runInitializers","DISABLED","__decoratorStart","getOwner$1","commentVocabulary","UIComment_default","_tmpl$$1","_tmpl$2","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UIComment","UIComponent","proto","protoMerged","PartContext","SlotContent","_self$","_el$","_el$2","insert","createComponent","Show","_el$3","_el$4","effect","readShallow","REPLY$1","className","_p$","t","setAttribute","a","UIComment","commentsVocabulary","_tmpl$","_threadClasses_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIComments","derived","REPLY","COLLAPSED","UIComments"],"sources":["../src/components/ui-comment/UIComment.en.ts","../src/components/ui-comment/UIComment.css?inline","../src/components/ui-comment/UIComment.tsx","../src/components/ui-comment/UIComments.en.ts","../src/components/ui-comment/UIComments.tsx","../src/components/ui-comment/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-comment>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts and states.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-comments threaded appearance=\"minimal\" size=\"small\">` => `ui small minimal threaded comments`; a comment has no `ui`\n * (`<ui-comment collapsed>` => `collapsed comment`). `UIComment.css` keys on those.\n * - A comment owns the generic content parts (`ownsParts`): `<ui-avatar>`, `<ui-content>`, `<ui-author>`,\n * `<ui-meta>` (Fomantic's `.metadata`), `<ui-description>` (Fomantic's `.text`), `<ui-actions>` inside it get\n * `:state(in-comment)` (`UIParts.css`). It owns `comments` too: a `<ui-comments>` inside a comment is its thread\n * of replies.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `commentVocabulary`\n * The names of `<ui-comment>`, one comment: an `<article class=\"comment\">` of an avatar,\n * a content block and a thread of replies.\n ****************/\nexport const commentVocabulary = {\n tag: \"ui-comment\",\n icon: \"comment outline\",\n topics: [\"social\", \"content parts\", \"views\"],\n aka: [\"reply\", \"post\", \"message\"],\n skeleton: \"header with image, 2 line paragraph\",\n noun: \"comment\",\n ui: false,\n description: \"One comment: who wrote it, when, what, and the replies to it.\",\n attributes: [\n { name: \"collapsed\", group: \"states\", kind: \"keyOnly\", description: \"Hidden: folded away.\" },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Faded and inert.\" }\n ],\n events: [],\n slots: [\n {\n name: \"\",\n description:\n \"`<ui-avatar>`, a `<ui-content>` (author, meta, description, actions) and a `<ui-comments>` thread of replies.\"\n },\n { name: \"reply\", description: \"A reply form (`<ui-form>`) below the comment.\" }\n ],\n parts: [\n { name: \"comment\", description: \"The comment box (`<article>`).\" },\n { name: \"reply\", description: \"The box around the `reply` slot.\" }\n ],\n states: [\n { name: \"in-comments\", description: \"In a comment list.\" },\n { name: \"collapsed\", description: \"`collapsed`.\" },\n { name: \"disabled\", description: \"`disabled`.\" }\n ],\n texts: [],\n ownsParts: [\"avatar\", \"content\", \"author\", \"meta\", \"description\", \"actions\", \"comments\"]\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-comments>` and `<ui-comment>`: a port of Fomantic's `comment.less` + `comment.variables`.\n * - ONE sheet for both elements; each adopts it after the foundation.\n * - Shadow markup contract (class grammar on semantic elements):\n * - `<ui-comments>`: `<div class=\"ui [size] [keyOnly ...] comments\" part=\"comments\"><slot></slot></div>`; inside\n * a comment (`:state(in-comment)`), its thread `<div class=\"[collapsed] [disabled] comments\">`, no `ui`\n * - `<ui-comment>`: `<article class=\"[keyOnly ...] comment\" part=\"comment\"><slot></slot></article>`\n * - both: the `reply` slot in `<div class=\"reply\" part=\"reply\">`, rendered while a reply form is slotted\n * - Rules pair the element's roots (`:host > .comment`, a thread's `:host(:state(in-comment)) > .comments`) with\n * Fomantic's static selectors (`.ui.comments .comment`, `.comment > .comments`).\n * The DOM element's position replaces `:first-child`.\n * - A comment owns its content parts: `<ui-avatar>`, `<ui-content>`, `<ui-author>`, `<ui-meta>`,\n * `<ui-description>`, `<ui-actions>` style themselves `:state(in-comment)` (`UIParts.css`), the content beside the\n * avatar; this sheet is the list, the comment box and the threads.\n * - Public tokens (`--ui-comments-*`, `--ui-comment-*`) are NEVER declared here: the top list reads each through a\n * private alias (`--_ui-comment-distance: var(--ui-comment-distance, 0.5em)`), which its comments and threads\n * inherit and read. So a value set on `:root`, an ancestor, the DOM element or `::part(comments)` reaches every\n * comment (`notes/theming.md` \"Component tokens\"). A comment in a list or a thread never re-declares them;\n * a LONE `<ui-comment>` outside a list (`:host(:not(:state(in-comments)))`) declares its own.\n * - the parts' look tokens (`--ui-comment-author-color` ...) are declared nowhere: `UIParts.css` reads them\n * - The top list declares the variation tokens its threads and parts read, and they inherit all the way down:\n * `--_ui-comments-minimal` (`UIParts.css`: actions hidden until the comment is hovered or holds focus),\n * `--_comments-threaded` (the line down each thread), `--ui-inverted` + `color-scheme`. A thread declares none\n * of them: it has no variations of its own.\n * - NOTE: left out, on purpose:\n * - the reply form's textarea height (`.reply.form textarea`): a `<ui-textarea>` sizes itself (`rows`)\n * - `.comment > .comments::before` (an empty positioned pseudo-element in Fomantic)\n */\n\n@layer ui.components.comment.types, ui.components.comment.content, ui.components.comment.variations, ui.components.comment.states;\n\n/*******************************\n Comments\n*******************************/\n\n@layer ui.components.comment.types {\n /* DOM elements: no box of their own; the roots are the list, the thread and the comment. */\n :host {\n display: contents;\n }\n\n /* Tokens: one private alias per `comment.variables` entry that still matters; threads inherit them.\n Declared on the top list AND on a LONE comment (outside a list), which has none to inherit from; a comment\n in a list declares none, so it keeps the list's. */\n .ui.comments,\n :host(:not(:state(in-comments))) {\n --_ui-comments-max-width: var(--ui-comments-max-width, calc(var(--ui-font-size) * 40.625));\n --_ui-comments-margin: var(--ui-comments-margin, 1.5em);\n --_ui-comment-distance: var(--ui-comment-distance, 0.5em);\n --_ui-comment-line-height: var(--ui-comment-line-height, 1.2);\n --_ui-comments-thread-margin: var(--ui-comments-thread-margin, 0 0 0.5em 0.5em);\n --_ui-comments-thread-padding: var(--ui-comments-thread-padding, 1em 0 1em 1em);\n --_ui-comments-threaded-margin: var(--ui-comments-threaded-margin, -1.5em 0 -1em 1.25em);\n --_ui-comments-threaded-padding: var(--ui-comments-threaded-padding, 3em 0 2em 2.25em);\n --_ui-comments-threaded-line: var(\n --ui-comments-threaded-line,\n calc(var(--ui-border-width) * -1) 0 0 var(--ui-border-color)\n );\n --_ui-comments-reply-distance: var(--ui-comments-reply-distance, 1em);\n --_ui-comments-disabled-opacity: var(--ui-comments-disabled-opacity, var(--ui-disabled-opacity));\n }\n .ui.comments {\n /* Variations, read by threads and parts. */\n --_ui-comments-minimal: 0;\n --_comments-threaded: 0;\n /* Owner token, ALWAYS declared: a plain list nested in an inverted one resets it. */\n --ui-inverted: 0;\n }\n\n /* Comments: a column no wider than a comfortable line. */\n .ui.comments {\n box-sizing: border-box;\n max-width: var(--_ui-comments-max-width);\n margin: var(--_comments-margin-top, var(--_ui-comments-margin)) 0\n var(--_comments-margin-bottom, var(--_ui-comments-margin));\n color: var(--ui-text-color);\n font-size: calc(var(--ui-font-size) * var(--ui-scale, 1));\n }\n .ui.comments:first-child {\n --_comments-margin-top: 0;\n }\n .ui.comments:last-child {\n --_comments-margin-bottom: 0;\n }\n /* Shadow DOM: the root is always an only child, so the DOM element's position decides. */\n :host(:not(:first-child)) > .ui.comments {\n --_comments-margin-top: initial;\n }\n :host(:not(:last-child)) > .ui.comments {\n --_comments-margin-bottom: initial;\n }\n /* Components inside don't scale twice. */\n .ui.comments > slot {\n --ui-scale: initial;\n }\n\n /*******************************\n Comment\n *******************************/\n\n /* Comment: spaced from the one before; the box its minimal actions are placed in. */\n :host > .comment,\n .ui.comments .comment {\n position: relative;\n margin: var(--_ui-comment-distance) 0 0;\n padding: var(--_ui-comment-distance) 0 0;\n border: none;\n background: none;\n line-height: var(--_ui-comment-line-height);\n }\n :host(:first-child) > .comment,\n .ui.comments .comment:first-child {\n margin-top: 0;\n padding-top: 0;\n }\n\n /* A thread of replies inside a comment. */\n :host(:state(in-comment)) > .comments,\n .ui.comments .comment > .comments {\n margin: var(--_ui-comments-thread-margin);\n padding: var(--_ui-comments-thread-padding);\n }\n}\n\n/*******************************\n Content\n*******************************/\n\n@layer ui.components.comment.content {\n /* A reply form below the list, or below a comment. */\n :is(.comments, .comment) > .reply,\n .ui.comments > .reply.form {\n margin-top: var(--_ui-comments-reply-distance);\n }\n .comment > .reply,\n .ui.comments .comment .reply.form {\n width: 100%;\n }\n /* Static markup: the reply textarea. */\n .ui.comments .reply.form textarea {\n height: 12em;\n font-size: 1em;\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.comment.variations {\n /* Threaded: a line down the left of each thread of replies. */\n .ui.threaded.comments {\n --_comments-threaded: 1;\n }\n .ui.threaded.comments .comment > .comments {\n margin: var(--_ui-comments-threaded-margin);\n padding: var(--_ui-comments-threaded-padding);\n box-shadow: var(--_ui-comments-threaded-line);\n }\n @container style(--_comments-threaded: 1) {\n :host(:state(in-comment)) > .comments {\n margin: var(--_ui-comments-threaded-margin);\n padding: var(--_ui-comments-threaded-padding);\n box-shadow: var(--_ui-comments-threaded-line);\n }\n }\n\n /* Minimal: each comment's actions wait for hover or focus (`UIParts.css`). */\n .ui.minimal.comments {\n --_ui-comments-minimal: 1;\n }\n\n /* Inverted: the dark scheme, and a dark surface behind each comment. */\n .ui.inverted.comments {\n --ui-inverted: 1;\n --ui-scheme: dark;\n color-scheme: dark;\n }\n .ui.inverted.comments .comment {\n background-color: var(--ui-surface);\n }\n @container style(--ui-inverted: 1) {\n :host(:state(in-comments)) > .comment {\n background-color: var(--ui-surface);\n }\n }\n}\n\n/*******************************\n States\n*******************************/\n\n@layer ui.components.comment.states {\n /* Collapsed: folded away. */\n .ui.collapsed.comments,\n .ui.comments .collapsed:is(.comments, .comment),\n :host > .collapsed:is(.comments, .comment) {\n display: none;\n }\n\n /* Disabled: faded and inert. */\n .ui.disabled.comments,\n .ui.comments .disabled.comment,\n :host > .disabled:is(.comments, .comment) {\n opacity: var(--_ui-comments-disabled-opacity);\n pointer-events: none;\n }\n}\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { commentVocabulary } from \"./UIComment.en\"\n\nimport commentCSS from \"./UIComment.css?inline\"\n\n/****************\n * ### `UIComment`\n * The component behind `<ui-comment>`:\n * one comment, `<article class=\"[keyOnly ...] comment\" part=\"comment\"><slot></slot></article>`,\n * then the `reply` slot's box (`<div class=\"reply\" part=\"reply\">`) when a reply form is slotted.\n *\n * - Why `<article>`: HTML names \"a user-submitted comment\" as its example of a self-contained composition,\n * and nests the replies' articles inside the comment they answer, as a thread of `<ui-comments>` inside does.\n *\n * - It owns its content parts (`ownsParts`):\n * `<ui-avatar>`, `<ui-content>`, `<ui-author>`, `<ui-meta>`, `<ui-description>` and `<ui-actions>`\n * get `:state(in-comment)`; a `<ui-comments>` inside is its thread.\n *\n * - In a `<ui-comments>` (`PartContext`, noun `comment`): `:state(in-comments)`.\n *\n * - `disabled`: unusable, the base class's way (`elementSetup.disabled`):\n * faded, the article inert, `aria-disabled`.\n ****************/\nexport class UIComment extends E.UIComponent<typeof commentVocabulary> {\n @E.proto static vocabulary = commentVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { comment: commentCSS },\n cssStates: [\"collapsed\"],\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /** Its comment list, if any. */\n readonly context = new E.PartContext({ domElement: this.domElement, noun: this.vocabulary.noun })\n\n /** Light-DOM slot occupancy. */\n readonly slots = new E.SlotContent(this.domElement)\n\n render(): JSX.Element {\n return (\n <article class={this.rootClass} part={this.partForName(\"comment\")}>\n <slot />\n <Show when={this.slots.hasContent(this.slotForName(\"reply\"))}>\n <div class={REPLY} part={this.partForName(\"reply\")}>\n <slot name={this.slotForName(\"reply\")} />\n </div>\n </Show>\n </article>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIComment extends E.AttributeValues<typeof commentVocabulary> {}\n\n/** The class, part and slot of the reply box (`UIComments` draws one too). */\nconst REPLY = \"reply\"\n","/**\n * The English vocabulary of `<ui-comments>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), events, slots, parts, states and texts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The family's grammar notes are in `UIComment.en.ts`.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `commentsVocabulary`\n * The names of `<ui-comments>`, a comment list: `<div class=\"ui ... comments\">` of `<ui-comment>`s;\n * inside a comment, its thread of replies (`<div class=\"comments\">`).\n ****************/\nexport const commentsVocabulary = {\n tag: \"ui-comments\",\n icon: \"comments outline\",\n topics: [\"social\", \"lists\", \"data display\", \"views\"],\n aka: [\"discussion\", \"thread\", \"replies\"],\n noun: \"comments\",\n description: \"A list of comments, or the thread of replies to one.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Text size, `mini` ... `massive`; `medium` is the default.\"\n },\n {\n name: \"threaded\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description: \"A line down the left of each thread of replies.\"\n },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n values: [\"minimal\"],\n // each word draws itself: no key after it\n classes: {},\n replaces: [{ from: \"minimal\", value: \"minimal\" }],\n description:\n \"The look: `minimal`, each comment's actions hidden until the comment is hovered (and shown to keyboard \" +\n \"focus). Old name: `minimal`.\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"For dark backgrounds: the dark scheme.\" },\n { name: \"collapsed\", group: \"states\", kind: \"keyOnly\", description: \"Hidden: a thread of replies folded away.\" },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Faded and inert.\" }\n ],\n events: [],\n slots: [\n { name: \"\", description: \"`<ui-comment>`s, and a heading (`<ui-header dividing>`).\" },\n { name: \"reply\", description: \"A reply form (`<ui-form>`) below the comments.\" }\n ],\n parts: [\n { name: \"comments\", description: \"The comment list box.\" },\n { name: \"reply\", description: \"The box around the `reply` slot.\" }\n ],\n states: [\n { name: \"in-comment\", description: 'Inside a comment: its thread of replies (`class=\"comments\"`, no `ui`).' },\n { name: \"collapsed\", description: \"`collapsed`.\" }\n ],\n texts: [],\n ownsParts: [\"comment\"]\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { commentsVocabulary } from \"./UIComments.en\"\n\nimport commentCSS from \"./UIComment.css?inline\"\n\n/****************\n * ### `UIComments`\n * The component behind `<ui-comments>`:\n * a list of comments, `<div class=\"ui [size] [keyOnly ...] comments\" part=\"comments\"><slot></slot></div>`,\n * then the `reply` slot's box (`<div class=\"reply\" part=\"reply\">`) when a reply form is slotted.\n *\n * - It owns its comments (`ownsParts: comment`): each `<ui-comment>` gets `:state(in-comments)`.\n *\n * - Inside a `<ui-comment>` (`PartContext`, noun `comments`), it is that comment's THREAD of replies:\n * `<div class=\"[collapsed] comments\">`, no `ui`, no variations of its own.\n * It inherits the outer list's (`threaded`, `minimal`, `inverted` ...) as tokens,\n * as Fomantic's `.ui.threaded.comments .comment > .comments` has it.\n *\n * - No role: each comment is an `<article>`, which is the structure a reader moves through.\n *\n * - `disabled`: unusable, the base class's way (`elementSetup.disabled`):\n * faded, what's inside inert, `aria-disabled`.\n ****************/\nexport class UIComments extends E.UIComponent<typeof commentsVocabulary> {\n @E.proto static vocabulary = commentsVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { comment: commentCSS },\n cssStates: [\"collapsed\"],\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /** The comment this is the thread of, if any. */\n readonly context = new E.PartContext({ domElement: this.domElement, noun: this.vocabulary.noun })\n\n /** Light-DOM slot occupancy. */\n readonly slots = new E.SlotContent(this.domElement)\n\n /** A thread of replies inside a comment. */\n get isThread(): boolean {\n return !!this.context.owner\n }\n\n render(): JSX.Element {\n return (\n <div class={this.isThread ? this.threadClasses : this.rootClass} part={this.partForName(\"comments\")}>\n <slot />\n <Show when={this.slots.hasContent(this.slotForName(\"reply\"))}>\n <div class={REPLY} part={this.partForName(\"reply\")}>\n <slot name={this.slotForName(\"reply\")} />\n </div>\n </Show>\n </div>\n )\n }\n\n /** A thread's classes: the noun, and `collapsed` / `disabled`, which a thread keeps. */\n @E.derived\n private get threadClasses(): string {\n return [this.collapsed ? COLLAPSED : \"\", this.disabled ? UIT.DISABLED : \"\", this.vocabulary.noun]\n .filter(Boolean)\n .join(\" \")\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIComments extends E.AttributeValues<typeof commentsVocabulary> {}\n\n/** The class, part and slot of the reply box (`UIComment` draws one too). */\nconst REPLY = \"reply\"\n\n/** The class word a thread of replies keeps (`collapsed comments`). */\nconst COLLAPSED = \"collapsed\"\n","/**\n * The comment family: defines `<ui-comments>` and `<ui-comment>`,\n * and exports their components, `UIComments` and `UIComment`.\n * - SIDE EFFECT: importing it defines the tags, and the generic content parts through the parts barrel,\n * so a page never has to import what its comments hold.\n * - Also the library's `spell/ui/ui-comment` entry (its size is in `notes/report.md`).\n */\n\nimport { UIComment } from \"./UIComment\"\nimport { UIComments } from \"./UIComments\"\n\nimport \"spell/ui/components/ui-parts\"\n\nUIComments.define()\nUIComment.define()\n\nexport { UIComment, UIComments }\n"],"mappings":";;;;;;AAoBA,IAAaoD,IAAoB;CAC/B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAU;EAAiB;CAAO;CAC3C,KAAK;EAAC;EAAS;EAAQ;CAAS;CAChC,UAAU;CACV,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b;AACF;AAvCO,IAAAS,EAAAsC,CAAA,GAkCL1C,EAAA2C,GAAA,GAAY,iBADZJ,GAjCWK,CAAA,GACF5C,EAAA2C,GAAA,IAAO,cAAhBF,GADWG,CAAA,GAEI5C,EAAA2C,GAAA,IAAO,gBAAtBH,GAFWI,CAAA,GAAN3C,EAAA0C,GAAMC,CAAA,GAA4DhD,EAAAgD,GAAA,YAAA,GAC9D7C,EADE6C,GACK,cAAa1C,EAApByC,GAAA,GADEC,GACkBP,CAAA,CAAA,GAApBnC,EAAAyC,GAAA,IADEC,CAAA,GAEI7C,EAFJ6C,GAEW,gBAAe1C,EAAtByC,GAAA,IAFJC,GAE0B;CACnC,aAAa,EAAE,SAAS/C,EAAW;CACnC,WAAW,CAAC,WAAW;CACvB,gBAAgB;AAClB,CAAA,CAAA,GAJeK,EAAAyC,GAAA,IAFJC,CAAA;AAAN,IAAMI,IAANJ,GA6CDE,IAAQ,SAGRC,IAAY;AC7DlBC,EAAW,OAAO,GAClBZ,EAAU,OAAO"}
1
+ {"version":3,"file":"ui-comment.js","names":["<Show when={this.slots.hasContent(this.slotForName(\"reply\"))}>\n <div class={REPLY} part={this.partForName(\"reply\")}>\n <slot name={this.slotForName(\"reply\")} />\n </div>\n </Show>","this","part={this.partForName(\"reply\")}","name={this.slotForName(\"reply\")}","<div class={REPLY} part={this.partForName(\"reply\")}>\n <slot name={this.slotForName(\"reply\")} />\n </div>","part={this.partForName(\"comment\")}","<article class={this.rootClass} part={this.partForName(\"comment\")}>\n <slot />\n <Show when={this.slots.hasContent(this.slotForName(\"reply\"))}>\n <div class={REPLY} part={this.partForName(\"reply\")}>\n <slot name={this.slotForName(\"reply\")} />\n </div>\n </Show>\n </article>","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.PartContext","E.SlotContent","_$getOwner","_$readShallow","REPLY","_$setAttribute","__name","commentCSS","<Show when={this.slots.hasContent(this.slotForName(\"reply\"))}>\n <div class={REPLY} part={this.partForName(\"reply\")}>\n <slot name={this.slotForName(\"reply\")} />\n </div>\n </Show>","this","part={this.partForName(\"reply\")}","name={this.slotForName(\"reply\")}","<div class={REPLY} part={this.partForName(\"reply\")}>\n <slot name={this.slotForName(\"reply\")} />\n </div>","part={this.partForName(\"comments\")}","<div class={this.isThread ? this.threadClasses : this.rootClass} part={this.partForName(\"comments\")}>\n <slot />\n <Show when={this.slots.hasContent(this.slotForName(\"reply\"))}>\n <div class={REPLY} part={this.partForName(\"reply\")}>\n <slot name={this.slotForName(\"reply\")} />\n </div>\n </Show>\n </div>","E.UIComponent","E.proto","E.protoMerged","E.derived","E.PartContext","E.SlotContent","_$getOwner","_$readShallow","_$setAttribute","UIT.DISABLED","__name","commentCSS","__decoratorStart","__publicField","__name$1","__decorateElement","__decoratorMetadata","__runInitializers","DISABLED","getOwner$1","commentVocabulary","UIComment_default","_tmpl$$1","_tmpl$2","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UIComment","UIComponent","proto","protoMerged","PartContext","SlotContent","_self$","_el$","_el$2","insert","createComponent","Show","_el$3","_el$4","effect","readShallow","REPLY$1","className","_p$","t","setAttribute","a","UIComment","commentsVocabulary","_tmpl$","_threadClasses_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIComments","derived","REPLY","COLLAPSED","UIComments"],"sources":["../src/components/ui-comment/UIComment.en.ts","../src/components/ui-comment/UIComment.tsx","../src/components/ui-comment/UIComments.en.ts","../src/components/ui-comment/UIComments.tsx","../src/components/ui-comment/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-comment>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts and states.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-comments threaded appearance=\"minimal\" size=\"small\">` => `ui small minimal threaded comments`; a comment has no `ui`\n * (`<ui-comment collapsed>` => `collapsed comment`). `UIComment.css` keys on those.\n * - A comment owns the generic content parts (`ownsParts`): `<ui-avatar>`, `<ui-content>`, `<ui-author>`,\n * `<ui-meta>` (Fomantic's `.metadata`), `<ui-description>` (Fomantic's `.text`), `<ui-actions>` inside it get\n * `:state(in-comment)` (`UIParts.css`). It owns `comments` too: a `<ui-comments>` inside a comment is its thread\n * of replies.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `commentVocabulary`\n * The names of `<ui-comment>`, one comment: an `<article class=\"comment\">` of an avatar,\n * a content block and a thread of replies.\n ****************/\nexport const commentVocabulary = {\n tag: \"ui-comment\",\n icon: \"comment outline\",\n topics: [\"social\", \"content parts\", \"views\"],\n aka: [\"reply\", \"post\", \"message\"],\n skeleton: \"header with image, 2 line paragraph\",\n noun: \"comment\",\n partOfSpeech: \"structure\",\n ui: false,\n description: \"One comment: who wrote it, when, what, and the replies to it.\",\n attributes: [\n { name: \"collapsed\", group: \"states\", kind: \"keyOnly\", description: \"Hidden: folded away.\" },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Faded and inert.\" }\n ],\n events: [],\n slots: [\n {\n name: \"\",\n description:\n \"`<ui-avatar>`, a `<ui-content>` (author, meta, description, actions) and a `<ui-comments>` thread of replies.\"\n },\n { name: \"reply\", description: \"A reply form (`<ui-form>`) below the comment.\" }\n ],\n parts: [\n { name: \"comment\", description: \"The comment box (`<article>`).\" },\n { name: \"reply\", description: \"The box around the `reply` slot.\" }\n ],\n states: [\n { name: \"in-comments\", description: \"In a comment list.\" },\n { name: \"collapsed\", description: \"`collapsed`.\" },\n { name: \"disabled\", description: \"`disabled`.\" }\n ],\n texts: [],\n ownsParts: [\"avatar\", \"content\", \"author\", \"meta\", \"description\", \"actions\", \"comments\"]\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { commentVocabulary } from \"./UIComment.en\"\n\nimport commentCSS from \"./UIComment.css?inline\"\n\n/****************\n * ### `UIComment`\n * The component behind `<ui-comment>`:\n * one comment, `<article class=\"[keyOnly ...] comment\" part=\"comment\"><slot></slot></article>`,\n * then the `reply` slot's box (`<div class=\"reply\" part=\"reply\">`) when a reply form is slotted.\n *\n * - Why `<article>`: HTML names \"a user-submitted comment\" as its example of a self-contained composition,\n * and nests the replies' articles inside the comment they answer, as a thread of `<ui-comments>` inside does.\n *\n * - It owns its content parts (`ownsParts`):\n * `<ui-avatar>`, `<ui-content>`, `<ui-author>`, `<ui-meta>`, `<ui-description>` and `<ui-actions>`\n * get `:state(in-comment)`; a `<ui-comments>` inside is its thread.\n *\n * - In a `<ui-comments>` (`PartContext`, noun `comment`): `:state(in-comments)`.\n *\n * - `disabled`: unusable, the base class's way (`elementSetup.disabled`):\n * faded, the article inert, `aria-disabled`.\n ****************/\nexport class UIComment extends E.UIComponent<typeof commentVocabulary> {\n @E.proto static vocabulary = commentVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { comment: commentCSS },\n cssStates: [\"collapsed\"],\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /** Its comment list, if any. */\n readonly context = new E.PartContext({ domElement: this.domElement, noun: this.vocabulary.noun })\n\n /** Light-DOM slot occupancy. */\n readonly slots = new E.SlotContent(this.domElement)\n\n render(): JSX.Element {\n return (\n <article class={this.rootClass} part={this.partForName(\"comment\")}>\n <slot />\n <Show when={this.slots.hasContent(this.slotForName(\"reply\"))}>\n <div class={REPLY} part={this.partForName(\"reply\")}>\n <slot name={this.slotForName(\"reply\")} />\n </div>\n </Show>\n </article>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIComment extends E.AttributeValues<typeof commentVocabulary> {}\n\n/** The class, part and slot of the reply box (`UIComments` draws one too). */\nconst REPLY = \"reply\"\n","/**\n * The English vocabulary of `<ui-comments>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), events, slots, parts, states and texts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The family's grammar notes are in `UIComment.en.ts`.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `commentsVocabulary`\n * The names of `<ui-comments>`, a comment list: `<div class=\"ui ... comments\">` of `<ui-comment>`s;\n * inside a comment, its thread of replies (`<div class=\"comments\">`).\n ****************/\nexport const commentsVocabulary = {\n tag: \"ui-comments\",\n icon: \"comments outline\",\n topics: [\"social\", \"lists\", \"data display\", \"views\"],\n aka: [\"discussion\", \"thread\", \"replies\"],\n noun: \"comments\",\n partOfSpeech: \"structure\",\n description: \"A list of comments, or the thread of replies to one.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Text size, `mini` ... `massive`; `medium` is the default.\"\n },\n {\n name: \"threaded\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description: \"A line down the left of each thread of replies.\"\n },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n values: [\"minimal\"],\n // each word draws itself: no key after it\n classes: {},\n replaces: [{ from: \"minimal\", value: \"minimal\" }],\n description:\n \"The look: `minimal`, each comment's actions hidden until the comment is hovered (and shown to keyboard \" +\n \"focus). Old name: `minimal`.\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"For dark backgrounds: the dark scheme.\" },\n { name: \"collapsed\", group: \"states\", kind: \"keyOnly\", description: \"Hidden: a thread of replies folded away.\" },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Faded and inert.\" }\n ],\n events: [],\n slots: [\n { name: \"\", description: \"`<ui-comment>`s, and a heading (`<ui-header dividing>`).\" },\n { name: \"reply\", description: \"A reply form (`<ui-form>`) below the comments.\" }\n ],\n parts: [\n { name: \"comments\", description: \"The comment list box.\" },\n { name: \"reply\", description: \"The box around the `reply` slot.\" }\n ],\n states: [\n { name: \"in-comment\", description: 'Inside a comment: its thread of replies (`class=\"comments\"`, no `ui`).' },\n { name: \"collapsed\", description: \"`collapsed`.\" }\n ],\n texts: [],\n ownsParts: [\"comment\"]\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { commentsVocabulary } from \"./UIComments.en\"\n\nimport commentCSS from \"./UIComment.css?inline\"\n\n/****************\n * ### `UIComments`\n * The component behind `<ui-comments>`:\n * a list of comments, `<div class=\"ui [size] [keyOnly ...] comments\" part=\"comments\"><slot></slot></div>`,\n * then the `reply` slot's box (`<div class=\"reply\" part=\"reply\">`) when a reply form is slotted.\n *\n * - It owns its comments (`ownsParts: comment`): each `<ui-comment>` gets `:state(in-comments)`.\n *\n * - Inside a `<ui-comment>` (`PartContext`, noun `comments`), it is that comment's THREAD of replies:\n * `<div class=\"[collapsed] comments\">`, no `ui`, no variations of its own.\n * It inherits the outer list's (`threaded`, `minimal`, `inverted` ...) as tokens,\n * as Fomantic's `.ui.threaded.comments .comment > .comments` has it.\n *\n * - No role: each comment is an `<article>`, which is the structure a reader moves through.\n *\n * - `disabled`: unusable, the base class's way (`elementSetup.disabled`):\n * faded, what's inside inert, `aria-disabled`.\n ****************/\nexport class UIComments extends E.UIComponent<typeof commentsVocabulary> {\n @E.proto static vocabulary = commentsVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { comment: commentCSS },\n cssStates: [\"collapsed\"],\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /** The comment this is the thread of, if any. */\n readonly context = new E.PartContext({ domElement: this.domElement, noun: this.vocabulary.noun })\n\n /** Light-DOM slot occupancy. */\n readonly slots = new E.SlotContent(this.domElement)\n\n /** A thread of replies inside a comment. */\n get isThread(): boolean {\n return !!this.context.owner\n }\n\n render(): JSX.Element {\n return (\n <div class={this.isThread ? this.threadClasses : this.rootClass} part={this.partForName(\"comments\")}>\n <slot />\n <Show when={this.slots.hasContent(this.slotForName(\"reply\"))}>\n <div class={REPLY} part={this.partForName(\"reply\")}>\n <slot name={this.slotForName(\"reply\")} />\n </div>\n </Show>\n </div>\n )\n }\n\n /** A thread's classes: the noun, and `collapsed` / `disabled`, which a thread keeps. */\n @E.derived\n private get threadClasses(): string {\n return [this.collapsed ? COLLAPSED : \"\", this.disabled ? UIT.DISABLED : \"\", this.vocabulary.noun]\n .filter(Boolean)\n .join(\" \")\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIComments extends E.AttributeValues<typeof commentsVocabulary> {}\n\n/** The class, part and slot of the reply box (`UIComment` draws one too). */\nconst REPLY = \"reply\"\n\n/** The class word a thread of replies keeps (`collapsed comments`). */\nconst COLLAPSED = \"collapsed\"\n","/**\n * The comment family: defines `<ui-comments>` and `<ui-comment>`,\n * and exports their components, `UIComments` and `UIComment`.\n * - SIDE EFFECT: importing it defines the tags, and the generic content parts through the parts barrel,\n * so a page never has to import what its comments hold.\n * - Also the library's `spell/ui/ui-comment` entry (its size is in `notes/report.md`).\n */\n\nimport { UIComment } from \"./UIComment\"\nimport { UIComments } from \"./UIComments\"\n\nimport \"spell/ui/components/ui-parts\"\n\nUIComments.define()\nUIComment.define()\n\nexport { UIComment, UIComments }\n"],"mappings":";;;;;;AAoBA,IAAakD,IAAoB;CAC/B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAU;EAAiB;CAAO;CAC3C,KAAK;EAAC;EAAS;EAAQ;CAAS;CAChC,UAAU;CACV,MAAM;CACN,cAAc;CACd,IAAI;CACJ,aAAa;CACb,YAAY,CACV;EAAE,MAAM;EAAa,OAAO;EAAU,MAAM;EAAW,aAAa;CAAwB,GAC5F;EAAE,MAAM;EAAY,OAAO;EAAU,MAAM;EAAW,aAAa;CAAmB,CACxF;CACA,QAAQ,CAAC;CACT,OAAO,CACL;EACE,MAAM;EACN,aACE;CACJ,GACA;EAAE,MAAM;EAAS,aAAa;CAAgD,CAChF;CACA,OAAO,CACL;EAAE,MAAM;EAAW,aAAa;CAAiC,GACjE;EAAE,MA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AAA,CAAA,GAApBlC,EAAAwC,GAAA,IADEC,CAAA,GAEI7C,EAFJ6C,GAEW,gBAAezC,EAAtBwC,GAAA,IAFJC,GAE0B;CACnC,aAAa,EAAE,SAAS/C,EAAW;CACnC,WAAW,CAAC,WAAW;CACvB,gBAAgB;AAClB,CAAA,CAAA,GAJeM,EAAAwC,GAAA,IAFJC,CAAA;AAAN,IAAMI,IAANJ,GA6CDE,IAAQ,SAGRC,IAAY;AC7DlBC,EAAW,OAAO,GAClBZ,EAAU,OAAO"}
@@ -0,0 +1,5 @@
1
+ // src/components/ui-comment/ui-comments.editor.html?raw
2
+ var e = "<!-- <ui-comments>'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-comments\" data-omit=\"\">\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"size\"></ui-property>\n <ui-property name=\"threaded\"></ui-property>\n <ui-property name=\"appearance\"></ui-property>\n <ui-property name=\"inverted\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"States\" data-group=\"states\">\n <ui-property name=\"collapsed\"></ui-property>\n <ui-property name=\"disabled\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
3
+ export { e as default };
4
+
5
+ //# sourceMappingURL=ui-comments.editor-GFJN6l3Q.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-comments.editor-GFJN6l3Q.js","names":["ui_comments_editor_default"],"sources":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ // src/components/ui-components/ui-components.editor.html?raw
2
+ var e = "<!-- <ui-components>'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-components\" data-omit=\"\">\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"source\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
3
+ export { e as default };
4
+
5
+ //# sourceMappingURL=ui-components.editor-BKFXnARt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-components.editor-BKFXnARt.js","names":["ui_components_editor_default"],"sources":[],"mappings":""}
@@ -1,11 +1,11 @@
1
- import "./rolldown-runtime-CYGlBXrH.js";
2
- import { Bt as e, Ht as t, LoadOnce as n, Lt as r, Rt as i, UIComponent as a, Ut as o, Warnings as s, proto as c, protoMerged as l, zt as u } from "./core.js";
3
- //#region src/components/ui-components/ComponentPacks.ts
1
+ import "./rolldown-runtime-c6e9CmGy.js";
2
+ import { Gt as e, Jt as t, Kt as n, LoadOnce as r, UIComponent as i, Ut as a, Warnings as o, Wt as s, Yt as c, proto as l, protoMerged as u } from "./core.js";
3
+ // src/components/ui-components/ComponentPacks.ts
4
4
  var d = class ComponentPacks {
5
5
  static packs = /* @__PURE__ */ new Map();
6
6
  static catalog = /* @__PURE__ */ new Map();
7
7
  static prefixes = /* @__PURE__ */ new Set();
8
- static loads = new n();
8
+ static loads = new r();
9
9
  static pending = /* @__PURE__ */ new Set();
10
10
  static reloading = /* @__PURE__ */ new Map();
11
11
  static defining = /* @__PURE__ */ new Map();
@@ -19,7 +19,7 @@ var d = class ComponentPacks {
19
19
  return;
20
20
  }
21
21
  if (n) {
22
- s.warn("registerPack()", `a pack named "${e.name}" is registered already; this one is ignored`), t?.resolve(n);
22
+ o.warn("registerPack()", `a pack named "${e.name}" is registered already; this one is ignored`), t?.resolve(n);
23
23
  return;
24
24
  }
25
25
  let i;
@@ -149,9 +149,9 @@ var d = class ComponentPacks {
149
149
  return e instanceof Error ? e : Error(String(e));
150
150
  }
151
151
  static check(e) {
152
- (typeof e?.name != "string" || !e.name) && fail("a pack needs a `name`");
152
+ typeof e?.name == "string" && e.name || fail("a pack needs a `name`");
153
153
  let { name: t, prefix: n, catalog: r } = e;
154
- (typeof n != "string" || !p.test(n) || n === m) && fail(`pack "${t}": \`prefix\` must be lowercase words ending in "-" (\`epic-\`), never "${m}"`), typeof e.define != "function" && fail(`pack "${t}": \`define()\` must define its tags`), (typeof r != "object" || !r) && fail(`pack "${t}": \`catalog\` must map its tags`);
154
+ typeof n == "string" && p.test(n) && n !== m || fail(`pack "${t}": \`prefix\` must be lowercase words ending in "-" (\`epic-\`), never "${m}"`), typeof e.define != "function" && fail(`pack "${t}": \`define()\` must define its tags`), typeof r == "object" && r || fail(`pack "${t}": \`catalog\` must map its tags`);
155
155
  let i = Object.keys(r).filter((e) => !e.startsWith(n));
156
156
  i.length && fail(`pack "${t}": every tag starts with "${n}", not ${i.join(", ")}`);
157
157
  function fail(e) {
@@ -175,6 +175,7 @@ var f = "swap", p = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*-$/, m = "ui-", h = /(?:\.pac
175
175
  "element library"
176
176
  ],
177
177
  noun: "components",
178
+ partOfSpeech: "plain",
178
179
  description: "Components name a pack of another package's elements, which the root around them loads on demand, once per page.",
179
180
  attributes: [{
180
181
  name: g,
@@ -186,18 +187,16 @@ var f = "swap", p = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*-$/, m = "ui-", h = /(?:\.pac
186
187
  parts: [],
187
188
  states: [],
188
189
  texts: []
189
- }, v = "@layer ui.components.components.types{:host{display:none}}", y, b, x, S, C = class _UIComponents extends (x = a, b = [c], y = [l], x) {
190
+ }, v = "@layer ui.components.components.types{:host{display:none}}", y, b, x, S, C = class _UIComponents extends (x = i, b = [l], y = [u], x) {
190
191
  render() {}
191
192
  };
192
- S = u(x), r(S, 13, "vocabulary", b, C), r(S, 13, "elementSetup", y, C), i(S, C), e(C, "UIComponents"), t(C, "vocabulary", o(S, 8, C, _)), o(S, 11, C), t(C, "elementSetup", o(S, 12, C, {
193
+ S = e(x), a(S, 13, "vocabulary", b, C), a(S, 13, "elementSetup", y, C), s(S, C), n(C, "UIComponents"), t(C, "vocabulary", c(S, 8, C, _)), c(S, 11, C), t(C, "elementSetup", c(S, 12, C, {
193
194
  styleSheets: { components: v },
194
195
  delegatesFocus: !1
195
- })), o(S, 15, C);
196
+ })), c(S, 15, C);
196
197
  var w = C;
197
- //#endregion
198
- //#region src/components/ui-components/index.ts
198
+ // src/components/ui-components/index.ts
199
199
  w.define();
200
- //#endregion
201
200
  export { d as ComponentPacks, w as UIComponents, g as n, registerPack, _ as t };
202
201
 
203
202
  //# sourceMappingURL=ui-components.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-components.js","names":["E.LoadOnce","E.UIComponent","E.proto","E.protoMerged","__name","componentsCSS","__name$1","__publicField","__decorateElement","__decoratorMetadata","__runInitializers","__decoratorStart","ComponentPacks","LoadOnce","pack","pending","known","reload","Warnings","defined","error","tag","entry","url","source","name","script","reject","RELOAD_PARAM","defining","prefix","file","path","PACK_FILE_SUFFIX","scripts","next","changed","swap","folders","folder","message","running","byName","PACK_PREFIX","UI_PREFIX","catalog","strays","problem","SOURCE","componentsVocabulary","UIComponents_default","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIComponents","UIComponent","proto","protoMerged","UIComponents"],"sources":["../src/components/ui-components/ComponentPacks.ts","../src/components/ui-components/UIComponents.types.ts","../src/components/ui-components/UIComponents.en.ts","../src/components/ui-components/UIComponents.css?inline","../src/components/ui-components/UIComponents.ts","../src/components/ui-components/index.ts"],"sourcesContent":["import { E } from \"spell/ui/core\"\nimport type { RootCatalogEntry } from \"spell/ui/components/ui-root/UIRoot.types\"\nimport type { ComponentPack, PackSwap, PackSwapResult } from \"./UIComponents.types\"\n\n/****************\n * ### `ComponentPacks`\n * The page's component packs: their catalogs and tag prefixes, and the loads of their scripts, once per page.\n * - Static: one registry per page, shared by every `<ui-root>`, like `RootLoader`'s family loads.\n * - A pack is a CLASSIC script (`<script src>`, so it works from `file://`):\n * `load()` adds one, and the script calls `registerPack()` as it runs.\n * That finds the load by `document.currentScript` (else by the name its file implies),\n * defines the pack's tags and resolves it.\n * - A pack's script REBUILT (a merge): `reload()` runs it again in place, its changed families swapped into the live\n * elements by the page's hot replacement (`PackSwap`, Spell UI's `PackHotSwap`), so the page needn't reload.\n * - Plain DOM, no Solid: `<ui-root>` asks it what a tag is (`entryOf()`, `owns()`), and it knows nothing of roots.\n ****************/\nexport class ComponentPacks {\n /** Name => the registered pack. */\n private static readonly packs = new Map<string, ComponentPack>()\n\n /** Tag => its entry, from every registered pack's catalog. */\n private static readonly catalog = new Map<string, RootCatalogEntry>()\n\n /** Every registered pack's tag prefix. */\n private static readonly prefixes = new Set<string>()\n\n /** Resolved script URL => its load, started once per page; a failure is the answer for good. */\n private static readonly loads = new E.LoadOnce<string, ComponentPack>()\n\n /** Loads whose script hasn't registered its pack yet. */\n private static readonly pending = new Set<PendingPack>()\n\n /** Pack name => its reload under way (`reload()`): its script's `register()` swaps it in instead of being ignored. */\n private static readonly reloading = new Map<string, PackReload>()\n\n /** Pack name => its `define()` while it still runs (it loads its families first): its tags are listed, not yet defined. */\n private static readonly defining = new Map<string, Promise<unknown>>()\n\n ////////////////\n // ## Registering and loading\n ////////////////\n\n /**\n * Register `pack`: define its tags (`pack.define()`), add its catalog and prefix,\n * and resolve the load of the script calling this (if `load()` started it).\n * - A `define()` that returns a promise (it loads its families first) resolves the load once that settles,\n * or fails it; without a load to fail, a console error says why.\n * - A second pack with a registered name is ignored, with a console warning: its tags are defined already.\n * - Throws a `TypeError` on a malformed pack; rethrows what `define()` throws, after failing the load.\n */\n static register(pack: ComponentPack): void {\n ComponentPacks.check(pack)\n const pending = ComponentPacks.pendingFor(pack.name)\n if (pending) ComponentPacks.pending.delete(pending)\n const known = ComponentPacks.packs.get(pack.name)\n const reload = ComponentPacks.reloading.get(pack.name)\n if (known && reload) {\n ComponentPacks.reloading.delete(pack.name)\n ComponentPacks.swapIn(known, pack, reload)\n return\n }\n if (known) {\n E.Warnings.warn(\"registerPack()\", `a pack named \"${pack.name}\" is registered already; this one is ignored`)\n pending?.resolve(known)\n return\n }\n let defined: void | Promise<unknown>\n try {\n defined = pack.define()\n } catch (error) {\n pending?.reject(ComponentPacks.asError(error))\n throw error\n }\n ComponentPacks.packs.set(pack.name, pack)\n ComponentPacks.prefixes.add(pack.prefix)\n for (const [tag, entry] of Object.entries(pack.catalog)) ComponentPacks.catalog.set(tag, entry)\n if (!(defined instanceof Promise)) {\n pending?.resolve(pack)\n return\n }\n ComponentPacks.defining.set(pack.name, defined)\n const settled = () => ComponentPacks.defining.delete(pack.name)\n defined.then(settled, settled)\n defined.then(\n () => pending?.resolve(pack),\n (error: unknown) => {\n if (pending) pending.reject(ComponentPacks.asError(error))\n else console.error(`registerPack(): pack \"${pack.name}\" couldn't define its tags:`, error)\n }\n )\n }\n\n /**\n * Load the pack at `source` (relative to the page) as a classic script, ONCE per page;\n * resolves with the pack once its script registered it.\n * - A pack already registered under the name its file implies (a page's own `<script src>`, an ES import)\n * resolves at once, with no second script.\n * - Rejects when the script can't load, ran without registering a pack, or its `define()` failed. NEVER throws.\n */\n static load(source: string): Promise<ComponentPack> {\n let url: string\n try {\n url = new URL(source, document.baseURI).href\n } catch (error) {\n return Promise.reject(error instanceof Error ? error : new Error(String(error)))\n }\n return ComponentPacks.loads.get(url, () => {\n const known = ComponentPacks.packs.get(ComponentPacks.nameFor(url))\n return known ? Promise.resolve(known) : ComponentPacks.inject(url)\n })\n }\n\n /**\n * Run the REBUILT script of a registered pack, at `source`, in place: its `define()` runs again, and `swap` swaps\n * the families whose sources changed into the live elements; the others keep their classes.\n * - Resolves `\"swapped\"`; `\"reload\"` when only a page reload can show it:\n * - a tag the old pack didn't have (`<ui-root>` defines its catalog's tags before their families load)\n * - a change the platform can't take in place (`swap.finish()`: observed attributes ...)\n * - Resolves `\"none\"` for a pack that isn't on the page: nothing to swap.\n * - Which families changed: the pack's `families` hashes, old against new; a pack built without them: all of them.\n * - Rejects when the script can't load, or its `define()` throws. NEVER throws.\n */\n static reload(source: string, swap: PackSwap): Promise<PackSwapResult> {\n let url: URL\n try {\n url = new URL(source, document.baseURI)\n } catch (error) {\n return Promise.reject(ComponentPacks.asError(error))\n }\n const name = ComponentPacks.nameFor(url.href)\n if (!ComponentPacks.packs.has(name)) return Promise.resolve(\"none\")\n return new Promise((resolve, reject) => {\n const script = document.createElement(\"script\")\n ComponentPacks.reloading.set(name, { swap, resolve, reject })\n script.onerror = () => {\n if (ComponentPacks.reloading.delete(name)) reject(new Error(`ComponentPacks.reload(): can't load ${url.href}`))\n }\n script.onload = () => {\n if (ComponentPacks.reloading.delete(name))\n reject(new Error(`ComponentPacks.reload(): ${url.href} registered no pack`))\n script.remove()\n }\n // a new URL, so the browser fetches the rebuilt file, not its cached copy\n url.searchParams.set(RELOAD_PARAM, String(Date.now()))\n script.src = url.href\n document.head.append(script)\n })\n }\n\n ////////////////\n // ## What a root asks\n ////////////////\n\n /** The catalog entry of `tag`, from the registered packs; `undefined` for a tag no pack lists. */\n static entryOf(tag: string): RootCatalogEntry | undefined {\n return ComponentPacks.catalog.get(tag)\n }\n\n /**\n * While `tag`'s pack is still defining its tags (an async `define()`): resolves once it's done; else `undefined`.\n * - So a root that finds one of them undefined in that time waits for it, rather than calling it failed.\n */\n static whileDefining(tag: string): Promise<void> | undefined {\n if (!ComponentPacks.catalog.has(tag)) return undefined\n for (const [name, defining] of ComponentPacks.defining) {\n const prefix = ComponentPacks.packs.get(name)?.prefix\n if (prefix && tag.startsWith(prefix)) return defining.then(() => undefined)\n }\n return undefined\n }\n\n /** Does `tag` have a registered pack's prefix? Then a root loads (or reports) it, as it does `ui-*` tags. */\n static owns(tag: string): boolean {\n for (const prefix of ComponentPacks.prefixes) if (tag.startsWith(prefix)) return true\n return false\n }\n\n /**\n * The URL a registered pack's script was loaded from, when changed file `path` (a served path, as the page server\n * reports it: `/_epic/pack/epics.pack.js`) is that script; else `undefined`.\n * - matched by the pack name its file implies (`nameFor()`): a worktree's page names its files by another path\n */\n static sourceOf(path: string): string | undefined {\n const file = path.split(\"/\").pop() ?? \"\"\n if (!PACK_FILE_SUFFIX.test(file)) return undefined\n const name = file.replace(PACK_FILE_SUFFIX, \"\")\n if (!ComponentPacks.packs.has(name)) return undefined\n const scripts = Array.from(document.querySelectorAll<HTMLScriptElement>(\"script[src]\"), (script) => script.src)\n return [...ComponentPacks.loads.keys(), ...scripts].find((url) => ComponentPacks.nameFor(url) === name)\n }\n\n /** The pack name a script URL implies: `.../epics/components/__pack/epics.pack.js` => `epics`, `x.js` => `x`. */\n static nameFor(url: string): string {\n const file = new URL(url).pathname.split(\"/\").pop() ?? \"\"\n return file.replace(PACK_FILE_SUFFIX, \"\")\n }\n\n ////////////////\n // ## Internal\n ////////////////\n\n /**\n * Swap pack `next`, the rebuilt script of `known`, into the page (`reload()`): its `define()` again, keeping the\n * families whose hashes didn't change (`swap.keep()`), then the live elements re-rendered (`swap.finish()`).\n */\n private static swapIn(known: ComponentPack, next: ComponentPack, { swap, resolve, reject }: PackReload) {\n try {\n ComponentPacks.check(next)\n } catch (error) {\n reject(ComponentPacks.asError(error))\n return\n }\n if (Object.keys(next.catalog).some((tag) => !(tag in known.catalog))) {\n resolve(\"reload\")\n return\n }\n const changed = ComponentPacks.changedFamilies(known, next)\n swap.keep((tag) => !!changed && !changed.has(known.catalog[tag]?.folder ?? \"\"))\n const done = () => swap.keep(undefined)\n Promise.resolve()\n .then(() => next.define())\n .then(\n () => {\n done()\n ComponentPacks.packs.set(next.name, next)\n for (const [tag, entry] of Object.entries(next.catalog)) ComponentPacks.catalog.set(tag, entry)\n resolve(swap.finish() ? \"swapped\" : \"reload\")\n },\n (error: unknown) => {\n done()\n reject(ComponentPacks.asError(error))\n }\n )\n }\n\n /**\n * The family folders whose sources differ between `known` and `next` (their `families` hashes);\n * `undefined` (every family) when either was built without them.\n */\n private static changedFamilies(known: ComponentPack, next: ComponentPack): Set<string> | undefined {\n if (!known.families || !next.families) return undefined\n const folders = new Set([...Object.keys(known.families), ...Object.keys(next.families)])\n return new Set([...folders].filter((folder) => known.families![folder] !== next.families![folder]))\n }\n\n /** Add a `<script>` for `url`; resolves when it registers its pack, rejects when it fails to. */\n private static inject(url: string): Promise<ComponentPack> {\n return new Promise((resolve, reject) => {\n const script = document.createElement(\"script\")\n const pending: PendingPack = { script, name: ComponentPacks.nameFor(url), resolve, reject }\n // registering takes the load out of `pending` (the script runs before `load` fires),\n // so these only fail a script that never registered: NOT one whose `define()` is still loading its families\n const fail = (message: string) => {\n if (!ComponentPacks.pending.delete(pending)) return\n reject(new Error(`ComponentPacks.load(): ${message}`))\n }\n script.onload = () => fail(`${url} ran, but registered no pack; it must call SpellUI.registerPack()`)\n script.onerror = () => fail(`can't load ${url}`)\n script.src = url\n ComponentPacks.pending.add(pending)\n document.head.append(script)\n })\n }\n\n /** The load waiting for the script running now, else for a pack named `name`. */\n private static pendingFor(name: string): PendingPack | undefined {\n const running = document.currentScript\n let byName: PendingPack | undefined\n for (const pending of ComponentPacks.pending) {\n if (pending.script === running) return pending\n if (pending.name === name) byName ??= pending\n }\n return byName\n }\n\n /** `error` as an `Error`, to reject a load with. */\n private static asError(error: unknown): Error {\n return error instanceof Error ? error : new Error(String(error))\n }\n\n /** Throw a `TypeError` naming what's wrong with `pack`. */\n private static check(pack: ComponentPack) {\n if (typeof pack?.name !== \"string\" || !pack.name) fail(\"a pack needs a `name`\")\n const { name, prefix, catalog } = pack\n if (typeof prefix !== \"string\" || !PACK_PREFIX.test(prefix) || prefix === UI_PREFIX) {\n fail(`pack \"${name}\": \\`prefix\\` must be lowercase words ending in \"-\" (\\`epic-\\`), never \"${UI_PREFIX}\"`)\n }\n if (typeof pack.define !== \"function\") fail(`pack \"${name}\": \\`define()\\` must define its tags`)\n if (typeof catalog !== \"object\" || catalog === null) fail(`pack \"${name}\": \\`catalog\\` must map its tags`)\n const strays = Object.keys(catalog).filter((tag) => !tag.startsWith(prefix))\n if (strays.length) fail(`pack \"${name}\": every tag starts with \"${prefix}\", not ${strays.join(\", \")}`)\n\n function fail(problem: string): never {\n throw new TypeError(`registerPack(): ${problem}`)\n }\n }\n}\n\n/**\n * Register a component pack: `ComponentPacks.register()`, under the name packs call it by,\n * `SpellUI.registerPack(pack)` (the docs bundle) or `registerPack(pack)` from `spell/ui`.\n */\nexport function registerPack(pack: ComponentPack): void {\n ComponentPacks.register(pack)\n}\n\n/** A pack load waiting for its script to call `registerPack()`. */\ntype PendingPack = {\n /** The `<script>` loading it: `document.currentScript` while it runs. */\n readonly script: HTMLScriptElement\n /** The name its URL implies (`ComponentPacks.nameFor()`): the match when `document.currentScript` is gone. */\n readonly name: string\n /** Resolve the load with the registered pack. */\n readonly resolve: (pack: ComponentPack) => void\n /** Fail the load. */\n readonly reject: (error: Error) => void\n}\n\n/** A reload under way (`reload()`): how to swap the new pack in, and its promise's ends. */\ntype PackReload = {\n readonly swap: PackSwap\n readonly resolve: (result: PackSwapResult) => void\n readonly reject: (error: Error) => void\n}\n\n/** The query `reload()` adds to a pack's URL, so the browser fetches the rebuilt script: `epics.pack.js?swap=...`. */\nconst RELOAD_PARAM = \"swap\"\n\n/** A pack's tag prefix: lowercase words joined by `-`, ending in `-` (`epic-`, `x-`, `my-app-`). */\nconst PACK_PREFIX = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*-$/\n\n/** Spell UI's own prefix, which no pack may take. */\nconst UI_PREFIX = \"ui-\"\n\n/** What a pack's file name ends in, after its name: `epics.pack.js`, else plain `.js`. */\nconst PACK_FILE_SUFFIX = /(?:\\.pack)?\\.js$/\n","/**\n * The types and constants the `ui-components` family's files share:\n * - its component (`UIComponents`) and its vocabulary\n * - `ComponentPacks` (the page's registry of component packs)\n * - `<ui-root>`, which reads `source`\n *\n * - Pure data: `import type` only (a pack's catalog has the shape of `<ui-root>`'s own), so node can load it.\n */\n\nimport type { RootCatalogEntry } from \"spell/ui/components/ui-root/UIRoot.types\"\n\nimport type { componentsVocabulary } from \"./UIComponents.en\"\n\n/** `componentsVocabulary`'s type. */\nexport type ComponentsVocabulary = typeof componentsVocabulary\n\n/** The attribute naming a pack's script: `<ui-components source>`, which `<ui-root>` reads. */\nexport const SOURCE = \"source\"\n\n/**\n * A COMPONENT PACK: another package's custom elements (any tag prefix), loaded on demand by `<ui-root>`.\n * - A pack is a classic script calling `SpellUI.registerPack(pack)` as it runs (`ComponentPacks.register()`);\n * an ES module may call `registerPack()` from `spell/ui` itself.\n * - It shares the page's Solid and Spell UI (`SpellUI.packModules`), never bundling its own copy.\n */\nexport type ComponentPack = {\n /** Its name, unique on the page: `epics` for `epics.pack.js` (how a load finds its pack without `currentScript`). */\n readonly name: string\n /** The prefix of every tag it defines, ending in `-`: `epic-`. Never `ui-` (Spell UI's own). */\n readonly prefix: string\n /** Every tag it defines => what `<ui-root>` needs before it's ready (a skeleton); each tag starts with `prefix`. */\n readonly catalog: Readonly<Record<string, RootCatalogEntry>>\n /**\n * Define every tag of the pack; called once, by `registerPack()`.\n * - It may return a promise, when it loads its families first (`import()`):\n * the pack counts as loaded once that settles, so a `<ui-root>` waits for its tags.\n */\n define(): void | Promise<unknown>\n /**\n * Each family folder => a hash of the sources its script holds (`spell pack build`, epic `epic-engine` I116):\n * when the pack is rebuilt, `ComponentPacks.reload()` swaps in only the families whose hash changed.\n * - None (a pack built before): every family is swapped.\n */\n readonly families?: Readonly<Record<string, string>>\n}\n\n/**\n * How `ComponentPacks.reload()` swaps a rebuilt pack into the live elements: the page's hot replacement\n * (Spell UI's `PackHotSwap`, over the kit's `HotDefinitions`).\n */\nexport type PackSwap = {\n /** While its `define()` runs again: whether a tag KEEPS its live class (`true`: its family didn't change); `undefined` after. */\n keep(keeps: ((tag: string) => boolean) | undefined): void\n /** Re-render the swapped elements; `false` when a change needs a page reload (the platform can't take it in place). */\n finish(): boolean\n}\n\n/** What `ComponentPacks.reload()` did: swapped in place, needs a page reload, or no such pack on the page. */\nexport type PackSwapResult = \"swapped\" | \"reload\" | \"none\"\n","/**\n * Every name `<ui-components>` uses: tag, attributes (kind + allowed values), events, slots, parts, states, texts.\n * Schema: `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - No Fomantic counterpart and nothing to draw: one attribute, `source`, which the `<ui-root>` around it reads.\n * Its load and failures are the root's (`ui-ready`'s `failed`, `ui-error`), so it has no events of its own.\n * - No skeleton: it draws nothing.\n */\n\nimport type { E } from \"spell/ui/core\"\n\nimport { SOURCE } from \"./UIComponents.types\"\n\n/****************\n * ### `<ui-components>`\n * Names a COMPONENT PACK for the `<ui-root>` around it: another package's elements (`<epic-page>` ...), loaded on\n * demand like Spell UI's own. Draws nothing.\n ****************/\nexport const componentsVocabulary = {\n tag: \"ui-components\",\n icon: \"cubes\",\n topics: [\"loading\", \"modules\"],\n aka: [\"component pack\", \"plugin\", \"extension\", \"custom elements\", \"web components\", \"element library\"],\n noun: \"components\",\n description:\n \"Components name a pack of another package's elements, which the root around them loads on demand, once per page.\",\n attributes: [\n {\n name: SOURCE,\n kind: \"string\",\n description:\n \"URL of the pack's script (`epics.pack.js`), relative to the page. The root loads it once per page as a \" +\n \"classic script (so it works from `file://`) and waits for it before showing its content.\"\n }\n ],\n events: [],\n slots: [],\n parts: [],\n states: [],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","/*\n * `<ui-components>`: no Fomantic counterpart, and nothing to draw. It only names a component pack (`source`) for\n * the `<ui-root>` around it, so the DOM element never takes up space.\n */\n\n@layer ui.components.components.types;\n\n@layer ui.components.components.types {\n :host {\n display: none;\n }\n}\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { componentsVocabulary } from \"./UIComponents.en\"\nimport type { ComponentsVocabulary } from \"./UIComponents.types\"\n\nimport componentsCSS from \"./UIComponents.css?inline\"\n\n/****************\n * ### `UIComponents`\n * The component behind `<ui-components>`:\n * it names a component pack for the `<ui-root>` around it, `<ui-components source=\"epics.pack.js\">`.\n * Draws nothing.\n * - The ROOT does the work, reading `source` from the markup (defined or not):\n * it loads each distinct pack once per page (`ComponentPacks.load()`),\n * waits for it before it's ready, and draws skeletons from its catalog.\n * - Outside a root it does nothing: a page without one loads its pack with a plain `<script src>`.\n * - Defined with the root (its barrel imports this family), so it's never one of the tags a root waits for.\n ****************/\nexport class UIComponents extends E.UIComponent<ComponentsVocabulary> {\n @E.proto static vocabulary = componentsVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { components: componentsCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n render(): JSX.Element {\n return undefined\n }\n}\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIComponents extends E.AttributeValues<ComponentsVocabulary> {}\n","/**\n * The component-pack family: defines `<ui-components>` and exports its component, `UIComponents`, with\n * `ComponentPacks` (the page's registry and loader of packs) and `registerPack()` (what a pack's script calls).\n * - SIDE EFFECT: importing it defines `<ui-components>`.\n * - `<ui-root>`'s barrel imports this family, so a page with a root has all three.\n * - Also the library's `spell/ui/ui-components` entry.\n */\n\nimport { UIComponents } from \"./UIComponents\"\n\nUIComponents.define()\n\nexport { UIComponents }\nexport type { ComponentPack } from \"./UIComponents.types\"\nexport { ComponentPacks, registerPack } from \"./ComponentPacks\"\n"],"mappings":";;;AAgBA,IAAaY,IAAb,MAAa,eAAe;CAE1B,OAAwB,wBAAQ,IAAI,IAA2B;CAG/D,OAAwB,0BAAU,IAAI,IAA8B;CAGpE,OAAwB,2BAAW,IAAI,IAAY;CAGnD,OAAwB,QAAQ,IAAIZ,EAAkC;CAGtE,OAAwB,0BAAU,IAAI,IAAiB;CAGvD,OAAwB,4BAAY,IAAI,IAAwB;CAGhE,OAAwB,2BAAW,IAAI,IAA8B;CAcrE,OAAO,SAAS,GAA2B;EACzC,eAAe,MAAMc,CAAI;EACzB,IAAMC,IAAU,eAAe,WAAWD,EAAK,IAAI;EACnD,AAAIC,KAAS,eAAe,QAAQ,OAAOA,CAAO;EAClD,IAAMC,IAAQ,eAAe,MAAM,IAAIF,EAAK,IAAI,GAC1CG,IAAS,eAAe,UAAU,IAAIH,EAAK,IAAI;EACrD,IAAIE,KAASC,GAAQ;GAEnB,AADA,eAAe,UAAU,OAAOH,EAAK,IAAI,GACzC,eAAe,OAAOE,GAAOF,GAAMG,CAAM;GACzC;EACF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C,GAAAC,GAAAC,GAmBaC,IAAN,MAAM,uBAAqB,IAAAtD,GAChC,IAAA,CAACC,CAAE,GACH,IAAA,CAACC,CAAE,GAF6BkD,EAAA,CAAoC;CAOpE,SAAsB,CAEtB;AACF;AAVO,IAAA1C,EAAA0C,CAAA,GACI7C,EAAA8C,GAAA,IAAO,cAAhBF,GADWG,CAAA,GAEI/C,EAAA8C,GAAA,IAAO,gBAAtBH,GAFWI,CAAA,GAAN9C,EAAA6C,GAAMC,CAAA,GAAyDnD,EAAAmD,GAAA,cAAA,GAC3DhD,EADEgD,GACK,cAAa7C,EAApB4C,GAAA,GADEC,GACkBN,CAAA,CAAA,GAApBvC,EAAA4C,GAAA,IADEC,CAAA,GAEIhD,EAFJgD,GAEW,gBAAe7C,EAAtB4C,GAAA,IAFJC,GAE0B;CACnC,aAAa,EAAE,YAAYlD,EAAc;CACzC,gBAAgB;AAClB,CAAA,CAAA,GAHeK,EAAA4C,GAAA,IAFJC,CAAA;AAAN,IAAMI,IAANJ;;;ACTPI,EAAa,OAAO"}
1
+ {"version":3,"file":"ui-components.js","names":["E.LoadOnce","E.UIComponent","E.proto","E.protoMerged","__name","componentsCSS","__decoratorStart","__publicField","__name$1","__decorateElement","__decoratorMetadata","__runInitializers","ComponentPacks","LoadOnce","pack","pending","known","reload","Warnings","defined","error","tag","entry","url","source","name","script","reject","RELOAD_PARAM","defining","prefix","file","path","PACK_FILE_SUFFIX","scripts","next","changed","swap","folders","folder","message","running","byName","PACK_PREFIX","UI_PREFIX","catalog","strays","problem","SOURCE","componentsVocabulary","UIComponents_default","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIComponents","UIComponent","proto","protoMerged","UIComponents"],"sources":["../src/components/ui-components/ComponentPacks.ts","../src/components/ui-components/UIComponents.types.ts","../src/components/ui-components/UIComponents.en.ts","../src/components/ui-components/UIComponents.ts","../src/components/ui-components/index.ts"],"sourcesContent":["import { E } from \"spell/ui/core\"\nimport type { RootCatalogEntry } from \"spell/ui/components/ui-root/UIRoot.types\"\nimport type { ComponentPack, PackSwap, PackSwapResult } from \"./UIComponents.types\"\n\n/****************\n * ### `ComponentPacks`\n * The page's component packs: their catalogs and tag prefixes, and the loads of their scripts, once per page.\n * - Static: one registry per page, shared by every `<ui-root>`, like `RootLoader`'s family loads.\n * - A pack is a CLASSIC script (`<script src>`, so it works from `file://`):\n * `load()` adds one, and the script calls `registerPack()` as it runs.\n * That finds the load by `document.currentScript` (else by the name its file implies),\n * defines the pack's tags and resolves it.\n * - A pack's script REBUILT (a merge): `reload()` runs it again in place, its changed families swapped into the live\n * elements by the page's hot replacement (`PackSwap`, Spell UI's `PackHotSwap`), so the page needn't reload.\n * - Plain DOM, no Solid: `<ui-root>` asks it what a tag is (`entryOf()`, `owns()`), and it knows nothing of roots.\n ****************/\nexport class ComponentPacks {\n /** Name => the registered pack. */\n private static readonly packs = new Map<string, ComponentPack>()\n\n /** Tag => its entry, from every registered pack's catalog. */\n private static readonly catalog = new Map<string, RootCatalogEntry>()\n\n /** Every registered pack's tag prefix. */\n private static readonly prefixes = new Set<string>()\n\n /** Resolved script URL => its load, started once per page; a failure is the answer for good. */\n private static readonly loads = new E.LoadOnce<string, ComponentPack>()\n\n /** Loads whose script hasn't registered its pack yet. */\n private static readonly pending = new Set<PendingPack>()\n\n /** Pack name => its reload under way (`reload()`): its script's `register()` swaps it in instead of being ignored. */\n private static readonly reloading = new Map<string, PackReload>()\n\n /** Pack name => its `define()` while it still runs (it loads its families first): its tags are listed, not yet defined. */\n private static readonly defining = new Map<string, Promise<unknown>>()\n\n ////////////////\n // ## Registering and loading\n ////////////////\n\n /**\n * Register `pack`: define its tags (`pack.define()`), add its catalog and prefix,\n * and resolve the load of the script calling this (if `load()` started it).\n * - A `define()` that returns a promise (it loads its families first) resolves the load once that settles,\n * or fails it; without a load to fail, a console error says why.\n * - A second pack with a registered name is ignored, with a console warning: its tags are defined already.\n * - Throws a `TypeError` on a malformed pack; rethrows what `define()` throws, after failing the load.\n */\n static register(pack: ComponentPack): void {\n ComponentPacks.check(pack)\n const pending = ComponentPacks.pendingFor(pack.name)\n if (pending) ComponentPacks.pending.delete(pending)\n const known = ComponentPacks.packs.get(pack.name)\n const reload = ComponentPacks.reloading.get(pack.name)\n if (known && reload) {\n ComponentPacks.reloading.delete(pack.name)\n ComponentPacks.swapIn(known, pack, reload)\n return\n }\n if (known) {\n E.Warnings.warn(\"registerPack()\", `a pack named \"${pack.name}\" is registered already; this one is ignored`)\n pending?.resolve(known)\n return\n }\n let defined: void | Promise<unknown>\n try {\n defined = pack.define()\n } catch (error) {\n pending?.reject(ComponentPacks.asError(error))\n throw error\n }\n ComponentPacks.packs.set(pack.name, pack)\n ComponentPacks.prefixes.add(pack.prefix)\n for (const [tag, entry] of Object.entries(pack.catalog)) ComponentPacks.catalog.set(tag, entry)\n if (!(defined instanceof Promise)) {\n pending?.resolve(pack)\n return\n }\n ComponentPacks.defining.set(pack.name, defined)\n const settled = () => ComponentPacks.defining.delete(pack.name)\n defined.then(settled, settled)\n defined.then(\n () => pending?.resolve(pack),\n (error: unknown) => {\n if (pending) pending.reject(ComponentPacks.asError(error))\n else console.error(`registerPack(): pack \"${pack.name}\" couldn't define its tags:`, error)\n }\n )\n }\n\n /**\n * Load the pack at `source` (relative to the page) as a classic script, ONCE per page;\n * resolves with the pack once its script registered it.\n * - A pack already registered under the name its file implies (a page's own `<script src>`, an ES import)\n * resolves at once, with no second script.\n * - Rejects when the script can't load, ran without registering a pack, or its `define()` failed. NEVER throws.\n */\n static load(source: string): Promise<ComponentPack> {\n let url: string\n try {\n url = new URL(source, document.baseURI).href\n } catch (error) {\n return Promise.reject(error instanceof Error ? error : new Error(String(error)))\n }\n return ComponentPacks.loads.get(url, () => {\n const known = ComponentPacks.packs.get(ComponentPacks.nameFor(url))\n return known ? Promise.resolve(known) : ComponentPacks.inject(url)\n })\n }\n\n /**\n * Run the REBUILT script of a registered pack, at `source`, in place: its `define()` runs again, and `swap` swaps\n * the families whose sources changed into the live elements; the others keep their classes.\n * - Resolves `\"swapped\"`; `\"reload\"` when only a page reload can show it:\n * - a tag the old pack didn't have (`<ui-root>` defines its catalog's tags before their families load)\n * - a change the platform can't take in place (`swap.finish()`: observed attributes ...)\n * - Resolves `\"none\"` for a pack that isn't on the page: nothing to swap.\n * - Which families changed: the pack's `families` hashes, old against new; a pack built without them: all of them.\n * - Rejects when the script can't load, or its `define()` throws. NEVER throws.\n */\n static reload(source: string, swap: PackSwap): Promise<PackSwapResult> {\n let url: URL\n try {\n url = new URL(source, document.baseURI)\n } catch (error) {\n return Promise.reject(ComponentPacks.asError(error))\n }\n const name = ComponentPacks.nameFor(url.href)\n if (!ComponentPacks.packs.has(name)) return Promise.resolve(\"none\")\n return new Promise((resolve, reject) => {\n const script = document.createElement(\"script\")\n ComponentPacks.reloading.set(name, { swap, resolve, reject })\n script.onerror = () => {\n if (ComponentPacks.reloading.delete(name)) reject(new Error(`ComponentPacks.reload(): can't load ${url.href}`))\n }\n script.onload = () => {\n if (ComponentPacks.reloading.delete(name))\n reject(new Error(`ComponentPacks.reload(): ${url.href} registered no pack`))\n script.remove()\n }\n // a new URL, so the browser fetches the rebuilt file, not its cached copy\n url.searchParams.set(RELOAD_PARAM, String(Date.now()))\n script.src = url.href\n document.head.append(script)\n })\n }\n\n ////////////////\n // ## What a root asks\n ////////////////\n\n /** The catalog entry of `tag`, from the registered packs; `undefined` for a tag no pack lists. */\n static entryOf(tag: string): RootCatalogEntry | undefined {\n return ComponentPacks.catalog.get(tag)\n }\n\n /**\n * While `tag`'s pack is still defining its tags (an async `define()`): resolves once it's done; else `undefined`.\n * - So a root that finds one of them undefined in that time waits for it, rather than calling it failed.\n */\n static whileDefining(tag: string): Promise<void> | undefined {\n if (!ComponentPacks.catalog.has(tag)) return undefined\n for (const [name, defining] of ComponentPacks.defining) {\n const prefix = ComponentPacks.packs.get(name)?.prefix\n if (prefix && tag.startsWith(prefix)) return defining.then(() => undefined)\n }\n return undefined\n }\n\n /** Does `tag` have a registered pack's prefix? Then a root loads (or reports) it, as it does `ui-*` tags. */\n static owns(tag: string): boolean {\n for (const prefix of ComponentPacks.prefixes) if (tag.startsWith(prefix)) return true\n return false\n }\n\n /**\n * The URL a registered pack's script was loaded from, when changed file `path` (a served path, as the page server\n * reports it: `/_epic/pack/epics.pack.js`) is that script; else `undefined`.\n * - matched by the pack name its file implies (`nameFor()`): a worktree's page names its files by another path\n */\n static sourceOf(path: string): string | undefined {\n const file = path.split(\"/\").pop() ?? \"\"\n if (!PACK_FILE_SUFFIX.test(file)) return undefined\n const name = file.replace(PACK_FILE_SUFFIX, \"\")\n if (!ComponentPacks.packs.has(name)) return undefined\n const scripts = Array.from(document.querySelectorAll<HTMLScriptElement>(\"script[src]\"), (script) => script.src)\n return [...ComponentPacks.loads.keys(), ...scripts].find((url) => ComponentPacks.nameFor(url) === name)\n }\n\n /** The pack name a script URL implies: `.../epics/components/__pack/epics.pack.js` => `epics`, `x.js` => `x`. */\n static nameFor(url: string): string {\n const file = new URL(url).pathname.split(\"/\").pop() ?? \"\"\n return file.replace(PACK_FILE_SUFFIX, \"\")\n }\n\n ////////////////\n // ## Internal\n ////////////////\n\n /**\n * Swap pack `next`, the rebuilt script of `known`, into the page (`reload()`): its `define()` again, keeping the\n * families whose hashes didn't change (`swap.keep()`), then the live elements re-rendered (`swap.finish()`).\n */\n private static swapIn(known: ComponentPack, next: ComponentPack, { swap, resolve, reject }: PackReload) {\n try {\n ComponentPacks.check(next)\n } catch (error) {\n reject(ComponentPacks.asError(error))\n return\n }\n if (Object.keys(next.catalog).some((tag) => !(tag in known.catalog))) {\n resolve(\"reload\")\n return\n }\n const changed = ComponentPacks.changedFamilies(known, next)\n swap.keep((tag) => !!changed && !changed.has(known.catalog[tag]?.folder ?? \"\"))\n const done = () => swap.keep(undefined)\n Promise.resolve()\n .then(() => next.define())\n .then(\n () => {\n done()\n ComponentPacks.packs.set(next.name, next)\n for (const [tag, entry] of Object.entries(next.catalog)) ComponentPacks.catalog.set(tag, entry)\n resolve(swap.finish() ? \"swapped\" : \"reload\")\n },\n (error: unknown) => {\n done()\n reject(ComponentPacks.asError(error))\n }\n )\n }\n\n /**\n * The family folders whose sources differ between `known` and `next` (their `families` hashes);\n * `undefined` (every family) when either was built without them.\n */\n private static changedFamilies(known: ComponentPack, next: ComponentPack): Set<string> | undefined {\n if (!known.families || !next.families) return undefined\n const folders = new Set([...Object.keys(known.families), ...Object.keys(next.families)])\n return new Set([...folders].filter((folder) => known.families![folder] !== next.families![folder]))\n }\n\n /** Add a `<script>` for `url`; resolves when it registers its pack, rejects when it fails to. */\n private static inject(url: string): Promise<ComponentPack> {\n return new Promise((resolve, reject) => {\n const script = document.createElement(\"script\")\n const pending: PendingPack = { script, name: ComponentPacks.nameFor(url), resolve, reject }\n // registering takes the load out of `pending` (the script runs before `load` fires),\n // so these only fail a script that never registered: NOT one whose `define()` is still loading its families\n const fail = (message: string) => {\n if (!ComponentPacks.pending.delete(pending)) return\n reject(new Error(`ComponentPacks.load(): ${message}`))\n }\n script.onload = () => fail(`${url} ran, but registered no pack; it must call SpellUI.registerPack()`)\n script.onerror = () => fail(`can't load ${url}`)\n script.src = url\n ComponentPacks.pending.add(pending)\n document.head.append(script)\n })\n }\n\n /** The load waiting for the script running now, else for a pack named `name`. */\n private static pendingFor(name: string): PendingPack | undefined {\n const running = document.currentScript\n let byName: PendingPack | undefined\n for (const pending of ComponentPacks.pending) {\n if (pending.script === running) return pending\n if (pending.name === name) byName ??= pending\n }\n return byName\n }\n\n /** `error` as an `Error`, to reject a load with. */\n private static asError(error: unknown): Error {\n return error instanceof Error ? error : new Error(String(error))\n }\n\n /** Throw a `TypeError` naming what's wrong with `pack`. */\n private static check(pack: ComponentPack) {\n if (typeof pack?.name !== \"string\" || !pack.name) fail(\"a pack needs a `name`\")\n const { name, prefix, catalog } = pack\n if (typeof prefix !== \"string\" || !PACK_PREFIX.test(prefix) || prefix === UI_PREFIX) {\n fail(`pack \"${name}\": \\`prefix\\` must be lowercase words ending in \"-\" (\\`epic-\\`), never \"${UI_PREFIX}\"`)\n }\n if (typeof pack.define !== \"function\") fail(`pack \"${name}\": \\`define()\\` must define its tags`)\n if (typeof catalog !== \"object\" || catalog === null) fail(`pack \"${name}\": \\`catalog\\` must map its tags`)\n const strays = Object.keys(catalog).filter((tag) => !tag.startsWith(prefix))\n if (strays.length) fail(`pack \"${name}\": every tag starts with \"${prefix}\", not ${strays.join(\", \")}`)\n\n function fail(problem: string): never {\n throw new TypeError(`registerPack(): ${problem}`)\n }\n }\n}\n\n/**\n * Register a component pack: `ComponentPacks.register()`, under the name packs call it by,\n * `SpellUI.registerPack(pack)` (the docs bundle) or `registerPack(pack)` from `spell/ui`.\n */\nexport function registerPack(pack: ComponentPack): void {\n ComponentPacks.register(pack)\n}\n\n/** A pack load waiting for its script to call `registerPack()`. */\ntype PendingPack = {\n /** The `<script>` loading it: `document.currentScript` while it runs. */\n readonly script: HTMLScriptElement\n /** The name its URL implies (`ComponentPacks.nameFor()`): the match when `document.currentScript` is gone. */\n readonly name: string\n /** Resolve the load with the registered pack. */\n readonly resolve: (pack: ComponentPack) => void\n /** Fail the load. */\n readonly reject: (error: Error) => void\n}\n\n/** A reload under way (`reload()`): how to swap the new pack in, and its promise's ends. */\ntype PackReload = {\n readonly swap: PackSwap\n readonly resolve: (result: PackSwapResult) => void\n readonly reject: (error: Error) => void\n}\n\n/** The query `reload()` adds to a pack's URL, so the browser fetches the rebuilt script: `epics.pack.js?swap=...`. */\nconst RELOAD_PARAM = \"swap\"\n\n/** A pack's tag prefix: lowercase words joined by `-`, ending in `-` (`epic-`, `x-`, `my-app-`). */\nconst PACK_PREFIX = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*-$/\n\n/** Spell UI's own prefix, which no pack may take. */\nconst UI_PREFIX = \"ui-\"\n\n/** What a pack's file name ends in, after its name: `epics.pack.js`, else plain `.js`. */\nconst PACK_FILE_SUFFIX = /(?:\\.pack)?\\.js$/\n","/**\n * The types and constants the `ui-components` family's files share:\n * - its component (`UIComponents`) and its vocabulary\n * - `ComponentPacks` (the page's registry of component packs)\n * - `<ui-root>`, which reads `source`\n *\n * - Pure data: `import type` only (a pack's catalog has the shape of `<ui-root>`'s own), so node can load it.\n */\n\nimport type { RootCatalogEntry } from \"spell/ui/components/ui-root/UIRoot.types\"\n\nimport type { componentsVocabulary } from \"./UIComponents.en\"\n\n/** `componentsVocabulary`'s type. */\nexport type ComponentsVocabulary = typeof componentsVocabulary\n\n/** The attribute naming a pack's script: `<ui-components source>`, which `<ui-root>` reads. */\nexport const SOURCE = \"source\"\n\n/**\n * A COMPONENT PACK: another package's custom elements (any tag prefix), loaded on demand by `<ui-root>`.\n * - A pack is a classic script calling `SpellUI.registerPack(pack)` as it runs (`ComponentPacks.register()`);\n * an ES module may call `registerPack()` from `spell/ui` itself.\n * - It shares the page's Solid and Spell UI (`SpellUI.packModules`), never bundling its own copy.\n */\nexport type ComponentPack = {\n /** Its name, unique on the page: `epics` for `epics.pack.js` (how a load finds its pack without `currentScript`). */\n readonly name: string\n /** The prefix of every tag it defines, ending in `-`: `epic-`. Never `ui-` (Spell UI's own). */\n readonly prefix: string\n /** Every tag it defines => what `<ui-root>` needs before it's ready (a skeleton); each tag starts with `prefix`. */\n readonly catalog: Readonly<Record<string, RootCatalogEntry>>\n /**\n * Define every tag of the pack; called once, by `registerPack()`.\n * - It may return a promise, when it loads its families first (`import()`):\n * the pack counts as loaded once that settles, so a `<ui-root>` waits for its tags.\n */\n define(): void | Promise<unknown>\n /**\n * Each family folder => a hash of the sources its script holds (`spell pack build`, epic `epic-engine` I116):\n * when the pack is rebuilt, `ComponentPacks.reload()` swaps in only the families whose hash changed.\n * - None (a pack built before): every family is swapped.\n */\n readonly families?: Readonly<Record<string, string>>\n}\n\n/**\n * How `ComponentPacks.reload()` swaps a rebuilt pack into the live elements: the page's hot replacement\n * (Spell UI's `PackHotSwap`, over the kit's `HotDefinitions`).\n */\nexport type PackSwap = {\n /** While its `define()` runs again: whether a tag KEEPS its live class (`true`: its family didn't change); `undefined` after. */\n keep(keeps: ((tag: string) => boolean) | undefined): void\n /** Re-render the swapped elements; `false` when a change needs a page reload (the platform can't take it in place). */\n finish(): boolean\n}\n\n/** What `ComponentPacks.reload()` did: swapped in place, needs a page reload, or no such pack on the page. */\nexport type PackSwapResult = \"swapped\" | \"reload\" | \"none\"\n","/**\n * Every name `<ui-components>` uses: tag, attributes (kind + allowed values), events, slots, parts, states, texts.\n * Schema: `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - No Fomantic counterpart and nothing to draw: one attribute, `source`, which the `<ui-root>` around it reads.\n * Its load and failures are the root's (`ui-ready`'s `failed`, `ui-error`), so it has no events of its own.\n * - No skeleton: it draws nothing.\n */\n\nimport type { E } from \"spell/ui/core\"\n\nimport { SOURCE } from \"./UIComponents.types\"\n\n/****************\n * ### `<ui-components>`\n * Names a COMPONENT PACK for the `<ui-root>` around it: another package's elements (`<epic-page>` ...), loaded on\n * demand like Spell UI's own. Draws nothing.\n ****************/\nexport const componentsVocabulary = {\n tag: \"ui-components\",\n icon: \"cubes\",\n topics: [\"loading\", \"modules\"],\n aka: [\"component pack\", \"plugin\", \"extension\", \"custom elements\", \"web components\", \"element library\"],\n noun: \"components\",\n partOfSpeech: \"plain\",\n description:\n \"Components name a pack of another package's elements, which the root around them loads on demand, once per page.\",\n attributes: [\n {\n name: SOURCE,\n kind: \"string\",\n description:\n \"URL of the pack's script (`epics.pack.js`), relative to the page. The root loads it once per page as a \" +\n \"classic script (so it works from `file://`) and waits for it before showing its content.\"\n }\n ],\n events: [],\n slots: [],\n parts: [],\n states: [],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { componentsVocabulary } from \"./UIComponents.en\"\nimport type { ComponentsVocabulary } from \"./UIComponents.types\"\n\nimport componentsCSS from \"./UIComponents.css?inline\"\n\n/****************\n * ### `UIComponents`\n * The component behind `<ui-components>`:\n * it names a component pack for the `<ui-root>` around it, `<ui-components source=\"epics.pack.js\">`.\n * Draws nothing.\n * - The ROOT does the work, reading `source` from the markup (defined or not):\n * it loads each distinct pack once per page (`ComponentPacks.load()`),\n * waits for it before it's ready, and draws skeletons from its catalog.\n * - Outside a root it does nothing: a page without one loads its pack with a plain `<script src>`.\n * - Defined with the root (its barrel imports this family), so it's never one of the tags a root waits for.\n ****************/\nexport class UIComponents extends E.UIComponent<ComponentsVocabulary> {\n @E.proto static vocabulary = componentsVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { components: componentsCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n render(): JSX.Element {\n return undefined\n }\n}\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIComponents extends E.AttributeValues<ComponentsVocabulary> {}\n","/**\n * The component-pack family: defines `<ui-components>` and exports its component, `UIComponents`, with\n * `ComponentPacks` (the page's registry and loader of packs) and `registerPack()` (what a pack's script calls).\n * - SIDE EFFECT: importing it defines `<ui-components>`.\n * - `<ui-root>`'s barrel imports this family, so a page with a root has all three.\n * - Also the library's `spell/ui/ui-components` entry.\n */\n\nimport { UIComponents } from \"./UIComponents\"\n\nUIComponents.define()\n\nexport { UIComponents }\nexport type { ComponentPack } from \"./UIComponents.types\"\nexport { ComponentPacks, registerPack } from \"./ComponentPacks\"\n"],"mappings":";;;AAgBA,IAAaY,IAAb,MAAa,eAAe;CAE1B,OAAwB,wBAAQ,IAAI,IAA2B;CAG/D,OAAwB,0BAAU,IAAI,IAA8B;CAGpE,OAAwB,2BAAW,IAAI,IAAY;CAGnD,OAAwB,QAAQ,IAAIZ,EAAkC;CAGtE,OAAwB,0BAAU,IAAI,IAAiB;CAGvD,OAAwB,4BAAY,IAAI,IAAwB;CAGhE,OAAwB,2BAAW,IAAI,IAA8B;CAcrE,OAAO,SAAS,GAA2B;EACzC,eAAe,MAAMc,CAAI;EACzB,IAAMC,IAAU,eAAe,WAAWD,EAAK,IAAI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SAAS;CAC7B,KAAK;EAAC;EAAkB;EAAU;EAAa;EAAmB;EAAkB;CAAiB;CACrG,MAAM;CACN,cAAc;CACd,aACE;CACF,YAAY,CACV;EACE,MAAMD;EACN,MAAM;EACN,aACE;CAEJ,CACF;CACA,QAAQ,CAAC;CACT,OAAO,CAAC;CACR,OAAO,CAAC;CACR,QAAQ,CAAC;CACT,OAAO,CAAC;AACV,G,kECxCAG,GAAAC,GAAAC,GAAAC,GAmBaC,IAAN,MAAM,uBAAqB,IAAAtD,GAChC,IAAA,CAACC,CAAE,GACH,IAAA,CAACC,CAAE,GAF6BkD,EAAA,CAAoC;CAOpE,SAAsB,CAEtB;AACF;AAVO,IAAA/C,EAAA+C,CAAA,GACI5C,EAAA6C,GAAA,IAAO,cAAhBF,GADWG,CAAA,GAEI9C,EAAA6C,GAAA,IAAO,gBAAtBH,GAFWI,CAAA,GAAN7C,EAAA4C,GAAMC,CAAA,GAAyDnD,EAAAmD,GAAA,cAAA,GAC3DhD,EADEgD,GACK,cAAa5C,EAApB2C,GAAA,GADEC,GACkBN,CAAA,CAAA,GAApBtC,EAAA2C,GAAA,IADEC,CAAA,GAEIhD,EAFJgD,GAEW,gBAAe5C,EAAtB2C,GAAA,IAFJC,GAE0B;CACnC,aAAa,EAAE,YAAYlD,EAAc;CACzC,gBAAgB;AAClB,CAAA,CAAA,GAHeM,EAAA2C,GAAA,IAFJC,CAAA;AAAN,IAAMI,IAANJ;;ACTPI,EAAa,OAAO"}
@@ -0,0 +1,5 @@
1
+ // src/components/ui-container/ui-container.editor.html?raw
2
+ var e = "<!-- <ui-container>'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-container\" data-omit=\"\">\n <ui-property-group label=\"Name\" data-group=\"name\">\n <ui-property name=\"text\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"size\"></ui-property>\n <ui-property name=\"inverted\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Layout\" data-group=\"layout\">\n <ui-property name=\"fluid\"></ui-property>\n <ui-property name=\"wide\"></ui-property>\n <ui-property name=\"width\"></ui-property>\n <ui-property name=\"padding\"></ui-property>\n <ui-property name=\"columns\"></ui-property>\n <ui-property name=\"grid\"></ui-property>\n <ui-property name=\"spacing\"></ui-property>\n <ui-property name=\"align\"></ui-property>\n <ui-property name=\"scrolling\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Behaviour\" data-group=\"behaviour\">\n <ui-property name=\"resizable\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
3
+ export { e as default };
4
+
5
+ //# sourceMappingURL=ui-container.editor-CBNhNkRm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-container.editor-CBNhNkRm.js","names":["ui_container_editor_default"],"sources":[],"mappings":""}