morya-ui 0.2.8 → 0.3.0

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 (458) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/README.md +1 -0
  3. package/README.zh-CN.md +1 -0
  4. package/dist/{Button--RkQybU-.js → Button-B5X_R4Md.js} +2 -2
  5. package/dist/{Card-BQfmv5Iw.js → Card-Dsmnzong.js} +1 -1
  6. package/dist/{Checkbox-CL05RRUD.js → Checkbox-BzbAUfyZ.js} +2 -2
  7. package/dist/FlyoutSubmenu-BrUPmJa1.js +45 -0
  8. package/dist/Icon-lcN1rS87.js +610 -0
  9. package/dist/{Pagination-BKvR-RUW.js → Pagination-CVrH8Ypi.js} +3 -3
  10. package/dist/Popover-BQ07q4VV.js +179 -0
  11. package/dist/ProgressSpinner-BeWVF6Jv.js +105 -0
  12. package/dist/{Radio-DsaKvbhk.js → Radio-rF6zdR5Y.js} +2 -2
  13. package/dist/{ScrollBody-D2IHKP6U.js → ScrollBody-5hUnHj_M.js} +1 -1
  14. package/dist/{Scrollbar-BYnCO8fv.js → Scrollbar-DTeJ8P5b.js} +2 -2
  15. package/dist/Tooltip-D5DO0B3z.js +105 -0
  16. package/dist/VirtualScroller-CHoFCmpP.js +75 -0
  17. package/dist/accordion/index.js +42 -39
  18. package/dist/accordion/style.css +293 -40
  19. package/dist/auto-complete/index.js +185 -124
  20. package/dist/auto-complete/style.css +497 -96
  21. package/dist/auto-complete/style.js +2 -0
  22. package/dist/avatar/index.js +2 -2
  23. package/dist/avatar/style.css +255 -45
  24. package/dist/badge/index.js +25 -20
  25. package/dist/badge/style.css +275 -47
  26. package/dist/block-ui/index.js +26 -13
  27. package/dist/block-ui/style.css +250 -40
  28. package/dist/breadcrumb/index.js +2 -2
  29. package/dist/breadcrumb/style.css +250 -40
  30. package/dist/button/index.js +2 -2
  31. package/dist/button/style.css +251 -41
  32. package/dist/card/index.js +1 -1
  33. package/dist/card/style.css +250 -40
  34. package/dist/carousel/index.js +3 -3
  35. package/dist/carousel/style.css +251 -41
  36. package/dist/cascade-select/index.js +172 -143
  37. package/dist/cascade-select/style.css +475 -85
  38. package/dist/cascade-select/style.js +1 -0
  39. package/dist/checkbox/index.js +2 -2
  40. package/dist/checkbox/style.css +250 -40
  41. package/dist/chip/index.js +2 -2
  42. package/dist/chip/style.css +258 -42
  43. package/dist/command-menu/index.js +58 -45
  44. package/dist/command-menu/style.css +256 -44
  45. package/dist/components/Accordion/Accordion.vue.d.ts +2 -2
  46. package/dist/components/Accordion/Accordion.vue.d.ts.map +1 -1
  47. package/dist/components/Accordion/styles.css +43 -0
  48. package/dist/components/AutoComplete/AutoComplete.vue.d.ts +11 -4
  49. package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
  50. package/dist/components/AutoComplete/styles.css +47 -52
  51. package/dist/components/AutoComplete/types.d.ts +8 -0
  52. package/dist/components/AutoComplete/types.d.ts.map +1 -1
  53. package/dist/components/Avatar/styles.css +4 -4
  54. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  55. package/dist/components/Badge/styles.css +25 -7
  56. package/dist/components/BlockUI/BlockUI.vue.d.ts +2 -0
  57. package/dist/components/BlockUI/BlockUI.vue.d.ts.map +1 -1
  58. package/dist/components/BlockUI/types.d.ts +3 -0
  59. package/dist/components/BlockUI/types.d.ts.map +1 -1
  60. package/dist/components/Button/index.d.ts.map +1 -1
  61. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +2 -0
  62. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
  63. package/dist/components/CascadeSelect/styles.css +39 -38
  64. package/dist/components/CascadeSelect/types.d.ts +3 -0
  65. package/dist/components/CascadeSelect/types.d.ts.map +1 -1
  66. package/dist/components/Chip/styles.css +7 -1
  67. package/dist/components/CommandMenu/CommandMenu.vue.d.ts +2 -0
  68. package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
  69. package/dist/components/CommandMenu/styles.css +2 -0
  70. package/dist/components/CommandMenu/types.d.ts +3 -0
  71. package/dist/components/CommandMenu/types.d.ts.map +1 -1
  72. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -0
  73. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts.map +1 -1
  74. package/dist/components/ConfigProvider/types.d.ts +1 -1
  75. package/dist/components/ConfigProvider/types.d.ts.map +1 -1
  76. package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +2 -1
  77. package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
  78. package/dist/components/ConfirmDialog/types.d.ts +3 -0
  79. package/dist/components/ConfirmDialog/types.d.ts.map +1 -1
  80. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +2 -0
  81. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
  82. package/dist/components/ConfirmPopup/types.d.ts +3 -0
  83. package/dist/components/ConfirmPopup/types.d.ts.map +1 -1
  84. package/dist/components/ContextMenu/ContextMenu.vue.d.ts +2 -0
  85. package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
  86. package/dist/components/ContextMenu/styles.css +2 -0
  87. package/dist/components/ContextMenu/types.d.ts +3 -0
  88. package/dist/components/ContextMenu/types.d.ts.map +1 -1
  89. package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -0
  90. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  91. package/dist/components/DatePicker/styles.css +65 -21
  92. package/dist/components/DatePicker/types.d.ts +3 -0
  93. package/dist/components/DatePicker/types.d.ts.map +1 -1
  94. package/dist/components/Dialog/Dialog.vue.d.ts +2 -0
  95. package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
  96. package/dist/components/Dialog/index.d.ts.map +1 -1
  97. package/dist/components/Dialog/styles.css +190 -4
  98. package/dist/components/Dialog/types.d.ts +3 -0
  99. package/dist/components/Dialog/types.d.ts.map +1 -1
  100. package/dist/components/Drawer/Drawer.vue.d.ts +2 -0
  101. package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
  102. package/dist/components/Drawer/styles.css +189 -4
  103. package/dist/components/Drawer/types.d.ts +3 -0
  104. package/dist/components/Drawer/types.d.ts.map +1 -1
  105. package/dist/components/Dropdown/Dropdown.vue.d.ts +2 -0
  106. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  107. package/dist/components/Dropdown/styles.css +4 -0
  108. package/dist/components/Dropdown/types.d.ts +3 -0
  109. package/dist/components/Dropdown/types.d.ts.map +1 -1
  110. package/dist/components/Empty/index.d.ts.map +1 -1
  111. package/dist/components/Empty/styles.css +6 -6
  112. package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
  113. package/dist/components/Fieldset/styles.css +17 -6
  114. package/dist/components/FileUpload/FileUpload.vue.d.ts +1 -1
  115. package/dist/components/FloatLabel/styles.css +19 -7
  116. package/dist/components/Form/styles.css +21 -0
  117. package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
  118. package/dist/components/Icon/icon-categories.d.ts +21 -0
  119. package/dist/components/Icon/icon-categories.d.ts.map +1 -0
  120. package/dist/components/Icon/icons-tabler.d.ts +77 -0
  121. package/dist/components/Icon/icons-tabler.d.ts.map +1 -0
  122. package/dist/components/Icon/icons-types.d.ts +36 -0
  123. package/dist/components/Icon/icons-types.d.ts.map +1 -0
  124. package/dist/components/Icon/icons.d.ts +75 -32
  125. package/dist/components/Icon/icons.d.ts.map +1 -1
  126. package/dist/components/Icon/index.d.ts +2 -0
  127. package/dist/components/Icon/index.d.ts.map +1 -1
  128. package/dist/components/Icon/styles.css +1 -1
  129. package/dist/components/IconField/IconField.vue.d.ts +3 -1
  130. package/dist/components/IconField/IconField.vue.d.ts.map +1 -1
  131. package/dist/components/IconField/styles.css +306 -31
  132. package/dist/components/Input/Input.vue.d.ts.map +1 -1
  133. package/dist/components/Input/index.d.ts.map +1 -1
  134. package/dist/components/Input/styles.css +191 -35
  135. package/dist/components/InputNumber/styles.css +103 -40
  136. package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
  137. package/dist/components/InputPassword/styles.css +79 -79
  138. package/dist/components/InputTags/styles.css +3 -1
  139. package/dist/components/Layout/LayoutContent.vue.d.ts +4 -8
  140. package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
  141. package/dist/components/Layout/LayoutSider.vue.d.ts +4 -6
  142. package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
  143. package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts +2 -0
  144. package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts.map +1 -1
  145. package/dist/components/Layout/styles.css +29 -54
  146. package/dist/components/Layout/types.d.ts +6 -7
  147. package/dist/components/Layout/types.d.ts.map +1 -1
  148. package/dist/components/Listbox/Listbox.vue.d.ts +7 -2
  149. package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
  150. package/dist/components/Listbox/styles.css +10 -0
  151. package/dist/components/Listbox/types.d.ts +5 -0
  152. package/dist/components/Listbox/types.d.ts.map +1 -1
  153. package/dist/components/Loading/Loading.vue.d.ts +2 -0
  154. package/dist/components/Loading/Loading.vue.d.ts.map +1 -1
  155. package/dist/components/Loading/LoadingIndicator.vue.d.ts.map +1 -1
  156. package/dist/components/Loading/loading.d.ts.map +1 -1
  157. package/dist/components/Loading/styles.css +25 -17
  158. package/dist/components/Loading/types.d.ts +3 -0
  159. package/dist/components/Loading/types.d.ts.map +1 -1
  160. package/dist/components/MegaMenu/MegaMenu.vue.d.ts +2 -0
  161. package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
  162. package/dist/components/MegaMenu/styles.css +1 -0
  163. package/dist/components/MegaMenu/types.d.ts +3 -0
  164. package/dist/components/MegaMenu/types.d.ts.map +1 -1
  165. package/dist/components/Menu/Menu.vue.d.ts +3 -1
  166. package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
  167. package/dist/components/Menu/styles.css +14 -10
  168. package/dist/components/Menu/types.d.ts +3 -0
  169. package/dist/components/Menu/types.d.ts.map +1 -1
  170. package/dist/components/Menubar/Menubar.vue.d.ts +2 -0
  171. package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
  172. package/dist/components/Menubar/styles.css +4 -0
  173. package/dist/components/Menubar/types.d.ts +3 -0
  174. package/dist/components/Menubar/types.d.ts.map +1 -1
  175. package/dist/components/Message/Message.vue.d.ts +2 -0
  176. package/dist/components/Message/Message.vue.d.ts.map +1 -1
  177. package/dist/components/Message/types.d.ts +3 -0
  178. package/dist/components/Message/types.d.ts.map +1 -1
  179. package/dist/components/MeterGroup/styles.css +2 -2
  180. package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
  181. package/dist/components/Panel/styles.css +21 -6
  182. package/dist/components/Popover/Popover.vue.d.ts +2 -0
  183. package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
  184. package/dist/components/Popover/types.d.ts +3 -0
  185. package/dist/components/Popover/types.d.ts.map +1 -1
  186. package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -1
  187. package/dist/components/ProgressBar/styles.css +30 -8
  188. package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts.map +1 -1
  189. package/dist/components/ProgressSpinner/styles.css +3 -3
  190. package/dist/components/Result/index.d.ts.map +1 -1
  191. package/dist/components/Result/styles.css +17 -17
  192. package/dist/components/ScrollTop/ScrollTop.vue.d.ts +1 -1
  193. package/dist/components/Scrollbar/Scrollbar.vue.d.ts.map +1 -1
  194. package/dist/components/Scrollbar/styles.css +3 -3
  195. package/dist/components/Select/Select.vue.d.ts +10 -3
  196. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  197. package/dist/components/Select/index.d.ts.map +1 -1
  198. package/dist/components/Select/styles.css +13 -91
  199. package/dist/components/Select/types.d.ts +8 -0
  200. package/dist/components/Select/types.d.ts.map +1 -1
  201. package/dist/components/Sidebar/styles.css +8 -10
  202. package/dist/components/Skeleton/Skeleton.vue.d.ts +1 -1
  203. package/dist/components/Skeleton/Skeleton.vue.d.ts.map +1 -1
  204. package/dist/components/Slider/Slider.vue.d.ts +1 -1
  205. package/dist/components/SpeedDial/SpeedDial.vue.d.ts +2 -0
  206. package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
  207. package/dist/components/SpeedDial/types.d.ts +3 -0
  208. package/dist/components/SpeedDial/types.d.ts.map +1 -1
  209. package/dist/components/SplitButton/SplitButton.vue.d.ts +2 -0
  210. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  211. package/dist/components/SplitButton/types.d.ts +3 -0
  212. package/dist/components/SplitButton/types.d.ts.map +1 -1
  213. package/dist/components/Splitter/Splitter.vue.d.ts +5 -3
  214. package/dist/components/Splitter/Splitter.vue.d.ts.map +1 -1
  215. package/dist/components/Splitter/index.d.ts +1 -1
  216. package/dist/components/Splitter/index.d.ts.map +1 -1
  217. package/dist/components/Splitter/styles.css +12 -0
  218. package/dist/components/Splitter/types.d.ts +9 -3
  219. package/dist/components/Splitter/types.d.ts.map +1 -1
  220. package/dist/components/Status/Status.vue.d.ts.map +1 -1
  221. package/dist/components/Status/index.d.ts.map +1 -1
  222. package/dist/components/Status/styles.css +18 -16
  223. package/dist/components/Switch/Switch.vue.d.ts +1 -1
  224. package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
  225. package/dist/components/Table/styles.css +8 -8
  226. package/dist/components/Tag/styles.css +4 -2
  227. package/dist/components/Textarea/styles.css +15 -1
  228. package/dist/components/TieredMenu/TieredMenu.vue.d.ts +3 -1
  229. package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
  230. package/dist/components/TieredMenu/styles.css +2 -0
  231. package/dist/components/TieredMenu/types.d.ts +3 -0
  232. package/dist/components/TieredMenu/types.d.ts.map +1 -1
  233. package/dist/components/Toast/Toast.vue.d.ts +2 -0
  234. package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
  235. package/dist/components/Toast/types.d.ts +3 -0
  236. package/dist/components/Toast/types.d.ts.map +1 -1
  237. package/dist/components/Toolbar/styles.css +1 -0
  238. package/dist/components/Tooltip/Tooltip.vue.d.ts +2 -0
  239. package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
  240. package/dist/components/Tooltip/types.d.ts +3 -0
  241. package/dist/components/Tooltip/types.d.ts.map +1 -1
  242. package/dist/components/Tree/styles.css +1 -1
  243. package/dist/components/TreeSelect/TreeSelect.vue.d.ts +2 -0
  244. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  245. package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts +2 -0
  246. package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts.map +1 -1
  247. package/dist/components/TreeSelect/styles.css +5 -57
  248. package/dist/components/TreeSelect/types.d.ts +3 -0
  249. package/dist/components/TreeSelect/types.d.ts.map +1 -1
  250. package/dist/components/TreeTable/styles.css +1 -1
  251. package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts +7 -3
  252. package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts.map +1 -1
  253. package/dist/components/VirtualScroller/index.d.ts +1 -1
  254. package/dist/components/VirtualScroller/index.d.ts.map +1 -1
  255. package/dist/components/VirtualScroller/types.d.ts +5 -0
  256. package/dist/components/VirtualScroller/types.d.ts.map +1 -1
  257. package/dist/{config-BdK5ccNT.js → config-CapALqt3.js} +10 -2
  258. package/dist/config-provider/index.js +5 -3
  259. package/dist/config-provider/style.css +441 -75
  260. package/dist/confirm-dialog/index.js +87 -74
  261. package/dist/confirm-dialog/style.css +441 -45
  262. package/dist/confirm-popup/index.js +82 -68
  263. package/dist/confirm-popup/style.css +251 -41
  264. package/dist/context-menu/index.js +112 -99
  265. package/dist/context-menu/style.css +256 -44
  266. package/dist/data-view/index.js +4 -4
  267. package/dist/data-view/style.css +253 -43
  268. package/dist/date-picker/index.js +166 -152
  269. package/dist/date-picker/style.css +316 -62
  270. package/dist/dialog/index.js +76 -63
  271. package/dist/dialog/style.css +441 -45
  272. package/dist/divider/style.css +250 -40
  273. package/dist/dock/index.js +3 -3
  274. package/dist/dock/style.css +251 -41
  275. package/dist/drawer/index.js +72 -61
  276. package/dist/drawer/style.css +440 -45
  277. package/dist/dropdown/index.js +145 -131
  278. package/dist/dropdown/style.css +258 -44
  279. package/dist/empty/index.js +3 -3
  280. package/dist/empty/style.css +257 -47
  281. package/dist/fieldset/index.js +19 -19
  282. package/dist/fieldset/style.css +268 -47
  283. package/dist/file-upload/index.js +3 -3
  284. package/dist/file-upload/style.css +251 -41
  285. package/dist/flex/index.js +2 -2
  286. package/dist/flex/style.css +250 -40
  287. package/dist/float-label/index.js +1 -1
  288. package/dist/float-label/style.css +269 -47
  289. package/dist/fluid/index.js +1 -1
  290. package/dist/fluid/style.css +250 -40
  291. package/dist/form/index.js +2 -2
  292. package/dist/form/style.css +271 -40
  293. package/dist/gallery/index.js +4 -4
  294. package/dist/gallery/style.css +254 -44
  295. package/dist/grid/index.js +1 -1
  296. package/dist/grid/style.css +250 -40
  297. package/dist/icon/index.js +212 -2
  298. package/dist/icon/style.css +251 -41
  299. package/dist/{icon-xUOyawgJ.js → icon-DWXkh-RM.js} +1 -1
  300. package/dist/icon-field/index.js +42 -8
  301. package/dist/icon-field/style.css +913 -71
  302. package/dist/icon-field/style.js +1 -0
  303. package/dist/index.d.ts +7 -5
  304. package/dist/index.d.ts.map +1 -1
  305. package/dist/index.js +5336 -4326
  306. package/dist/inplace/index.js +1 -1
  307. package/dist/inplace/style.css +250 -40
  308. package/dist/input/index.js +79 -81
  309. package/dist/input/style.css +442 -76
  310. package/dist/input-color/index.js +3 -3
  311. package/dist/input-color/style.css +250 -40
  312. package/dist/input-group/index.js +1 -1
  313. package/dist/input-group/style.css +250 -40
  314. package/dist/input-number/index.js +4 -4
  315. package/dist/input-number/style.css +354 -81
  316. package/dist/input-otp/index.js +3 -3
  317. package/dist/input-otp/style.css +250 -40
  318. package/dist/input-password/index.js +86 -85
  319. package/dist/input-password/style.css +330 -120
  320. package/dist/input-tags/index.js +4 -4
  321. package/dist/input-tags/style.css +254 -42
  322. package/dist/knob/index.js +1 -1
  323. package/dist/knob/style.css +250 -40
  324. package/dist/label/index.js +1 -1
  325. package/dist/label/style.css +250 -40
  326. package/dist/layout/index.js +65 -88
  327. package/dist/layout/style.css +283 -98
  328. package/dist/listbox/index.js +142 -87
  329. package/dist/listbox/style.css +291 -43
  330. package/dist/listbox/style.js +1 -0
  331. package/dist/loading/index.js +195 -156
  332. package/dist/loading/style.css +275 -57
  333. package/dist/{locale-B36KH7c3.js → locale-Bzm2nbEp.js} +1 -1
  334. package/dist/mega-menu/index.js +131 -119
  335. package/dist/mega-menu/style.css +252 -41
  336. package/dist/menu/index.js +278 -261
  337. package/dist/menu/style.css +268 -54
  338. package/dist/menubar/index.js +145 -133
  339. package/dist/menubar/style.css +258 -44
  340. package/dist/message/index.js +120 -107
  341. package/dist/message/style.css +251 -41
  342. package/dist/meter-group/index.js +1 -1
  343. package/dist/meter-group/style.css +252 -42
  344. package/dist/order-list/index.js +4 -4
  345. package/dist/order-list/style.css +251 -41
  346. package/dist/page/index.js +3 -3
  347. package/dist/page/style.css +251 -41
  348. package/dist/pagination/index.js +1 -1
  349. package/dist/pagination/style.css +251 -41
  350. package/dist/panel/index.js +31 -31
  351. package/dist/panel/style.css +272 -47
  352. package/dist/pick-list/index.js +4 -4
  353. package/dist/pick-list/style.css +251 -41
  354. package/dist/popover/index.js +1 -1
  355. package/dist/popover/style.css +250 -40
  356. package/dist/progress-bar/index.js +5 -2
  357. package/dist/progress-bar/style.css +280 -48
  358. package/dist/progress-spinner/index.js +1 -1
  359. package/dist/progress-spinner/style.css +253 -43
  360. package/dist/radio/index.js +2 -2
  361. package/dist/radio/style.css +250 -40
  362. package/dist/rating/index.js +4 -4
  363. package/dist/rating/style.css +251 -41
  364. package/dist/result/index.js +3 -3
  365. package/dist/result/style.css +268 -58
  366. package/dist/scroll-top/index.js +4 -4
  367. package/dist/scroll-top/style.css +254 -44
  368. package/dist/scrollbar/index.js +1 -1
  369. package/dist/scrollbar/style.css +253 -43
  370. package/dist/select/index.js +247 -152
  371. package/dist/select/style.css +477 -138
  372. package/dist/select/style.js +2 -0
  373. package/dist/select-button/index.js +2 -2
  374. package/dist/select-button/style.css +250 -40
  375. package/dist/shared/FlyoutSubmenu.vue.d.ts.map +1 -1
  376. package/dist/shared/componentDefaults.d.ts +62 -0
  377. package/dist/shared/componentDefaults.d.ts.map +1 -1
  378. package/dist/shared/config.d.ts +13 -2
  379. package/dist/shared/config.d.ts.map +1 -1
  380. package/dist/shared/styles/control-suffix.css +14 -3
  381. package/dist/shared/styles/select-overlay.css +167 -0
  382. package/dist/shared/useFloatingViewportSync.d.ts +10 -0
  383. package/dist/shared/useFloatingViewportSync.d.ts.map +1 -0
  384. package/dist/shared/usePauseOffscreen.d.ts +14 -0
  385. package/dist/shared/usePauseOffscreen.d.ts.map +1 -0
  386. package/dist/sidebar/index.js +4 -4
  387. package/dist/sidebar/style.css +259 -51
  388. package/dist/skeleton/index.js +34 -19
  389. package/dist/skeleton/style.css +250 -40
  390. package/dist/slider/index.js +3 -3
  391. package/dist/slider/style.css +250 -40
  392. package/dist/space/index.js +2 -2
  393. package/dist/space/style.css +250 -40
  394. package/dist/speed-dial/index.js +112 -98
  395. package/dist/speed-dial/style.css +251 -41
  396. package/dist/split-button/index.js +106 -92
  397. package/dist/split-button/style.css +251 -41
  398. package/dist/splitter/index.js +94 -80
  399. package/dist/splitter/style.css +262 -40
  400. package/dist/status/index.js +30 -26
  401. package/dist/status/style.css +269 -57
  402. package/dist/stepper/index.js +2 -2
  403. package/dist/stepper/style.css +251 -41
  404. package/dist/styles/base.css +154 -28
  405. package/dist/styles.css +1 -1
  406. package/dist/switch/index.js +2 -2
  407. package/dist/switch/style.css +250 -40
  408. package/dist/table/index.js +11 -15
  409. package/dist/table/style.css +265 -55
  410. package/dist/tabs/index.js +4 -4
  411. package/dist/tabs/style.css +254 -44
  412. package/dist/tag/index.js +3 -3
  413. package/dist/tag/style.css +255 -43
  414. package/dist/terminal/index.js +3 -3
  415. package/dist/terminal/style.css +250 -40
  416. package/dist/textarea/index.js +4 -4
  417. package/dist/textarea/style.css +266 -42
  418. package/dist/theme/index.d.ts +4 -0
  419. package/dist/theme/index.d.ts.map +1 -1
  420. package/dist/theme/motionPresets.d.ts +30 -0
  421. package/dist/theme/motionPresets.d.ts.map +1 -0
  422. package/dist/theme/styles.css +96 -12
  423. package/dist/theme/tokens.d.ts +17 -0
  424. package/dist/theme/tokens.d.ts.map +1 -1
  425. package/dist/theme/useMotion.d.ts.map +1 -1
  426. package/dist/theme/useMotionTransition.d.ts +19 -0
  427. package/dist/theme/useMotionTransition.d.ts.map +1 -0
  428. package/dist/tiered-menu/index.js +81 -67
  429. package/dist/tiered-menu/style.css +256 -44
  430. package/dist/timeline/index.js +3 -3
  431. package/dist/timeline/style.css +254 -44
  432. package/dist/toast/index.js +49 -36
  433. package/dist/toast/style.css +251 -41
  434. package/dist/toggle-button/index.js +3 -3
  435. package/dist/toggle-button/style.css +251 -41
  436. package/dist/toolbar/index.js +1 -1
  437. package/dist/toolbar/style.css +251 -40
  438. package/dist/tooltip/index.js +1 -1
  439. package/dist/tooltip/style.css +250 -40
  440. package/dist/tree/index.js +5 -8
  441. package/dist/tree/style.css +252 -42
  442. package/dist/tree-select/index.js +227 -203
  443. package/dist/tree-select/style.css +442 -105
  444. package/dist/tree-select/style.js +1 -0
  445. package/dist/tree-table/index.js +4 -4
  446. package/dist/tree-table/style.css +252 -42
  447. package/dist/{useComponentAttrs-BTYEe61P.js → useComponentAttrs-e-5QAjdw.js} +1 -1
  448. package/dist/useFloatingViewportSync-DZdJ7W8n.js +19 -0
  449. package/dist/useMotionTransition-Bxnnb_9u.js +49 -0
  450. package/dist/usePauseOffscreen-BIikV_gj.js +25 -0
  451. package/dist/virtual-scroller/index.js +2 -56
  452. package/dist/virtual-scroller/style.css +253 -43
  453. package/package.json +2 -1
  454. package/dist/FlyoutSubmenu-B_bkgKag.js +0 -49
  455. package/dist/Icon-DfpIfo2L.js +0 -521
  456. package/dist/Popover-Dq_p0vib.js +0 -166
  457. package/dist/ProgressSpinner-DuBpPkna.js +0 -90
  458. package/dist/Tooltip-CU1xFt_N.js +0 -93
