morya-ui 0.2.3 → 0.2.5

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 (492) hide show
  1. package/CHANGELOG.md +189 -0
  2. package/dist/{Button-DnE_ns8s.js → Button-lNErA-7h.js} +1 -1
  3. package/dist/{Checkbox-BjtAYUUD.js → Checkbox-B758a_iB.js} +1 -1
  4. package/dist/FlyoutSubmenu-kymVjXLs.js +49 -0
  5. package/dist/{Pagination-DNjDBPfR.js → Pagination-Dm2-MBnC.js} +6 -6
  6. package/dist/{Popover-6eE5yIT7.js → Popover-flzjtjqD.js} +10 -10
  7. package/dist/{ProgressSpinner-CT7IP3Yr.js → ProgressSpinner-BXHLx4Lg.js} +1 -1
  8. package/dist/{Radio-DcotfGnv.js → Radio-Bb21-Vk4.js} +1 -1
  9. package/dist/ScrollBody-D2IHKP6U.js +64 -0
  10. package/dist/{Scrollbar-DoNZvgX2.js → Scrollbar-BYnCO8fv.js} +23 -23
  11. package/dist/{Tooltip-CrKm9FMD.js → Tooltip-CeGxjP-L.js} +7 -7
  12. package/dist/accordion/index.js +3 -3
  13. package/dist/accordion/style.css +736 -601
  14. package/dist/auto-complete/index.js +8 -8
  15. package/dist/auto-complete/style.css +820 -609
  16. package/dist/avatar/style.css +752 -601
  17. package/dist/badge/style.css +746 -600
  18. package/dist/block-ui/style.css +751 -602
  19. package/dist/breadcrumb/index.js +1 -1
  20. package/dist/breadcrumb/style.css +740 -603
  21. package/dist/button/index.js +1 -1
  22. package/dist/button/style.css +779 -607
  23. package/dist/card/style.css +768 -625
  24. package/dist/carousel/index.js +4 -4
  25. package/dist/carousel/style.css +762 -600
  26. package/dist/cascade-select/index.js +10 -10
  27. package/dist/cascade-select/style.css +788 -606
  28. package/dist/checkbox/index.js +5 -5
  29. package/dist/checkbox/style.css +744 -600
  30. package/dist/chip/index.js +1 -1
  31. package/dist/chip/style.css +753 -600
  32. package/dist/command-menu/index.js +6 -6
  33. package/dist/command-menu/style.css +793 -606
  34. package/dist/component-registry.d.ts.map +1 -1
  35. package/dist/components/Accordion/Accordion.vue.d.ts.map +1 -1
  36. package/dist/components/Accordion/styles.css +1 -1
  37. package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
  38. package/dist/components/AutoComplete/styles.css +48 -5
  39. package/dist/components/AutoComplete/types.d.ts +1 -1
  40. package/dist/components/AutoComplete/types.d.ts.map +1 -1
  41. package/dist/components/Avatar/AvatarGroup.vue.d.ts.map +1 -1
  42. package/dist/components/Avatar/styles.css +1 -1
  43. package/dist/components/Badge/styles.css +11 -0
  44. package/dist/components/BlockUI/BlockUI.vue.d.ts.map +1 -1
  45. package/dist/components/BlockUI/styles.css +16 -2
  46. package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts.map +1 -1
  47. package/dist/components/Breadcrumb/styles.css +5 -3
  48. package/dist/components/Button/ButtonGroup.vue.d.ts.map +1 -1
  49. package/dist/components/Button/styles.css +28 -7
  50. package/dist/components/Button/types.d.ts +1 -1
  51. package/dist/components/Button/types.d.ts.map +1 -1
  52. package/dist/components/Card/Card.vue.d.ts.map +1 -1
  53. package/dist/components/Card/styles.css +33 -25
  54. package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
  55. package/dist/components/Carousel/styles.css +11 -0
  56. package/dist/components/CascadeSelect/styles.css +16 -2
  57. package/dist/components/CascadeSelect/types.d.ts +1 -1
  58. package/dist/components/CascadeSelect/types.d.ts.map +1 -1
  59. package/dist/components/Checkbox/CheckboxGroup.vue.d.ts.map +1 -1
  60. package/dist/components/Checkbox/styles.css +9 -0
  61. package/dist/components/Chip/styles.css +2 -0
  62. package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
  63. package/dist/components/CommandMenu/styles.css +21 -2
  64. package/dist/components/CommandMenu/types.d.ts +2 -2
  65. package/dist/components/CommandMenu/types.d.ts.map +1 -1
  66. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +1 -1
  67. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts.map +1 -1
  68. package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
  69. package/dist/components/ConfirmDialog/styles.css +2 -2
  70. package/dist/components/ConfirmDialog/types.d.ts +1 -1
  71. package/dist/components/ConfirmDialog/types.d.ts.map +1 -1
  72. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
  73. package/dist/components/ConfirmPopup/styles.css +3 -3
  74. package/dist/components/ConfirmPopup/types.d.ts +1 -1
  75. package/dist/components/ConfirmPopup/types.d.ts.map +1 -1
  76. package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
  77. package/dist/components/ContextMenu/ContextMenuNodes.vue.d.ts.map +1 -1
  78. package/dist/components/ContextMenu/styles.css +42 -10
  79. package/dist/components/ContextMenu/types.d.ts +2 -2
  80. package/dist/components/ContextMenu/types.d.ts.map +1 -1
  81. package/dist/components/DatePicker/styles.css +34 -4
  82. package/dist/components/DatePicker/types.d.ts +1 -1
  83. package/dist/components/DatePicker/types.d.ts.map +1 -1
  84. package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
  85. package/dist/components/Dialog/styles.css +50 -2
  86. package/dist/components/Dialog/types.d.ts +1 -1
  87. package/dist/components/Dialog/types.d.ts.map +1 -1
  88. package/dist/components/Divider/styles.css +35 -32
  89. package/dist/components/Dock/Dock.vue.d.ts.map +1 -1
  90. package/dist/components/Dock/styles.css +30 -4
  91. package/dist/components/Dock/types.d.ts +1 -1
  92. package/dist/components/Dock/types.d.ts.map +1 -1
  93. package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
  94. package/dist/components/Drawer/styles.css +69 -4
  95. package/dist/components/Drawer/types.d.ts +1 -1
  96. package/dist/components/Drawer/types.d.ts.map +1 -1
  97. package/dist/components/Dropdown/Dropdown.vue.d.ts +2 -2
  98. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  99. package/dist/components/Dropdown/DropdownNodes.vue.d.ts +2 -2
  100. package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
  101. package/dist/components/Dropdown/styles.css +31 -3
  102. package/dist/components/Dropdown/types.d.ts +1 -1
  103. package/dist/components/Dropdown/types.d.ts.map +1 -1
  104. package/dist/components/Empty/Empty.vue.d.ts +29 -0
  105. package/dist/components/Empty/Empty.vue.d.ts.map +1 -0
  106. package/dist/components/Empty/index.d.ts +3 -0
  107. package/dist/components/Empty/index.d.ts.map +1 -0
  108. package/dist/components/Empty/styles.css +72 -0
  109. package/dist/components/Empty/types.d.ts +14 -0
  110. package/dist/components/Empty/types.d.ts.map +1 -0
  111. package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
  112. package/dist/components/Fieldset/styles.css +16 -1
  113. package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
  114. package/dist/components/FileUpload/styles.css +28 -4
  115. package/dist/components/Flex/Flex.vue.d.ts.map +1 -1
  116. package/dist/components/Flex/styles.css +1 -2
  117. package/dist/components/Flex/types.d.ts +1 -1
  118. package/dist/components/Flex/types.d.ts.map +1 -1
  119. package/dist/components/FloatLabel/styles.css +8 -7
  120. package/dist/components/Fluid/Fluid.vue.d.ts.map +1 -1
  121. package/dist/components/Fluid/styles.css +4 -1
  122. package/dist/components/Form/styles.css +5 -2
  123. package/dist/components/Gallery/Gallery.vue.d.ts +2 -2
  124. package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
  125. package/dist/components/Gallery/styles.css +24 -3
  126. package/dist/components/Grid/styles.css +5 -4
  127. package/dist/components/Icon/styles.css +16 -0
  128. package/dist/components/Inplace/Inplace.vue.d.ts.map +1 -1
  129. package/dist/components/Inplace/styles.css +10 -9
  130. package/dist/components/Input/styles.css +8 -1
  131. package/dist/components/InputColor/styles.css +26 -1
  132. package/dist/components/InputGroup/styles.css +5 -4
  133. package/dist/components/InputNumber/styles.css +25 -2
  134. package/dist/components/InputOtp/styles.css +15 -7
  135. package/dist/components/InputPassword/InputPassword.vue.d.ts +1 -1
  136. package/dist/components/InputPassword/index.d.ts +1 -1
  137. package/dist/components/InputPassword/index.d.ts.map +1 -1
  138. package/dist/components/InputPassword/styles.css +12 -2
  139. package/dist/components/InputTags/styles.css +24 -0
  140. package/dist/components/Knob/styles.css +27 -13
  141. package/dist/components/Label/styles.css +2 -2
  142. package/dist/components/Layout/Layout.vue.d.ts +3 -3
  143. package/dist/components/Layout/Layout.vue.d.ts.map +1 -1
  144. package/dist/components/Layout/LayoutContent.vue.d.ts +2 -2
  145. package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
  146. package/dist/components/Layout/LayoutScrollContext.vue.d.ts +20 -0
  147. package/dist/components/Layout/LayoutScrollContext.vue.d.ts.map +1 -0
  148. package/dist/components/Layout/LayoutScrollRegion.vue.d.ts +34 -0
  149. package/dist/components/Layout/LayoutScrollRegion.vue.d.ts.map +1 -0
  150. package/dist/components/Layout/LayoutSider.vue.d.ts +2 -2
  151. package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
  152. package/dist/components/Layout/composables/useLayoutScroll.d.ts +4 -1
  153. package/dist/components/Layout/composables/useLayoutScroll.d.ts.map +1 -1
  154. package/dist/components/Layout/styles.css +97 -23
  155. package/dist/components/Layout/types.d.ts +1 -1
  156. package/dist/components/Layout/types.d.ts.map +1 -1
  157. package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
  158. package/dist/components/Listbox/styles.css +18 -1
  159. package/dist/components/Listbox/types.d.ts.map +1 -1
  160. package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
  161. package/dist/components/MegaMenu/styles.css +10 -3
  162. package/dist/components/MegaMenu/types.d.ts +2 -2
  163. package/dist/components/MegaMenu/types.d.ts.map +1 -1
  164. package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
  165. package/dist/components/Menu/MenuNodes.vue.d.ts.map +1 -1
  166. package/dist/components/Menu/styles.css +25 -1
  167. package/dist/components/Menu/types.d.ts +2 -2
  168. package/dist/components/Menu/types.d.ts.map +1 -1
  169. package/dist/components/Menubar/Menubar.vue.d.ts +2 -2
  170. package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
  171. package/dist/components/Menubar/styles.css +28 -6
  172. package/dist/components/Menubar/types.d.ts +2 -2
  173. package/dist/components/Menubar/types.d.ts.map +1 -1
  174. package/dist/components/Message/Message.vue.d.ts.map +1 -1
  175. package/dist/components/Message/messageState.d.ts +26 -0
  176. package/dist/components/Message/messageState.d.ts.map +1 -0
  177. package/dist/components/Message/styles.css +43 -1
  178. package/dist/components/Message/types.d.ts +1 -1
  179. package/dist/components/Message/types.d.ts.map +1 -1
  180. package/dist/components/MeterGroup/MeterGroup.vue.d.ts.map +1 -1
  181. package/dist/components/OrderList/OrderList.vue.d.ts +4 -4
  182. package/dist/components/OrderList/OrderList.vue.d.ts.map +1 -1
  183. package/dist/components/Page/PageContent.vue.d.ts.map +1 -1
  184. package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
  185. package/dist/components/Page/PageHeader.vue.d.ts.map +1 -1
  186. package/dist/components/Page/PagePlaceholder.vue.d.ts.map +1 -1
  187. package/dist/components/Page/PageSection.vue.d.ts.map +1 -1
  188. package/dist/components/Page/PageStat.vue.d.ts.map +1 -1
  189. package/dist/components/Page/PageToolbar.vue.d.ts.map +1 -1
  190. package/dist/components/Page/styles.css +7 -1
  191. package/dist/components/Page/types.d.ts +1 -1
  192. package/dist/components/Page/types.d.ts.map +1 -1
  193. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  194. package/dist/components/Pagination/styles.css +23 -1
  195. package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
  196. package/dist/components/Panel/styles.css +20 -1
  197. package/dist/components/PickList/PickList.vue.d.ts +7 -7
  198. package/dist/components/PickList/PickList.vue.d.ts.map +1 -1
  199. package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
  200. package/dist/components/Popover/styles.css +35 -3
  201. package/dist/components/Popover/types.d.ts +1 -1
  202. package/dist/components/Popover/types.d.ts.map +1 -1
  203. package/dist/components/ProgressBar/styles.css +20 -0
  204. package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts.map +1 -1
  205. package/dist/components/ProgressSpinner/styles.css +19 -0
  206. package/dist/components/Radio/RadioGroup.vue.d.ts.map +1 -1
  207. package/dist/components/Radio/styles.css +9 -0
  208. package/dist/components/Rating/styles.css +14 -1
  209. package/dist/components/Result/Result.vue.d.ts +26 -0
  210. package/dist/components/Result/Result.vue.d.ts.map +1 -0
  211. package/dist/components/Result/index.d.ts +3 -0
  212. package/dist/components/Result/index.d.ts.map +1 -0
  213. package/dist/components/Result/styles.css +80 -0
  214. package/dist/components/Result/types.d.ts +16 -0
  215. package/dist/components/Result/types.d.ts.map +1 -0
  216. package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
  217. package/dist/components/ScrollTop/styles.css +14 -1
  218. package/dist/components/ScrollTop/types.d.ts +1 -1
  219. package/dist/components/ScrollTop/types.d.ts.map +1 -1
  220. package/dist/components/Scrollbar/Scrollbar.vue.d.ts.map +1 -1
  221. package/dist/components/Scrollbar/styles.css +21 -4
  222. package/dist/components/Scrollbar/types.d.ts +1 -1
  223. package/dist/components/Scrollbar/types.d.ts.map +1 -1
  224. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  225. package/dist/components/Select/styles.css +14 -11
  226. package/dist/components/Select/types.d.ts +1 -1
  227. package/dist/components/Select/types.d.ts.map +1 -1
  228. package/dist/components/SelectButton/SelectButton.vue.d.ts.map +1 -1
  229. package/dist/components/SelectButton/styles.css +18 -2
  230. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  231. package/dist/components/Sidebar/styles.css +20 -3
  232. package/dist/components/Sidebar/types.d.ts +1 -1
  233. package/dist/components/Sidebar/types.d.ts.map +1 -1
  234. package/dist/components/Skeleton/Skeleton.vue.d.ts.map +1 -1
  235. package/dist/components/Skeleton/styles.css +11 -0
  236. package/dist/components/Slider/styles.css +19 -5
  237. package/dist/components/Space/Space.vue.d.ts.map +1 -1
  238. package/dist/components/Space/styles.css +2 -1
  239. package/dist/components/Space/types.d.ts +1 -1
  240. package/dist/components/Space/types.d.ts.map +1 -1
  241. package/dist/components/SpeedDial/styles.css +20 -4
  242. package/dist/components/SpeedDial/types.d.ts +2 -2
  243. package/dist/components/SpeedDial/types.d.ts.map +1 -1
  244. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  245. package/dist/components/SplitButton/styles.css +32 -5
  246. package/dist/components/SplitButton/types.d.ts +1 -1
  247. package/dist/components/SplitButton/types.d.ts.map +1 -1
  248. package/dist/components/Splitter/Splitter.vue.d.ts.map +1 -1
  249. package/dist/components/Splitter/styles.css +6 -2
  250. package/dist/components/Splitter/types.d.ts +1 -1
  251. package/dist/components/Splitter/types.d.ts.map +1 -1
  252. package/dist/components/Status/Status.vue.d.ts +19 -0
  253. package/dist/components/Status/Status.vue.d.ts.map +1 -0
  254. package/dist/components/Status/index.d.ts +3 -0
  255. package/dist/components/Status/index.d.ts.map +1 -0
  256. package/dist/components/Status/styles.css +106 -0
  257. package/dist/components/Status/types.d.ts +19 -0
  258. package/dist/components/Status/types.d.ts.map +1 -0
  259. package/dist/components/Stepper/Stepper.vue.d.ts.map +1 -1
  260. package/dist/components/Stepper/styles.css +19 -5
  261. package/dist/components/Switch/styles.css +34 -5
  262. package/dist/components/Table/Table.vue.d.ts +1 -1
  263. package/dist/components/Table/Table.vue.d.ts.map +1 -1
  264. package/dist/components/Table/hooks/index.d.ts +1 -1
  265. package/dist/components/Table/hooks/index.d.ts.map +1 -1
  266. package/dist/components/Table/hooks/internal.d.ts +6 -6
  267. package/dist/components/Table/hooks/internal.d.ts.map +1 -1
  268. package/dist/components/Table/styles.css +29 -15
  269. package/dist/components/Table/types.d.ts +1 -1
  270. package/dist/components/Table/types.d.ts.map +1 -1
  271. package/dist/components/Tabs/Tabs.vue.d.ts +3 -3
  272. package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
  273. package/dist/components/Tabs/styles.css +98 -75
  274. package/dist/components/Tag/styles.css +13 -21
  275. package/dist/components/Terminal/Terminal.vue.d.ts.map +1 -1
  276. package/dist/components/Terminal/styles.css +13 -3
  277. package/dist/components/Textarea/index.d.ts +1 -1
  278. package/dist/components/Textarea/index.d.ts.map +1 -1
  279. package/dist/components/Textarea/styles.css +16 -0
  280. package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
  281. package/dist/components/TieredMenu/styles.css +43 -10
  282. package/dist/components/TieredMenu/types.d.ts +1 -1
  283. package/dist/components/TieredMenu/types.d.ts.map +1 -1
  284. package/dist/components/Timeline/Timeline.vue.d.ts +35 -10
  285. package/dist/components/Timeline/Timeline.vue.d.ts.map +1 -1
  286. package/dist/components/Timeline/styles.css +159 -156
  287. package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
  288. package/dist/components/Toast/index.d.ts +1 -1
  289. package/dist/components/Toast/index.d.ts.map +1 -1
  290. package/dist/components/Toast/styles.css +17 -1
  291. package/dist/components/Toast/toastState.d.ts +26 -0
  292. package/dist/components/Toast/toastState.d.ts.map +1 -0
  293. package/dist/components/Toast/types.d.ts +1 -1
  294. package/dist/components/Toast/types.d.ts.map +1 -1
  295. package/dist/components/ToggleButton/styles.css +19 -1
  296. package/dist/components/Toolbar/Toolbar.vue.d.ts.map +1 -1
  297. package/dist/components/Toolbar/styles.css +9 -8
  298. package/dist/components/Tooltip/styles.css +1 -0
  299. package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
  300. package/dist/components/Tree/styles.css +4 -2
  301. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  302. package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts +1 -1
  303. package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts.map +1 -1
  304. package/dist/components/TreeSelect/styles.css +53 -2
  305. package/dist/components/TreeSelect/types.d.ts +1 -1
  306. package/dist/components/TreeSelect/types.d.ts.map +1 -1
  307. package/dist/components/TreeTable/TreeTable.vue.d.ts +2 -2
  308. package/dist/components/TreeTable/TreeTable.vue.d.ts.map +1 -1
  309. package/dist/components/TreeTable/TreeTableRow.vue.d.ts +1 -1
  310. package/dist/components/TreeTable/TreeTableRow.vue.d.ts.map +1 -1
  311. package/dist/components/TreeTable/styles.css +97 -61
  312. package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts +2 -2
  313. package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts.map +1 -1
  314. package/dist/components/VirtualScroller/styles.css +20 -17
  315. package/dist/{config-CI8_WBbE.js → config-Dln2-u_v.js} +7 -0
  316. package/dist/config-provider/index.js +1 -1
  317. package/dist/config-provider/style.css +773 -609
  318. package/dist/confirm-dialog/index.js +13 -13
  319. package/dist/confirm-dialog/style.css +831 -611
  320. package/dist/confirm-popup/index.js +8 -8
  321. package/dist/confirm-popup/style.css +782 -610
  322. package/dist/context-menu/index.js +131 -89
  323. package/dist/context-menu/style.css +933 -610
  324. package/dist/context-menu/style.js +1 -0
  325. package/dist/data-view/index.js +6 -6
  326. package/dist/data-view/style.css +777 -601
  327. package/dist/date-picker/index.js +8 -8
  328. package/dist/date-picker/style.css +785 -604
  329. package/dist/dialog/index.js +9 -9
  330. package/dist/dialog/style.css +829 -609
  331. package/dist/divider/style.css +770 -632
  332. package/dist/dock/style.css +781 -604
  333. package/dist/drawer/index.js +8 -8
  334. package/dist/drawer/style.css +820 -604
  335. package/dist/dropdown/index.js +162 -122
  336. package/dist/dropdown/style.css +922 -603
  337. package/dist/dropdown/style.js +1 -0
  338. package/dist/empty/index.js +54 -0
  339. package/dist/empty/style.css +1118 -0
  340. package/dist/empty/style.js +4 -0
  341. package/dist/fieldset/index.js +3 -3
  342. package/dist/fieldset/style.css +767 -601
  343. package/dist/file-upload/index.js +104 -105
  344. package/dist/file-upload/style.css +779 -604
  345. package/dist/flex/index.js +1 -1
  346. package/dist/flex/style.css +736 -602
  347. package/dist/float-label/style.css +743 -607
  348. package/dist/fluid/style.css +738 -600
  349. package/dist/form/index.js +1 -1
  350. package/dist/form/style.css +740 -602
  351. package/dist/gallery/index.js +76 -67
  352. package/dist/gallery/style.css +915 -603
  353. package/dist/gallery/style.js +1 -0
  354. package/dist/grid/style.css +739 -603
  355. package/dist/icon/style.css +751 -600
  356. package/dist/icon-field/style.css +735 -600
  357. package/dist/index.d.ts +10 -4
  358. package/dist/index.d.ts.map +1 -1
  359. package/dist/index.js +2904 -2288
  360. package/dist/inplace/index.js +5 -5
  361. package/dist/inplace/style.css +745 -609
  362. package/dist/input/index.js +2 -2
  363. package/dist/input/style.css +759 -601
  364. package/dist/input-color/index.js +2 -2
  365. package/dist/input-color/style.css +761 -601
  366. package/dist/input-group/style.css +740 -604
  367. package/dist/input-number/index.js +2 -2
  368. package/dist/input-number/style.css +776 -602
  369. package/dist/input-otp/index.js +2 -2
  370. package/dist/input-otp/style.css +750 -607
  371. package/dist/input-password/index.js +2 -2
  372. package/dist/input-password/style.css +763 -602
  373. package/dist/input-tags/index.js +2 -2
  374. package/dist/input-tags/style.css +775 -600
  375. package/dist/knob/style.css +762 -613
  376. package/dist/label/style.css +737 -602
  377. package/dist/layout/index.js +244 -138
  378. package/dist/layout/style.css +988 -623
  379. package/dist/layout/style.js +1 -0
  380. package/dist/listbox/index.js +3 -3
  381. package/dist/listbox/style.css +774 -605
  382. package/dist/locale/en-US.d.ts.map +1 -1
  383. package/dist/locale/types.d.ts +7 -0
  384. package/dist/locale/types.d.ts.map +1 -1
  385. package/dist/locale/zh-CN.d.ts.map +1 -1
  386. package/dist/{locale-DYGhxekd.js → locale-DNYpTg5K.js} +1 -1
  387. package/dist/mega-menu/index.js +98 -98
  388. package/dist/mega-menu/style.css +761 -603
  389. package/dist/menu/index.js +254 -237
  390. package/dist/menu/style.css +952 -604
  391. package/dist/menu/style.js +1 -0
  392. package/dist/menubar/index.js +77 -68
  393. package/dist/menubar/style.css +919 -606
  394. package/dist/menubar/style.js +1 -0
  395. package/dist/message/index.js +2 -2
  396. package/dist/message/style.css +794 -601
  397. package/dist/meter-group/style.css +735 -600
  398. package/dist/order-list/index.js +67 -59
  399. package/dist/order-list/style.css +751 -600
  400. package/dist/page/style.css +791 -626
  401. package/dist/pagination/index.js +1 -1
  402. package/dist/pagination/style.css +774 -601
  403. package/dist/panel/index.js +4 -4
  404. package/dist/panel/style.css +771 -601
  405. package/dist/pick-list/index.js +97 -84
  406. package/dist/pick-list/style.css +751 -600
  407. package/dist/popover/index.js +1 -1
  408. package/dist/popover/style.css +770 -603
  409. package/dist/progress-bar/style.css +755 -600
  410. package/dist/progress-spinner/index.js +1 -1
  411. package/dist/progress-spinner/style.css +754 -600
  412. package/dist/radio/index.js +4 -4
  413. package/dist/radio/style.css +744 -600
  414. package/dist/rating/index.js +4 -4
  415. package/dist/rating/style.css +765 -601
  416. package/dist/resolver-map.d.ts.map +1 -1
  417. package/dist/resolver.js +3 -0
  418. package/dist/result/index.js +74 -0
  419. package/dist/result/style.css +1126 -0
  420. package/dist/result/style.js +4 -0
  421. package/dist/scroll-top/index.js +25 -15
  422. package/dist/scroll-top/style.css +905 -601
  423. package/dist/scroll-top/style.js +1 -0
  424. package/dist/scrollbar/index.js +1 -1
  425. package/dist/scrollbar/style.css +756 -604
  426. package/dist/select/index.js +8 -8
  427. package/dist/select/style.css +786 -615
  428. package/dist/select-button/index.js +5 -5
  429. package/dist/select-button/style.css +753 -602
  430. package/dist/shared/FlyoutSubmenu.vue.d.ts +32 -0
  431. package/dist/shared/FlyoutSubmenu.vue.d.ts.map +1 -0
  432. package/dist/shared/ScrollBody.vue.d.ts +39 -0
  433. package/dist/shared/ScrollBody.vue.d.ts.map +1 -0
  434. package/dist/shared/useControllable.d.ts.map +1 -1
  435. package/dist/sidebar/index.js +1 -1
  436. package/dist/sidebar/style.css +771 -603
  437. package/dist/skeleton/style.css +746 -600
  438. package/dist/slider/index.js +2 -2
  439. package/dist/slider/style.css +755 -606
  440. package/dist/space/index.js +1 -1
  441. package/dist/space/style.css +737 -601
  442. package/dist/speed-dial/index.js +14 -14
  443. package/dist/speed-dial/style.css +771 -604
  444. package/dist/split-button/index.js +12 -12
  445. package/dist/split-button/style.css +811 -612
  446. package/dist/splitter/index.js +37 -37
  447. package/dist/splitter/style.css +741 -602
  448. package/dist/status/index.js +39 -0
  449. package/dist/status/style.css +1097 -0
  450. package/dist/status/style.js +3 -0
  451. package/dist/stepper/index.js +3 -3
  452. package/dist/stepper/style.css +770 -605
  453. package/dist/styles/base.css +709 -583
  454. package/dist/styles.css +1 -1
  455. package/dist/switch/index.js +1 -1
  456. package/dist/switch/style.css +769 -605
  457. package/dist/table/index.js +272 -275
  458. package/dist/table/style.css +862 -620
  459. package/dist/tabs/index.js +92 -81
  460. package/dist/tabs/style.css +989 -675
  461. package/dist/tabs/style.js +1 -0
  462. package/dist/tag/index.js +2 -2
  463. package/dist/tag/style.css +764 -621
  464. package/dist/terminal/index.js +47 -40
  465. package/dist/terminal/style.css +749 -604
  466. package/dist/textarea/index.js +2 -2
  467. package/dist/textarea/style.css +767 -600
  468. package/dist/theme/styles.css +26 -17
  469. package/dist/tiered-menu/index.js +132 -86
  470. package/dist/tiered-menu/style.css +934 -610
  471. package/dist/tiered-menu/style.js +1 -0
  472. package/dist/timeline/index.js +82 -37
  473. package/dist/timeline/style.css +1047 -753
  474. package/dist/timeline/style.js +1 -0
  475. package/dist/toast/index.js +5 -5
  476. package/dist/toast/style.css +768 -601
  477. package/dist/toggle-button/index.js +1 -1
  478. package/dist/toggle-button/style.css +770 -601
  479. package/dist/toolbar/style.css +744 -608
  480. package/dist/tooltip/index.js +1 -1
  481. package/dist/tooltip/style.css +736 -600
  482. package/dist/tree/index.js +12 -12
  483. package/dist/tree/style.css +764 -602
  484. package/dist/tree-select/index.js +217 -208
  485. package/dist/tree-select/style.css +957 -604
  486. package/dist/tree-select/style.js +1 -0
  487. package/dist/tree-table/index.js +57 -50
  488. package/dist/tree-table/style.css +845 -658
  489. package/dist/virtual-scroller/index.js +38 -34
  490. package/dist/virtual-scroller/style.css +902 -624
  491. package/dist/virtual-scroller/style.js +1 -0
  492. package/package.json +27 -1
