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
@@ -1,31 +1,33 @@
1
- import { n as e } from "../useComponentAttrs-BTYEe61P.js";
2
- import { t } from "../Icon-DfpIfo2L.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 ee } from "../useMenuKeyboard-BedmYE4W.js";
6
- import { t as te } from "../useMId-BXFYayPP.js";
7
- import { t as ne } from "../Scrollbar-BYnCO8fv.js";
8
- import { t as a } from "../Checkbox-CL05RRUD.js";
9
- import { t as re } from "../useFieldFeedback-C5qIqYMK.js";
10
- import { a as ie, i as ae, n as oe, o as se, r as o, s as ce } from "../checkStrategy-CZzuUKDI.js";
11
- import { c as le, o as ue } from "../config-BdK5ccNT.js";
12
- import { n as de } from "../locale-B36KH7c3.js";
1
+ import { i as e } from "../useComponentAttrs-e-5QAjdw.js";
2
+ import { t } from "../Icon-lcN1rS87.js";
3
+ import { t as n } from "../useMotionTransition-Bxnnb_9u.js";
4
+ import { n as r, t as i } from "../overlay-oR-5MDuE.js";
5
+ import { t as ee } from "../overlayPlacement-Cd20JTD_.js";
6
+ import { t as te } from "../useFloatingViewportSync-DZdJ7W8n.js";
7
+ import { t as ne } from "../useMenuKeyboard-BedmYE4W.js";
8
+ import { t as a } from "../useMId-BXFYayPP.js";
9
+ import { t as re } from "../Scrollbar-DTeJ8P5b.js";
10
+ import { t as o } from "../Checkbox-BzbAUfyZ.js";
11
+ import { t as ie } from "../useFieldFeedback-C5qIqYMK.js";
12
+ import { a as ae, i as oe, n as se, o as ce, r as s, s as le } from "../checkStrategy-CZzuUKDI.js";
13
+ import { c as ue, o as de } from "../config-CapALqt3.js";
14
+ import { n as fe } from "../locale-Bzm2nbEp.js";
13
15
  import "./style.js";
14
- import { Fragment as s, Teleport as fe, Transition as pe, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as me, createVNode as p, defineComponent as m, mergeProps as he, nextTick as ge, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as _e, openBlock as _, ref as v, renderList as y, renderSlot as ve, resolveDynamicComponent as b, toDisplayString as x, unref as S, useAttrs as ye, useSlots as be, vModelText as xe, watch as Se, withCtx as Ce, withDirectives as we, withModifiers as C } from "vue";
16
+ import { Fragment as c, Teleport as pe, Transition as me, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as he, createVNode as m, defineComponent as h, mergeProps as ge, nextTick as _e, normalizeClass as g, normalizeStyle as ve, onBeforeUnmount as ye, openBlock as _, ref as v, renderList as y, renderSlot as be, resolveDynamicComponent as b, toDisplayString as x, unref as S, useAttrs as xe, useSlots as Se, vModelText as Ce, watch as C, withCtx as we, withDirectives as Te, withModifiers as w } from "vue";
15
17
  //#region src/components/TreeSelect/TreeSelectNodeItem.vue?vue&type=script&setup=true&lang.ts