@@ -0,0 +1,179 @@
1
+ import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
2
+ import { t } from "./useMotionTransition-Bxnnb_9u.js";
3
+ import { n, t as r } from "./overlay-oR-5MDuE.js";
4
+ import { t as i } from "./overlayPlacement-Cd20JTD_.js";
5
+ import { t as a } from "./useMId-BXFYayPP.js";
6
+ import { c as o } from "./config-CapALqt3.js";
7
+ import { Teleport as s, Transition as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeStyle as y, onBeforeUnmount as ee, openBlock as b, ref as x, renderSlot as S, unref as C, useAttrs as te, watch as ne, withCtx as re } from "vue";
8
+ //#region src/components/Popover/Popover.vue?vue&type=script&setup=true&lang.ts
9
+ var ie = ["aria-expanded", "aria-controls"], ae = ["id"], w = /* @__PURE__ */ h({
10
+ inheritAttrs: !1,
11
+ __name: "Popover",
12
+ props: {
13
+ pt: {},
14
+ modelValue: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ disabled: {
19
+ type: Boolean,
20
+ default: !1
21
+ },
22
+ placement: { default: "bottom" },
23
+ trigger: { default: "manual" },
24
+ showDelay: { default: 0 },
25
+ hideDelay: { default: 200 },
26
+ teleport: {
27
+ type: Boolean,
28
+ default: !0
29
+ },
30
+ appendTo: {},
31
+ transition: {
32
+ type: [String, Boolean],
33
+ default: void 0
34
+ }
35
+ },
36
+ emits: [
37
+ "update:modelValue",
38
+ "show",
39
+ "hide"
40
+ ],
41
+ setup(h, { expose: w, emit: T }) {
42
+ let E = h, D = T, O = te(), { rootAttrs: k } = e(O, () => E.pt), A = o(), { transitionName: j, transitionCss: M } = t({
43
+ role: "popup",
44
+ local: () => E.transition,
45
+ componentName: "Popover",
46
+ fallback: "popover"
47
+ }), N = a(), P = x(null), F = x(null), I = x(null), L = x({}), R = l(() => n(E, A.value.appendTo)), z = l(() => r(E, A.value.appendTo)), B, V;
48
+ function H(e) {
49
+ e && E.disabled || D("update:modelValue", e);
50
+ }
51
+ function U() {
52
+ H(!0);
53
+ }
54
+ function W() {
55
+ H(!1);
56
+ }
57
+ function G() {
58
+ H(!E.modelValue);
59
+ }
60
+ function K() {
61
+ H(!1);
62
+ }
63
+ w({
64
+ show: U,
65
+ hide: W,
66
+ toggle: G
67
+ });
68
+ function q() {
69
+ B && clearTimeout(B), V && clearTimeout(V), B = void 0, V = void 0;
70
+ }
71
+ function J() {
72
+ E.disabled || E.trigger !== "click" || H(!E.modelValue);
73
+ }
74
+ function oe() {
75
+ if (!(E.disabled || E.trigger !== "hover")) {
76
+ if (q(), E.showDelay > 0) {
77
+ B = setTimeout(H, E.showDelay, !0);
78
+ return;
79
+ }
80
+ H(!0);
81
+ }
82
+ }
83
+ function se() {
84
+ if (E.trigger === "hover") {
85
+ if (q(), E.hideDelay > 0) {
86
+ V = setTimeout(H, E.hideDelay, !1);
87
+ return;
88
+ }
89
+ H(!1);
90
+ }
91
+ }
92
+ function ce() {
93
+ E.trigger === "hover" && q();
94
+ }
95
+ function le() {
96
+ if (E.trigger === "hover") {
97
+ if (q(), E.hideDelay > 0) {
98
+ V = setTimeout(H, E.hideDelay, !1);
99
+ return;
100
+ }
101
+ H(!1);
102
+ }
103
+ }
104
+ function ue() {
105
+ if (!(E.disabled || E.trigger !== "focus")) {
106
+ if (q(), E.showDelay > 0) {
107
+ B = setTimeout(H, E.showDelay, !0);
108
+ return;
109
+ }
110
+ H(!0);
111
+ }
112
+ }
113
+ function Y() {
114
+ if (E.trigger === "focus") {
115
+ if (q(), E.hideDelay > 0) {
116
+ V = setTimeout(H, E.hideDelay, !1);
117
+ return;
118
+ }
119
+ H(!1);
120
+ }
121
+ }
122
+ function X() {
123
+ !z.value || !F.value || (L.value = i(F.value.getBoundingClientRect(), E.placement));
124
+ }
125
+ function Z(e) {
126
+ let t = e.target;
127
+ P.value?.contains(t) || I.value?.contains(t) || K();
128
+ }
129
+ function Q(e) {
130
+ e.key === "Escape" && K();
131
+ }
132
+ function $() {
133
+ E.modelValue && X();
134
+ }
135
+ return ne(() => E.modelValue, async (e, t) => {
136
+ e ? (document.addEventListener("click", Z), document.addEventListener("keydown", Q), z.value && (window.addEventListener("resize", $), window.addEventListener("scroll", $, !0)), D("show"), await _(), X()) : (document.removeEventListener("click", Z), document.removeEventListener("keydown", Q), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0), t && D("hide"));
137
+ }, { immediate: !0 }), ee(() => {
138
+ q(), document.removeEventListener("click", Z), document.removeEventListener("keydown", Q), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0);
139
+ }), (e, t) => (b(), f("span", g({
140
+ ref_key: "root",
141
+ ref: P
142
+ }, C(k), {
143
+ class: "m-popover",
144
+ onMouseenter: oe,
145
+ onMouseleave: se
146
+ }), [p("span", {
147
+ ref_key: "trigger",
148
+ ref: F,
149
+ class: "m-popover__trigger",
150
+ "aria-haspopup": "dialog",
151
+ "aria-expanded": h.modelValue,
152
+ "aria-controls": C(N),
153
+ onClick: J,
154
+ onFocusin: ue,
155
+ onFocusout: Y
156
+ }, [S(e.$slots, "default")], 40, ie), (b(), u(s, {
157
+ to: R.value.to,
158
+ disabled: R.value.disabled
159
+ }, [m(c, {
160
+ name: C(j),
161
+ css: C(M)
162
+ }, {
163
+ default: re(() => [h.modelValue ? (b(), f("div", {
164
+ key: 0,
165
+ id: C(N),
166
+ ref_key: "panel",
167
+ ref: I,
168
+ class: v(["m-popover__content", [`m-popover__content--${h.placement}`, { "m-popover__content--teleported": z.value }]]),
169
+ style: y(z.value ? L.value : void 0),
170
+ role: "dialog",
171
+ onMouseenter: ce,
172
+ onMouseleave: le
173
+ }, [S(e.$slots, "content")], 46, ae)) : d("", !0)]),
174
+ _: 3
175
+ }, 8, ["name", "css"])], 8, ["to", "disabled"]))], 16));
176
+ }
177
+ });
178
+ //#endregion
179
+ export { w as t };
@@ -0,0 +1,105 @@
1
+ import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
2
+ import { i as t } from "./types-DGuu4Eg4.js";
3
+ import { t as n } from "./usePauseOffscreen-BIikV_gj.js";
4
+ import { n as r } from "./locale-Bzm2nbEp.js";
5
+ import { computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, mergeProps as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as f, openBlock as p, ref as m, renderSlot as h, toDisplayString as g, unref as _, useAttrs as v, useSlots as y, watch as b } from "vue";
6
+ //#region src/components/ProgressSpinner/ProgressSpinner.vue?vue&type=script&setup=true&lang.ts
7
+ var x = ["aria-busy"], S = ["inert"], C = {
8
+ key: 0,
9
+ class: "m-progress-spinner-wrap__overlay"
10
+ }, w = ["aria-label"], T = ["stroke-width"], E = {
11
+ key: 0,
12
+ class: "m-progress-spinner__description"
13
+ }, D = ["aria-label"], O = ["stroke-width"], k = /* @__PURE__ */ c({
14
+ inheritAttrs: !1,
15
+ __name: "ProgressSpinner",
16
+ props: {
17
+ pt: {},
18
+ strokeWidth: { default: "2" },
19
+ animationDuration: { default: "1s" },
20
+ ariaLabel: {},
21
+ show: {
22
+ type: Boolean,
23
+ default: !0
24
+ },
25
+ delay: { default: 0 },
26
+ size: {},
27
+ description: {}
28
+ },
29
+ setup(c) {
30
+ let k = c, A = v(), { rootAttrs: j } = e(A, () => k.pt), M = y(), N = r(), P = i(() => k.ariaLabel ?? N.value.loading), F = i(() => !!M.default), I = i(() => t(k.size)), L = m(k.show && k.delay <= 0), R = m(null), { pauseAttrs: z } = n(R, () => L.value), B = null;
31
+ function V() {
32
+ B !== null && (clearTimeout(B), B = null);
33
+ }
34
+ b(() => [
35
+ k.show,
36
+ k.delay,
37
+ F.value
38
+ ], ([e, t]) => {
39
+ if (V(), !e) {
40
+ L.value = !1;
41
+ return;
42
+ }
43
+ if (!t) {
44
+ L.value = !0;
45
+ return;
46
+ }
47
+ L.value = !1, B = setTimeout(() => {
48
+ L.value = !0, B = null;
49
+ }, t);
50
+ }, { immediate: !0 }), f(V);
51
+ let H = i(() => ({ animationDuration: k.animationDuration })), U = i(() => ({
52
+ "m-progress-spinner--small": I.value === "small",
53
+ "m-progress-spinner--large": I.value === "large"
54
+ }));
55
+ return (e, t) => F.value ? (p(), o("div", l({
56
+ key: 0,
57
+ ref_key: "rootRef",
58
+ ref: R
59
+ }, {
60
+ ..._(j),
61
+ ..._(z)
62
+ }, {
63
+ class: ["m-progress-spinner-wrap", { "m-progress-spinner-wrap--active": L.value }],
64
+ "aria-busy": L.value || void 0
65
+ }), [s("div", {
66
+ class: "m-progress-spinner-wrap__content",
67
+ inert: L.value || void 0
68
+ }, [h(e.$slots, "default")], 8, S), L.value ? (p(), o("div", C, [(p(), o("svg", {
69
+ class: u(["m-progress-spinner", U.value]),
70
+ viewBox: "0 0 50 50",
71
+ role: "status",
72
+ "aria-label": P.value,
73
+ style: d(H.value)
74
+ }, [s("circle", {
75
+ class: "m-progress-spinner__circle",
76
+ cx: "25",
77
+ cy: "25",
78
+ r: "20",
79
+ fill: "none",
80
+ "stroke-width": c.strokeWidth
81
+ }, null, 8, T)], 14, w)), c.description ? (p(), o("p", E, g(c.description), 1)) : a("", !0)])) : a("", !0)], 16, x)) : (p(), o("svg", l({
82
+ key: 1,
83
+ ref_key: "rootRef",
84
+ ref: R
85
+ }, {
86
+ ..._(j),
87
+ ..._(z)
88
+ }, {
89
+ class: ["m-progress-spinner", U.value],
90
+ viewBox: "0 0 50 50",
91
+ role: "status",
92
+ "aria-label": P.value,
93
+ style: H.value
94
+ }), [s("circle", {
95
+ class: "m-progress-spinner__circle",
96
+ cx: "25",
97
+ cy: "25",
98
+ r: "20",
99
+ fill: "none",
100
+ "stroke-width": c.strokeWidth
101
+ }, null, 8, O)], 16, D));
102
+ }
103
+ });
104
+ //#endregion
105
+ export { k as t };
@@ -1,6 +1,6 @@
1
- import { t as e } from "./useComponentAttrs-BTYEe61P.js";
1
+ import { r as e } from "./useComponentAttrs-e-5QAjdw.js";
2
2
  import { t } from "./useMId-BXFYayPP.js";