@@ -3,17 +3,18 @@ import { t } from "../Icon-DfpIfo2L.js";
3
3
  import { n, t as r } from "../overlay-oR-5MDuE.js";
4
4
  import { t as i } from "../overlayPlacement-Cd20JTD_.js";
5
5
  import { t as a } from "../useMenuKeyboard-BedmYE4W.js";
6
- import { t as o } from "../icon-xUOyawgJ.js";
7
- import { t as s } from "../key-CaQYVkjh.js";
8
- import { t as c } from "../lastPointer-CRxcUqdd.js";
9
- import { t as ee } from "../Popover-6eE5yIT7.js";
10
- import { t as l } from "../Tooltip-CrKm9FMD.js";
11
- import { c as te } from "../config-CI8_WBbE.js";
6
+ import { t as o } from "../Scrollbar-BYnCO8fv.js";
7
+ import { t as s } from "../icon-xUOyawgJ.js";
8
+ import { t as c } from "../key-CaQYVkjh.js";
9
+ import { t as ee } from "../lastPointer-CRxcUqdd.js";
10
+ import { t as l } from "../Popover-flzjtjqD.js";
11
+ import { t as te } from "../Tooltip-CeGxjP-L.js";
12
+ import { c as u } from "../config-Dln2-u_v.js";
12
13
  import "./style.js";
