spell-ui 0.8.9 → 0.8.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1168) hide show
  1. package/README-components.md +9 -3
  2. package/README-frameworks.md +5 -5
  3. package/README-migrating.md +2 -2
  4. package/README.md +5 -5
  5. package/dist/{CodeEngine-GL9EzwF1.js → CodeEngine-B684vKxR.js} +39 -100
  6. package/dist/{CodeEngine-GL9EzwF1.js.map → CodeEngine-B684vKxR.js.map} +1 -1
  7. package/dist/{Dragging-CMZoLEWQ.js → Dragging-B93hbRxF.js} +17 -15
  8. package/dist/Dragging-B93hbRxF.js.map +1 -0
  9. package/dist/{MarkdownEngine-CW1WGqNp.js → MarkdownEngine-D1jqcFeU.js} +11 -72
  10. package/dist/{MarkdownEngine-CW1WGqNp.js.map → MarkdownEngine-D1jqcFeU.js.map} +1 -1
  11. package/dist/MarkdownSanitizer-CqsWivYJ.js +866 -0
  12. package/dist/MarkdownSanitizer-CqsWivYJ.js.map +1 -0
  13. package/dist/{PrefStore-Qv0e5y04.js → PrefStore-Di83C0bY.js} +13 -9
  14. package/dist/PrefStore-Di83C0bY.js.map +1 -0
  15. package/dist/ScrollingRow-DkOtx2QK.js +89 -0
  16. package/dist/ScrollingRow-DkOtx2QK.js.map +1 -0
  17. package/dist/{SitePages-CciwREek.js → SitePages-B3zd5Zgu.js} +37 -10
  18. package/dist/SitePages-B3zd5Zgu.js.map +1 -0
  19. package/dist/SlottedItems-DWfAZYqM.js +88 -0
  20. package/dist/SlottedItems-DWfAZYqM.js.map +1 -0
  21. package/dist/{TemporalPolyfill-D9mr7_wA.js → TemporalPolyfill-Bv_c_xa0.js} +7 -12
  22. package/dist/{TemporalPolyfill-D9mr7_wA.js.map → TemporalPolyfill-Bv_c_xa0.js.map} +1 -1
  23. package/dist/{ThemeDraft-B7NPif4d.js → ThemeDraft-CyX3YA_L.js} +41 -43
  24. package/dist/{ThemeDraft-B7NPif4d.js.map → ThemeDraft-CyX3YA_L.js.map} +1 -1
  25. package/dist/{TreeMeasure-BVJeGb1L.js → TreeMeasure-BK74uexu.js} +3 -4
  26. package/dist/{TreeMeasure-BVJeGb1L.js.map → TreeMeasure-BK74uexu.js.map} +1 -1
  27. package/dist/UIButton-BmIiXYDC.js +5 -0
  28. package/dist/UIButton-BmIiXYDC.js.map +1 -0
  29. package/dist/UIGrid-2ZUA1YEc.js +200 -0
  30. package/dist/UIGrid-2ZUA1YEc.js.map +1 -0
  31. package/dist/{UIInput-BodVbUoQ.js → UIInput-B3K0w4ow.js} +2 -3
  32. package/dist/UIInput-B3K0w4ow.js.map +1 -0
  33. package/dist/{UIKeys-Rh_gUZjP.js → UIKeys-DmXvyJuU.js} +12 -12
  34. package/dist/UIKeys-DmXvyJuU.js.map +1 -0
  35. package/dist/{UILabel-DgJUBzB_.js → UILabel-pCjKxQlQ.js} +2 -3
  36. package/dist/UILabel-pCjKxQlQ.js.map +1 -0
  37. package/dist/UIMenu-CqURPocK.js +42 -0
  38. package/dist/UIMenu-CqURPocK.js.map +1 -0
  39. package/dist/{UIRuntime-KH309p5B.js → UIRuntime-BXutHphM.js} +253 -239
  40. package/dist/UIRuntime-BXutHphM.js.map +1 -0
  41. package/dist/{UISegment-CMMIW7cZ.js → UISegment-BF4Tgy2D.js} +2 -3
  42. package/dist/UISegment-BF4Tgy2D.js.map +1 -0
  43. package/dist/_spell-element/UIComponent.d.ts +8 -0
  44. package/dist/_spell-element/vocabulary.types.d.ts +20 -2
  45. package/dist/_util/Dragging.d.ts +14 -2
  46. package/dist/_util/dom.d.ts +12 -8
  47. package/dist/_util/measures/Dimension.d.ts +1 -1
  48. package/dist/_util/persist/PrefStore.d.ts +7 -2
  49. package/dist/_util/persist/persist.types.d.ts +6 -0
  50. package/dist/_util/platform.d.ts +54 -0
  51. package/dist/_util/string.d.ts +32 -0
  52. package/dist/api.js +2 -3
  53. package/dist/api.js.map +1 -1
  54. package/dist/{apple.palette-B4ivrNlM.js → apple.palette-YLjENwUt.js} +2 -3
  55. package/dist/apple.palette-YLjENwUt.js.map +1 -0
  56. package/dist/{classic-DCTQrteU.js → classic-BHyJFvQa.js} +2 -3
  57. package/dist/classic-BHyJFvQa.js.map +1 -0
  58. package/dist/components/ComponentDefinitions.d.ts +55 -8
  59. package/dist/components/components.es.d.ts +2 -1
  60. package/dist/components/components.planned.d.ts +1 -1
  61. package/dist/components/components.types.d.ts +22 -0
  62. package/dist/components/ui-accordion/UIAccordion.d.ts +1 -0
  63. package/dist/components/ui-accordion/UIAccordion.en.d.ts +1 -0
  64. package/dist/components/ui-action/UIAction.d.ts +38 -1
  65. package/dist/components/ui-action/UIAction.en.d.ts +17 -8
  66. package/dist/components/ui-action/UIAction.es.d.ts +1 -0
  67. package/dist/components/ui-ad/UIAd.d.ts +1 -0
  68. package/dist/components/ui-ad/UIAd.en.d.ts +1 -0
  69. package/dist/components/ui-app-menu/UIAppMenu.d.ts +41 -0
  70. package/dist/components/ui-app-menu/UIAppMenu.en.d.ts +294 -0
  71. package/dist/components/ui-app-menu/UIAppMenu.es.d.ts +35 -0
  72. package/dist/components/ui-app-menu/index.d.ts +2 -0
  73. package/dist/components/ui-breadcrumbs/UIBreadcrumb.d.ts +1 -0
  74. package/dist/components/ui-breadcrumbs/UIBreadcrumb.en.d.ts +1 -0
  75. package/dist/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +1 -0
  76. package/dist/components/ui-breadcrumbs/UIBreadcrumbs.en.d.ts +1 -0
  77. package/dist/components/ui-button/UIButton.d.ts +5 -4
  78. package/dist/components/ui-button/UIButton.en.d.ts +4 -3
  79. package/dist/components/ui-button/UIButton.fallback.d.ts +4 -3
  80. package/dist/components/ui-button/UIButton.types.d.ts +1 -1
  81. package/dist/components/ui-button/UIButtons.d.ts +7 -5
  82. package/dist/components/ui-button/UIButtons.en.d.ts +5 -3
  83. package/dist/components/ui-button/UIButtons.es.d.ts +1 -0
  84. package/dist/components/ui-button/UIOr.d.ts +1 -0
  85. package/dist/components/ui-button/UIOr.en.d.ts +1 -0
  86. package/dist/components/ui-calendar/UICalendar.d.ts +1 -0
  87. package/dist/components/ui-calendar/UICalendar.en.d.ts +1 -0
  88. package/dist/components/ui-calendar/UICalendar.fallback.d.ts +1 -0
  89. package/dist/components/ui-card/UICard.d.ts +1 -0
  90. package/dist/components/ui-card/UICard.en.d.ts +1 -0
  91. package/dist/components/ui-card/UICards.d.ts +1 -0
  92. package/dist/components/ui-card/UICards.en.d.ts +1 -0
  93. package/dist/components/ui-checkbox/UICheckbox.d.ts +1 -0
  94. package/dist/components/ui-checkbox/UICheckbox.en.d.ts +1 -0
  95. package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +1 -0
  96. package/dist/components/ui-checkbox/UIRadio.d.ts +1 -0
  97. package/dist/components/ui-checkbox/UIRadio.en.d.ts +1 -0
  98. package/dist/components/ui-code/CodeHighlighter.d.ts +7 -3
  99. package/dist/components/ui-code/UICode.d.ts +12 -1
  100. package/dist/components/ui-code/UICode.en.d.ts +1 -0
  101. package/dist/components/ui-code/UICode.types.d.ts +9 -0
  102. package/dist/components/ui-comment/UIComment.d.ts +1 -0
  103. package/dist/components/ui-comment/UIComment.en.d.ts +1 -0
  104. package/dist/components/ui-comment/UIComments.d.ts +1 -0
  105. package/dist/components/ui-comment/UIComments.en.d.ts +1 -0
  106. package/dist/components/ui-components/UIComponents.d.ts +1 -0
  107. package/dist/components/ui-components/UIComponents.en.d.ts +1 -0
  108. package/dist/components/ui-container/UIContainer.d.ts +54 -1
  109. package/dist/components/ui-container/UIContainer.en.d.ts +40 -1
  110. package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
  111. package/dist/components/ui-device/UIDevice.d.ts +234 -0
  112. package/dist/components/ui-device/UIDevice.en.d.ts +126 -0
  113. package/dist/components/ui-device/UIDevice.es.d.ts +52 -0
  114. package/dist/components/ui-device/index.d.ts +1 -0
  115. package/dist/components/ui-diagram/UIDiagram.d.ts +1 -0
  116. package/dist/components/ui-diagram/UIDiagram.en.d.ts +1 -0
  117. package/dist/components/ui-diagram/UIDiagramNode.d.ts +1 -0
  118. package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +1 -0
  119. package/dist/components/ui-dimension/UIDimension.d.ts +1 -0
  120. package/dist/components/ui-dimension/UIDimension.en.d.ts +1 -0
  121. package/dist/components/ui-dimmer/UIDimmer.d.ts +1 -0
  122. package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
  123. package/dist/components/ui-divider/UIDivider.d.ts +1 -0
  124. package/dist/components/ui-divider/UIDivider.en.d.ts +1 -0
  125. package/dist/components/ui-dropdown/SlottedItems.d.ts +9 -1
  126. package/dist/components/ui-dropdown/UIDropdown.d.ts +1 -0
  127. package/dist/components/ui-dropdown/UIDropdown.en.d.ts +1 -0
  128. package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +1 -0
  129. package/dist/components/ui-embed/UIEmbed.d.ts +1 -0
  130. package/dist/components/ui-embed/UIEmbed.en.d.ts +1 -0
  131. package/dist/components/ui-emoji/UIEmoji.d.ts +1 -0
  132. package/dist/components/ui-emoji/UIEmoji.en.d.ts +1 -0
  133. package/dist/components/ui-example/UIExample.en.d.ts +1 -0
  134. package/dist/components/ui-feed/UIFeed.d.ts +1 -0
  135. package/dist/components/ui-feed/UIFeed.en.d.ts +1 -0
  136. package/dist/components/ui-feed/UIFeedEvent.d.ts +1 -0
  137. package/dist/components/ui-feed/UIFeedEvent.en.d.ts +1 -0
  138. package/dist/components/ui-flag/UIFlag.d.ts +1 -0
  139. package/dist/components/ui-flag/UIFlag.en.d.ts +1 -0
  140. package/dist/components/ui-flyout/UIFlyout.d.ts +1 -0
  141. package/dist/components/ui-flyout/UIFlyout.en.d.ts +1 -0
  142. package/dist/components/ui-form/UIField.d.ts +11 -4
  143. package/dist/components/ui-form/UIField.en.d.ts +3 -2
  144. package/dist/components/ui-form/UIFields.d.ts +1 -0
  145. package/dist/components/ui-form/UIFields.en.d.ts +1 -0
  146. package/dist/components/ui-form/UIForm.d.ts +1 -0
  147. package/dist/components/ui-form/UIForm.en.d.ts +1 -0
  148. package/dist/components/ui-form/UIRepeat.d.ts +1 -0
  149. package/dist/components/ui-form/UIRepeat.en.d.ts +1 -0
  150. package/dist/components/ui-grid/UIColumn.d.ts +4 -3
  151. package/dist/components/ui-grid/UIColumn.en.d.ts +4 -3
  152. package/dist/components/ui-grid/UIGrid.d.ts +1 -0
  153. package/dist/components/ui-grid/UIGrid.en.d.ts +1 -0
  154. package/dist/components/ui-grid/UIRow.d.ts +1 -0
  155. package/dist/components/ui-grid/UIRow.en.d.ts +1 -0
  156. package/dist/components/ui-icon/UIIcon.d.ts +1 -0
  157. package/dist/components/ui-icon/UIIcon.en.d.ts +1 -0
  158. package/dist/components/ui-icon/UIIcons.d.ts +1 -0
  159. package/dist/components/ui-icon/UIIcons.en.d.ts +1 -0
  160. package/dist/components/ui-icon-picker/UIIconPicker.d.ts +5 -1
  161. package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +1 -0
  162. package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +1 -0
  163. package/dist/components/ui-image/UIImage.d.ts +1 -0
  164. package/dist/components/ui-image/UIImage.en.d.ts +1 -0
  165. package/dist/components/ui-image/UIImages.d.ts +1 -0
  166. package/dist/components/ui-image/UIImages.en.d.ts +1 -0
  167. package/dist/components/ui-include/UIInclude.d.ts +1 -0
  168. package/dist/components/ui-include/UIInclude.en.d.ts +1 -0
  169. package/dist/components/ui-input/UIInput.d.ts +1 -0
  170. package/dist/components/ui-input/UIInput.en.d.ts +1 -0
  171. package/dist/components/ui-input/UIInput.fallback.d.ts +1 -0
  172. package/dist/components/ui-input/UITextarea.d.ts +1 -0
  173. package/dist/components/ui-input/UITextarea.en.d.ts +1 -0
  174. package/dist/components/ui-item/UIItem.d.ts +19 -8
  175. package/dist/components/ui-item/UIItem.en.d.ts +2 -1
  176. package/dist/components/ui-items/UIItems.d.ts +1 -0
  177. package/dist/components/ui-items/UIItems.en.d.ts +1 -0
  178. package/dist/components/ui-json/UIJson.d.ts +1 -0
  179. package/dist/components/ui-json/UIJson.en.d.ts +1 -0
  180. package/dist/components/ui-keys/UIKeys.d.ts +1 -0
  181. package/dist/components/ui-keys/UIKeys.en.d.ts +1 -0
  182. package/dist/components/ui-label/UILabel.d.ts +3 -2
  183. package/dist/components/ui-label/UILabel.en.d.ts +3 -2
  184. package/dist/components/ui-label/UILabels.d.ts +1 -0
  185. package/dist/components/ui-label/UILabels.en.d.ts +1 -0
  186. package/dist/components/ui-list/UIList.d.ts +1 -0
  187. package/dist/components/ui-list/UIList.en.d.ts +1 -0
  188. package/dist/components/ui-loader/UILoader.d.ts +1 -0
  189. package/dist/components/ui-loader/UILoader.en.d.ts +1 -0
  190. package/dist/components/ui-markdown/MarkdownBox.d.ts +7 -2
  191. package/dist/components/ui-markdown/MarkdownFormats.d.ts +9 -4
  192. package/dist/components/ui-markdown/UIMarkdown.en.d.ts +5 -0
  193. package/dist/components/ui-markdown/UIMarkdown.es.d.ts +1 -0
  194. package/dist/components/ui-menu/ScrollingRow.d.ts +19 -1
  195. package/dist/components/ui-menu/SegmentedThumb.d.ts +8 -1
  196. package/dist/components/ui-menu/SubMenuAim.d.ts +115 -0
  197. package/dist/components/ui-menu/TitleFit.d.ts +16 -1
  198. package/dist/components/ui-menu/UIMenu.d.ts +112 -9
  199. package/dist/components/ui-menu/UIMenu.en.d.ts +3 -2
  200. package/dist/components/ui-menu/UISubmenu.d.ts +261 -0
  201. package/dist/components/ui-menu/UISubmenu.en.d.ts +102 -0
  202. package/dist/components/ui-menu/UISubmenu.es.d.ts +21 -0
  203. package/dist/components/ui-menu/index.d.ts +3 -1
  204. package/dist/components/ui-message/UIMessage.d.ts +3 -2
  205. package/dist/components/ui-message/UIMessage.en.d.ts +4 -3
  206. package/dist/components/ui-modal/ModalDialogs.d.ts +35 -3
  207. package/dist/components/ui-modal/UIModal.d.ts +6 -0
  208. package/dist/components/ui-modal/UIModal.en.d.ts +6 -0
  209. package/dist/components/ui-nag/UINag.d.ts +1 -0
  210. package/dist/components/ui-nag/UINag.en.d.ts +1 -0
  211. package/dist/components/ui-page/UIPage.d.ts +1 -0
  212. package/dist/components/ui-page/UIPage.en.d.ts +1 -0
  213. package/dist/components/ui-page-layout/UIPageLayout.d.ts +311 -0
  214. package/dist/components/ui-page-layout/UIPageLayout.en.d.ts +99 -0
  215. package/dist/components/ui-page-layout/UIPageLayout.es.d.ts +38 -0
  216. package/dist/components/ui-page-layout/index.d.ts +1 -0
  217. package/dist/components/ui-panel/ScrollShades.d.ts +38 -0
  218. package/dist/components/ui-panel/UIPanel.d.ts +21 -2
  219. package/dist/components/ui-panel/UIPanel.en.d.ts +68 -61
  220. package/dist/components/ui-parts/UIActions.d.ts +1 -0
  221. package/dist/components/ui-parts/UIActions.en.d.ts +1 -0
  222. package/dist/components/ui-parts/UIAuthor.d.ts +1 -0
  223. package/dist/components/ui-parts/UIAuthor.en.d.ts +1 -0
  224. package/dist/components/ui-parts/UIAvatar.d.ts +11 -2
  225. package/dist/components/ui-parts/UIAvatar.en.d.ts +3 -2
  226. package/dist/components/ui-parts/UIContent.d.ts +1 -0
  227. package/dist/components/ui-parts/UIContent.en.d.ts +1 -0
  228. package/dist/components/ui-parts/UIDate.d.ts +1 -0
  229. package/dist/components/ui-parts/UIDate.en.d.ts +1 -0
  230. package/dist/components/ui-parts/UIDescription.d.ts +1 -0
  231. package/dist/components/ui-parts/UIDescription.en.d.ts +1 -0
  232. package/dist/components/ui-parts/UIDetail.d.ts +1 -0
  233. package/dist/components/ui-parts/UIDetail.en.d.ts +1 -0
  234. package/dist/components/ui-parts/UIExtra.d.ts +1 -0
  235. package/dist/components/ui-parts/UIExtra.en.d.ts +1 -0
  236. package/dist/components/ui-parts/UIHeader.d.ts +4 -3
  237. package/dist/components/ui-parts/UIHeader.en.d.ts +4 -3
  238. package/dist/components/ui-parts/UIMeta.d.ts +1 -0
  239. package/dist/components/ui-parts/UIMeta.en.d.ts +1 -0
  240. package/dist/components/ui-parts/UIParts.types.d.ts +18 -5
  241. package/dist/components/ui-parts/UISummary.d.ts +1 -0
  242. package/dist/components/ui-parts/UISummary.en.d.ts +1 -0
  243. package/dist/components/ui-parts/UITitle.d.ts +1 -0
  244. package/dist/components/ui-parts/UITitle.en.d.ts +1 -0
  245. package/dist/components/ui-parts/UIValue.d.ts +1 -0
  246. package/dist/components/ui-parts/UIValue.en.d.ts +1 -0
  247. package/dist/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
  248. package/dist/components/ui-placeholder/UIPlaceholder.en.d.ts +1 -0
  249. package/dist/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
  250. package/dist/components/ui-placeholder/UIPlaceholderHeader.en.d.ts +1 -0
  251. package/dist/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
  252. package/dist/components/ui-placeholder/UIPlaceholderImage.en.d.ts +1 -0
  253. package/dist/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
  254. package/dist/components/ui-placeholder/UIPlaceholderLine.en.d.ts +1 -0
  255. package/dist/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
  256. package/dist/components/ui-placeholder/UIPlaceholderParagraph.en.d.ts +1 -0
  257. package/dist/components/ui-popup/UIPopup.d.ts +21 -3
  258. package/dist/components/ui-popup/UIPopup.en.d.ts +1 -0
  259. package/dist/components/ui-progress/UIProgress.d.ts +3 -2
  260. package/dist/components/ui-progress/UIProgress.en.d.ts +4 -3
  261. package/dist/components/ui-property-editor/UIProperty.d.ts +47 -13
  262. package/dist/components/ui-property-editor/UIProperty.en.d.ts +1 -0
  263. package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +14 -1
  264. package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
  265. package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +7 -1
  266. package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +15 -6
  267. package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +1 -0
  268. package/dist/components/ui-quote/UIQuote.d.ts +1 -0
  269. package/dist/components/ui-quote/UIQuote.en.d.ts +1 -0
  270. package/dist/components/ui-rail/UIRail.d.ts +4 -3
  271. package/dist/components/ui-rail/UIRail.en.d.ts +4 -3
  272. package/dist/components/ui-rating/UIRating.d.ts +1 -0
  273. package/dist/components/ui-rating/UIRating.en.d.ts +1 -0
  274. package/dist/components/ui-rating/UIRating.fallback.d.ts +1 -0
  275. package/dist/components/ui-reveal/UIReveal.d.ts +1 -0
  276. package/dist/components/ui-reveal/UIReveal.en.d.ts +1 -0
  277. package/dist/components/ui-root/UIRoot.en.d.ts +1 -0
  278. package/dist/components/ui-search/UISearch.d.ts +1 -0
  279. package/dist/components/ui-search/UISearch.en.d.ts +1 -0
  280. package/dist/components/ui-search/UISearch.fallback.d.ts +1 -0
  281. package/dist/components/ui-section/UISection.d.ts +3 -2
  282. package/dist/components/ui-section/UISection.en.d.ts +3 -2
  283. package/dist/components/ui-section/UISections.d.ts +1 -0
  284. package/dist/components/ui-section/UISections.en.d.ts +1 -0
  285. package/dist/components/ui-segment/UISegment.d.ts +9 -10
  286. package/dist/components/ui-segment/UISegment.en.d.ts +10 -11
  287. package/dist/components/ui-segment/UISegments.d.ts +1 -0
  288. package/dist/components/ui-segment/UISegments.en.d.ts +1 -0
  289. package/dist/components/ui-select/UISelect.d.ts +1 -0
  290. package/dist/components/ui-select/UISelect.en.d.ts +1 -0
  291. package/dist/components/ui-select/UISelect.fallback.d.ts +1 -0
  292. package/dist/components/ui-shape/UIShape.d.ts +1 -0
  293. package/dist/components/ui-shape/UIShape.en.d.ts +1 -0
  294. package/dist/components/ui-shape/UISide.d.ts +1 -0
  295. package/dist/components/ui-shape/UISide.en.d.ts +1 -0
  296. package/dist/components/ui-sidebar/UIPushable.d.ts +1 -0
  297. package/dist/components/ui-sidebar/UIPushable.en.d.ts +1 -0
  298. package/dist/components/ui-sidebar/UIPusher.d.ts +1 -0
  299. package/dist/components/ui-sidebar/UIPusher.en.d.ts +1 -0
  300. package/dist/components/ui-sidebar/UISidebar.d.ts +1 -0
  301. package/dist/components/ui-sidebar/UISidebar.en.d.ts +1 -0
  302. package/dist/components/ui-sides/UISides.d.ts +1 -0
  303. package/dist/components/ui-sides/UISides.en.d.ts +1 -0
  304. package/dist/components/ui-sides/UISides.fallback.d.ts +1 -0
  305. package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.d.ts +118 -0
  306. package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.en.d.ts +49 -0
  307. package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.es.d.ts +22 -0
  308. package/dist/components/ui-site-breadcrumbs/index.d.ts +1 -0
  309. package/dist/components/ui-site-nav/SitePages.d.ts +26 -3
  310. package/dist/components/ui-site-nav/UISiteNav.d.ts +43 -5
  311. package/dist/components/ui-site-nav/UISiteNav.en.d.ts +10 -1
  312. package/dist/components/ui-site-nav-button/UISiteNavButton.d.ts +63 -0
  313. package/dist/components/ui-site-nav-button/UISiteNavButton.en.d.ts +173 -0
  314. package/dist/components/ui-site-nav-button/UISiteNavButton.es.d.ts +20 -0
  315. package/dist/components/ui-site-nav-button/index.d.ts +1 -0
  316. package/dist/components/ui-site-tabs/UISiteTabs.d.ts +21 -6
  317. package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +1 -0
  318. package/dist/components/ui-slider/UISlider.d.ts +1 -0
  319. package/dist/components/ui-slider/UISlider.en.d.ts +1 -0
  320. package/dist/components/ui-slider/UISlider.fallback.d.ts +1 -0
  321. package/dist/components/ui-space/UISpace.d.ts +1 -0
  322. package/dist/components/ui-space/UISpace.en.d.ts +1 -0
  323. package/dist/components/ui-split-panel/UISplitPanel.d.ts +43 -7
  324. package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +2 -1
  325. package/dist/components/ui-stack/UIStack.d.ts +1 -0
  326. package/dist/components/ui-stack/UIStack.en.d.ts +1 -0
  327. package/dist/components/ui-statistic/UIStatistic.d.ts +1 -0
  328. package/dist/components/ui-statistic/UIStatistic.en.d.ts +1 -0
  329. package/dist/components/ui-statistic/UIStatistics.d.ts +1 -0
  330. package/dist/components/ui-statistic/UIStatistics.en.d.ts +1 -0
  331. package/dist/components/ui-step/UIStep.d.ts +1 -0
  332. package/dist/components/ui-step/UIStep.en.d.ts +1 -0
  333. package/dist/components/ui-step/UISteps.d.ts +3 -2
  334. package/dist/components/ui-step/UISteps.en.d.ts +3 -2
  335. package/dist/components/ui-sticky/UISticky.d.ts +1 -0
  336. package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
  337. package/dist/components/ui-tab/UITab.d.ts +3 -2
  338. package/dist/components/ui-tab/UITab.en.d.ts +4 -3
  339. package/dist/components/ui-tab/UITabs.d.ts +5 -4
  340. package/dist/components/ui-tab/UITabs.en.d.ts +4 -3
  341. package/dist/components/ui-table/TableGrammar.d.ts +2 -2
  342. package/dist/components/ui-table/UICell.d.ts +1 -0
  343. package/dist/components/ui-table/UICell.en.d.ts +1 -0
  344. package/dist/components/ui-table/UITable.d.ts +7 -6
  345. package/dist/components/ui-table/UITable.en.d.ts +7 -6
  346. package/dist/components/ui-terms/UITerm.d.ts +1 -0
  347. package/dist/components/ui-terms/UITerm.en.d.ts +1 -0
  348. package/dist/components/ui-terms/UITerms.d.ts +1 -0
  349. package/dist/components/ui-terms/UITerms.en.d.ts +1 -0
  350. package/dist/components/ui-text/UILink.d.ts +1 -0
  351. package/dist/components/ui-text/UILink.en.d.ts +1 -0
  352. package/dist/components/ui-text/UIText.d.ts +2 -1
  353. package/dist/components/ui-text/UIText.en.d.ts +2 -1
  354. package/dist/components/ui-theme-editor/BenchAddress.d.ts +9 -0
  355. package/dist/components/ui-theme-editor/UIColorChip.d.ts +1 -0
  356. package/dist/components/ui-theme-editor/UIColorChip.en.d.ts +1 -0
  357. package/dist/components/ui-theme-editor/UIThemeEditor.d.ts +1 -0
  358. package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +1 -0
  359. package/dist/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
  360. package/dist/components/ui-theme-editor/UIThemeToken.en.d.ts +1 -0
  361. package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +37 -15
  362. package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +3 -2
  363. package/dist/components/ui-toast/ToastStack.d.ts +9 -0
  364. package/dist/components/ui-toast/UIToast.d.ts +1 -0
  365. package/dist/components/ui-toast/UIToast.en.d.ts +1 -0
  366. package/dist/components/ui-toc/UIToc.d.ts +1 -0
  367. package/dist/components/ui-toc/UIToc.en.d.ts +1 -0
  368. package/dist/components/ui-toolbar/UIToolbar.d.ts +134 -1
  369. package/dist/components/ui-toolbar/UIToolbar.en.d.ts +75 -42
  370. package/dist/components/ui-toolbar/UIToolbar.es.d.ts +5 -0
  371. package/dist/components/ui-transition/UITransition.d.ts +1 -0
  372. package/dist/components/ui-transition/UITransition.en.d.ts +1 -0
  373. package/dist/components/ui-tree/UITree.d.ts +102 -2
  374. package/dist/components/ui-tree/UITree.en.d.ts +14 -1
  375. package/dist/components/ui-tree/UITree.es.d.ts +3 -0
  376. package/dist/components/ui-tree/UITreeItem.d.ts +21 -2
  377. package/dist/components/ui-tree/UITreeItem.en.d.ts +5 -1
  378. package/dist/components/ui-tree/UITreeItem.es.d.ts +1 -0
  379. package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +1 -0
  380. package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +1 -0
  381. package/dist/components/ui-tree-diagram/UITreeNode.d.ts +1 -0
  382. package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +1 -0
  383. package/dist/components/ui-video/UIAudio.d.ts +1 -0
  384. package/dist/components/ui-video/UIAudio.en.d.ts +1 -0
  385. package/dist/components/ui-video/UIVideo.d.ts +1 -0
  386. package/dist/components/ui-video/UIVideo.en.d.ts +1 -0
  387. package/dist/components/ui-visibility/UIVisibility.d.ts +1 -0
  388. package/dist/components/ui-visibility/UIVisibility.en.d.ts +1 -0
  389. package/dist/components/ui-zoom/UIZoom.d.ts +1 -0
  390. package/dist/components/ui-zoom/UIZoom.en.d.ts +1 -0
  391. package/dist/{components.es-BOa_7gFF.js → components.es-DEa8Ep42.js} +265 -77
  392. package/dist/components.es-DEa8Ep42.js.map +1 -0
  393. package/dist/core.js +795 -702
  394. package/dist/core.js.map +1 -1
  395. package/dist/{crisp-VfYZlTph.js → crisp-DIpY320U.js} +3 -4
  396. package/dist/crisp-DIpY320U.js.map +1 -0
  397. package/dist/crisp.theme-Ir9p4BDC.js +5 -0
  398. package/dist/crisp.theme-Ir9p4BDC.js.map +1 -0
  399. package/dist/{dark-CbUdPe0a.js → dark-B5s4QbmU.js} +2 -3
  400. package/dist/dark-B5s4QbmU.js.map +1 -0
  401. package/dist/{dist-BLYIGZVK.js → dist-BQT4KajA.js} +34 -80
  402. package/dist/dist-BQT4KajA.js.map +1 -0
  403. package/dist/docs-components/docs-components.types.d.ts +6 -0
  404. package/dist/docs-components/ui-docs-palette/UIDocsPalette.d.ts +180 -0
  405. package/dist/docs-components/ui-docs-palette/UIDocsPalette.en.d.ts +88 -0
  406. package/dist/docs-components/ui-docs-palette/UIDocsPalette.types.d.ts +5 -0
  407. package/dist/docs-components/ui-docs-palette/index.d.ts +2 -0
  408. package/dist/docs-components/ui-docs-tokens/UIDocsTokens.d.ts +23 -0
  409. package/dist/docs-components/ui-docs-tokens/UIDocsTokens.en.d.ts +5 -1
  410. package/dist/elements/PartComponent.d.ts +5 -0
  411. package/dist/elements/PopoverPanel.d.ts +12 -1
  412. package/dist/elements/Validator.d.ts +1 -1
  413. package/dist/emoji/cldr/{0-DSUpV2d7.js → 0-B6B0nyLW.js} +2 -3
  414. package/dist/emoji/cldr/0-B6B0nyLW.js.map +1 -0
  415. package/dist/emoji/cldr/{a-D_oB4vJ-.js → a-C12vpdzK.js} +2 -3
  416. package/dist/emoji/cldr/a-C12vpdzK.js.map +1 -0
  417. package/dist/emoji/cldr/{b-DX0W0Mda.js → b-BGkQUJ8v.js} +2 -3
  418. package/dist/emoji/cldr/b-BGkQUJ8v.js.map +1 -0
  419. package/dist/emoji/cldr/{c-DUHidpE9.js → c-DtqAfVnG.js} +2 -3
  420. package/dist/emoji/cldr/c-DtqAfVnG.js.map +1 -0
  421. package/dist/emoji/cldr/{d-CiCXZXay.js → d-B5SNGAad.js} +2 -3
  422. package/dist/emoji/cldr/d-B5SNGAad.js.map +1 -0
  423. package/dist/emoji/cldr/{e-DILJo3Ri.js → e-CMUDvE48.js} +2 -3
  424. package/dist/emoji/cldr/e-CMUDvE48.js.map +1 -0
  425. package/dist/emoji/cldr/{f-ByGFLyOq.js → f-Dfhd9bp8.js} +2 -3
  426. package/dist/emoji/cldr/f-Dfhd9bp8.js.map +1 -0
  427. package/dist/emoji/cldr/{g-BZ0FRsud.js → g-VpFllv6y.js} +2 -3
  428. package/dist/emoji/cldr/g-VpFllv6y.js.map +1 -0
  429. package/dist/emoji/cldr/{h-jtLdvRXQ.js → h-CE6GevC3.js} +2 -3
  430. package/dist/emoji/cldr/h-CE6GevC3.js.map +1 -0
  431. package/dist/emoji/cldr/{i-DcbJ5utE.js → i-BUPzV8pA.js} +2 -3
  432. package/dist/emoji/cldr/i-BUPzV8pA.js.map +1 -0
  433. package/dist/emoji/cldr/{j-BuEqP5nz.js → j-BFAg68Ig.js} +2 -3
  434. package/dist/emoji/cldr/j-BFAg68Ig.js.map +1 -0
  435. package/dist/emoji/cldr/{k-P1J6Gvze.js → k-jnBMfMlM.js} +2 -3
  436. package/dist/emoji/cldr/k-jnBMfMlM.js.map +1 -0
  437. package/dist/emoji/cldr/{l-28XcbsPr.js → l-ClLOCfnc.js} +2 -3
  438. package/dist/emoji/cldr/l-ClLOCfnc.js.map +1 -0
  439. package/dist/emoji/cldr/{m-DKgGJ8rW.js → m-p358YNne.js} +2 -3
  440. package/dist/emoji/cldr/m-p358YNne.js.map +1 -0
  441. package/dist/emoji/cldr/{n-DmPLP4F3.js → n-DOh1UxA2.js} +2 -3
  442. package/dist/emoji/cldr/n-DOh1UxA2.js.map +1 -0
  443. package/dist/emoji/cldr/{o-f98nt3s7.js → o-D_nTGMIR.js} +2 -3
  444. package/dist/emoji/cldr/o-D_nTGMIR.js.map +1 -0
  445. package/dist/emoji/cldr/{p-CxnsOTOt.js → p-BA8Ct3hE.js} +2 -3
  446. package/dist/emoji/cldr/p-BA8Ct3hE.js.map +1 -0
  447. package/dist/emoji/cldr/{r-D0GPRJ-Q.js → r-BFZ26mlC.js} +2 -3
  448. package/dist/emoji/cldr/r-BFZ26mlC.js.map +1 -0
  449. package/dist/emoji/cldr/{s-DcFuepnw.js → s-CIZH91hj.js} +2 -3
  450. package/dist/emoji/cldr/s-CIZH91hj.js.map +1 -0
  451. package/dist/emoji/cldr/{t-BvHgGpUr.js → t-qg9oQuYr.js} +2 -3
  452. package/dist/emoji/cldr/t-qg9oQuYr.js.map +1 -0
  453. package/dist/emoji/cldr/{u-ChFYHtUf.js → u-CN-QpqjC.js} +2 -3
  454. package/dist/emoji/cldr/u-CN-QpqjC.js.map +1 -0
  455. package/dist/emoji/cldr/{v-WmX3nWtZ.js → v-CO_76wOC.js} +2 -3
  456. package/dist/emoji/cldr/v-CO_76wOC.js.map +1 -0
  457. package/dist/emoji/cldr/{w-BPySQUWW.js → w-DOQn50Cw.js} +2 -3
  458. package/dist/emoji/cldr/w-DOQn50Cw.js.map +1 -0
  459. package/dist/emoji/cldr/x-DddFDGbR.js +5 -0
  460. package/dist/emoji/cldr/x-DddFDGbR.js.map +1 -0
  461. package/dist/emoji/cldr/{y-zB_yhTFg.js → y-auUWML2r.js} +2 -3
  462. package/dist/emoji/cldr/y-auUWML2r.js.map +1 -0
  463. package/dist/emoji/cldr/{z-BgJ94Cap.js → z-BYAp28d6.js} +2 -3
  464. package/dist/emoji/cldr/z-BYAp28d6.js.map +1 -0
  465. package/dist/emoji/fomantic/0-BdzcjXW3.js +9 -0
  466. package/dist/emoji/fomantic/0-BdzcjXW3.js.map +1 -0
  467. package/dist/emoji/fomantic/{a-CrqYlC21.js → a-R3ZJ-207.js} +2 -3
  468. package/dist/emoji/fomantic/a-R3ZJ-207.js.map +1 -0
  469. package/dist/emoji/fomantic/{b-DneVHRdQ.js → b-NF1y0dRD.js} +2 -3
  470. package/dist/emoji/fomantic/b-NF1y0dRD.js.map +1 -0
  471. package/dist/emoji/fomantic/{c-ClxKRuir.js → c-CuIzdNXI.js} +2 -3
  472. package/dist/emoji/fomantic/c-CuIzdNXI.js.map +1 -0
  473. package/dist/emoji/fomantic/{d-Djqs_y4s.js → d-CuS9uvGS.js} +2 -3
  474. package/dist/emoji/fomantic/d-CuS9uvGS.js.map +1 -0
  475. package/dist/emoji/fomantic/{e-CuF-jOQd.js → e-S2pyUDgP.js} +2 -3
  476. package/dist/emoji/fomantic/e-S2pyUDgP.js.map +1 -0
  477. package/dist/emoji/fomantic/{f-D8VglrJ4.js → f-DnHzZwKR.js} +2 -3
  478. package/dist/emoji/fomantic/f-DnHzZwKR.js.map +1 -0
  479. package/dist/emoji/fomantic/{g-Du_HFl6U.js → g-CdqbF8yB.js} +2 -3
  480. package/dist/emoji/fomantic/g-CdqbF8yB.js.map +1 -0
  481. package/dist/emoji/fomantic/{h-CLE5tHnM.js → h-Dgmy17VC.js} +2 -3
  482. package/dist/emoji/fomantic/h-Dgmy17VC.js.map +1 -0
  483. package/dist/emoji/fomantic/{i-BjOsrQDZ.js → i-BCe1z6Es.js} +2 -3
  484. package/dist/emoji/fomantic/i-BCe1z6Es.js.map +1 -0
  485. package/dist/emoji/fomantic/{j-CyUDXKCu.js → j-D39udLwj.js} +2 -3
  486. package/dist/emoji/fomantic/j-D39udLwj.js.map +1 -0
  487. package/dist/emoji/fomantic/{k-Clypg4R8.js → k-KDlJnEWX.js} +2 -3
  488. package/dist/emoji/fomantic/k-KDlJnEWX.js.map +1 -0
  489. package/dist/emoji/fomantic/{l-DvLPdBh-.js → l-rVE39-7Z.js} +2 -3
  490. package/dist/emoji/fomantic/l-rVE39-7Z.js.map +1 -0
  491. package/dist/emoji/fomantic/{m-B1lIb1kP.js → m-Bys5Cs9k.js} +2 -3
  492. package/dist/emoji/fomantic/m-Bys5Cs9k.js.map +1 -0
  493. package/dist/emoji/fomantic/{n-Bgpp_ht5.js → n-DzPz1atY.js} +2 -3
  494. package/dist/emoji/fomantic/n-DzPz1atY.js.map +1 -0
  495. package/dist/emoji/fomantic/{o-BhYZzpjp.js → o-lKtDGpuN.js} +2 -3
  496. package/dist/emoji/fomantic/o-lKtDGpuN.js.map +1 -0
  497. package/dist/emoji/fomantic/{p-VLL0GK3m.js → p-DUvy18Aa.js} +2 -3
  498. package/dist/emoji/fomantic/p-DUvy18Aa.js.map +1 -0
  499. package/dist/emoji/fomantic/q-WtSN0kE7.js +5 -0
  500. package/dist/emoji/fomantic/q-WtSN0kE7.js.map +1 -0
  501. package/dist/emoji/fomantic/{r-Bd1DjkkI.js → r-Dm_1szGZ.js} +2 -3
  502. package/dist/emoji/fomantic/r-Dm_1szGZ.js.map +1 -0
  503. package/dist/emoji/fomantic/{s-Bqatw1W7.js → s-LPRU4KZk.js} +2 -3
  504. package/dist/emoji/fomantic/s-LPRU4KZk.js.map +1 -0
  505. package/dist/emoji/fomantic/{t-Bs7IFhv3.js → t-iQksEIKb.js} +2 -3
  506. package/dist/emoji/fomantic/t-iQksEIKb.js.map +1 -0
  507. package/dist/emoji/fomantic/{u-M6GfYC-U.js → u-CkDd-u7Y.js} +2 -3
  508. package/dist/emoji/fomantic/u-CkDd-u7Y.js.map +1 -0
  509. package/dist/emoji/fomantic/{v-BKHNqkn0.js → v-C83uQ5pk.js} +2 -3
  510. package/dist/emoji/fomantic/v-C83uQ5pk.js.map +1 -0
  511. package/dist/emoji/fomantic/{w-B_XvIu7h.js → w-D_redhGe.js} +2 -3
  512. package/dist/emoji/fomantic/w-D_redhGe.js.map +1 -0
  513. package/dist/emoji/fomantic/x-eI_dPUEx.js +8 -0
  514. package/dist/emoji/fomantic/x-eI_dPUEx.js.map +1 -0
  515. package/dist/emoji/fomantic/{y-DPZaoIla.js → y-CO_6qz-J.js} +2 -3
  516. package/dist/emoji/fomantic/y-CO_6qz-J.js.map +1 -0
  517. package/dist/emoji/fomantic/{z-FH-kPXch.js → z-C-wWxD0a.js} +2 -3
  518. package/dist/emoji/fomantic/z-C-wWxD0a.js.map +1 -0
  519. package/dist/forms.js +65 -75
  520. package/dist/forms.js.map +1 -1
  521. package/dist/fruity-CsfZNeXb.js +5 -0
  522. package/dist/fruity-CsfZNeXb.js.map +1 -0
  523. package/dist/{fruity.theme-CbC7Jyvk.js → fruity.theme-BL7cCZUQ.js} +3 -4
  524. package/dist/fruity.theme-BL7cCZUQ.js.map +1 -0
  525. package/dist/glass-BCK30hpe.js +5 -0
  526. package/dist/glass-BCK30hpe.js.map +1 -0
  527. package/dist/glass.theme-C7QSRB7b.js +5 -0
  528. package/dist/glass.theme-C7QSRB7b.js.map +1 -0
  529. package/dist/hot.js +18 -32
  530. package/dist/hot.js.map +1 -1
  531. package/dist/index.d.ts +5 -0
  532. package/dist/index.js +96 -91
  533. package/dist/jsx.d.ts +3875 -711
  534. package/dist/matrix-DEnqBfwC.js +5 -0
  535. package/dist/matrix-DEnqBfwC.js.map +1 -0
  536. package/dist/matrix.theme-YV6_nvXv.js +5 -0
  537. package/dist/matrix.theme-YV6_nvXv.js.map +1 -0
  538. package/dist/{merlot-DOXLuUaU.js → merlot-DFa6kDbA.js} +3 -4
  539. package/dist/merlot-DFa6kDbA.js.map +1 -0
  540. package/dist/merlot.theme-B1K8nn2u.js +5 -0
  541. package/dist/merlot.theme-B1K8nn2u.js.map +1 -0
  542. package/dist/{midnight-BxlTQSfw.js → midnight-q0-3-V6U.js} +3 -4
  543. package/dist/midnight-q0-3-V6U.js.map +1 -0
  544. package/dist/midnight.theme-C7M02wTD.js +5 -0
  545. package/dist/midnight.theme-C7M02wTD.js.map +1 -0
  546. package/dist/mockup-D0vovNO7.js +5 -0
  547. package/dist/mockup-D0vovNO7.js.map +1 -0
  548. package/dist/mockup.theme-C92r9NI0.js +5 -0
  549. package/dist/mockup.theme-C92r9NI0.js.map +1 -0
  550. package/dist/{paper-M61nUilz.js → paper-DPxolmdy.js} +3 -4
  551. package/dist/paper-DPxolmdy.js.map +1 -0
  552. package/dist/paper.theme-BAKk3DY1.js +5 -0
  553. package/dist/paper.theme-BAKk3DY1.js.map +1 -0
  554. package/dist/{persist.types-D2m6wD-S.js → persist.types-D7N7GewC.js} +2 -3
  555. package/dist/persist.types-D7N7GewC.js.map +1 -0
  556. package/dist/{pop-CxXfytjk.js → pop-Dw_6k177.js} +3 -4
  557. package/dist/pop-Dw_6k177.js.map +1 -0
  558. package/dist/pop.theme-Cw-yD0MO.js +5 -0
  559. package/dist/pop.theme-Cw-yD0MO.js.map +1 -0
  560. package/dist/property/PropertyEditorPages.d.ts +1 -1
  561. package/dist/property/PropertyLayouts.d.ts +119 -0
  562. package/dist/property/PropertySchemas.d.ts +5 -1
  563. package/dist/property/index.d.ts +2 -0
  564. package/dist/{rolldown-runtime-CYGlBXrH.js → rolldown-runtime-c6e9CmGy.js} +2 -3
  565. package/dist/runtime/Browser.d.ts +7 -0
  566. package/dist/runtime/DataTooltips.d.ts +2 -0
  567. package/dist/runtime/Keyboard.d.ts +4 -1
  568. package/dist/runtime/Toasts.d.ts +10 -0
  569. package/dist/runtime/runtime.types.d.ts +52 -0
  570. package/dist/{search-CzSzx7bX.js → search-C2Rq9HF1.js} +1 -2
  571. package/dist/search-C2Rq9HF1.js.map +1 -0
  572. package/dist/spell-CB-MivSX.js +5 -0
  573. package/dist/spell-CB-MivSX.js.map +1 -0
  574. package/dist/spell.theme-CUoc5rTq.js +5 -0
  575. package/dist/spell.theme-CUoc5rTq.js.map +1 -0
  576. package/dist/styles/StyleGenerator.d.ts +7 -0
  577. package/dist/styles/styles.en.d.ts +27 -18
  578. package/dist/{styles.en-CUUxNwHo.js → styles.en-DZlSJiOR.js} +21 -21
  579. package/dist/styles.en-DZlSJiOR.js.map +1 -0
  580. package/dist/styles.js +9 -10
  581. package/dist/styles.js.map +1 -1
  582. package/dist/ui-accordion.editor-BP8uQGGU.js +5 -0
  583. package/dist/ui-accordion.editor-BP8uQGGU.js.map +1 -0
  584. package/dist/ui-accordion.js +59 -60
  585. package/dist/ui-accordion.js.map +1 -1
  586. package/dist/ui-action.editor-m5R5N5Wy.js +5 -0
  587. package/dist/ui-action.editor-m5R5N5Wy.js.map +1 -0
  588. package/dist/ui-action.js +73 -45
  589. package/dist/ui-action.js.map +1 -1
  590. package/dist/ui-actions.editor-Buc3N2ik.js +5 -0
  591. package/dist/ui-actions.editor-Buc3N2ik.js.map +1 -0
  592. package/dist/ui-ad.editor-BHTDuSii.js +5 -0
  593. package/dist/ui-ad.editor-BHTDuSii.js.map +1 -0
  594. package/dist/ui-ad.js +8 -9
  595. package/dist/ui-ad.js.map +1 -1
  596. package/dist/ui-app-menu.editor-DxPPnMUT.js +5 -0
  597. package/dist/ui-app-menu.editor-DxPPnMUT.js.map +1 -0
  598. package/dist/ui-app-menu.js +89 -0
  599. package/dist/ui-app-menu.js.map +1 -0
  600. package/dist/ui-audio.editor-Y6WeqLRh.js +5 -0
  601. package/dist/ui-audio.editor-Y6WeqLRh.js.map +1 -0
  602. package/dist/ui-author.editor-Bmf-rEXY.js +5 -0
  603. package/dist/ui-author.editor-Bmf-rEXY.js.map +1 -0
  604. package/dist/ui-avatar.editor-CSU6snQz.js +5 -0
  605. package/dist/ui-avatar.editor-CSU6snQz.js.map +1 -0
  606. package/dist/ui-breadcrumb.editor-N1-8OzDq.js +5 -0
  607. package/dist/ui-breadcrumb.editor-N1-8OzDq.js.map +1 -0
  608. package/dist/ui-breadcrumbs.editor-Mml0fUR_.js +5 -0
  609. package/dist/ui-breadcrumbs.editor-Mml0fUR_.js.map +1 -0
  610. package/dist/ui-breadcrumbs.js +18 -17
  611. package/dist/ui-breadcrumbs.js.map +1 -1
  612. package/dist/ui-button.editor-BV9Bh_xf.js +5 -0
  613. package/dist/ui-button.editor-BV9Bh_xf.js.map +1 -0
  614. package/dist/ui-button.js +157 -156
  615. package/dist/ui-button.js.map +1 -1
  616. package/dist/ui-buttons.editor-CSsEIo2s.js +5 -0
  617. package/dist/ui-buttons.editor-CSsEIo2s.js.map +1 -0
  618. package/dist/ui-calendar.editor-TsP8a97s.js +5 -0
  619. package/dist/ui-calendar.editor-TsP8a97s.js.map +1 -0
  620. package/dist/ui-calendar.js +148 -157
  621. package/dist/ui-calendar.js.map +1 -1
  622. package/dist/ui-card.editor-BBZj9e03.js +5 -0
  623. package/dist/ui-card.editor-BBZj9e03.js.map +1 -0
  624. package/dist/ui-card.js +70 -70
  625. package/dist/ui-card.js.map +1 -1
  626. package/dist/ui-cards.editor-Hrmldr4q.js +5 -0
  627. package/dist/ui-cards.editor-Hrmldr4q.js.map +1 -0
  628. package/dist/ui-cell.editor-Dmz_mwJ0.js +5 -0
  629. package/dist/ui-cell.editor-Dmz_mwJ0.js.map +1 -0
  630. package/dist/ui-checkbox.editor-DnOz9r6d.js +5 -0
  631. package/dist/ui-checkbox.editor-DnOz9r6d.js.map +1 -0
  632. package/dist/ui-checkbox.js +49 -48
  633. package/dist/ui-checkbox.js.map +1 -1
  634. package/dist/ui-code.editor-Drr_FVB6.js +5 -0
  635. package/dist/ui-code.editor-Drr_FVB6.js.map +1 -0
  636. package/dist/ui-code.js +116 -79
  637. package/dist/ui-code.js.map +1 -1
  638. package/dist/ui-color-chip.editor-B3zV8FkB.js +5 -0
  639. package/dist/ui-color-chip.editor-B3zV8FkB.js.map +1 -0
  640. package/dist/ui-column.editor-hdUb-qwT.js +5 -0
  641. package/dist/ui-column.editor-hdUb-qwT.js.map +1 -0
  642. package/dist/ui-comment.editor-DJpE_8tz.js +5 -0
  643. package/dist/ui-comment.editor-DJpE_8tz.js.map +1 -0
  644. package/dist/ui-comment.js +15 -14
  645. package/dist/ui-comment.js.map +1 -1
  646. package/dist/ui-comments.editor-GFJN6l3Q.js +5 -0
  647. package/dist/ui-comments.editor-GFJN6l3Q.js.map +1 -0
  648. package/dist/ui-components.editor-BKFXnARt.js +5 -0
  649. package/dist/ui-components.editor-BKFXnARt.js.map +1 -0
  650. package/dist/ui-components.js +12 -13
  651. package/dist/ui-components.js.map +1 -1
  652. package/dist/ui-container.editor-CBNhNkRm.js +5 -0
  653. package/dist/ui-container.editor-CBNhNkRm.js.map +1 -0
  654. package/dist/ui-container.js +106 -21
  655. package/dist/ui-container.js.map +1 -1
  656. package/dist/ui-content.editor-B78lxK3P.js +5 -0
  657. package/dist/ui-content.editor-B78lxK3P.js.map +1 -0
  658. package/dist/ui-date.editor-PHEnU7QX.js +5 -0
  659. package/dist/ui-date.editor-PHEnU7QX.js.map +1 -0
  660. package/dist/ui-description.editor-DWFDJ9mV.js +5 -0
  661. package/dist/ui-description.editor-DWFDJ9mV.js.map +1 -0
  662. package/dist/ui-detail.editor-wliuVbx3.js +5 -0
  663. package/dist/ui-detail.editor-wliuVbx3.js.map +1 -0
  664. package/dist/ui-device.editor-kl48NVma.js +5 -0
  665. package/dist/ui-device.editor-kl48NVma.js.map +1 -0
  666. package/dist/ui-device.js +436 -0
  667. package/dist/ui-device.js.map +1 -0
  668. package/dist/ui-diagram-node.editor-6FyjT7oj.js +5 -0
  669. package/dist/ui-diagram-node.editor-6FyjT7oj.js.map +1 -0
  670. package/dist/ui-diagram.editor-Dn3ef-J9.js +5 -0
  671. package/dist/ui-diagram.editor-Dn3ef-J9.js.map +1 -0
  672. package/dist/ui-diagram.js +128 -129
  673. package/dist/ui-diagram.js.map +1 -1
  674. package/dist/ui-dimension.editor-BEXGKcCB.js +5 -0
  675. package/dist/ui-dimension.editor-BEXGKcCB.js.map +1 -0
  676. package/dist/ui-dimension.js +111 -12
  677. package/dist/ui-dimension.js.map +1 -1
  678. package/dist/ui-dimmer.editor-D14xzXIe.js +5 -0
  679. package/dist/ui-dimmer.editor-D14xzXIe.js.map +1 -0
  680. package/dist/ui-dimmer.js +29 -30
  681. package/dist/ui-dimmer.js.map +1 -1
  682. package/dist/ui-divider.editor-D6ozEXjx.js +5 -0
  683. package/dist/ui-divider.editor-D6ozEXjx.js.map +1 -0
  684. package/dist/ui-divider.js +9 -10
  685. package/dist/ui-divider.js.map +1 -1
  686. package/dist/ui-dropdown.editor-OFDGi1oz.js +5 -0
  687. package/dist/ui-dropdown.editor-OFDGi1oz.js.map +1 -0
  688. package/dist/ui-dropdown.js +155 -156
  689. package/dist/ui-dropdown.js.map +1 -1
  690. package/dist/ui-embed.editor-DHsrjw1j.js +5 -0
  691. package/dist/ui-embed.editor-DHsrjw1j.js.map +1 -0
  692. package/dist/ui-embed.js +23 -24
  693. package/dist/ui-embed.js.map +1 -1
  694. package/dist/ui-emoji.editor-DUL230Hi.js +5 -0
  695. package/dist/ui-emoji.editor-DUL230Hi.js.map +1 -0
  696. package/dist/ui-emoji.js +63 -64
  697. package/dist/ui-emoji.js.map +1 -1
  698. package/dist/ui-event.editor-Bk17y7wW.js +5 -0
  699. package/dist/ui-event.editor-Bk17y7wW.js.map +1 -0
  700. package/dist/ui-example.editor-D46Vnctp.js +5 -0
  701. package/dist/ui-example.editor-D46Vnctp.js.map +1 -0
  702. package/dist/ui-example.js +67 -74
  703. package/dist/ui-example.js.map +1 -1
  704. package/dist/ui-extra.editor-rX6sfH2e.js +5 -0
  705. package/dist/ui-extra.editor-rX6sfH2e.js.map +1 -0
  706. package/dist/ui-feed.editor-B7ycWh1b.js +5 -0
  707. package/dist/ui-feed.editor-B7ycWh1b.js.map +1 -0
  708. package/dist/ui-feed.js +26 -25
  709. package/dist/ui-feed.js.map +1 -1
  710. package/dist/ui-field.editor-Bz9xyCVv.js +5 -0
  711. package/dist/ui-field.editor-Bz9xyCVv.js.map +1 -0
  712. package/dist/ui-fields.editor-BUtW4NTk.js +5 -0
  713. package/dist/ui-fields.editor-BUtW4NTk.js.map +1 -0
  714. package/dist/ui-flag.editor-DNfdXo7y.js +5 -0
  715. package/dist/ui-flag.editor-DNfdXo7y.js.map +1 -0
  716. package/dist/ui-flag.js +13 -14
  717. package/dist/ui-flag.js.map +1 -1
  718. package/dist/ui-flyout.editor-b7UJYiV9.js +5 -0
  719. package/dist/ui-flyout.editor-b7UJYiV9.js.map +1 -0
  720. package/dist/ui-flyout.js +10 -11
  721. package/dist/ui-flyout.js.map +1 -1
  722. package/dist/ui-form.editor-BJC3WhNf.js +5 -0
  723. package/dist/ui-form.editor-BJC3WhNf.js.map +1 -0
  724. package/dist/ui-form.js +199 -195
  725. package/dist/ui-form.js.map +1 -1
  726. package/dist/ui-grid.editor-DVn2YIBW.js +5 -0
  727. package/dist/ui-grid.editor-DVn2YIBW.js.map +1 -0
  728. package/dist/ui-grid.js +43 -234
  729. package/dist/ui-grid.js.map +1 -1
  730. package/dist/ui-header.editor-meOjCASK.js +5 -0
  731. package/dist/ui-header.editor-meOjCASK.js.map +1 -0
  732. package/dist/ui-icon-picker.editor-vFPbT9Kh.js +5 -0
  733. package/dist/ui-icon-picker.editor-vFPbT9Kh.js.map +1 -0
  734. package/dist/ui-icon-picker.js +64 -69
  735. package/dist/ui-icon-picker.js.map +1 -1
  736. package/dist/ui-icon.editor-DoKK49PD.js +5 -0
  737. package/dist/ui-icon.editor-DoKK49PD.js.map +1 -0
  738. package/dist/ui-icon.js +15 -14
  739. package/dist/ui-icon.js.map +1 -1
  740. package/dist/ui-icons.editor-CSD6fOVt.js +5 -0
  741. package/dist/ui-icons.editor-CSD6fOVt.js.map +1 -0
  742. package/dist/ui-image.editor-D4ZUC_Ka.js +5 -0
  743. package/dist/ui-image.editor-D4ZUC_Ka.js.map +1 -0
  744. package/dist/ui-image.js +26 -26
  745. package/dist/ui-image.js.map +1 -1
  746. package/dist/ui-images.editor-Cb0D3vnI.js +5 -0
  747. package/dist/ui-images.editor-Cb0D3vnI.js.map +1 -0
  748. package/dist/ui-include.editor-CZcsVJbH.js +5 -0
  749. package/dist/ui-include.editor-CZcsVJbH.js.map +1 -0
  750. package/dist/ui-include.js +21 -22
  751. package/dist/ui-include.js.map +1 -1
  752. package/dist/ui-input.editor-budoNoB0.js +5 -0
  753. package/dist/ui-input.editor-budoNoB0.js.map +1 -0
  754. package/dist/ui-input.js +131 -130
  755. package/dist/ui-input.js.map +1 -1
  756. package/dist/ui-item.editor-BlWp1HXu.js +5 -0
  757. package/dist/ui-item.editor-BlWp1HXu.js.map +1 -0
  758. package/dist/ui-item.js +127 -113
  759. package/dist/ui-item.js.map +1 -1
  760. package/dist/ui-items.editor-GOul3Xss.js +5 -0
  761. package/dist/ui-items.editor-GOul3Xss.js.map +1 -0
  762. package/dist/ui-items.js +11 -12
  763. package/dist/ui-items.js.map +1 -1
  764. package/dist/ui-json.editor-BgZbrB_W.js +5 -0
  765. package/dist/ui-json.editor-BgZbrB_W.js.map +1 -0
  766. package/dist/ui-json.js +18 -19
  767. package/dist/ui-json.js.map +1 -1
  768. package/dist/ui-keys.editor-BI9EDtS4.js +5 -0
  769. package/dist/ui-keys.editor-BI9EDtS4.js.map +1 -0
  770. package/dist/ui-keys.js +2 -3
  771. package/dist/ui-label.editor-BVUYLSUs.js +5 -0
  772. package/dist/ui-label.editor-BVUYLSUs.js.map +1 -0
  773. package/dist/ui-label.js +22 -22
  774. package/dist/ui-label.js.map +1 -1
  775. package/dist/ui-labels.editor-BWJth86p.js +5 -0
  776. package/dist/ui-labels.editor-BWJth86p.js.map +1 -0
  777. package/dist/ui-link.editor-CpI53scP.js +5 -0
  778. package/dist/ui-link.editor-CpI53scP.js.map +1 -0
  779. package/dist/ui-list.editor-DhBZIkAa.js +5 -0
  780. package/dist/ui-list.editor-DhBZIkAa.js.map +1 -0
  781. package/dist/ui-list.js +9 -10
  782. package/dist/ui-list.js.map +1 -1
  783. package/dist/ui-loader.editor-BJlvmP7S.js +5 -0
  784. package/dist/ui-loader.editor-BJlvmP7S.js.map +1 -0
  785. package/dist/ui-loader.js +10 -11
  786. package/dist/ui-loader.js.map +1 -1
  787. package/dist/ui-markdown.editor-DPVKyxXa.js +5 -0
  788. package/dist/ui-markdown.editor-DPVKyxXa.js.map +1 -0
  789. package/dist/ui-markdown.js +208 -154
  790. package/dist/ui-markdown.js.map +1 -1
  791. package/dist/ui-menu.editor-DJ3PhWtK.js +5 -0
  792. package/dist/ui-menu.editor-DJ3PhWtK.js.map +1 -0
  793. package/dist/ui-menu.js +815 -223
  794. package/dist/ui-menu.js.map +1 -1
  795. package/dist/ui-message.editor-vfT0pyu5.js +5 -0
  796. package/dist/ui-message.editor-vfT0pyu5.js.map +1 -0
  797. package/dist/ui-message.js +32 -33
  798. package/dist/ui-message.js.map +1 -1
  799. package/dist/ui-meta.editor-Bk5m43-E.js +5 -0
  800. package/dist/ui-meta.editor-Bk5m43-E.js.map +1 -0
  801. package/dist/ui-modal.editor-B6gmmGsR.js +5 -0
  802. package/dist/ui-modal.editor-B6gmmGsR.js.map +1 -0
  803. package/dist/ui-modal.js +128 -99
  804. package/dist/ui-modal.js.map +1 -1
  805. package/dist/ui-nag.editor-BJ3Ia2Bi.js +5 -0
  806. package/dist/ui-nag.editor-BJ3Ia2Bi.js.map +1 -0
  807. package/dist/ui-nag.js +23 -24
  808. package/dist/ui-nag.js.map +1 -1
  809. package/dist/ui-or.editor-BfBLNVgm.js +5 -0
  810. package/dist/ui-or.editor-BfBLNVgm.js.map +1 -0
  811. package/dist/ui-page-layout.editor-xtQW0FZk.js +5 -0
  812. package/dist/ui-page-layout.editor-xtQW0FZk.js.map +1 -0
  813. package/dist/ui-page-layout.js +363 -0
  814. package/dist/ui-page-layout.js.map +1 -0
  815. package/dist/ui-page.editor-Bd5mzlj7.js +5 -0
  816. package/dist/ui-page.editor-Bd5mzlj7.js.map +1 -0
  817. package/dist/ui-page.js +11 -12
  818. package/dist/ui-page.js.map +1 -1
  819. package/dist/ui-panel.editor-BCUkdr4S.js +5 -0
  820. package/dist/ui-panel.editor-BCUkdr4S.js.map +1 -0
  821. package/dist/ui-panel.js +105 -27
  822. package/dist/ui-panel.js.map +1 -1
  823. package/dist/ui-parts.js +83 -68
  824. package/dist/ui-parts.js.map +1 -1
  825. package/dist/ui-placeholder-header.editor-CJNO08Ax.js +5 -0
  826. package/dist/ui-placeholder-header.editor-CJNO08Ax.js.map +1 -0
  827. package/dist/ui-placeholder-image.editor-DctJiCNv.js +5 -0
  828. package/dist/ui-placeholder-image.editor-DctJiCNv.js.map +1 -0
  829. package/dist/ui-placeholder-line.editor-DcxH7mOo.js +5 -0
  830. package/dist/ui-placeholder-line.editor-DcxH7mOo.js.map +1 -0
  831. package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js +5 -0
  832. package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js.map +1 -0
  833. package/dist/ui-placeholder.editor-Bc0CYlZZ.js +5 -0
  834. package/dist/ui-placeholder.editor-Bc0CYlZZ.js.map +1 -0
  835. package/dist/ui-placeholder.js +23 -19
  836. package/dist/ui-placeholder.js.map +1 -1
  837. package/dist/ui-popup.editor-ByUi4CYs.js +5 -0
  838. package/dist/ui-popup.editor-ByUi4CYs.js.map +1 -0
  839. package/dist/ui-popup.js +107 -100
  840. package/dist/ui-popup.js.map +1 -1
  841. package/dist/ui-progress.editor-DX0IjhxZ.js +5 -0
  842. package/dist/ui-progress.editor-DX0IjhxZ.js.map +1 -0
  843. package/dist/ui-progress.js +23 -24
  844. package/dist/ui-progress.js.map +1 -1
  845. package/dist/ui-property-editor.editor-pS6tCPPT.js +5 -0
  846. package/dist/ui-property-editor.editor-pS6tCPPT.js.map +1 -0
  847. package/dist/ui-property-editor.js +649 -277
  848. package/dist/ui-property-editor.js.map +1 -1
  849. package/dist/ui-property-group.editor-BlpUMVlr.js +5 -0
  850. package/dist/ui-property-group.editor-BlpUMVlr.js.map +1 -0
  851. package/dist/ui-property.editor-BC-jtjjt.js +5 -0
  852. package/dist/ui-property.editor-BC-jtjjt.js.map +1 -0
  853. package/dist/ui-pushable.editor-8_EmUD9x.js +5 -0
  854. package/dist/ui-pushable.editor-8_EmUD9x.js.map +1 -0
  855. package/dist/ui-pusher.editor-CiCX6-1J.js +5 -0
  856. package/dist/ui-pusher.editor-CiCX6-1J.js.map +1 -0
  857. package/dist/ui-quote.editor-BvmAjmo9.js +5 -0
  858. package/dist/ui-quote.editor-BvmAjmo9.js.map +1 -0
  859. package/dist/ui-quote.js +8 -9
  860. package/dist/ui-quote.js.map +1 -1
  861. package/dist/ui-radio.editor-DPzActfO.js +5 -0
  862. package/dist/ui-radio.editor-DPzActfO.js.map +1 -0
  863. package/dist/ui-rail.editor-DRfVH4P2.js +5 -0
  864. package/dist/ui-rail.editor-DRfVH4P2.js.map +1 -0
  865. package/dist/ui-rail.js +11 -12
  866. package/dist/ui-rail.js.map +1 -1
  867. package/dist/ui-rating.editor-C19syymj.js +5 -0
  868. package/dist/ui-rating.editor-C19syymj.js.map +1 -0
  869. package/dist/ui-rating.js +40 -49
  870. package/dist/ui-rating.js.map +1 -1
  871. package/dist/ui-repeat.editor-DEf-bFGj.js +5 -0
  872. package/dist/ui-repeat.editor-DEf-bFGj.js.map +1 -0
  873. package/dist/ui-reveal.editor-D7pDOaen.js +5 -0
  874. package/dist/ui-reveal.editor-D7pDOaen.js.map +1 -0
  875. package/dist/ui-reveal.js +10 -11
  876. package/dist/ui-reveal.js.map +1 -1
  877. package/dist/ui-root.editor-CAokPDVa.js +5 -0
  878. package/dist/ui-root.editor-CAokPDVa.js.map +1 -0
  879. package/dist/ui-root.js +206 -102
  880. package/dist/ui-root.js.map +1 -1
  881. package/dist/ui-row.editor-C00Z6Jl5.js +5 -0
  882. package/dist/ui-row.editor-C00Z6Jl5.js.map +1 -0
  883. package/dist/ui-search.editor-CtzfYgNu.js +5 -0
  884. package/dist/ui-search.editor-CtzfYgNu.js.map +1 -0
  885. package/dist/ui-search.js +143 -146
  886. package/dist/ui-search.js.map +1 -1
  887. package/dist/ui-section.editor-DmNICxCs.js +5 -0
  888. package/dist/ui-section.editor-DmNICxCs.js.map +1 -0
  889. package/dist/ui-section.js +74 -73
  890. package/dist/ui-section.js.map +1 -1
  891. package/dist/ui-sections.editor-BxXECGv9.js +5 -0
  892. package/dist/ui-sections.editor-BxXECGv9.js.map +1 -0
  893. package/dist/ui-segment.editor-CebyLPFn.js +5 -0
  894. package/dist/ui-segment.editor-CebyLPFn.js.map +1 -0
  895. package/dist/ui-segment.js +43 -43
  896. package/dist/ui-segment.js.map +1 -1
  897. package/dist/ui-segments.editor-CSumzMa5.js +5 -0
  898. package/dist/ui-segments.editor-CSumzMa5.js.map +1 -0
  899. package/dist/ui-select.editor-wAcZzvU7.js +5 -0
  900. package/dist/ui-select.editor-wAcZzvU7.js.map +1 -0
  901. package/dist/ui-select.js +86 -87
  902. package/dist/ui-select.js.map +1 -1
  903. package/dist/ui-shape.editor-By9-8aD2.js +5 -0
  904. package/dist/ui-shape.editor-By9-8aD2.js.map +1 -0
  905. package/dist/ui-shape.js +39 -38
  906. package/dist/ui-shape.js.map +1 -1
  907. package/dist/ui-side.editor-CFSqGHGH.js +5 -0
  908. package/dist/ui-side.editor-CFSqGHGH.js.map +1 -0
  909. package/dist/ui-sidebar.editor-DWFPQcXv.js +5 -0
  910. package/dist/ui-sidebar.editor-DWFPQcXv.js.map +1 -0
  911. package/dist/ui-sidebar.js +79 -77
  912. package/dist/ui-sidebar.js.map +1 -1
  913. package/dist/ui-sides.editor-CONIJ1r3.js +5 -0
  914. package/dist/ui-sides.editor-CONIJ1r3.js.map +1 -0
  915. package/dist/ui-sides.js +25 -26
  916. package/dist/ui-sides.js.map +1 -1
  917. package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js +5 -0
  918. package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js.map +1 -0
  919. package/dist/ui-site-breadcrumbs.js +143 -0
  920. package/dist/ui-site-breadcrumbs.js.map +1 -0
  921. package/dist/ui-site-nav-button.editor-6J-zJLtZ.js +5 -0
  922. package/dist/ui-site-nav-button.editor-6J-zJLtZ.js.map +1 -0
  923. package/dist/ui-site-nav-button.js +113 -0
  924. package/dist/ui-site-nav-button.js.map +1 -0
  925. package/dist/ui-site-nav.editor-CKEsOGCX.js +5 -0
  926. package/dist/ui-site-nav.editor-CKEsOGCX.js.map +1 -0
  927. package/dist/ui-site-nav.js +133 -97
  928. package/dist/ui-site-nav.js.map +1 -1
  929. package/dist/ui-site-tabs.editor-DDvQfH6S.js +5 -0
  930. package/dist/ui-site-tabs.editor-DDvQfH6S.js.map +1 -0
  931. package/dist/ui-site-tabs.js +53 -48
  932. package/dist/ui-site-tabs.js.map +1 -1
  933. package/dist/ui-slider.editor-BEaasx5Q.js +5 -0
  934. package/dist/ui-slider.editor-BEaasx5Q.js.map +1 -0
  935. package/dist/ui-slider.js +37 -38
  936. package/dist/ui-slider.js.map +1 -1
  937. package/dist/ui-space.editor-s-XVWFBN.js +5 -0
  938. package/dist/ui-space.editor-s-XVWFBN.js.map +1 -0
  939. package/dist/ui-space.js +9 -10
  940. package/dist/ui-space.js.map +1 -1
  941. package/dist/ui-split-panel.editor-Cvy5W7nk.js +5 -0
  942. package/dist/ui-split-panel.editor-Cvy5W7nk.js.map +1 -0
  943. package/dist/ui-split-panel.js +107 -68
  944. package/dist/ui-split-panel.js.map +1 -1
  945. package/dist/ui-stack.editor-D69Fky6H.js +5 -0
  946. package/dist/ui-stack.editor-D69Fky6H.js.map +1 -0
  947. package/dist/ui-stack.js +12 -13
  948. package/dist/ui-stack.js.map +1 -1
  949. package/dist/ui-statistic.editor-CBzYqbQ5.js +5 -0
  950. package/dist/ui-statistic.editor-CBzYqbQ5.js.map +1 -0
  951. package/dist/ui-statistic.js +28 -27
  952. package/dist/ui-statistic.js.map +1 -1
  953. package/dist/ui-statistics.editor-fzh3uk_b.js +5 -0
  954. package/dist/ui-statistics.editor-fzh3uk_b.js.map +1 -0
  955. package/dist/ui-step.editor-CYmNXrk_.js +5 -0
  956. package/dist/ui-step.editor-CYmNXrk_.js.map +1 -0
  957. package/dist/ui-step.js +62 -61
  958. package/dist/ui-step.js.map +1 -1
  959. package/dist/ui-steps.editor-BkMIrUrj.js +5 -0
  960. package/dist/ui-steps.editor-BkMIrUrj.js.map +1 -0
  961. package/dist/ui-sticky.editor-D7R1AlJv.js +5 -0
  962. package/dist/ui-sticky.editor-D7R1AlJv.js.map +1 -0
  963. package/dist/ui-sticky.js +10 -11
  964. package/dist/ui-sticky.js.map +1 -1
  965. package/dist/ui-submenu.editor-NdjS0em-.js +5 -0
  966. package/dist/ui-submenu.editor-NdjS0em-.js.map +1 -0
  967. package/dist/ui-summary.editor-CCHS1mVz.js +5 -0
  968. package/dist/ui-summary.editor-CCHS1mVz.js.map +1 -0
  969. package/dist/ui-tab.editor-DCS-gCZV.js +5 -0
  970. package/dist/ui-tab.editor-DCS-gCZV.js.map +1 -0
  971. package/dist/ui-tab.js +115 -117
  972. package/dist/ui-tab.js.map +1 -1
  973. package/dist/ui-table.editor-DJvfg9oG.js +5 -0
  974. package/dist/ui-table.editor-DJvfg9oG.js.map +1 -0
  975. package/dist/ui-table.js +272 -272
  976. package/dist/ui-table.js.map +1 -1
  977. package/dist/ui-tabs.editor-waeMoFNM.js +5 -0
  978. package/dist/ui-tabs.editor-waeMoFNM.js.map +1 -0
  979. package/dist/ui-term.editor-BMCF3jBM.js +5 -0
  980. package/dist/ui-term.editor-BMCF3jBM.js.map +1 -0
  981. package/dist/ui-terms.editor-BLfVVsjI.js +5 -0
  982. package/dist/ui-terms.editor-BLfVVsjI.js.map +1 -0
  983. package/dist/ui-terms.js +13 -12
  984. package/dist/ui-terms.js.map +1 -1
  985. package/dist/ui-text.editor-B6AENK13.js +5 -0
  986. package/dist/ui-text.editor-B6AENK13.js.map +1 -0
  987. package/dist/ui-text.js +37 -36
  988. package/dist/ui-text.js.map +1 -1
  989. package/dist/ui-textarea.editor-C25lVwrF.js +5 -0
  990. package/dist/ui-textarea.editor-C25lVwrF.js.map +1 -0
  991. package/dist/ui-theme-editor.editor-CQGAgy-Q.js +5 -0
  992. package/dist/ui-theme-editor.editor-CQGAgy-Q.js.map +1 -0
  993. package/dist/ui-theme-editor.js +448 -461
  994. package/dist/ui-theme-editor.js.map +1 -1
  995. package/dist/{ui-theme-menu-CuIjr8Ou.js → ui-theme-menu-BZYUMrHe.js} +356 -352
  996. package/dist/ui-theme-menu-BZYUMrHe.js.map +1 -0
  997. package/dist/ui-theme-menu.editor-DNeI-hxN.js +5 -0
  998. package/dist/ui-theme-menu.editor-DNeI-hxN.js.map +1 -0
  999. package/dist/ui-theme-token.editor-C2YAdEye.js +5 -0
  1000. package/dist/ui-theme-token.editor-C2YAdEye.js.map +1 -0
  1001. package/dist/ui-title.editor-40PZSOpn.js +5 -0
  1002. package/dist/ui-title.editor-40PZSOpn.js.map +1 -0
  1003. package/dist/ui-toast.editor-BDmIUsU_.js +5 -0
  1004. package/dist/ui-toast.editor-BDmIUsU_.js.map +1 -0
  1005. package/dist/ui-toast.js +141 -139
  1006. package/dist/ui-toast.js.map +1 -1
  1007. package/dist/ui-toc.editor-D_S1KFY_.js +5 -0
  1008. package/dist/ui-toc.editor-D_S1KFY_.js.map +1 -0
  1009. package/dist/ui-toc.js +52 -53
  1010. package/dist/ui-toc.js.map +1 -1
  1011. package/dist/ui-toolbar.editor-CNQ8nJmR.js +5 -0
  1012. package/dist/ui-toolbar.editor-CNQ8nJmR.js.map +1 -0
  1013. package/dist/ui-toolbar.js +254 -50
  1014. package/dist/ui-toolbar.js.map +1 -1
  1015. package/dist/ui-transition.editor-8SQkDkZ6.js +5 -0
  1016. package/dist/ui-transition.editor-8SQkDkZ6.js.map +1 -0
  1017. package/dist/ui-transition.js +13 -14
  1018. package/dist/ui-transition.js.map +1 -1
  1019. package/dist/ui-tree-diagram.editor-DkEK8i7J.js +5 -0
  1020. package/dist/ui-tree-diagram.editor-DkEK8i7J.js.map +1 -0
  1021. package/dist/ui-tree-diagram.js +128 -127
  1022. package/dist/ui-tree-diagram.js.map +1 -1
  1023. package/dist/ui-tree-item.editor-C4fuAlbJ.js +5 -0
  1024. package/dist/ui-tree-item.editor-C4fuAlbJ.js.map +1 -0
  1025. package/dist/ui-tree-node.editor-CB1z_w9F.js +5 -0
  1026. package/dist/ui-tree-node.editor-CB1z_w9F.js.map +1 -0
  1027. package/dist/ui-tree.editor-BoQztwdz.js +5 -0
  1028. package/dist/ui-tree.editor-BoQztwdz.js.map +1 -0
  1029. package/dist/ui-tree.js +393 -134
  1030. package/dist/ui-tree.js.map +1 -1
  1031. package/dist/ui-value.editor-CYak24cr.js +5 -0
  1032. package/dist/ui-value.editor-CYak24cr.js.map +1 -0
  1033. package/dist/ui-video.editor-CuWtFVjR.js +5 -0
  1034. package/dist/ui-video.editor-CuWtFVjR.js.map +1 -0
  1035. package/dist/ui-video.js +15 -14
  1036. package/dist/ui-video.js.map +1 -1
  1037. package/dist/ui-visibility.editor-Crx0DTlv.js +5 -0
  1038. package/dist/ui-visibility.editor-Crx0DTlv.js.map +1 -0
  1039. package/dist/ui-visibility.js +25 -26
  1040. package/dist/ui-visibility.js.map +1 -1
  1041. package/dist/ui-zoom.editor-DZ3HsWV4.js +5 -0
  1042. package/dist/ui-zoom.editor-DZ3HsWV4.js.map +1 -0
  1043. package/dist/ui-zoom.js +82 -83
  1044. package/dist/ui-zoom.js.map +1 -1
  1045. package/dist/util/TopLayerTip.d.ts +11 -2
  1046. package/dist/vocabulary/SharedVocabulary.d.ts +2 -0
  1047. package/dist/vocabulary/SharedVocabulary.es.d.ts +1 -0
  1048. package/dist/vocabulary/help.generated.d.ts +11 -0
  1049. package/dist/vocabulary/partsOfSpeech.generated.d.ts +6 -0
  1050. package/package.json +3 -3
  1051. package/dist/Dragging-CMZoLEWQ.js.map +0 -1
  1052. package/dist/MarkdownSanitizer-zTnnbrLe.js +0 -884
  1053. package/dist/MarkdownSanitizer-zTnnbrLe.js.map +0 -1
  1054. package/dist/PrefStore-Qv0e5y04.js.map +0 -1
  1055. package/dist/ScrollingRow-7n7Z-HIE.js +0 -88
  1056. package/dist/ScrollingRow-7n7Z-HIE.js.map +0 -1
  1057. package/dist/SitePages-CciwREek.js.map +0 -1
  1058. package/dist/SlottedItems-Du3aJwG1.js +0 -80
  1059. package/dist/SlottedItems-Du3aJwG1.js.map +0 -1
  1060. package/dist/UIButton-DFEds67r.js +0 -6
  1061. package/dist/UIButton-DFEds67r.js.map +0 -1
  1062. package/dist/UIInput-BodVbUoQ.js.map +0 -1
  1063. package/dist/UIKeys-Rh_gUZjP.js.map +0 -1
  1064. package/dist/UILabel-DgJUBzB_.js.map +0 -1
  1065. package/dist/UIMenu-zdcAtwTa.js +0 -42
  1066. package/dist/UIMenu-zdcAtwTa.js.map +0 -1
  1067. package/dist/UIRuntime-KH309p5B.js.map +0 -1
  1068. package/dist/UISegment-CMMIW7cZ.js.map +0 -1
  1069. package/dist/apple.palette-B4ivrNlM.js.map +0 -1
  1070. package/dist/classic-DCTQrteU.js.map +0 -1
  1071. package/dist/components.es-BOa_7gFF.js.map +0 -1
  1072. package/dist/crisp-VfYZlTph.js.map +0 -1
  1073. package/dist/crisp.theme-DRiePRdf.js +0 -6
  1074. package/dist/crisp.theme-DRiePRdf.js.map +0 -1
  1075. package/dist/dark-CbUdPe0a.js.map +0 -1
  1076. package/dist/dist-BLYIGZVK.js.map +0 -1
  1077. package/dist/emoji/cldr/0-DSUpV2d7.js.map +0 -1
  1078. package/dist/emoji/cldr/a-D_oB4vJ-.js.map +0 -1
  1079. package/dist/emoji/cldr/b-DX0W0Mda.js.map +0 -1
  1080. package/dist/emoji/cldr/c-DUHidpE9.js.map +0 -1
  1081. package/dist/emoji/cldr/d-CiCXZXay.js.map +0 -1
  1082. package/dist/emoji/cldr/e-DILJo3Ri.js.map +0 -1
  1083. package/dist/emoji/cldr/f-ByGFLyOq.js.map +0 -1
  1084. package/dist/emoji/cldr/g-BZ0FRsud.js.map +0 -1
  1085. package/dist/emoji/cldr/h-jtLdvRXQ.js.map +0 -1
  1086. package/dist/emoji/cldr/i-DcbJ5utE.js.map +0 -1
  1087. package/dist/emoji/cldr/j-BuEqP5nz.js.map +0 -1
  1088. package/dist/emoji/cldr/k-P1J6Gvze.js.map +0 -1
  1089. package/dist/emoji/cldr/l-28XcbsPr.js.map +0 -1
  1090. package/dist/emoji/cldr/m-DKgGJ8rW.js.map +0 -1
  1091. package/dist/emoji/cldr/n-DmPLP4F3.js.map +0 -1
  1092. package/dist/emoji/cldr/o-f98nt3s7.js.map +0 -1
  1093. package/dist/emoji/cldr/p-CxnsOTOt.js.map +0 -1
  1094. package/dist/emoji/cldr/r-D0GPRJ-Q.js.map +0 -1
  1095. package/dist/emoji/cldr/s-DcFuepnw.js.map +0 -1
  1096. package/dist/emoji/cldr/t-BvHgGpUr.js.map +0 -1
  1097. package/dist/emoji/cldr/u-ChFYHtUf.js.map +0 -1
  1098. package/dist/emoji/cldr/v-WmX3nWtZ.js.map +0 -1
  1099. package/dist/emoji/cldr/w-BPySQUWW.js.map +0 -1
  1100. package/dist/emoji/cldr/x-SC3r1n9O.js +0 -6
  1101. package/dist/emoji/cldr/x-SC3r1n9O.js.map +0 -1
  1102. package/dist/emoji/cldr/y-zB_yhTFg.js.map +0 -1
  1103. package/dist/emoji/cldr/z-BgJ94Cap.js.map +0 -1
  1104. package/dist/emoji/fomantic/0-CGf6gC3a.js +0 -10
  1105. package/dist/emoji/fomantic/0-CGf6gC3a.js.map +0 -1
  1106. package/dist/emoji/fomantic/a-CrqYlC21.js.map +0 -1
  1107. package/dist/emoji/fomantic/b-DneVHRdQ.js.map +0 -1
  1108. package/dist/emoji/fomantic/c-ClxKRuir.js.map +0 -1
  1109. package/dist/emoji/fomantic/d-Djqs_y4s.js.map +0 -1
  1110. package/dist/emoji/fomantic/e-CuF-jOQd.js.map +0 -1
  1111. package/dist/emoji/fomantic/f-D8VglrJ4.js.map +0 -1
  1112. package/dist/emoji/fomantic/g-Du_HFl6U.js.map +0 -1
  1113. package/dist/emoji/fomantic/h-CLE5tHnM.js.map +0 -1
  1114. package/dist/emoji/fomantic/i-BjOsrQDZ.js.map +0 -1
  1115. package/dist/emoji/fomantic/j-CyUDXKCu.js.map +0 -1
  1116. package/dist/emoji/fomantic/k-Clypg4R8.js.map +0 -1
  1117. package/dist/emoji/fomantic/l-DvLPdBh-.js.map +0 -1
  1118. package/dist/emoji/fomantic/m-B1lIb1kP.js.map +0 -1
  1119. package/dist/emoji/fomantic/n-Bgpp_ht5.js.map +0 -1
  1120. package/dist/emoji/fomantic/o-BhYZzpjp.js.map +0 -1
  1121. package/dist/emoji/fomantic/p-VLL0GK3m.js.map +0 -1
  1122. package/dist/emoji/fomantic/q-CKrtMwhc.js +0 -6
  1123. package/dist/emoji/fomantic/q-CKrtMwhc.js.map +0 -1
  1124. package/dist/emoji/fomantic/r-Bd1DjkkI.js.map +0 -1
  1125. package/dist/emoji/fomantic/s-Bqatw1W7.js.map +0 -1
  1126. package/dist/emoji/fomantic/t-Bs7IFhv3.js.map +0 -1
  1127. package/dist/emoji/fomantic/u-M6GfYC-U.js.map +0 -1
  1128. package/dist/emoji/fomantic/v-BKHNqkn0.js.map +0 -1
  1129. package/dist/emoji/fomantic/w-B_XvIu7h.js.map +0 -1
  1130. package/dist/emoji/fomantic/x-CG1_nzCF.js +0 -9
  1131. package/dist/emoji/fomantic/x-CG1_nzCF.js.map +0 -1
  1132. package/dist/emoji/fomantic/y-DPZaoIla.js.map +0 -1
  1133. package/dist/emoji/fomantic/z-FH-kPXch.js.map +0 -1
  1134. package/dist/fruity-BRVlgJZd.js +0 -6
  1135. package/dist/fruity-BRVlgJZd.js.map +0 -1
  1136. package/dist/fruity.theme-CbC7Jyvk.js.map +0 -1
  1137. package/dist/glass-x9tbbwVq.js +0 -6
  1138. package/dist/glass-x9tbbwVq.js.map +0 -1
  1139. package/dist/glass.theme-24wY2wH9.js +0 -6
  1140. package/dist/glass.theme-24wY2wH9.js.map +0 -1
  1141. package/dist/matrix-QY2gWbJ0.js +0 -6
  1142. package/dist/matrix-QY2gWbJ0.js.map +0 -1
  1143. package/dist/matrix.theme-_8xtwhDq.js +0 -6
  1144. package/dist/matrix.theme-_8xtwhDq.js.map +0 -1
  1145. package/dist/merlot-DOXLuUaU.js.map +0 -1
  1146. package/dist/merlot.theme-S-QnNGsw.js +0 -6
  1147. package/dist/merlot.theme-S-QnNGsw.js.map +0 -1
  1148. package/dist/midnight-BxlTQSfw.js.map +0 -1
  1149. package/dist/midnight.theme-wXbqRYLy.js +0 -6
  1150. package/dist/midnight.theme-wXbqRYLy.js.map +0 -1
  1151. package/dist/mockup-83ELBuVr.js +0 -6
  1152. package/dist/mockup-83ELBuVr.js.map +0 -1
  1153. package/dist/mockup.theme-DmpBgGBl.js +0 -6
  1154. package/dist/mockup.theme-DmpBgGBl.js.map +0 -1
  1155. package/dist/paper-M61nUilz.js.map +0 -1
  1156. package/dist/paper.theme-B8R5Jn5H.js +0 -6
  1157. package/dist/paper.theme-B8R5Jn5H.js.map +0 -1
  1158. package/dist/persist.types-D2m6wD-S.js.map +0 -1
  1159. package/dist/pop-CxXfytjk.js.map +0 -1
  1160. package/dist/pop.theme-CXzv8B9x.js +0 -6
  1161. package/dist/pop.theme-CXzv8B9x.js.map +0 -1
  1162. package/dist/search-CzSzx7bX.js.map +0 -1
  1163. package/dist/spell-By5Y3jKP.js +0 -6
  1164. package/dist/spell-By5Y3jKP.js.map +0 -1
  1165. package/dist/spell.theme-DxGj7qHx.js +0 -6
  1166. package/dist/spell.theme-DxGj7qHx.js.map +0 -1
  1167. package/dist/styles.en-CUUxNwHo.js.map +0 -1
  1168. package/dist/ui-theme-menu-CuIjr8Ou.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ui-nag.js","names":["ref={(element) => this.root = element}","this","part={this.partForName(\"nag\")}","<div ref={(element) => this.root = element} class={this.rootClass} part={this.partForName(\"nag\")}>\n <slot />\n {this.closeButton.draw()}\n </div>","E.DOMElement","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.state","E.untracked","E.onChange","E.on","E.Disclosure","E.CloseButton","E.after","_$getOwner","_$readShallow","_$setAttribute","__name","nagCSS","__name$1","__publicField","__decorateElement","__decoratorMetadata","__runInitializers","__privateAdd","ToggleCommands","__decoratorStart","nagVocabulary","storage","key","value","expires","cookie","store","expiry","EXPIRATION_SUFFIX","expiration","pair","COOKIE_SEPARATOR","name","rest","char","text","DEFAULT_PATH","options","path","domain","secure","sameSite","days","DAY","UINag_default","_tmpl$","_onCommand_dec","_appear_dec","_onConnectedChanged_dec","_dismissalStore_dec","_isHiddenByDismissal_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_isHiddenByDismissal","DOMElement","_UINag","UIComponent","proto","protoMerged","cssState","state","untracked","onChange","on","args","Disclosure","open","event","CloseButton","isServer","DEFAULT_STORAGE","DEFAULT_VALUE","DEFAULT_EXPIRES","samesite","isConnected","isReady","time","after","root","UI","SLIDE","reason","originalEvent","action","_self$","_el$","_el$2","ref","element","getOwner","insert","effect","readShallow","className","_p$","t","setAttribute","UINag"],"sources":["../src/components/ui-nag/UINag.en.ts","../src/components/ui-nag/DismissalStore.ts","../src/components/ui-nag/UINag.css?inline","../src/components/ui-nag/UINag.tsx","../src/components/ui-nag/index.ts"],"sourcesContent":["/**\n * Every name `<ui-nag>` uses: tag, attributes (kind + allowed values), events, slots, parts, states, texts.\n * Schema: `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-nag size=\"small\" bottom fixed inverted>` => `ui small bottom fixed inverted nag`.\n * - Persistence is opt-in: only a nag with a `key` reads or writes `storage`.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `<ui-nag>`\n * A nag: `<div class=\"ui ... nag\" part=\"nag\">` around the slot, with a close icon.\n ****************/\nexport const nagVocabulary = {\n tag: \"ui-nag\",\n icon: \"bell outline\",\n topics: [\"notifications\", \"messages\", \"overlays\", \"modules\"],\n aka: [\"banner\", \"cookie notice\", \"announcement bar\", \"sticky banner\"],\n noun: \"nag\",\n description: \"A nag is a persistent message that stays until dismissed, and can remember the dismissal.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Text size, `mini` ... `massive`; `medium` is the default.\"\n },\n { name: \"color\", group: \"appearance\", kind: \"color\", description: \"Hue: a filled bar in that colour.\" },\n {\n name: \"inverted\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description: \"Light instead of dark; a coloured one takes its tint.\"\n },\n { name: \"fixed\", group: \"layout\", kind: \"keyOnly\", description: \"Fixed to the viewport edge, over the page.\" },\n {\n name: \"overlay\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description: \"Over the page content at its edge (absolute), instead of pushing it down.\"\n },\n { name: \"bottom\", group: \"appearance\", kind: \"keyOnly\", description: \"At the bottom edge instead of the top.\" },\n {\n name: \"closable\",\n group: \"behaviour\",\n kind: \"boolean\",\n default: true,\n description: 'Shows the close icon; `closable=\"false\"` for a nag only script (or `display-time`) closes.'\n },\n {\n name: \"key\",\n group: \"behaviour\",\n kind: \"string\",\n description: \"Remembers the dismissal under this name, in `storage`; without one nothing is stored.\"\n },\n {\n name: \"value\",\n group: \"form\",\n kind: \"string\",\n default: \"dismiss\",\n description: \"What a dismissal stores; a stored `key` with another value doesn't count.\"\n },\n {\n name: \"storage\",\n group: \"behaviour\",\n kind: \"enum\",\n values: [\"local\", \"session\", \"cookie\"],\n default: \"cookie\",\n description: \"Where the dismissal is stored: `localStorage`, `sessionStorage` or a cookie (Fomantic's default).\"\n },\n {\n name: \"expires\",\n group: \"advanced\",\n kind: \"number\",\n default: 30,\n description: \"Days a dismissal lasts (`local` and `cookie`); `0` never expires.\"\n },\n {\n name: \"persistent\",\n group: \"advanced\",\n kind: \"boolean\",\n replaces: [\"persist\"],\n description: \"Shows even when dismissed before (stores nothing new either). Old name: `persist`.\"\n },\n {\n name: \"display-time\",\n group: \"behaviour\",\n kind: \"number\",\n description: \"Milliseconds before it hides itself (not a dismissal: nothing is stored); absent / `0`: stays.\"\n },\n { name: \"path\", group: \"advanced\", kind: \"string\", default: \"/\", description: \"Cookie `path`.\" },\n { name: \"domain\", group: \"advanced\", kind: \"string\", description: \"Cookie `domain`.\" },\n { name: \"secure\", group: \"advanced\", kind: \"boolean\", description: \"Cookie `secure`.\" },\n {\n name: \"samesite\",\n group: \"advanced\",\n kind: \"enum\",\n values: [\"lax\", \"strict\", \"none\"],\n property: \"sameSite\",\n description: \"Cookie `samesite`.\"\n }\n ],\n events: [\n { name: \"ui-opening\", detail: \"{}\", description: \"Shown, its entry animation finished (Fomantic's `onVisible`).\" },\n {\n name: \"ui-closing\",\n detail: \"{ reason: NagCloseReason, originalEvent?: Event }\",\n cancelable: true,\n description:\n \"About to close: the close icon (`close`), the display time (`timeout`) or `host.close()` (`dismiss`). \" +\n \"`preventDefault()` keeps it and stores nothing (Fomantic's `onHide` returning `false`).\"\n },\n {\n name: \"ui-closed\",\n detail: \"{ reason: NagCloseReason }\",\n description: \"Closed, its exit animation finished (Fomantic's `onHidden`); the host is `hidden` now.\"\n }\n ],\n slots: [{ name: \"\", description: 'The text; a `<span class=\"title\">` is set off in the title colour.' }],\n parts: [\n { name: \"nag\", description: \"The nag bar.\" },\n { name: \"close\", description: \"The close icon.\" }\n ],\n states: [{ name: \"dismissed\", description: \"Dismissed now or before (stored), so hidden.\" }],\n texts: [{ key: \"close\", text: \"Close\", description: \"Accessible name of the close icon.\" }]\n} as const satisfies E.ComponentVocabulary\n","import type { UIT } from \"spell/ui/core\"\n\n/****************\n * ### `DismissalStore`\n * Where a `<ui-nag>` remembers that it was dismissed (Fomantic's nag `storage`):\n * `localStorage`, `sessionStorage` or a cookie, holding `value` under `key`.\n * - Plain DOM, no Solid: `UINag` makes one per access, from its current attributes.\n * - EVERY access is guarded: storage can be missing (SSR), blocked or full.\n * - blocked: privacy settings throw a `SecurityError` on the mere `localStorage` getter\n * - a failed read counts as \"not dismissed\", a failed write is dropped:\n * the nag still renders and still closes, it just won't remember\n * - Expiry (`expires`, days; `0` never):\n * - a cookie: its own `expires`\n * - `localStorage`: a second item, `<key>ExpirationDate` (Fomantic's `expirationKey`), holding the UTC date,\n * checked (and the pair removed) on read\n * - `sessionStorage` ends with the tab anyway\n * - Cookies: Fomantic's RFC 6265 encoding; `path` (default `/`), `domain`, `secure`, `samesite`.\n * - NOT on `spell/util`'s `PrefStore`, on purpose:\n * its keys are the page author's, whole and with no store name (Fomantic's), and it keeps cookies too.\n ****************/\nexport class DismissalStore {\n /** Where. */\n readonly storage: UIT.NagStorage\n\n /** Item / cookie name. */\n readonly key: string\n\n /** What a dismissal stores. */\n readonly value: string\n\n /** Days a dismissal lasts; `0` for no expiry. */\n readonly expires: number\n\n /** Cookie options. */\n private readonly cookie: DismissalCookieOptions\n\n constructor({ storage, key, value, expires, cookie = {} }: DismissalStoreProps) {\n this.storage = storage\n this.key = key\n this.value = value\n this.expires = expires\n this.cookie = cookie\n }\n\n /**\n * Was it dismissed (and not expired)?\n * - `false` when the storage can't be read.\n * - Reads the storage on every access.\n */\n get isDismissed(): boolean {\n try {\n return this.read() === this.value\n } catch {\n return false\n }\n }\n\n /** Remember the dismissal; false when the storage refused. NEVER throws. */\n dismiss(): boolean {\n try {\n if (this.storage === \"cookie\") {\n this.writeCookie(this.value, this.expiryDate(this.expires))\n return true\n }\n const store = this.webStorage()\n if (!store) return false\n const expiry = this.expiryDate(this.expires)\n if (this.storage === \"local\" && expiry) store.setItem(this.key + EXPIRATION_SUFFIX, expiry)\n store.setItem(this.key, this.value)\n return true\n } catch {\n return false\n }\n }\n\n /** Forget the dismissal (Fomantic's `clear`). NEVER throws. */\n clear() {\n try {\n if (this.storage === \"cookie\") return this.writeCookie(\"\", this.expiryDate(-1))\n const store = this.webStorage()\n store?.removeItem(this.key)\n store?.removeItem(this.key + EXPIRATION_SUFFIX)\n } catch {\n // nothing stored that we could reach\n }\n }\n\n ////////////////\n // ## Reading\n ////////////////\n\n /** The stored value, `undefined` when absent or expired. MAY throw (blocked storage). */\n private read(): string | undefined {\n if (this.storage === \"cookie\") return this.readCookie()\n const store = this.webStorage()\n if (!store) return undefined\n if (this.storage === \"local\") {\n const expiration = store.getItem(this.key + EXPIRATION_SUFFIX)\n if (expiration && new Date(expiration) < new Date()) {\n store.removeItem(this.key)\n store.removeItem(this.key + EXPIRATION_SUFFIX)\n return undefined\n }\n }\n return store.getItem(this.key) ?? undefined\n }\n\n /** `localStorage` / `sessionStorage`, or `undefined` outside a browser. MAY throw (blocked storage). */\n private webStorage(): Storage | undefined {\n if (typeof window === \"undefined\") return undefined\n return this.storage === \"session\" ? window.sessionStorage : window.localStorage\n }\n\n /** The cookie's decoded value. MAY throw (a sandboxed document). */\n private readCookie(): string | undefined {\n if (typeof document === \"undefined\") return undefined\n for (const pair of document.cookie.split(COOKIE_SEPARATOR)) {\n const [name = \"\", ...rest] = pair.split(\"=\")\n if (name.replace(/(%[\\da-f]{2})+/gi, decodeURIComponent) === this.key) {\n return decodeURIComponent(rest.join(\"=\"))\n }\n }\n return undefined\n }\n\n ////////////////\n // ## Writing\n ////////////////\n\n /** Set the cookie to `value`, expiring at `expires` (a UTC date) or with the session. MAY throw. */\n private writeCookie(value: string, expires: string | undefined) {\n if (typeof document === \"undefined\") return\n // RFC 6265 encoding, as Fomantic's nag\n const name = encodeURIComponent(this.key)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, (char) => `%${char.charCodeAt(0).toString(16).toUpperCase()}`)\n const text = encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[B-D])/g, decodeURIComponent)\n const { path = DEFAULT_PATH, domain, secure, sameSite } = this.cookie\n const options = [\n expires && `expires=${expires}`,\n path && `path=${path}`,\n domain && `domain=${domain}`,\n secure && \"secure\",\n sameSite && `samesite=${sameSite}`\n ].filter(Boolean)\n document.cookie = [`${name}=${text}`, ...options].join(COOKIE_SEPARATOR)\n }\n\n /** UTC date `days` from now, or `undefined` for `0` (no expiry). */\n private expiryDate(days: number): string | undefined {\n if (!days || !Number.isFinite(days)) return undefined\n return new Date(Date.now() + days * DAY).toUTCString()\n }\n}\n\n/** Constructor props for `DismissalStore`. */\nexport type DismissalStoreProps = {\n /** where: `localStorage`, `sessionStorage` or a cookie */\n storage: UIT.NagStorage\n /** item / cookie name */\n key: string\n /** what a dismissal stores */\n value: string\n /** days; `0` for no expiry */\n expires: number\n /** cookie options; read only with `storage: \"cookie\"` */\n cookie?: DismissalCookieOptions\n}\n\n/** Cookie options of a `DismissalStore`. */\nexport type DismissalCookieOptions = {\n /** cookie path. Default: `/` */\n path?: string\n /** cookie domain; default the page's host */\n domain?: string\n /** HTTPS only */\n secure?: boolean\n /** `samesite` value, as written (`lax`, `strict`, `none`) */\n sameSite?: string\n}\n\n/** Suffix of the expiry item in `localStorage` (Fomantic's `expirationKey`). */\nconst EXPIRATION_SUFFIX = \"ExpirationDate\"\n\n/** Default cookie path. */\nconst DEFAULT_PATH = \"/\"\n\n/** Separator of `document.cookie`'s pairs, and of a cookie's options. */\nconst COOKIE_SEPARATOR = \"; \"\n\n/** ms in a day. */\nconst DAY = 864e5\n","/*\n * `<ui-nag>`: port of Fomantic's `nag.less` + `nag.variables`.\n * - Shadow markup contract (class grammar; a nag has no better element than `<div>`):\n * `<div class=\"ui [size] [color] [bottom] [fixed] [inverted] [overlay] nag\" part=\"nag\">`,\n * holding the default `<slot>` and, when `closable`,\n * `<button type=\"button\" class=\"close icon\" part=\"close\" aria-label=\"...\">svg`.\n * - The DOM element is `display: contents`: the root IS the bar,\n * so `fixed` / `overlay` position it against the viewport / the nearest positioned ancestor,\n * exactly as Fomantic's markup.\n * `hidden` on the DOM element hides it.\n * - Public tokens (`--ui-nag-*`, the theming surface) are NEVER declared here:\n * the token block reads each through a private alias, and every rule reads the alias:\n * `--_ui-nag-radius: var(--ui-nag-radius, var(--ui-radius))`.\n * So a value set on `:root`, an ancestor, the DOM element, `::part(nag)` or in the app stylesheet\n * reaches the bar (`notes/theming.md` \"Component tokens\").\n * - Colours by remap (`colors.css`): a hue fills the bar (`--ui-color`, text `--ui-color-on`).\n * `inverted` is light; a coloured inverted one takes the hue's tint (`--ui-color-background`, `--ui-color-text`).\n * - Sizes by `--ui-scale` (`sizes.css`); `huge` and `massive` tighten the line height, as Fomantic's.\n * - NOTE: deviations, for contrast (WCAG 1.4.3 / 1.4.11):\n * - Fomantic's `#909090` bar with dark text and a WHITE title (3.2:1) is a dark grey bar with light text here\n * - the close icon rests at 0.7 opacity, not 0.4\n * - NOTE: left out: the `.ui.nags` group (several nags stacked in one bar); `a.ui.nag` links (slot a link).\n */\n\n@layer ui.components.nag.types, ui.components.nag.content, ui.components.nag.variations, ui.components.nag.states;\n\n/*******************************\n Nag\n*******************************/\n\n@layer ui.components.nag.types {\n :host {\n display: contents;\n }\n\n /* Tokens: one private alias per `nag.variables` entry that still matters, from the global tokens. */\n .ui.nag {\n --_ui-nag-background: var(--ui-nag-background, oklch(0.42 0 0));\n --_ui-nag-color: var(--ui-nag-color, var(--ui-text-inverted-color));\n --_ui-nag-title-color: var(--ui-nag-title-color, oklch(1 0 0));\n --_ui-nag-close-color: var(--ui-nag-close-color, oklch(1 0 0));\n --_ui-nag-inverted-background: var(--ui-nag-inverted-background, var(--ui-surface-strong));\n --_ui-nag-inverted-color: var(--ui-nag-inverted-color, var(--ui-text-color));\n --_ui-nag-inverted-title-color: var(--ui-nag-inverted-title-color, var(--ui-text-muted));\n --_ui-nag-opacity: var(--ui-nag-opacity, 0.95);\n --_ui-nag-padding: var(--ui-nag-padding, 0.75em 1em);\n --_ui-nag-shadow: var(--ui-nag-shadow, 0 1px 2px 0 oklch(0 0 0 / 0.2));\n --_ui-nag-radius: var(--ui-nag-radius, var(--ui-radius));\n --_ui-nag-z-index: var(--ui-nag-z-index, 999);\n --_ui-nag-title-margin: var(--ui-nag-title-margin, 0 0.5em);\n --_ui-nag-close-right: var(--ui-nag-close-right, 1em);\n --_ui-nag-close-opacity: var(--ui-nag-close-opacity, 0.7);\n --_ui-nag-duration: var(--ui-nag-duration, var(--ui-duration-normal));\n --ui-animation-duration: var(--ui-duration-slower);\n position: relative;\n top: 0;\n left: 0;\n z-index: var(--_ui-nag-z-index);\n box-sizing: border-box;\n display: block;\n width: 100%;\n min-height: 0;\n margin: 0;\n padding: var(--_ui-nag-padding);\n border-radius: 0 0 var(--_ui-nag-radius) var(--_ui-nag-radius);\n background: var(--ui-color, var(--_ui-nag-background));\n box-shadow: var(--_ui-nag-shadow);\n color: var(--ui-color-on, var(--_ui-nag-color));\n font-size: calc(var(--ui-font-size) * var(--ui-scale, 1));\n line-height: var(--ui-line-height);\n text-align: center;\n opacity: var(--_ui-nag-opacity);\n transition: background var(--_ui-nag-duration) var(--ui-ease);\n }\n /* Neither fixed nor over the page: rounded all round. */\n .ui.nag:not(.overlay, .fixed) {\n border-radius: var(--_ui-nag-radius);\n }\n}\n\n/*******************************\n Content\n*******************************/\n\n@layer ui.components.nag.content {\n /* Title: set off in its own colour. */\n .ui.nag > .title,\n .ui.nag ::slotted(.title) {\n display: inline-block;\n margin: var(--_ui-nag-title-margin);\n color: var(--ui-color-on, var(--_ui-nag-title-color));\n }\n\n /* Close icon: a bare button, vertically centred at the end. */\n .ui.nag > .close.icon {\n position: absolute;\n top: 50%;\n right: var(--_ui-nag-close-right);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 1.5em;\n height: 1.5em;\n margin: -0.75em 0 0;\n padding: 0.25em;\n border: 0;\n border-radius: var(--ui-radius-s);\n background: none;\n color: var(--ui-color-on, var(--_ui-nag-close-color));\n font: inherit;\n opacity: var(--_ui-nag-close-opacity);\n cursor: var(--ui-control-cursor);\n transition: opacity var(--_ui-nag-duration) var(--ui-ease);\n }\n .ui.nag > .close.icon > svg {\n width: 1em;\n height: 1em;\n }\n .ui.nag:has(> .close.icon) {\n padding-inline-end: calc(var(--_ui-nag-close-right) + 2em);\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.nag.variations {\n /* Overlay: over the page content at its edge. */\n .ui.overlay.nag {\n position: absolute;\n }\n\n /* Fixed: to the viewport edge. */\n .ui.fixed.nag {\n position: fixed;\n }\n\n /* Bottom. */\n .ui.bottom.nag {\n top: auto;\n bottom: 0;\n border-radius: var(--_ui-nag-radius) var(--_ui-nag-radius) 0 0;\n }\n .ui.bottom.nag:not(.overlay, .fixed) {\n border-radius: var(--_ui-nag-radius);\n }\n\n /* Inverted: light, with muted title and close icon. */\n .ui.inverted.nag {\n background: var(--ui-color-background, var(--_ui-nag-inverted-background));\n color: var(--ui-color-text, var(--_ui-nag-inverted-color));\n }\n .ui.inverted.nag > .title,\n .ui.inverted.nag ::slotted(.title),\n .ui.inverted.nag > .close.icon {\n color: var(--ui-color-text, var(--_ui-nag-inverted-title-color));\n }\n\n /* Big sizes: a tight line. */\n .ui.huge.nag,\n .ui.massive.nag {\n line-height: 1;\n }\n}\n\n/*******************************\n States\n*******************************/\n\n@layer ui.components.nag.states {\n .ui.nag:hover {\n opacity: 1;\n }\n .ui.nag > .close.icon:hover,\n .ui.nag > .close.icon:focus-visible {\n opacity: 1;\n }\n}\n","import { isServer, type JSX } from \"@solidjs/web\"\n\nimport { E, UI, UIT } from \"spell/ui/core\"\nimport { nagVocabulary } from \"./UINag.en\"\nimport { DismissalStore } from \"./DismissalStore\"\n\nimport nagCSS from \"./UINag.css?inline\"\n\n/****************\n * ### `DOMNagElement`\n * The DOM element of `<ui-nag>`: it adds the nag's script API,\n * `close()`, `show()`, `clear()` and `dismissed`, which its component does.\n *\n * - NOTE: `DOMElement` checks its members against the attributes' property names; none of these is one.\n * - Above the component: its `elementSetup` reads this class while the component is defined.\n ****************/\nexport class DOMNagElement extends E.DOMElement<UINag> {\n /**\n * Dismiss it now, reason `dismiss` (the cancelable `ui-closing` first), storing the dismissal; true when it closes.\n */\n close(): boolean {\n return this.component?.close() ?? false\n }\n\n /** Show it again, unless a dismissal is stored (and it isn't `persistent`); true when it shows. */\n show(): boolean {\n return this.component?.show() ?? false\n }\n\n /** Forget a stored dismissal (Fomantic's `clear`). */\n clear() {\n this.component?.clearDismissal()\n }\n\n /** A dismissal is stored (and not expired); `false` without a `key`. */\n get dismissed(): boolean {\n return this.component?.isDismissed ?? false\n }\n}\n\n/****************\n * ### `UINag`\n * The component behind `<ui-nag>`: a bar at the top (or `bottom`) of the page or its container\n * that stays until dismissed, and can remember the dismissal.\n * Its shadow DOM: `<div class=\"ui … nag\" part=\"nag\">` around the slot, with a close icon.\n *\n * - Remembering (opt-in, with `key`): closing it from its icon (or `domElement.close()`)\n * stores `value` under `key` in `storage` (`DismissalStore`: local / session / cookie, `expires` days).\n * - A nag whose dismissal is stored is `hidden` from the start (set on the DOM element as it first connects,\n * before anything paints), unless it's `persistent`.\n * - Storage that is blocked or missing just doesn't remember: the nag still shows and closes.\n *\n * - Closing: the cancelable `ui-closing` (with a `reason`) first,\n * then the exit animation (Fomantic's `slide`), `hidden` on the DOM element, and `ui-closed`.\n * - It never removes itself.\n * - `display-time` hides it without storing anything.\n *\n * - Invoker commands (`UIT.ToggleCommands`):\n * - a `<button commandfor command=\"--show\">` shows it (`show()`)\n * - `--close` closes it (`close()`, so a `key` remembers it)\n * - `--toggle` picks by `hidden`\n *\n * - No role: a banner that must be announced gets `role` / `aria-live` from the page.\n * The close icon is a real `<button>` with a translated label.\n ****************/\nexport class UINag extends E.UIComponent<Vocabulary> {\n @E.proto static vocabulary = nagVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { nag: nagCSS },\n DOMElement: DOMNagElement\n } satisfies Partial<E.ElementSetup>\n\n constructor(...args: ConstructorParameters<typeof E.UIComponent>) {\n super(...args)\n // SIDE EFFECT: a stored dismissal hides the DOM element before it first paints\n if (!isServer && this.isHiddenByDismissal) this.domElement.hidden = true\n this.domElement.addReleaseCallback(() => this.displayTimer?.cancel())\n }\n\n ////////////////\n // ## Dismissal\n ////////////////\n\n /** Hidden because it was dismissed, now or before (stored): `:state(dismissed)`. */\n @E.cssState(\"dismissed\")\n @E.state\n accessor isHiddenByDismissal = this.isHiddenByStorage\n\n /** A dismissal is stored (and not expired). `false` without a `key`. */\n get isDismissed(): boolean {\n return this.dismissalStore?.isDismissed ?? false\n }\n\n /** Forget a stored dismissal. */\n clearDismissal() {\n this.dismissalStore?.clear()\n }\n\n /** A stored dismissal hides it: dismissed, and not `persistent`. */\n private get isHiddenByStorage(): boolean {\n return !this.persistent && this.isDismissed\n }\n\n /**\n * The dismissal store for the current attributes, or `undefined` without a `key`.\n * - A new one per read, untracked: nothing renders from it.\n */\n @E.untracked\n private get dismissalStore(): DismissalStore | undefined {\n const { key, value, storage, expires, path, domain, secure, samesite } = this\n if (!key) return undefined\n return new DismissalStore({\n storage: (storage ?? DEFAULT_STORAGE) as UIT.NagStorage,\n key,\n value: value ?? DEFAULT_VALUE,\n expires: expires ?? DEFAULT_EXPIRES,\n cookie: {\n path: path ?? undefined,\n domain: domain ?? undefined,\n secure: !!secure,\n sameSite: samesite ?? undefined\n }\n })\n }\n\n ////////////////\n // ## Showing\n ////////////////\n\n /** The nag bar. */\n private root?: HTMLDivElement\n\n /** Pending `display-time`. */\n private displayTimer?: E.CancelablePromise<unknown>\n\n /** Appeared (entry animation, `ui-opening`, timer) since it last showed. */\n private hasShown = false\n\n /**\n * Appear once connected (and not hidden), waiting for the runtime (`isReady`) too, as the render does:\n * appearing animates the rendered bar.\n * - The cleanup drops a pending `display-time`.\n */\n @E.onChange(\"isConnected\", \"isReady\")\n protected onConnectedChanged(isConnected: boolean, isReady: boolean) {\n if (isConnected && isReady) this.appear()\n return () => this.displayTimer?.cancel()\n }\n\n /** Entry animation, `ui-opening` and the display time -- once per showing. */\n @E.untracked\n private appear() {\n if (this.hasShown || this.domElement.hidden) return\n this.hasShown = true\n const time = this.displayTime ?? 0\n if (time > 0) this.displayTimer = E.after(time / 1000, () => this.close(\"timeout\"))\n const root = this.root\n const entered = root\n ? UI.transitions.animate({ element: root, name: SLIDE, direction: UIT.IN })\n : Promise.resolve(true)\n void entered.then(() => {\n if (!this.isClosing) this.send(\"ui-opening\", {})\n })\n }\n\n /** Show again, unless a stored dismissal says not (and it isn't `persistent`). True when it shows. */\n show(): boolean {\n if (this.isHiddenByStorage || this.isClosing || (!this.domElement.hidden && this.hasShown)) return false\n this.isHiddenByDismissal = false\n this.domElement.hidden = false\n this.appear()\n return true\n }\n\n ////////////////\n // ## Closing\n ////////////////\n\n /** Closing: no second close until it has hidden. */\n private isClosing = false\n\n /**\n * Shown until it closes: the cancelable `ui-closing` as it's asked to close, `ui-closed` once it has gone.\n * - Its `ui-opening` comes as it has slid in (`appear()`), not as a request: `show()` is the page's.\n */\n readonly disclosure = new E.Disclosure({\n component: this,\n kept: {\n isOpen: () => !this.isClosing && !this.domElement.hidden,\n setOpen: (open) => {\n if (!open) this.startClosing()\n }\n },\n detail: (_open, originalEvent): UIT.NagCloseDetail => ({ reason: this.closeReason, originalEvent }),\n afterDetail: (): UIT.NagCloseDetail => ({ reason: this.closeReason })\n })\n\n /** Why it was asked to close: `ui-closing`'s and `ui-closed`'s `reason`. */\n private closeReason: UIT.NagCloseReason = \"dismiss\"\n\n /**\n * Close for `reason`: the cancelable `ui-closing`, the dismissal stored (not for `timeout`),\n * then the exit animation, `hidden` on the DOM element and `ui-closed`. True when it closes.\n */\n close(reason: UIT.NagCloseReason = \"dismiss\", originalEvent?: Event): boolean {\n this.closeReason = reason\n return this.disclosure.close(originalEvent)\n }\n\n /** `ui-closing` wasn't cancelled: the dismissal stored, the exit animation, `hidden`, `ui-closed`. */\n private startClosing() {\n const reason = this.closeReason\n this.isClosing = true\n this.displayTimer?.cancel()\n if (reason !== \"timeout\") {\n this.dismissalStore?.dismiss()\n this.isHiddenByDismissal = true\n }\n const root = this.root\n const exited = root\n ? UI.transitions.animate({ element: root, name: SLIDE, direction: UIT.OUT })\n : Promise.resolve(true)\n void exited.then(() => {\n this.isClosing = false\n this.hasShown = false\n this.domElement.hidden = true\n this.disclosure.sendAfter(false)\n })\n }\n\n /** An invoker command aimed at the DOM element (`UIT.ToggleCommands`): open means not `hidden`. */\n @E.on(\"command\")\n protected onCommand(event: Event) {\n const action = UIT.ToggleCommands.action(event, !this.domElement.hidden)\n if (action === \"show\") this.show()\n else if (action === \"close\") this.close(\"dismiss\", event)\n }\n\n /** Close icon: dismiss (and remember). */\n private readonly onCloseIcon = (event: MouseEvent) => {\n event.stopPropagation()\n this.close(\"close\", event)\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n /** The close icon, while `closable`. */\n readonly closeButton = new E.CloseButton({\n owner: this,\n shows: () => !!this.closable,\n label: () => this.translationForKey(\"close\"),\n part: this.partForName(\"close\"),\n onClick: (event) => this.onCloseIcon(event)\n })\n\n render(): JSX.Element {\n return (\n <div ref={(element) => (this.root = element)} class={this.rootClass} part={this.partForName(\"nag\")}>\n <slot />\n {this.closeButton.draw()}\n </div>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UINag extends E.AttributeValues<Vocabulary> {}\n\n/** `UI.transitions` animation in and out (Fomantic's `slide`). */\nconst SLIDE = \"slide-down\"\n\n/** Storage of a nag that names none: Fomantic's default. */\nconst DEFAULT_STORAGE: UIT.NagStorage = \"cookie\"\n\n/** Value a dismissal stores by default. */\nconst DEFAULT_VALUE = \"dismiss\"\n\n/** Days a dismissal lasts by default. */\nconst DEFAULT_EXPIRES = 30\n\n/** The vocabulary type, for brevity. */\ntype Vocabulary = typeof nagVocabulary\n","/**\n * The nag family: defines `<ui-nag>` and exports its component, `UINag`, its DOM element, `DOMNagElement`,\n * and `DismissalStore`, where a nag remembers it was dismissed.\n * - SIDE EFFECT: importing it defines the tag.\n * - Also the library's `spell/ui/ui-nag` entry (its size is in `notes/report.md`).\n */\n\nimport { DOMNagElement, UINag } from \"./UINag\"\nimport { DismissalStore } from \"./DismissalStore\"\n\nUINag.define()\n\nexport { UINag, DOMNagElement, DismissalStore }\n"],"mappings":";;;;AAcA,IAAa6B,IAAgB;CAC3B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAiB;EAAY;EAAY;CAAS;CAC3D,KAAK;EAAC;EAAU;EAAiB;EAAoB;CAAe;CACpE,MAAM;CACN,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN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C,EAAAwC,GAAA,IAAO,cAAhBF,GADWK,CAAA,GAEI3C,EAAAwC,GAAA,IAAO,gBAAtBH,GAFWM,CAAA,GAAN1C,EAAAuC,GAAMG,CAAA,GAAwC/C,EAAA+C,GAAA,OAAA,GAC1C5C,EADE4C,GACK,cAAazC,EAApBsC,GAAA,IADEG,GACkBrC,CAAA,CAAA,GAApBJ,EAAAsC,GAAA,IADEG,CAAA,GAEI5C,EAFJ4C,GAEW,gBAAezC,EAAtBsC,GAAA,IAFJG,GAE0B;CACnC,aAAa,EAAE,KAAK9C,EAAO;CAC3B,YAAY;AACd,CAAA,CAAA,GAHeK,EAAAsC,GAAA,IAFJG,CAAA;AAAN,IAAM0C,IAAN1C,GA8MDyB,IAAQ,cAGRV,IAAkC,UAGlCC,IAAgB,WAGhBC,IAAkB;;;AC9QxByB,EAAM,OAAO"}