16
- var w = [
18
+ var T = [
17
19
  "aria-expanded",
18
20
  "aria-level",
19
21
  "aria-disabled",
20
22
  "aria-selected",
21
23
  "aria-checked"
22
- ], T = ["aria-label"], Te = {
24
+ ], E = ["aria-label"], D = {
23
25
  key: 1,
24
26
  class: "m-treeselect__toggler-spacer"
25
- }, E = ["disabled", "tabindex"], D = {
27
+ }, O = ["disabled", "tabindex"], k = {
26
28
  key: 0,
27
29
  role: "group"
28
- }, Ee = /* @__PURE__ */ m({
30
+ }, A = /* @__PURE__ */ h({
29
31
  __name: "TreeSelectNodeItem",
30
32
  props: {
31
33
  node: {},
@@ -40,50 +42,52 @@ var w = [
40
42
  emits: [
41
43
  "toggle",
42
44
  "select",
43
- "check"
45
+ "check",
46
+ "activate"
44
47
  ],
45
48
  setup(e) {
46
- let n = de();
47
- return (r, i) => (_(), d("li", {
48
- class: h(["m-treeselect__node", { "m-treeselect__node--active": e.node.key === e.activeKey }]),
49
+ let n = fe();
50
+ return (r, i) => (_(), f("li", {
51
+ class: g(["m-treeselect__node", { "m-treeselect__node--active": e.node.key === e.activeKey }]),
49
52
  role: "treeitem",
50
53
  "aria-expanded": e.node.children?.length ? !!e.expanded[e.node.key] : void 0,
51
54
  "aria-level": e.depth + 1,
52
55
  "aria-disabled": e.node.disabled || void 0,
53
56
  "aria-selected": e.showCheckbox ? void 0 : e.selectedKeys.includes(e.node.key),
54
57
  "aria-checked": e.showCheckbox ? !!e.checkedKeys[e.node.key] : void 0
55
- }, [f("div", {
58
+ }, [p("div", {
56
59
  class: "m-treeselect__row",
57
- style: g({ paddingLeft: `${e.depth * .75}rem` })
60
+ style: ve({ paddingLeft: `${e.depth * .75}rem` })
58
61
  }, [
59
- e.node.children?.length ? (_(), d("button", {
62
+ e.node.children?.length ? (_(), f("button", {
60
63
  key: 0,
61
64
  type: "button",
62
65
  class: "m-treeselect__toggler",
63
66
  tabindex: "-1",
64
67
  "aria-label": e.expanded[e.node.key] ? S(n).collapse : S(n).expand,
65
- onClick: i[0] ||= C((t) => r.$emit("toggle", e.node.key), ["stop"])
66
- }, [p(t, {
68
+ onClick: i[0] ||= w((t) => r.$emit("toggle", e.node.key), ["stop"])
69
+ }, [m(t, {
67
70
  name: e.expanded[e.node.key] ? "chevron-down" : "chevron-right",
68
71
  size: "sm"
69
- }, null, 8, ["name"])], 8, T)) : (_(), d("span", Te)),
70
- e.showCheckbox ? (_(), l(a, {
72
+ }, null, 8, ["name"])], 8, E)) : (_(), f("span", D)),
73
+ e.showCheckbox ? (_(), u(o, {
71
74
  key: 2,
72
75
  class: "m-treeselect__checkbox",
73
76
  tabindex: "-1",
74
77
  "model-value": !!e.checkedKeys[e.node.key],
75
78
  disabled: e.node.disabled,
76
79
  "onUpdate:modelValue": i[1] ||= (t) => r.$emit("check", e.node),
77
- onClick: i[2] ||= C(() => {}, ["stop"])
78
- }, null, 8, ["model-value", "disabled"])) : u("", !0),
79
- f("button", {
80
+ onClick: i[2] ||= w(() => {}, ["stop"])
81
+ }, null, 8, ["model-value", "disabled"])) : d("", !0),
82
+ p("button", {
80
83
  type: "button",
81
- class: h(["m-treeselect__option", { "m-treeselect__option--selected": e.selectedKeys.includes(e.node.key) }]),
84
+ class: g(["m-treeselect__option", { "m-treeselect__option--selected": e.selectedKeys.includes(e.node.key) }]),
82
85
  disabled: e.node.disabled,
83
86
  tabindex: e.node.key === e.activeKey ? 0 : -1,
84
- onClick: i[3] ||= (t) => r.$emit("select", e.node)
85
- }, [e.renderOption ? (_(), l(b(() => e.renderOption?.(e.node)), { key: 0 })) : (_(), d(s, { key: 1 }, [me(x(e.node.label), 1)], 64))], 10, E)
86
- ], 4), e.node.children?.length && e.expanded[e.node.key] ? (_(), d("ul", D, [(_(!0), d(s, null, y(e.node.children, (t) => (_(), l(Ee, {
87
+ onMouseenter: i[3] ||= (t) => r.$emit("activate", e.node),
88
+ onClick: i[4] ||= (t) => r.$emit("select", e.node)
89
+ }, [e.renderOption ? (_(), u(b(() => e.renderOption?.(e.node)), { key: 0 })) : (_(), f(c, { key: 1 }, [he(x(e.node.label), 1)], 64))], 42, O)
90
+ ], 4), e.node.children?.length && e.expanded[e.node.key] ? (_(), f("ul", k, [(_(!0), f(c, null, y(e.node.children, (t) => (_(), u(A, {
87
91
  key: t.key,
88
92
  node: t,
89
93
  depth: e.depth + 1,
@@ -93,9 +97,10 @@ var w = [
93
97
  "show-checkbox": e.showCheckbox,
94
98
  "active-key": e.activeKey,
95
99
  "render-option": e.renderOption,
96
- onToggle: i[4] ||= (e) => r.$emit("toggle", e),
97
- onSelect: i[5] ||= (e) => r.$emit("select", e),
98
- onCheck: i[6] ||= (e) => r.$emit("check", e)
100
+ onToggle: i[5] ||= (e) => r.$emit("toggle", e),
101
+ onSelect: i[6] ||= (e) => r.$emit("select", e),
102
+ onCheck: i[7] ||= (e) => r.$emit("check", e),
103
+ onActivate: i[8] ||= (e) => r.$emit("activate", e)
99
104
  }, null, 8, [
100
105
  "node",
101
106
  "depth",
@@ -105,9 +110,9 @@ var w = [
105
110
  "show-checkbox",
106
111
  "active-key",
107
112
  "render-option"
108
- ]))), 128))])) : u("", !0)], 10, w));
113
+ ]))), 128))])) : d("", !0)], 10, T));
109
114
  }
110
- }), De = ["for"], Oe = [
115
+ }), Ee = ["for"], De = [
111
116
  "id",
112
117
  "tabindex",
113
118
  "aria-disabled",
@@ -115,20 +120,20 @@ var w = [
115
120
  "aria-controls",
116
121
  "aria-invalid",
117
122
  "aria-describedby"
118
- ], ke = {
123
+ ], Oe = {
119
124
  key: 0,
120
125
  class: "m-treeselect__tags"
121
- }, Ae = { class: "m-select__tag-label" }, je = [
126
+ }, ke = { class: "m-select__tag-label" }, Ae = [
122
127
  "aria-label",
123
128
  "disabled",
124
129
  "onClick"
125
- ], Me = {
130
+ ], je = {
126
131
  key: 0,
127
132
  class: "m-select__tag m-select__tag--more"
128
- }, Ne = { class: "m-select__suffix" }, Pe = ["aria-label"], Fe = ["id"], Ie = ["placeholder"], Le = {
133
+ }, Me = { class: "m-select__suffix" }, Ne = ["aria-label"], Pe = ["id"], Fe = ["placeholder"], Ie = {
129
134
  class: "m-treeselect__tree",
130
135
  role: "tree"
131
- }, Re = ["id", "role"], O = /* @__PURE__ */ m({
136
+ }, Le = ["id", "role"], Re = /* @__PURE__ */ h({
132
137
  inheritAttrs: !1,
133
138
  __name: "TreeSelect",
134
139
  props: {
@@ -181,35 +186,44 @@ var w = [
181
186
  },
182
187
  appendTo: {},
183
188
  pt: {},
189
+ transition: {
190
+ type: [String, Boolean],
191
+ default: void 0
192
+ },
184
193
  placeholder: { default: void 0 },
185
194
  name: {}
186
195
  },
187
196
  emits: ["update:modelValue", "clear"],
188
- setup(a, { emit: me }) {
189
- let m = a, b = me, w = ye(), { rootAttrs: T, controlAttrs: Te } = e(w, () => m.pt, { controlKey: "control" }), E = be(), D = le(), O = de(), ze = ue("TreeSelect", () => m.size), Be = te("m-treeselect"), k = c(() => m.id ?? Be), { isInvalid: A, feedbackText: j, feedbackIsError: Ve } = re(m), M = v(!1), N = v(""), P = v(null), F = v(null), I = v(null), He = v({}), L = v({}), Ue = c(() => n(m, D.value.appendTo)), R = c(() => r(m, D.value.appendTo)), z = c(() => m.multiple || m.selectionMode === "multiple" || m.checkable), B = c(() => Array.isArray(m.modelValue) ? m.modelValue : typeof m.modelValue == "string" && m.modelValue ? [m.modelValue] : []), We = c(() => {
197
+ setup(o, { emit: he }) {
198
+ let h = o, b = he, T = xe(), { rootAttrs: E, controlAttrs: D } = e(T, () => h.pt, { controlKey: "control" }), O = Se(), k = ue(), { transitionName: Re, transitionCss: ze } = n({
199
+ role: "popup",
200
+ local: () => h.transition,
201
+ componentName: "TreeSelect",
202
+ fallback: "scale-fade"
203
+ }), j = fe(), Be = de("TreeSelect", () => h.size), Ve = a("m-treeselect"), M = l(() => h.id ?? Ve), { isInvalid: He, feedbackText: N, feedbackIsError: Ue } = ie(h), P = v(!1), F = v(""), I = v(null), L = v(null), R = v(null), We = v({}), z = v({}), Ge = l(() => r(h, k.value.appendTo)), B = l(() => i(h, k.value.appendTo)), V = l(() => h.multiple || h.selectionMode === "multiple" || h.checkable), H = l(() => Array.isArray(h.modelValue) ? h.modelValue : typeof h.modelValue == "string" && h.modelValue ? [h.modelValue] : []), Ke = l(() => {
190
204
  let e = {};
191
- for (let t of B.value) e[t] = !0;
205
+ for (let t of H.value) e[t] = !0;
192
206
  return e;
193
- }), V = c(() => oe(m.options, We.value, m.checkStrategy, m.checkStrictly)), Ge = c(() => {
194
- let e = B.value[0];
195
- if (!e || z.value) return m.placeholder ?? O.value.selectPlaceholder;
196
- if (m.showPath) {
197
- let t = ae(m.options, e);
198
- return t.length ? t.join(m.separator) : e;
207
+ }), qe = l(() => se(h.options, Ke.value, h.checkStrategy, h.checkStrictly)), Je = l(() => {
208
+ let e = H.value[0];
209
+ if (!e || V.value) return h.placeholder ?? j.value.selectPlaceholder;
210
+ if (h.showPath) {
211
+ let t = oe(h.options, e);
212
+ return t.length ? t.join(h.separator) : e;
199
213
  }
200
- return o(m.options, e)?.label ?? m.placeholder ?? O.value.selectPlaceholder;
201
- }), H = c(() => {
202
- let e = B.value[0];
203
- return e && !z.value ? o(m.options, e) : void 0;
204
- }), Ke = c(() => E.option ? (e) => E.option?.({ option: e }) : void 0), U = c(() => B.value.map((e) => ({
214
+ return s(h.options, e)?.label ?? h.placeholder ?? j.value.selectPlaceholder;
215
+ }), Ye = l(() => {
216
+ let e = H.value[0];
217
+ return e && !V.value ? s(h.options, e) : void 0;
218
+ }), Xe = l(() => O.option ? (e) => O.option?.({ option: e }) : void 0), U = l(() => H.value.map((e) => ({
205
219
  key: e,
206
- label: m.showPath ? ae(m.options, e).join(m.separator) : o(m.options, e)?.label ?? e
207
- }))), qe = c(() => {
208
- let e = m.maxTagCount;
220
+ label: h.showPath ? oe(h.options, e).join(h.separator) : s(h.options, e)?.label ?? e
221
+ }))), Ze = l(() => {
222
+ let e = h.maxTagCount;
209
223
  return e == null || e < 0 || U.value.length <= e ? U.value : U.value.slice(0, e);
210
- }), W = c(() => Math.max(0, U.value.length - qe.value.length)), Je = c(() => m.clearable && B.value.length > 0 && !m.disabled), Ye = c(() => {
211
- let e = N.value.trim().toLowerCase();
212
- if (!e) return m.options;
224
+ }), W = l(() => Math.max(0, U.value.length - Ze.value.length)), Qe = l(() => h.clearable && H.value.length > 0 && !h.disabled), $e = l(() => {
225
+ let e = F.value.trim().toLowerCase();
226
+ if (!e) return h.options;
213
227
  let t = (n) => {
214
228
  let r = n.label.toLowerCase().includes(e), i = (n.children ?? []).map(t).filter((e) => e != null);
215
229
  return r || i.length ? {
@@ -217,62 +231,63 @@ var w = [
217
231
  children: i.length ? i : n.children
218
232
  } : null;
219
233
  };
220
- return m.options.map(t).filter((e) => e != null);
221
- }), G = c(() => {
234
+ return h.options.map(t).filter((e) => e != null);
235
+ }), G = l(() => {
222
236
  let e = [], t = (n, r) => {
223
237
  for (let i of n) e.push({
224
238
  node: i,
225
239
  parentKey: r
226
- }), i.children?.length && L.value[i.key] && t(i.children, i.key);
240
+ }), i.children?.length && z.value[i.key] && t(i.children, i.key);
227
241
  };
228
- return t(Ye.value, null), e;
229
- }), Xe = te("m-treeselect-panel"), K = ee({
242
+ return t($e.value, null), e;
243
+ }), et = a("m-treeselect-panel"), K = ne({
230
244
  itemCount: () => G.value.length,
231
245
  isItemDisabled: (e) => !!G.value[e]?.node.disabled,
232
- enabled: M,
246
+ enabled: P,
233
247
  onActivate: (e) => {
234
248
  let t = G.value[e];
235
- t && rt(t.node);
249
+ t && Z(t.node);
236
250
  },
237
251
  onEscape: () => {
238
- M.value = !1;
252
+ P.value = !1;
239
253
  },
240
- returnFocusTo: F
241
- }), Ze = c(() => G.value[K.activeIndex.value]?.node.key ?? null);
242
- function Qe() {
254
+ returnFocusTo: L
255
+ }), tt = l(() => G.value[K.activeIndex.value]?.node.key ?? null);
256
+ function nt() {
243
257
  let e = K.activeIndex.value;
244
258
  if (e < 0) return;
245
- let t = I.value?.querySelectorAll(".m-treeselect__option")?.[e];
259
+ let t = R.value?.querySelectorAll(".m-treeselect__option")?.[e];
246
260
  t && document.activeElement !== t && t.focus({ preventScroll: !0 }), t?.scrollIntoView({ block: "nearest" });
247
261
  }
248
- function $e() {
249
- if (!R.value || !F.value) return;
250
- let e = F.value.getBoundingClientRect();
251
- He.value = i(e, "bottom-start", { minWidth: `${e.width}px` });
262
+ function rt() {
263
+ if (!B.value || !L.value) return;
264
+ let e = L.value.getBoundingClientRect();
265
+ We.value = ee(e, "bottom-start", { minWidth: `${e.width}px` });
252
266
  }
253
- function et() {
254
- M.value = !0, ge(() => {
255
- $e();
256
- let e = G.value.findIndex((e) => B.value.includes(e.node.key));
257
- e >= 0 ? K.setActive(e) : K.moveFirst(), m.filterable ? I.value?.querySelector(".m-treeselect__filter")?.focus() : Qe();
267
+ function q(e = !1) {
268
+ P.value = !0, _e(() => {
269
+ if (rt(), e) {
270
+ let e = G.value.findIndex((e) => H.value.includes(e.node.key));
271
+ e >= 0 ? K.setActive(e) : K.moveFirst(), h.filterable ? R.value?.querySelector(".m-treeselect__filter")?.focus() : nt();
272
+ } else K.setActive(-1), h.filterable && R.value?.querySelector(".m-treeselect__filter")?.focus();
258
273
  });
259
274
  }
260
- function q() {
261
- if (!m.disabled) {
262
- if (M.value) {
263
- M.value = !1;
275
+ function it() {
276
+ if (!h.disabled) {
277
+ if (P.value) {
278
+ P.value = !1;
264
279
  return;
265
280
  }
266
- et();
281
+ q(!1);
267
282
  }
268
283
  }
269
284
  function J(e) {
270
- if (!M.value) return;
285
+ if (!P.value) return;
271
286
  let t = G.value, n = t[K.activeIndex.value];
272
287
  if (e.key === "ArrowRight") {
273
288
  if (e.preventDefault(), !n) return;
274
289
  if (n.node.children?.length) {
275
- if (!L.value[n.node.key]) Y(n.node.key);
290
+ if (!z.value[n.node.key]) Y(n.node.key);
276
291
  else {
277
292
  let e = t.findIndex((e) => e.parentKey === n.node.key);
278
293
  e >= 0 && K.setActive(e);
@@ -282,7 +297,7 @@ var w = [
282
297
  }
283
298
  if (e.key === "ArrowLeft") {
284
299
  if (e.preventDefault(), !n) return;
285
- if (n.node.children?.length && L.value[n.node.key]) Y(n.node.key);
300
+ if (n.node.children?.length && z.value[n.node.key]) Y(n.node.key);
286
301
  else if (n.parentKey != null) {
287
302
  let e = t.findIndex((e) => e.node.key === n.parentKey);
288
303
  e >= 0 && K.setActive(e);
@@ -291,16 +306,16 @@ var w = [
291
306
  }
292
307
  K.onKeydown(e);
293
308
  }
294
- function tt(e) {
295
- if (!m.disabled) {
296
- if (!M.value) {
297
- e.key === "ArrowDown" || e.key === "ArrowUp" ? (e.preventDefault(), et()) : e.key === "Enter" && (e.preventDefault(), q());
309
+ function at(e) {
310
+ if (!h.disabled) {
311
+ if (!P.value) {
312
+ e.key === "ArrowDown" || e.key === "ArrowUp" ? (e.preventDefault(), q(!0)) : e.key === "Enter" && (e.preventDefault(), q(!1));
298
313
  return;
299
314
  }
300
315
  J(e);
301
316
  }
302
317
  }
303
- function nt(e) {
318
+ function ot(e) {
304
319
  [
305
320
  "ArrowUp",
306
321
  "ArrowDown",
@@ -308,164 +323,173 @@ var w = [
308
323
  "Escape"
309
324
  ].includes(e.key) && J(e);
310
325
  }
311
- Se(K.activeIndex, () => {
312
- if (M.value && !m.filterable) Qe();
313
- else if (M.value) {
326
+ C(K.activeIndex, () => {
327
+ if (P.value && !h.filterable) nt();
328
+ else if (P.value) {
314
329
  let e = K.activeIndex.value;
315
- I.value?.querySelectorAll(".m-treeselect__option")[e]?.scrollIntoView({ block: "nearest" });
330
+ R.value?.querySelectorAll(".m-treeselect__option")[e]?.scrollIntoView({ block: "nearest" });
316
331
  }
317
332
  });
318
333
  function Y(e) {
319
- L.value = {
320
- ...L.value,
321
- [e]: !L.value[e]
334
+ z.value = {
335
+ ...z.value,
336
+ [e]: !z.value[e]
322
337
  };
323
338
  }
324
339
  function X(e) {
325
- z.value ? b("update:modelValue", e) : b("update:modelValue", e[0] ?? null);
340
+ V.value ? b("update:modelValue", e) : b("update:modelValue", e[0] ?? null);
326
341
  }
327
- function rt(e) {
342
+ function Z(e) {
328
343
  if (!e.disabled) {
329
- if (m.checkable) {
330
- it(e);
344
+ if (h.checkable) {
345
+ ct(e);
331
346
  return;
332
347
  }
333
- if (!z.value) {
334
- b("update:modelValue", e.key === m.modelValue ? null : e.key), M.value = !1, F.value?.focus({ preventScroll: !0 });
348
+ if (!V.value) {
349
+ b("update:modelValue", e.key === h.modelValue ? null : e.key), P.value = !1, L.value?.focus({ preventScroll: !0 });
335
350
  return;
336
351
  }
337
- X(B.value.includes(e.key) ? B.value.filter((t) => t !== e.key) : [...B.value, e.key]);
352
+ X(H.value.includes(e.key) ? H.value.filter((t) => t !== e.key) : [...H.value, e.key]);
338
353
  }
339
354
  }
340
- function it(e) {
355
+ function st(e) {
356
+ if (e.disabled) return;
357
+ let t = G.value.findIndex((t) => t.node.key === e.key);
358
+ t >= 0 && K.setActive(t);
359
+ }
360
+ function ct(e) {
341
361
  if (e.disabled) return;
342
- let t = { ...V.value }, n = !t[e.key];
343
- m.checkStrictly ? n ? t[e.key] = !0 : delete t[e.key] : (se(e, n, t), ce(m.options, t));
344
- let r = ie(m.options, t, m.checkStrategy, m.checkStrictly);
362
+ let t = { ...qe.value }, n = !t[e.key];
363
+ h.checkStrictly ? n ? t[e.key] = !0 : delete t[e.key] : (ce(e, n, t), le(h.options, t));
364
+ let r = ae(h.options, t, h.checkStrategy, h.checkStrictly);
345
365
  X(Object.keys(r).filter((e) => r[e]));
346
366
  }
347
- function at(e) {
348
- X(B.value.filter((t) => t !== e));
367
+ function lt(e) {
368
+ X(H.value.filter((t) => t !== e));
349
369
  }
350
- function ot(e) {
351
- e.stopPropagation(), b("update:modelValue", z.value ? [] : null), b("clear");
370
+ function ut(e) {
371
+ e.stopPropagation(), b("update:modelValue", V.value ? [] : null), b("clear");
352
372
  }
353
- function Z(e) {
373
+ function Q(e) {
354
374
  let t = e.target;
355
- P.value?.contains(t) || I.value?.contains(t) || (M.value = !1);
375
+ I.value?.contains(t) || R.value?.contains(t) || (P.value = !1);
356
376
  }
357
- function Q(e) {
377
+ function $(e) {
358
378
  let t = e.target;
359
- P.value?.contains(t) || I.value?.contains(t) || (M.value = !1);
379
+ I.value?.contains(t) || R.value?.contains(t) || (P.value = !1);
360
380
  }
361
- function $() {
362
- M.value && $e();
381
+ function dt() {
382
+ P.value && rt();
363
383
  }
364
- return Se(M, (e) => {
365
- e ? (document.addEventListener("click", Z), document.addEventListener("focusin", Q), R.value && (window.addEventListener("resize", $), window.addEventListener("scroll", $, !0))) : (N.value = "", K.reset(), document.removeEventListener("click", Z), document.removeEventListener("focusin", Q), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0));
366
- }), _e(() => {
367
- document.removeEventListener("click", Z), document.removeEventListener("focusin", Q), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0);
368
- }), (e, n) => (_(), d("div", he({
384
+ return te(() => P.value && B.value, dt), C(P, (e) => {
385
+ e ? (document.addEventListener("click", Q), document.addEventListener("focusin", $)) : (F.value = "", K.reset(), document.removeEventListener("click", Q), document.removeEventListener("focusin", $));
386
+ }), ye(() => {
387
+ document.removeEventListener("click", Q), document.removeEventListener("focusin", $);
388
+ }), (e, n) => (_(), f("div", ge({
369
389
  ref_key: "root",
370
- ref: P
371
- }, S(T), { class: "m-select-field" }), [
372
- a.label ? (_(), d("label", {
390
+ ref: I
391
+ }, S(E), { class: "m-select-field" }), [
392
+ o.label ? (_(), f("label", {
373
393
  key: 0,
374
394
  class: "m-select-field__label",
375
- for: k.value
376
- }, x(a.label), 9, De)) : u("", !0),
377
- f("div", { class: h(["m-treeselect", [`m-treeselect--${S(ze)}`, {
378
- "m-treeselect--disabled": a.disabled,
379
- "m-treeselect--open": M.value,
380
- "m-treeselect--multiple": z.value,
381
- "m-treeselect--invalid": S(A)
382
- }]]) }, [f("div", { class: h(["m-treeselect__control m-select__control", {
383
- "m-select__control--clearable": Je.value,
384
- "m-select__control--open": M.value
385
- }]) }, [f("div", he(S(Te), {
386
- id: k.value,
395
+ for: M.value
396
+ }, x(o.label), 9, Ee)) : d("", !0),
397
+ p("div", { class: g(["m-treeselect", [`m-treeselect--${S(Be)}`, {
398
+ "m-treeselect--disabled": o.disabled,
399
+ "m-treeselect--open": P.value,
400
+ "m-treeselect--multiple": V.value,
401
+ "m-treeselect--invalid": S(He)
402
+ }]]) }, [p("div", { class: g(["m-treeselect__control m-select__control", {
403
+ "m-select__control--clearable": Qe.value,
404
+ "m-select__control--open": P.value
405
+ }]) }, [p("div", ge(S(D), {
406
+ id: M.value,
387
407
  ref_key: "trigger",
388
- ref: F,
408
+ ref: L,
389
409
  class: "m-treeselect__trigger",
390
410
  role: "combobox",
391
- tabindex: a.disabled ? -1 : 0,
392
- "aria-disabled": a.disabled || void 0,
393
- "aria-expanded": M.value,
394
- "aria-controls": M.value ? S(Xe) : void 0,
395
- "aria-invalid": S(A) || void 0,
396
- "aria-describedby": S(j) ? `${k.value}-help` : void 0,
411
+ tabindex: o.disabled ? -1 : 0,
412
+ "aria-disabled": o.disabled || void 0,
413
+ "aria-expanded": P.value,
414
+ "aria-controls": P.value ? S(et) : void 0,
415
+ "aria-invalid": S(He) || void 0,
416
+ "aria-describedby": S(N) ? `${M.value}-help` : void 0,
397
417
  "aria-haspopup": "tree",
398
- onClick: q,
399
- onKeydown: tt
400
- }), [z.value && U.value.length ? (_(), d("div", ke, [(_(!0), d(s, null, y(qe.value, (e) => (_(), d("span", {
418
+ onClick: it,
419
+ onKeydown: at
420
+ }), [V.value && U.value.length ? (_(), f("div", Oe, [(_(!0), f(c, null, y(Ze.value, (e) => (_(), f("span", {
401
421
  key: e.key,
402
422
  class: "m-select__tag"
403
- }, [f("span", Ae, x(e.label), 1), f("button", {
423
+ }, [p("span", ke, x(e.label), 1), p("button", {
404
424
  type: "button",
405
425
  class: "m-select__tag-remove",
406
- "aria-label": S(O).removeTag,
407
- disabled: a.disabled,
408
- onClick: C((t) => at(e.key), ["stop"])
409
- }, [p(t, {
426
+ "aria-label": S(j).removeTag,
427
+ disabled: o.disabled,
428
+ onClick: w((t) => lt(e.key), ["stop"])
429
+ }, [m(t, {
410
430
  name: "close",
411
431
  size: "sm"
412
- })], 8, je)]))), 128)), W.value ? (_(), d("span", Me, x(W.value > 0 ? `+${W.value}` : ""), 1)) : u("", !0)])) : S(E).value && H.value ? ve(e.$slots, "value", { option: H.value }, void 0, void 0, 2) : (_(), d("span", {
432
+ })], 8, Ae)]))), 128)), W.value ? (_(), f("span", je, x(W.value > 0 ? `+${W.value}` : ""), 1)) : d("", !0)])) : S(O).value && Ye.value ? be(e.$slots, "value", { option: Ye.value }, void 0, void 0, 2) : (_(), f("span", {
413
433
  key: 1,
414
- class: h(["m-treeselect__label", { "m-treeselect__label--placeholder": !B.value.length }])
415
- }, x(Ge.value), 3))], 16, Oe), f("div", Ne, [Je.value ? (_(), d("button", {
434
+ class: g(["m-treeselect__label", { "m-treeselect__label--placeholder": !H.value.length }])
435
+ }, x(Je.value), 3))], 16, De), p("div", Me, [Qe.value ? (_(), f("button", {
416
436
  key: 0,
417
437
  class: "m-select__clear",
418
438
  type: "button",
419
- "aria-label": S(O).clear,
420
- onClick: ot
421
- }, [p(t, {
439
+ "aria-label": S(j).clear,
440
+ onClick: ut
441
+ }, [m(t, {
422
442
  name: "close",
423
443
  class: "m-control-affix-icon"
424
- })], 8, Pe)) : u("", !0), f("span", {
425
- class: h(["m-select__indicator", { "m-select__indicator--open": M.value }]),
444
+ })], 8, Ne)) : d("", !0), p("span", {
445
+ class: g(["m-select__indicator", { "m-select__indicator--open": P.value }]),
426
446
  "aria-hidden": "true"
427
- }, [p(t, {
447
+ }, [m(t, {
428
448
  name: "chevron-down",
429
449
  class: "m-control-affix-icon"
430
- })], 2)])], 2), (_(), l(fe, {
431
- to: Ue.value.to,
432
- disabled: Ue.value.disabled
433
- }, [p(pe, { name: "m-scale-fade" }, {
434
- default: Ce(() => [M.value ? (_(), d("div", {
450
+ })], 2)])], 2), (_(), u(pe, {
451
+ to: Ge.value.to,
452
+ disabled: Ge.value.disabled
453
+ }, [m(me, {
454
+ name: S(Re),
455
+ css: S(ze)
456
+ }, {
457
+ default: we(() => [P.value ? (_(), f("div", {
435
458
  key: 0,
436
- id: S(Xe),
459
+ id: S(et),
437
460
  ref_key: "panel",
438
- ref: I,
439
- class: h(["m-treeselect__panel", { "m-treeselect__panel--teleported": R.value }]),
440
- style: g(R.value ? He.value : void 0),
461
+ ref: R,
462
+ class: g(["m-treeselect__panel", { "m-treeselect__panel--teleported": B.value }]),
463
+ style: ve(B.value ? We.value : void 0),
441
464
  onKeydown: J
442
- }, [a.filterable ? we((_(), d("input", {
465
+ }, [o.filterable ? Te((_(), f("input", {
443
466
  key: 0,
444
- "onUpdate:modelValue": n[0] ||= (e) => N.value = e,
467
+ "onUpdate:modelValue": n[0] ||= (e) => F.value = e,
445
468
  class: "m-treeselect__filter",
446
469
  type: "search",
447
- placeholder: S(O).searchPlaceholder,
448
- onClick: n[1] ||= C(() => {}, ["stop"]),
449
- onKeydown: nt
450
- }, null, 40, Ie)), [[xe, N.value]]) : u("", !0), p(ne, {
470
+ placeholder: S(j).searchPlaceholder,
471
+ onClick: n[1] ||= w(() => {}, ["stop"]),
472
+ onKeydown: ot
473
+ }, null, 40, Fe)), [[Ce, F.value]]) : d("", !0), m(re, {
451
474
  class: "m-treeselect__tree-scroll",
452
475
  "fit-content": "",
453
476
  "wrap-class": "m-treeselect__tree-wrap",
454
477
  "view-class": "m-treeselect__tree-view"
455
478
  }, {
456
- default: Ce(() => [f("ul", Le, [(_(!0), d(s, null, y(Ye.value, (e) => (_(), l(Ee, {
479
+ default: we(() => [p("ul", Ie, [(_(!0), f(c, null, y($e.value, (e) => (_(), u(A, {
457
480
  key: e.key,
458
481
  node: e,
459
482
  depth: 0,
460
- "selected-keys": B.value,
461
- "checked-keys": V.value,
462
- expanded: L.value,
463
- "show-checkbox": a.checkable,
464
- "active-key": Ze.value,
465
- "render-option": Ke.value,
483
+ "selected-keys": H.value,
484
+ "checked-keys": qe.value,
485
+ expanded: z.value,
486
+ "show-checkbox": o.checkable,
487
+ "active-key": tt.value,
488
+ "render-option": Xe.value,
466
489
  onToggle: Y,
467
- onSelect: rt,
468
- onCheck: it
490
+ onSelect: Z,
491
+ onCheck: ct,
492
+ onActivate: st
469
493
  }, null, 8, [
470
494
  "node",
471
495
  "selected-keys",
@@ -476,17 +500,17 @@ var w = [
476
500
  "render-option"
477
501
  ]))), 128))])]),
478
502
  _: 1
479
- })], 46, Fe)) : u("", !0)]),
503
+ })], 46, Pe)) : d("", !0)]),
480
504
  _: 1
481
- })], 8, ["to", "disabled"]))], 2),
482
- S(j) ? (_(), d("span", {
505
+ }, 8, ["name", "css"])], 8, ["to", "disabled"]))], 2),
506
+ S(N) ? (_(), f("span", {
483
507
  key: 1,
484
- id: `${k.value}-help`,
485
- class: h(["m-select-field__help", { "m-select-field__help--invalid": S(Ve) }]),
486
- role: S(Ve) ? "alert" : void 0
487
- }, x(S(j)), 11, Re)) : u("", !0)
508
+ id: `${M.value}-help`,
509
+ class: g(["m-select-field__help", { "m-select-field__help--invalid": S(Ue) }]),
510
+ role: S(Ue) ? "alert" : void 0
511
+ }, x(S(N)), 11, Le)) : d("", !0)
488
512
  ], 16));
489
513
  }
490
514
  });
491
515
  //#endregion
492
- export { O as MTreeSelect };
516
+ export { Re as MTreeSelect };