@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,298 @@
1
+ export declare const LAutoComplete: import('../utils/install').SFCWithInstall<{
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ readonly modelValue: {
4
+ readonly type: StringConstructor;
5
+ readonly default: "";
6
+ };
7
+ readonly fetchSuggestions: {
8
+ readonly type: import('vue').PropType<(queryString: string, cb: (data: any[]) => void) => void>;
9
+ readonly required: true;
10
+ };
11
+ readonly placeholder: StringConstructor;
12
+ readonly disabled: BooleanConstructor;
13
+ readonly clearable: BooleanConstructor;
14
+ readonly size: {
15
+ readonly type: import('vue').PropType<"sm" | "md" | "lg">;
16
+ readonly default: "md";
17
+ };
18
+ readonly triggerOnFocus: {
19
+ readonly type: BooleanConstructor;
20
+ readonly default: false;
21
+ };
22
+ readonly debounce: {
23
+ readonly type: NumberConstructor;
24
+ readonly default: 300;
25
+ };
26
+ readonly placement: {
27
+ readonly type: import('vue').PropType<import('../../../headless/src/index.ts').Placement>;
28
+ readonly default: "bottom-start";
29
+ };
30
+ readonly popperClass: StringConstructor;
31
+ readonly valueKey: {
32
+ readonly type: StringConstructor;
33
+ readonly default: "value";
34
+ };
35
+ readonly noDataText: StringConstructor;
36
+ }>> & Readonly<{
37
+ onFocus?: ((_e: FocusEvent) => any) | undefined;
38
+ onBlur?: ((_e: FocusEvent) => any) | undefined;
39
+ onChange?: ((_val: string) => any) | undefined;
40
+ onSelect?: ((_item: any) => any) | undefined;
41
+ onClear?: (() => any) | undefined;
42
+ "onUpdate:modelValue"?: ((_val: string) => any) | undefined;
43
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
44
+ focus: (_e: FocusEvent) => void;
45
+ blur: (_e: FocusEvent) => void;
46
+ change: (_val: string) => void;
47
+ select: (_item: any) => void;
48
+ clear: () => void;
49
+ "update:modelValue": (_val: string) => void;
50
+ }, import('vue').PublicProps, {
51
+ readonly size: "sm" | "md" | "lg";
52
+ readonly disabled: boolean;
53
+ readonly placement: import('../../../headless/src/index.ts').Placement;
54
+ readonly modelValue: string;
55
+ readonly clearable: boolean;
56
+ readonly triggerOnFocus: boolean;
57
+ readonly debounce: number;
58
+ readonly valueKey: string;
59
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
60
+ inputRef: ({
61
+ $: import('vue').ComponentInternalInstance;
62
+ $data: {};
63
+ $props: {
64
+ readonly modelValue?: string | number | undefined;
65
+ readonly type?: "text" | "password" | "textarea" | "number" | "email" | "tel" | undefined;
66
+ readonly placeholder?: string | undefined;
67
+ readonly disabled?: boolean | undefined;
68
+ readonly readonly?: boolean | undefined;
69
+ readonly clearable?: boolean | undefined;
70
+ readonly showPassword?: boolean | undefined;
71
+ readonly size?: "sm" | "md" | "lg" | undefined;
72
+ readonly maxLength?: number | string | undefined;
73
+ readonly minLength?: number | string | undefined;
74
+ readonly showWordLimit?: boolean | undefined;
75
+ readonly rows?: number | string | undefined;
76
+ readonly autosize?: boolean | {
77
+ minRows?: number;
78
+ maxRows?: number;
79
+ } | undefined;
80
+ readonly prefixIcon?: string | undefined;
81
+ readonly suffixIcon?: string | undefined;
82
+ readonly autofocus?: boolean | undefined;
83
+ readonly autocomplete?: string | undefined;
84
+ readonly name?: string | undefined;
85
+ readonly id?: string | undefined;
86
+ readonly onFocus?: ((event: FocusEvent) => any) | undefined;
87
+ readonly onBlur?: ((event: FocusEvent) => any) | undefined;
88
+ readonly onChange?: ((value: string) => any) | undefined;
89
+ readonly onInput?: ((value: string) => any) | undefined;
90
+ readonly onClear?: (() => any) | undefined;
91
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
92
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
93
+ $attrs: import('vue').Attrs;
94
+ $refs: {
95
+ [x: string]: unknown;
96
+ } & {
97
+ inputRef: HTMLInputElement;
98
+ };
99
+ $slots: Readonly<{
100
+ [name: string]: import('vue').Slot<any> | undefined;
101
+ }>;
102
+ $root: import('vue').ComponentPublicInstance | null;
103
+ $parent: import('vue').ComponentPublicInstance | null;
104
+ $host: Element | null;
105
+ $emit: ((event: "focus", event: FocusEvent) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "clear") => void) & ((event: "update:modelValue", value: string) => void);
106
+ $el: any;
107
+ $options: import('vue').ComponentOptionsBase<Readonly<import('..').InputProps> & Readonly<{
108
+ onFocus?: ((event: FocusEvent) => any) | undefined;
109
+ onBlur?: ((event: FocusEvent) => any) | undefined;
110
+ onChange?: ((value: string) => any) | undefined;
111
+ onInput?: ((value: string) => any) | undefined;
112
+ onClear?: (() => any) | undefined;
113
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
114
+ }>, {
115
+ input: import('vue').Ref<HTMLInputElement | HTMLTextAreaElement | null, HTMLInputElement | HTMLTextAreaElement | null>;
116
+ focus: () => void | undefined;
117
+ blur: () => void | undefined;
118
+ select: () => void | undefined;
119
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
120
+ focus: (event: FocusEvent) => any;
121
+ blur: (event: FocusEvent) => any;
122
+ change: (value: string) => any;
123
+ input: (value: string) => any;
124
+ clear: () => any;
125
+ "update:modelValue": (value: string) => any;
126
+ }, string, {
127
+ type: "text" | "password" | "textarea" | "number" | "email" | "tel";
128
+ autocomplete: string;
129
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
130
+ beforeCreate?: (() => void) | (() => void)[];
131
+ created?: (() => void) | (() => void)[];
132
+ beforeMount?: (() => void) | (() => void)[];
133
+ mounted?: (() => void) | (() => void)[];
134
+ beforeUpdate?: (() => void) | (() => void)[];
135
+ updated?: (() => void) | (() => void)[];
136
+ activated?: (() => void) | (() => void)[];
137
+ deactivated?: (() => void) | (() => void)[];
138
+ beforeDestroy?: (() => void) | (() => void)[];
139
+ beforeUnmount?: (() => void) | (() => void)[];
140
+ destroyed?: (() => void) | (() => void)[];
141
+ unmounted?: (() => void) | (() => void)[];
142
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
143
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
144
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
145
+ };
146
+ $forceUpdate: () => void;
147
+ $nextTick: typeof import('vue').nextTick;
148
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
149
+ } & Readonly<{
150
+ type: "text" | "password" | "textarea" | "number" | "email" | "tel";
151
+ autocomplete: string;
152
+ }> & Omit<Readonly<import('..').InputProps> & Readonly<{
153
+ onFocus?: ((event: FocusEvent) => any) | undefined;
154
+ onBlur?: ((event: FocusEvent) => any) | undefined;
155
+ onChange?: ((value: string) => any) | undefined;
156
+ onInput?: ((value: string) => any) | undefined;
157
+ onClear?: (() => any) | undefined;
158
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
159
+ }>, "focus" | "blur" | "input" | "select" | ("type" | "autocomplete")> & {
160
+ input: HTMLInputElement | HTMLTextAreaElement | null;
161
+ focus: () => void | undefined;
162
+ blur: () => void | undefined;
163
+ select: () => void | undefined;
164
+ } & {} & import('vue').ComponentCustomProperties & {} & {
165
+ $slots: {
166
+ prepend?(_: {}): any;
167
+ prefix?(_: {}): any;
168
+ suffix?(_: {}): any;
169
+ append?(_: {}): any;
170
+ };
171
+ }) | null;
172
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
173
+ P: {};
174
+ B: {};
175
+ D: {};
176
+ C: {};
177
+ M: {};
178
+ Defaults: {};
179
+ }, Readonly<import('vue').ExtractPropTypes<{
180
+ readonly modelValue: {
181
+ readonly type: StringConstructor;
182
+ readonly default: "";
183
+ };
184
+ readonly fetchSuggestions: {
185
+ readonly type: import('vue').PropType<(queryString: string, cb: (data: any[]) => void) => void>;
186
+ readonly required: true;
187
+ };
188
+ readonly placeholder: StringConstructor;
189
+ readonly disabled: BooleanConstructor;
190
+ readonly clearable: BooleanConstructor;
191
+ readonly size: {
192
+ readonly type: import('vue').PropType<"sm" | "md" | "lg">;
193
+ readonly default: "md";
194
+ };
195
+ readonly triggerOnFocus: {
196
+ readonly type: BooleanConstructor;
197
+ readonly default: false;
198
+ };
199
+ readonly debounce: {
200
+ readonly type: NumberConstructor;
201
+ readonly default: 300;
202
+ };
203
+ readonly placement: {
204
+ readonly type: import('vue').PropType<import('../../../headless/src/index.ts').Placement>;
205
+ readonly default: "bottom-start";
206
+ };
207
+ readonly popperClass: StringConstructor;
208
+ readonly valueKey: {
209
+ readonly type: StringConstructor;
210
+ readonly default: "value";
211
+ };
212
+ readonly noDataText: StringConstructor;
213
+ }>> & Readonly<{
214
+ onFocus?: ((_e: FocusEvent) => any) | undefined;
215
+ onBlur?: ((_e: FocusEvent) => any) | undefined;
216
+ onChange?: ((_val: string) => any) | undefined;
217
+ onSelect?: ((_item: any) => any) | undefined;
218
+ onClear?: (() => any) | undefined;
219
+ "onUpdate:modelValue"?: ((_val: string) => any) | undefined;
220
+ }>, {}, {}, {}, {}, {
221
+ readonly size: "sm" | "md" | "lg";
222
+ readonly disabled: boolean;
223
+ readonly placement: import('../../../headless/src/index.ts').Placement;
224
+ readonly modelValue: string;
225
+ readonly clearable: boolean;
226
+ readonly triggerOnFocus: boolean;
227
+ readonly debounce: number;
228
+ readonly valueKey: string;
229
+ }>;
230
+ __isFragment?: never;
231
+ __isTeleport?: never;
232
+ __isSuspense?: never;
233
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
234
+ readonly modelValue: {
235
+ readonly type: StringConstructor;
236
+ readonly default: "";
237
+ };
238
+ readonly fetchSuggestions: {
239
+ readonly type: import('vue').PropType<(queryString: string, cb: (data: any[]) => void) => void>;
240
+ readonly required: true;
241
+ };
242
+ readonly placeholder: StringConstructor;
243
+ readonly disabled: BooleanConstructor;
244
+ readonly clearable: BooleanConstructor;
245
+ readonly size: {
246
+ readonly type: import('vue').PropType<"sm" | "md" | "lg">;
247
+ readonly default: "md";
248
+ };
249
+ readonly triggerOnFocus: {
250
+ readonly type: BooleanConstructor;
251
+ readonly default: false;
252
+ };
253
+ readonly debounce: {
254
+ readonly type: NumberConstructor;
255
+ readonly default: 300;
256
+ };
257
+ readonly placement: {
258
+ readonly type: import('vue').PropType<import('../../../headless/src/index.ts').Placement>;
259
+ readonly default: "bottom-start";
260
+ };
261
+ readonly popperClass: StringConstructor;
262
+ readonly valueKey: {
263
+ readonly type: StringConstructor;
264
+ readonly default: "value";
265
+ };
266
+ readonly noDataText: StringConstructor;
267
+ }>> & Readonly<{
268
+ onFocus?: ((_e: FocusEvent) => any) | undefined;
269
+ onBlur?: ((_e: FocusEvent) => any) | undefined;
270
+ onChange?: ((_val: string) => any) | undefined;
271
+ onSelect?: ((_item: any) => any) | undefined;
272
+ onClear?: (() => any) | undefined;
273
+ "onUpdate:modelValue"?: ((_val: string) => any) | undefined;
274
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
275
+ focus: (_e: FocusEvent) => void;
276
+ blur: (_e: FocusEvent) => void;
277
+ change: (_val: string) => void;
278
+ select: (_item: any) => void;
279
+ clear: () => void;
280
+ "update:modelValue": (_val: string) => void;
281
+ }, string, {
282
+ readonly size: "sm" | "md" | "lg";
283
+ readonly disabled: boolean;
284
+ readonly placement: import('../../../headless/src/index.ts').Placement;
285
+ readonly modelValue: string;
286
+ readonly clearable: boolean;
287
+ readonly triggerOnFocus: boolean;
288
+ readonly debounce: number;
289
+ readonly valueKey: string;
290
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
291
+ $slots: {
292
+ default?(_: {
293
+ item: any;
294
+ }): any;
295
+ };
296
+ })>;
297
+ export default LAutoComplete;
298
+ export * from './types';
@@ -0,0 +1,4 @@
1
+ require('../style/autocomplete.css');
2
+ require('../style/Input.css');
3
+ require('../style/Popover.css');
4
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const $=require("../chunks/install-gnn2dOg9.js"),e=require("vue");require("../chunks/manager-C0AUxQ1I.js");const _=require("../chunks/index-DWAWrVaT.js"),q=require("../chunks/id-CfLxBW9l.js"),N=require("../chunks/use-signals-Bz1smiXh.js"),A=require("../chunks/use-form-item-CloIcyon.js"),M=require("../chunks/use-id-BycaM3-h.js"),L=require("../chunks/Input.vue_vue_type_script_setup_true_lang-8x2HE2Cj.js"),K=require("../chunks/Popover.vue_vue_type_script_setup_true_lang-TF9OnqB0.js");function R(a){const h=a.idPrefix??q.useId("autocomplete"),o=_.signal(a.value??""),s=_.signal(a.suggestions??[]),u=_.signal(-1),k=_.signal(!1),d=_.signal(!1),g=()=>typeof a.disabled=="function"?a.disabled():a.disabled??!1,n=_.signal(g());typeof a.disabled=="function"&&_.effect(()=>{n.value=g()});const B=t=>{var i;n.value||(o.value=t,u.value=-1,(i=a.onInput)==null||i.call(a,t))},f=t=>{var I;if(n.value)return;const i=typeof t=="string"?t:t.value??t.label??String(t);o.value=i,d.value=!1,(I=a.onSelect)==null||I.call(a,t)};return{state:{get value(){return o.value},set value(t){o.value=t},get suggestions(){return s.value},set suggestions(t){s.value=t},get activeIndex(){return u.value},set activeIndex(t){u.value=t},get loading(){return k.value},set loading(t){k.value=t},get isOpen(){return d.value},set isOpen(t){d.value=t},get disabled(){return n.value},set disabled(t){n.value=t}},actions:{handleInput:B,select:f,navigate:t=>{if(n.value||!d.value||s.value.length===0)return;const i=s.value.length;if(u.value===-1){u.value=t==="down"?0:i-1;return}t==="down"?u.value=(u.value+1)%i:u.value=(u.value-1+i)%i},confirmSelection:()=>{u.value>=0&&u.value<s.value.length?f(s.value[u.value]):d.value=!1},open:()=>{n.value||(d.value=!0)},close:()=>{d.value=!1},updateDisabled:()=>{n.value=g()}},getInputProps:()=>({role:"combobox","aria-autocomplete":"list","aria-expanded":d.value,"aria-controls":`${h}-listbox`,"aria-activedescendant":u.value>=0?`${h}-option-${u.value}`:void 0}),getListProps:()=>({id:`${h}-listbox`,role:"listbox"}),getItemProps:t=>({id:`${h}-option-${t}`,role:"option","aria-selected":u.value===t})}}const D={modelValue:{type:String,default:""},fetchSuggestions:{type:Function,required:!0},placeholder:String,disabled:Boolean,clearable:Boolean,size:{type:String,default:"md"},triggerOnFocus:{type:Boolean,default:!1},debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},popperClass:String,valueKey:{type:String,default:"value"},noDataText:String},E={"update:modelValue":a=>!0,select:a=>!0,change:a=>!0,focus:a=>!0,blur:a=>!0,clear:()=>!0},U={key:0,class:"l-autocomplete__loading"},j=["onMousedown"],G={key:1,class:"l-autocomplete__empty"},H=e.defineComponent({name:"LAutoComplete",__name:"AutoComplete",props:D,emits:E,setup(a,{emit:h}){const o=a,s=h,{formItem:u,size:k,disabled:d,inputId:g}=A.useFormItem(),n=e.computed(()=>o.disabled||d.value),B=e.ref(null);let f=null,y=null;const S=()=>{f&&(clearTimeout(f),f=null)},t=()=>{y&&(clearTimeout(y),y=null)},i=M.useId("autocomplete"),I=(g==null?void 0:g.value)||i,v=R({value:o.modelValue,disabled:()=>n.value,idPrefix:I,onInput:l=>{s("update:modelValue",l),s("change",l),V(l)},onSelect:l=>{const c=typeof l=="string"?l:l[o.valueKey];s("update:modelValue",c),s("select",l),u==null||u.validate("change").catch(()=>{})}}),{value:m,suggestions:C,activeIndex:w,loading:b,isOpen:p}=N.useController(v,{disabled:()=>n.value}),V=l=>{if(S(),t(),w.value=-1,!o.triggerOnFocus&&!l){b.value=!1,C.value=[],p.value=!1;return}const c=()=>{b.value=!0,(o.triggerOnFocus||l)&&(p.value=!0),o.fetchSuggestions(l,r=>{b.value=!1,C.value=r,p.value=r.length>0||!!l&&!!o.noDataText})};o.debounce>0?f=setTimeout(()=>{f=null,c()},o.debounce):c()},x=l=>{s("focus",l),t(),!n.value&&(o.triggerOnFocus||m.value)&&V(m.value)},z=l=>{s("blur",l),S(),t(),y=setTimeout(()=>{y=null,p.value=!1,b.value=!1,w.value=-1},150)},F=l=>{if(p.value)switch(l.key){case"ArrowUp":l.preventDefault(),v.actions.navigate("up");break;case"ArrowDown":l.preventDefault(),v.actions.navigate("down");break;case"Enter":w.value!==-1&&(l.preventDefault(),v.actions.confirmSelection());break;case"Escape":p.value=!1;break}},O=()=>{s("clear"),V("")};return e.watch(()=>o.modelValue,l=>{l!==m.value&&(m.value=l)}),e.onUnmounted(()=>{S(),t()}),(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["l-autocomplete",[`l-autocomplete--${l.size||e.unref(k)}`,{"is-disabled":n.value}]])},[e.createVNode(K._sfc_main,{visible:e.unref(p),"onUpdate:visible":c[1]||(c[1]=r=>e.isRef(p)?p.value=r:null),trigger:"manual",placement:l.placement,disabled:n.value,"popper-class":["l-autocomplete__popper",l.popperClass],width:"auto"},{content:e.withCtx(()=>[e.unref(b)||e.unref(C).length>0?(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:0,class:"l-autocomplete__suggestions"},e.unref(v).getListProps()),[e.unref(b)?(e.openBlock(),e.createElementBlock("li",U,[...c[2]||(c[2]=[e.createElementVNode("svg",{class:"l-autocomplete__loading-icon",viewBox:"0 0 1024 1024",width:"16",height:"16"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64c-247.4 0-448 200.6-448 448S264.6 960 512 960s448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",opacity:".2"}),e.createElementVNode("path",{fill:"currentColor",d:"M512 140c-11.3 0-20.7 9.4-20.7 20.7v103.5c0 11.3 9.4 20.7 20.7 20.7s20.7-9.4 20.7-20.7V160.7c0-11.3-9.4-20.7-20.7-20.7z"})],-1)])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(C),(r,P)=>(e.openBlock(),e.createElementBlock("li",e.mergeProps({key:P,class:["l-autocomplete__item",{"is-active":P===e.unref(w)}]},{ref_for:!0},e.unref(v).getItemProps(P),{onMousedown:e.withModifiers(J=>e.unref(v).actions.select(r),["prevent"])}),[e.renderSlot(l.$slots,"default",{item:r},()=>[e.createTextVNode(e.toDisplayString(typeof r=="string"?r:r[l.valueKey]),1)])],16,j))),128))],16)):!e.unref(b)&&e.unref(C).length===0?(e.openBlock(),e.createElementBlock("div",G,e.toDisplayString(l.noDataText||"无匹配数据"),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(L._sfc_main,e.mergeProps({ref_key:"inputRef",ref:B,id:e.unref(I),modelValue:e.unref(m),"onUpdate:modelValue":c[0]||(c[0]=r=>e.isRef(m)?m.value=r:null),placeholder:l.placeholder,disabled:n.value},e.unref(v).getInputProps(),{size:l.size||e.unref(k),clearable:l.clearable,onInput:e.unref(v).actions.handleInput,onFocus:x,onBlur:z,onKeydown:F,onClear:O}),null,16,["id","modelValue","placeholder","disabled","size","clearable","onInput"])]),_:3},8,["visible","placement","disabled","popper-class"])],2))}}),T=$.withInstall(H);exports.LAutoComplete=T;exports.autoCompleteEmits=E;exports.autoCompleteProps=D;exports.default=T;
@@ -0,0 +1,321 @@
1
+ import '../style/autocomplete.css';
2
+ import '../style/Input.css';
3
+ import '../style/Popover.css';
4
+ import { w as N } from "../chunks/install-DJNxamQ0.mjs";
5
+ import { defineComponent as U, computed as R, ref as j, watch as G, onUnmounted as H, openBlock as _, createElementBlock as I, normalizeClass as J, unref as o, createVNode as F, isRef as B, withCtx as O, mergeProps as P, createElementVNode as x, Fragment as Q, renderList as W, withModifiers as X, renderSlot as Y, createTextVNode as Z, toDisplayString as A, createCommentVNode as q } from "vue";
6
+ import "../chunks/manager-BUdQK4AD.mjs";
7
+ import { s as w, e as ee } from "../chunks/index-B0yEC3RG.mjs";
8
+ import { u as le } from "../chunks/id-VS2potoV.mjs";
9
+ import { u as te } from "../chunks/use-signals-CE1T2jXK.mjs";
10
+ import { u as ae } from "../chunks/use-form-item-CqDbWCiU.mjs";
11
+ import { u as oe } from "../chunks/use-id-D3casveg.mjs";
12
+ import { _ as ue } from "../chunks/Input.vue_vue_type_script_setup_true_lang-PeDZ7smO.mjs";
13
+ import { _ as se } from "../chunks/Popover.vue_vue_type_script_setup_true_lang-CVWbekIQ.mjs";
14
+ function ne(t) {
15
+ const h = t.idPrefix ?? le("autocomplete"), u = w(t.value ?? ""), n = w(t.suggestions ?? []), a = w(-1), C = w(!1), d = w(!1), m = () => typeof t.disabled == "function" ? t.disabled() : t.disabled ?? !1, s = w(m());
16
+ typeof t.disabled == "function" && ee(() => {
17
+ s.value = m();
18
+ });
19
+ const T = (l) => {
20
+ var i;
21
+ s.value || (u.value = l, a.value = -1, (i = t.onInput) == null || i.call(t, l));
22
+ }, f = (l) => {
23
+ var S;
24
+ if (s.value) return;
25
+ const i = typeof l == "string" ? l : l.value ?? l.label ?? String(l);
26
+ u.value = i, d.value = !1, (S = t.onSelect) == null || S.call(t, l);
27
+ };
28
+ return {
29
+ state: {
30
+ get value() {
31
+ return u.value;
32
+ },
33
+ set value(l) {
34
+ u.value = l;
35
+ },
36
+ get suggestions() {
37
+ return n.value;
38
+ },
39
+ set suggestions(l) {
40
+ n.value = l;
41
+ },
42
+ get activeIndex() {
43
+ return a.value;
44
+ },
45
+ set activeIndex(l) {
46
+ a.value = l;
47
+ },
48
+ get loading() {
49
+ return C.value;
50
+ },
51
+ set loading(l) {
52
+ C.value = l;
53
+ },
54
+ get isOpen() {
55
+ return d.value;
56
+ },
57
+ set isOpen(l) {
58
+ d.value = l;
59
+ },
60
+ get disabled() {
61
+ return s.value;
62
+ },
63
+ set disabled(l) {
64
+ s.value = l;
65
+ }
66
+ },
67
+ actions: {
68
+ handleInput: T,
69
+ select: f,
70
+ navigate: (l) => {
71
+ if (s.value || !d.value || n.value.length === 0) return;
72
+ const i = n.value.length;
73
+ if (a.value === -1) {
74
+ a.value = l === "down" ? 0 : i - 1;
75
+ return;
76
+ }
77
+ l === "down" ? a.value = (a.value + 1) % i : a.value = (a.value - 1 + i) % i;
78
+ },
79
+ confirmSelection: () => {
80
+ a.value >= 0 && a.value < n.value.length ? f(n.value[a.value]) : d.value = !1;
81
+ },
82
+ open: () => {
83
+ s.value || (d.value = !0);
84
+ },
85
+ close: () => {
86
+ d.value = !1;
87
+ },
88
+ updateDisabled: () => {
89
+ s.value = m();
90
+ }
91
+ },
92
+ getInputProps: () => ({
93
+ role: "combobox",
94
+ "aria-autocomplete": "list",
95
+ "aria-expanded": d.value,
96
+ "aria-controls": `${h}-listbox`,
97
+ "aria-activedescendant": a.value >= 0 ? `${h}-option-${a.value}` : void 0
98
+ }),
99
+ getListProps: () => ({
100
+ id: `${h}-listbox`,
101
+ role: "listbox"
102
+ }),
103
+ getItemProps: (l) => ({
104
+ id: `${h}-option-${l}`,
105
+ role: "option",
106
+ "aria-selected": a.value === l
107
+ })
108
+ };
109
+ }
110
+ const re = {
111
+ /** 绑定值 | Binding value */
112
+ modelValue: {
113
+ type: String,
114
+ default: ""
115
+ },
116
+ /** 获取建议列表的回调 | Callback to fetch suggestions */
117
+ fetchSuggestions: {
118
+ type: Function,
119
+ required: !0
120
+ },
121
+ /** 占位文字 | Placeholder */
122
+ placeholder: String,
123
+ /** 禁用 | Disabled */
124
+ disabled: Boolean,
125
+ /** 可清空 | Clearable */
126
+ clearable: Boolean,
127
+ /** 尺寸 | Size */
128
+ size: {
129
+ type: String,
130
+ default: "md"
131
+ },
132
+ /** 是否在聚焦时显示建议 | Whether to show suggestions on focus */
133
+ triggerOnFocus: {
134
+ type: Boolean,
135
+ default: !1
136
+ },
137
+ /** 防抖延迟 | Debounce delay */
138
+ debounce: {
139
+ type: Number,
140
+ default: 300
141
+ },
142
+ /** 弹出层位置 | Placement */
143
+ placement: {
144
+ type: String,
145
+ default: "bottom-start"
146
+ },
147
+ /** 弹出层类名 | Popper class */
148
+ popperClass: String,
149
+ /** 显示字段名 | Display label field */
150
+ valueKey: {
151
+ type: String,
152
+ default: "value"
153
+ },
154
+ /** 无数据时显示的文本 | Text to display when no data */
155
+ noDataText: String
156
+ }, ie = {
157
+ "update:modelValue": (t) => !0,
158
+ select: (t) => !0,
159
+ change: (t) => !0,
160
+ focus: (t) => !0,
161
+ blur: (t) => !0,
162
+ clear: () => !0
163
+ }, ce = {
164
+ key: 0,
165
+ class: "l-autocomplete__loading"
166
+ }, de = ["onMousedown"], ve = {
167
+ key: 1,
168
+ class: "l-autocomplete__empty"
169
+ }, pe = /* @__PURE__ */ U({
170
+ name: "LAutoComplete",
171
+ __name: "AutoComplete",
172
+ props: re,
173
+ emits: ie,
174
+ setup(t, { emit: h }) {
175
+ const u = t, n = h, { formItem: a, size: C, disabled: d, inputId: m } = ae(), s = R(() => u.disabled || d.value), T = j(null);
176
+ let f = null, y = null;
177
+ const k = () => {
178
+ f && (clearTimeout(f), f = null);
179
+ }, l = () => {
180
+ y && (clearTimeout(y), y = null);
181
+ }, i = oe("autocomplete"), S = (m == null ? void 0 : m.value) || i, v = ne({
182
+ value: u.modelValue,
183
+ disabled: () => s.value,
184
+ idPrefix: S,
185
+ onInput: (e) => {
186
+ n("update:modelValue", e), n("change", e), $(e);
187
+ },
188
+ onSelect: (e) => {
189
+ const c = typeof e == "string" ? e : e[u.valueKey];
190
+ n("update:modelValue", c), n("select", e), a == null || a.validate("change").catch(() => {
191
+ });
192
+ }
193
+ }), {
194
+ value: g,
195
+ suggestions: V,
196
+ activeIndex: D,
197
+ loading: b,
198
+ isOpen: p
199
+ } = te(v, {
200
+ disabled: () => s.value
201
+ }), $ = (e) => {
202
+ if (k(), l(), D.value = -1, !u.triggerOnFocus && !e) {
203
+ b.value = !1, V.value = [], p.value = !1;
204
+ return;
205
+ }
206
+ const c = () => {
207
+ b.value = !0, (u.triggerOnFocus || e) && (p.value = !0), u.fetchSuggestions(e, (r) => {
208
+ b.value = !1, V.value = r, p.value = r.length > 0 || !!e && !!u.noDataText;
209
+ });
210
+ };
211
+ u.debounce > 0 ? f = setTimeout(() => {
212
+ f = null, c();
213
+ }, u.debounce) : c();
214
+ }, E = (e) => {
215
+ n("focus", e), l(), !s.value && (u.triggerOnFocus || g.value) && $(g.value);
216
+ }, K = (e) => {
217
+ n("blur", e), k(), l(), y = setTimeout(() => {
218
+ y = null, p.value = !1, b.value = !1, D.value = -1;
219
+ }, 150);
220
+ }, L = (e) => {
221
+ if (p.value)
222
+ switch (e.key) {
223
+ case "ArrowUp":
224
+ e.preventDefault(), v.actions.navigate("up");
225
+ break;
226
+ case "ArrowDown":
227
+ e.preventDefault(), v.actions.navigate("down");
228
+ break;
229
+ case "Enter":
230
+ D.value !== -1 && (e.preventDefault(), v.actions.confirmSelection());
231
+ break;
232
+ case "Escape":
233
+ p.value = !1;
234
+ break;
235
+ }
236
+ }, M = () => {
237
+ n("clear"), $("");
238
+ };
239
+ return G(() => u.modelValue, (e) => {
240
+ e !== g.value && (g.value = e);
241
+ }), H(() => {
242
+ k(), l();
243
+ }), (e, c) => (_(), I("div", {
244
+ class: J(["l-autocomplete", [
245
+ `l-autocomplete--${e.size || o(C)}`,
246
+ { "is-disabled": s.value }
247
+ ]])
248
+ }, [
249
+ F(se, {
250
+ visible: o(p),
251
+ "onUpdate:visible": c[1] || (c[1] = (r) => B(p) ? p.value = r : null),
252
+ trigger: "manual",
253
+ placement: e.placement,
254
+ disabled: s.value,
255
+ "popper-class": ["l-autocomplete__popper", e.popperClass],
256
+ width: "auto"
257
+ }, {
258
+ content: O(() => [
259
+ o(b) || o(V).length > 0 ? (_(), I("ul", P({
260
+ key: 0,
261
+ class: "l-autocomplete__suggestions"
262
+ }, o(v).getListProps()), [
263
+ o(b) ? (_(), I("li", ce, [...c[2] || (c[2] = [
264
+ x("svg", {
265
+ class: "l-autocomplete__loading-icon",
266
+ viewBox: "0 0 1024 1024",
267
+ width: "16",
268
+ height: "16"
269
+ }, [
270
+ x("path", {
271
+ fill: "currentColor",
272
+ d: "M512 64c-247.4 0-448 200.6-448 448S264.6 960 512 960s448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",
273
+ opacity: ".2"
274
+ }),
275
+ x("path", {
276
+ fill: "currentColor",
277
+ d: "M512 140c-11.3 0-20.7 9.4-20.7 20.7v103.5c0 11.3 9.4 20.7 20.7 20.7s20.7-9.4 20.7-20.7V160.7c0-11.3-9.4-20.7-20.7-20.7z"
278
+ })
279
+ ], -1)
280
+ ])])) : (_(!0), I(Q, { key: 1 }, W(o(V), (r, z) => (_(), I("li", P({
281
+ key: z,
282
+ class: ["l-autocomplete__item", { "is-active": z === o(D) }]
283
+ }, { ref_for: !0 }, o(v).getItemProps(z), {
284
+ onMousedown: X((fe) => o(v).actions.select(r), ["prevent"])
285
+ }), [
286
+ Y(e.$slots, "default", { item: r }, () => [
287
+ Z(A(typeof r == "string" ? r : r[e.valueKey]), 1)
288
+ ])
289
+ ], 16, de))), 128))
290
+ ], 16)) : !o(b) && o(V).length === 0 ? (_(), I("div", ve, A(e.noDataText || "无匹配数据"), 1)) : q("", !0)
291
+ ]),
292
+ default: O(() => [
293
+ F(ue, P({
294
+ ref_key: "inputRef",
295
+ ref: T,
296
+ id: o(S),
297
+ modelValue: o(g),
298
+ "onUpdate:modelValue": c[0] || (c[0] = (r) => B(g) ? g.value = r : null),
299
+ placeholder: e.placeholder,
300
+ disabled: s.value
301
+ }, o(v).getInputProps(), {
302
+ size: e.size || o(C),
303
+ clearable: e.clearable,
304
+ onInput: o(v).actions.handleInput,
305
+ onFocus: E,
306
+ onBlur: K,
307
+ onKeydown: L,
308
+ onClear: M
309
+ }), null, 16, ["id", "modelValue", "placeholder", "disabled", "size", "clearable", "onInput"])
310
+ ]),
311
+ _: 3
312
+ }, 8, ["visible", "placement", "disabled", "popper-class"])
313
+ ], 2));
314
+ }
315
+ }), Ve = N(pe);
316
+ export {
317
+ Ve as LAutoComplete,
318
+ ie as autoCompleteEmits,
319
+ re as autoCompleteProps,
320
+ Ve as default
321
+ };