13
- import { Fragment as u, Teleport as d, Transition as ne, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineComponent as v, getCurrentInstance as y, inject as b, mergeProps as x, nextTick as S, normalizeClass as C, normalizeStyle as w, onBeforeUnmount as T, openBlock as E, provide as D, reactive as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as M, toDisplayString as N, unref as P, useAttrs as re, useSlots as ie, watch as F, withCtx as I } from "vue";
14
+ import { Fragment as d, Teleport as f, Transition as ne, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createVNode as v, defineComponent as y, getCurrentInstance as b, inject as x, mergeProps as S, nextTick as C, normalizeClass as w, normalizeStyle as T, onBeforeUnmount as E, openBlock as D, provide as O, reactive as re, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as M, toDisplayString as N, unref as P, useAttrs as ie, useSlots as ae, watch as F, withCtx as I } from "vue";
14
15
  //#region src/shared/menu/tree.ts
15
16
  function L(e, t, n = "item") {
16
- return s(e, t, n);
17
+ return c(e, t, n);
17
18
  }
18
19
  function R(e, t, n = "item") {
19
20
  for (let r = 0; r < e.length; r++) {
@@ -28,20 +29,20 @@ function R(e, t, n = "item") {
28
29
  }
29
30
  return null;
30
31
  }
31
- function ae(e, t, n, r = "item") {
32
+ function oe(e, t, n, r = "item") {
32
33
  return e.items?.length ? L(e, n, r) === t || R(e.items, t, `${r}-${n}`) !== null : !1;
33
34
  }
34
- function oe(e, t = "item") {
35
+ function se(e, t = "item") {
35
36
  let n = [];
36
37
  for (let r = 0; r < e.length; r++) {
37
38
  let i = e[r];
38
39
  if (i.separator || !i.items?.length) continue;
39
40
  let a = L(i, r, t);
40
- n.push(a), n.push(...oe(i.items, `${t}-${r}`));
41
+ n.push(a), n.push(...se(i.items, `${t}-${r}`));
41
42
  }
42
43
  return n;
43
44
  }
44
- function se(e, t = "item") {
45
+ function ce(e, t = "item") {
45
46
  let n = [];
46
47
  for (let r = 0; r < e.length; r++) {
47
48
  let i = e[r];
@@ -51,7 +52,28 @@ function se(e, t = "item") {
51
52
  }
52
53
  //#endregion
53
54
  //#region src/components/Menu/context.ts
54
- var ce = Symbol("muMenu"), z = /* @__PURE__ */ v({
55
+ var le = Symbol("muMenu");
56
+ //#endregion
57
+ //#region src/shared/optionalRouter.ts
58
+ function z() {
59
+ let e = b();
60
+ if (!e) return !1;
61
+ for (let t of Object.values(e.appContext.provides)) if (t && typeof t == "object" && "resolve" in t && "push" in t) return !0;
62
+ return !1;
63
+ }
64
+ function B() {
65
+ let e = b();
66
+ return !e || !z() ? null : e.appContext.components.RouterLink ?? null;
67
+ }
68
+ function ue(e) {
69
+ return typeof e == "string" ? e : typeof e.path == "string" ? e.path : typeof e.href == "string" ? e.href : "#";
70
+ }
71
+ function de(e) {
72
+ return typeof e == "string" ? /^(?:[a-z][a-z\d+\-.]*:)?\/\//i.test(e) || e.startsWith("mailto:") || e.startsWith("tel:") : !1;
73
+ }
74
+ //#endregion
75
+ //#region src/components/Menu/MenuCollapsedTooltip.vue
76
+ var V = /* @__PURE__ */ y({
55
77
  __name: "MenuCollapsedTooltip",
56
78
  props: {
57
79
  label: {},
@@ -65,8 +87,8 @@ var ce = Symbol("muMenu"), z = /* @__PURE__ */ v({
65
87
  }
66
88
  },
67
89
  setup(e) {
68
- let t = e, n = f(() => t.active && !!t.label && !t.suspended);
69
- return (t, r) => n.value ? (E(), p(l, {
90
+ let t = e, n = p(() => t.active && !!t.label && !t.suspended);
91
+ return (t, r) => n.value ? (D(), m(te, {
70
92
  key: 0,
71
93
  content: e.label,
72
94
  placement: "right",
@@ -77,28 +99,7 @@ var ce = Symbol("muMenu"), z = /* @__PURE__ */ v({
77
99
  _: 3
78
100
  }, 8, ["content"])) : j(t.$slots, "default", {}, void 0, void 0, 1);
79
101
  }
80
- });
81
- //#endregion
82
- //#region src/shared/optionalRouter.ts
83
- function B() {
84
- let e = y();
85
- if (!e) return !1;
86
- for (let t of Object.values(e.appContext.provides)) if (t && typeof t == "object" && "resolve" in t && "push" in t) return !0;
87
- return !1;
88
- }
89
- function le() {
90
- let e = y();
91
- return !e || !B() ? null : e.appContext.components.RouterLink ?? null;
92
- }
93
- function ue(e) {
94
- return typeof e == "string" ? e : typeof e.path == "string" ? e.path : typeof e.href == "string" ? e.href : "#";
95
- }
96
- function V(e) {
97
- return typeof e == "string" ? /^(?:[a-z][a-z\d+\-.]*:)?\/\//i.test(e) || e.startsWith("mailto:") || e.startsWith("tel:") : !1;
98
- }
99
- //#endregion
100
- //#region src/components/Menu/MenuNodes.vue?vue&type=script&setup=true&lang.ts
101
- var H = {
102
+ }), H = {
102
103
  key: 0,
103
104
  class: "m-menu__separator",
104
105
  role: "separator"
@@ -111,14 +112,14 @@ var H = {
111
112
  key: 0,
112
113
  class: "m-menu__icon",
113
114
  "aria-hidden": "true"
114
- }, de = { class: "m-menu__label" }, fe = {
115
+ }, fe = { class: "m-menu__label" }, pe = {
115
116
  key: 1,
116
117
  class: "m-menu__arrow",
117
118
  "aria-hidden": "true"
118
119
  }, G = {
119
120
  class: "m-menu m-menu--flyout",
120
121
  role: "menu"
121
- }, pe = [
122
+ }, me = [
122
123
  "tabindex",
123
124
  "data-m-menu-key",
124
125
  "aria-expanded",
@@ -132,11 +133,11 @@ var H = {
132
133
  key: 0,
133
134
  class: "m-menu__submenu",
134
135
  role: "group"
135
- }, Y = { class: "m-menu__submenu-inner" }, me = {
136
+ }, Y = { class: "m-menu__submenu-inner" }, he = {
136
137
  key: 0,
137
138
  class: "m-menu__icon",
138
139
  "aria-hidden": "true"
139
- }, he = { class: "m-menu__label" }, X = /* @__PURE__ */ v({
140
+ }, ge = { class: "m-menu__label" }, X = /* @__PURE__ */ y({
140
141
  __name: "MenuNodes",
141
142
  props: {
142
143
  items: {},
@@ -145,17 +146,17 @@ var H = {
145
146
  flyout: { type: Boolean }
146
147
  },
147
148
  setup(e) {
148
- let n = e, r = b(ce);
149
+ let n = e, r = x(le);
149
150
  if (!r) throw Error("MenuNodes must be used inside MMenu");
150
- let i = r, a = le(), s = f(() => i.collapsed.value && !n.flyout), c = f(() => i.mode === "horizontal"), l = f(() => (s.value || c.value) && !n.flyout);
151
+ let i = r, a = B(), o = p(() => i.collapsed.value && !n.flyout), c = p(() => i.mode === "horizontal"), ee = p(() => (o.value || c.value) && !n.flyout);
151
152
  function te(e, t) {
152
153
  i.setFlyoutOpen(e, t);
153
154
  }
154
- function d(e, t) {
155
+ function u(e, t) {
155
156
  return i.resolveKey(e, t, n.prefix);
156
157
  }
157
- function v(e) {
158
- return o(e.icon);
158
+ function f(e) {
159
+ return s(e.icon);
159
160
  }
160
161
  function y(e, t) {
161
162
  if (e.disabled) {
@@ -164,85 +165,85 @@ var H = {
164
165
  }
165
166
  i.activate(e), e.to || t.preventDefault();
166
167
  }
167
- function x(e, t) {
168
- e.disabled || l.value || i.toggleExpand(d(e, t));
168
+ function b(e, t) {
169
+ e.disabled || ee.value || i.toggleExpand(u(e, t));
169
170
  }
170
171
  function S(e, t) {
171
- return i.isExpanded(d(e, t));
172
+ return i.isExpanded(u(e, t));
172
173
  }
173
- function T(e, t) {
174
- let r = v(e);
174
+ function C(e, t) {
175
+ let r = f(e);
175
176
  return {
176
177
  "m-menu__item-content--selected": i.isSelected(e, t, n.prefix),
177
178
  "m-menu__item-content--child-active": i.isChildActive(e, t, n.prefix),
178
179
  "m-menu__item-content--disabled": !!e.disabled,
179
- "m-menu__item-content--collapsed": s.value,
180
+ "m-menu__item-content--collapsed": o.value,
180
181
  "m-menu__item-content--no-icon": !r,
181
- "m-menu__item-content--active": i.activeKey.value === d(e, t)
182
+ "m-menu__item-content--active": i.activeKey.value === u(e, t)
182
183
  };
183
184
  }
184
- function D(e, t) {
185
- return n.flyout ? 0 : i.tabindexForKey(d(e, t));
185
+ function E(e, t) {
186
+ return n.flyout ? 0 : i.tabindexForKey(u(e, t));
186
187
  }
187
188
  function O(e) {
188
189
  if (!(c.value || n.flyout)) return i.paddingStyle(e);
189
190
  }
190
- function k(e, t) {
191
+ function re(e, t) {
191
192
  return S(e, t);
192
193
  }
193
- function j(e) {
194
- return !!(e.to && a && !V(e.to));
194
+ function k(e) {
195
+ return !!(e.to && a && !de(e.to));
195
196
  }
196
- function re(e) {
197
- if (!(!e.to || j(e))) return ue(e.to);
197
+ function j(e) {
198
+ if (!(!e.to || k(e))) return ue(e.to);
198
199
  }
199
200
  function ie(e) {
200
- if (!(!j(e) || !e.to)) return e.to;
201
+ if (!(!k(e) || !e.to)) return e.to;
201
202
  }
202
- function F(e) {
203
- return s.value && !!e.label;
203
+ function ae(e) {
204
+ return o.value && !!e.label;
204
205
  }
205
- function L(e, t) {
206
- return !!i.flyoutOpen[d(e, t)];
206
+ function F(e, t) {
207
+ return !!i.flyoutOpen[u(e, t)];
207
208
  }
208
- return (n, r) => (E(!0), h(u, null, A(e.items, (n, r) => (E(), h(u, { key: d(n, r) }, [n.separator ? (E(), h("div", H)) : n.items?.length ? (E(), h("div", {
209
+ return (n, r) => (D(!0), g(d, null, A(e.items, (n, r) => (D(), g(d, { key: u(n, r) }, [n.separator ? (D(), g("div", H)) : n.items?.length ? (D(), g("div", {
209
210
  key: 1,
210
- class: C(["m-menu__item m-menu__item--submenu", { "m-menu__item--horizontal": c.value }]),
211
+ class: w(["m-menu__item m-menu__item--submenu", { "m-menu__item--horizontal": c.value }]),
211
212
  role: "none"
212
- }, [l.value ? (E(), p(ee, {
213
+ }, [ee.value ? (D(), m(l, {
213
214
  key: 0,
214
215
  class: "m-menu__collapsed-popover",
215
- "model-value": !!P(i).flyoutOpen[d(n, r)],
216
+ "model-value": !!P(i).flyoutOpen[u(n, r)],
216
217
  trigger: c.value ? "click" : "hover",
217
218
  placement: c.value ? "bottom-start" : "right-start",
218
219
  "show-delay": c.value ? 0 : 50,
219
220
  "hide-delay": c.value ? 0 : 80,
220
- "onUpdate:modelValue": (e) => te(d(n, r), e)
221
+ "onUpdate:modelValue": (e) => te(u(n, r), e)
221
222
  }, {
222
- default: I(() => [_(z, {
223
+ default: I(() => [v(V, {
223
224
  label: n.label,
224
- active: F(n),
225
- suspended: L(n, r)
225
+ active: ae(n),
226
+ suspended: F(n, r)
226
227
  }, {
227
- default: I(() => [g("div", {
228
- class: C(["m-menu__item-content", T(n, r)]),
229
- style: w(O(e.depth)),
228
+ default: I(() => [_("div", {
229
+ class: w(["m-menu__item-content", C(n, r)]),
230
+ style: T(O(e.depth)),
230
231
  role: "menuitem",
231
- tabindex: D(n, r),
232
- "data-m-menu-key": e.flyout ? void 0 : d(n, r),
232
+ tabindex: E(n, r),
233
+ "data-m-menu-key": e.flyout ? void 0 : u(n, r),
233
234
  "aria-label": n.label,
234
235
  "aria-haspopup": "menu",
235
- "aria-expanded": c.value ? !!P(i).flyoutOpen[d(n, r)] : void 0
236
+ "aria-expanded": c.value ? !!P(i).flyoutOpen[u(n, r)] : void 0
236
237
  }, [
237
- v(n) ? (E(), h("span", W, [_(t, {
238
- name: v(n),
238
+ f(n) ? (D(), g("span", W, [v(t, {
239
+ name: f(n),
239
240
  size: "sm"
240
- }, null, 8, ["name"])])) : m("", !0),
241
- g("span", de, N(n.label), 1),
242
- c.value ? (E(), h("span", fe, [_(t, {
241
+ }, null, 8, ["name"])])) : h("", !0),
242
+ _("span", fe, N(n.label), 1),
243
+ c.value ? (D(), g("span", pe, [v(t, {
243
244
  name: "chevron-down",
244
245
  size: "sm"
245
- })])) : m("", !0)
246
+ })])) : h("", !0)
246
247
  ], 14, U)]),
247
248
  _: 2
248
249
  }, 1032, [
@@ -250,7 +251,7 @@ var H = {
250
251
  "active",
251
252
  "suspended"
252
253
  ])]),
253
- content: I(() => [g("div", G, [_(X, {
254
+ content: I(() => [_("div", G, [v(X, {
254
255
  items: n.items,
255
256
  depth: 0,
256
257
  prefix: `${e.prefix}-${r}`,
@@ -264,31 +265,31 @@ var H = {
264
265
  "show-delay",
265
266
  "hide-delay",
266
267
  "onUpdate:modelValue"
267
- ])) : (E(), h(u, { key: 1 }, [g("div", {
268
- class: C(["m-menu__item-content", T(n, r)]),
269
- style: w(O(e.depth)),
268
+ ])) : (D(), g(d, { key: 1 }, [_("div", {
269
+ class: w(["m-menu__item-content", C(n, r)]),
270
+ style: T(O(e.depth)),
270
271
  role: "menuitem",
271
- tabindex: D(n, r),
272
- "data-m-menu-key": e.flyout ? void 0 : d(n, r),
272
+ tabindex: E(n, r),
273
+ "data-m-menu-key": e.flyout ? void 0 : u(n, r),
273
274
  "aria-haspopup": "menu",
274
275
  "aria-expanded": S(n, r),
275
276
  "aria-disabled": n.disabled || void 0,
276
- onClick: (e) => x(n, r)
277
+ onClick: (e) => b(n, r)
277
278
  }, [
278
- v(n) ? (E(), h("span", K, [_(t, {
279
- name: v(n),
279
+ f(n) ? (D(), g("span", K, [v(t, {
280
+ name: f(n),
280
281
  size: "sm"
281
- }, null, 8, ["name"])])) : m("", !0),
282
- g("span", q, N(n.label), 1),
283
- g("span", {
284
- class: C(["m-menu__arrow", { "m-menu__arrow--expanded": k(n, r) }]),
282
+ }, null, 8, ["name"])])) : h("", !0),
283
+ _("span", q, N(n.label), 1),
284
+ _("span", {
285
+ class: w(["m-menu__arrow", { "m-menu__arrow--expanded": re(n, r) }]),
285
286
  "aria-hidden": "true"
286
- }, [_(t, {
287
+ }, [v(t, {
287
288
  name: "chevron-right",
288
289
  size: "sm"
289
290
  })], 2)
290
- ], 14, pe), _(ne, { name: "m-menu-expand" }, {
291
- default: I(() => [S(n, r) ? (E(), h("div", J, [g("div", Y, [_(X, {
291
+ ], 14, me), v(ne, { name: "m-menu-expand" }, {
292
+ default: I(() => [S(n, r) ? (D(), g("div", J, [_("div", Y, [v(X, {
292
293
  items: n.items,
293
294
  depth: e.depth + 1,
294
295
  prefix: `${e.prefix}-${r}`
@@ -296,32 +297,32 @@ var H = {
296
297
  "items",
297
298
  "depth",
298
299
  "prefix"
299
- ])])])) : m("", !0)]),
300
+ ])])])) : h("", !0)]),
300
301
  _: 2
301
- }, 1024)], 64))], 2)) : (E(), h("div", {
302
+ }, 1024)], 64))], 2)) : (D(), g("div", {
302
303
  key: 2,
303
- class: C(["m-menu__item", { "m-menu__item--horizontal": c.value }]),
304
+ class: w(["m-menu__item", { "m-menu__item--horizontal": c.value }]),
304
305
  role: "none"
305
- }, [_(z, {
306
+ }, [v(V, {
306
307
  label: n.label,
307
- active: F(n)
308
+ active: ae(n)
308
309
  }, {
309
- default: I(() => [(E(), p(M(j(n) ? P(a) : re(n) ? "a" : "div"), {
310
- class: C(["m-menu__item-content", T(n, r)]),
311
- style: w(O(e.depth)),
310
+ default: I(() => [(D(), m(M(k(n) ? P(a) : j(n) ? "a" : "div"), {
311
+ class: w(["m-menu__item-content", C(n, r)]),
312
+ style: T(O(e.depth)),
312
313
  role: "menuitem",
313
- tabindex: D(n, r),
314
- "data-m-menu-key": e.flyout ? void 0 : d(n, r),
314
+ tabindex: E(n, r),
315
+ "data-m-menu-key": e.flyout ? void 0 : u(n, r),
315
316
  "aria-disabled": n.disabled || void 0,
316
317
  "aria-current": P(i).isSelected(n, r, e.prefix) ? "page" : void 0,
317
- href: re(n),
318
+ href: j(n),
318
319
  to: ie(n),
319
320
  onClick: (e) => y(n, e)
320
321
  }, {
321
- default: I(() => [v(n) ? (E(), h("span", me, [_(t, {
322
- name: v(n),
322
+ default: I(() => [f(n) ? (D(), g("span", he, [v(t, {
323
+ name: f(n),
323
324
  size: "sm"
324
- }, null, 8, ["name"])])) : m("", !0), g("span", he, N(n.label), 1)]),
325
+ }, null, 8, ["name"])])) : h("", !0), _("span", ge, N(n.label), 1)]),
325
326
  _: 2
326
327
  }, 1032, [
327
328
  "class",
@@ -337,7 +338,7 @@ var H = {
337
338
  _: 2
338
339
  }, 1032, ["label", "active"])], 2))], 64))), 128));
339
340
  }
340
- }), ge = /* @__PURE__ */ v({
341
+ }), _e = /* @__PURE__ */ y({
341
342
  inheritAttrs: !1,
342
343
  __name: "Menu",
343
344
  props: {
@@ -391,18 +392,18 @@ var H = {
391
392
  "update:expandedKeys",
392
393
  "select"
393
394
  ],
394
- setup(t, { emit: o }) {
395
- let s = t, ee = re(), { rootAttrs: l } = e(ee, () => s.pt), u = o, v = ie(), y = te(), b = k(null), A = k(null), M = k({}), N = f(() => !!v.default?.()?.length), z = f(() => n(s.popup ? s : { teleport: !1 }, y.value.appendTo)), B = f(() => s.popup && r(s, y.value.appendTo)), le = f(() => s.embedded ?? !s.popup), ue = f(() => s.selectedKey), V = k([]), H = O({});
395
+ setup(t, { emit: s }) {
396
+ let c = t, l = s, te = ie(), { rootAttrs: d } = e(te, () => c.pt), y = ae(), b = u(), x = k(null), A = k(null), M = k({}), N = p(() => !!y.default?.()?.length), z = p(() => n(c.popup ? c : { teleport: !1 }, b.value.appendTo)), B = p(() => c.popup && r(c, b.value.appendTo)), ue = p(() => c.embedded ?? !c.popup), de = p(() => c.selectedKey), V = k([]), H = re({});
396
397
  function U(e, t) {
397
398
  H[e] = t;
398
399
  }
399
400
  function W() {
400
401
  for (let e of Object.keys(H)) H[e] = !1;
401
402
  }
402
- function de() {
403
+ function fe() {
403
404
  let e = A.value?.getBoundingClientRect();
404
405
  if (e && (e.width > 0 || e.height > 0)) return e;
405
- let { x: t, y: n } = c();
406
+ let { x: t, y: n } = ee();
406
407
  return {
407
408
  left: t,
408
409
  top: n,
@@ -412,35 +413,35 @@ var H = {
412
413
  height: 0
413
414
  };
414
415
  }
415
- function fe() {
416
- !s.popup || !s.modelValue || !B.value || (M.value = i(de(), s.placement, { minWidth: "10rem" }));
416
+ function pe() {
417
+ !c.popup || !c.modelValue || !B.value || (M.value = i(fe(), c.placement, { minWidth: "10rem" }));
417
418
  }
418
419
  function G() {
419
- s.modelValue && fe();
420
+ c.modelValue && pe();
420
421
  }
421
- function pe() {
422
- if (s.defaultExpandAll) {
423
- V.value = oe(s.model);
422
+ function me() {
423
+ if (c.defaultExpandAll) {
424
+ V.value = se(c.model);
424
425
  return;
425
426
  }
426
- if (s.defaultExpandedKeys.length) {
427
- V.value = [...s.defaultExpandedKeys];
427
+ if (c.defaultExpandedKeys.length) {
428
+ V.value = [...c.defaultExpandedKeys];
428
429
  return;
429
430
  }
430
- if (s.selectedKey) {
431
- let e = R(s.model, s.selectedKey);
431
+ if (c.selectedKey) {
432
+ let e = R(c.model, c.selectedKey);
432
433
  V.value = e ?? [];
433
434
  return;
434
435
  }
435
436
  V.value = [];
436
437
  }
437
- pe();
438
- let K = f({
439
- get: () => s.expandedKeys ?? V.value,
438
+ me();
439
+ let K = p({
440
+ get: () => c.expandedKeys ?? V.value,
440
441
  set: (e) => {
441
- V.value = e, u("update:expandedKeys", e);
442
+ V.value = e, l("update:expandedKeys", e);
442
443
  }
443
- }), q = f(() => se(s.model));
444
+ }), q = p(() => ce(c.model));
444
445
  function J(e) {
445
446
  return K.value.includes(e);
446
447
  }
@@ -448,7 +449,7 @@ var H = {
448
449
  let t = [...K.value], n = t.indexOf(e);
449
450
  if (n >= 0) t.splice(n, 1);
450
451
  else {
451
- if (s.accordion && q.value.includes(e)) {
452
+ if (c.accordion && q.value.includes(e)) {
452
453
  for (let n of [...t]) if (q.value.includes(n) && n !== e) {
453
454
  let e = t.indexOf(n);
454
455
  e >= 0 && t.splice(e, 1);
@@ -458,47 +459,47 @@ var H = {
458
459
  }
459
460
  K.value = t;
460
461
  }
461
- function me(e) {
462
+ function he(e) {
462
463
  if (!e) return;
463
- let t = R(s.model, e);
464
+ let t = R(c.model, e);
464
465
  if (!t?.length) return;
465
466
  let n = /* @__PURE__ */ new Set([...K.value, ...t]);
466
- if (s.accordion) for (let e of q.value) n.has(e) && !t.includes(e) && n.delete(e);
467
+ if (c.accordion) for (let e of q.value) n.has(e) && !t.includes(e) && n.delete(e);
467
468
  K.value = Array.from(n);
468
469
  }
469
- F(() => s.selectedKey, me);
470
- function he(e, t, n) {
471
- return L(e, t, n);
472
- }
470
+ F(() => c.selectedKey, he);
473
471
  function ge(e, t, n) {
474
- let r = he(e, t, n);
475
- return !!(s.selectedKey && r === s.selectedKey);
472
+ return L(e, t, n);
476
473
  }
477
474
  function _e(e, t, n) {
478
- return s.selectedKey ? ae(e, s.selectedKey, t, n) : !1;
475
+ let r = ge(e, t, n);
476
+ return !!(c.selectedKey && r === c.selectedKey);
479
477
  }
480
- function ve(e) {
481
- if (s.mode !== "horizontal" && s.collapsed) return Math.max(0, s.collapsedWidth / 2 - 10);
478
+ function ve(e, t, n) {
479
+ return c.selectedKey ? oe(e, c.selectedKey, t, n) : !1;
482
480
  }
483
481
  function ye(e) {
484
- if (s.mode === "horizontal") return { paddingInlineStart: `${s.rootIndent}px` };
485
- if (s.collapsed) {
486
- let t = ve(e);
482
+ if (c.mode !== "horizontal" && c.collapsed) return Math.max(0, c.collapsedWidth / 2 - 10);
483
+ }
484
+ function be(e) {
485
+ if (c.mode === "horizontal") return { paddingInlineStart: `${c.rootIndent}px` };
486
+ if (c.collapsed) {
487
+ let t = ye(e);
487
488
  return t == null ? void 0 : { paddingInlineStart: `${t}px` };
488
489
  }
489
490
  return { paddingInlineStart: `calc(var(--m-menu-root-indent) + ${e} * var(--m-menu-indent))` };
490
491
  }
491
- function be(e) {
492
+ function xe(e) {
492
493
  if (e.disabled || e.separator) return;
493
494
  e.command?.();
494
495
  let t = e.key ?? e.label ?? null;
495
- u("update:selectedKey", t), u("select", e), s.popup && (u("update:modelValue", !1), xe()), s.mode === "horizontal" && W();
496
+ l("update:selectedKey", t), l("select", e), c.popup && (l("update:modelValue", !1), Se()), c.mode === "horizontal" && W();
496
497
  }
497
- function xe() {
498
+ function Se() {
498
499
  (A.value?.querySelector("button, [tabindex]") ?? A.value)?.focus({ preventScroll: !0 });
499
500
  }
500
- let Z = f(() => {
501
- let e = s.collapsed || s.mode === "horizontal", t = [], n = (r, i, a) => {
501
+ let Z = p(() => {
502
+ let e = c.collapsed || c.mode === "horizontal", t = [], n = (r, i, a) => {
502
503
  r.forEach((r, o) => {
503
504
  if (r.separator) return;
504
505
  let s = L(r, o, i), c = !!r.items?.length;
@@ -510,47 +511,47 @@ var H = {
510
511
  }), c && !e && J(s) && n(r.items, `${i}-${o}`, s);
511
512
  });
512
513
  };
513
- return n(s.model, "item", null), t;
514
+ return n(c.model, "item", null), t;
514
515
  }), Q = a({
515
516
  itemCount: () => Z.value.length,
516
517
  isItemDisabled: (e) => !!Z.value[e]?.item.disabled,
517
- orientation: () => s.mode === "horizontal" ? "horizontal" : "vertical",
518
+ orientation: () => c.mode === "horizontal" ? "horizontal" : "vertical",
518
519
  onActivate: (e) => {
519
520
  let t = Z.value[e];
520
521
  if (t) {
521
522
  if (t.hasChildren) {
522
- if (s.collapsed || s.mode === "horizontal") {
523
+ if (c.collapsed || c.mode === "horizontal") {
523
524
  let e = !H[t.key];
524
525
  W(), U(t.key, e);
525
526
  } else Y(t.key);
526
527
  return;
527
528
  }
528
- be(t.item);
529
+ xe(t.item);
529
530
  }
530
531
  },
531
532
  onEscape: () => {
532
- s.popup ? u("update:modelValue", !1) : W();
533
+ c.popup ? l("update:modelValue", !1) : W();
533
534
  },
534
- returnFocusTo: () => s.popup ? A.value?.querySelector("button, [tabindex]") ?? A.value : null
535
- }), Se = f(() => Z.value[Q.activeIndex.value]?.key ?? null);
536
- function Ce(e) {
537
- let t = Se.value;
535
+ returnFocusTo: () => c.popup ? A.value?.querySelector("button, [tabindex]") ?? A.value : null
536
+ }), Ce = p(() => Z.value[Q.activeIndex.value]?.key ?? null);
537
+ function we(e) {
538
+ let t = Ce.value;
538
539
  return t == null ? Z.value.find((e) => !e.item.disabled)?.key === e ? 0 : -1 : e === t ? 0 : -1;
539
540
  }
540
- function we(e) {
541
- if (e == null || !b.value) return;
542
- let t = b.value.querySelectorAll("[data-m-menu-key]");
541
+ function Te(e) {
542
+ if (e == null || !x.value) return;
543
+ let t = x.value.querySelectorAll("[data-m-menu-key]");
543
544
  for (let n of t) if (n.dataset.mMenuKey === e) {
544
545
  n.focus({ preventScroll: !0 });
545
546
  return;
546
547
  }
547
548
  }
548
- function Te(e) {
549
+ function Ee(e) {
549
550
  let t = Z.value[Q.activeIndex.value];
550
- if (s.mode !== "horizontal") {
551
+ if (c.mode !== "horizontal") {
551
552
  if (e.key === "ArrowRight") {
552
553
  if (e.preventDefault(), !t) return;
553
- if (t.hasChildren && !s.collapsed) {
554
+ if (t.hasChildren && !c.collapsed) {
554
555
  if (!J(t.key)) Y(t.key);
555
556
  else {
556
557
  let e = Z.value.findIndex((e) => e.parentKey === t.key);
@@ -561,7 +562,7 @@ var H = {
561
562
  }
562
563
  if (e.key === "ArrowLeft") {
563
564
  if (e.preventDefault(), !t) return;
564
- if (t.hasChildren && !s.collapsed && J(t.key)) Y(t.key);
565
+ if (t.hasChildren && !c.collapsed && J(t.key)) Y(t.key);
565
566
  else if (t.parentKey != null) {
566
567
  let e = Z.value.findIndex((e) => e.key === t.parentKey);
567
568
  e >= 0 && Q.setActive(e);
@@ -575,107 +576,123 @@ var H = {
575
576
  Q.onKeydown(e);
576
577
  }
577
578
  F(Q.activeIndex, () => {
578
- S(() => we(Se.value));
579
- }), D(ce, {
580
- collapsed: f(() => s.collapsed),
581
- selectedKey: ue,
579
+ C(() => Te(Ce.value));
580
+ }), O(le, {
581
+ collapsed: p(() => c.collapsed),
582
+ selectedKey: de,
582
583
  expandedKeys: K,
583
- accordion: s.accordion,
584
- indent: s.indent,
585
- rootIndent: s.rootIndent,
586
- mode: s.mode,
587
- inverted: s.inverted,
584
+ accordion: c.accordion,
585
+ indent: c.indent,
586
+ rootIndent: c.rootIndent,
587
+ mode: c.mode,
588
+ inverted: c.inverted,
588
589
  flyoutOpen: H,
589
590
  setFlyoutOpen: U,
590
591
  toggleExpand: Y,
591
592
  isExpanded: J,
592
- activate: be,
593
- resolveKey: he,
594
- isSelected: ge,
595
- isChildActive: _e,
596
- paddingStyle: ye,
597
- activeKey: Se,
598
- tabindexForKey: Ce
593
+ activate: xe,
594
+ resolveKey: ge,
595
+ isSelected: _e,
596
+ isChildActive: ve,
597
+ paddingStyle: be,
598
+ activeKey: Ce,
599
+ tabindexForKey: we
599
600
  });
600
- function Ee(e) {
601
- if (!s.popup || !s.modelValue) return;
601
+ function De(e) {
602
+ if (!c.popup || !c.modelValue) return;
602
603
  let t = e.target;
603
- b.value?.contains(t) || A.value?.contains(t) || u("update:modelValue", !1);
604
+ x.value?.contains(t) || A.value?.contains(t) || l("update:modelValue", !1);
604
605
  }
605
- F(() => s.modelValue, (e) => {
606
- s.popup && (e ? (S(fe), document.addEventListener("click", Ee), B.value && (window.addEventListener("resize", G), window.addEventListener("scroll", G, !0))) : (document.removeEventListener("click", Ee), window.removeEventListener("resize", G), window.removeEventListener("scroll", G, !0)));
607
- }, { immediate: !0 }), T(() => {
608
- document.removeEventListener("click", Ee), window.removeEventListener("resize", G), window.removeEventListener("scroll", G, !0);
606
+ F(() => c.modelValue, (e) => {
607
+ c.popup && (e ? (C(pe), document.addEventListener("click", De), B.value && (window.addEventListener("resize", G), window.addEventListener("scroll", G, !0))) : (document.removeEventListener("click", De), window.removeEventListener("resize", G), window.removeEventListener("scroll", G, !0)));
608
+ }, { immediate: !0 }), E(() => {
609
+ document.removeEventListener("click", De), window.removeEventListener("resize", G), window.removeEventListener("scroll", G, !0);
609
610
  });
610
- let De = f(() => ["m-menu", {
611
- "m-menu--popup": s.popup,
611
+ let Oe = p(() => ["m-menu", {
612
+ "m-menu--popup": c.popup,
612
613
  "m-menu--teleported": B.value,
613
- "m-menu--collapsed": s.collapsed,
614
- "m-menu--embedded": le.value,
615
- "m-menu--horizontal": s.mode === "horizontal",
616
- "m-menu--inverted": s.inverted
617
- }]), $ = f(() => ({
618
- "--m-menu-indent": `${s.indent / 16}rem`,
619
- "--m-menu-root-indent": `${s.rootIndent / 16}rem`
620
- })), Oe = f(() => B.value ? {
614
+ "m-menu--collapsed": c.collapsed,
615
+ "m-menu--embedded": ue.value,
616
+ "m-menu--horizontal": c.mode === "horizontal",
617
+ "m-menu--inverted": c.inverted
618
+ }]), $ = p(() => ({
619
+ "--m-menu-indent": `${c.indent / 16}rem`,
620
+ "--m-menu-root-indent": `${c.rootIndent / 16}rem`
621
+ })), ke = p(() => B.value ? {
621
622
  ...$.value,
622
623
  ...M.value
623
624
  } : $.value);
624
- return (e, n) => t.popup ? N.value ? (E(), h("div", x({ key: 1 }, P(l), { class: "m-menu-popup" }), [g("div", {
625
+ return (e, n) => t.popup ? N.value ? (D(), g("div", S({ key: 1 }, P(d), { class: "m-menu-popup" }), [_("div", {
625
626
  ref_key: "triggerEl",
626
627
  ref: A,
627
628
  class: "m-menu-popup__anchor"
628
- }, [j(e.$slots, "default")], 512), (E(), p(d, {
629
+ }, [j(e.$slots, "default")], 512), (D(), m(f, {
629
630
  to: z.value.to,
630
631
  disabled: z.value.disabled
631
- }, [_(ne, { name: "m-scale-fade" }, {
632
- default: I(() => [t.modelValue ? (E(), h("div", {
632
+ }, [v(ne, { name: "m-scale-fade" }, {
633
+ default: I(() => [t.modelValue ? (D(), g("div", {
633
634
  key: 0,
634
635
  ref_key: "root",
635
- ref: b,
636
- class: C(De.value),
637
- style: w(B.value ? Oe.value : $.value),
636
+ ref: x,
637
+ class: w(Oe.value),
638
+ style: T(B.value ? ke.value : $.value),
638
639
  role: "menu",
639
- onKeydown: Te
640
- }, [_(X, {
641
- items: t.model,
642
- depth: 0,
643
- prefix: "item"
644
- }, null, 8, ["items"])], 38)) : m("", !0)]),
640
+ onKeydown: Ee
641
+ }, [v(o, {
642
+ class: "m-menu__scroll",
643
+ "fit-content": "",
644
+ "wrap-class": "m-menu__scroll-wrap",
645
+ "view-class": "m-menu__scroll-view"
646
+ }, {
647
+ default: I(() => [v(X, {
648
+ items: t.model,
649
+ depth: 0,
650
+ prefix: "item"
651
+ }, null, 8, ["items"])]),
652
+ _: 1
653
+ })], 38)) : h("", !0)]),
645
654
  _: 1
646
- })], 8, ["to", "disabled"]))], 16)) : (E(), p(d, {
655
+ })], 8, ["to", "disabled"]))], 16)) : (D(), m(f, {
647
656
  key: 2,
648
657
  to: z.value.to,
649
658
  disabled: z.value.disabled
650
- }, [_(ne, { name: "m-scale-fade" }, {
651
- default: I(() => [t.modelValue ? (E(), h("div", x({
659
+ }, [v(ne, { name: "m-scale-fade" }, {
660
+ default: I(() => [t.modelValue ? (D(), g("div", S({
652
661
  key: 0,
653
662
  ref_key: "root",
654
- ref: b
655
- }, P(l), {
656
- class: De.value,
663
+ ref: x
664
+ }, P(d), {
665
+ class: Oe.value,
657
666
  style: B.value ? {
658
667
  ...$.value,
659
668
  ...M.value
660
669
  } : $.value,
661
670
  role: "menu",
662
- onKeydown: Te
663
- }), [_(X, {
664
- items: t.model,
665
- depth: 0,
666
- prefix: "item"
667
- }, null, 8, ["items"])], 16)) : m("", !0)]),
671
+ onKeydown: Ee
672
+ }), [v(o, {
673
+ class: "m-menu__scroll",
674
+ "fit-content": "",
675
+ "wrap-class": "m-menu__scroll-wrap",
676
+ "view-class": "m-menu__scroll-view"
677
+ }, {
678
+ default: I(() => [v(X, {
679
+ items: t.model,
680
+ depth: 0,
681
+ prefix: "item"
682
+ }, null, 8, ["items"])]),
683
+ _: 1
684
+ })], 16)) : h("", !0)]),
668
685
  _: 1
669
- })], 8, ["to", "disabled"])) : (E(), h("div", x({
686
+ })], 8, ["to", "disabled"])) : (D(), g("div", S({
670
687
  key: 0,
671
688
  ref_key: "root",
672
- ref: b
673
- }, P(l), {
674
- class: De.value,
689
+ ref: x
690
+ }, P(d), {
691
+ class: Oe.value,
675
692
  style: $.value,
676
693
  role: "menu",
677
- onKeydown: Te
678
- }), [_(X, {
694
+ onKeydown: Ee
695
+ }), [v(X, {
679
696
  items: t.model,
680
697
  depth: 0,
681
698
  prefix: "item"
@@ -683,4 +700,4 @@ var H = {
683
700
  }
684
701
  });
685
702
  //#endregion
686
- export { ge as MMenu };
703
+ export { _e as MMenu };