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
package/dist/ui-menu.js CHANGED
@@ -1,11 +1,11 @@
1
- import "./rolldown-runtime-CYGlBXrH.js";
2
- import { A as e, Bt as t, F as n, Ht as r, IconGlyph as i, Lt as a, N as o, P as s, PartContext as c, PopoverPanel as l, Queued as u, Rt as d, UI as f, UIComponent as ee, Ut as p, Vt as m, X as h, afterSolidUpdate as g, beforeNextPaint as te, cssState as _, derived as v, lazy as ne, n as y, on as re, onChange as b, proto as ie, protoMerged as ae, state as oe, untracked as x, watches as se, z as S, zt as ce } from "./core.js";
3
- import "./ui-item.js";
4
- import { n as le, t as ue } from "./UIMenu-zdcAtwTa.js";
5
- import { For as de, Match as C, Show as w, Switch as fe, untrack as pe } from "solid-js";
6
- import { addEvent as me, className as T, createComponent as E, delegateEvents as he, effect as D, getOwner as O, insert as k, isServer as A, memo as j, readShallow as M, ref as N, setAttribute as P, style as F, template as I } from "@solidjs/web";
7
- //#region src/components/ui-menu/UIMenu.en.ts
8
- var L = {
1
+ import "./rolldown-runtime-c6e9CmGy.js";
2
+ import { A as e, B as t, F as n, Gt as r, IconGlyph as i, Jt as a, Kt as o, N as s, P as c, PartContext as l, PopoverPanel as u, Queued as d, UI as f, UIComponent as p, Ut as m, Warnings as ee, Wt as h, Yt as g, Z as te, after as ne, afterSolidUpdate as _, beforeNextPaint as re, cssState as v, derived as ie, g as ae, lazy as oe, n as y, on as b, onChange as x, proto as se, protoMerged as ce, qt as S, state as C, untracked as w, watches as le, wt as ue } from "./core.js";
3
+ import { n as de, t as fe } from "./UIMenu-CqURPocK.js";
4
+ import { UIItem as T } from "./ui-item.js";
5
+ import { For as pe, Match as E, Show as D, Switch as me, untrack as he } from "solid-js";
6
+ import { addEvent as ge, className as O, createComponent as k, delegateEvents as _e, effect as A, getOwner as j, insert as M, isServer as ve, memo as ye, readShallow as N, ref as P, setAttribute as F, style as be, template as I } from "@solidjs/web";
7
+ // src/components/ui-menu/UIMenu.en.ts
8
+ var xe = {
9
9
  tag: "ui-menu",
10
10
  icon: "bars",
11
11
  snippet: "<ui-menu>\n <ui-item>One</ui-item>\n <ui-item>Two</ui-item>\n</ui-menu>",
@@ -26,6 +26,7 @@ var L = {
26
26
  ],
27
27
  skeleton: "3 tall",
28
28
  noun: "menu",
29
+ partOfSpeech: "structure",
29
30
  description: "A menu displays grouped navigation actions.",
30
31
  attributes: [
31
32
  {
@@ -45,7 +46,7 @@ var L = {
45
46
  group: "appearance",
46
47
  kind: "multiple",
47
48
  values: [
48
- ...S,
49
+ ...t,
49
50
  "link",
50
51
  "borderless",
51
52
  "header",
@@ -53,7 +54,7 @@ var L = {
53
54
  ],
54
55
  classes: {},
55
56
  replaces: [
56
- ...S.filter((e) => e !== "segmented"),
57
+ ...t.filter((e) => e !== "segmented"),
57
58
  "link",
58
59
  "borderless"
59
60
  ].map((e) => ({
@@ -194,7 +195,7 @@ var L = {
194
195
  description: "`none`: no item padding; `none-x` / `none-y` keep only the top and bottom, or the left and right; `compact`: only as wide as its items. Old names: `fitted` (`horizontally`, `vertically`), `compact`."
195
196
  },
196
197
  {
197
- name: "attach",
198
+ name: "attach-to",
198
199
  group: "layout",
199
200
  kind: "valueOnly",
200
201
  values: [
@@ -207,11 +208,11 @@ var L = {
207
208
  top: "top attached",
208
209
  bottom: "bottom attached"
209
210
  },
210
- replaces: [{
211
+ replaces: ["attach", {
211
212
  from: "attached",
212
213
  value: "both"
213
214
  }],
214
- description: "Joined edge to edge with a segment above (`top`), below (`bottom`), or both (`both`, in the middle). Its old name was `attached`."
215
+ description: "Joined edge to edge with a segment above (`top`), below (`bottom`), or both (`both`, in the middle). Its old names were `attach` and `attached`."
215
216
  },
216
217
  {
217
218
  name: "fixed",
@@ -230,7 +231,7 @@ var L = {
230
231
  group: "layout",
231
232
  kind: "valueAndKey",
232
233
  key: "aligned",
233
- values: s,
234
+ values: c,
234
235
  replaces: ["alignment"],
235
236
  description: "Where the items sit: `fluid` -- they fill the bar; `left` / `center` / `right` -- packed at that end of a full-width bar (a `segmented` menu moves as a whole). `align=\"center\"` => `center aligned`. Its old name was `alignment`."
236
237
  },
@@ -354,18 +355,18 @@ var L = {
354
355
  "menu",
355
356
  "header"
356
357
  ]
357
- }, ge = class TitleFit {
358
+ }, Se = class TitleFit {
358
359
  box;
359
360
  setup;
360
361
  constructor(e) {
361
362
  this.box = e.box, this.setup = e;
362
363
  }
363
- answer = R;
364
+ answer = L;
364
365
  resizes;
365
366
  watched = /* @__PURE__ */ new Set();
366
367
  fonts;
367
- refits = new u({
368
- when: te,
368
+ refits = new d({
369
+ when: re,
369
370
  run: () => this.refit()
370
371
  });
371
372
  start() {
@@ -377,8 +378,8 @@ var L = {
377
378
  this.resizes && this.refits.ask();
378
379
  }
379
380
  stop() {
380
- this.refits.cancel(), this.resizes?.disconnect(), this.resizes = void 0, this.watched.clear(), this.fonts?.abort(), this.fonts = void 0, this.answer = R, this.box.style.removeProperty(V), this.box.style.removeProperty(H);
381
- for (let e of Ee) this.setup.domElement.setState(e, !1);
381
+ this.refits.cancel(), this.resizes?.disconnect(), this.resizes = void 0, this.watched.clear(), this.fonts?.abort(), this.fonts = void 0, this.answer = L, this.box.style.removeProperty(we), this.box.style.removeProperty(B);
382
+ for (let e of Ie) this.setup.domElement.setState(e, !1);
382
383
  }
383
384
  refit() {
384
385
  if (!this.resizes || !this.box.isConnected) return;
@@ -387,51 +388,57 @@ var L = {
387
388
  }
388
389
  fitNow() {
389
390
  let { rows: e, others: t } = this.setup.children();
390
- if (this.watch([...e.flatMap(({ box: e, title: t }) => [e, t]), ...t.flatMap(TitleFit.boxesOf)]), !e.length) return R;
391
- let n = this.measure(e, t);
392
- if (n.fitsWhole) return R;
393
- let r = n.room - n.fixed.reduce((e, t) => e + t, 0);
394
- if (this.setup.isSegmented()) return TitleFit.cap(n.titles, r) === void 0 || this.setup.scrollsFirst?.() && n.room >= n.scrollMin ? R : B;
395
- let i = TitleFit.fit(n.titles, r, n.titleMin, {
396
- widths: n.icons,
397
- room: n.room,
398
- min: n.itemMin
391
+ if (this.watch([...e.flatMap(({ box: e, title: t }) => [e, t]), ...t.flatMap(TitleFit.boxesOf)]), !e.length) return L;
392
+ let n = this.measure(e, t), r = Math.max(0, this.setup.holdBack?.() ?? 0), i = this.answer === L ? 0 : r, a = i ? {
393
+ ...n,
394
+ room: n.room - i,
395
+ fitsWhole: n.needed <= n.room - i + je
396
+ } : n;
397
+ if (a.fitsWhole) return L;
398
+ let o = a.room - a.fixed.reduce((e, t) => e + t, 0);
399
+ if (this.setup.isSegmented()) return TitleFit.cap(a.titles, o) === void 0 || this.setup.scrollsFirst?.() && a.room >= a.scrollMin ? L : z;
400
+ let s = TitleFit.fit(a.titles, o, a.titleMin, {
401
+ widths: a.icons,
402
+ room: a.room,
403
+ min: a.itemMin
399
404
  });
400
- return i === B && this.setup.scrollsFirst?.() ? z : i;
405
+ return s === z && this.setup.scrollsFirst?.() ? R : s;
401
406
  }
402
407
  measure(e, t) {
403
408
  let { box: n } = this;
404
- this.present(R);
405
- let r = getComputedStyle(n), i = parseFloat(r.fontSize) || Te, a = t.filter(TitleFit.isShown), o = (parseFloat(r.columnGap) || 0) * Math.max(0, e.length + a.length - 1), s = (parseFloat(r.paddingLeft) || 0) + (parseFloat(r.paddingRight) || 0), c = n.scrollWidth <= n.clientWidth && e.every(({ title: e }) => e.scrollWidth - e.getBoundingClientRect().width <= we), l = a.reduce((e, t) => e + TitleFit.widthOf(t) + TitleFit.marginsOf(t), 0), u = n.clientWidth - s - o - l, d = e.map(({ title: e }) => e.scrollWidth), f = e.map(({ box: e, title: t }) => TitleFit.outerWidthOf(e) - t.getBoundingClientRect().width), ee = TitleFit.lengthOf(r.getPropertyValue(ve), i, xe), p = TitleFit.lengthOf(r.getPropertyValue(ye), i, Se), m = TitleFit.lengthOf(r.getPropertyValue(be), i, Ce), h = [];
406
- return this.setup.isSegmented() || (this.present(z), h = e.map(({ box: e }) => TitleFit.outerWidthOf(e))), this.present(this.answer), {
409
+ this.present(L);
410
+ let r = getComputedStyle(n), i = parseFloat(r.fontSize) || Me, a = t.filter(TitleFit.isShown), o = (parseFloat(r.columnGap) || 0) * Math.max(0, e.length + a.length - 1), s = (parseFloat(r.paddingLeft) || 0) + (parseFloat(r.paddingRight) || 0), c = n.scrollWidth <= n.clientWidth && e.every(({ title: e }) => e.scrollWidth - e.getBoundingClientRect().width <= je), l = a.reduce((e, t) => e + TitleFit.widthOf(t) + TitleFit.marginsOf(t), 0), u = n.clientWidth - s - o - l, d = e.map(({ title: e }) => e.scrollWidth), f = e.map(({ box: e, title: t }) => TitleFit.outerWidthOf(e) - t.getBoundingClientRect().width), p = TitleFit.lengthOf(r.getPropertyValue(Te), i, Oe), m = TitleFit.lengthOf(r.getPropertyValue(Ee), i, ke), ee = TitleFit.lengthOf(r.getPropertyValue(De), i, Ae), h = [];
411
+ return this.setup.isSegmented() || (this.present(R), h = e.map(({ box: e }) => TitleFit.outerWidthOf(e))), this.present(this.answer), {
407
412
  fitsWhole: c,
408
413
  room: u,
414
+ needed: d.reduce((e, t, n) => e + t + f[n], 0),
409
415
  titles: d,
410
416
  fixed: f,
411
417
  icons: h,
412
- titleMin: ee,
413
- itemMin: p,
414
- scrollMin: m
418
+ titleMin: p,
419
+ itemMin: m,
420
+ scrollMin: ee
415
421
  };
416
422
  }
417
423
  present(e) {
418
424
  let { box: t, setup: n } = this, r = n.isSegmented();
419
- t.style.setProperty(V, typeof e == "number" ? _e : e), typeof e == "number" ? t.style.setProperty(H, `${e}px`) : t.style.removeProperty(H), n.domElement.setState(U, e === z), n.domElement.setState(W, e === B && !r), n.domElement.setState(G, e === B && r);
425
+ t.style.setProperty(we, typeof e == "number" ? Ce : e), typeof e == "number" ? t.style.setProperty(B, `${e}px`) : t.style.removeProperty(B), n.domElement.setState(Ne, e === R), n.domElement.setState(Pe, e === z && !r), n.domElement.setState(Fe, e === z && r);
420
426
  }
421
427
  watch(e) {
422
428
  let t = this.resizes;
423
429
  if (!t) return;
424
- let n = this.setup.domElement.parentElement, r = /* @__PURE__ */ new Set([
430
+ let { domElement: n } = this.setup, r = TitleFit.boxAround(n), i = /* @__PURE__ */ new Set([
425
431
  this.box,
426
- ...n ? [n] : [],
432
+ ...TitleFit.boxesOf(n),
433
+ ...r ? [r] : [],
427
434
  ...e
428
435
  ]);
429
- for (let e of this.watched) r.has(e) || (t.unobserve(e), this.watched.delete(e));
430
- for (let e of r) this.watched.has(e) || (t.observe(e), this.watched.add(e));
436
+ for (let e of this.watched) i.has(e) || (t.unobserve(e), this.watched.delete(e));
437
+ for (let e of i) this.watched.has(e) || (t.observe(e), this.watched.add(e));
431
438
  }
432
439
  static fit(e, t, n, r) {
433
440
  let i = TitleFit.cap(e, t);
434
- return i === void 0 ? R : i >= n ? i : r && r.widths.reduce((e, t) => e + Math.max(t, r.min), 0) > r.room ? B : z;
441
+ return i === void 0 ? L : i >= n ? i : r && r.widths.reduce((e, t) => e + Math.max(t, r.min), 0) > r.room ? z : R;
435
442
  }
436
443
  static cap(e, t) {
437
444
  let n = [...e].sort((e, t) => e - t), r = t;
@@ -442,10 +449,10 @@ var L = {
442
449
  }
443
450
  }
444
451
  static lengthOf(e, t, n) {
445
- let r = De.exec(e.trim());
452
+ let r = Le.exec(e.trim());
446
453
  if (!r) return n;
447
454
  let i = parseFloat(r[1]);
448
- return r[2] === Oe ? i * t : i;
455
+ return r[2] === Re ? i * t : i;
449
456
  }
450
457
  static widthOf(e) {
451
458
  let t = TitleFit.boxesOf(e);
@@ -458,7 +465,7 @@ var L = {
458
465
  }
459
466
  static marginsOf(e) {
460
467
  let t = getComputedStyle(e);
461
- if (t.display === K) {
468
+ if (t.display === V) {
462
469
  let t = TitleFit.boxesOf(e);
463
470
  return t.length === 1 ? TitleFit.marginsOf(t[0]) : 0;
464
471
  }
@@ -466,69 +473,77 @@ var L = {
466
473
  }
467
474
  static boxesOf(e) {
468
475
  let t = getComputedStyle(e);
469
- return t.display === ke ? [] : t.display === K ? (e.localName === Ae ? e.assignedElements() : [...e.shadowRoot?.children ?? e.children]).filter((e) => e.localName !== je).flatMap(TitleFit.boxesOf) : [e];
476
+ return t.display === ze ? [] : t.display === V ? (e.localName === Be ? e.assignedElements() : [...e.shadowRoot?.children ?? e.children]).filter((e) => e.localName !== Ve).flatMap(TitleFit.boxesOf) : [e];
477
+ }
478
+ static boxAround(e) {
479
+ let t = TitleFit.drawnParentOf(e);
480
+ for (; t && getComputedStyle(t).display === V;) t = TitleFit.drawnParentOf(t);
481
+ return t;
482
+ }
483
+ static drawnParentOf(e) {
484
+ return e.assignedSlot ?? e.parentElement ?? e.parentNode?.host ?? void 0;
470
485
  }
471
486
  static isShown(e) {
472
487
  return TitleFit.boxesOf(e).length > 0;
473
488
  }
474
- }, R = "whole", _e = "cut", z = "icons", B = "overflow", V = "--_menu-fit", H = "--_menu-title-max", ve = "--_ui-menu-title-min", ye = "--_ui-menu-item-min", be = "--ui-toolbar-scroll-min", xe = 50, Se = 34, Ce = 200, we = .5, Te = 14, U = "icons-only", W = "overflow", G = "dropdown", Ee = [
475
- U,
476
- W,
477
- G
478
- ], De = /^(-?\d*\.?\d+)(px|em)?$/, Oe = "em", ke = "none", K = "contents", Ae = "slot", je = "style", Me = /* @__PURE__ */ I("<button type=button aria-haspopup=menu>"), Ne = /* @__PURE__ */ I("<span><slot>"), Pe = /* @__PURE__ */ I("<span aria-hidden=true>"), q = /* @__PURE__ */ I("<span>"), Fe = /* @__PURE__ */ I("<div role=menu popover=manual>"), Ie = /* @__PURE__ */ I("<button type=button tabindex=-1><span aria-hidden=true></span><span>"), Le = /* @__PURE__ */ I("<div><slot>"), Re = /* @__PURE__ */ I("<div role=menubar><slot>"), ze = /* @__PURE__ */ I("<nav><slot>"), Be, Ve, He, Ue, We, Ge, Ke, qe, Je, Ye, Xe, Ze, Qe, $e, et, tt, nt, rt, it, at, ot, st, ct, lt, ut, dt, ft, pt, mt, ht, gt, _t, vt, yt, bt, J, Y, X, Z;
489
+ }, L = "whole", Ce = "cut", R = "icons", z = "overflow", we = "--_menu-fit", B = "--_menu-title-max", Te = "--_ui-menu-title-min", Ee = "--_ui-menu-item-min", De = "--ui-toolbar-scroll-min", Oe = 50, ke = 34, Ae = 200, je = .5, Me = 14, Ne = "icons-only", Pe = "overflow", Fe = "dropdown", Ie = [
490
+ Ne,
491
+ Pe,
492
+ Fe
493
+ ], Le = /^(-?\d*\.?\d+)(px|em)?$/, Re = "em", ze = "none", V = "contents", Be = "slot", Ve = "style", He = /* @__PURE__ */ I("<button type=button aria-haspopup=menu>"), Ue = /* @__PURE__ */ I("<span><slot>"), We = /* @__PURE__ */ I("<span aria-hidden=true>"), H = /* @__PURE__ */ I("<span>"), Ge = /* @__PURE__ */ I("<div role=menu popover=manual>"), Ke = /* @__PURE__ */ I("<button type=button tabindex=-1><span aria-hidden=true><svg viewBox=\"0 0 16 16\"><path></path></svg></span><span aria-hidden=true></span><span>"), qe = /* @__PURE__ */ I("<div><slot>"), Je = /* @__PURE__ */ I("<div role=menu aria-orientation=vertical><slot>"), Ye = /* @__PURE__ */ I("<div role=menubar><!><!>"), Xe = /* @__PURE__ */ I("<nav><!><!>"), Ze = /* @__PURE__ */ I("<slot>"), Qe, $e, et, tt, nt, rt, it, at, ot, st, ct, lt, ut, dt, ft, pt, mt, ht, gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, Ft, It, Lt, U, W, G, K, q;
479
494
  function isSameContext(e, t) {
480
495
  return e.domElementRole === t.domElementRole && e.role === t.role && e.interactive === t.interactive && e.current === t.current && e.shrinkable === t.shrinkable && e.iconsOnly === t.iconsOnly && e.pressed === t.pressed && e.ticks === t.ticks && e.iconColumn === t.iconColumn;
481
496
  }
482
- t(isSameContext, "isSameContext");
497
+ o(isSameContext, "isSameContext");
483
498
  function isSameFolded(e, t) {
484
499
  return e.length === t.length && e.every((e, n) => {
485
500
  let r = t[n];
486
501
  return Object.keys(e).every((t) => e[t] === r[t]);
487
502
  });
488
503
  }
489
- t(isSameFolded, "isSameFolded");
490
- var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")], _t = [_("vertical")], gt = [v({ equals: isSameContext })], ht = [v({ equals: isSameContext })], mt = [re("click")], pt = [_("form-value")], ft = [b("isAFormValue", "isReady", { defer: !0 })], dt = [b("isAFormValue", "valueText")], ut = [b("valueText", "isReady")], lt = [x], ct = [x], st = [b("hasThumb", "interactive")], ot = [se({
504
+ o(isSameFolded, "isSameFolded");
505
+ var J = class _UIMenu extends (U = p, Lt = [se], It = [ce], Ft = [x("isReady")], Pt = [v("vertical")], Nt = [v("in-popup")], Mt = [C], jt = [ie({ equals: isSameContext })], At = [ie({ equals: isSameContext })], kt = [b("click")], Ot = [v("form-value")], Dt = [x("isAFormValue", "isReady", { defer: !0 })], Et = [x("isAFormValue", "valueText")], Tt = [x("valueText", "isReady")], wt = [w], Ct = [w], St = [w], xt = [x("hasThumb", "interactive")], bt = [le({
491
506
  attributes: !0,
492
507
  subtree: !0,
493
508
  childList: !0,
494
509
  characterData: !0,
495
510
  attributeFilter: [
496
- h,
511
+ te,
497
512
  y,
498
513
  "hidden"
499
514
  ]
500
- })], at = [x], it = [oe], rt = [_("icons-only")], nt = [_("overflow")], tt = [_("dropdown")], et = [b("canFit", "interactive", "appearance")], $e = [x], Qe = [x], Ze = [oe({ equals: isSameFolded })], Xe = [x], Ye = [ne], Je = [b("isOverflowOpen", "isConnected")], qe = [x], Ke = [x], Ge = [x], We = [x], Ue = [x], He = [_("interactive")], Ve = [b("isRoving", "orientation")], Be = [x], J) {
515
+ })], yt = [w], vt = [C], _t = [v("icons-only")], gt = [v("overflow")], ht = [v("dropdown")], mt = [x("canFit", "interactive", "appearance")], pt = [w], ft = [w], dt = [C({ equals: isSameFolded })], ut = [w], lt = [oe], ct = [x("isOverflowOpen", "isConnected")], st = [w], ot = [w], at = [w], it = [w], rt = [w], nt = [v("interactive")], tt = [w], et = [w], $e = [x("isRoving", "orientation")], Qe = [w], U) {
501
516
  constructor() {
502
- super(...arguments), p(Y, 5, this), r(this, "context", new c({
517
+ super(...arguments), g(W, 5, this), a(this, "context", new l({
503
518
  domElement: this.domElement,
504
519
  noun: this.vocabulary.noun,
505
- barrier: /* @__PURE__ */ t((e) => this.isSegmented || c.isBarrier(e), "barrier")
506
- })), r(this, "itemsThatAsked", /* @__PURE__ */ new WeakSet()), r(this, "startingValue", this.attributes.value ?? void 0), r(this, "box"), r(this, "thumb"), m(this, X, p(Y, 8, this, Ot)), p(Y, 11, this), r(this, "titleFit"), m(this, Z, p(Y, 12, this, [])), p(Y, 15, this), r(this, "overflowMenu", new l({
520
+ barrier: /* @__PURE__ */ o((e) => this.isSegmented || l.isBarrier(e), "barrier")
521
+ })), S(this, G, g(W, 8, this, !1)), g(W, 11, this), a(this, "itemsThatAsked", /* @__PURE__ */ new WeakSet()), a(this, "startingValue", this.attributes.value ?? void 0), a(this, "box"), a(this, "thumb"), S(this, K, g(W, 12, this, Gt)), g(W, 15, this), a(this, "titleFit"), S(this, q, g(W, 16, this, [])), g(W, 19, this), a(this, "overflowMenu", new u({
507
522
  component: this,
508
523
  restoreFocus: !1,
509
- onDismiss: /* @__PURE__ */ t((e) => this.closeOverflow(e === "escape"), "onDismiss")
510
- })), r(this, "overflowButton"), r(this, "overflowPanel"), r(this, "moreGlyph", new i({
524
+ onDismiss: /* @__PURE__ */ o((e) => this.closeOverflow(e === "escape"), "onDismiss")
525
+ })), a(this, "overflowButton"), a(this, "overflowPanel"), a(this, "moreGlyph", new i({
511
526
  owner: this,
512
- name: /* @__PURE__ */ t(() => this.isShrinking ? jt : void 0, "name")
513
- })), r(this, "caretGlyph", new i({
527
+ name: /* @__PURE__ */ o(() => this.isShrinking ? Jt : void 0, "name")
528
+ })), a(this, "caretGlyph", new i({
514
529
  owner: this,
515
- name: /* @__PURE__ */ t(() => this.isShrinking && this.isSegmented ? Mt : void 0, "name")
516
- })), r(this, "chosenGlyph", new i({
530
+ name: /* @__PURE__ */ o(() => this.isShrinking && this.isSegmented ? Yt : void 0, "name")
531
+ })), a(this, "chosenGlyph", new i({
517
532
  owner: this,
518
- name: /* @__PURE__ */ t(() => this.isShrinking && this.isSegmented ? this.chosen?.icon : void 0, "name")
519
- })), r(this, "onOverflowButtonKey", p(Y, 24, this, /* @__PURE__ */ t((e) => {
533
+ name: /* @__PURE__ */ o(() => this.isShrinking && this.isSegmented ? this.chosen?.icon : void 0, "name")
534
+ })), a(this, "onOverflowButtonKey", g(W, 28, this, /* @__PURE__ */ o((e) => {
520
535
  e.key === n.arrowDown && (e.preventDefault(), this.openOverflow());
521
- }, "onOverflowButtonKey"))), p(Y, 27, this), r(this, "onOverflowMenuKey", p(Y, 28, this, /* @__PURE__ */ t((e) => {
536
+ }, "onOverflowButtonKey"))), g(W, 31, this), a(this, "onOverflowMenuKey", g(W, 32, this, /* @__PURE__ */ o((e) => {
522
537
  let t = e.currentTarget;
523
538
  f.focus.arrowKey(e, {
524
539
  container: t,
525
- items: Ut,
540
+ items: Z,
526
541
  orientation: "vertical",
527
542
  tabindex: "left alone"
528
543
  }) || (e.key === n.escape ? (e.preventDefault(), this.closeOverflow(!0)) : e.key === n.tab && this.closeOverflow(!0));
529
- }, "onOverflowMenuKey"))), p(Y, 31, this), r(this, "rovingTabindex"), r(this, "bar"), r(this, "rovingRefresh", new u({
530
- when: g,
531
- run: /* @__PURE__ */ t(() => this.refreshRoving(), "run")
544
+ }, "onOverflowMenuKey"))), g(W, 35, this), a(this, "rovingTabindex"), a(this, "bar"), a(this, "rovingRefresh", new d({
545
+ when: _,
546
+ run: /* @__PURE__ */ o(() => this.refreshRoving(), "run")
532
547
  }));
533
548
  }
534
549
  onReadyToRove(e) {
@@ -538,13 +553,16 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
538
553
  return String(this.appearance ?? "").split(" ").includes(e);
539
554
  }
540
555
  get isSegmented() {
541
- return this.hasLook(wt);
556
+ return this.hasLook(Vt);
542
557
  }
543
558
  get choosesMany() {
544
- return this.isSegmented && this.choose === Tt;
559
+ return this.isSegmented && this.choose === Ht;
545
560
  }
546
561
  get isVertical() {
547
- return this.direction === Dt;
562
+ return this.direction === Wt;
563
+ }
564
+ get isInPopup() {
565
+ return this.isAFlyout || this.isConnected && !!this.domElement.closest(zt);
548
566
  }
549
567
  get parentMenu() {
550
568
  return this.context.ownerComponent();
@@ -560,11 +578,11 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
560
578
  ].filter(Boolean).join(" ");
561
579
  }
562
580
  get ownItemContext() {
563
- let e = this.interactive, t = this.isTabs;
581
+ let e = this.interactive || this.isAFlyout, t = this.isTabs;
564
582
  return {
565
583
  domElementRole: e || t ? "none" : void 0,
566
584
  role: t ? "tab" : e ? this.ticks ? "menuitemcheckbox" : "menuitem" : void 0,
567
- interactive: e || this.hasLook(Et) || this.pagination || this.choosesMany || this.isAFormValue,
585
+ interactive: e || this.hasLook(Ut) || this.pagination || this.choosesMany || this.isAFormValue,
568
586
  current: "page",
569
587
  pressed: (this.choosesMany || this.ticks) && !e,
570
588
  ticks: this.ticks,
@@ -581,13 +599,13 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
581
599
  };
582
600
  }
583
601
  itemContext(e) {
584
- let t = pe(() => this.topMenu);
602
+ let t = he(() => this.topMenu);
585
603
  return t.itemsThatAsked.add(e), t.queueRefresh(), e.parentElement === t.domElement ? t.ownItemContext : t.nestedItemContext;
586
604
  }
587
605
  onClick(e) {
588
606
  if (this.parentMenu) return;
589
607
  let t = _UIMenu.activatedItem(e);
590
- t && !t.matches(":state(disabled)") && this.send("ui-choosing", {
608
+ t && !t.matches(":state(disabled)") && this.itemsThatAsked.has(t) && !_UIMenu.componentOf(t)?.opensAMenuOn?.(e) && this.send("ui-choosing", {
591
609
  value: _UIMenu.valueOf(t),
592
610
  item: t,
593
611
  originalEvent: e
@@ -597,7 +615,7 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
597
615
  return this.isSegmented && !this.choosesMany && !!this.attributes.name;
598
616
  }
599
617
  onFormValueChanged(e, t) {
600
- e && t && g(() => this.send("ui-form-value", {}));
618
+ e && t && _(() => this.send("ui-form-value", {}));
601
619
  }
602
620
  onSubmissionChanged(e, t) {
603
621
  this.domElement.internals.setFormValue(e && t != null ? t : null);
@@ -609,7 +627,7 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
609
627
  this.value = e, this.send("ui-changed", { value: e });
610
628
  }
611
629
  onValueChanged(e, t) {
612
- t && e != null && this.isSegmented && !this.choosesMany && g(() => this.showValue());
630
+ t && e != null && this.isSegmented && !this.choosesMany && _(() => this.showValue());
613
631
  }
614
632
  showValue() {
615
633
  let e = this.valueText;
@@ -621,48 +639,63 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
621
639
  return this.attributes.value ?? void 0;
622
640
  }
623
641
  static valueOf(e) {
624
- return e.component?.value ?? e.textContent?.trim() ?? "";
642
+ return _UIMenu.componentOf(e)?.value ?? e.textContent?.trim() ?? "";
643
+ }
644
+ static componentOf(e) {
645
+ return e.component;
625
646
  }
626
647
  chooseOnly(e) {
627
648
  for (let t of this.ownedItems()) t !== e && t.removeAttribute(y), t.selected = t === e;
628
649
  }
629
650
  toggle(e) {
630
- let n = this.ownedItems().filter((e) => !e.hidden && !e.matches(":state(disabled)")), r = /* @__PURE__ */ t((e) => !!e.selected, "isOn");
631
- if (!r(e)) e.selected = !0;
651
+ let t = this.ownedItems().filter((e) => !e.hidden && !e.matches(":state(disabled)")), n = /* @__PURE__ */ o((e) => !!e.selected, "isOn");
652
+ if (!n(e)) e.selected = !0;
632
653
  else {
633
- if (!n.some((t) => t !== e && r(t))) {
634
- let t = n.indexOf(e), r = [...n.slice(t + 1), ...n.slice(0, Math.max(0, t))][0];
654
+ if (!t.some((t) => t !== e && n(t))) {
655
+ let n = t.indexOf(e), r = [...t.slice(n + 1), ...t.slice(0, Math.max(0, n))][0];
635
656
  if (!r) return;
636
657
  r.selected = !0;
637
658
  }
638
659
  e.removeAttribute(y), e.selected = !1;
639
660
  }
640
- this.send("ui-changed", { values: this.ownedItems().filter(r).map((e) => _UIMenu.valueOf(e)) });
661
+ this.send("ui-changed", { values: this.ownedItems().filter(n).map((e) => _UIMenu.valueOf(e)) });
662
+ }
663
+ lightElements() {
664
+ let e = [], t = /* @__PURE__ */ o((n) => {
665
+ for (let r of n.children) {
666
+ let n = r.localName === "slot" ? r.assignedElements({ flatten: !0 }) : [r];
667
+ for (let r of n) e.push(r), t(r);
668
+ }
669
+ }, "add");
670
+ return t(this.domElement), e;
641
671
  }
642
672
  ownedItems() {
643
- return [...this.domElement.querySelectorAll("*")].filter((e) => this.itemsThatAsked.has(e));
673
+ return this.lightElements().filter((e) => this.itemsThatAsked.has(e));
644
674
  }
645
675
  get hasThumb() {
646
676
  return !this.parentMenu && this.isSegmented && !this.choosesMany && this.isReady;
647
677
  }
648
678
  onThumbChanged(e) {
649
- let n = this.box;
650
- if (!e || !n) return;
651
- let r = new le({
652
- track: n,
653
- chosenBox: /* @__PURE__ */ t(() => this.chosenBox(), "chosenBox")
679
+ let t = this.box;
680
+ if (!e || !t) return;
681
+ let n = new de({
682
+ track: t,
683
+ chosenBox: /* @__PURE__ */ o(() => this.chosenBox(), "chosenBox"),
684
+ onPlaced: /* @__PURE__ */ o(() => this.onThumbPlaced(), "onPlaced")
654
685
  });
655
- this.thumb = r;
656
- let i = r.start();
686
+ this.thumb = n;
687
+ let r = n.start();
657
688
  return () => {
658
- i(), this.thumb = void 0;
689
+ r(), this.thumb = void 0;
659
690
  };
660
691
  }
692
+ onThumbPlaced() {}
661
693
  onChoiceChanged() {
662
- this.thumb?.update(), this.titleFit?.update(), this.readFolded();
694
+ this.thumb?.update(), this.titleFit?.update(), this.readFolded(), this.onItemsChanged();
663
695
  }
696
+ onItemsChanged() {}
664
697
  chosenBox() {
665
- for (let e of this.domElement.querySelectorAll("*")) if (this.itemsThatAsked.has(e) && !e.hidden && e.matches(St)) return e.shadowRoot?.querySelector(Ct) ?? void 0;
698
+ for (let e of this.lightElements()) if (this.itemsThatAsked.has(e) && !e.hidden && e.matches(Y)) return e.shadowRoot?.querySelector(Bt) ?? void 0;
666
699
  }
667
700
  get scrollsFirst() {
668
701
  return !1;
@@ -671,40 +704,48 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
671
704
  return this.shrinkable && !this.parentMenu && !this.isVertical;
672
705
  }
673
706
  get isIconsOnly() {
674
- return this.isShrinking && this.fitAnswer === kt;
707
+ return this.isShrinking && this.fitAnswer === Kt;
675
708
  }
676
709
  get isFolded() {
677
- return this.isShrinking && this.fitAnswer === $ && !this.isSegmented;
710
+ return this.isShrinking && this.fitAnswer === X && !this.isSegmented;
678
711
  }
679
712
  get isDropdown() {
680
- return this.isShrinking && this.fitAnswer === $ && this.isSegmented;
713
+ return this.isShrinking && this.fitAnswer === X && this.isSegmented;
681
714
  }
682
715
  get canFit() {
683
716
  return this.isShrinking && this.isReady;
684
717
  }
685
718
  onFitChanged(e) {
686
- let n = this.box;
687
- if (!e || !n) return;
688
- let r = new ge({
689
- box: n,
719
+ let t = this.box;
720
+ if (!e || !t) return;
721
+ let n = new Se({
722
+ box: t,
690
723
  domElement: this.domElement,
691
- children: /* @__PURE__ */ t(() => this.fitChildren(), "children"),
692
- isSegmented: /* @__PURE__ */ t(() => this.isSegmented, "isSegmented"),
693
- scrollsFirst: /* @__PURE__ */ t(() => this.scrollsFirst, "scrollsFirst"),
694
- onAnswer: /* @__PURE__ */ t((e) => this.onFitAnswer(e), "onAnswer")
724
+ children: /* @__PURE__ */ o(() => this.fitChildren(), "children"),
725
+ isSegmented: /* @__PURE__ */ o(() => this.isSegmented, "isSegmented"),
726
+ scrollsFirst: /* @__PURE__ */ o(() => this.scrollsFirst, "scrollsFirst"),
727
+ holdBack: /* @__PURE__ */ o(() => this.fitHoldBack, "holdBack"),
728
+ onAnswer: /* @__PURE__ */ o((e) => this.onFitAnswer(e), "onAnswer")
695
729
  });
696
- this.titleFit = r;
697
- let i = r.start();
730
+ this.titleFit = n;
731
+ let r = n.start();
698
732
  return () => {
699
- i(), this.titleFit = void 0, this.fitAnswer = Ot;
733
+ r(), this.titleFit = void 0, this.fitAnswer = Gt;
700
734
  };
701
735
  }
736
+ get fitHoldBack() {
737
+ return 0;
738
+ }
739
+ refitTitles() {
740
+ this.titleFit?.update();
741
+ }
702
742
  onFitAnswer(e) {
703
- this.fitAnswer = e, this.thumb?.update(), this.readFolded(), e !== $ && this.overflowMenu.close();
743
+ this.fitAnswer = e, this.thumb?.update(), this.readFolded(), e !== X && this.overflowMenu.close();
704
744
  }
705
745
  fitChildren() {
706
746
  let e = [], t = [];
707
747
  for (let n of this.rowElements()) {
748
+ if (n.hidden) continue;
708
749
  let r = this.fittedItem(n);
709
750
  r ? e.push({
710
751
  box: r.focusTarget,
@@ -717,12 +758,23 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
717
758
  };
718
759
  }
719
760
  rowElements() {
720
- return this.box?.querySelector(At)?.assignedElements() ?? [];
761
+ return this.box?.querySelector(qt)?.assignedElements() ?? [];
721
762
  }
722
763
  fittedItem(e) {
723
- if (!this.itemsThatAsked.has(e) || e.hidden) return;
764
+ if (e.hidden) return;
765
+ let t = this.itemOf(e);
766
+ return t?.titleBox ? t : void 0;
767
+ }
768
+ itemOf(e) {
769
+ if (!this.itemsThatAsked.has(e)) return;
724
770
  let t = e.component;
725
- return t?.kind === "item" && t.focusTarget && t.titleBox ? t : void 0;
771
+ return t?.kind === "item" && t.focusTarget ? t : void 0;
772
+ }
773
+ isPutAway(e) {
774
+ return !1;
775
+ }
776
+ get hasOverflowMenu() {
777
+ return this.isShrinking;
726
778
  }
727
779
  get chosen() {
728
780
  return this.folded.find((e) => e.isSelected);
@@ -731,14 +783,15 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
731
783
  return this.folded.some((e) => e.hasBadge);
732
784
  }
733
785
  readFolded() {
734
- if (!this.isShrinking) {
786
+ if (!this.hasOverflowMenu) {
735
787
  this.folded = [];
736
788
  return;
737
789
  }
738
790
  let e = [];
739
791
  for (let t of this.rowElements()) {
740
- let n = this.fittedItem(t);
741
- if (!n) continue;
792
+ if (t.hidden && !this.isPutAway(t)) continue;
793
+ let n = this.itemOf(t);
794
+ if (!n || this.isShrinking && !n.titleBox) continue;
742
795
  let r = n.titleText ?? "";
743
796
  e.push({
744
797
  element: t,
@@ -755,6 +808,9 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
755
808
  get isOverflowOpen() {
756
809
  return this.overflowMenu.isOpen;
757
810
  }
811
+ get overflowOpener() {
812
+ return this.overflowButton;
813
+ }
758
814
  get overflowMenuId() {
759
815
  return f.ids.next(this.vocabulary.tag);
760
816
  }
@@ -763,29 +819,41 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
763
819
  }
764
820
  onOverflowOpenChanged(e, t) {
765
821
  let n = this.overflowMenu.follow(this.overflowPanel, e && t);
766
- return n && g(() => this.focusRow(Math.max(0, this.folded.findIndex((e) => e.isSelected)))), n;
822
+ return n && _(() => {
823
+ this.fitColumns(), this.focusRow(Math.max(0, this.folded.findIndex((e) => e.isSelected)));
824
+ }), n;
825
+ }
826
+ fitColumns() {
827
+ let e = this.overflowPanel;
828
+ if (!e) return;
829
+ delete e.dataset.columns, e.style.removeProperty(cn);
830
+ let t = e.querySelectorAll(Z), n = this.overflowOpener?.getBoundingClientRect(), r = (n ? Math.max(window.innerHeight - n.bottom, n.top) : window.innerHeight) - ln, i = /* @__PURE__ */ o(() => Math.max(1, Math.floor(r / (t[0]?.getBoundingClientRect().height || r))), "perColumn");
831
+ if (t.length <= i()) return;
832
+ e.dataset.columns = "";
833
+ let a = Math.ceil(t.length / i());
834
+ e.dataset.columns = String(a), e.style.setProperty(cn, String(Math.ceil(t.length / a)));
767
835
  }
768
836
  openOverflow() {
769
837
  this.readFolded(), this.overflowMenu.open();
770
838
  }
771
839
  closeOverflow(e = !1) {
772
- this.overflowMenu.close(), e && this.overflowButton?.focus();
840
+ this.overflowMenu.close(), e && this.overflowOpener?.focus();
773
841
  }
774
842
  focusRow(e) {
775
- this.overflowPanel?.querySelectorAll(Ut)[e]?.focus();
843
+ this.overflowPanel?.querySelectorAll(Z)[e]?.focus();
776
844
  }
777
845
  pickFolded(e) {
778
846
  e.isDisabled || (this.closeOverflow(!0), e.element.component?.focusTarget?.click());
779
847
  }
780
848
  overflowButtonBox() {
781
849
  let e = this;
782
- return E(w, {
850
+ return k(D, {
783
851
  get when() {
784
- return e.isShrinking && !A;
852
+ return e.isShrinking && !ve;
785
853
  },
786
854
  get children() {
787
- var t = Me();
788
- return me(t, "keydown", e.onOverflowButtonKey, !0), t._$$click = () => e.isOverflowOpen ? e.closeOverflow() : e.openOverflow(), N(() => (t) => e.overflowButton = t, t), k(t, E(w, {
855
+ var t = He();
856
+ return ge(t, "keydown", e.onOverflowButtonKey, !0), t._$$click = () => e.isOverflowOpen ? e.closeOverflow() : e.openOverflow(), P(() => (t) => e.overflowButton = t, t), M(t, k(D, {
789
857
  get when() {
790
858
  return e.isSegmented;
791
859
  },
@@ -795,17 +863,17 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
795
863
  get children() {
796
864
  return e.dropdownFace();
797
865
  }
798
- })), D(() => ({
799
- e: M(Nt),
866
+ })), A(() => ({
867
+ e: N(Xt),
800
868
  t: e.partForName("overflow"),
801
- a: M(e.overflowMenu.anchorStyle),
869
+ a: N(e.overflowMenu.anchorStyle),
802
870
  o: e.interactive ? "menuitem" : void 0,
803
871
  i: e.overflowMenu.ariaExpanded,
804
872
  n: e.overflowMenuId,
805
873
  s: e.isSegmented ? void 0 : e.moreText,
806
874
  h: e.isSegmented ? e.chosen?.text : e.moreText
807
875
  }), ({ e, t: n, a: r, o: i, i: a, n: o, s, h: c }, l) => {
808
- T(t, e, l?.e), n !== l?.t && P(t, "part", n), F(t, r, l?.a), i !== l?.o && P(t, "role", i), a !== l?.i && P(t, "aria-expanded", a), o !== l?.n && P(t, "aria-controls", o), s !== l?.s && P(t, "aria-label", s), c !== l?.h && P(t, "title", c);
876
+ O(t, e, l?.e), n !== l?.t && F(t, "part", n), be(t, r, l?.a), i !== l?.o && F(t, "role", i), a !== l?.i && F(t, "aria-expanded", a), o !== l?.n && F(t, "aria-controls", o), s !== l?.s && F(t, "aria-label", s), c !== l?.h && F(t, "title", c);
809
877
  }), t;
810
878
  }
811
879
  });
@@ -813,21 +881,21 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
813
881
  moreFace() {
814
882
  let t = this;
815
883
  return [(() => {
816
- var n = Ne(), r = n.firstChild;
817
- return r._$owner = O(), k(r, () => t.moreGlyph.svg), D(() => ({
818
- e: M(e),
884
+ var n = Ue(), r = n.firstChild;
885
+ return r._$owner = j(), M(r, () => t.moreGlyph.svg), A(() => ({
886
+ e: N(e),
819
887
  t: t.slotForName("overflow")
820
888
  }), ({ e, t }, i) => {
821
- T(n, e, i?.e), t !== i?.t && P(r, "name", t);
889
+ O(n, e, i?.e), t !== i?.t && F(r, "name", t);
822
890
  }), n;
823
- })(), E(w, {
891
+ })(), k(D, {
824
892
  get when() {
825
893
  return t.hasFoldedBadge;
826
894
  },
827
895
  get children() {
828
- var e = Pe();
829
- return D(() => M(Bt), (t, n) => {
830
- T(e, t, n);
896
+ var e = We();
897
+ return A(() => N(rn), (t, n) => {
898
+ O(e, t, n);
831
899
  }), e;
832
900
  }
833
901
  })];
@@ -835,91 +903,98 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
835
903
  dropdownFace() {
836
904
  let t = this;
837
905
  return [
838
- E(w, {
906
+ k(D, {
839
907
  get when() {
840
908
  return t.chosenGlyph.svg;
841
909
  },
842
910
  get children() {
843
- var n = q();
844
- return k(n, () => t.chosenGlyph.svg), D(() => M(e), (e, t) => {
845
- T(n, e, t);
911
+ var n = H();
912
+ return M(n, () => t.chosenGlyph.svg), A(() => N(e), (e, t) => {
913
+ O(n, e, t);
846
914
  }), n;
847
915
  }
848
916
  }),
849
917
  (() => {
850
- var e = q();
851
- return k(e, () => t.chosen?.text), D(() => M(It), (t, n) => {
852
- T(e, t, n);
918
+ var e = H();
919
+ return M(e, () => t.chosen?.text), A(() => N($t), (t, n) => {
920
+ O(e, t, n);
853
921
  }), e;
854
922
  })(),
855
923
  (() => {
856
- var e = q();
857
- return k(e, () => t.caretGlyph.svg), D(() => M(zt), (t, n) => {
858
- T(e, t, n);
924
+ var e = H();
925
+ return M(e, () => t.caretGlyph.svg), A(() => N(nn), (t, n) => {
926
+ O(e, t, n);
859
927
  }), e;
860
928
  })()
861
929
  ];
862
930
  }
863
931
  overflowMenuBox() {
864
932
  let e = this;
865
- return E(w, {
933
+ return k(D, {
866
934
  get when() {
867
- return e.isShrinking && !A;
935
+ return e.hasOverflowMenu && !ve;
868
936
  },
869
937
  get children() {
870
- var t = Fe();
871
- return me(t, "keydown", e.onOverflowMenuKey, !0), N(() => (t) => e.overflowPanel = t, t), k(t, E(de, {
938
+ var t = Ge();
939
+ return ge(t, "keydown", e.onOverflowMenuKey, !0), P(() => (t) => e.overflowPanel = t, t), M(t, k(pe, {
872
940
  get each() {
873
941
  return e.folded;
874
942
  },
943
+ keyed: (e) => e.element,
875
944
  children: (t) => e.foldedRow(t)
876
- })), D(() => ({
945
+ })), A(() => ({
877
946
  e: e.overflowMenuId,
878
- t: M(Pt),
947
+ t: N(Zt),
879
948
  a: e.partForName("overflow-menu"),
880
- o: M(e.overflowMenu.panelStyle),
949
+ o: N(e.overflowMenu.panelStyle),
881
950
  i: e.moreText
882
951
  }), ({ e, t: n, a: r, o: i, i: a }, o) => {
883
- e !== o?.e && P(t, "id", e), T(t, n, o?.t), r !== o?.a && P(t, "part", r), F(t, i, o?.o), a !== o?.i && P(t, "aria-label", a);
952
+ e !== o?.e && F(t, "id", e), O(t, n, o?.t), r !== o?.a && F(t, "part", r), be(t, i, o?.o), a !== o?.i && F(t, "aria-label", a);
884
953
  }), t;
885
954
  }
886
955
  });
887
956
  }
888
- foldedRow(n) {
889
- let r = n.element.component, a = /* @__PURE__ */ t((e) => (r?.slotted?.(e) ?? []).map((e) => {
957
+ foldedRow(t) {
958
+ let n = /* @__PURE__ */ o((e) => (t().element.component?.slotted?.(e) ?? []).map((e) => {
890
959
  let t = e.cloneNode(!0);
891
960
  return t.removeAttribute("slot"), t;
892
- }), "copies"), o = a("icon"), s = a("badge"), c = n.icon ? new i({
961
+ }), "copies"), r = new i({
893
962
  owner: this,
894
- name: /* @__PURE__ */ t(() => n.icon, "name")
895
- }) : void 0, l = this;
896
- var u = Ie(), d = u.firstChild, f = d.nextSibling;
897
- return u._$$click = () => l.pickFolded(n), k(d, () => c ? c.svg : o.length ? o : (() => {
898
- var e = q();
899
- return k(e, () => n.letter), D(() => M(Rt), (t, n) => {
900
- T(e, t, n);
901
- }), e;
902
- })()), k(f, () => n.text), k(u, (() => {
903
- var e = j(() => !!s.length);
904
- return () => e() ? (() => {
905
- var e = q();
906
- return k(e, s), D(() => M(Lt), (t, n) => {
907
- T(e, t, n);
963
+ name: /* @__PURE__ */ o(() => t().icon, "name")
964
+ }), a = /* @__PURE__ */ o(() => {
965
+ if (t().icon) return r.svg;
966
+ let e = n("icon");
967
+ return e.length ? e : (() => {
968
+ var e = H();
969
+ return M(e, () => t().letter), A(() => N(tn), (t, n) => {
970
+ O(e, t, n);
908
971
  }), e;
972
+ })();
973
+ }, "icon"), s = /* @__PURE__ */ o(() => {
974
+ let e = n("badge");
975
+ return e.length ? (() => {
976
+ var t = H();
977
+ return M(t, e), A(() => N(en), (e, n) => {
978
+ O(t, e, n);
979
+ }), t;
909
980
  })() : void 0;
910
- })(), null), D(() => ({
911
- e: M([Ft, {
912
- [Vt]: n.isSelected,
913
- [Ht]: n.isDisabled
981
+ }, "badges"), c = this;
982
+ var l = Ke(), u = l.firstChild, d = u.firstChild.firstChild, f = u.nextSibling, p = f.nextSibling;
983
+ return l._$$click = () => c.pickFolded(t()), M(f, a), M(p, () => t().text), M(l, s, null), A(() => ({
984
+ e: N([Qt, {
985
+ [an]: t().isSelected,
986
+ [sn]: t().isDisabled
914
987
  }]),
915
- t: n.isSelected ? "menuitemradio" : "menuitem",
916
- a: n.isSelected ? "true" : void 0,
917
- o: n.isDisabled ? "true" : void 0,
918
- i: M(e),
919
- n: M(It)
920
- }), ({ e, t, a: n, o: r, i, n: a }, o) => {
921
- T(u, e, o?.e), t !== o?.t && P(u, "role", t), n !== o?.a && P(u, "aria-checked", n), r !== o?.o && P(u, "aria-disabled", r), T(d, i, o?.i), T(f, a, o?.n);
922
- }), u;
988
+ t: t().isSelected ? "menuitemradio" : "menuitem",
989
+ a: t().isSelected ? "true" : void 0,
990
+ o: t().isDisabled ? "true" : void 0,
991
+ i: N(on),
992
+ n: ue,
993
+ s: N(e),
994
+ h: N($t)
995
+ }), ({ e, t, a: n, o: r, i, n: a, s: o, h: s }, c) => {
996
+ O(l, e, c?.e), t !== c?.t && F(l, "role", t), n !== c?.a && F(l, "aria-checked", n), r !== c?.o && F(l, "aria-disabled", r), O(u, i, c?.i), a !== c?.n && F(d, "d", a), O(f, o, c?.s), O(p, s, c?.h);
997
+ }), l;
923
998
  }
924
999
  get isInteractiveMenubar() {
925
1000
  return !this.parentMenu && this.interactive;
@@ -928,27 +1003,41 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
928
1003
  return !this.parentMenu && !!this.tabs && !this.interactive;
929
1004
  }
930
1005
  get isRoving() {
931
- return this.isMenubar || this.isTabs && this.isReady;
1006
+ return this.isMenubar || (this.isTabs || this.isFlyoutMenu) && this.isReady;
1007
+ }
1008
+ get isFlyoutMenu() {
1009
+ return this.isAFlyout && !this.parentMenu;
932
1010
  }
933
1011
  get isMenubar() {
934
1012
  return !this.parentMenu && this.interactive && this.isReady;
935
1013
  }
936
1014
  get orientation() {
937
- return this.isVertical ? "vertical" : "horizontal";
1015
+ return this.isVertical || this.isFlyoutMenu ? "vertical" : "horizontal";
1016
+ }
1017
+ focusFirstItem() {
1018
+ let e = this.menuItems().find((e) => !e.getRootNode().host?.matches(ae));
1019
+ return e?.focus(), !!e && e.matches(":focus");
1020
+ }
1021
+ focusChosenItem() {
1022
+ let e = this.menuItems().find((e) => {
1023
+ let t = e.getRootNode().host;
1024
+ return t?.matches(Y) && !t.matches(":state(disabled)");
1025
+ });
1026
+ return e?.focus(), !!e && e.matches(":focus");
938
1027
  }
939
1028
  onMenubarChanged(e, t) {
940
- if (e) return g(() => this.startRoving(t)), () => this.stopRoving();
1029
+ if (e) return _(() => this.startRoving(t)), () => this.stopRoving();
941
1030
  }
942
1031
  startRoving(e) {
943
1032
  this.stopRoving();
944
- let n = this.bar;
945
- if (!n || !this.domElement.isConnected) return;
946
- let r = this.menuItems().findIndex((e) => e.getRootNode().host?.matches(St));
1033
+ let t = this.bar;
1034
+ if (!t || !this.domElement.isConnected) return;
1035
+ let n = this.menuItems().findIndex((e) => e.getRootNode().host?.matches(Y));
947
1036
  this.rovingTabindex = f.focus.roving({
948
- container: n,
949
- items: /* @__PURE__ */ t(() => this.menuItems(), "items"),
1037
+ container: t,
1038
+ items: /* @__PURE__ */ o(() => this.menuItems(), "items"),
950
1039
  orientation: e,
951
- activeIndex: Math.max(0, r)
1040
+ activeIndex: Math.max(0, n)
952
1041
  });
953
1042
  }
954
1043
  stopRoving() {
@@ -965,7 +1054,7 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
965
1054
  }
966
1055
  menuItems() {
967
1056
  let e = [];
968
- for (let t of this.domElement.querySelectorAll("*")) {
1057
+ for (let t of this.lightElements()) {
969
1058
  if (!this.itemsThatAsked.has(t) || t.hidden) continue;
970
1059
  let n = t.component, r = n?.focusTarget;
971
1060
  r && n.kind === "item" && e.push(r);
@@ -974,66 +1063,87 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
974
1063
  }
975
1064
  render() {
976
1065
  let e = this;
977
- return [j(() => e.menuBox()), j(() => e.overflowMenuBox())];
1066
+ return [ye(() => e.menuBox()), ye(() => e.overflowMenuBox())];
978
1067
  }
979
1068
  get landmarkLabel() {
980
1069
  return this.attributes["aria-label"] ?? this.sharedLabel ?? void 0;
981
1070
  }
982
1071
  menuBox() {
983
1072
  let e = this;
984
- return E(fe, { get children() {
1073
+ return k(me, { get children() {
985
1074
  return [
986
- E(C, {
1075
+ k(E, {
987
1076
  get when() {
988
1077
  return e.parentMenu;
989
1078
  },
990
1079
  get children() {
991
- var t = Le(), n = t.firstChild;
992
- return n._$owner = O(), D(() => ({
993
- e: M(e.subMenuClasses),
1080
+ var t = qe(), n = t.firstChild;
1081
+ return n._$owner = j(), A(() => ({
1082
+ e: N(e.subMenuClasses),
994
1083
  t: e.partForName("menu")
995
1084
  }), ({ e, t: n }, r) => {
996
- T(t, e, r?.e), n !== r?.t && P(t, "part", n);
1085
+ O(t, e, r?.e), n !== r?.t && F(t, "part", n);
1086
+ }), t;
1087
+ }
1088
+ }),
1089
+ k(E, {
1090
+ get when() {
1091
+ return e.isAFlyout;
1092
+ },
1093
+ get children() {
1094
+ var t = Je(), n = t.firstChild;
1095
+ return P(() => (t) => {
1096
+ e.bar = t, e.box = t;
1097
+ }, t), n._$owner = j(), A(() => ({
1098
+ e: N(e.rootClass),
1099
+ t: e.partForName("menu"),
1100
+ a: e.landmarkLabel
1101
+ }), ({ e, t: n, a: r }, i) => {
1102
+ O(t, e, i?.e), n !== i?.t && F(t, "part", n), r !== i?.a && F(t, "aria-label", r);
997
1103
  }), t;
998
1104
  }
999
1105
  }),
1000
- E(C, {
1106
+ k(E, {
1001
1107
  get when() {
1002
1108
  return e.interactive;
1003
1109
  },
1004
1110
  get children() {
1005
- var t = Re(), n = t.firstChild;
1006
- return N(() => (t) => {
1111
+ var t = Ye(), n = t.firstChild, r = n.nextSibling;
1112
+ return P(() => (t) => {
1007
1113
  e.bar = t, e.box = t;
1008
- }, t), k(t, () => e.overflowButtonBox(), n), n._$owner = O(), D(() => ({
1009
- e: M(e.rootClass),
1114
+ }, t), M(t, () => e.overflowButtonBox(), n), M(t, () => e.boxContent(), r), A(() => ({
1115
+ e: N(e.rootClass),
1010
1116
  t: e.partForName("menu"),
1011
1117
  a: e.isVertical ? "vertical" : void 0,
1012
1118
  o: e.landmarkLabel
1013
1119
  }), ({ e, t: n, a: r, o: i }, a) => {
1014
- T(t, e, a?.e), n !== a?.t && P(t, "part", n), r !== a?.a && P(t, "aria-orientation", r), i !== a?.o && P(t, "aria-label", i);
1120
+ O(t, e, a?.e), n !== a?.t && F(t, "part", n), r !== a?.a && F(t, "aria-orientation", r), i !== a?.o && F(t, "aria-label", i);
1015
1121
  }), t;
1016
1122
  }
1017
1123
  }),
1018
- E(C, {
1124
+ k(E, {
1019
1125
  when: !0,
1020
1126
  get children() {
1021
- var t = ze(), n = t.firstChild;
1022
- return N(() => (t) => {
1127
+ var t = Xe(), n = t.firstChild, r = n.nextSibling;
1128
+ return P(() => (t) => {
1023
1129
  e.bar = t, e.box = t;
1024
- }, t), k(t, () => e.overflowButtonBox(), n), n._$owner = O(), D(() => ({
1025
- e: M(e.rootClass),
1130
+ }, t), M(t, () => e.overflowButtonBox(), n), M(t, () => e.boxContent(), r), A(() => ({
1131
+ e: N(e.rootClass),
1026
1132
  t: e.partForName("menu"),
1027
1133
  a: e.isTabs ? "tablist" : void 0,
1028
1134
  o: e.landmarkLabel
1029
1135
  }), ({ e, t: n, a: r, o: i }, a) => {
1030
- T(t, e, a?.e), n !== a?.t && P(t, "part", n), r !== a?.a && P(t, "role", r), i !== a?.o && P(t, "aria-label", i);
1136
+ O(t, e, a?.e), n !== a?.t && F(t, "part", n), r !== a?.a && F(t, "role", r), i !== a?.o && F(t, "aria-label", i);
1031
1137
  }), t;
1032
1138
  }
1033
1139
  })
1034
1140
  ];
1035
1141
  } });
1036
1142
  }
1143
+ boxContent() {
1144
+ var e = Ze();
1145
+ return e._$owner = j(), e;
1146
+ }
1037
1147
  static activatedItem(e) {
1038
1148
  for (let t of e.composedPath()) if (t instanceof HTMLElement && (t.localName === "a" || t.localName === "button") && t.part.contains("item")) {
1039
1149
  let e = t.getRootNode();
@@ -1041,17 +1151,499 @@ var Q = class _UIMenu extends (J = ee, bt = [ie], yt = [ae], vt = [b("isReady")]
1041
1151
  }
1042
1152
  }
1043
1153
  };
1044
- Y = ce(J), X = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), a(Y, 1, "onReadyToRove", vt, Q), a(Y, 2, "isVertical", _t, Q), a(Y, 2, "ownItemContext", gt, Q), a(Y, 2, "nestedItemContext", ht, Q), a(Y, 1, "onClick", mt, Q), a(Y, 2, "isAFormValue", pt, Q), a(Y, 1, "onFormValueChanged", ft, Q), a(Y, 1, "onSubmissionChanged", dt, Q), a(Y, 1, "onValueChanged", ut, Q), a(Y, 1, "showValue", lt, Q), a(Y, 1, "ownedItems", ct, Q), a(Y, 1, "onThumbChanged", st, Q), a(Y, 1, "onChoiceChanged", ot, Q), a(Y, 1, "chosenBox", at, Q), a(Y, 4, "fitAnswer", it, Q, X), a(Y, 2, "isIconsOnly", rt, Q), a(Y, 2, "isFolded", nt, Q), a(Y, 2, "isDropdown", tt, Q), a(Y, 1, "onFitChanged", et, Q), a(Y, 1, "fitChildren", $e, Q), a(Y, 1, "rowElements", Qe, Q), a(Y, 4, "folded", Ze, Q, Z), a(Y, 1, "readFolded", Xe, Q), a(Y, 2, "overflowMenuId", Ye, Q), a(Y, 1, "onOverflowOpenChanged", Je, Q), a(Y, 1, "openOverflow", qe, Q), a(Y, 1, "closeOverflow", Ke, Q), a(Y, 1, "pickFolded", Ue, Q), a(Y, 2, "isInteractiveMenubar", He, Q), a(Y, 1, "onMenubarChanged", Ve, Q), a(Y, 1, "menuItems", Be, Q), a(Y, 13, "vocabulary", bt, Q), a(Y, 13, "elementSetup", yt, Q), a(Y, 5, "onOverflowButtonKey", Ge, Q), a(Y, 5, "onOverflowMenuKey", We, Q), d(Y, Q), t(Q, "UIMenu"), r(Q, "vocabulary", p(Y, 16, Q, L)), p(Y, 19, Q), r(Q, "elementSetup", p(Y, 20, Q, {
1045
- styleSheets: { menu: ue },
1154
+ W = r(U), G = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), m(W, 1, "onReadyToRove", Ft, J), m(W, 2, "isVertical", Pt, J), m(W, 2, "isInPopup", Nt, J), m(W, 4, "isAFlyout", Mt, J, G), m(W, 2, "ownItemContext", jt, J), m(W, 2, "nestedItemContext", At, J), m(W, 1, "onClick", kt, J), m(W, 2, "isAFormValue", Ot, J), m(W, 1, "onFormValueChanged", Dt, J), m(W, 1, "onSubmissionChanged", Et, J), m(W, 1, "onValueChanged", Tt, J), m(W, 1, "showValue", wt, J), m(W, 1, "lightElements", Ct, J), m(W, 1, "ownedItems", St, J), m(W, 1, "onThumbChanged", xt, J), m(W, 1, "onChoiceChanged", bt, J), m(W, 1, "chosenBox", yt, J), m(W, 4, "fitAnswer", vt, J, K), m(W, 2, "isIconsOnly", _t, J), m(W, 2, "isFolded", gt, J), m(W, 2, "isDropdown", ht, J), m(W, 1, "onFitChanged", mt, J), m(W, 1, "fitChildren", pt, J), m(W, 1, "rowElements", ft, J), m(W, 4, "folded", dt, J, q), m(W, 1, "readFolded", ut, J), m(W, 2, "overflowMenuId", lt, J), m(W, 1, "onOverflowOpenChanged", ct, J), m(W, 1, "openOverflow", st, J), m(W, 1, "closeOverflow", ot, J), m(W, 1, "pickFolded", rt, J), m(W, 2, "isInteractiveMenubar", nt, J), m(W, 1, "focusFirstItem", tt, J), m(W, 1, "focusChosenItem", et, J), m(W, 1, "onMenubarChanged", $e, J), m(W, 1, "menuItems", Qe, J), m(W, 13, "vocabulary", Lt, J), m(W, 13, "elementSetup", It, J), m(W, 5, "onOverflowButtonKey", at, J), m(W, 5, "onOverflowMenuKey", it, J), h(W, J), o(J, "UIMenu"), a(J, "vocabulary", g(W, 20, J, xe)), g(W, 23, J), a(J, "elementSetup", g(W, 24, J, {
1155
+ styleSheets: { menu: fe },
1046
1156
  isAPart: !0,
1047
1157
  isAFormControl: !0,
1048
1158
  delegatesFocus: !1
1049
- })), p(Y, 23, Q);
1050
- var xt = Q, St = ":state(selected)", Ct = `.${o}`, wt = "segmented", Tt = "many", Et = "link", Dt = "vertical", Ot = "whole", kt = "icons", $ = "overflow", At = ":scope > slot:not([name])", jt = "ellipsis horizontal", Mt = "caret down", Nt = `${o} overflow`, Pt = "overflow-menu", Ft = "row", It = "title", Lt = "badge", Rt = "letter", zt = "caret", Bt = "dot", Vt = "selected", Ht = "disabled", Ut = `:scope > .${Ft}`;
1051
- //#endregion
1052
- //#region src/components/ui-menu/index.ts
1053
- he(["click", "keydown"]), xt.define();
1054
- //#endregion
1055
- export { xt as UIMenu, L as t };
1159
+ })), g(W, 27, J);
1160
+ var Rt = J, zt = "ui-popup", Y = ":state(selected)", Bt = `.${s}`, Vt = "segmented", Ht = "many", Ut = "link", Wt = "vertical", Gt = "whole", Kt = "icons", X = "overflow", qt = ":scope > slot:not([name])", Jt = "ellipsis horizontal", Yt = "caret down", Xt = `${s} overflow`, Zt = "overflow-menu", Qt = "row", $t = "title", en = "badge", tn = "letter", nn = "caret", rn = "dot", an = "selected", on = "tick", sn = "disabled", Z = `:scope > .${Qt}`, cn = "--_ui-menu-overflow-rows", ln = 24;
1161
+ _e(["click", "keydown"]);
1162
+ // src/components/ui-menu/SubMenuAim.ts
1163
+ var un = class SubMenuAim {
1164
+ setup;
1165
+ constructor(e) {
1166
+ this.setup = e;
1167
+ }
1168
+ get isTracking() {
1169
+ return this.moves !== void 0;
1170
+ }
1171
+ start(e) {
1172
+ this.stop();
1173
+ let t = this.setup.row()?.ownerDocument;
1174
+ t && (this.moves = new AbortController(), t.addEventListener("pointermove", this.onMove, {
1175
+ capture: !0,
1176
+ signal: this.moves.signal
1177
+ }), this.target = this.measure(), this.last = e ? {
1178
+ x: e.clientX,
1179
+ y: e.clientY
1180
+ } : void 0, this.lastCheck = -Infinity);
1181
+ }
1182
+ stop() {
1183
+ this.moves?.abort(), this.moves = void 0, this.resting?.cancel(), this.resting = void 0, this.target = void 0, this.last = void 0, this.misses = 0, this.path = [];
1184
+ }
1185
+ wantsToSwitch(e) {
1186
+ return e.pointerType !== dn || !this.isTracking;
1187
+ }
1188
+ static isAiming(e, t, n, r = fn) {
1189
+ let i = n.side === "left" ? -1 : 1, a = t.x * i;
1190
+ if (a < 0) return !1;
1191
+ if (a === 0 && t.y === 0) return !0;
1192
+ let o = Math.max((n.edge - e.x) * i, 1), s = Math.atan2(t.y, a), c = Math.atan2(n.top - e.y, o), l = Math.atan2(n.bottom - e.y, o), u = r * Math.PI / 180;
1193
+ return s >= c - u && s <= l + u;
1194
+ }
1195
+ static targetFor(e, t) {
1196
+ let n = t.left + t.width / 2 >= e.left + e.width / 2 ? "right" : "left";
1197
+ return {
1198
+ side: n,
1199
+ edge: n === "right" ? t.left : t.right,
1200
+ top: t.top,
1201
+ bottom: t.bottom
1202
+ };
1203
+ }
1204
+ onMove = (e) => {
1205
+ if (e.pointerType !== dn) return;
1206
+ let t = this.setup.subMenu(), n = this.setup.row();
1207
+ if (this.path = e.composedPath(), !t || !n || this.path.includes(t)) return this.stop();
1208
+ this.restartResting();
1209
+ let r = performance.now(), i = {
1210
+ x: e.clientX,
1211
+ y: e.clientY
1212
+ };
1213
+ if (!this.last) {
1214
+ this.last = i, this.lastCheck = r;
1215
+ return;
1216
+ }
1217
+ if (r - this.lastCheck < mn || (this.target && this.target.top !== this.target.bottom || (this.target = this.measure()), !this.target)) return;
1218
+ let a = {
1219
+ x: i.x - this.last.x,
1220
+ y: i.y - this.last.y
1221
+ }, o = SubMenuAim.isAiming(this.last, a, this.target);
1222
+ this.last = i, this.lastCheck = r, o || this.path.includes(n) ? this.misses = 0 : ++this.misses >= pn && this.giveUp();
1223
+ };
1224
+ onRest() {
1225
+ let e = this.setup.row();
1226
+ e && this.path.includes(e) || this.giveUp();
1227
+ }
1228
+ giveUp() {
1229
+ let e = this.path;
1230
+ this.stop(), this.setup.onGiveUp(e);
1231
+ }
1232
+ restartResting() {
1233
+ this.resting?.cancel();
1234
+ let e = ne(hn, () => this.onRest());
1235
+ e.catch((e) => {
1236
+ e instanceof DOMException && e.name === "AbortError" || console.error(e);
1237
+ }), this.resting = e;
1238
+ }
1239
+ measure() {
1240
+ let e = this.setup.row(), t = this.setup.subMenu();
1241
+ if (e && t) return SubMenuAim.targetFor(e.getBoundingClientRect(), t.getBoundingClientRect());
1242
+ }
1243
+ moves;
1244
+ resting;
1245
+ target;
1246
+ last;
1247
+ lastCheck = -Infinity;
1248
+ misses = 0;
1249
+ path = [];
1250
+ }, dn = "mouse", fn = 15, pn = 2, mn = 16, hn = .4, gn = {
1251
+ tag: "ui-submenu",
1252
+ icon: "caret right",
1253
+ topics: ["menus", "navigation"],
1254
+ aka: [
1255
+ "submenu",
1256
+ "flyout menu",
1257
+ "cascading menu",
1258
+ "nested menu",
1259
+ "menu item with submenu"
1260
+ ],
1261
+ skeleton: "inline 8 x 2.5",
1262
+ noun: "item",
1263
+ partOfSpeech: "structure",
1264
+ ui: !1,
1265
+ description: "A menu's row that opens another menu beside it: its fly-out.",
1266
+ attributes: [
1267
+ {
1268
+ name: "label",
1269
+ group: "name",
1270
+ kind: "string",
1271
+ description: "The row's words, its title. As `<ui-item>`'s `label`: an attribute, since what's written inside is the fly-out's items."
1272
+ },
1273
+ {
1274
+ name: "icon",
1275
+ group: "content",
1276
+ kind: "icon",
1277
+ description: "Icon name: where the menu's items show theirs (its icon column, or after the words in a vertical menu)."
1278
+ },
1279
+ {
1280
+ name: "menu",
1281
+ group: "content",
1282
+ kind: "string",
1283
+ description: "Id of a `<ui-menu>` elsewhere on the page to show as the fly-out, in place of the items inside. It stays where it is, shown beside the row while open; write `popover` on it, so it's hidden until then."
1284
+ },
1285
+ {
1286
+ name: "flyout-label",
1287
+ group: "name",
1288
+ kind: "string",
1289
+ description: "The fly-out's own name, when it isn't the row's `label`: its menu's name for a screen reader, and with `split` the chevron end's tooltip (\"Pick one of the parts under the mouse\"). Default: its `label`."
1290
+ },
1291
+ {
1292
+ name: "value",
1293
+ group: "behaviour",
1294
+ kind: "string",
1295
+ description: "With `split`: what its menu's `ui-choosing` reports when its title is chosen. Default: its `label`."
1296
+ },
1297
+ {
1298
+ name: "split",
1299
+ group: "behaviour",
1300
+ kind: "keyOnly",
1301
+ description: "Two things in one row: its title is a plain item, which a click, Enter or Space chooses (the menu's `ui-choosing`, as any item's); its chevron end, set off by a faint line, opens the fly-out, by the pointer, a click or the arrow key toward it."
1302
+ },
1303
+ {
1304
+ name: "disabled",
1305
+ group: "states",
1306
+ kind: "keyOnly",
1307
+ description: "Can't be opened."
1308
+ }
1309
+ ],
1310
+ events: [],
1311
+ slots: [{
1312
+ name: "",
1313
+ description: "The fly-out's items: `<ui-item>`s, dividers, headers, other `<ui-submenu>`s. No `<ui-menu>` needed."
1314
+ }, {
1315
+ name: "icon",
1316
+ description: "Replaces the `icon` shorthand's glyph."
1317
+ }],
1318
+ parts: [
1319
+ {
1320
+ name: "item",
1321
+ description: "The row: a `<button>`, `aria-haspopup=menu`."
1322
+ },
1323
+ {
1324
+ name: "icon",
1325
+ description: "The row's icon box."
1326
+ },
1327
+ {
1328
+ name: "title",
1329
+ description: "The row's label."
1330
+ },
1331
+ {
1332
+ name: "chevron",
1333
+ description: "The chevron at the row's end, pointing to the fly-out; with `split`, what opens it."
1334
+ },
1335
+ {
1336
+ name: "flyout",
1337
+ description: "The fly-out's box, beside the row in the top layer, around the menu of the items inside."
1338
+ }
1339
+ ],
1340
+ states: [
1341
+ {
1342
+ name: "open",
1343
+ description: "Its fly-out is showing."
1344
+ },
1345
+ {
1346
+ name: "split",
1347
+ description: "Its title chooses; its chevron end opens the fly-out (`split`)."
1348
+ },
1349
+ {
1350
+ name: "disabled",
1351
+ description: "Can't be opened."
1352
+ }
1353
+ ],
1354
+ texts: []
1355
+ }, _n = "@layer ui.components.submenu.types{.item{--_ui-menu-item-display:flex;--_ui-menu-icon-float:none}.item>.title{flex:auto;min-width:0}.item>.chevron{opacity:.6;flex:none;order:2;align-items:center;margin-inline-start:1em;display:inline-flex}.item>.chevron svg{fill:currentColor;width:auto;height:.75em}@container style(--_ui-menu-layout:vertical){:host(:not(:state(in-icon-column)))>.item>.icon{order:1}}:host(:dir(rtl)) .item>.chevron svg{transform:scaleX(-1)}:host(:state(open))>.item>.chevron{opacity:1}:host(:state(split))>.item>.chevron{border-inline-start:var(--ui-border-width,1px) solid var(--ui-border-color);align-self:stretch;margin-inline:.75em -.5em;padding-inline:.75em .5em}.flyout>ui-menu::part(menu){box-sizing:border-box;width:max-content;min-width:100%;max-width:100%}}", vn = /* @__PURE__ */ I("<slot>"), yn = /* @__PURE__ */ I("<span>"), bn = /* @__PURE__ */ I("<span aria-hidden=true>"), xn = /* @__PURE__ */ I("<div popover=manual><ui-menu direction=vertical><slot>", 1), Sn, Cn, wn, Tn, En, Dn, On, kn, An, jn, Mn, Nn, Pn, Fn, In, Ln, Rn, zn, Bn, Vn, Hn, Un, Wn, Gn, Kn, qn, Jn, Q, Yn, Xn = "ui-choosing", Zn = {
1356
+ display: "block",
1357
+ position: "fixed",
1358
+ "position-anchor": "auto",
1359
+ "position-area": "inline-end span-block-end",
1360
+ "position-try-fallbacks": "flip-inline, flip-block, flip-block flip-inline",
1361
+ inset: "auto",
1362
+ margin: "calc(-0.25em - var(--ui-border-width, 1px)) 0",
1363
+ padding: "0.25em 0",
1364
+ "box-sizing": "border-box",
1365
+ width: "max-content",
1366
+ "max-height": "100%",
1367
+ "max-width": "calc(100vw - 1em)",
1368
+ "overflow-y": "auto",
1369
+ "overscroll-behavior": "contain",
1370
+ color: "var(--ui-text-color)",
1371
+ background: "var(--ui-popup-background, var(--ui-surface))",
1372
+ border: "var(--ui-border-width) solid var(--ui-border-color)",
1373
+ "border-radius": "var(--ui-menu-radius, var(--ui-radius))",
1374
+ "box-shadow": "var(--ui-shadow-raised)",
1375
+ "--ui-menu-margin": "0"
1376
+ }, Qn = `@layer ui.components.submenu.types { .flyout:popover-open { ${Object.entries(Zn).map(([e, t]) => `${e}: ${t};`).join(" ")} } }`, $ = class _UISubmenu extends (Jn = T, qn = [se], Kn = [ce], Gn = [v("open"), C], Wn = [w], Un = [le({
1377
+ childList: !0,
1378
+ subtree: !0,
1379
+ attributes: !0
1380
+ })], Hn = [w], Vn = [w], Bn = [x("isReady", "isConnected")], zn = [w], Rn = [w], Ln = [w], In = [x("isOpen", "isConnected", "isReady")], Fn = [w], Pn = [b("pointerover")], Nn = [w], Mn = [w], jn = [w], An = [w], kn = [w], On = [w], Dn = [w], En = [b("click")], Tn = [b("keydown")], wn = [w], Cn = [b(Xn)], Sn = [w], Jn) {
1381
+ constructor() {
1382
+ super(...arguments), g(Q, 5, this), a(this, "chevron"), a(this, "chevronGlyph", new i({
1383
+ owner: this,
1384
+ name: /* @__PURE__ */ o(() => this.itemContext ? ar : void 0, "name")
1385
+ })), S(this, Yn, g(Q, 8, this, !1)), g(Q, 11, this), a(this, "flyout", new u({
1386
+ component: this,
1387
+ member: "isOpen",
1388
+ restoreFocus: !1,
1389
+ pool: `${rr}-${++_UISubmenu.made}`,
1390
+ alsoInside: /* @__PURE__ */ o(() => this.namesAMenu ? this.namedMenu() : void 0, "alsoInside"),
1391
+ onDismiss: /* @__PURE__ */ o((e) => this.close({ refocus: e === "escape" }), "onDismiss")
1392
+ })), a(this, "panel"), a(this, "innerMenu"), a(this, "focusesOnShow", !1), a(this, "openedAt"), a(this, "aim", new un({
1393
+ row: /* @__PURE__ */ o(() => this.focusTarget, "row"),
1394
+ subMenu: /* @__PURE__ */ o(() => this.isOpen ? this.flyoutBox : void 0, "subMenu"),
1395
+ onGiveUp: /* @__PURE__ */ o((e) => this.giveUpTo(e), "onGiveUp")
1396
+ })), a(this, "onMenuPointerOver", g(Q, 20, this, /* @__PURE__ */ o((e) => {
1397
+ e.pointerType !== tr || e.composedPath().includes(this.domElement) || this.aim.wantsToSwitch(e) && this.close();
1398
+ }, "onMenuPointerOver"))), g(Q, 23, this), a(this, "onFlyoutLeave", g(Q, 24, this, /* @__PURE__ */ o((e) => {
1399
+ if (e.pointerType !== tr) return;
1400
+ let t = e.relatedTarget, n = this.ownerElement;
1401
+ t && n && (n === t || n.contains(t)) || (this.leaving?.cancel(), this.leaving = ne(er, () => this.close()));
1402
+ }, "onFlyoutLeave"))), g(Q, 27, this), a(this, "onFlyoutEnter", g(Q, 28, this, /* @__PURE__ */ o(() => {
1403
+ this.leaving?.cancel(), this.leaving = void 0;
1404
+ }, "onFlyoutEnter"))), g(Q, 31, this), a(this, "leaving"), a(this, "onFlyoutKey", g(Q, 32, this, /* @__PURE__ */ o((e) => {
1405
+ e.key === this.closeKey ? (e.preventDefault(), e.stopPropagation(), this.close({ refocus: !0 })) : e.key === n.tab && this.close();
1406
+ }, "onFlyoutKey"))), g(Q, 35, this), a(this, "onNamedMenuChoosing", g(Q, 36, this, /* @__PURE__ */ o((e) => {
1407
+ e.stopPropagation();
1408
+ let { cancelable: t, detail: n } = e, r = new CustomEvent(e.type, {
1409
+ bubbles: !0,
1410
+ composed: !0,
1411
+ cancelable: t,
1412
+ detail: n
1413
+ });
1414
+ this.domElement.dispatchEvent(r) || e.preventDefault(), this.close();
1415
+ }, "onNamedMenuChoosing"))), g(Q, 39, this);
1416
+ }
1417
+ opensAMenuOn(e) {
1418
+ return !this.split || this.isOnChevron(e);
1419
+ }
1420
+ isOnChevron(e) {
1421
+ return !!this.chevron && e.composedPath().includes(this.chevron);
1422
+ }
1423
+ get rootTag() {
1424
+ return "button";
1425
+ }
1426
+ get kind() {
1427
+ return s;
1428
+ }
1429
+ get titleText() {
1430
+ return this.label?.trim() ?? "";
1431
+ }
1432
+ get value() {
1433
+ return this.attributes.value ?? this.titleText;
1434
+ }
1435
+ get hasMoreThanItsIcon() {
1436
+ return !0;
1437
+ }
1438
+ get hasTitleBox() {
1439
+ return !1;
1440
+ }
1441
+ get boxHasPopup() {
1442
+ return "menu";
1443
+ }
1444
+ get boxExpanded() {
1445
+ return this.flyout.ariaExpanded;
1446
+ }
1447
+ get ownerMenu() {
1448
+ return this.context.ownerComponent();
1449
+ }
1450
+ get ownerElement() {
1451
+ return this.context.owner?.owner;
1452
+ }
1453
+ get namesAMenu() {
1454
+ return !!this.attributes.menu;
1455
+ }
1456
+ namedMenu() {
1457
+ let e = this.attributes.menu;
1458
+ if (e && this.domElement.isConnected) return this.domElement.getRootNode().getElementById?.(e) ?? void 0;
1459
+ }
1460
+ get hasOnOrOffItems() {
1461
+ return [...this.domElement.children].some((e) => _UISubmenu.isOnOrOff(e));
1462
+ }
1463
+ get flyoutBox() {
1464
+ return this.namesAMenu ? this.namedMenu() : this.panel;
1465
+ }
1466
+ get flyoutMenu() {
1467
+ return (this.namesAMenu ? this.namedMenu() : this.innerMenu)?.component;
1468
+ }
1469
+ onReadyForFlyout(e, t) {
1470
+ e && t && _(() => this.prepareFlyout());
1471
+ }
1472
+ prepareFlyout() {
1473
+ let e = this.flyoutBox;
1474
+ e && this.namesAMenu && e.popover !== nr && (e.popover = nr);
1475
+ let t = this.flyoutMenu;
1476
+ return t && !t.isAFlyout && (t.isAFlyout = !0), e;
1477
+ }
1478
+ open({ byKeyboard: e = !1, pointer: t } = {}) {
1479
+ if (this.isDisabled || !this.itemContext) return;
1480
+ let n = this.ownerElement, r = n && _UISubmenu.openByOwner.get(n);
1481
+ r && r !== this && r.close(), this.focusesOnShow = e, this.openedAt = t, this.isOpen ? e && this.focusFlyout() : this.flyout.open();
1482
+ }
1483
+ close({ refocus: e = !1 } = {}) {
1484
+ this.isOpen && this.flyout.close(), e && this.focusTarget?.focus();
1485
+ }
1486
+ onOpenChanged(e, t, n) {
1487
+ if (!e || !t || !n) return;
1488
+ let r = this.focusTarget, i = this.prepareFlyout();
1489
+ if (!r || !i) {
1490
+ i || ee.warn("<ui-submenu>", `no menu with id ${JSON.stringify(this.attributes.menu)} to show`), _(() => this.close());
1491
+ return;
1492
+ }
1493
+ let a = this.namesAMenu ? _UISubmenu.frame(i) : void 0, o = this.flyout.follow(i, !0, r), s = this.ownerElement;
1494
+ s && _UISubmenu.openByOwner.set(s, this);
1495
+ let c = new AbortController(), { signal: l } = c;
1496
+ s?.addEventListener("pointerover", this.onMenuPointerOver, { signal: l }), i.addEventListener("keydown", this.onFlyoutKey, { signal: l }), i.addEventListener("pointerleave", this.onFlyoutLeave, { signal: l }), i.addEventListener("pointerenter", this.onFlyoutEnter, { signal: l }), this.namesAMenu && i.addEventListener(this.choosingEventOf(i), this.onNamedMenuChoosing, { signal: l });
1497
+ let u = new ResizeObserver(() => {
1498
+ r.checkVisibility() || this.close();
1499
+ });
1500
+ return u.observe(r), this.aim.start(this.openedAt), this.focusesOnShow && _(() => this.focusFlyout()), () => {
1501
+ this.leaving?.cancel(), c.abort(), u.disconnect(), this.aim.stop(), o?.(), a?.(), s && _UISubmenu.openByOwner.get(s) === this && _UISubmenu.openByOwner.delete(s);
1502
+ };
1503
+ }
1504
+ focusFlyout() {
1505
+ this.focusChosen() || re(() => this.focusChosen());
1506
+ }
1507
+ focusChosen() {
1508
+ let e = this.flyoutMenu;
1509
+ if (!e) return !1;
1510
+ if (e.focusChosenItem()) return !0;
1511
+ for (let e of this.flyoutChildren()) {
1512
+ let t = e.component;
1513
+ if (t instanceof T && t.kind === "item" && !t.isDisabled) break;
1514
+ if (typeof t?.focusChosen == "function" && (t.focusChosen(), e.matches(":focus-within"))) return !0;
1515
+ }
1516
+ return e.focusFirstItem();
1517
+ }
1518
+ flyoutChildren() {
1519
+ return [...(this.namesAMenu ? this.namedMenu() : this.domElement)?.children ?? []];
1520
+ }
1521
+ onPointerOver(e) {
1522
+ if (e.pointerType !== tr || this.isInFlyout(e) || this.isOpen || this.split && !this.isOnChevron(e)) return;
1523
+ let t = this.ownerElement, n = t && _UISubmenu.openByOwner.get(t);
1524
+ (!n || n === this || n.aim.wantsToSwitch(e)) && this.open({ pointer: e });
1525
+ }
1526
+ giveUpTo(e) {
1527
+ this.close();
1528
+ let t = this.ownerElement;
1529
+ for (let n of e) {
1530
+ let e = n.component;
1531
+ if (e === this) return;
1532
+ if (e instanceof _UISubmenu && e.ownerElement === t) return e.open();
1533
+ }
1534
+ }
1535
+ isInFlyout(e) {
1536
+ return !!this.panel && e.composedPath().includes(this.panel);
1537
+ }
1538
+ get isRightToLeft() {
1539
+ return this.domElement.matches(ir);
1540
+ }
1541
+ get openKey() {
1542
+ let e = this.ownerMenu;
1543
+ return e && !e.isVertical && !e.isAFlyout ? n.arrowDown : this.isRightToLeft ? n.arrowLeft : n.arrowRight;
1544
+ }
1545
+ get closeKey() {
1546
+ return this.isRightToLeft ? n.arrowRight : n.arrowLeft;
1547
+ }
1548
+ onRowClick(e) {
1549
+ !this.isInFlyout(e) && this.opensAMenuOn(e) && this.open({ byKeyboard: e.detail === 0 });
1550
+ }
1551
+ onRowKey(e) {
1552
+ this.isInFlyout(e) || e.key !== this.openKey || (e.preventDefault(), e.stopPropagation(), this.open({ byKeyboard: !0 }));
1553
+ }
1554
+ onChoosing() {
1555
+ this.close();
1556
+ }
1557
+ choosingEventOf(e) {
1558
+ return e.component?.elementDefinition.event(Xn) ?? Xn;
1559
+ }
1560
+ render() {
1561
+ let e = this;
1562
+ return k(D, {
1563
+ get when() {
1564
+ return e.itemContext;
1565
+ },
1566
+ get fallback() {
1567
+ var e = vn();
1568
+ return e._$owner = j(), e;
1569
+ },
1570
+ get children() {
1571
+ return [ye(() => e.box()), k(D, {
1572
+ get when() {
1573
+ return !e.namesAMenu && !ve;
1574
+ },
1575
+ get children() {
1576
+ return e.flyoutPanel();
1577
+ }
1578
+ })];
1579
+ }
1580
+ });
1581
+ }
1582
+ boxContent() {
1583
+ let e = this;
1584
+ return [(() => {
1585
+ var t = yn();
1586
+ return M(t, () => e.label), A(() => ({
1587
+ e: N(or),
1588
+ t: e.partForName("title")
1589
+ }), ({ e, t: n }, r) => {
1590
+ O(t, e, r?.e), n !== r?.t && F(t, "part", n);
1591
+ }), t;
1592
+ })(), (() => {
1593
+ var t = bn();
1594
+ return P(() => (t) => e.chevron = t, t), M(t, () => e.chevronGlyph.svg), A(() => ({
1595
+ e: N(sr),
1596
+ t: e.submenuPart(sr),
1597
+ a: e.split ? e.flyoutLabel ?? void 0 : void 0
1598
+ }), ({ e, t: n, a: r }, i) => {
1599
+ O(t, e, i?.e), n !== i?.t && F(t, "part", n), r !== i?.a && F(t, "title", r);
1600
+ }), t;
1601
+ })()];
1602
+ }
1603
+ flyoutPanel() {
1604
+ let e = /* @__PURE__ */ o(() => this.ownerMenu, "menu"), t = this;
1605
+ var n = xn(), r = n.firstChild, i = r.firstChild;
1606
+ return P(() => (e) => t.panel = e, n), P(() => (e) => t.innerMenu = e, r), r._$owner = j(), i._$owner = j(), A(() => ({
1607
+ e: N(cr),
1608
+ t: t.submenuPart(cr),
1609
+ a: e()?.size,
1610
+ o: e()?.ticks || t.hasOnOrOffItems ? "" : void 0,
1611
+ i: e()?.iconColumn ? "" : void 0,
1612
+ n: t.flyoutLabel ?? t.label
1613
+ }), ({ e, t, a: i, o: a, i: o, n: s }, c) => {
1614
+ O(n, e, c?.e), t !== c?.t && F(n, "part", t), i !== c?.a && F(r, "size", i), a !== c?.o && F(r, "ticks", a), o !== c?.i && F(r, "icon-column", o), s !== c?.n && F(r, "aria-label", s);
1615
+ }), n;
1616
+ }
1617
+ submenuPart(e) {
1618
+ return this.partForName(e);
1619
+ }
1620
+ static reset() {
1621
+ _UISubmenu.openByOwner.clear();
1622
+ }
1623
+ static isOnOrOff(e) {
1624
+ let t = e.component;
1625
+ return t instanceof _UISubmenu ? !1 : t instanceof T ? t.saysOnOrOff : e.hasAttribute("selected") || e.hasAttribute("active");
1626
+ }
1627
+ static frame(e) {
1628
+ let { style: t } = e, n = Object.keys(Zn).map((e) => [e, t.getPropertyValue(e)]);
1629
+ for (let [e, n] of Object.entries(Zn)) t.setProperty(e, n);
1630
+ return () => {
1631
+ for (let [e, r] of n) r ? t.setProperty(e, r) : t.removeProperty(e);
1632
+ };
1633
+ }
1634
+ };
1635
+ Q = r(Jn), Yn = /* @__PURE__ */ new WeakMap(), m(Q, 4, "isOpen", Gn, $, Yn), m(Q, 1, "namedMenu", Wn, $), m(Q, 2, "hasOnOrOffItems", Un, $), m(Q, 2, "flyoutBox", Hn, $), m(Q, 2, "flyoutMenu", Vn, $), m(Q, 1, "onReadyForFlyout", Bn, $), m(Q, 1, "prepareFlyout", zn, $), m(Q, 1, "open", Rn, $), m(Q, 1, "close", Ln, $), m(Q, 1, "onOpenChanged", In, $), m(Q, 1, "focusChosen", Fn, $), m(Q, 1, "onPointerOver", Pn, $), m(Q, 1, "giveUpTo", An, $), m(Q, 2, "isRightToLeft", kn, $), m(Q, 2, "openKey", On, $), m(Q, 2, "closeKey", Dn, $), m(Q, 1, "onRowClick", En, $), m(Q, 1, "onRowKey", Tn, $), m(Q, 1, "onChoosing", Cn, $), m(Q, 13, "vocabulary", qn, $), m(Q, 13, "elementSetup", Kn, $), m(Q, 5, "onMenuPointerOver", Nn, $), m(Q, 5, "onFlyoutLeave", Mn, $), m(Q, 5, "onFlyoutEnter", jn, $), m(Q, 5, "onFlyoutKey", wn, $), m(Q, 5, "onNamedMenuChoosing", Sn, $), h(Q, $), o($, "UISubmenu"), a($, "vocabulary", g(Q, 12, $, gn)), g(Q, 15, $), a($, "elementSetup", g(Q, 16, $, {
1636
+ styleSheets: {
1637
+ item: T.elementSetup.styleSheets.item,
1638
+ submenu: _n,
1639
+ "submenu-flyout": Qn
1640
+ },
1641
+ isAPart: !1,
1642
+ disabled: "its own",
1643
+ cssStates: ["split"]
1644
+ })), g(Q, 19, $), a($, "made", 0), a($, "openByOwner", /* @__PURE__ */ new Map());
1645
+ var $n = $, er = .3, tr = "mouse", nr = "manual", rr = "ui-submenu", ir = ":dir(rtl)", ar = "chevron right", or = "title", sr = "chevron", cr = "flyout";
1646
+ Rt.define(), $n.define();
1647
+ export { un as SubMenuAim, Rt as UIMenu, $n as UISubmenu, xe as t };
1056
1648
 
1057
1649
  //# sourceMappingURL=ui-menu.js.map