@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,370 @@
1
+ import '../style/cascader.css';
2
+ import '../style/Input.css';
3
+ import '../style/Popover.css';
4
+ import '../style/Icon.css';
5
+ import { w as q } from "../chunks/install-DJNxamQ0.mjs";
6
+ import { defineComponent as M, openBlock as w, createElementBlock as C, Fragment as D, renderList as N, normalizeClass as z, createElementVNode as O, toDisplayString as H, createBlock as T, createCommentVNode as K, computed as E, ref as U, unref as p, createVNode as L, withCtx as $ } from "vue";
7
+ import "../chunks/manager-BUdQK4AD.mjs";
8
+ import { s as I, e as j, c as R } from "../chunks/index-B0yEC3RG.mjs";
9
+ import { u as G } from "../chunks/use-signals-CE1T2jXK.mjs";
10
+ import { u as J } from "../chunks/use-form-item-CqDbWCiU.mjs";
11
+ import { u as Q } from "../chunks/use-id-D3casveg.mjs";
12
+ import { _ as W } from "../chunks/Input.vue_vue_type_script_setup_true_lang-PeDZ7smO.mjs";
13
+ import { _ as X } from "../chunks/Popover.vue_vue_type_script_setup_true_lang-CVWbekIQ.mjs";
14
+ import { _ as B } from "../chunks/Icon.vue_vue_type_script_setup_true_lang-LQ-KuJ6a.mjs";
15
+ function Y(n) {
16
+ const _ = I(n.value ?? []), l = I(n.value ?? []), i = I([]), x = () => typeof n.disabled == "function" ? n.disabled() : n.disabled ?? !1, g = I(x());
17
+ typeof n.disabled == "function" && j(() => {
18
+ g.value = x();
19
+ });
20
+ const A = R(() => {
21
+ const a = [n.options];
22
+ let e = n.options;
23
+ for (const t of l.value) {
24
+ const c = e.find((k) => k.value === t);
25
+ if (c && c.children && c.children.length > 0)
26
+ a.push(c.children), e = c.children;
27
+ else
28
+ break;
29
+ }
30
+ return a;
31
+ }), P = (a, e) => {
32
+ g.value || (l.value = a, (n.checkStrictly || e) && S(a));
33
+ }, S = (a) => {
34
+ var c;
35
+ if (g.value) return;
36
+ _.value = a;
37
+ const e = [];
38
+ let t = n.options;
39
+ for (const k of a) {
40
+ const u = t.find((b) => b.value === k);
41
+ u && (e.push(u), t = u.children || []);
42
+ }
43
+ (c = n.onChange) == null || c.call(n, a, e);
44
+ };
45
+ return {
46
+ state: {
47
+ get value() {
48
+ return _.value;
49
+ },
50
+ set value(a) {
51
+ _.value = a;
52
+ },
53
+ get activePath() {
54
+ return l.value;
55
+ },
56
+ get focusedPath() {
57
+ return i.value;
58
+ },
59
+ get menus() {
60
+ return A.value;
61
+ },
62
+ get disabled() {
63
+ return g.value;
64
+ },
65
+ set disabled(a) {
66
+ g.value = a;
67
+ }
68
+ },
69
+ actions: {
70
+ expandNode: P,
71
+ selectPath: S,
72
+ syncActivePath: () => {
73
+ l.value = [..._.value];
74
+ },
75
+ moveFocus: (a) => {
76
+ if (g.value) return;
77
+ const e = A.value;
78
+ if (e.length === 0) return;
79
+ if (i.value.length === 0) {
80
+ const f = e[0], h = f.findIndex((v) => !v.disabled);
81
+ h > -1 && (i.value = [f[h].value]);
82
+ return;
83
+ }
84
+ const t = [...i.value], c = t.length - 1, k = t[c], u = e[c];
85
+ if (!u) return;
86
+ const b = u.findIndex((f) => f.value === k);
87
+ if (b !== -1)
88
+ switch (a) {
89
+ case "down":
90
+ case "up": {
91
+ const f = a === "down" ? 1 : -1, h = u.length;
92
+ let v = (b + f + h) % h;
93
+ for (; u[v].disabled && v !== b; )
94
+ v = (v + f + h) % h;
95
+ u[v].disabled || (t[c] = u[v].value, i.value = t);
96
+ break;
97
+ }
98
+ case "right": {
99
+ const f = u[b];
100
+ if (f.children && f.children.length > 0) {
101
+ l.value = t;
102
+ const h = f.children, v = h.findIndex((V) => !V.disabled);
103
+ v > -1 && (i.value = [...t, h[v].value]);
104
+ }
105
+ break;
106
+ }
107
+ case "left": {
108
+ c > 0 && (i.value = t.slice(0, c));
109
+ break;
110
+ }
111
+ }
112
+ },
113
+ setFocusedPath: (a) => {
114
+ i.value = a;
115
+ }
116
+ }
117
+ };
118
+ }
119
+ const Z = { class: "l-cascader-panel" }, ee = ["aria-haspopup", "aria-expanded", "onClick", "onMouseenter"], ae = { class: "l-cascader-node__label" }, te = /* @__PURE__ */ M({
120
+ __name: "CascaderPanel",
121
+ props: {
122
+ menus: {
123
+ type: Array,
124
+ required: !0
125
+ },
126
+ activePath: {
127
+ type: Array,
128
+ required: !0
129
+ },
130
+ selectedPath: {
131
+ type: Array,
132
+ required: !0
133
+ },
134
+ focusedPath: {
135
+ type: Array,
136
+ default: () => []
137
+ },
138
+ expandTrigger: {
139
+ type: String,
140
+ default: "click"
141
+ }
142
+ },
143
+ emits: ["expand", "select"],
144
+ setup(n, { emit: _ }) {
145
+ const l = n, i = _, x = (r, o) => {
146
+ const a = [...l.activePath.slice(0, o), r.value], e = !r.children || r.children.length === 0;
147
+ (l.expandTrigger === "click" || e) && i("expand", a, e);
148
+ }, g = (r, o) => {
149
+ if (l.expandTrigger === "hover") {
150
+ const a = [...l.activePath.slice(0, o), r.value];
151
+ !r.children || r.children.length === 0 || i("expand", a, !1);
152
+ }
153
+ }, A = (r, o) => l.activePath[o] === r.value, P = (r, o) => l.selectedPath[o] === r.value, S = (r, o) => l.focusedPath[o] === r.value && o === l.focusedPath.length - 1;
154
+ return (r, o) => (w(), C("div", Z, [
155
+ (w(!0), C(D, null, N(n.menus, (a, e) => (w(), C("div", {
156
+ key: e,
157
+ class: "l-cascader-menu",
158
+ role: "menu"
159
+ }, [
160
+ (w(!0), C(D, null, N(a, (t) => (w(), C("div", {
161
+ key: t.value,
162
+ class: z(["l-cascader-node", {
163
+ "is-active": A(t, e),
164
+ "is-selected": P(t, e),
165
+ "is-disabled": t.disabled,
166
+ "is-focused": S(t, e)
167
+ }]),
168
+ role: "menuitem",
169
+ "aria-haspopup": t.children && t.children.length > 0 ? "menu" : void 0,
170
+ "aria-expanded": A(t, e),
171
+ onClick: (c) => x(t, e),
172
+ onMouseenter: (c) => g(t, e)
173
+ }, [
174
+ O("span", ae, H(t.label), 1),
175
+ t.children && t.children.length > 0 ? (w(), T(B, {
176
+ key: 0,
177
+ name: "lucide:chevron-right",
178
+ class: "l-cascader-node__icon"
179
+ })) : P(t, e) && e === n.selectedPath.length - 1 ? (w(), T(B, {
180
+ key: 1,
181
+ name: "lucide:check",
182
+ class: "l-cascader-node__check-icon"
183
+ })) : K("", !0)
184
+ ], 42, ee))), 128))
185
+ ]))), 128))
186
+ ]));
187
+ }
188
+ }), ne = {
189
+ modelValue: {
190
+ type: Array,
191
+ default: () => []
192
+ },
193
+ options: {
194
+ type: Array,
195
+ default: () => []
196
+ },
197
+ placeholder: {
198
+ type: String,
199
+ default: "请选择"
200
+ },
201
+ disabled: {
202
+ type: Boolean,
203
+ default: !1
204
+ },
205
+ clearable: {
206
+ type: Boolean,
207
+ default: !1
208
+ },
209
+ expandTrigger: {
210
+ type: String,
211
+ default: "click"
212
+ },
213
+ checkStrictly: {
214
+ type: Boolean,
215
+ default: !1
216
+ },
217
+ separator: {
218
+ type: String,
219
+ default: " / "
220
+ },
221
+ size: {
222
+ type: String,
223
+ default: "md"
224
+ },
225
+ teleported: {
226
+ type: Boolean,
227
+ default: !0
228
+ }
229
+ }, le = {
230
+ "update:modelValue": (n) => Array.isArray(n),
231
+ change: (n, _) => Array.isArray(n),
232
+ "expand-change": (n) => Array.isArray(n),
233
+ blur: (n) => n instanceof FocusEvent,
234
+ focus: (n) => n instanceof FocusEvent,
235
+ clear: () => !0
236
+ }, ce = { class: "l-cascader__dropdown" }, se = /* @__PURE__ */ M({
237
+ name: "LCascader",
238
+ __name: "Cascader",
239
+ props: ne,
240
+ emits: le,
241
+ setup(n, { emit: _ }) {
242
+ const l = n, i = _, { formItem: x, size: g, disabled: A, inputId: P } = J(), S = E(() => l.disabled || A.value), r = Q("cascader"), o = E(() => l.id || (P == null ? void 0 : P.value) || r), a = U(!1), e = Y({
243
+ options: l.options,
244
+ value: l.modelValue,
245
+ expandTrigger: l.expandTrigger,
246
+ checkStrictly: l.checkStrictly,
247
+ disabled: () => S.value,
248
+ onChange: (s, d) => {
249
+ i("update:modelValue", s), i("change", s, d), x == null || x.validate("change").catch(() => {
250
+ }), l.checkStrictly || (a.value = !1);
251
+ }
252
+ }), {
253
+ value: t,
254
+ activePath: c,
255
+ focusedPath: k,
256
+ menus: u,
257
+ disabled: b
258
+ } = G(e, {
259
+ value: () => l.modelValue,
260
+ disabled: () => S.value
261
+ }), f = (s) => {
262
+ let d = l.options, m;
263
+ for (const y of s) {
264
+ if (m = d.find((F) => F.value === y), !m)
265
+ return;
266
+ d = m.children || [];
267
+ }
268
+ return m;
269
+ }, h = (s) => {
270
+ if (b.value) return;
271
+ let d = !0;
272
+ switch (s.key) {
273
+ case "ArrowUp":
274
+ e.actions.moveFocus("up");
275
+ break;
276
+ case "ArrowDown":
277
+ e.actions.moveFocus("down");
278
+ break;
279
+ case "ArrowRight":
280
+ e.actions.moveFocus("right");
281
+ break;
282
+ case "ArrowLeft":
283
+ e.actions.moveFocus("left");
284
+ break;
285
+ case "Enter":
286
+ if (k.value.length > 0) {
287
+ const m = [...k.value], y = f(m), F = !(y != null && y.children) || y.children.length === 0;
288
+ !l.checkStrictly && !F ? (e.actions.moveFocus("right"), i("expand-change", m)) : (e.actions.selectPath(m), l.checkStrictly || (a.value = !1));
289
+ }
290
+ break;
291
+ case "Escape":
292
+ a.value = !1;
293
+ break;
294
+ default:
295
+ d = !1;
296
+ }
297
+ d && s.preventDefault();
298
+ }, v = E(() => {
299
+ if (t.value.length === 0) return "";
300
+ const s = [];
301
+ let d = l.options;
302
+ for (const m of t.value) {
303
+ const y = d.find((F) => F.value === m);
304
+ y && (s.push(y.label), d = y.children || []);
305
+ }
306
+ return s.join(l.separator);
307
+ }), V = (s, d) => {
308
+ e.actions.expandNode(s, d), i("expand-change", s);
309
+ };
310
+ return (s, d) => (w(), C("div", {
311
+ class: z(["l-cascader", [
312
+ `l-cascader--${s.size || p(g)}`,
313
+ { "is-disabled": p(b), "is-active": a.value }
314
+ ]])
315
+ }, [
316
+ L(X, {
317
+ visible: a.value,
318
+ "onUpdate:visible": d[0] || (d[0] = (m) => a.value = m),
319
+ trigger: "click",
320
+ placement: "bottom-start",
321
+ disabled: p(b),
322
+ width: "auto",
323
+ "popper-class": "l-cascader__popper l-cascader__popover",
324
+ onShow: p(e).actions.syncActivePath,
325
+ onHide: p(e).actions.syncActivePath
326
+ }, {
327
+ content: $(() => [
328
+ O("div", ce, [
329
+ L(te, {
330
+ menus: p(u),
331
+ "active-path": p(c),
332
+ "selected-path": p(t),
333
+ "focused-path": p(k),
334
+ "expand-trigger": s.expandTrigger,
335
+ onExpand: V,
336
+ onSelect: p(e).actions.selectPath
337
+ }, null, 8, ["menus", "active-path", "selected-path", "focused-path", "expand-trigger", "onSelect"])
338
+ ])
339
+ ]),
340
+ default: $(() => [
341
+ L(W, {
342
+ id: o.value,
343
+ readonly: "",
344
+ "model-value": v.value,
345
+ placeholder: s.placeholder,
346
+ disabled: p(b),
347
+ size: s.size || p(g),
348
+ class: "l-cascader__trigger",
349
+ onKeydown: h
350
+ }, {
351
+ suffix: $(() => [
352
+ L(B, {
353
+ name: "lucide:chevron-down",
354
+ class: z(["l-cascader__icon", { "is-reverse": a.value }])
355
+ }, null, 8, ["class"])
356
+ ]),
357
+ _: 1
358
+ }, 8, ["id", "model-value", "placeholder", "disabled", "size"])
359
+ ]),
360
+ _: 1
361
+ }, 8, ["visible", "disabled", "onShow", "onHide"])
362
+ ], 2));
363
+ }
364
+ }), ge = q(se);
365
+ export {
366
+ ge as LCascader,
367
+ le as cascaderEmits,
368
+ ne as cascaderProps,
369
+ ge as default
370
+ };
@@ -0,0 +1,54 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { CascaderOption } from '../../../headless/src/index.ts';
3
+ export declare const cascaderProps: {
4
+ readonly modelValue: {
5
+ readonly type: PropType<(string | number)[]>;
6
+ readonly default: () => never[];
7
+ };
8
+ readonly options: {
9
+ readonly type: PropType<CascaderOption[]>;
10
+ readonly default: () => never[];
11
+ };
12
+ readonly placeholder: {
13
+ readonly type: StringConstructor;
14
+ readonly default: "请选择";
15
+ };
16
+ readonly disabled: {
17
+ readonly type: BooleanConstructor;
18
+ readonly default: false;
19
+ };
20
+ readonly clearable: {
21
+ readonly type: BooleanConstructor;
22
+ readonly default: false;
23
+ };
24
+ readonly expandTrigger: {
25
+ readonly type: PropType<"click" | "hover">;
26
+ readonly default: "click";
27
+ };
28
+ readonly checkStrictly: {
29
+ readonly type: BooleanConstructor;
30
+ readonly default: false;
31
+ };
32
+ readonly separator: {
33
+ readonly type: StringConstructor;
34
+ readonly default: " / ";
35
+ };
36
+ readonly size: {
37
+ readonly type: PropType<"sm" | "md" | "lg">;
38
+ readonly default: "md";
39
+ };
40
+ readonly teleported: {
41
+ readonly type: BooleanConstructor;
42
+ readonly default: true;
43
+ };
44
+ };
45
+ export type CascaderProps = ExtractPropTypes<typeof cascaderProps>;
46
+ export declare const cascaderEmits: {
47
+ 'update:modelValue': (value: (string | number)[]) => boolean;
48
+ change: (value: (string | number)[], _options: CascaderOption[]) => boolean;
49
+ 'expand-change': (path: (string | number)[]) => boolean;
50
+ blur: (event: FocusEvent) => boolean;
51
+ focus: (event: FocusEvent) => boolean;
52
+ clear: () => boolean;
53
+ };
54
+ export type CascaderEmits = typeof cascaderEmits;
@@ -0,0 +1,99 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {
7
+ inputRef: HTMLInputElement;
8
+ };
9
+ rootEl: HTMLLabelElement;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
13
+ readonly modelValue: {
14
+ readonly type: import('vue').PropType<boolean | string | number>;
15
+ readonly default: undefined;
16
+ };
17
+ readonly label: {
18
+ readonly type: StringConstructor;
19
+ readonly default: "";
20
+ };
21
+ readonly value: {
22
+ readonly type: import('vue').PropType<any>;
23
+ readonly default: undefined;
24
+ };
25
+ readonly name: {
26
+ readonly type: StringConstructor;
27
+ readonly default: "";
28
+ };
29
+ readonly disabled: {
30
+ readonly type: BooleanConstructor;
31
+ readonly default: false;
32
+ };
33
+ readonly indeterminate: {
34
+ readonly type: BooleanConstructor;
35
+ readonly default: false;
36
+ };
37
+ readonly size: {
38
+ readonly type: import('vue').PropType<import('./types').CheckboxSize>;
39
+ };
40
+ readonly border: {
41
+ readonly type: BooleanConstructor;
42
+ readonly default: false;
43
+ };
44
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
45
+ change: (_val: string | number | boolean) => void;
46
+ "update:modelValue": (_val: string | number | boolean) => void;
47
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
48
+ readonly modelValue: {
49
+ readonly type: import('vue').PropType<boolean | string | number>;
50
+ readonly default: undefined;
51
+ };
52
+ readonly label: {
53
+ readonly type: StringConstructor;
54
+ readonly default: "";
55
+ };
56
+ readonly value: {
57
+ readonly type: import('vue').PropType<any>;
58
+ readonly default: undefined;
59
+ };
60
+ readonly name: {
61
+ readonly type: StringConstructor;
62
+ readonly default: "";
63
+ };
64
+ readonly disabled: {
65
+ readonly type: BooleanConstructor;
66
+ readonly default: false;
67
+ };
68
+ readonly indeterminate: {
69
+ readonly type: BooleanConstructor;
70
+ readonly default: false;
71
+ };
72
+ readonly size: {
73
+ readonly type: import('vue').PropType<import('./types').CheckboxSize>;
74
+ };
75
+ readonly border: {
76
+ readonly type: BooleanConstructor;
77
+ readonly default: false;
78
+ };
79
+ }>> & Readonly<{
80
+ onChange?: ((_val: string | number | boolean) => any) | undefined;
81
+ "onUpdate:modelValue"?: ((_val: string | number | boolean) => any) | undefined;
82
+ }>, {
83
+ readonly label: string;
84
+ readonly disabled: boolean;
85
+ readonly name: string;
86
+ readonly value: any;
87
+ readonly modelValue: string | number | boolean;
88
+ readonly border: boolean;
89
+ readonly indeterminate: boolean;
90
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
91
+ inputRef: HTMLInputElement;
92
+ }, HTMLLabelElement>;
93
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
94
+ export default _default;
95
+ type __VLS_WithTemplateSlots<T, S> = T & {
96
+ new (): {
97
+ $slots: S;
98
+ };
99
+ };
@@ -0,0 +1,59 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
11
+ readonly modelValue: {
12
+ readonly type: import('vue').PropType<any[]>;
13
+ readonly default: () => never[];
14
+ };
15
+ readonly disabled: {
16
+ readonly type: BooleanConstructor;
17
+ readonly default: false;
18
+ };
19
+ readonly size: {
20
+ readonly type: import('vue').PropType<import('./types').CheckboxSize>;
21
+ };
22
+ readonly name: {
23
+ readonly type: StringConstructor;
24
+ readonly default: "";
25
+ };
26
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ change: (_val: any[]) => void;
28
+ "update:modelValue": (_val: any[]) => void;
29
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
30
+ readonly modelValue: {
31
+ readonly type: import('vue').PropType<any[]>;
32
+ readonly default: () => never[];
33
+ };
34
+ readonly disabled: {
35
+ readonly type: BooleanConstructor;
36
+ readonly default: false;
37
+ };
38
+ readonly size: {
39
+ readonly type: import('vue').PropType<import('./types').CheckboxSize>;
40
+ };
41
+ readonly name: {
42
+ readonly type: StringConstructor;
43
+ readonly default: "";
44
+ };
45
+ }>> & Readonly<{
46
+ onChange?: ((_val: any[]) => any) | undefined;
47
+ "onUpdate:modelValue"?: ((_val: any[]) => any) | undefined;
48
+ }>, {
49
+ readonly disabled: boolean;
50
+ readonly name: string;
51
+ readonly modelValue: any[];
52
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
53
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
54
+ export default _default;
55
+ type __VLS_WithTemplateSlots<T, S> = T & {
56
+ new (): {
57
+ $slots: S;
58
+ };
59
+ };
@@ -0,0 +1,2 @@
1
+ import { InjectionKey } from 'vue';
2
+ export declare const checkboxGroupKey: InjectionKey<any>;
@@ -0,0 +1,9 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as Checkbox } from './Checkbox.vue';
3
+ import { default as CheckboxGroup } from './CheckboxGroup.vue';
4
+ export declare const LCheckbox: typeof Checkbox & Plugin;
5
+ export declare const LCheckboxGroup: typeof CheckboxGroup & Plugin;
6
+ declare const CheckboxPlugin: Plugin;
7
+ export { CheckboxPlugin as default };
8
+ export * from './types';
9
+ export * from './constants';
@@ -0,0 +1,2 @@
1
+ require('../style/Checkbox.css');
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("../chunks/Checkbox.vue_vue_type_script_setup_true_lang-DxecbRJE.js"),o=require("vue");require("../chunks/manager-C0AUxQ1I.js");const v=require("../chunks/use-id-BycaM3-h.js"),G=require("../chunks/use-signals-Bz1smiXh.js"),C=require("../chunks/use-form-item-CloIcyon.js"),V={class:"l-checkbox-group",role:"group","aria-label":"checkbox-group"},f=["id","disabled"],E=o.defineComponent({name:"CheckboxGroup",__name:"CheckboxGroup",props:c.checkboxGroupProps,emits:c.checkboxGroupEmits,setup(r,{emit:m}){const t=r,a=m,{formItem:l,size:x,disabled:n,inputId:s}=C.useFormItem(t),k=v.useId("checkbox-group"),i=(s==null?void 0:s.value)||k,d=o.computed(()=>t.name??i),u=c.createCheckboxGroupController({modelValue:()=>t.modelValue,disabled:()=>n.value,name:()=>d.value,onChange:e=>{a("update:modelValue",e),a("change",e),l==null||l.validate("change").catch(()=>{})}}),{modelValue:g,disabled:p,name:_}=G.useController(u,{modelValue:()=>t.modelValue,disabled:()=>n.value,name:()=>d.value});return o.provide(c.checkboxGroupKey,{modelValue:g,disabled:p,name:_,size:x.value,toggleValue:e=>u.actions.toggleValue(e),changeEvent:e=>u.actions.toggleValue(e)}),o.watch(()=>t.modelValue,e=>{u.state.modelValue=e}),(e,P)=>(o.openBlock(),o.createElementBlock("div",V,[o.createElementVNode("input",{id:o.unref(i),type:"text",style:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap",border:"0"},"aria-hidden":"true",tabindex:"-1",disabled:o.unref(p)},null,8,f),o.renderSlot(e.$slots,"default")]))}}),h=c._sfc_main,b=E,y={install(r){r.component("LCheckbox",h),r.component("LCheckboxGroup",b)}};exports.checkboxEmits=c.checkboxEmits;exports.checkboxGroupEmits=c.checkboxGroupEmits;exports.checkboxGroupKey=c.checkboxGroupKey;exports.checkboxGroupProps=c.checkboxGroupProps;exports.checkboxProps=c.checkboxProps;exports.LCheckbox=h;exports.LCheckboxGroup=b;exports.default=y;
@@ -0,0 +1,70 @@
1
+ import '../style/Checkbox.css';
2
+ import { a as g, d as k, f, b as C, _ as V } from "../chunks/Checkbox.vue_vue_type_script_setup_true_lang-fOXXjwnz.mjs";
3
+ import { c as T, e as U } from "../chunks/Checkbox.vue_vue_type_script_setup_true_lang-fOXXjwnz.mjs";
4
+ import { defineComponent as _, computed as v, provide as G, watch as w, openBlock as E, createElementBlock as L, createElementVNode as y, unref as u, renderSlot as z } from "vue";
5
+ import "../chunks/manager-BUdQK4AD.mjs";
6
+ import { u as P } from "../chunks/use-id-D3casveg.mjs";
7
+ import { u as B } from "../chunks/use-signals-CE1T2jXK.mjs";
8
+ import { u as I } from "../chunks/use-form-item-CqDbWCiU.mjs";
9
+ const N = {
10
+ class: "l-checkbox-group",
11
+ role: "group",
12
+ "aria-label": "checkbox-group"
13
+ }, S = ["id", "disabled"], $ = /* @__PURE__ */ _({
14
+ name: "CheckboxGroup",
15
+ __name: "CheckboxGroup",
16
+ props: k,
17
+ emits: g,
18
+ setup(a, { emit: p }) {
19
+ const o = a, s = p, { formItem: c, size: m, disabled: r, inputId: l } = I(o), h = P("checkbox-group"), n = (l == null ? void 0 : l.value) || h, i = v(() => o.name ?? n), t = f({
20
+ modelValue: () => o.modelValue,
21
+ disabled: () => r.value,
22
+ name: () => i.value,
23
+ onChange: (e) => {
24
+ s("update:modelValue", e), s("change", e), c == null || c.validate("change").catch(() => {
25
+ });
26
+ }
27
+ }), { modelValue: b, disabled: d, name: x } = B(t, {
28
+ modelValue: () => o.modelValue,
29
+ disabled: () => r.value,
30
+ name: () => i.value
31
+ });
32
+ return G(C, {
33
+ modelValue: b,
34
+ disabled: d,
35
+ name: x,
36
+ size: m.value,
37
+ toggleValue: (e) => t.actions.toggleValue(e),
38
+ changeEvent: (e) => t.actions.toggleValue(e)
39
+ }), w(
40
+ () => o.modelValue,
41
+ (e) => {
42
+ t.state.modelValue = e;
43
+ }
44
+ ), (e, K) => (E(), L("div", N, [
45
+ y("input", {
46
+ id: u(n),
47
+ type: "text",
48
+ style: { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", "white-space": "nowrap", border: "0" },
49
+ "aria-hidden": "true",
50
+ tabindex: "-1",
51
+ disabled: u(d)
52
+ }, null, 8, S),
53
+ z(e.$slots, "default")
54
+ ]));
55
+ }
56
+ }), D = V, F = $, O = {
57
+ install(a) {
58
+ a.component("LCheckbox", D), a.component("LCheckboxGroup", F);
59
+ }
60
+ };
61
+ export {
62
+ D as LCheckbox,
63
+ F as LCheckboxGroup,
64
+ T as checkboxEmits,
65
+ g as checkboxGroupEmits,
66
+ C as checkboxGroupKey,
67
+ k as checkboxGroupProps,
68
+ U as checkboxProps,
69
+ O as default
70
+ };