3
- import { o as n } from "./config-BdK5ccNT.js";
3
+ import { o as n } from "./config-CapALqt3.js";
4
4
  import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, inject as l, mergeProps as u, openBlock as d, renderSlot as f, toDisplayString as p, unref as m, useAttrs as h } from "vue";
5
5
  //#region src/components/Radio/types.ts
6
6
  var g = Symbol("muRadioGroup"), _ = ["for"], v = [
@@ -1,4 +1,4 @@
1
- import { t as e } from "./Scrollbar-BYnCO8fv.js";
1
+ import { t as e } from "./Scrollbar-DTeJ8P5b.js";
2
2
  import { createBlock as t, defineComponent as n, normalizeClass as r, openBlock as i, ref as a, renderSlot as o, withCtx as s } from "vue";
3
3
  //#endregion
4
4
  //#region src/shared/ScrollBody.vue
@@ -1,4 +1,4 @@
1
- import { r as e } from "./useComponentAttrs-BTYEe61P.js";
1
+ import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
2
2
  import { t } from "./useMId-BXFYayPP.js";
3
3
  import { Fragment as n, Transition as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, inject as ee, mergeProps as d, nextTick as f, normalizeClass as p, normalizeStyle as m, onActivated as h, onBeforeUnmount as te, onMounted as g, onUpdated as _, openBlock as v, provide as y, reactive as b, ref as x, renderSlot as S, resolveDynamicComponent as C, unref as w, useAttrs as ne, vShow as T, watch as E, withCtx as re, withDirectives as D } from "vue";
4
4
  //#region src/components/Scrollbar/constants.ts
@@ -337,7 +337,7 @@ var M = ["aria-orientation", "aria-controls"], N = /* @__PURE__ */ u({
337
337
  Z(), we();
338
338
  });
339
339
  }), _(() => {
340
- T.native || Q();
340
+ T.native || (T.noresize || typeof ResizeObserver > "u") && Q();
341
341
  }), h(() => {
342
342
  F.value && (F.value.scrollTop = W, F.value.scrollLeft = G);
343
343
  }), te(() => {
@@ -0,0 +1,105 @@
1
+ import { t as e } from "./useMotionTransition-Bxnnb_9u.js";
2
+ import { n as t, t as n } from "./overlay-oR-5MDuE.js";
3
+ import { n as r, t as i } from "./overlayPlacement-Cd20JTD_.js";
4
+ import { t as a } from "./useFloatingViewportSync-DZdJ7W8n.js";
5
+ import { t as o } from "./useMId-BXFYayPP.js";
6
+ import { c as s } from "./config-CapALqt3.js";
7
+ import { Teleport as c, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createVNode as m, defineComponent as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeUnmount as y, openBlock as b, ref as x, renderSlot as S, toDisplayString as C, unref as w, withCtx as T } from "vue";
8
+ //#region src/components/Tooltip/Tooltip.vue?vue&type=script&setup=true&lang.ts
9
+ var E = ["aria-describedby"], D = ["id"], O = /* @__PURE__ */ h({
10
+ __name: "Tooltip",
11
+ props: {
12
+ content: {},
13
+ placement: { default: "top" },
14
+ disabled: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ showDelay: { default: 0 },
19
+ hideDelay: { default: 0 },
20
+ maxWidth: {},
21
+ teleport: {
22
+ type: Boolean,
23
+ default: !0
24
+ },
25
+ appendTo: {},
26
+ transition: {
27
+ type: [String, Boolean],
28
+ default: void 0
29
+ }
30
+ },
31
+ setup(h) {
32
+ let O = h, k = s(), { transitionName: A, transitionCss: j } = e({
33
+ role: "tooltip",
34
+ local: () => O.transition,
35
+ componentName: "Tooltip",
36
+ fallback: "fade"
37
+ }), M = x(null), N = o(), P = x(!1), F = x({}), I = u(() => t(O, k.value.appendTo)), L = u(() => n(O, k.value.appendTo)), R = null, z = null;
38
+ function B() {
39
+ R !== null && (clearTimeout(R), R = null), z !== null && (clearTimeout(z), z = null);
40
+ }
41
+ function V() {
42
+ !L.value || !M.value || (F.value = i(M.value.getBoundingClientRect(), O.placement, { maxWidth: r(O.maxWidth) }));
43
+ }
44
+ function H() {
45
+ P.value = !0, g(V);
46
+ }
47
+ function U() {
48
+ if (!O.disabled) {
49
+ if (B(), O.showDelay > 0) {
50
+ R = setTimeout(() => {
51
+ H(), R = null;
52
+ }, O.showDelay);
53
+ return;
54
+ }
55
+ H();
56
+ }
57
+ }
58
+ function W() {
59
+ if (B(), O.hideDelay > 0) {
60
+ z = setTimeout(() => {
61
+ P.value = !1, z = null;
62
+ }, O.hideDelay);
63
+ return;
64
+ }
65
+ P.value = !1;
66
+ }
67
+ function G() {
68
+ P.value && V();
69
+ }
70
+ a(() => P.value && L.value, G), y(() => {
71
+ B();
72
+ });
73
+ let K = u(() => {
74
+ let e = r(O.maxWidth);
75
+ return L.value ? F.value : e ? { maxWidth: e } : void 0;
76
+ });
77
+ return (e, t) => (b(), p("span", {
78
+ ref_key: "root",
79
+ ref: M,
80
+ class: "m-tooltip",
81
+ "aria-describedby": P.value ? w(N) : void 0,
82
+ onMouseenter: U,
83
+ onMouseleave: W,
84
+ onFocusin: U,
85
+ onFocusout: W
86
+ }, [S(e.$slots, "default"), (b(), d(c, {
87
+ to: I.value.to,
88
+ disabled: I.value.disabled
89
+ }, [m(l, {
90
+ name: w(A),
91
+ css: w(j)
92
+ }, {
93
+ default: T(() => [P.value ? (b(), p("span", {
94
+ key: 0,
95
+ id: w(N),
96
+ class: _(["m-tooltip__content", [`m-tooltip__content--${h.placement}`, { "m-tooltip__content--teleported": L.value }]]),
97
+ style: v(K.value),
98
+ role: "tooltip"
99
+ }, C(h.content), 15, D)) : f("", !0)]),
100
+ _: 1
101
+ }, 8, ["name", "css"])], 8, ["to", "disabled"]))], 40, E));
102
+ }
103
+ });
104
+ //#endregion
105
+ export { O as t };
@@ -0,0 +1,75 @@
1
+ import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
2
+ import { t } from "./ScrollBody-5hUnHj_M.js";
3
+ import { Fragment as n, computed as r, createBlock as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, mergeProps as l, normalizeStyle as u, openBlock as d, ref as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, useAttrs as _, withCtx as v } from "vue";
4
+ //#region src/components/VirtualScroller/VirtualScroller.vue?vue&type=script&setup=true&lang.ts
5
+ var y = ["data-index"], b = /* @__PURE__ */ c({
6
+ inheritAttrs: !1,
7
+ __name: "VirtualScroller",
8
+ props: {
9
+ pt: {},
10
+ items: {},
11
+ itemSize: {},
12
+ height: { default: 240 },
13
+ buffer: { default: 3 },
14
+ role: {},
15
+ ariaLabel: {}
16
+ },
17
+ setup(c, { expose: b }) {
18
+ let x = c, S = _(), { rootAttrs: C } = e(S, () => x.pt), w = f(null), T = f(0), E = r(() => {
19
+ if (typeof x.height == "number") return x.height;
20
+ let e = Number.parseFloat(x.height);
21
+ return Number.isFinite(e) ? e : 240;
22
+ }), D = r(() => x.items.length * x.itemSize), O = r(() => Math.max(0, Math.floor(T.value / x.itemSize) - x.buffer)), k = r(() => {
23
+ let e = Math.ceil(E.value / x.itemSize) + x.buffer * 2;
24
+ return Math.min(x.items.length, O.value + e);
25
+ }), A = r(() => x.items.slice(O.value, k.value).map((e, t) => ({
26
+ item: e,
27
+ index: O.value + t
28
+ }))), j = r(() => O.value * x.itemSize), M = r(() => ({ height: typeof x.height == "number" ? `${x.height}px` : x.height }));
29
+ function N(e) {
30
+ T.value = e.scrollTop;
31
+ }
32
+ function P(e) {
33
+ if (e < 0 || e >= x.items.length) return;
34
+ let t = x.itemSize, n = E.value, r = e * t, i = r + t, a = T.value, o = a;
35
+ if (r < a) o = r;
36
+ else if (i > a + n) o = i - n;
37
+ else return;
38
+ o = Math.max(0, Math.min(o, Math.max(0, D.value - n))), T.value = o, w.value?.setScrollTop(o);
39
+ }
40
+ return b({ scrollToIndex: P }), (e, r) => (d(), i(t, l({
41
+ ref_key: "scrollBody",
42
+ ref: w
43
+ }, g(C), {
44
+ "root-class": "m-virtualscroller m-virtualscroller__scrollbar",
45
+ "wrap-class": "m-virtualscroller__scroll",
46
+ "wrap-style": M.value,
47
+ role: c.role,
48
+ "aria-label": c.ariaLabel,
49
+ onScroll: N
50
+ }), {
51
+ default: v(() => [o("div", {
52
+ class: "m-virtualscroller__spacer",
53
+ style: u({ height: `${D.value}px` })
54
+ }, [o("div", {
55
+ class: "m-virtualscroller__content",
56
+ style: u({ transform: `translateY(${j.value}px)` })
57
+ }, [(d(!0), a(n, null, p(A.value, (t) => (d(), a("div", {
58
+ key: t.index,
59
+ class: "m-virtualscroller__item",
60
+ style: u({ height: `${c.itemSize}px` }),
61
+ "data-index": t.index
62
+ }, [m(e.$slots, "item", {
63
+ item: t.item,
64
+ index: t.index
65
+ }, () => [s(h(t.item), 1)])], 12, y))), 128))], 4)], 4)]),
66
+ _: 3
67
+ }, 16, [
68
+ "wrap-style",
69
+ "role",
70
+ "aria-label"
71
+ ]));
72
+ }
73
+ });
74
+ //#endregion
75
+ export { b as t };
@@ -1,15 +1,15 @@
1
- import { r as e } from "../useComponentAttrs-BTYEe61P.js";
1
+ import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
2
  import { t } from "../useControllable-elmWaz23.js";
3
3
  import "./style.js";
4
- import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, mergeProps as c, normalizeClass as l, openBlock as u, renderList as d, renderSlot as f, toDisplayString as p, unref as m, useAttrs as h, vShow as g, withDirectives as _, withModifiers as v } from "vue";
4
+ import { Fragment as n, Transition as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, mergeProps as u, normalizeClass as d, openBlock as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, useAttrs as _, vShow as v, withCtx as y, withDirectives as b, withModifiers as x } from "vue";
5
5
  //#region src/components/Accordion/Accordion.vue?vue&type=script&setup=true&lang.ts
6
- var y = [
6
+ var S = [
7
7
  "id",
8
8
  "aria-expanded",
9
9
  "aria-controls",
10
10
  "disabled",
11
11
  "onClick"
12
- ], b = { class: "m-accordion__header-text" }, x = ["id", "aria-labelledby"], S = /* @__PURE__ */ s({
12
+ ], C = { class: "m-accordion__header-text" }, w = ["id", "aria-labelledby"], T = { class: "m-accordion__content" }, E = /* @__PURE__ */ l({
13
13
  inheritAttrs: !1,
14
14
  __name: "Accordion",
15
15
  props: {
@@ -23,59 +23,62 @@ var y = [
23
23
  tabs: {}
24
24
  },
25
25
  emits: ["update:modelValue"],
26
- setup(s, { emit: S }) {
27
- let C = s, w = S, T = h(), { rootAttrs: E } = e(T, () => C.pt);
28
- function D() {
29
- return C.defaultValue === void 0 ? C.multiple ? [] : "" : C.defaultValue;
26
+ setup(l, { emit: E }) {
27
+ let D = l, O = E, k = _(), { rootAttrs: A } = e(k, () => D.pt);
28
+ function j() {
29
+ return D.defaultValue === void 0 ? D.multiple ? [] : "" : D.defaultValue;
30
30
  }
31
- let { value: O, setValue: k } = t({
32
- controlled: () => C.modelValue,
33
- defaultValue: D()
34
- }, (e) => w("update:modelValue", e)), A = r(() => {
35
- let e = O.value;
36
- return C.multiple ? Array.isArray(e) ? e : e ? [e] : [] : Array.isArray(e) ? e[0] ? [e[0]] : [] : e ? [e] : [];
31
+ let { value: M, setValue: N } = t({
32
+ controlled: () => D.modelValue,
33
+ defaultValue: j()
34
+ }, (e) => O("update:modelValue", e)), P = i(() => {
35
+ let e = M.value;
36
+ return D.multiple ? Array.isArray(e) ? e : e ? [e] : [] : Array.isArray(e) ? e[0] ? [e[0]] : [] : e ? [e] : [];
37
37
  });
38
- function j(e) {
39
- return A.value.includes(e);
38
+ function F(e) {
39
+ return P.value.includes(e);
40
40
  }
41
- function M(e) {
41
+ function I(e) {
42
42
  return `m-accordion-panel-${e}`;
43
43
  }
44
- function N(e) {
44
+ function L(e) {
45
45
  return `m-accordion-header-${e}`;
46
46
  }
47
- function P(e, t) {
47
+ function R(e, t) {
48
48
  if (!t) {
49
- if (C.multiple) {
50
- let t = [...A.value], n = t.indexOf(e);
51
- n >= 0 ? t.splice(n, 1) : t.push(e), k(t);
49
+ if (D.multiple) {
50
+ let t = [...P.value], n = t.indexOf(e);
51
+ n >= 0 ? t.splice(n, 1) : t.push(e), N(t);
52
52
  return;
53
53
  }
54
- k(j(e) ? "" : e);
54
+ N(F(e) ? "" : e);
55
55
  }
56
56
  }
57
- return (e, t) => (u(), a("div", c(m(E), { class: "m-accordion" }), [(u(!0), a(n, null, d(s.tabs, (n) => (u(), a("div", {
57
+ return (e, t) => (f(), o("div", u(g(A), { class: "m-accordion" }), [(f(!0), o(n, null, p(l.tabs, (n) => (f(), o("div", {
58
58
  key: n.value,
59
59
  class: "m-accordion__tab"
60
- }, [o("button", {
61
- id: N(n.value),
60
+ }, [s("button", {
61
+ id: L(n.value),
62
62
  type: "button",
63
- class: l(["m-accordion__header", { "m-accordion__header--active": j(n.value) }]),
64
- "aria-expanded": j(n.value),
65
- "aria-controls": M(n.value),
63
+ class: d(["m-accordion__header", { "m-accordion__header--active": F(n.value) }]),
64
+ "aria-expanded": F(n.value),
65
+ "aria-controls": I(n.value),
66
66
  disabled: n.disabled,
67
- onClick: (e) => P(n.value, n.disabled)
68
- }, [o("span", b, p(n.header), 1), e.$slots.extra ? (u(), a("span", {
67
+ onClick: (e) => R(n.value, n.disabled)
68
+ }, [s("span", C, h(n.header), 1), e.$slots.extra ? (f(), o("span", {
69
69
  key: 0,
70
70
  class: "m-accordion__header-extra",
71
- onClick: t[0] ||= v(() => {}, ["stop"])
72
- }, [f(e.$slots, "extra", { tab: n })])) : i("", !0)], 10, y), _(o("div", {
73
- id: M(n.value),
74
- class: "m-accordion__content",
75
- role: "region",
76
- "aria-labelledby": N(n.value)
77
- }, [f(e.$slots, n.value)], 8, x), [[g, j(n.value)]])]))), 128))], 16));
71
+ onClick: t[0] ||= x(() => {}, ["stop"])
72
+ }, [m(e.$slots, "extra", { tab: n })])) : a("", !0)], 10, S), c(r, { name: "m-accordion-collapse" }, {
73
+ default: y(() => [b(s("div", {
74
+ id: I(n.value),
75
+ class: "m-accordion__collapse",
76
+ role: "region",
77
+ "aria-labelledby": L(n.value)
78
+ }, [s("div", T, [m(e.$slots, n.value)])], 8, w), [[v, F(n.value)]])]),
79
+ _: 2
80
+ }, 1024)]))), 128))], 16));
78
81
  }
79
82
  });
80
83
  //#endregion
81
- export { S as MAccordion };
84
+ export { E as MAccordion };