@routa/ui-vue 0.1.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 (504) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +52 -0
  3. package/base.css +1 -0
  4. package/dist/autocomplete/AutoComplete.vue.d.ts +336 -0
  5. package/dist/autocomplete/index.d.ts +298 -0
  6. package/dist/autocomplete/index.js +4 -0
  7. package/dist/autocomplete/index.mjs +321 -0
  8. package/dist/autocomplete/types.d.ts +58 -0
  9. package/dist/avatar/Avatar.vue.d.ts +36 -0
  10. package/dist/avatar/AvatarGroup.vue.d.ts +7 -0
  11. package/dist/avatar/index.d.ts +7 -0
  12. package/dist/avatar/index.js +3 -0
  13. package/dist/avatar/index.mjs +192 -0
  14. package/dist/avatar/types.d.ts +111 -0
  15. package/dist/badge/Badge.vue.d.ts +25 -0
  16. package/dist/badge/index.d.ts +5 -0
  17. package/dist/badge/index.js +2 -0
  18. package/dist/badge/index.mjs +72 -0
  19. package/dist/badge/types.d.ts +86 -0
  20. package/dist/breadcrumb/Breadcrumb.vue.d.ts +38 -0
  21. package/dist/breadcrumb/BreadcrumbItem.vue.d.ts +48 -0
  22. package/dist/breadcrumb/index.d.ts +7 -0
  23. package/dist/breadcrumb/index.js +2 -0
  24. package/dist/breadcrumb/index.mjs +87 -0
  25. package/dist/breadcrumb/types.d.ts +28 -0
  26. package/dist/button/Button.vue.d.ts +27 -0
  27. package/dist/button/index.d.ts +5 -0
  28. package/dist/button/index.js +2 -0
  29. package/dist/button/index.mjs +10 -0
  30. package/dist/button/types.d.ts +14 -0
  31. package/dist/card/Card.vue.d.ts +49 -0
  32. package/dist/card/index.d.ts +72 -0
  33. package/dist/card/index.js +2 -0
  34. package/dist/card/index.mjs +60 -0
  35. package/dist/card/types.d.ts +16 -0
  36. package/dist/carousel/Carousel.vue.d.ts +134 -0
  37. package/dist/carousel/CarouselItem.vue.d.ts +23 -0
  38. package/dist/carousel/index.d.ts +250 -0
  39. package/dist/carousel/index.js +2 -0
  40. package/dist/carousel/index.mjs +354 -0
  41. package/dist/carousel/types.d.ts +97 -0
  42. package/dist/cascader/Cascader.vue.d.ts +109 -0
  43. package/dist/cascader/CascaderPanel.vue.d.ts +55 -0
  44. package/dist/cascader/index.d.ts +110 -0
  45. package/dist/cascader/index.js +5 -0
  46. package/dist/cascader/index.mjs +370 -0
  47. package/dist/cascader/types.d.ts +54 -0
  48. package/dist/checkbox/Checkbox.vue.d.ts +99 -0
  49. package/dist/checkbox/CheckboxGroup.vue.d.ts +59 -0
  50. package/dist/checkbox/constants.d.ts +2 -0
  51. package/dist/checkbox/index.d.ts +9 -0
  52. package/dist/checkbox/index.js +2 -0
  53. package/dist/checkbox/index.mjs +70 -0
  54. package/dist/checkbox/types.d.ts +64 -0
  55. package/dist/chunks/Button.vue_vue_type_script_setup_true_lang-BthtEkGw.mjs +170 -0
  56. package/dist/chunks/Button.vue_vue_type_script_setup_true_lang-Do1NtIFC.js +1 -0
  57. package/dist/chunks/Checkbox.vue_vue_type_script_setup_true_lang-DxecbRJE.js +1 -0
  58. package/dist/chunks/Checkbox.vue_vue_type_script_setup_true_lang-fOXXjwnz.mjs +289 -0
  59. package/dist/chunks/Icon.vue_vue_type_script_setup_true_lang-LQ-KuJ6a.mjs +57 -0
  60. package/dist/chunks/Icon.vue_vue_type_script_setup_true_lang-YDWguTmi.js +1 -0
  61. package/dist/chunks/Input.vue_vue_type_script_setup_true_lang-8x2HE2Cj.js +1 -0
  62. package/dist/chunks/Input.vue_vue_type_script_setup_true_lang-PeDZ7smO.mjs +391 -0
  63. package/dist/chunks/Popover.vue_vue_type_script_setup_true_lang-CVWbekIQ.mjs +176 -0
  64. package/dist/chunks/Popover.vue_vue_type_script_setup_true_lang-TF9OnqB0.js +1 -0
  65. package/dist/chunks/Scrollbar.vue_vue_type_script_setup_true_lang-CtBz7Ha9.js +1 -0
  66. package/dist/chunks/Scrollbar.vue_vue_type_script_setup_true_lang-kKvR0Hz3.mjs +124 -0
  67. package/dist/chunks/TimePanel.vue_vue_type_script_setup_true_lang-BNTM3OeU.js +1 -0
  68. package/dist/chunks/TimePanel.vue_vue_type_script_setup_true_lang-BxuIhLsF.mjs +170 -0
  69. package/dist/chunks/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
  70. package/dist/chunks/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  71. package/dist/chunks/auto-update-6n8Xn1EH.js +1 -0
  72. package/dist/chunks/auto-update-Dw-2qIsQ.mjs +59 -0
  73. package/dist/chunks/color-BBpRjg5d.mjs +32 -0
  74. package/dist/chunks/color-m1q_rZ68.js +1 -0
  75. package/dist/chunks/context-BEsW77hb.js +1 -0
  76. package/dist/chunks/context-BlK-PJ3n.mjs +5 -0
  77. package/dist/chunks/controller-37WpkEdZ.js +1 -0
  78. package/dist/chunks/controller-3cWaJJMW.mjs +318 -0
  79. package/dist/chunks/controller-BQhkT8pi.mjs +95 -0
  80. package/dist/chunks/controller-BnNZOOMj.js +1 -0
  81. package/dist/chunks/controller-CV-a983I.js +1 -0
  82. package/dist/chunks/controller-D1BTHmfO.js +1 -0
  83. package/dist/chunks/controller-DZp6lWY1.mjs +96 -0
  84. package/dist/chunks/controller-DdEBnv9V.mjs +82 -0
  85. package/dist/chunks/id-CfLxBW9l.js +1 -0
  86. package/dist/chunks/id-VS2potoV.mjs +7 -0
  87. package/dist/chunks/index-B0yEC3RG.mjs +136 -0
  88. package/dist/chunks/index-B4GP5rXr.mjs +170 -0
  89. package/dist/chunks/index-DWAWrVaT.js +1 -0
  90. package/dist/chunks/index-RYR-1S7A.js +1 -0
  91. package/dist/chunks/install-DJNxamQ0.mjs +10 -0
  92. package/dist/chunks/install-gnn2dOg9.js +1 -0
  93. package/dist/chunks/manager-BUdQK4AD.mjs +156 -0
  94. package/dist/chunks/manager-C-VTKQvg.mjs +85 -0
  95. package/dist/chunks/manager-C0AUxQ1I.js +2 -0
  96. package/dist/chunks/manager-d-AJMlyO.js +1 -0
  97. package/dist/chunks/modal-BiivqQQz.mjs +86 -0
  98. package/dist/chunks/modal-CRbFkVcm.js +1 -0
  99. package/dist/chunks/responsive-BYScjISa.js +1 -0
  100. package/dist/chunks/responsive-jCVnPx1a.mjs +49 -0
  101. package/dist/chunks/style-C-58-Hx4.mjs +7 -0
  102. package/dist/chunks/style-CjCLKeeU.js +1 -0
  103. package/dist/chunks/types-CXAGM03M.mjs +92 -0
  104. package/dist/chunks/types-DS78vyi2.js +1 -0
  105. package/dist/chunks/use-form-item-CloIcyon.js +1 -0
  106. package/dist/chunks/use-form-item-CqDbWCiU.mjs +16 -0
  107. package/dist/chunks/use-id-BycaM3-h.js +1 -0
  108. package/dist/chunks/use-id-D3casveg.mjs +9 -0
  109. package/dist/chunks/use-signals-Bz1smiXh.js +1 -0
  110. package/dist/chunks/use-signals-CE1T2jXK.mjs +50 -0
  111. package/dist/chunks/useCanvasRenderer-BPTNzGy0.mjs +87 -0
  112. package/dist/chunks/useCanvasRenderer-D77k3JCQ.js +1 -0
  113. package/dist/chunks/useResizeObserver-Cki4q_CI.mjs +60 -0
  114. package/dist/chunks/useResizeObserver-DMkB1OF3.js +1 -0
  115. package/dist/chunks/z-index-CNZLw1v7.js +1 -0
  116. package/dist/chunks/z-index-D9ecXoNe.mjs +14 -0
  117. package/dist/collapse/Collapse.vue.d.ts +30 -0
  118. package/dist/collapse/CollapseItem.vue.d.ts +20 -0
  119. package/dist/collapse/index.d.ts +8 -0
  120. package/dist/collapse/index.js +3 -0
  121. package/dist/collapse/index.mjs +144 -0
  122. package/dist/collapse/types.d.ts +54 -0
  123. package/dist/color-picker/AlphaSlider.vue.d.ts +38 -0
  124. package/dist/color-picker/ColorPicker.vue.d.ts +57 -0
  125. package/dist/color-picker/HueSlider.vue.d.ts +28 -0
  126. package/dist/color-picker/SaturationPanel.vue.d.ts +46 -0
  127. package/dist/color-picker/index.d.ts +56 -0
  128. package/dist/color-picker/index.js +6 -0
  129. package/dist/color-picker/index.mjs +481 -0
  130. package/dist/config-provider/ConfigProvider.vue.d.ts +64 -0
  131. package/dist/config-provider/context.d.ts +888 -0
  132. package/dist/config-provider/index.d.ts +97 -0
  133. package/dist/config-provider/index.js +1 -0
  134. package/dist/config-provider/index.mjs +396 -0
  135. package/dist/config-provider/resolver.d.ts +2 -0
  136. package/dist/config-provider/runtime.d.ts +5 -0
  137. package/dist/config-provider/teleport.d.ts +6 -0
  138. package/dist/config-provider/types.d.ts +131 -0
  139. package/dist/context-menu/ContextMenu.vue.d.ts +87 -0
  140. package/dist/context-menu/index.d.ts +5 -0
  141. package/dist/context-menu/index.js +3 -0
  142. package/dist/context-menu/index.mjs +215 -0
  143. package/dist/context-menu/types.d.ts +34 -0
  144. package/dist/date-picker/Calendar.vue.d.ts +22 -0
  145. package/dist/date-picker/DatePicker.vue.d.ts +31 -0
  146. package/dist/date-picker/DateRangePicker.vue.d.ts +26 -0
  147. package/dist/date-picker/DateTimePicker.vue.d.ts +27 -0
  148. package/dist/date-picker/DateTimeRangePicker.vue.d.ts +27 -0
  149. package/dist/date-picker/index.d.ts +13 -0
  150. package/dist/date-picker/index.js +6 -0
  151. package/dist/date-picker/index.mjs +1229 -0
  152. package/dist/date-picker/utils.d.ts +3 -0
  153. package/dist/dialog/Dialog.vue.d.ts +97 -0
  154. package/dist/dialog/index.d.ts +5 -0
  155. package/dist/dialog/index.js +2 -0
  156. package/dist/dialog/index.mjs +161 -0
  157. package/dist/dialog/types.d.ts +38 -0
  158. package/dist/divider/Divider.vue.d.ts +74 -0
  159. package/dist/divider/index.d.ts +5 -0
  160. package/dist/divider/index.js +2 -0
  161. package/dist/divider/index.mjs +96 -0
  162. package/dist/divider/types.d.ts +57 -0
  163. package/dist/drawer/Drawer.vue.d.ts +106 -0
  164. package/dist/drawer/index.d.ts +5 -0
  165. package/dist/drawer/index.js +2 -0
  166. package/dist/drawer/index.mjs +168 -0
  167. package/dist/drawer/types.d.ts +42 -0
  168. package/dist/dropdown/Dropdown.vue.d.ts +109 -0
  169. package/dist/dropdown/DropdownItem.vue.d.ts +60 -0
  170. package/dist/dropdown/index.d.ts +7 -0
  171. package/dist/dropdown/index.js +3 -0
  172. package/dist/dropdown/index.mjs +310 -0
  173. package/dist/dropdown/types.d.ts +87 -0
  174. package/dist/empty/Empty.vue.d.ts +47 -0
  175. package/dist/empty/index.d.ts +70 -0
  176. package/dist/empty/index.js +2 -0
  177. package/dist/empty/index.mjs +50 -0
  178. package/dist/empty/types.d.ts +16 -0
  179. package/dist/feedback-runtime/manager.d.ts +109 -0
  180. package/dist/feedback-runtime/mount.d.ts +5 -0
  181. package/dist/feedback-runtime/types.d.ts +27 -0
  182. package/dist/form/Form.vue.d.ts +37 -0
  183. package/dist/form/FormItem.vue.d.ts +32 -0
  184. package/dist/form/FormSchemaFields.vue.d.ts +7 -0
  185. package/dist/form/context.d.ts +33 -0
  186. package/dist/form/index.d.ts +6 -0
  187. package/dist/form/index.js +2 -0
  188. package/dist/form/index.mjs +389 -0
  189. package/dist/grid/Col.vue.d.ts +101 -0
  190. package/dist/grid/Row.vue.d.ts +56 -0
  191. package/dist/grid/index.d.ts +7 -0
  192. package/dist/grid/index.js +2 -0
  193. package/dist/grid/index.mjs +182 -0
  194. package/dist/grid/responsive.d.ts +9 -0
  195. package/dist/grid/types.d.ts +85 -0
  196. package/dist/hooks/index.d.ts +3 -0
  197. package/dist/hooks/index.js +1 -0
  198. package/dist/hooks/index.mjs +9 -0
  199. package/dist/hooks/use-form-item.d.ts +13 -0
  200. package/dist/hooks/use-id.d.ts +5 -0
  201. package/dist/hooks/useCanvasRenderer.d.ts +10 -0
  202. package/dist/hooks/useImageLoader.d.ts +20 -0
  203. package/dist/hooks/useResizeObserver.d.ts +17 -0
  204. package/dist/icon/Icon.vue.d.ts +20 -0
  205. package/dist/icon/index.d.ts +5 -0
  206. package/dist/icon/index.js +2 -0
  207. package/dist/icon/index.mjs +10 -0
  208. package/dist/icon/types.d.ts +45 -0
  209. package/dist/image/Image.vue.d.ts +38 -0
  210. package/dist/image/index.d.ts +5 -0
  211. package/dist/image/index.js +2 -0
  212. package/dist/image/index.mjs +128 -0
  213. package/dist/image/types.d.ts +10 -0
  214. package/dist/index.d.ts +59 -0
  215. package/dist/index.js +1 -0
  216. package/dist/index.mjs +362 -0
  217. package/dist/input/Input.vue.d.ts +47 -0
  218. package/dist/input/index.d.ts +5 -0
  219. package/dist/input/index.js +2 -0
  220. package/dist/input/index.mjs +10 -0
  221. package/dist/input/types.d.ts +51 -0
  222. package/dist/input-number/InputNumber.vue.d.ts +119 -0
  223. package/dist/input-number/index.d.ts +5 -0
  224. package/dist/input-number/index.js +2 -0
  225. package/dist/input-number/index.mjs +312 -0
  226. package/dist/input-number/types.d.ts +58 -0
  227. package/dist/layout/Content.vue.d.ts +29 -0
  228. package/dist/layout/Footer.vue.d.ts +29 -0
  229. package/dist/layout/Header.vue.d.ts +29 -0
  230. package/dist/layout/Layout.vue.d.ts +32 -0
  231. package/dist/layout/Sider.vue.d.ts +59 -0
  232. package/dist/layout/index.d.ts +13 -0
  233. package/dist/layout/index.js +2 -0
  234. package/dist/layout/index.mjs +154 -0
  235. package/dist/layout/types.d.ts +51 -0
  236. package/dist/layout-system/responsive.d.ts +4 -0
  237. package/dist/layout-system/types.d.ts +3 -0
  238. package/dist/loading/Loading.vue.d.ts +57 -0
  239. package/dist/loading/LoadingMask.vue.d.ts +8 -0
  240. package/dist/loading/directive.d.ts +5 -0
  241. package/dist/loading/index.d.ts +7 -0
  242. package/dist/loading/index.js +2 -0
  243. package/dist/loading/index.mjs +275 -0
  244. package/dist/loading/types.d.ts +23 -0
  245. package/dist/mentions/Mentions.vue.d.ts +337 -0
  246. package/dist/mentions/index.d.ts +296 -0
  247. package/dist/mentions/index.js +5 -0
  248. package/dist/mentions/index.mjs +357 -0
  249. package/dist/mentions/types.d.ts +55 -0
  250. package/dist/menu/Menu.vue.d.ts +120 -0
  251. package/dist/menu/MenuDivider.vue.d.ts +2 -0
  252. package/dist/menu/MenuGroup.vue.d.ts +29 -0
  253. package/dist/menu/MenuItem.vue.d.ts +48 -0
  254. package/dist/menu/MenuNodeRenderer.vue.d.ts +6 -0
  255. package/dist/menu/SubMenu.vue.d.ts +57 -0
  256. package/dist/menu/index.d.ts +13 -0
  257. package/dist/menu/index.js +2 -0
  258. package/dist/menu/index.mjs +772 -0
  259. package/dist/menu/types.d.ts +126 -0
  260. package/dist/message/MessageHost.vue.d.ts +15 -0
  261. package/dist/message/MessageItem.vue.d.ts +15 -0
  262. package/dist/message/index.d.ts +10 -0
  263. package/dist/message/index.js +2 -0
  264. package/dist/message/index.mjs +199 -0
  265. package/dist/message/runtime.d.ts +149 -0
  266. package/dist/message/types.d.ts +12 -0
  267. package/dist/notification/NotificationHost.vue.d.ts +15 -0
  268. package/dist/notification/NotificationItem.vue.d.ts +15 -0
  269. package/dist/notification/index.d.ts +10 -0
  270. package/dist/notification/index.js +2 -0
  271. package/dist/notification/index.mjs +207 -0
  272. package/dist/notification/runtime.d.ts +155 -0
  273. package/dist/notification/types.d.ts +12 -0
  274. package/dist/otp-input/OTPInput.vue.d.ts +84 -0
  275. package/dist/otp-input/index.d.ts +5 -0
  276. package/dist/otp-input/index.js +2 -0
  277. package/dist/otp-input/index.mjs +216 -0
  278. package/dist/otp-input/types.d.ts +41 -0
  279. package/dist/pagination/Pagination.vue.d.ts +101 -0
  280. package/dist/pagination/index.d.ts +102 -0
  281. package/dist/pagination/index.js +2 -0
  282. package/dist/pagination/index.mjs +260 -0
  283. package/dist/pagination/types.d.ts +48 -0
  284. package/dist/popover/Popover.vue.d.ts +136 -0
  285. package/dist/popover/index.d.ts +5 -0
  286. package/dist/popover/index.js +2 -0
  287. package/dist/popover/index.mjs +13 -0
  288. package/dist/popover/types.d.ts +49 -0
  289. package/dist/radio/Radio.vue.d.ts +30 -0
  290. package/dist/radio/RadioGroup.vue.d.ts +26 -0
  291. package/dist/radio/constants.d.ts +3 -0
  292. package/dist/radio/index.d.ts +7 -0
  293. package/dist/radio/index.js +2 -0
  294. package/dist/radio/index.mjs +273 -0
  295. package/dist/radio/types.d.ts +45 -0
  296. package/dist/rate/Rate.vue.d.ts +139 -0
  297. package/dist/rate/index.d.ts +140 -0
  298. package/dist/rate/index.js +3 -0
  299. package/dist/rate/index.mjs +276 -0
  300. package/dist/rate/types.d.ts +66 -0
  301. package/dist/rich-text/RichText.vue.d.ts +25 -0
  302. package/dist/rich-text/index.d.ts +17 -0
  303. package/dist/rich-text/index.js +2 -0
  304. package/dist/rich-text/index.mjs +312 -0
  305. package/dist/scrollbar/Scrollbar.vue.d.ts +37 -0
  306. package/dist/scrollbar/index.d.ts +5 -0
  307. package/dist/scrollbar/index.js +2 -0
  308. package/dist/scrollbar/index.mjs +10 -0
  309. package/dist/scrollbar/types.d.ts +17 -0
  310. package/dist/select/Option.vue.d.ts +45 -0
  311. package/dist/select/Select.vue.d.ts +136 -0
  312. package/dist/select/index.d.ts +9 -0
  313. package/dist/select/index.js +3 -0
  314. package/dist/select/index.mjs +656 -0
  315. package/dist/select/types.d.ts +92 -0
  316. package/dist/slider/Slider.vue.d.ts +123 -0
  317. package/dist/slider/index.d.ts +5 -0
  318. package/dist/slider/index.js +2 -0
  319. package/dist/slider/index.mjs +326 -0
  320. package/dist/slider/types.d.ts +57 -0
  321. package/dist/space/Space.vue.d.ts +75 -0
  322. package/dist/space/index.d.ts +5 -0
  323. package/dist/space/index.js +2 -0
  324. package/dist/space/index.mjs +104 -0
  325. package/dist/space/types.d.ts +34 -0
  326. package/dist/splitter/Splitter.vue.d.ts +52 -0
  327. package/dist/splitter/SplitterPane.vue.d.ts +38 -0
  328. package/dist/splitter/index.d.ts +7 -0
  329. package/dist/splitter/index.js +2 -0
  330. package/dist/splitter/index.mjs +252 -0
  331. package/dist/splitter/types.d.ts +41 -0
  332. package/dist/splitter/utils.d.ts +6 -0
  333. package/dist/style/Button.css +1 -0
  334. package/dist/style/Checkbox.css +1 -0
  335. package/dist/style/Icon.css +1 -0
  336. package/dist/style/Input.css +1 -0
  337. package/dist/style/Popover.css +1 -0
  338. package/dist/style/Scrollbar.css +1 -0
  339. package/dist/style/TimePanel.css +1 -0
  340. package/dist/style/autocomplete.css +1 -0
  341. package/dist/style/avatar.css +1 -0
  342. package/dist/style/badge.css +1 -0
  343. package/dist/style/base.css +1 -0
  344. package/dist/style/breadcrumb.css +1 -0
  345. package/dist/style/card.css +1 -0
  346. package/dist/style/carousel.css +1 -0
  347. package/dist/style/cascader.css +1 -0
  348. package/dist/style/collapse.css +1 -0
  349. package/dist/style/color-picker.css +1 -0
  350. package/dist/style/context-menu.css +1 -0
  351. package/dist/style/date-picker.css +1 -0
  352. package/dist/style/dialog.css +1 -0
  353. package/dist/style/divider.css +1 -0
  354. package/dist/style/drawer.css +1 -0
  355. package/dist/style/empty.css +1 -0
  356. package/dist/style/form.css +1 -0
  357. package/dist/style/grid.css +1 -0
  358. package/dist/style/image.css +1 -0
  359. package/dist/style/index.css +1 -0
  360. package/dist/style/input-number.css +1 -0
  361. package/dist/style/layout.css +1 -0
  362. package/dist/style/loading.css +1 -0
  363. package/dist/style/mentions.css +1 -0
  364. package/dist/style/menu.css +1 -0
  365. package/dist/style/message.css +1 -0
  366. package/dist/style/notification.css +1 -0
  367. package/dist/style/otp-input.css +1 -0
  368. package/dist/style/pagination.css +1 -0
  369. package/dist/style/radio.css +1 -0
  370. package/dist/style/rate.css +1 -0
  371. package/dist/style/rich-text.css +1 -0
  372. package/dist/style/select.css +1 -0
  373. package/dist/style/slider.css +1 -0
  374. package/dist/style/space.css +1 -0
  375. package/dist/style/splitter.css +1 -0
  376. package/dist/style/switch.css +1 -0
  377. package/dist/style/table.css +1 -0
  378. package/dist/style/tabs.css +1 -0
  379. package/dist/style/tag.css +1 -0
  380. package/dist/style/tooltip.css +1 -0
  381. package/dist/style/transfer.css +1 -0
  382. package/dist/style/tree-select.css +1 -0
  383. package/dist/style/tree.css +1 -0
  384. package/dist/style/upload.css +1 -0
  385. package/dist/style/watermark.css +1 -0
  386. package/dist/switch/Switch.vue.d.ts +95 -0
  387. package/dist/switch/index.d.ts +5 -0
  388. package/dist/switch/index.js +2 -0
  389. package/dist/switch/index.mjs +285 -0
  390. package/dist/switch/types.d.ts +81 -0
  391. package/dist/table/Table.vue.d.ts +102 -0
  392. package/dist/table/index.d.ts +5 -0
  393. package/dist/table/index.js +2 -0
  394. package/dist/table/index.mjs +263 -0
  395. package/dist/table/types.d.ts +64 -0
  396. package/dist/tabs/TabPane.vue.d.ts +55 -0
  397. package/dist/tabs/Tabs.vue.d.ts +92 -0
  398. package/dist/tabs/index.d.ts +7 -0
  399. package/dist/tabs/index.js +2 -0
  400. package/dist/tabs/index.mjs +266 -0
  401. package/dist/tabs/types.d.ts +78 -0
  402. package/dist/tag/Tag.vue.d.ts +38 -0
  403. package/dist/tag/index.d.ts +5 -0
  404. package/dist/tag/index.js +2 -0
  405. package/dist/tag/index.mjs +123 -0
  406. package/dist/tag/types.d.ts +83 -0
  407. package/dist/time-picker/TimePanel.vue.d.ts +19 -0
  408. package/dist/time-picker/TimePicker.vue.d.ts +15 -0
  409. package/dist/time-picker/index.d.ts +6 -0
  410. package/dist/time-picker/index.js +4 -0
  411. package/dist/time-picker/index.mjs +91 -0
  412. package/dist/tooltip/Tooltip.vue.d.ts +99 -0
  413. package/dist/tooltip/index.d.ts +5 -0
  414. package/dist/tooltip/index.js +2 -0
  415. package/dist/tooltip/index.mjs +186 -0
  416. package/dist/tooltip/types.d.ts +37 -0
  417. package/dist/transfer/Transfer.vue.d.ts +104 -0
  418. package/dist/transfer/TransferPanel.vue.d.ts +90 -0
  419. package/dist/transfer/index.d.ts +167 -0
  420. package/dist/transfer/index.js +7 -0
  421. package/dist/transfer/index.mjs +343 -0
  422. package/dist/tree/Tree.vue.d.ts +237 -0
  423. package/dist/tree/TreeRow.vue.d.ts +24 -0
  424. package/dist/tree/TreeView.vue.d.ts +24 -0
  425. package/dist/tree/context.d.ts +3 -0
  426. package/dist/tree/index.d.ts +431 -0
  427. package/dist/tree/index.js +2 -0
  428. package/dist/tree/index.mjs +548 -0
  429. package/dist/tree/types.d.ts +127 -0
  430. package/dist/tree/use-tree-foundation.d.ts +37 -0
  431. package/dist/tree-select/TreeNode.vue.d.ts +7 -0
  432. package/dist/tree-select/TreeSelect.vue.d.ts +210 -0
  433. package/dist/tree-select/index.d.ts +7 -0
  434. package/dist/tree-select/index.js +3 -0
  435. package/dist/tree-select/index.mjs +799 -0
  436. package/dist/tree-select/types.d.ts +111 -0
  437. package/dist/upload/Upload.vue.d.ts +50 -0
  438. package/dist/upload/index.d.ts +67 -0
  439. package/dist/upload/index.js +3 -0
  440. package/dist/upload/index.mjs +271 -0
  441. package/dist/utils/install.d.ts +3 -0
  442. package/dist/utils/style.d.ts +1 -0
  443. package/dist/watermark/Watermark.vue.d.ts +98 -0
  444. package/dist/watermark/index.d.ts +5 -0
  445. package/dist/watermark/index.js +2 -0
  446. package/dist/watermark/index.mjs +183 -0
  447. package/dist/watermark/types.d.ts +85 -0
  448. package/package.json +69 -0
  449. package/src/autocomplete/style/index.css +80 -0
  450. package/src/avatar/style/index.css +105 -0
  451. package/src/badge/style/index.css +232 -0
  452. package/src/base.css +4 -0
  453. package/src/breadcrumb/style/index.css +75 -0
  454. package/src/button/style/index.css +242 -0
  455. package/src/card/style/index.css +60 -0
  456. package/src/carousel/style/index.css +195 -0
  457. package/src/cascader/style/index.css +153 -0
  458. package/src/checkbox/style/index.css +165 -0
  459. package/src/collapse/style/index.css +166 -0
  460. package/src/color-picker/style/index.css +132 -0
  461. package/src/context-menu/style/index.css +21 -0
  462. package/src/date-picker/style/index.css +372 -0
  463. package/src/dialog/style/index.css +141 -0
  464. package/src/divider/style/index.css +112 -0
  465. package/src/drawer/style/index.css +211 -0
  466. package/src/dropdown/style/index.css +118 -0
  467. package/src/empty/style/index.css +87 -0
  468. package/src/form/style/index.css +148 -0
  469. package/src/grid/style/index.css +16 -0
  470. package/src/icon/style/index.css +28 -0
  471. package/src/image/style/index.css +114 -0
  472. package/src/input/style/index.css +217 -0
  473. package/src/input-number/style/index.css +166 -0
  474. package/src/layout/style/index.css +37 -0
  475. package/src/loading/style/index.css +58 -0
  476. package/src/mentions/style/index.css +83 -0
  477. package/src/menu/style/index.css +300 -0
  478. package/src/message/style/index.css +109 -0
  479. package/src/notification/style/index.css +116 -0
  480. package/src/otp-input/style/index.css +96 -0
  481. package/src/pagination/style/index.css +96 -0
  482. package/src/popover/style/index.css +47 -0
  483. package/src/radio/style/index.css +185 -0
  484. package/src/rate/style/index.css +89 -0
  485. package/src/rich-text/style/index.css +154 -0
  486. package/src/scrollbar/style/index.css +57 -0
  487. package/src/select/style/index.css +262 -0
  488. package/src/slider/style/index.css +181 -0
  489. package/src/space/style/index.css +31 -0
  490. package/src/splitter/style/index.css +76 -0
  491. package/src/style.css +1 -0
  492. package/src/styles/reset.css +29 -0
  493. package/src/switch/style/index.css +164 -0
  494. package/src/table/style/index.css +108 -0
  495. package/src/tabs/style/index.css +270 -0
  496. package/src/tag/style/index.css +207 -0
  497. package/src/time-picker/style/index.css +135 -0
  498. package/src/tooltip/style/index.css +50 -0
  499. package/src/transfer/style/index.css +181 -0
  500. package/src/tree/style/index.css +246 -0
  501. package/src/tree-select/style/index.css +346 -0
  502. package/src/upload/style/index.css +166 -0
  503. package/src/watermark/style/index.css +15 -0
  504. package/style.css +1 -0
