@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,266 @@
1
+ import '../style/tabs.css';
2
+ import { defineComponent as B, computed as _, provide as $, openBlock as p, createElementBlock as T, normalizeStyle as D, normalizeClass as V, createElementVNode as k, Fragment as x, renderList as E, unref as h, createBlock as K, resolveDynamicComponent as U, createTextVNode as j, toDisplayString as q, renderSlot as I, nextTick as F, inject as H, useSlots as M, ref as G, watch as C, onBeforeUnmount as J, withDirectives as O, vShow as Q, createCommentVNode as W } from "vue";
3
+ import "../chunks/manager-BUdQK4AD.mjs";
4
+ import { s as z, e as X } from "../chunks/index-B0yEC3RG.mjs";
5
+ import { u as Y } from "../chunks/use-signals-CE1T2jXK.mjs";
6
+ import { u as Z } from "../chunks/use-id-D3casveg.mjs";
7
+ function ee(a = {}) {
8
+ const s = z([]), n = z(
9
+ typeof a.value == "function" ? a.value() : a.value ?? a.defaultValue
10
+ ), v = (e) => {
11
+ const t = s.value.filter((l) => !l.disabled);
12
+ if (t.length)
13
+ return t.some((l) => l.name === e) ? e : t[0].name;
14
+ };
15
+ if (typeof a.value == "function") {
16
+ const e = a.value;
17
+ X(() => {
18
+ n.value = v(e());
19
+ });
20
+ }
21
+ const o = () => {
22
+ n.value = v(n.value);
23
+ }, m = (e) => {
24
+ s.value.findIndex((l) => l.id === e.id) === -1 ? s.value = [...s.value, e] : s.value = s.value.map((l) => l.id === e.id ? e : l), o();
25
+ }, g = (e) => {
26
+ s.value = s.value.filter((t) => t.id !== e), o();
27
+ }, b = (e, t) => {
28
+ s.value = s.value.map((l) => l.id !== e ? l : { ...l, ...t }), o();
29
+ }, y = (e) => {
30
+ var l, u;
31
+ const t = s.value.find((d) => d.name === e);
32
+ !t || t.disabled || ((l = a.onTabClick) == null || l.call(a, e), n.value !== e && (n.value = e, (u = a.onChange) == null || u.call(a, e)));
33
+ };
34
+ return {
35
+ state: {
36
+ get panes() {
37
+ return s.value;
38
+ },
39
+ get activeValue() {
40
+ return n.value;
41
+ },
42
+ set activeValue(e) {
43
+ n.value = e;
44
+ }
45
+ },
46
+ actions: {
47
+ registerPane: m,
48
+ unregisterPane: g,
49
+ updatePane: b,
50
+ activateTab: y,
51
+ moveActiveTab: (e) => {
52
+ const t = s.value.filter((d) => !d.disabled);
53
+ if (!t.length) return;
54
+ const l = t.findIndex((d) => d.name === n.value);
55
+ let u = t[0];
56
+ return e === "first" ? u = t[0] : e === "last" ? u = t[t.length - 1] : l !== -1 && (u = t[(l + (e === "next" ? 1 : -1) + t.length) % t.length]), y(u.name), u.name;
57
+ }
58
+ }
59
+ };
60
+ }
61
+ const te = {
62
+ modelValue: {
63
+ type: [String, Number],
64
+ default: void 0
65
+ },
66
+ defaultValue: {
67
+ type: [String, Number],
68
+ default: void 0
69
+ },
70
+ type: {
71
+ type: String,
72
+ default: "line"
73
+ },
74
+ size: {
75
+ type: String,
76
+ default: "md"
77
+ },
78
+ stretch: {
79
+ type: Boolean,
80
+ default: !1
81
+ },
82
+ bg: {
83
+ type: String,
84
+ default: ""
85
+ },
86
+ activeBg: {
87
+ type: String,
88
+ default: ""
89
+ }
90
+ }, ae = {
91
+ "update:modelValue": (a) => !0,
92
+ change: (a) => !0,
93
+ "tab-click": (a) => !0
94
+ }, ne = {
95
+ name: {
96
+ type: [String, Number],
97
+ required: !0
98
+ },
99
+ label: {
100
+ type: String,
101
+ default: ""
102
+ },
103
+ disabled: {
104
+ type: Boolean,
105
+ default: !1
106
+ },
107
+ lazy: {
108
+ type: Boolean,
109
+ default: !1
110
+ }
111
+ }, L = Symbol("TabsKey"), le = { class: "l-tabs__nav" }, se = {
112
+ class: "l-tabs__tablist",
113
+ role: "tablist",
114
+ "aria-orientation": "horizontal"
115
+ }, ie = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"], re = { class: "l-tabs__nav-label" }, oe = { class: "l-tabs__content" }, ce = /* @__PURE__ */ B({
116
+ name: "Tabs",
117
+ __name: "Tabs",
118
+ props: te,
119
+ emits: ae,
120
+ setup(a, { emit: s }) {
121
+ const n = a, v = s, o = ee({
122
+ value: () => n.modelValue,
123
+ defaultValue: n.defaultValue,
124
+ onChange: (r) => {
125
+ v("update:modelValue", r), v("change", r);
126
+ },
127
+ onTabClick: (r) => {
128
+ v("tab-click", r);
129
+ }
130
+ }), { panes: m, activeValue: g } = Y(o), b = g, y = o.actions.activateTab, f = /* @__PURE__ */ new Map(), e = _(() => n.size), t = _(() => n.type), l = _(() => n.stretch), u = _(() => [
131
+ "l-tabs",
132
+ `l-tabs--${n.type}`,
133
+ `l-tabs--${n.size}`,
134
+ {
135
+ "is-stretch": n.stretch
136
+ }
137
+ ]), d = (r, c) => {
138
+ if (c) {
139
+ f.set(r, c);
140
+ return;
141
+ }
142
+ f.delete(r);
143
+ }, N = async (r) => {
144
+ var i;
145
+ await F();
146
+ const c = m.value.find((P) => P.name === r);
147
+ c && ((i = f.get(c.id)) == null || i.focus());
148
+ }, R = async (r) => {
149
+ let c = null;
150
+ if (r.key === "ArrowRight" || r.key === "ArrowDown" ? c = "next" : r.key === "ArrowLeft" || r.key === "ArrowUp" ? c = "prev" : r.key === "Home" ? c = "first" : r.key === "End" && (c = "last"), c) {
151
+ r.preventDefault();
152
+ const i = o.actions.moveActiveTab(c);
153
+ i !== void 0 && await N(i);
154
+ }
155
+ };
156
+ return $(L, {
157
+ activeName: b,
158
+ size: e,
159
+ type: t,
160
+ stretch: l,
161
+ registerPane: o.actions.registerPane,
162
+ unregisterPane: o.actions.unregisterPane,
163
+ updatePane: o.actions.updatePane
164
+ }), (r, c) => (p(), T("div", {
165
+ class: V(u.value),
166
+ style: D({
167
+ "--l-tabs-bg": n.bg || void 0,
168
+ "--l-tabs-active-bg": n.activeBg || void 0
169
+ })
170
+ }, [
171
+ k("div", le, [
172
+ k("div", se, [
173
+ (p(!0), T(x, null, E(h(m), (i) => {
174
+ var P;
175
+ return p(), T("button", {
176
+ key: i.id,
177
+ ref_for: !0,
178
+ ref: (S) => d(i.id, S),
179
+ type: "button",
180
+ class: V(["l-tabs__nav-item", {
181
+ "is-active": h(b) === i.name,
182
+ "is-disabled": i.disabled
183
+ }]),
184
+ role: "tab",
185
+ id: i.tabId,
186
+ "aria-selected": h(b) === i.name,
187
+ "aria-controls": i.panelId,
188
+ tabindex: h(b) === i.name ? 0 : -1,
189
+ disabled: i.disabled,
190
+ onClick: (S) => h(y)(i.name),
191
+ onKeydown: R
192
+ }, [
193
+ k("span", re, [
194
+ (P = i.slots) != null && P.label ? (p(), K(U(i.slots.label), { key: 0 })) : (p(), T(x, { key: 1 }, [
195
+ j(q(i.label || String(i.name)), 1)
196
+ ], 64))
197
+ ])
198
+ ], 42, ie);
199
+ }), 128))
200
+ ])
201
+ ]),
202
+ k("div", oe, [
203
+ I(r.$slots, "default")
204
+ ])
205
+ ], 6));
206
+ }
207
+ }), ue = /* @__PURE__ */ B({
208
+ name: "TabPane",
209
+ __name: "TabPane",
210
+ props: ne,
211
+ setup(a) {
212
+ const s = a, n = H(L), v = M();
213
+ if (!n)
214
+ throw new Error("[Routa] LTabPane must be used within LTabs");
215
+ const o = Symbol("tab-pane"), m = Z("tabs-pane"), g = `${m}-tab`, b = `${m}-panel`, y = G(!1), f = _(() => n.activeName.value === s.name), e = _(() => !s.lazy || y.value || f.value);
216
+ return C(
217
+ f,
218
+ (t) => {
219
+ t && (y.value = !0);
220
+ },
221
+ { immediate: !0 }
222
+ ), C(
223
+ () => [s.name, s.label, s.disabled, s.lazy],
224
+ ([t, l, u, d]) => {
225
+ n.registerPane({
226
+ id: o,
227
+ name: t,
228
+ label: l,
229
+ disabled: u,
230
+ lazy: d,
231
+ tabId: g,
232
+ panelId: b,
233
+ slots: v
234
+ });
235
+ },
236
+ { immediate: !0 }
237
+ ), J(() => {
238
+ n.unregisterPane(o);
239
+ }), (t, l) => e.value ? O((p(), T("div", {
240
+ key: 0,
241
+ class: V(["l-tab-pane", { "is-active": f.value }]),
242
+ role: "tabpanel",
243
+ id: b,
244
+ "aria-labelledby": g
245
+ }, [
246
+ I(t.$slots, "default")
247
+ ], 2)), [
248
+ [Q, f.value]
249
+ ]) : W("", !0);
250
+ }
251
+ }), A = ce, w = ue;
252
+ A.install = (a) => {
253
+ a.component("LTabs", A), a.component("LTabPane", w);
254
+ };
255
+ w.install = (a) => {
256
+ a.component("LTabPane", w);
257
+ };
258
+ export {
259
+ w as LTabPane,
260
+ A as LTabs,
261
+ L as TabsKey,
262
+ A as default,
263
+ ne as tabPaneProps,
264
+ ae as tabsEmits,
265
+ te as tabsProps
266
+ };
@@ -0,0 +1,78 @@
1
+ import { ExtractPropTypes, InjectionKey, PropType, Ref } from 'vue';
2
+ export type TabName = string | number;
3
+ export declare const tabsProps: {
4
+ readonly modelValue: {
5
+ readonly type: PropType<TabName | undefined>;
6
+ readonly default: undefined;
7
+ };
8
+ readonly defaultValue: {
9
+ readonly type: PropType<TabName | undefined>;
10
+ readonly default: undefined;
11
+ };
12
+ readonly type: {
13
+ readonly type: PropType<"line" | "card" | "chrome">;
14
+ readonly default: "line";
15
+ };
16
+ readonly size: {
17
+ readonly type: PropType<"sm" | "md" | "lg">;
18
+ readonly default: "md";
19
+ };
20
+ readonly stretch: {
21
+ readonly type: BooleanConstructor;
22
+ readonly default: false;
23
+ };
24
+ readonly bg: {
25
+ readonly type: StringConstructor;
26
+ readonly default: "";
27
+ };
28
+ readonly activeBg: {
29
+ readonly type: StringConstructor;
30
+ readonly default: "";
31
+ };
32
+ };
33
+ export declare const tabsEmits: {
34
+ readonly 'update:modelValue': (_name: TabName) => boolean;
35
+ readonly change: (_name: TabName) => boolean;
36
+ readonly 'tab-click': (_name: TabName) => boolean;
37
+ };
38
+ export declare const tabPaneProps: {
39
+ readonly name: {
40
+ readonly type: PropType<TabName>;
41
+ readonly required: true;
42
+ };
43
+ readonly label: {
44
+ readonly type: StringConstructor;
45
+ readonly default: "";
46
+ };
47
+ readonly disabled: {
48
+ readonly type: BooleanConstructor;
49
+ readonly default: false;
50
+ };
51
+ readonly lazy: {
52
+ readonly type: BooleanConstructor;
53
+ readonly default: false;
54
+ };
55
+ };
56
+ export type TabsProps = ExtractPropTypes<typeof tabsProps>;
57
+ export type TabsEmits = typeof tabsEmits;
58
+ export type TabPaneProps = ExtractPropTypes<typeof tabPaneProps>;
59
+ export interface TabPaneRegistration {
60
+ id: symbol;
61
+ name: TabName;
62
+ label: string;
63
+ disabled: boolean;
64
+ lazy: boolean;
65
+ tabId: string;
66
+ panelId: string;
67
+ slots?: any;
68
+ }
69
+ export interface TabsContext {
70
+ activeName: Ref<TabName | undefined>;
71
+ size: Ref<TabsProps['size']>;
72
+ type: Ref<TabsProps['type']>;
73
+ stretch: Ref<boolean>;
74
+ registerPane: (pane: TabPaneRegistration) => void;
75
+ unregisterPane: (id: symbol) => void;
76
+ updatePane: (id: symbol, patch: Partial<Omit<TabPaneRegistration, 'id'>>) => void;
77
+ }
78
+ export declare const TabsKey: InjectionKey<TabsContext>;
@@ -0,0 +1,38 @@
1
+ import { TagProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ icon?(_: {}): any;
6
+ default?(_: {}): any;
7
+ suffixIcon?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<TagProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
14
+ click: (event: MouseEvent) => any;
15
+ close: (event: MouseEvent) => any;
16
+ "update:checked": (checked: boolean) => any;
17
+ }, string, import('vue').PublicProps, Readonly<TagProps> & Readonly<{
18
+ onClick?: ((event: MouseEvent) => any) | undefined;
19
+ onClose?: ((event: MouseEvent) => any) | undefined;
20
+ "onUpdate:checked"?: ((checked: boolean) => any) | undefined;
21
+ }>, {
22
+ size: import('./types').TagSize;
23
+ disabled: boolean;
24
+ type: import('./types').TagType;
25
+ closable: boolean;
26
+ variant: import('./types').TagVariant;
27
+ round: boolean;
28
+ checked: boolean;
29
+ checkable: boolean;
30
+ selectEffect: import('./types').TagSelectEffect;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
33
+ export default _default;
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,5 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as Tag } from './Tag.vue';
3
+ export declare const LTag: typeof Tag & Plugin;
4
+ export * from './types';
5
+ export default LTag;
@@ -0,0 +1,2 @@
1
+ require('../style/tag.css');
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../chunks/color-m1q_rZ68.js");require("../chunks/manager-C0AUxQ1I.js");const g=["role","aria-checked","tabindex"],b={key:0,class:"l-tag__icon l-tag__icon--prefix"},h={key:1,class:"l-tag__icon l-tag__icon--suffix"},B=e.defineComponent({name:"Tag",inheritAttrs:!1,__name:"Tag",props:{type:{default:"default"},variant:{default:"solid"},checkable:{type:Boolean,default:!1},size:{default:"md"},closable:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},selectEffect:{default:"color"},color:{},round:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{},suffixIcon:{},class:{},style:{}},emits:["close","click","update:checked"],setup(t,{emit:d}){const o=t,s=d,a=e.useAttrs(),c=e.computed(()=>o.checkable),u=l=>{o.disabled||(l.stopPropagation(),s("close",l))},i=l=>{o.disabled||(c.value&&s("update:checked",!o.checked),s("click",l))},f=l=>{o.disabled||c.value&&(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),i(l))},k=e.computed(()=>["l-tag",`l-tag--type-${o.type}`,`l-tag--variant-${o.variant}`,`l-tag--${o.size}`,`l-tag--select-effect-${o.selectEffect}`,{"is-round":o.round,"is-closable":o.closable,"is-checked":o.checked&&c.value,"is-disabled":o.disabled,"is-clickable":c.value||a.onClick,"is-checkable":c.value},a.class]),m=e.computed(()=>{const l={};return o.color&&(l["--l-tag-theme-color"]=o.color,l["--l-tag-theme-content"]=y.getContrastColor(o.color)),[a.style,l]});return(l,r)=>(e.openBlock(),e.createElementBlock("span",e.mergeProps({class:k.value,style:m.value},e.unref(a),{role:c.value?"checkbox":void 0,"aria-checked":c.value?t.checked:void 0,tabindex:c.value&&!t.disabled?0:void 0,onClick:i,onKeydown:f}),[l.$slots.icon||t.icon?(e.openBlock(),e.createElementBlock("span",b,[e.renderSlot(l.$slots,"icon",{},()=>[typeof t.icon!="string"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0})):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(t.icon)},null,2))])])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default"),l.$slots.suffixIcon||t.suffixIcon?(e.openBlock(),e.createElementBlock("span",h,[e.renderSlot(l.$slots,"suffixIcon",{},()=>[typeof t.suffixIcon!="string"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.suffixIcon),{key:0})):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(t.suffixIcon)},null,2))])])):e.createCommentVNode("",!0),t.closable?(e.openBlock(),e.createElementBlock("button",{key:2,class:"l-tag__close",type:"button","aria-label":"Close tag",onClick:u},[...r[0]||(r[0]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):e.createCommentVNode("",!0)],16,g))}}),n=B;n.install=t=>{t.component("LTag",n)};exports.LTag=n;exports.default=n;
@@ -0,0 +1,123 @@
1
+ import '../style/tag.css';
2
+ import { defineComponent as B, useAttrs as $, computed as i, openBlock as a, createElementBlock as s, mergeProps as I, unref as E, renderSlot as r, createBlock as y, resolveDynamicComponent as g, normalizeClass as m, createCommentVNode as d, createElementVNode as f } from "vue";
3
+ import { g as w } from "../chunks/color-BBpRjg5d.mjs";
4
+ import "../chunks/manager-BUdQK4AD.mjs";
5
+ const T = ["role", "aria-checked", "tabindex"], z = {
6
+ key: 0,
7
+ class: "l-tag__icon l-tag__icon--prefix"
8
+ }, D = {
9
+ key: 1,
10
+ class: "l-tag__icon l-tag__icon--suffix"
11
+ }, A = /* @__PURE__ */ B({
12
+ name: "Tag",
13
+ inheritAttrs: !1,
14
+ __name: "Tag",
15
+ props: {
16
+ type: { default: "default" },
17
+ variant: { default: "solid" },
18
+ checkable: { type: Boolean, default: !1 },
19
+ size: { default: "md" },
20
+ closable: { type: Boolean, default: !1 },
21
+ checked: { type: Boolean, default: !1 },
22
+ selectEffect: { default: "color" },
23
+ color: {},
24
+ round: { type: Boolean, default: !1 },
25
+ disabled: { type: Boolean, default: !1 },
26
+ icon: {},
27
+ suffixIcon: {},
28
+ class: {},
29
+ style: {}
30
+ },
31
+ emits: ["close", "click", "update:checked"],
32
+ setup(t, { emit: b }) {
33
+ const l = t, n = b, c = $(), o = i(() => l.checkable), v = (e) => {
34
+ l.disabled || (e.stopPropagation(), n("close", e));
35
+ }, u = (e) => {
36
+ l.disabled || (o.value && n("update:checked", !l.checked), n("click", e));
37
+ }, C = (e) => {
38
+ l.disabled || o.value && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), u(e));
39
+ }, p = i(() => [
40
+ "l-tag",
41
+ `l-tag--type-${l.type}`,
42
+ `l-tag--variant-${l.variant}`,
43
+ `l-tag--${l.size}`,
44
+ `l-tag--select-effect-${l.selectEffect}`,
45
+ {
46
+ "is-round": l.round,
47
+ "is-closable": l.closable,
48
+ "is-checked": l.checked && o.value,
49
+ "is-disabled": l.disabled,
50
+ "is-clickable": o.value || c.onClick,
51
+ "is-checkable": o.value
52
+ },
53
+ c.class
54
+ ]), x = i(() => {
55
+ const e = {};
56
+ return l.color && (e["--l-tag-theme-color"] = l.color, e["--l-tag-theme-content"] = w(l.color)), [c.style, e];
57
+ });
58
+ return (e, k) => (a(), s("span", I({
59
+ class: p.value,
60
+ style: x.value
61
+ }, E(c), {
62
+ role: o.value ? "checkbox" : void 0,
63
+ "aria-checked": o.value ? t.checked : void 0,
64
+ tabindex: o.value && !t.disabled ? 0 : void 0,
65
+ onClick: u,
66
+ onKeydown: C
67
+ }), [
68
+ e.$slots.icon || t.icon ? (a(), s("span", z, [
69
+ r(e.$slots, "icon", {}, () => [
70
+ typeof t.icon != "string" ? (a(), y(g(t.icon), { key: 0 })) : (a(), s("i", {
71
+ key: 1,
72
+ class: m(t.icon)
73
+ }, null, 2))
74
+ ])
75
+ ])) : d("", !0),
76
+ r(e.$slots, "default"),
77
+ e.$slots.suffixIcon || t.suffixIcon ? (a(), s("span", D, [
78
+ r(e.$slots, "suffixIcon", {}, () => [
79
+ typeof t.suffixIcon != "string" ? (a(), y(g(t.suffixIcon), { key: 0 })) : (a(), s("i", {
80
+ key: 1,
81
+ class: m(t.suffixIcon)
82
+ }, null, 2))
83
+ ])
84
+ ])) : d("", !0),
85
+ t.closable ? (a(), s("button", {
86
+ key: 2,
87
+ class: "l-tag__close",
88
+ type: "button",
89
+ "aria-label": "Close tag",
90
+ onClick: v
91
+ }, [...k[0] || (k[0] = [
92
+ f("svg", {
93
+ viewBox: "0 0 24 24",
94
+ fill: "none",
95
+ stroke: "currentColor",
96
+ "stroke-width": "2.5",
97
+ "stroke-linecap": "round",
98
+ "stroke-linejoin": "round"
99
+ }, [
100
+ f("line", {
101
+ x1: "18",
102
+ y1: "6",
103
+ x2: "6",
104
+ y2: "18"
105
+ }),
106
+ f("line", {
107
+ x1: "6",
108
+ y1: "6",
109
+ x2: "18",
110
+ y2: "18"
111
+ })
112
+ ], -1)
113
+ ])])) : d("", !0)
114
+ ], 16, T));
115
+ }
116
+ }), h = A;
117
+ h.install = (t) => {
118
+ t.component("LTag", h);
119
+ };
120
+ export {
121
+ h as LTag,
122
+ h as default
123
+ };
@@ -0,0 +1,83 @@
1
+ import { CSSProperties, VNode, Component } from 'vue';
2
+ export type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
3
+ export type TagVariant = 'solid' | 'subtle' | 'outline';
4
+ export type TagSize = 'sm' | 'md' | 'lg';
5
+ export type TagSelectEffect = 'color' | 'border' | 'mark';
6
+ export interface TagProps {
7
+ /**
8
+ * 标签类型 (Semantic type)
9
+ * @default 'default'
10
+ */
11
+ type?: TagType;
12
+ /**
13
+ * 视觉风格 (Visual variant)
14
+ * @default 'solid'
15
+ */
16
+ variant?: TagVariant;
17
+ /**
18
+ * 是否可选择 (Whether checkable)
19
+ * @default false
20
+ */
21
+ checkable?: boolean;
22
+ /**
23
+ * 尺寸 (Size)
24
+ * @default 'md'
25
+ */
26
+ size?: TagSize;
27
+ /**
28
+ * 是否可关闭 (Whether closable)
29
+ * @default false
30
+ */
31
+ closable?: boolean;
32
+ /**
33
+ * 选中状态 (仅在 checkable 变体下有效)
34
+ * Checked state (only for checkable variant)
35
+ * @default false
36
+ */
37
+ checked?: boolean;
38
+ /**
39
+ * 选中时的视觉效果 (仅在 checkable 为 true 且 checked 为 true 时有效)
40
+ * @default 'color'
41
+ */
42
+ selectEffect?: TagSelectEffect;
43
+ /**
44
+ * 自定义背景颜色
45
+ * Custom background color
46
+ */
47
+ color?: string;
48
+ /**
49
+ * 是否为圆角形状
50
+ * Whether the tag is round
51
+ * @default false
52
+ */
53
+ round?: boolean;
54
+ /**
55
+ * 是否禁用
56
+ * Whether the tag is disabled
57
+ * @default false
58
+ */
59
+ disabled?: boolean;
60
+ /**
61
+ * 前置图标
62
+ * Prefix icon
63
+ */
64
+ icon?: string | Component | VNode;
65
+ /**
66
+ * 后置图标
67
+ * Suffix icon
68
+ */
69
+ suffixIcon?: string | Component | VNode;
70
+ /**
71
+ * 自定义类名
72
+ */
73
+ class?: any;
74
+ /**
75
+ * 自定义样式
76
+ */
77
+ style?: CSSProperties;
78
+ }
79
+ export interface TagEmits {
80
+ (e: 'close', event: MouseEvent): void;
81
+ (e: 'click', event: MouseEvent): void;
82
+ (e: 'update:checked', checked: boolean): void;
83
+ }
@@ -0,0 +1,19 @@
1
+ type __VLS_Props = {
2
+ modelValue?: string;
3
+ format?: 'HH:mm:ss' | 'HH:mm' | 'mm:ss';
4
+ disabledHours?: () => number[];
5
+ disabledMinutes?: (hour: number) => number[];
6
+ disabledSeconds?: (hour: number, minute: number) => number[];
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ select: (args_0: string) => any;
10
+ "update:modelValue": (args_0: string) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onSelect?: ((args_0: string) => any) | undefined;
13
+ "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
+ hourRef: HTMLDivElement;
16
+ minuteRef: HTMLDivElement;
17
+ secondRef: HTMLDivElement;
18
+ }, HTMLDivElement>;
19
+ export default _default;
@@ -0,0 +1,15 @@
1
+ type __VLS_Props = {
2
+ modelValue?: string;
3
+ placeholder?: string;
4
+ disabled?: boolean;
5
+ clearable?: boolean;
6
+ size?: 'sm' | 'md' | 'lg';
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ change: (args_0: string) => any;
10
+ "update:modelValue": (args_0: string) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onChange?: ((args_0: string) => any) | undefined;
13
+ "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as TimePicker } from './TimePicker.vue';
3
+ import { default as TimePanel } from './TimePanel.vue';
4
+ export declare const LTimePicker: typeof TimePicker & Plugin;
5
+ export declare const LTimePanel: typeof TimePanel & Plugin;
6
+ export default LTimePicker;
@@ -0,0 +1,4 @@
1
+ require('../style/TimePanel.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 e=require("vue"),g=require("../chunks/use-form-item-CloIcyon.js"),P=require("../chunks/use-id-BycaM3-h.js"),u=require("../chunks/TimePanel.vue_vue_type_script_setup_true_lang-BNTM3OeU.js"),V=require("../input/index.js"),C=require("../popover/index.js"),T={viewBox:"0 0 24 24",width:"16",height:"16",style:{opacity:"0.5"}},z={class:"l-time-picker__panel"},L=e.defineComponent({name:"TimePicker",__name:"TimePicker",props:{modelValue:{},placeholder:{},disabled:{type:Boolean},clearable:{type:Boolean},size:{}},emits:["update:modelValue","change"],setup(t,{emit:p}){const v=t,i=p,{formItem:l,size:d,disabled:s,inputId:o}=g.useFormItem(v),h=P.useId("time-picker"),b=(o==null?void 0:o.value)||h,r=e.ref(!1),f=a=>{i("update:modelValue",a),i("change",a),l==null||l.validate("change").catch(()=>{})},k=()=>{i("update:modelValue",""),i("change",""),l==null||l.validate("change").catch(()=>{})};return e.watch(r,a=>{a||l==null||l.validate("blur").catch(()=>{})}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["l-time-picker",[`l-time-picker--${e.unref(d)}`]])},[e.createVNode(e.unref(C.LPopover),{visible:r.value,"onUpdate:visible":n[0]||(n[0]=_=>r.value=_),trigger:"click",placement:"bottom-start",disabled:e.unref(s),width:"204"},{content:e.withCtx(()=>[e.createElementVNode("div",z,[e.createVNode(u._sfc_main,{"model-value":t.modelValue,onSelect:f},null,8,["model-value"])])]),default:e.withCtx(()=>[e.createVNode(e.unref(V.LInput),{id:e.unref(b),"model-value":t.modelValue,"read-only":"",placeholder:t.placeholder||"请选择时间",disabled:e.unref(s),size:e.unref(d),clearable:t.clearable,autocomplete:"off",onClear:k},{prefix:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("svg",T,[...n[1]||(n[1]=[e.createElementVNode("path",{fill:"currentColor",d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"},null,-1)])]))]),_:1},8,["id","model-value","placeholder","disabled","size","clearable"])]),_:1},8,["visible","disabled"])],2))}}),c=L,m=u._sfc_main;c.install=t=>{t.component("LTimePicker",c),t.component("LTimePanel",m)};exports.LTimePanel=m;exports.LTimePicker=c;exports.default=c;