1
+ {"version":3,"file":"ui-nag.js","names":["ref={(element) => this.root = element}","this","part={this.partForName(\"nag\")}","<div ref={(element) => this.root = element} class={this.rootClass} part={this.partForName(\"nag\")}>\n <slot />\n {this.closeButton.draw()}\n </div>","E.DOMElement","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.state","E.untracked","E.onChange","E.on","E.Disclosure","E.CloseButton","E.after","_$getOwner","_$setAttribute","__name","nagCSS","__decoratorStart","__publicField","__name$1","ToggleCommands","__decorateElement","__decoratorMetadata","__runInitializers","__privateAdd","nagVocabulary","storage","key","value","expires","cookie","store","expiry","EXPIRATION_SUFFIX","expiration","pair","COOKIE_SEPARATOR","name","rest","char","text","DEFAULT_PATH","options","path","domain","secure","sameSite","days","DAY","UINag_default","_tmpl$","_onCommand_dec","_appear_dec","_onConnectedChanged_dec","_dismissalStore_dec","_isHiddenByDismissal_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_isHiddenByDismissal","DOMElement","_UINag","UIComponent","proto","protoMerged","cssState","state","untracked","onChange","on","args","Disclosure","open","event","CloseButton","isServer","DEFAULT_STORAGE","DEFAULT_VALUE","DEFAULT_EXPIRES","samesite","isConnected","isReady","time","after","root","UI","SLIDE","reason","originalEvent","action","_self$","_el$","_el$2","ref","element","getOwner","insert","effect","readShallow","className","_p$","t","setAttribute","UINag"],"sources":["../src/components/ui-nag/UINag.en.ts","../src/components/ui-nag/DismissalStore.ts","../src/components/ui-nag/UINag.tsx","../src/components/ui-nag/index.ts"],"sourcesContent":["/**\n * Every name `<ui-nag>` uses: tag, attributes (kind + allowed values), events, slots, parts, states, texts.\n * Schema: `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-nag size=\"small\" bottom fixed inverted>` => `ui small bottom fixed inverted nag`.\n * - Persistence is opt-in: only a nag with a `key` reads or writes `storage`.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `<ui-nag>`\n * A nag: `<div class=\"ui ... nag\" part=\"nag\">` around the slot, with a close icon.\n ****************/\nexport const nagVocabulary = {\n tag: \"ui-nag\",\n icon: \"bell outline\",\n topics: [\"notifications\", \"messages\", \"overlays\", \"modules\"],\n aka: [\"banner\", \"cookie notice\", \"announcement bar\", \"sticky banner\"],\n noun: \"nag\",\n partOfSpeech: \"structure\",\n description: \"A nag is a persistent message that stays until dismissed, and can remember the dismissal.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Text size, `mini` ... `massive`; `medium` is the default.\"\n },\n { name: \"color\", group: \"appearance\", kind: \"color\", description: \"Hue: a filled bar in that colour.\" },\n {\n name: \"inverted\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description: \"Light instead of dark; a coloured one takes its tint.\"\n },\n { name: \"fixed\", group: \"layout\", kind: \"keyOnly\", description: \"Fixed to the viewport edge, over the page.\" },\n {\n name: \"overlay\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description: \"Over the page content at its edge (absolute), instead of pushing it down.\"\n },\n { name: \"bottom\", group: \"appearance\", kind: \"keyOnly\", description: \"At the bottom edge instead of the top.\" },\n {\n name: \"closable\",\n group: \"behaviour\",\n kind: \"boolean\",\n default: true,\n description: 'Shows the close icon; `closable=\"false\"` for a nag only script (or `display-time`) closes.'\n },\n {\n name: \"key\",\n group: \"behaviour\",\n kind: \"string\",\n description: \"Remembers the dismissal under this name, in `storage`; without one nothing is stored.\"\n },\n {\n name: \"value\",\n group: \"form\",\n kind: \"string\",\n default: \"dismiss\",\n description: \"What a dismissal stores; a stored `key` with another value doesn't count.\"\n },\n {\n name: \"storage\",\n group: \"behaviour\",\n kind: \"enum\",\n values: [\"local\", \"session\", \"cookie\"],\n default: \"cookie\",\n description: \"Where the dismissal is stored: `localStorage`, `sessionStorage` or a cookie (Fomantic's default).\"\n },\n {\n name: \"expires\",\n group: \"advanced\",\n kind: \"number\",\n default: 30,\n description: \"Days a dismissal lasts (`local` and `cookie`); `0` never expires.\"\n },\n {\n name: \"persistent\",\n group: \"advanced\",\n kind: \"boolean\",\n replaces: [\"persist\"],\n description: \"Shows even when dismissed before (stores nothing new either). Old name: `persist`.\"\n },\n {\n name: \"display-time\",\n group: \"behaviour\",\n kind: \"number\",\n description: \"Milliseconds before it hides itself (not a dismissal: nothing is stored); absent / `0`: stays.\"\n },\n { name: \"path\", group: \"advanced\", kind: \"string\", default: \"/\", description: \"Cookie `path`.\" },\n { name: \"domain\", group: \"advanced\", kind: \"string\", description: \"Cookie `domain`.\" },\n { name: \"secure\", group: \"advanced\", kind: \"boolean\", description: \"Cookie `secure`.\" },\n {\n name: \"samesite\",\n group: \"advanced\",\n kind: \"enum\",\n values: [\"lax\", \"strict\", \"none\"],\n property: \"sameSite\",\n description: \"Cookie `samesite`.\"\n }\n ],\n events: [\n { name: \"ui-opening\", detail: \"{}\", description: \"Shown, its entry animation finished (Fomantic's `onVisible`).\" },\n {\n name: \"ui-closing\",\n detail: \"{ reason: NagCloseReason, originalEvent?: Event }\",\n cancelable: true,\n description:\n \"About to close: the close icon (`close`), the display time (`timeout`) or `host.close()` (`dismiss`). \" +\n \"`preventDefault()` keeps it and stores nothing (Fomantic's `onHide` returning `false`).\"\n },\n {\n name: \"ui-closed\",\n detail: \"{ reason: NagCloseReason }\",\n description: \"Closed, its exit animation finished (Fomantic's `onHidden`); the host is `hidden` now.\"\n }\n ],\n slots: [{ name: \"\", description: 'The text; a `<span class=\"title\">` is set off in the title colour.' }],\n parts: [\n { name: \"nag\", description: \"The nag bar.\" },\n { name: \"close\", description: \"The close icon.\" }\n ],\n states: [{ name: \"dismissed\", description: \"Dismissed now or before (stored), so hidden.\" }],\n texts: [{ key: \"close\", text: \"Close\", description: \"Accessible name of the close icon.\" }]\n} as const satisfies E.ComponentVocabulary\n","import type { UIT } from \"spell/ui/core\"\n\n/****************\n * ### `DismissalStore`\n * Where a `<ui-nag>` remembers that it was dismissed (Fomantic's nag `storage`):\n * `localStorage`, `sessionStorage` or a cookie, holding `value` under `key`.\n * - Plain DOM, no Solid: `UINag` makes one per access, from its current attributes.\n * - EVERY access is guarded: storage can be missing (SSR), blocked or full.\n * - blocked: privacy settings throw a `SecurityError` on the mere `localStorage` getter\n * - a failed read counts as \"not dismissed\", a failed write is dropped:\n * the nag still renders and still closes, it just won't remember\n * - Expiry (`expires`, days; `0` never):\n * - a cookie: its own `expires`\n * - `localStorage`: a second item, `<key>ExpirationDate` (Fomantic's `expirationKey`), holding the UTC date,\n * checked (and the pair removed) on read\n * - `sessionStorage` ends with the tab anyway\n * - Cookies: Fomantic's RFC 6265 encoding; `path` (default `/`), `domain`, `secure`, `samesite`.\n * - NOT on `spell/util`'s `PrefStore`, on purpose:\n * its keys are the page author's, whole and with no store name (Fomantic's), and it keeps cookies too.\n ****************/\nexport class DismissalStore {\n /** Where. */\n readonly storage: UIT.NagStorage\n\n /** Item / cookie name. */\n readonly key: string\n\n /** What a dismissal stores. */\n readonly value: string\n\n /** Days a dismissal lasts; `0` for no expiry. */\n readonly expires: number\n\n /** Cookie options. */\n private readonly cookie: DismissalCookieOptions\n\n constructor({ storage, key, value, expires, cookie = {} }: DismissalStoreProps) {\n this.storage = storage\n this.key = key\n this.value = value\n this.expires = expires\n this.cookie = cookie\n }\n\n /**\n * Was it dismissed (and not expired)?\n * - `false` when the storage can't be read.\n * - Reads the storage on every access.\n */\n get isDismissed(): boolean {\n try {\n return this.read() === this.value\n } catch {\n return false\n }\n }\n\n /** Remember the dismissal; false when the storage refused. NEVER throws. */\n dismiss(): boolean {\n try {\n if (this.storage === \"cookie\") {\n this.writeCookie(this.value, this.expiryDate(this.expires))\n return true\n }\n const store = this.webStorage()\n if (!store) return false\n const expiry = this.expiryDate(this.expires)\n if (this.storage === \"local\" && expiry) store.setItem(this.key + EXPIRATION_SUFFIX, expiry)\n store.setItem(this.key, this.value)\n return true\n } catch {\n return false\n }\n }\n\n /** Forget the dismissal (Fomantic's `clear`). NEVER throws. */\n clear() {\n try {\n if (this.storage === \"cookie\") return this.writeCookie(\"\", this.expiryDate(-1))\n const store = this.webStorage()\n store?.removeItem(this.key)\n store?.removeItem(this.key + EXPIRATION_SUFFIX)\n } catch {\n // nothing stored that we could reach\n }\n }\n\n ////////////////\n // ## Reading\n ////////////////\n\n /** The stored value, `undefined` when absent or expired. MAY throw (blocked storage). */\n private read(): string | undefined {\n if (this.storage === \"cookie\") return this.readCookie()\n const store = this.webStorage()\n if (!store) return undefined\n if (this.storage === \"local\") {\n const expiration = store.getItem(this.key + EXPIRATION_SUFFIX)\n if (expiration && new Date(expiration) < new Date()) {\n store.removeItem(this.key)\n store.removeItem(this.key + EXPIRATION_SUFFIX)\n return undefined\n }\n }\n return store.getItem(this.key) ?? undefined\n }\n\n /** `localStorage` / `sessionStorage`, or `undefined` outside a browser. MAY throw (blocked storage). */\n private webStorage(): Storage | undefined {\n if (typeof window === \"undefined\") return undefined\n return this.storage === \"session\" ? window.sessionStorage : window.localStorage\n }\n\n /** The cookie's decoded value. MAY throw (a sandboxed document). */\n private readCookie(): string | undefined {\n if (typeof document === \"undefined\") return undefined\n for (const pair of document.cookie.split(COOKIE_SEPARATOR)) {\n const [name = \"\", ...rest] = pair.split(\"=\")\n if (name.replace(/(%[\\da-f]{2})+/gi, decodeURIComponent) === this.key) {\n return decodeURIComponent(rest.join(\"=\"))\n }\n }\n return undefined\n }\n\n ////////////////\n // ## Writing\n ////////////////\n\n /** Set the cookie to `value`, expiring at `expires` (a UTC date) or with the session. MAY throw. */\n private writeCookie(value: string, expires: string | undefined) {\n if (typeof document === \"undefined\") return\n // RFC 6265 encoding, as Fomantic's nag\n const name = encodeURIComponent(this.key)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, (char) => `%${char.charCodeAt(0).toString(16).toUpperCase()}`)\n const text = encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[B-D])/g, decodeURIComponent)\n const { path = DEFAULT_PATH, domain, secure, sameSite } = this.cookie\n const options = [\n expires && `expires=${expires}`,\n path && `path=${path}`,\n domain && `domain=${domain}`,\n secure && \"secure\",\n sameSite && `samesite=${sameSite}`\n ].filter(Boolean)\n document.cookie = [`${name}=${text}`, ...options].join(COOKIE_SEPARATOR)\n }\n\n /** UTC date `days` from now, or `undefined` for `0` (no expiry). */\n private expiryDate(days: number): string | undefined {\n if (!days || !Number.isFinite(days)) return undefined\n return new Date(Date.now() + days * DAY).toUTCString()\n }\n}\n\n/** Constructor props for `DismissalStore`. */\nexport type DismissalStoreProps = {\n /** where: `localStorage`, `sessionStorage` or a cookie */\n storage: UIT.NagStorage\n /** item / cookie name */\n key: string\n /** what a dismissal stores */\n value: string\n /** days; `0` for no expiry */\n expires: number\n /** cookie options; read only with `storage: \"cookie\"` */\n cookie?: DismissalCookieOptions\n}\n\n/** Cookie options of a `DismissalStore`. */\nexport type DismissalCookieOptions = {\n /** cookie path. Default: `/` */\n path?: string\n /** cookie domain; default the page's host */\n domain?: string\n /** HTTPS only */\n secure?: boolean\n /** `samesite` value, as written (`lax`, `strict`, `none`) */\n sameSite?: string\n}\n\n/** Suffix of the expiry item in `localStorage` (Fomantic's `expirationKey`). */\nconst EXPIRATION_SUFFIX = \"ExpirationDate\"\n\n/** Default cookie path. */\nconst DEFAULT_PATH = \"/\"\n\n/** Separator of `document.cookie`'s pairs, and of a cookie's options. */\nconst COOKIE_SEPARATOR = \"; \"\n\n/** ms in a day. */\nconst DAY = 864e5\n","import { isServer, type JSX } from \"@solidjs/web\"\n\nimport { E, UI, UIT } from \"spell/ui/core\"\nimport { nagVocabulary } from \"./UINag.en\"\nimport { DismissalStore } from \"./DismissalStore\"\n\nimport nagCSS from \"./UINag.css?inline\"\n\n/****************\n * ### `DOMNagElement`\n * The DOM element of `<ui-nag>`: it adds the nag's script API,\n * `close()`, `show()`, `clear()` and `dismissed`, which its component does.\n *\n * - NOTE: `DOMElement` checks its members against the attributes' property names; none of these is one.\n * - Above the component: its `elementSetup` reads this class while the component is defined.\n ****************/\nexport class DOMNagElement extends E.DOMElement<UINag> {\n /**\n * Dismiss it now, reason `dismiss` (the cancelable `ui-closing` first), storing the dismissal; true when it closes.\n */\n close(): boolean {\n return this.component?.close() ?? false\n }\n\n /** Show it again, unless a dismissal is stored (and it isn't `persistent`); true when it shows. */\n show(): boolean {\n return this.component?.show() ?? false\n }\n\n /** Forget a stored dismissal (Fomantic's `clear`). */\n clear() {\n this.component?.clearDismissal()\n }\n\n /** A dismissal is stored (and not expired); `false` without a `key`. */\n get dismissed(): boolean {\n return this.component?.isDismissed ?? false\n }\n}\n\n/****************\n * ### `UINag`\n * The component behind `<ui-nag>`: a bar at the top (or `bottom`) of the page or its container\n * that stays until dismissed, and can remember the dismissal.\n * Its shadow DOM: `<div class=\"ui … nag\" part=\"nag\">` around the slot, with a close icon.\n *\n * - Remembering (opt-in, with `key`): closing it from its icon (or `domElement.close()`)\n * stores `value` under `key` in `storage` (`DismissalStore`: local / session / cookie, `expires` days).\n * - A nag whose dismissal is stored is `hidden` from the start (set on the DOM element as it first connects,\n * before anything paints), unless it's `persistent`.\n * - Storage that is blocked or missing just doesn't remember: the nag still shows and closes.\n *\n * - Closing: the cancelable `ui-closing` (with a `reason`) first,\n * then the exit animation (Fomantic's `slide`), `hidden` on the DOM element, and `ui-closed`.\n * - It never removes itself.\n * - `display-time` hides it without storing anything.\n *\n * - Invoker commands (`UIT.ToggleCommands`):\n * - a `<button commandfor command=\"--show\">` shows it (`show()`)\n * - `--close` closes it (`close()`, so a `key` remembers it)\n * - `--toggle` picks by `hidden`\n *\n * - No role: a banner that must be announced gets `role` / `aria-live` from the page.\n * The close icon is a real `<button>` with a translated label.\n ****************/\nexport class UINag extends E.UIComponent<Vocabulary> {\n @E.proto static vocabulary = nagVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { nag: nagCSS },\n DOMElement: DOMNagElement\n } satisfies Partial<E.ElementSetup>\n\n constructor(...args: ConstructorParameters<typeof E.UIComponent>) {\n super(...args)\n // SIDE EFFECT: a stored dismissal hides the DOM element before it first paints\n if (!isServer && this.isHiddenByDismissal) this.domElement.hidden = true\n this.domElement.addReleaseCallback(() => this.displayTimer?.cancel())\n }\n\n ////////////////\n // ## Dismissal\n ////////////////\n\n /** Hidden because it was dismissed, now or before (stored): `:state(dismissed)`. */\n @E.cssState(\"dismissed\")\n @E.state\n accessor isHiddenByDismissal = this.isHiddenByStorage\n\n /** A dismissal is stored (and not expired). `false` without a `key`. */\n get isDismissed(): boolean {\n return this.dismissalStore?.isDismissed ?? false\n }\n\n /** Forget a stored dismissal. */\n clearDismissal() {\n this.dismissalStore?.clear()\n }\n\n /** A stored dismissal hides it: dismissed, and not `persistent`. */\n private get isHiddenByStorage(): boolean {\n return !this.persistent && this.isDismissed\n }\n\n /**\n * The dismissal store for the current attributes, or `undefined` without a `key`.\n * - A new one per read, untracked: nothing renders from it.\n */\n @E.untracked\n private get dismissalStore(): DismissalStore | undefined {\n const { key, value, storage, expires, path, domain, secure, samesite } = this\n if (!key) return undefined\n return new DismissalStore({\n storage: (storage ?? DEFAULT_STORAGE) as UIT.NagStorage,\n key,\n value: value ?? DEFAULT_VALUE,\n expires: expires ?? DEFAULT_EXPIRES,\n cookie: {\n path: path ?? undefined,\n domain: domain ?? undefined,\n secure: !!secure,\n sameSite: samesite ?? undefined\n }\n })\n }\n\n ////////////////\n // ## Showing\n ////////////////\n\n /** The nag bar. */\n private root?: HTMLDivElement\n\n /** Pending `display-time`. */\n private displayTimer?: E.CancelablePromise<unknown>\n\n /** Appeared (entry animation, `ui-opening`, timer) since it last showed. */\n private hasShown = false\n\n /**\n * Appear once connected (and not hidden), waiting for the runtime (`isReady`) too, as the render does:\n * appearing animates the rendered bar.\n * - The cleanup drops a pending `display-time`.\n */\n @E.onChange(\"isConnected\", \"isReady\")\n protected onConnectedChanged(isConnected: boolean, isReady: boolean) {\n if (isConnected && isReady) this.appear()\n return () => this.displayTimer?.cancel()\n }\n\n /** Entry animation, `ui-opening` and the display time -- once per showing. */\n @E.untracked\n private appear() {\n if (this.hasShown || this.domElement.hidden) return\n this.hasShown = true\n const time = this.displayTime ?? 0\n if (time > 0) this.displayTimer = E.after(time / 1000, () => this.close(\"timeout\"))\n const root = this.root\n const entered = root\n ? UI.transitions.animate({ element: root, name: SLIDE, direction: UIT.IN })\n : Promise.resolve(true)\n void entered.then(() => {\n if (!this.isClosing) this.send(\"ui-opening\", {})\n })\n }\n\n /** Show again, unless a stored dismissal says not (and it isn't `persistent`). True when it shows. */\n show(): boolean {\n if (this.isHiddenByStorage || this.isClosing || (!this.domElement.hidden && this.hasShown)) return false\n this.isHiddenByDismissal = false\n this.domElement.hidden = false\n this.appear()\n return true\n }\n\n ////////////////\n // ## Closing\n ////////////////\n\n /** Closing: no second close until it has hidden. */\n private isClosing = false\n\n /**\n * Shown until it closes: the cancelable `ui-closing` as it's asked to close, `ui-closed` once it has gone.\n * - Its `ui-opening` comes as it has slid in (`appear()`), not as a request: `show()` is the page's.\n */\n readonly disclosure = new E.Disclosure({\n component: this,\n kept: {\n isOpen: () => !this.isClosing && !this.domElement.hidden,\n setOpen: (open) => {\n if (!open) this.startClosing()\n }\n },\n detail: (_open, originalEvent): UIT.NagCloseDetail => ({ reason: this.closeReason, originalEvent }),\n afterDetail: (): UIT.NagCloseDetail => ({ reason: this.closeReason })\n })\n\n /** Why it was asked to close: `ui-closing`'s and `ui-closed`'s `reason`. */\n private closeReason: UIT.NagCloseReason = \"dismiss\"\n\n /**\n * Close for `reason`: the cancelable `ui-closing`, the dismissal stored (not for `timeout`),\n * then the exit animation, `hidden` on the DOM element and `ui-closed`. True when it closes.\n */\n close(reason: UIT.NagCloseReason = \"dismiss\", originalEvent?: Event): boolean {\n this.closeReason = reason\n return this.disclosure.close(originalEvent)\n }\n\n /** `ui-closing` wasn't cancelled: the dismissal stored, the exit animation, `hidden`, `ui-closed`. */\n private startClosing() {\n const reason = this.closeReason\n this.isClosing = true\n this.displayTimer?.cancel()\n if (reason !== \"timeout\") {\n this.dismissalStore?.dismiss()\n this.isHiddenByDismissal = true\n }\n const root = this.root\n const exited = root\n ? UI.transitions.animate({ element: root, name: SLIDE, direction: UIT.OUT })\n : Promise.resolve(true)\n void exited.then(() => {\n this.isClosing = false\n this.hasShown = false\n this.domElement.hidden = true\n this.disclosure.sendAfter(false)\n })\n }\n\n /** An invoker command aimed at the DOM element (`UIT.ToggleCommands`): open means not `hidden`. */\n @E.on(\"command\")\n protected onCommand(event: Event) {\n const action = UIT.ToggleCommands.action(event, !this.domElement.hidden)\n if (action === \"show\") this.show()\n else if (action === \"close\") this.close(\"dismiss\", event)\n }\n\n /** Close icon: dismiss (and remember). */\n private readonly onCloseIcon = (event: MouseEvent) => {\n event.stopPropagation()\n this.close(\"close\", event)\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n /** The close icon, while `closable`. */\n readonly closeButton = new E.CloseButton({\n owner: this,\n shows: () => !!this.closable,\n label: () => this.translationForKey(\"close\"),\n part: this.partForName(\"close\"),\n onClick: (event) => this.onCloseIcon(event)\n })\n\n render(): JSX.Element {\n return (\n <div ref={(element) => (this.root = element)} class={this.rootClass} part={this.partForName(\"nag\")}>\n <slot />\n {this.closeButton.draw()}\n </div>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UINag extends E.AttributeValues<Vocabulary> {}\n\n/** `UI.transitions` animation in and out (Fomantic's `slide`). */\nconst SLIDE = \"slide-down\"\n\n/** Storage of a nag that names none: Fomantic's default. */\nconst DEFAULT_STORAGE: UIT.NagStorage = \"cookie\"\n\n/** Value a dismissal stores by default. */\nconst DEFAULT_VALUE = \"dismiss\"\n\n/** Days a dismissal lasts by default. */\nconst DEFAULT_EXPIRES = 30\n\n/** The vocabulary type, for brevity. */\ntype Vocabulary = typeof nagVocabulary\n","/**\n * The nag family: defines `<ui-nag>` and exports its component, `UINag`, its DOM element, `DOMNagElement`,\n * and `DismissalStore`, where a nag remembers it was dismissed.\n * - SIDE EFFECT: importing it defines the tag.\n * - Also the library's `spell/ui/ui-nag` entry (its size is in `notes/report.md`).\n */\n\nimport { DOMNagElement, UINag } from \"./UINag\"\nimport { DismissalStore } from \"./DismissalStore\"\n\nUINag.define()\n\nexport { UINag, DOMNagElement, DismissalStore }\n"],"mappings":";;;;AAcA,IAAa4B,IAAgB;CAC3B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAiB;EAAY;EAAY;CAAS;CAC3D,KAAK;EAAC;EAAU;EAAiB;EAAoB;CAAe;CACpE,MAAM;CACN,cAAc;CACd,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GAAE,MAAM;GAAS,OAAO;GAAc,MAAM;GAAS,aAAa;EAAqC;EACvG;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GAAE,MAAM;GAAS,OAAO;GAAU,MAAM;GAAW,aAAa;EAA6C;EAC7G;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GAAE,MAAM;GAAU,OAAO;GAAc,MAAM;GAAW,aAAa;EAAyC;EAC9G;GACE,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,EAAE,KAAK9C,EAAO;CAC3B,YAAY;AACd,CAAA,CAAA,GAHeO,EAAAoC,GAAA,IAFJG,CAAA;AAAN,IAAM0C,IAAN1C,GA8MDyB,IAAQ,cAGRV,IAAkC,UAGlCC,IAAgB,WAGhBC,IAAkB;;AC9QxByB,EAAM,OAAO"}
@@ -0,0 +1,5 @@
1
+ // src/components/ui-button/ui-or.editor.html?raw
2
+ var e = "<!-- <ui-or>'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-or\" data-omit=\"\">\n <ui-property-group label=\"Content\" data-group=\"content\">\n <ui-property name=\"label\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
3
+ export { e as default };
4
+
5
+ //# sourceMappingURL=ui-or.editor-BfBLNVgm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-or.editor-BfBLNVgm.js","names":["ui_or_editor_default"],"sources":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ // src/components/ui-page-layout/ui-page-layout.editor.html?raw
2
+ var e = "<!-- <ui-page-layout>'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-page-layout\" data-omit=\"\">\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"drawer\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
3
+ export { e as default };
4
+
5
+ //# sourceMappingURL=ui-page-layout.editor-xtQW0FZk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-page-layout.editor-xtQW0FZk.js","names":["ui_page_layout_editor_default"],"sources":[],"mappings":""}
@@ -0,0 +1,363 @@
1
+ import "./rolldown-runtime-c6e9CmGy.js";
2
+ import { DOMElement as e, Gt as t, Jt as n, Kt as r, SlotContent as i, UIComponent as a, Ut as o, Wt as s, Yt as c, after as l, beforeNextPaint as u, cssState as d, isSameList as f, on as p, onChange as ee, proto as te, protoMerged as ne, qt as m, state as h, watches as re, whileConnected as ie } from "./core.js";
3
+ import "./ui-button.js";
4
+ import { Show as g } from "solid-js";
5
+ import { className as _, createComponent as v, delegateEvents as ae, effect as y, getOwner as b, insert as x, isServer as oe, readShallow as S, ref as C, setAttribute as w, style as se, template as T } from "@solidjs/web";
6
+ // src/components/ui-page-layout/UIPageLayout.en.ts
7
+ var ce = {
8
+ tag: "ui-page-layout",
9
+ icon: "columns",
10
+ topics: [
11
+ "layout",
12
+ "containers",
13
+ "navigation"
14
+ ],
15
+ aka: [
16
+ "app layout",
17
+ "app shell",
18
+ "site layout",
19
+ "page frame",
20
+ "drawer layout",
21
+ "navigation drawer",
22
+ "holy grail"
23
+ ],
24
+ noun: "page layout",
25
+ partOfSpeech: "structure",
26
+ description: "A page layout puts what stays on screen around a page: a menu across the top, a drawer of side navigation down the start, side bars either side of the page, and a footer. An empty one takes no room. Its own box, not the window: below 40em of it, the drawer slides over the page.",
27
+ skeleton: "24 wide: 4 line paragraph",
28
+ attributes: [{
29
+ name: "drawer",
30
+ group: "appearance",
31
+ kind: "valueOnly",
32
+ values: ["compact"],
33
+ description: "`compact`: the drawer shows only its icons (its `<ui-site-nav>`s `collapsed`), and opens over the page while the pointer rests on it. None: the whole drawer. `toggleDrawer()` switches it, and says so with `ui-toggle`."
34
+ }],
35
+ events: [{
36
+ name: "ui-toggle",
37
+ detail: "{ newState: \"compact\" | \"full\", oldState: \"compact\" | \"full\" }",
38
+ description: "The drawer switched between its icons only (`compact`) and all of it (`full`), from `toggleDrawer()` (a `<ui-site-nav-button>`'s click): a site keeps each person's choice, and sets `drawer` again next time."
39
+ }],
40
+ slots: [
41
+ {
42
+ name: "",
43
+ description: "The page."
44
+ },
45
+ {
46
+ name: "menu",
47
+ description: "The app's top bar, across the top beside the drawer: usually a `<ui-app-menu>`."
48
+ },
49
+ {
50
+ name: "page-menu",
51
+ description: "A row of its own under the menu, over the page and its side bars: usually `<ui-site-tabs>`."
52
+ },
53
+ {
54
+ name: "drawer",
55
+ description: "The side navigation, a column the whole height at the start: usually a `<ui-site-nav>`."
56
+ },
57
+ {
58
+ name: "left",
59
+ description: "A side bar between the drawer and the page."
60
+ },
61
+ {
62
+ name: "right",
63
+ description: "A side bar at the page's end."
64
+ },
65
+ {
66
+ name: "footer",
67
+ description: "Across the bottom, under the page and its side bars."
68
+ }
69
+ ],
70
+ parts: [
71
+ {
72
+ name: "layout",
73
+ description: "The grid of regions: the drawer's column, then the rest."
74
+ },
75
+ {
76
+ name: "drawer",
77
+ description: "The drawer's column, on its own fill with a line at its end."
78
+ },
79
+ {
80
+ name: "drawer-box",
81
+ description: "The drawer's box inside its column: what scrolls, and what slides out."
82
+ },
83
+ {
84
+ name: "menu",
85
+ description: "The menu's row."
86
+ },
87
+ {
88
+ name: "page-menu",
89
+ description: "The page menu's row."
90
+ },
91
+ {
92
+ name: "left",
93
+ description: "The start side bar's box."
94
+ },
95
+ {
96
+ name: "page",
97
+ description: "The page's box."
98
+ },
99
+ {
100
+ name: "right",
101
+ description: "The end side bar's box."
102
+ },
103
+ {
104
+ name: "footer",
105
+ description: "The footer's row."
106
+ },
107
+ {
108
+ name: "menu-button",
109
+ description: "Its own button to show the drawer, at a narrow width, when nothing inside it is a `<ui-site-nav-button>`."
110
+ }
111
+ ],
112
+ states: [
113
+ {
114
+ name: "compact",
115
+ description: "`drawer=\"compact\"`: the drawer shows only its icons."
116
+ },
117
+ {
118
+ name: "open",
119
+ description: "The drawer is open over the page: slid in at a narrow width, or opened from its icons while the pointer rests on it."
120
+ },
121
+ {
122
+ name: "narrow",
123
+ description: "Below 40em of its own box: one column, the drawer slid out of the way."
124
+ }
125
+ ],
126
+ texts: [{
127
+ key: "menu",
128
+ text: "Pages",
129
+ description: "Its own button to show the drawer, at a narrow width."
130
+ }]
131
+ }, le = "@layer ui.components{:host{--_ui-page-layout-gap:var(--ui-page-layout-gap,var(--_page-layout-room));--_page-layout-room:round(var(--ui-font-size,16px), var(--ui-grid,4px));--_ui-page-layout-duration:var(--ui-duration-normal,.2s);--_page-layout-close-duration:.2s;--_page-layout-flyout-radius:var(--ui-panel-radius,var(--ui-radius-l,14px));--_ui-page-layout-shadow:var(--ui-page-layout-shadow,0 0 .75em color-mix(in oklch, var(--ui-shadow-ink,CanvasText) 14%, transparent), 0 0 1px color-mix(in oklch, var(--ui-shadow-ink,CanvasText) 22%, transparent));--_ui-page-layout-end-room:var(--ui-page-layout-end-room,round(.5em, var(--ui-grid,4px)));--_page-layout-drawer-width:16em;flex-direction:column;min-block-size:100%;display:flex;container-type:inline-size}.layout{flex:1 0 auto;grid-template-columns:minmax(0,1fr);align-items:stretch;display:grid;position:relative}.layout:has(>.drawer){grid-template-columns:auto minmax(0,1fr)}.drawer{interpolate-size:allow-keywords;inline-size:var(--_page-layout-drawer-width);min-inline-size:0;transition:inline-size var(--_ui-page-layout-duration) var(--ui-ease,ease);background:var(--ui-surface-muted,Canvas)}.drawer-box{interpolate-size:numeric-only;max-block-size:100dvh;position:sticky;inset-block-start:0;overflow:auto}.body{flex-direction:column;min-inline-size:0;display:flex}.menu+.under-menu{padding-block-start:var(--_page-layout-room)}.menu{z-index:1;box-shadow:var(--_ui-page-layout-shadow);clip-path:inset(0 0 -2em);--ui-menu-header-bar-shadow:none;position:relative}.under-menu{flex-direction:column;flex:1 0 auto;display:flex}.page-menu{margin-block-end:var(--_page-layout-room)}.footer{margin-block-start:var(--_page-layout-room)}.row{gap:var(--_ui-page-layout-gap);flex:1 0 auto;display:flex}.page{flex:1 1 0;min-inline-size:0}.left,.right{flex:none}.layout:has(>.drawer)>.body{background:var(--ui-surface-muted,Canvas)}.layout:has(>.drawer)>.body>.under-menu{background:var(--ui-background,Canvas);box-shadow:var(--_ui-page-layout-shadow);border-start-start-radius:var(--_page-layout-flyout-radius);border-start-end-radius:var(--_page-layout-flyout-radius);margin-inline-end:var(--_ui-page-layout-end-room);padding-inline-start:var(--_page-layout-room);position:relative}.layout:has(>.drawer)>.body>.menu{--ui-menu-header-bar-background:transparent;--ui-menu-header-bar-filter:none;z-index:auto;box-shadow:none;clip-path:none;position:static}.menu-button{display:none}:host(:state(compact)) .drawer{inline-size:var(--_page-layout-compact-width,fit-content)}:host(:state(compact):state(open):not(:state(narrow))) .drawer{transition:none}:host(:state(compact):not(:state(narrow))) .drawer-box{min-block-size:0;inline-size:100%;transition:inline-size var(--_page-layout-close-duration) var(--ui-ease-in,ease-in), box-shadow var(--_page-layout-close-duration) var(--ui-ease-in,ease-in), z-index 0s var(--_page-layout-close-duration) allow-discrete, min-block-size 0s var(--_page-layout-close-duration), background 0s var(--_page-layout-close-duration) allow-discrete, backdrop-filter 0s var(--_page-layout-close-duration) allow-discrete;border-start-end-radius:var(--_page-layout-flyout-radius);border-end-end-radius:var(--_page-layout-flyout-radius);box-shadow:0 0 #0000}:host(:state(compact):state(open):not(:state(narrow))) .drawer-box{z-index:var(--ui-z-popup,1000);inline-size:var(--_page-layout-drawer-width);background:var(--ui-surface-muted,Canvas);backdrop-filter:blur(1.5em);min-block-size:min(100%,100dvh);box-shadow:var(--_ui-page-layout-shadow);transition:inline-size var(--_ui-page-layout-duration) var(--ui-ease-out,ease-out), box-shadow var(--_ui-page-layout-duration) var(--ui-ease-out,ease-out)}:host(:state(moving):not(:state(narrow))) .drawer-box{overflow-x:hidden}:host(:state(moving):not(:state(narrow))) .drawer-box ::slotted(*){min-inline-size:var(--_page-layout-drawer-width)}@container (width<40em){.layout:has(>.drawer){grid-template-columns:minmax(0,1fr)}.drawer,:host(:state(compact)) .drawer{z-index:var(--ui-z-popup,1000);inline-size:min(16em,85%);max-block-size:calc(100% - var(--ui-site-nav-bar-height,40px));background:linear-gradient(var(--ui-background,Canvas), var(--ui-background,Canvas)) Canvas;border-radius:var(--ui-radius,6px);box-shadow:var(--ui-shadow-floating,0 4px 16px #0003);visibility:hidden;transition:translate var(--_ui-page-layout-duration), visibility var(--_ui-page-layout-duration);border-inline-end:none;position:absolute;inset-block-start:var(--ui-site-nav-bar-height,40px);inset-inline-start:0;overflow:auto;translate:calc(-100% - 1em)}:host(:state(open)) .drawer{visibility:visible;translate:0}.drawer-box{max-block-size:none;position:static;overflow:visible}.layout:has(>.drawer)>.body{background:0 0}.layout:has(>.drawer)>.body>.under-menu{box-shadow:none;background:0 0;border-radius:0;margin-inline-end:0;padding-inline-start:0}.layout:has(>.drawer)>.body>.menu{--ui-menu-header-bar-background:initial;--ui-menu-header-bar-filter:initial;z-index:1;box-shadow:var(--_ui-page-layout-shadow);clip-path:inset(0 0 -2em);position:relative}.menu-button{--ui-button-padding-block:8px;--ui-button-line-height:16px;align-self:start;margin-block-end:8px;display:inline-flex}}@media (prefers-reduced-motion:reduce){.drawer,:host(:state(compact)) .drawer,:host(:state(compact):not(:state(narrow))) .drawer-box,:host(:state(compact):state(open):not(:state(narrow))) .drawer-box{transition:none}}@container style(--ui-motion:none){.drawer,:host(:state(compact)) .drawer,:host(:state(compact):not(:state(narrow))) .drawer-box,:host(:state(compact):state(open):not(:state(narrow))) .drawer-box{transition:none}}}", ue = /* @__PURE__ */ T("<div><div><slot>"), de = /* @__PURE__ */ T("<ui-button>", 1), fe = /* @__PURE__ */ T("<div><div><!><div><div><div><slot></slot></div><!></div><!>"), pe = /* @__PURE__ */ T("<div><slot>"), E, D, O, k, A, j, M, N, P, F, I, L, R, z, B, V, H, U, W, G, K, q, J, Y, me = {
132
+ childList: !0,
133
+ subtree: !0,
134
+ attributes: !0,
135
+ attributeFilter: ["slot"]
136
+ }, DOMPageLayoutElement = class extends e {
137
+ static {
138
+ r(this, "DOMPageLayoutElement");
139
+ }
140
+ toggleDrawer() {
141
+ this.component?.toggleDrawer();
142
+ }
143
+ }, X = class _UIPageLayout extends (H = a, V = [te], B = [ne], z = [d("compact")], R = [d("open"), h], L = [d("narrow"), h], I = [re({
144
+ ...me,
145
+ equals: f
146
+ })], F = [ee("drawerNavs", "showsIconsOnly", { writesDOMElement: !0 })], P = [p("keydown")], N = [p("ui-navigating")], M = [d("moving"), h], j = [h], A = [h], k = [ie], O = [h], D = [ee("isNarrow", { defer: !0 })], E = [re(me)], H) {
147
+ constructor() {
148
+ super(...arguments), c(U, 5, this), n(this, "slots", new i(this.domElement)), m(this, W, c(U, 8, this, !1)), c(U, 11, this), m(this, G, c(U, 12, this, !1)), c(U, 15, this), m(this, K, c(U, 16, this, !1)), c(U, 19, this), n(this, "cancelMoving"), n(this, "moveRun", 0), n(this, "peekTimer"), m(this, q, c(U, 20, this)), c(U, 23, this), m(this, J, c(U, 24, this, !1)), c(U, 27, this), n(this, "cancelWidening"), n(this, "resized"), m(this, Y, c(U, 28, this)), c(U, 31, this), n(this, "menuBox"), n(this, "drawerColumn"), n(this, "drawerSlot");
149
+ }
150
+ has(e) {
151
+ return this.slots.hasContent(this.slotForName(e));
152
+ }
153
+ get isCompact() {
154
+ return this.drawer === Z;
155
+ }
156
+ get isDrawerShown() {
157
+ return this.isNarrow ? this.isOpen : !this.isCompact || this.isOpen;
158
+ }
159
+ get drawerNavs() {
160
+ return this.drawerElements().flatMap((e) => e.localName === ge ? [e] : [...e.querySelectorAll(ge)]);
161
+ }
162
+ get showsIconsOnly() {
163
+ return this.isCompact && !this.isOpen && !this.isMoving;
164
+ }
165
+ onIconsOnlyChanged(e, t) {
166
+ for (let n of e) n.toggleAttribute($, t);
167
+ }
168
+ toggleDrawer() {
169
+ if (this.isNarrow) {
170
+ this.isOpen = !this.isOpen;
171
+ return;
172
+ }
173
+ let e = this.isCompact ? Z : Q, t = e === Z ? Q : Z;
174
+ this.peekTimer?.cancel(), this.cancelWidening?.(), this.isWidening = !1, this.isOpen = !1, t === Q ? (this.compactWidth = this.drawerColumn?.getBoundingClientRect().width, this.isWidening = !0, this.cancelWidening = u(() => this.switchDrawer(t, e))) : this.narrowToIcons(e);
175
+ }
176
+ narrowToIcons(e) {
177
+ let t = this.drawerNavs;
178
+ for (let e of t) e.toggleAttribute($, !0);
179
+ this.cancelWidening = u(() => {
180
+ this.compactWidth = this.iconsWidth(), this.whileDrawerMoves(), this.switchDrawer(Z, e);
181
+ for (let e of t) e.toggleAttribute($, this.showsIconsOnly);
182
+ });
183
+ }
184
+ iconsWidth() {
185
+ let e = this.drawerColumn;
186
+ if (!e) return;
187
+ let t = e.getBoundingClientRect().width;
188
+ e.style.transition = "none", e.style.inlineSize = "fit-content";
189
+ let n = e.getBoundingClientRect().width;
190
+ return e.style.inlineSize = `${t}px`, getComputedStyle(e).inlineSize, e.style.transition = "", e.style.inlineSize = "", n;
191
+ }
192
+ switchDrawer(e, t) {
193
+ if (this.isWidening && this.drawerColumn) {
194
+ for (let e of this.drawerColumn.getAnimations()) e.finish();
195
+ getComputedStyle(this.drawerColumn).inlineSize;
196
+ }
197
+ this.drawer = e === Z ? Z : void 0, e === Q && this.whileDrawerMoves(), this.send("ui-toggle", {
198
+ newState: e,
199
+ oldState: t
200
+ }), this.isWidening && (this.cancelWidening = u(() => this.isWidening = !1));
201
+ }
202
+ onKeyDown(e) {
203
+ e.key === "Escape" && this.close();
204
+ }
205
+ onNavigating(e) {
206
+ this.isInDrawer(e.target) && this.close();
207
+ }
208
+ close() {
209
+ this.isOpen &&= (this.isCompact && !this.isNarrow && this.whileDrawerMoves(), !1);
210
+ }
211
+ whileDrawerMoves() {
212
+ let e = ++this.moveRun;
213
+ this.isMoving = !0, this.cancelMoving?.(), this.cancelMoving = u(() => {
214
+ let t = [this.drawerColumn, this.drawerColumn?.firstElementChild].flatMap((e) => e?.getAnimations() ?? []);
215
+ Promise.allSettled(t.map((e) => e.finished)).then(() => {
216
+ e === this.moveRun && (this.isMoving = !1);
217
+ });
218
+ });
219
+ }
220
+ onDrawerEnter(e) {
221
+ this.isCompact && !this.isNarrow && e.pointerType !== "touch" && (this.peekTimer?.cancel(), this.isOpen || (this.peekTimer = l(xe, () => this.peek())));
222
+ }
223
+ onDrawerLeave() {
224
+ this.peekTimer?.cancel(), this.isCompact && !this.isNarrow && this.isOpen && (this.peekTimer = l(Se, () => this.unpeek()));
225
+ }
226
+ unpeek() {
227
+ this.isCompact && !this.isNarrow && this.close();
228
+ }
229
+ onDrawerFocusIn() {
230
+ this.peekTimer?.cancel(), this.isCompact && !this.isNarrow && !this.isOpen && this.peek();
231
+ }
232
+ onDrawerFocusOut(e) {
233
+ this.isCompact && !this.isNarrow && !this.isInDrawer(e.relatedTarget) && this.close();
234
+ }
235
+ peek() {
236
+ this.compactWidth = this.drawerColumn?.getBoundingClientRect().width, this.whileDrawerMoves(), this.isOpen = !0;
237
+ }
238
+ get layoutStyle() {
239
+ let e = this.isCompact && !this.isNarrow && (this.isOpen || this.isMoving) || this.isWidening ? this.compactWidth : void 0, t = this.has("menu") ? this.menuHeight : void 0;
240
+ return {
241
+ [ve]: e === void 0 ? void 0 : `${e}px`,
242
+ [be]: t ? `${t}px` : void 0
243
+ };
244
+ }
245
+ watchWidth() {
246
+ if (oe) return;
247
+ let e = new ResizeObserver(() => {
248
+ this.isNarrow = this.isSlidOver(), this.measureMenu();
249
+ });
250
+ return e.observe(this.domElement), this.drawerColumn && e.observe(this.drawerColumn), this.menuBox && e.observe(this.menuBox), this.resized = e, () => {
251
+ e.disconnect(), this.resized = void 0;
252
+ };
253
+ }
254
+ drawerColumnDrawn(e) {
255
+ this.drawerColumn = e, this.resized?.observe(e);
256
+ }
257
+ menuDrawn(e) {
258
+ this.menuBox = e, this.resized?.observe(e), this.measureMenu();
259
+ }
260
+ measureMenu() {
261
+ let e = this.menuBox;
262
+ this.menuHeight = e?.isConnected && e.getBoundingClientRect().height || void 0;
263
+ }
264
+ isSlidOver() {
265
+ return !!this.drawerColumn && getComputedStyle(this.drawerColumn).position === Ce;
266
+ }
267
+ onNarrowChanged() {
268
+ this.isOpen = !1;
269
+ }
270
+ get drawsMenuButton() {
271
+ return this.has("drawer") && !this.domElement.querySelector(_e);
272
+ }
273
+ drawerElements() {
274
+ let e = this.slotForName("drawer");
275
+ return [...this.domElement.children].filter((t) => t.getAttribute("slot") === e);
276
+ }
277
+ isInDrawer(e) {
278
+ if (!e || typeof e.nodeType != "number") return !1;
279
+ let t = e;
280
+ return this.drawerColumn?.contains(t) ? !0 : (this.drawerSlot?.assignedElements({ flatten: !0 }) ?? this.drawerElements()).some((e) => e === t || e.contains(t));
281
+ }
282
+ render() {
283
+ let e = this;
284
+ var t = fe(), n = t.firstChild, r = n.firstChild, i = r.nextSibling, a = i.firstChild, o = a.firstChild, s = o.firstChild, c = o.nextSibling, l = a.nextSibling;
285
+ return x(t, v(g, {
286
+ get when() {
287
+ return e.has("drawer");
288
+ },
289
+ get children() {
290
+ var t = ue(), n = t.firstChild, r = n.firstChild;
291
+ return t._$$focusout = (t) => e.onDrawerFocusOut(t), t._$$focusin = () => e.onDrawerFocusIn(), t.addEventListener("pointerleave", () => e.onDrawerLeave()), t.addEventListener("pointerenter", (t) => e.onDrawerEnter(t)), C(() => (t) => e.drawerColumnDrawn(t), t), C(() => (t) => e.drawerSlot = t, r), r._$owner = b(), y(() => ({
292
+ e: S(Te),
293
+ t: e.partForName("drawer"),
294
+ a: S(Ee),
295
+ o: e.partForName("drawer-box"),
296
+ i: e.slotForName("drawer")
297
+ }), ({ e, t: i, a, o, i: s }, c) => {
298
+ _(t, e, c?.e), i !== c?.t && w(t, "part", i), _(n, a, c?.a), o !== c?.o && w(n, "part", o), s !== c?.i && w(r, "name", s);
299
+ }), t;
300
+ }
301
+ }), n), x(n, v(g, {
302
+ get when() {
303
+ return e.drawsMenuButton;
304
+ },
305
+ get children() {
306
+ var t = de();
307
+ return t._$$click = () => e.toggleDrawer(), w(t, "icon", Me), w(t, "appearance", Ne), w(t, "size", Pe), t._$owner = b(), y(() => ({
308
+ e: S(je),
309
+ t: e.partForName("menu-button"),
310
+ a: e.translationForKey("menu"),
311
+ o: e.translationForKey("menu"),
312
+ i: e.isOpen ? "true" : "false"
313
+ }), ({ e, t: n, a: r, o: i, i: a }, o) => {
314
+ _(t, e, o?.e), n !== o?.t && w(t, "part", n), r !== o?.a && w(t, "aria-label", r), i !== o?.o && w(t, "title", i), a !== o?.i && w(t, "aria-expanded", a);
315
+ }), t;
316
+ }
317
+ }), r), x(n, () => e.region("menu"), i), x(i, () => e.region("page-menu"), a), x(a, () => e.region("left"), o), s._$owner = b(), x(a, () => e.region("right"), c), x(i, () => e.region("footer"), l), y(() => ({
318
+ e: S(we),
319
+ t: e.partForName("layout"),
320
+ a: S(e.layoutStyle),
321
+ o: S(De),
322
+ i: S(Oe),
323
+ n: S(ke),
324
+ s: S(Ae),
325
+ h: e.partForName("page")
326
+ }), ({ e, t: r, a: s, o: c, i: l, n: u, s: d, h: f }, p) => {
327
+ _(t, e, p?.e), r !== p?.t && w(t, "part", r), se(t, s, p?.a), _(n, c, p?.o), _(i, l, p?.i), _(a, u, p?.n), _(o, d, p?.s), f !== p?.h && w(o, "part", f);
328
+ }), t;
329
+ }
330
+ region(e) {
331
+ let t = this;
332
+ return v(g, {
333
+ get when() {
334
+ return t.has(e);
335
+ },
336
+ get children() {
337
+ var n = pe(), r = n.firstChild;
338
+ return C(() => (n) => e === ye ? t.menuDrawn(n) : void 0, n), r._$owner = b(), y(() => ({
339
+ e: S(e),
340
+ t: t.partForName(e),
341
+ a: t.slotForName(e)
342
+ }), ({ e, t, a: i }, a) => {
343
+ _(n, e, a?.e), t !== a?.t && w(n, "part", t), i !== a?.a && w(r, "name", i);
344
+ }), n;
345
+ }
346
+ });
347
+ }
348
+ };
349
+ U = t(H), W = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), o(U, 2, "isCompact", z, X), o(U, 4, "isOpen", R, X, W), o(U, 4, "isNarrow", L, X, G), o(U, 2, "drawerNavs", I, X), o(U, 1, "onIconsOnlyChanged", F, X), o(U, 1, "onKeyDown", P, X), o(U, 1, "onNavigating", N, X), o(U, 4, "isMoving", M, X, K), o(U, 4, "compactWidth", j, X, q), o(U, 4, "isWidening", A, X, J), o(U, 1, "watchWidth", k, X), o(U, 4, "menuHeight", O, X, Y), o(U, 1, "onNarrowChanged", D, X), o(U, 2, "drawsMenuButton", E, X), o(U, 13, "vocabulary", V, X), o(U, 13, "elementSetup", B, X), s(U, X), r(X, "UIPageLayout"), n(X, "vocabulary", c(U, 32, X, ce)), c(U, 35, X), n(X, "elementSetup", c(U, 36, X, {
350
+ styleSheets: { "page-layout": le },
351
+ DOMElement: DOMPageLayoutElement,
352
+ delegatesFocus: !1
353
+ })), c(U, 39, X);
354
+ var he = X, Z = "compact", Q = "full", ge = "ui-site-nav", $ = "collapsed", _e = "ui-site-nav-button", ve = "--_page-layout-compact-width", ye = "menu", be = "--ui-site-nav-bar-height", xe = .5, Se = .15, Ce = "absolute", we = "layout", Te = "drawer", Ee = "drawer-box", De = "body", Oe = "under-menu", ke = "row", Ae = "page", je = "menu-button", Me = "bars", Ne = "basic", Pe = "small";
355
+ // src/components/ui-page-layout/index.ts
356
+ ae([
357
+ "focusin",
358
+ "focusout",
359
+ "click"
360
+ ]), he.define();
361
+ export { DOMPageLayoutElement, he as UIPageLayout };
362
+
363
+ //# sourceMappingURL=ui-page-layout.js.map