@@ -0,0 +1,799 @@
1
+ import '../style/tree-select.css';
2
+ import '../style/Icon.css';
3
+ import { defineComponent as he, inject as Ne, computed as u, resolveComponent as we, openBlock as c, createElementBlock as f, normalizeStyle as te, normalizeClass as D, unref as r, createElementVNode as m, createCommentVNode as A, Fragment as R, createBlock as W, withModifiers as Q, toDisplayString as q, withDirectives as le, renderList as ae, vShow as xe, ref as X, watch as J, nextTick as j, onMounted as Se, onUnmounted as Le, provide as Ee, isRef as re, vModelText as ce, createVNode as ue, Teleport as Te, Transition as Ve, withCtx as Fe } from "vue";
4
+ import "../chunks/manager-BUdQK4AD.mjs";
5
+ import { u as $e } from "../chunks/z-index-D9ecXoNe.mjs";
6
+ import { a as Ae } from "../chunks/auto-update-Dw-2qIsQ.mjs";
7
+ import { c as Y } from "../chunks/index-B0yEC3RG.mjs";
8
+ import { c as Pe } from "../chunks/controller-DdEBnv9V.mjs";
9
+ import { c as ze } from "../chunks/controller-3cWaJJMW.mjs";
10
+ import { u as Be } from "../chunks/use-signals-CE1T2jXK.mjs";
11
+ import { useTeleportedConfig as He } from "../config-provider/index.mjs";
12
+ import { u as Me } from "../chunks/use-form-item-CqDbWCiU.mjs";
13
+ import { u as Ie } from "../chunks/use-id-D3casveg.mjs";
14
+ import { _ as fe } from "../chunks/Icon.vue_vue_type_script_setup_true_lang-LQ-KuJ6a.mjs";
15
+ import { LIcon as De } from "../icon/index.mjs";
16
+ const ve = (a) => Array.isArray(a) ? [...a] : a == null || a === "" ? [] : [a], Re = (a) => a.nodes ?? a.data ?? [], Oe = (a, o) => {
17
+ var d;
18
+ if ((d = o.fieldNames) != null && d.key)
19
+ return o.fieldNames.key;
20
+ if (o.nodeKey && o.nodeKey !== "id")
21
+ return o.nodeKey;
22
+ const e = a[0];
23
+ return !e || typeof e != "object" || "id" in e ? "id" : "key" in e ? "key" : "value" in e ? "value" : "id";
24
+ }, ee = (a, o) => {
25
+ var d, l;
26
+ const e = Oe(a, o);
27
+ return {
28
+ key: e,
29
+ id: e,
30
+ label: ((d = o.fieldNames) == null ? void 0 : d.label) ?? o.labelKey ?? "label",
31
+ children: ((l = o.fieldNames) == null ? void 0 : l.children) ?? o.childrenKey ?? "children"
32
+ };
33
+ }, pe = (a, o) => o ? [...a] : a[0] ?? null;
34
+ function Ue(a = {}) {
35
+ const o = a.multiple ?? !1, e = Re(a), d = ee(e, a), l = ze({
36
+ nodes: e,
37
+ selectedKeys: ve(a.modelValue),
38
+ expandedKeys: a.defaultExpandedKeys,
39
+ multiple: o,
40
+ checkStrictly: a.checkStrictly,
41
+ fieldNames: d,
42
+ onSelect: (s) => {
43
+ var w, n;
44
+ const _ = pe(s, o);
45
+ (w = a.onChange) == null || w.call(a, _), o && ((n = a.onCheck) == null || n.call(a, {
46
+ checkedKeys: s,
47
+ halfCheckedKeys: l.actions.getHalfCheckedKeys(),
48
+ checkedNodes: l.actions.getCheckedNodes(),
49
+ halfCheckedNodes: l.actions.getHalfCheckedNodes()
50
+ }));
51
+ }
52
+ }), b = Pe({
53
+ placement: a.placement ?? "bottom-start",
54
+ offset: a.offset ?? 4,
55
+ flip: a.flip ?? !0,
56
+ shift: a.shift ?? !0,
57
+ onOpen: () => {
58
+ var s;
59
+ return (s = a.onVisibleChange) == null ? void 0 : s.call(a, !0);
60
+ },
61
+ onClose: () => {
62
+ var s;
63
+ return (s = a.onVisibleChange) == null ? void 0 : s.call(a, !1);
64
+ }
65
+ }), g = Y(() => {
66
+ const s = /* @__PURE__ */ new Map(), _ = l.state.fieldNames, w = _.id, n = _.label, z = _.children, T = (U) => {
67
+ U.forEach((x) => {
68
+ s.set(x[w], x[n]);
69
+ const C = x[z];
70
+ Array.isArray(C) && T(C);
71
+ });
72
+ };
73
+ return T(l.state.data), s;
74
+ }), E = Y(() => {
75
+ if (o)
76
+ return "";
77
+ const s = l.state.selectedKeys[0];
78
+ return s == null || s === "" ? "" : g.value.get(s) ?? s;
79
+ }), M = Y(() => l.state.selectedKeys.length > 0), h = (s) => {
80
+ a.autoExpandParent !== !1 && s.length > 0 && l.actions.expandParents(s);
81
+ }, S = (s) => {
82
+ const _ = ve(s);
83
+ l.actions.setCheckedKeys(_), h(_);
84
+ }, p = (s) => {
85
+ l.actions.setFocusedKey(s), l.actions.select(s), h(l.state.selectedKeys), o || b.actions.close();
86
+ }, k = (s) => {
87
+ l.actions.setCheckedKeys(s), h(s);
88
+ }, O = (s) => {
89
+ const _ = l.state.fieldNames.key ?? l.state.fieldNames.id, w = s.map((n) => n[_]);
90
+ k(w);
91
+ }, K = (s) => {
92
+ l.state.data = s, l.state.fieldNames = ee(s, a), h(l.state.selectedKeys);
93
+ }, P = (s) => {
94
+ l.state.fieldNames = ee(l.state.data, {
95
+ ...a,
96
+ fieldNames: s
97
+ }), h(l.state.selectedKeys);
98
+ };
99
+ return h(l.state.selectedKeys), {
100
+ state: {
101
+ get data() {
102
+ return l.state.data;
103
+ },
104
+ get selectedKeys() {
105
+ return l.state.selectedKeys;
106
+ },
107
+ get indeterminateKeys() {
108
+ return l.state.indeterminateKeys;
109
+ },
110
+ get expandedKeys() {
111
+ return l.state.expandedKeys;
112
+ },
113
+ get focusedKey() {
114
+ return l.state.focusedKey;
115
+ },
116
+ set focusedKey(s) {
117
+ l.state.focusedKey = s;
118
+ },
119
+ get filterText() {
120
+ return l.state.filterText;
121
+ },
122
+ set filterText(s) {
123
+ l.state.filterText = s;
124
+ },
125
+ get fieldNames() {
126
+ return l.state.fieldNames;
127
+ },
128
+ get visibleRows() {
129
+ return l.state.visibleRows;
130
+ },
131
+ get isOpen() {
132
+ return b.state.isOpen;
133
+ },
134
+ set isOpen(s) {
135
+ b.state.isOpen = s;
136
+ },
137
+ get x() {
138
+ return b.state.x;
139
+ },
140
+ get y() {
141
+ return b.state.y;
142
+ },
143
+ get placement() {
144
+ return b.state.placement;
145
+ },
146
+ get modelValue() {
147
+ return pe(l.state.selectedKeys, o);
148
+ },
149
+ get displayLabel() {
150
+ return E.value;
151
+ },
152
+ get hasValues() {
153
+ return M.value;
154
+ },
155
+ get multiple() {
156
+ return o;
157
+ }
158
+ },
159
+ actions: {
160
+ open: b.actions.open,
161
+ close: b.actions.close,
162
+ toggle: b.actions.toggle,
163
+ updatePosition: b.actions.updatePosition,
164
+ syncModelValue: S,
165
+ setData: K,
166
+ setFieldNames: P,
167
+ select: p,
168
+ toggleExpand: l.actions.toggleExpand,
169
+ focusFirst: l.actions.focusFirst,
170
+ focusLast: l.actions.focusLast,
171
+ focusNext: l.actions.focusNext,
172
+ focusPrevious: l.actions.focusPrevious,
173
+ focusParent: l.actions.focusParent,
174
+ focusFirstChild: l.actions.focusFirstChild,
175
+ setFocusedKey: l.actions.setFocusedKey,
176
+ setCheckedKeys: k,
177
+ setCheckedNodes: O,
178
+ getCheckedKeys: l.actions.getCheckedKeys,
179
+ getCheckedNodes: l.actions.getCheckedNodes,
180
+ getHalfCheckedKeys: l.actions.getHalfCheckedKeys,
181
+ getHalfCheckedNodes: l.actions.getHalfCheckedNodes,
182
+ expandAll: l.actions.expandAll,
183
+ collapseAll: l.actions.collapseAll,
184
+ expandParents: l.actions.expandParents,
185
+ getLabel: (s) => g.value.get(s) ?? s
186
+ }
187
+ };
188
+ }
189
+ const Ze = {
190
+ modelValue: {
191
+ type: [String, Number, Array],
192
+ default: null
193
+ },
194
+ nodes: {
195
+ type: Array,
196
+ default: void 0
197
+ },
198
+ data: {
199
+ type: Array,
200
+ default: () => []
201
+ },
202
+ defaultExpandedKeys: {
203
+ type: Array,
204
+ default: () => []
205
+ },
206
+ nodeKey: {
207
+ type: String,
208
+ default: "id"
209
+ },
210
+ labelKey: {
211
+ type: String,
212
+ default: "label"
213
+ },
214
+ childrenKey: {
215
+ type: String,
216
+ default: "children"
217
+ },
218
+ fieldNames: {
219
+ type: Object,
220
+ default: void 0
221
+ },
222
+ multiple: {
223
+ type: Boolean,
224
+ default: !1
225
+ },
226
+ disabled: {
227
+ type: Boolean,
228
+ default: !1
229
+ },
230
+ clearable: {
231
+ type: Boolean,
232
+ default: !1
233
+ },
234
+ filterable: {
235
+ type: Boolean,
236
+ default: !1
237
+ },
238
+ placeholder: {
239
+ type: String,
240
+ default: "请选择"
241
+ },
242
+ size: {
243
+ type: String
244
+ },
245
+ checkStrictly: {
246
+ type: Boolean,
247
+ default: !1
248
+ },
249
+ loading: {
250
+ type: Boolean,
251
+ default: !1
252
+ },
253
+ noDataText: {
254
+ type: String,
255
+ default: "无数据"
256
+ },
257
+ showIcon: {
258
+ type: Boolean,
259
+ default: !0
260
+ },
261
+ autoExpandParent: {
262
+ type: Boolean,
263
+ default: !0
264
+ }
265
+ }, je = {
266
+ "update:modelValue": (a) => !0,
267
+ change: (a) => !0,
268
+ check: (a) => !0,
269
+ clear: () => !0,
270
+ "visible-change": (a) => !0,
271
+ "node-click": (a) => !0
272
+ }, me = Symbol("TreeSelectKey"), qe = ["id", "data-tree-key", "aria-level", "aria-expanded", "aria-selected", "aria-checked", "aria-disabled"], We = ["aria-label"], Ge = {
273
+ key: 1,
274
+ class: "l-tree-node__icon"
275
+ }, Je = {
276
+ key: 0,
277
+ viewBox: "0 0 1024 1024",
278
+ width: "16",
279
+ height: "16"
280
+ }, Qe = {
281
+ key: 1,
282
+ viewBox: "0 0 1024 1024",
283
+ width: "16",
284
+ height: "16"
285
+ }, Xe = ["aria-checked", "disabled"], Ye = {
286
+ key: 0,
287
+ viewBox: "0 0 16 16",
288
+ width: "12",
289
+ height: "12"
290
+ }, et = {
291
+ key: 1,
292
+ viewBox: "0 0 1024 1024",
293
+ width: "10",
294
+ height: "10"
295
+ }, tt = { class: "l-tree-node__label" }, lt = {
296
+ key: 3,
297
+ class: "l-tree-node__check",
298
+ "aria-hidden": "true"
299
+ }, at = {
300
+ key: 0,
301
+ class: "l-tree-node__children"
302
+ }, ge = /* @__PURE__ */ he({
303
+ name: "TreeNode",
304
+ __name: "TreeNode",
305
+ props: {
306
+ node: {},
307
+ level: {}
308
+ },
309
+ setup(a) {
310
+ const o = a, e = Ne(me), d = u(() => (e == null ? void 0 : e.fieldNames.id) || "id"), l = u(() => (e == null ? void 0 : e.fieldNames.label) || "label"), b = u(() => (e == null ? void 0 : e.fieldNames.children) || "children"), g = u(() => o.node[d.value]), E = u(() => o.node[l.value]), M = u(() => o.node[b.value] || []), h = u(
311
+ () => e == null ? void 0 : e.visibleRows.value.find((N) => N.key === g.value)
312
+ ), S = u(() => e == null ? void 0 : e.expandedKeys.value.includes(g.value)), p = u(() => e == null ? void 0 : e.selectedKeys.value.includes(g.value)), k = u(() => e == null ? void 0 : e.indeterminateKeys.value.includes(g.value)), O = u(() => (e == null ? void 0 : e.focusedKey.value) === g.value), K = u(() => M.value.length > 0), P = u(() => [
313
+ "l-tree-node",
314
+ {
315
+ "is-selected": p.value,
316
+ "is-indeterminate": k.value
317
+ }
318
+ ]), s = u(() => {
319
+ if (!(e != null && e.filterText.value)) return !0;
320
+ const N = e.filterText.value.toLowerCase(), y = (B) => {
321
+ if (String(B[l.value]).toLowerCase().includes(N)) return !0;
322
+ const V = B[b.value];
323
+ return (V == null ? void 0 : V.some((I) => y(I))) ?? !1;
324
+ };
325
+ return y(o.node);
326
+ }), _ = (N) => {
327
+ N.stopPropagation(), K.value && (e != null && e.focusedKey && (e.focusedKey.value = g.value), e == null || e.toggleExpand(g.value));
328
+ }, w = () => {
329
+ o.node.disabled || (e != null && e.focusedKey && (e.focusedKey.value = g.value), e == null || e.select(g.value));
330
+ }, n = u(() => [
331
+ "l-tree-node__content",
332
+ {
333
+ "is-selected": p.value,
334
+ "is-indeterminate": k.value,
335
+ "is-focused": O.value,
336
+ "is-disabled": o.node.disabled,
337
+ "is-expanded": S.value,
338
+ "is-leaf": !K.value
339
+ }
340
+ ]), z = u(() => {
341
+ const y = o.level * 22 + 8;
342
+ return {
343
+ "--l-tree-level": o.level,
344
+ "--l-tree-node-offset": `${y}px`
345
+ };
346
+ }), T = u(() => (e == null ? void 0 : e.props.multiple) ?? !1), U = u(() => (e == null ? void 0 : e.props.showIcon) ?? !0), x = u(
347
+ () => T.value ? void 0 : p.value ? "true" : "false"
348
+ ), C = u(() => {
349
+ if (T.value)
350
+ return k.value ? "mixed" : p.value ? "true" : "false";
351
+ }), F = u(() => o.node.icon), G = u(() => {
352
+ if (!U.value) return !1;
353
+ const N = F.value;
354
+ return !(N === !1 || N === null || N === "none");
355
+ }), L = u(() => F.value === void 0);
356
+ return (N, y) => {
357
+ var V, I;
358
+ const B = we("TreeNode", !0);
359
+ return s.value ? (c(), f("div", {
360
+ key: 0,
361
+ id: (V = r(e)) == null ? void 0 : V.getRowId(g.value),
362
+ class: D(P.value),
363
+ "data-tree-key": g.value,
364
+ role: "treeitem",
365
+ "aria-level": (((I = h.value) == null ? void 0 : I.level) ?? a.level) + 1,
366
+ "aria-expanded": K.value ? S.value ? "true" : "false" : void 0,
367
+ "aria-selected": x.value,
368
+ "aria-checked": C.value,
369
+ "aria-disabled": o.node.disabled ? "true" : "false",
370
+ style: te({
371
+ "--l-tree-level": a.level,
372
+ "--l-tree-branch-width": "8px"
373
+ })
374
+ }, [
375
+ m("div", {
376
+ class: D(n.value),
377
+ style: te(z.value),
378
+ onClick: w
379
+ }, [
380
+ K.value ? (c(), f("button", {
381
+ key: 0,
382
+ type: "button",
383
+ class: D(["l-tree-node__expand-icon", { "is-expanded": S.value }]),
384
+ "aria-label": S.value ? "Collapse node" : "Expand node",
385
+ onClick: _
386
+ }, [...y[0] || (y[0] = [
387
+ m("svg", {
388
+ viewBox: "0 0 1024 1024",
389
+ width: "10",
390
+ height: "10"
391
+ }, [
392
+ m("path", {
393
+ fill: "currentColor",
394
+ d: "M338.752 104.448l65.344-65.344L836.48 471.552l-432.384 432.384-65.344-65.344 367.04-367.04z"
395
+ })
396
+ ], -1)
397
+ ])], 10, We)) : A("", !0),
398
+ G.value ? (c(), f("span", Ge, [
399
+ L.value ? (c(), f(R, { key: 1 }, [
400
+ K.value ? (c(), f("svg", Je, [...y[1] || (y[1] = [
401
+ m("path", {
402
+ fill: "currentColor",
403
+ d: "M880 298.4H521L437.3 151c-4.1-7.1-11.7-11.5-19.9-11.5H144c-17.7 0-32 14.3-32 32v685c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zm-40 530.5H184V211.4h216.7L484.4 353c4.1 7.1 11.7 11.5 19.9 11.5H840v464.4z"
404
+ }, null, -1)
405
+ ])])) : (c(), f("svg", Qe, [...y[2] || (y[2] = [
406
+ m("path", {
407
+ fill: "currentColor",
408
+ d: "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v222c0 17.7 14.3 32 32 32h226v498z"
409
+ }, null, -1)
410
+ ])]))
411
+ ], 64)) : (c(), f(R, { key: 0 }, [
412
+ typeof F.value == "string" ? (c(), W(fe, {
413
+ key: 0,
414
+ name: F.value,
415
+ size: "16"
416
+ }, null, 8, ["name"])) : (c(), W(fe, {
417
+ key: 1,
418
+ component: F.value,
419
+ size: "16"
420
+ }, null, 8, ["component"]))
421
+ ], 64))
422
+ ])) : A("", !0),
423
+ T.value ? (c(), f("button", {
424
+ key: 2,
425
+ type: "button",
426
+ class: D(["l-tree-node__checkbox", {
427
+ "is-checked": p.value,
428
+ "is-indeterminate": k.value
429
+ }]),
430
+ role: "checkbox",
431
+ "aria-checked": C.value,
432
+ disabled: o.node.disabled,
433
+ onClick: Q(w, ["stop"])
434
+ }, [
435
+ p.value ? (c(), f("svg", Ye, [...y[3] || (y[3] = [
436
+ m("path", {
437
+ fill: "currentColor",
438
+ d: "M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425a.247.247 0 0 1 .02-.022Z"
439
+ }, null, -1)
440
+ ])])) : k.value ? (c(), f("svg", et, [...y[4] || (y[4] = [
441
+ m("path", {
442
+ fill: "currentColor",
443
+ d: "M128 448h768v128H128z"
444
+ }, null, -1)
445
+ ])])) : A("", !0)
446
+ ], 10, Xe)) : A("", !0),
447
+ m("span", tt, q(E.value), 1),
448
+ p.value && !T.value ? (c(), f("span", lt, [...y[5] || (y[5] = [
449
+ m("svg", {
450
+ viewBox: "0 0 16 16",
451
+ width: "14",
452
+ height: "14"
453
+ }, [
454
+ m("path", {
455
+ fill: "currentColor",
456
+ d: "M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425a.247.247 0 0 1 .02-.022Z"
457
+ })
458
+ ], -1)
459
+ ])])) : A("", !0)
460
+ ], 6),
461
+ K.value ? le((c(), f("div", at, [
462
+ (c(!0), f(R, null, ae(M.value, (Z) => (c(), W(B, {
463
+ key: Z[d.value],
464
+ node: Z,
465
+ level: a.level + 1
466
+ }, null, 8, ["node", "level"]))), 128))
467
+ ], 512)), [
468
+ [xe, S.value]
469
+ ]) : A("", !0)
470
+ ], 14, qe)) : A("", !0);
471
+ };
472
+ }
473
+ }), st = ["id", "disabled"], nt = ["aria-expanded", "aria-disabled"], ot = {
474
+ key: 0,
475
+ class: "l-tree-select__tags"
476
+ }, dt = { class: "l-tree-select-tag__text" }, it = ["onClick"], rt = ["id", "placeholder"], ct = ["id", "placeholder"], ut = {
477
+ key: 1,
478
+ class: "l-tree-select__value"
479
+ }, ft = {
480
+ key: 2,
481
+ class: "l-tree-select__placeholder"
482
+ }, vt = { class: "l-tree-select__suffix" }, pt = ["data-theme"], yt = { class: "l-tree-select__dropdown" }, ht = {
483
+ key: 0,
484
+ class: "l-tree-select__empty"
485
+ }, mt = ["aria-activedescendant", "aria-multiselectable", "aria-disabled"], gt = /* @__PURE__ */ he({
486
+ name: "TreeSelect",
487
+ __name: "TreeSelect",
488
+ props: Ze,
489
+ emits: je,
490
+ setup(a, { expose: o, emit: e }) {
491
+ const d = a, l = e, { teleportedCssVars: b, teleportedTheme: g } = He(), { formItem: E, size: M, disabled: h, inputId: S } = Me(d), p = X(null), k = X(null), O = Ie("l-tree-select"), K = (S == null ? void 0 : S.value) || O, P = `${K}-tree`, s = u(() => d.nodes ?? d.data), _ = () => {
492
+ var i;
493
+ if ((i = d.fieldNames) != null && i.key) return d.fieldNames.key;
494
+ if (d.nodeKey !== "id") return d.nodeKey;
495
+ const t = s.value[0];
496
+ return !t || typeof t != "object" || "id" in t ? "id" : "key" in t ? "key" : "value" in t ? "value" : "id";
497
+ }, w = u(() => {
498
+ var i, v;
499
+ const t = _();
500
+ return {
501
+ key: t,
502
+ id: t,
503
+ label: ((i = d.fieldNames) == null ? void 0 : i.label) ?? d.labelKey,
504
+ children: ((v = d.fieldNames) == null ? void 0 : v.children) ?? d.childrenKey
505
+ };
506
+ }), n = Ue({
507
+ data: s.value,
508
+ modelValue: d.modelValue,
509
+ defaultExpandedKeys: d.defaultExpandedKeys,
510
+ nodeKey: d.nodeKey,
511
+ labelKey: d.labelKey,
512
+ childrenKey: d.childrenKey,
513
+ fieldNames: w.value,
514
+ multiple: d.multiple,
515
+ checkStrictly: d.checkStrictly,
516
+ autoExpandParent: d.autoExpandParent,
517
+ onChange: (t) => {
518
+ l("update:modelValue", t), l("change", t), E == null || E.validate("change").catch(() => {
519
+ });
520
+ },
521
+ onCheck: (t) => {
522
+ l("check", t);
523
+ },
524
+ onVisibleChange: (t) => {
525
+ l("visible-change", t);
526
+ }
527
+ }), {
528
+ selectedKeys: z,
529
+ indeterminateKeys: T,
530
+ expandedKeys: U,
531
+ focusedKey: x,
532
+ filterText: C,
533
+ fieldNames: F,
534
+ visibleRows: G,
535
+ isOpen: L,
536
+ x: N,
537
+ y,
538
+ displayLabel: B,
539
+ hasValues: V
540
+ } = Be(n);
541
+ J(s, (t) => {
542
+ n.actions.setData(t);
543
+ }, { deep: !0 }), J(w, (t) => {
544
+ n.actions.setFieldNames(t);
545
+ }, { deep: !0 }), J(() => d.modelValue, (t) => {
546
+ n.actions.syncModelValue(t);
547
+ }, { deep: !0 });
548
+ const I = () => G.value.find((t) => t.key === x.value), Z = (t) => `${K}-row-${String(t)}`, se = u(
549
+ () => x.value == null ? void 0 : Z(x.value)
550
+ ), ne = () => {
551
+ h.value || x.value == null && n.actions.focusFirst();
552
+ }, H = () => {
553
+ p.value && k.value && n.actions.updatePosition(p.value, k.value);
554
+ }, oe = (t) => {
555
+ if (h.value) return;
556
+ const i = I();
557
+ let v = !0;
558
+ switch (t.key) {
559
+ case "ArrowDown":
560
+ n.actions.focusNext();
561
+ break;
562
+ case "ArrowUp":
563
+ n.actions.focusPrevious();
564
+ break;
565
+ case "Home":
566
+ n.actions.focusFirst();
567
+ break;
568
+ case "End":
569
+ n.actions.focusLast();
570
+ break;
571
+ case "ArrowRight":
572
+ i ? !i.isLeaf && !i.isExpanded ? (n.actions.toggleExpand(i.key), j(H)) : n.actions.focusFirstChild() : n.actions.focusFirst();
573
+ break;
574
+ case "ArrowLeft":
575
+ i ? !i.isLeaf && i.isExpanded ? (n.actions.toggleExpand(i.key), j(H)) : n.actions.focusParent() : n.actions.focusFirst();
576
+ break;
577
+ case "Enter":
578
+ case " ":
579
+ case "Spacebar":
580
+ i && !i.isDisabled && n.actions.select(i.key);
581
+ break;
582
+ default:
583
+ v = !1;
584
+ }
585
+ v && t.preventDefault();
586
+ }, ke = () => {
587
+ h.value || (L.value || n.actions.open(), j(() => {
588
+ var t;
589
+ x.value == null && n.actions.focusFirst(), (t = document.getElementById(P)) == null || t.focus();
590
+ }));
591
+ }, be = (t) => {
592
+ if (!h.value)
593
+ switch (t.key) {
594
+ case "ArrowDown":
595
+ case "Enter":
596
+ case " ":
597
+ case "Spacebar":
598
+ t.preventDefault(), ke();
599
+ break;
600
+ case "Escape":
601
+ if (!L.value) return;
602
+ t.preventDefault(), n.actions.close();
603
+ break;
604
+ }
605
+ }, { nextZIndex: Ke } = $e(), de = X(2e3), _e = () => {
606
+ h.value || n.actions.toggle();
607
+ }, Ce = u(() => ({
608
+ top: `${y.value}px`,
609
+ left: `${N.value}px`,
610
+ width: p.value ? `${p.value.offsetWidth}px` : "auto",
611
+ zIndex: de.value,
612
+ ...b.value
613
+ })), ie = (t) => {
614
+ p.value && !p.value.contains(t.target) && k.value && !k.value.contains(t.target) && n.actions.close();
615
+ };
616
+ let $ = null;
617
+ return J(L, async (t) => {
618
+ var i;
619
+ if (t) {
620
+ if (de.value = Ke(), await j(), H(), p.value && k.value && ($ = Ae(p.value, k.value, H)), d.filterable) {
621
+ const v = (i = p.value) == null ? void 0 : i.querySelector(".l-tree-select__input");
622
+ v == null || v.focus();
623
+ }
624
+ return;
625
+ }
626
+ $ == null || $(), $ = null, C.value = "", E == null || E.validate("blur").catch(() => {
627
+ });
628
+ }), Se(() => {
629
+ document.addEventListener("click", ie), window.addEventListener("resize", H);
630
+ }), Le(() => {
631
+ document.removeEventListener("click", ie), window.removeEventListener("resize", H), $ == null || $(), $ = null, n.actions.close();
632
+ }), Ee(me, {
633
+ props: d,
634
+ selectedKeys: z,
635
+ indeterminateKeys: T,
636
+ expandedKeys: U,
637
+ filterText: C,
638
+ visibleRows: G,
639
+ focusedKey: x,
640
+ fieldNames: F.value,
641
+ activeDescendantId: se,
642
+ getRowId: Z,
643
+ handleTreeFocus: ne,
644
+ handleTreeKeydown: oe,
645
+ select: (t) => {
646
+ n.actions.select(t);
647
+ },
648
+ toggleExpand: (t) => {
649
+ n.actions.setFocusedKey(t), n.actions.toggleExpand(t), j(H);
650
+ }
651
+ }), o({
652
+ getCheckedKeys: () => z.value,
653
+ getCheckedNodes: () => n.actions.getCheckedNodes(),
654
+ getHalfCheckedKeys: () => T.value,
655
+ getHalfCheckedNodes: () => n.actions.getHalfCheckedNodes(),
656
+ setCheckedKeys: (t) => {
657
+ n.actions.setCheckedKeys(t), l("update:modelValue", d.multiple ? t : t[0] ?? null);
658
+ },
659
+ setCheckedNodes: (t) => {
660
+ n.actions.setCheckedNodes(t), l("update:modelValue", n.state.modelValue);
661
+ },
662
+ setAllExpand: (t) => {
663
+ if (t) {
664
+ n.actions.expandAll();
665
+ return;
666
+ }
667
+ n.actions.collapseAll();
668
+ },
669
+ expandAll: () => n.actions.expandAll(),
670
+ collapseAll: () => n.actions.collapseAll()
671
+ }), (t, i) => (c(), f("div", {
672
+ ref_key: "selectRef",
673
+ ref: p,
674
+ class: D(["l-tree-select", [`l-tree-select--${r(M)}`, { "is-open": r(L), "is-disabled": r(h) }]])
675
+ }, [
676
+ m("input", {
677
+ id: r(K),
678
+ type: "text",
679
+ style: { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", "white-space": "nowrap", border: "0" },
680
+ "aria-hidden": "true",
681
+ tabindex: "-1",
682
+ disabled: r(h)
683
+ }, null, 8, st),
684
+ m("div", {
685
+ class: "l-tree-select__trigger",
686
+ role: "combobox",
687
+ tabindex: "0",
688
+ "aria-haspopup": "tree",
689
+ "aria-expanded": r(L) ? "true" : "false",
690
+ "aria-controls": P,
691
+ "aria-disabled": r(h) ? "true" : "false",
692
+ onClick: _e,
693
+ onKeydown: be
694
+ }, [
695
+ t.multiple ? (c(), f("div", ot, [
696
+ (c(!0), f(R, null, ae(r(z), (v) => (c(), f("span", {
697
+ key: v,
698
+ class: "l-tree-select-tag"
699
+ }, [
700
+ m("span", dt, q(r(n).actions.getLabel(v)), 1),
701
+ m("button", {
702
+ type: "button",
703
+ class: "l-tree-select-tag__close",
704
+ "aria-label": "Remove selected node",
705
+ onClick: Q((bt) => r(n).actions.select(v), ["stop"])
706
+ }, [...i[4] || (i[4] = [
707
+ m("svg", {
708
+ viewBox: "0 0 1024 1024",
709
+ width: "10",
710
+ height: "10"
711
+ }, [
712
+ m("path", {
713
+ fill: "currentColor",
714
+ d: "M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9c-4.4 5.2-.7 13.1 6.1 13.1h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"
715
+ })
716
+ ], -1)
717
+ ])], 8, it)
718
+ ]))), 128)),
719
+ t.filterable ? le((c(), f("input", {
720
+ key: 0,
721
+ id: `${r(K)}-input`,
722
+ "onUpdate:modelValue": i[0] || (i[0] = (v) => re(C) ? C.value = v : null),
723
+ type: "text",
724
+ class: "l-tree-select__input",
725
+ placeholder: r(V) ? "" : t.placeholder,
726
+ onClick: i[1] || (i[1] = Q((v) => r(L) ? null : r(n).actions.open(), ["stop"]))
727
+ }, null, 8, rt)), [
728
+ [ce, r(C)]
729
+ ]) : A("", !0)
730
+ ])) : (c(), f(R, { key: 1 }, [
731
+ t.filterable ? le((c(), f("input", {
732
+ key: 0,
733
+ id: `${r(K)}-input`,
734
+ "onUpdate:modelValue": i[2] || (i[2] = (v) => re(C) ? C.value = v : null),
735
+ type: "text",
736
+ class: "l-tree-select__input",
737
+ placeholder: r(V) ? r(B) : t.placeholder,
738
+ onClick: i[3] || (i[3] = Q((v) => r(L) ? null : r(n).actions.open(), ["stop"]))
739
+ }, null, 8, ct)), [
740
+ [ce, r(C)]
741
+ ]) : r(V) ? (c(), f("div", ut, q(r(B)), 1)) : (c(), f("div", ft, q(t.placeholder), 1))
742
+ ], 64)),
743
+ m("div", vt, [
744
+ ue(r(De), {
745
+ name: "lucide:chevron-down",
746
+ class: D({ "is-reverse": r(L) })
747
+ }, null, 8, ["class"])
748
+ ])
749
+ ], 40, nt),
750
+ (c(), W(Te, { to: "body" }, [
751
+ ue(Ve, { name: "l-fade" }, {
752
+ default: Fe(() => [
753
+ r(L) ? (c(), f("div", {
754
+ key: 0,
755
+ ref_key: "popperRef",
756
+ ref: k,
757
+ class: "l-tree-select__popper",
758
+ "data-theme": r(g),
759
+ style: te(Ce.value)
760
+ }, [
761
+ m("div", yt, [
762
+ s.value.length === 0 ? (c(), f("div", ht, q(t.noDataText), 1)) : (c(), f("div", {
763
+ key: 1,
764
+ id: P,
765
+ class: "l-tree-select__tree",
766
+ role: "tree",
767
+ tabindex: "0",
768
+ "aria-activedescendant": se.value,
769
+ "aria-multiselectable": t.multiple ? "true" : void 0,
770
+ "aria-disabled": r(h) ? "true" : "false",
771
+ onFocus: ne,
772
+ onKeydown: oe
773
+ }, [
774
+ (c(!0), f(R, null, ae(s.value, (v) => (c(), W(ge, {
775
+ key: v[r(F).key || r(F).id || "id"],
776
+ node: v,
777
+ level: 0
778
+ }, null, 8, ["node"]))), 128))
779
+ ], 40, mt))
780
+ ])
781
+ ], 12, pt)) : A("", !0)
782
+ ]),
783
+ _: 1
784
+ })
785
+ ]))
786
+ ], 2));
787
+ }
788
+ }), ye = gt, kt = ge;
789
+ ye.install = (a) => {
790
+ a.component("LTreeSelect", ye), a.component("LTreeNode", kt);
791
+ };
792
+ export {
793
+ kt as LTreeNode,
794
+ ye as LTreeSelect,
795
+ me as TreeSelectKey,
796
+ ye as default,
797
+ je as treeSelectEmits,
798
+ Ze as treeSelectProps
799
+ };