@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,391 @@
1
+ import { defineComponent as J, useSlots as Q, useAttrs as U, ref as X, computed as b, onMounted as Y, openBlock as s, createElementBlock as r, normalizeStyle as Z, unref as f, normalizeClass as L, renderSlot as B, createCommentVNode as p, createElementVNode as c, mergeProps as K, createVNode as ee, Transition as le, withCtx as ae, withKeys as N, toDisplayString as A } from "vue";
2
+ import "./manager-BUdQK4AD.mjs";
3
+ import { s as m, e as I, c as te } from "./index-B0yEC3RG.mjs";
4
+ import { u as ne } from "./use-signals-CE1T2jXK.mjs";
5
+ import { u as ue } from "./use-form-item-CqDbWCiU.mjs";
6
+ import { u as se } from "./use-id-D3casveg.mjs";
7
+ function re(e = {}) {
8
+ const y = m(typeof e.value == "function" ? e.value() : e.value ?? ""), x = m(typeof e.disabled == "function" ? e.disabled() : e.disabled ?? !1), t = m(typeof e.readonly == "function" ? e.readonly() : e.readonly ?? !1), v = m(typeof e.type == "function" ? e.type() : e.type ?? "text"), h = m(!1), g = m(!1), o = m(!1);
9
+ typeof e.value == "function" && I(() => {
10
+ y.value = e.value();
11
+ }), typeof e.disabled == "function" && I(() => {
12
+ x.value = e.disabled();
13
+ }), typeof e.readonly == "function" && I(() => {
14
+ t.value = e.readonly();
15
+ }), typeof e.type == "function" && I(() => {
16
+ v.value = e.type();
17
+ });
18
+ const n = te(() => y.value.length);
19
+ return {
20
+ state: {
21
+ get value() {
22
+ return y.value;
23
+ },
24
+ set value(a) {
25
+ y.value = a;
26
+ },
27
+ get disabled() {
28
+ return x.value;
29
+ },
30
+ set disabled(a) {
31
+ x.value = a;
32
+ },
33
+ get readonly() {
34
+ return t.value;
35
+ },
36
+ set readonly(a) {
37
+ t.value = a;
38
+ },
39
+ get type() {
40
+ return v.value;
41
+ },
42
+ set type(a) {
43
+ v.value = a;
44
+ },
45
+ get focused() {
46
+ return h.value;
47
+ },
48
+ set focused(a) {
49
+ h.value = a;
50
+ },
51
+ get hovered() {
52
+ return g.value;
53
+ },
54
+ set hovered(a) {
55
+ g.value = a;
56
+ },
57
+ get passwordVisible() {
58
+ return o.value;
59
+ },
60
+ set passwordVisible(a) {
61
+ o.value = a;
62
+ },
63
+ get wordCount() {
64
+ return n.value;
65
+ }
66
+ },
67
+ props: {
68
+ get value() {
69
+ return y.value;
70
+ },
71
+ get disabled() {
72
+ return x.value;
73
+ },
74
+ get readOnly() {
75
+ return t.value;
76
+ },
77
+ get type() {
78
+ return v.value === "password" ? o.value ? "text" : "password" : v.value;
79
+ },
80
+ onInput: (a) => {
81
+ var w;
82
+ const d = a.target.value;
83
+ y.value = d, (w = e.onInput) == null || w.call(e, d);
84
+ },
85
+ onChange: (a) => {
86
+ var d;
87
+ const u = a.target;
88
+ (d = e.onChange) == null || d.call(e, u.value);
89
+ },
90
+ onFocus: (a) => {
91
+ var u;
92
+ h.value = !0, (u = e.onFocus) == null || u.call(e, a);
93
+ },
94
+ onBlur: (a) => {
95
+ var u;
96
+ h.value = !1, (u = e.onBlur) == null || u.call(e, a);
97
+ },
98
+ onMouseEnter: () => {
99
+ g.value = !0;
100
+ },
101
+ onMouseLeave: () => {
102
+ g.value = !1;
103
+ }
104
+ },
105
+ actions: {
106
+ clear: () => {
107
+ var a, u, d;
108
+ y.value = "", (a = e.onInput) == null || a.call(e, ""), (u = e.onChange) == null || u.call(e, ""), (d = e.onClear) == null || d.call(e);
109
+ },
110
+ togglePasswordVisibility: () => {
111
+ o.value = !o.value;
112
+ }
113
+ }
114
+ };
115
+ }
116
+ const oe = {
117
+ key: 0,
118
+ class: "l-input-group__prepend"
119
+ }, de = {
120
+ key: 0,
121
+ class: "l-input__prefix"
122
+ }, ie = ["value"], ce = ["value"], ve = {
123
+ key: 3,
124
+ class: "l-input__suffix"
125
+ }, pe = { class: "l-input__suffix-inner" }, fe = ["aria-label", "aria-pressed"], ye = {
126
+ key: 0,
127
+ viewBox: "0 0 24 24",
128
+ width: "16",
129
+ height: "16",
130
+ fill: "none",
131
+ stroke: "currentColor",
132
+ "stroke-width": "2",
133
+ "stroke-linecap": "round",
134
+ "stroke-linejoin": "round"
135
+ }, he = {
136
+ key: 1,
137
+ viewBox: "0 0 24 24",
138
+ width: "16",
139
+ height: "16",
140
+ fill: "none",
141
+ stroke: "currentColor",
142
+ "stroke-width": "2",
143
+ "stroke-linecap": "round",
144
+ "stroke-linejoin": "round"
145
+ }, ge = ["id"], we = { class: "l-input__count-current" }, be = {
146
+ key: 0,
147
+ class: "l-input__count-separator"
148
+ }, me = {
149
+ key: 1,
150
+ class: "l-input__count-total"
151
+ }, xe = {
152
+ key: 1,
153
+ class: "l-input-group__append"
154
+ }, Me = /* @__PURE__ */ J({
155
+ inheritAttrs: !1,
156
+ __name: "Input",
157
+ props: {
158
+ modelValue: {},
159
+ type: { default: "text" },
160
+ placeholder: {},
161
+ disabled: { type: Boolean },
162
+ readonly: { type: Boolean },
163
+ clearable: { type: Boolean },
164
+ showPassword: { type: Boolean },
165
+ size: {},
166
+ maxLength: {},
167
+ minLength: {},
168
+ showWordLimit: { type: Boolean },
169
+ rows: {},
170
+ autosize: { type: [Boolean, Object] },
171
+ prefixIcon: {},
172
+ suffixIcon: {},
173
+ autofocus: { type: Boolean },
174
+ autocomplete: { default: "off" },
175
+ name: {},
176
+ id: {}
177
+ },
178
+ emits: ["update:modelValue", "input", "change", "focus", "blur", "clear"],
179
+ setup(e, { expose: y, emit: x }) {
180
+ const t = e, v = x, h = Q(), g = U(), o = X(null), { formItem: n, size: $, disabled: V, readonly: M, inputId: k } = ue(t), z = se("input"), C = b(() => t.id || (k == null ? void 0 : k.value) || z), a = re({
181
+ value: () => String(t.modelValue ?? ""),
182
+ disabled: () => t.disabled ?? V.value,
183
+ readonly: () => t.readonly ?? M.value,
184
+ type: () => t.type,
185
+ onInput: (l) => {
186
+ v("update:modelValue", l), v("input", l), n == null || n.validate("input");
187
+ },
188
+ onChange: (l) => {
189
+ v("change", l), n == null || n.validate("change");
190
+ },
191
+ onFocus: (l) => v("focus", l),
192
+ onBlur: (l) => {
193
+ v("blur", l), n == null || n.validate("blur");
194
+ },
195
+ onClear: () => v("clear")
196
+ }), {
197
+ value: u,
198
+ disabled: d,
199
+ readonly: w,
200
+ type: S,
201
+ focused: F,
202
+ hovered: O,
203
+ passwordVisible: _,
204
+ wordCount: H
205
+ } = ne(a, {
206
+ value: () => String(t.modelValue ?? ""),
207
+ disabled: () => t.disabled ?? V.value,
208
+ readonly: () => t.readonly ?? M.value,
209
+ type: () => t.type
210
+ }), j = b(() => t.type === "textarea"), q = b(() => t.size || $.value), D = b(() => t.clearable && !d.value && !w.value && u.value !== "" && (F.value || O.value)), E = b(() => t.showPassword && t.type === "password" && !d.value && !w.value && u.value !== ""), G = b(() => [
211
+ "l-input",
212
+ `l-input--${q.value}`,
213
+ {
214
+ "is-disabled": d.value,
215
+ "is-readonly": w.value,
216
+ "is-focused": F.value,
217
+ "l-input--textarea": j.value,
218
+ "l-input--prefix": !!(h.prefix || t.prefixIcon),
219
+ "l-input--suffix": !!(h.suffix || t.suffixIcon || t.clearable || t.showPassword),
220
+ "l-input--group": !!(h.prepend || h.append)
221
+ },
222
+ g.class
223
+ ]), R = b(() => {
224
+ const l = S.value === "password" && _.value;
225
+ return {
226
+ ...g,
227
+ class: "l-input__inner",
228
+ placeholder: t.placeholder,
229
+ maxlength: t.maxLength,
230
+ minlength: t.minLength,
231
+ autocomplete: t.autocomplete,
232
+ name: t.name,
233
+ id: C.value,
234
+ rows: t.rows,
235
+ "aria-labelledby": n == null ? void 0 : n.labelId,
236
+ "aria-describedby": [
237
+ t.showWordLimit ? `${C.value}-count` : "",
238
+ n == null ? void 0 : n.errorId
239
+ ].filter(Boolean).join(" ") || void 0,
240
+ ...a.props,
241
+ // 显式访问以确�?Vue 追踪依赖 | Explicitly access to ensure Vue tracking
242
+ disabled: d.value,
243
+ readonly: w.value,
244
+ // 如果是密码且可见,覆�?type | Override type if password and visible
245
+ type: l ? "text" : S.value
246
+ };
247
+ }), T = (l) => {
248
+ var i;
249
+ l.preventDefault(), l.stopPropagation(), a.actions.clear(), (i = o.value) == null || i.focus();
250
+ }, W = (l) => {
251
+ l.preventDefault(), l.stopPropagation(), a.actions.togglePasswordVisibility();
252
+ };
253
+ return Y(() => {
254
+ var l;
255
+ t.autofocus && ((l = o.value) == null || l.focus());
256
+ }), y({
257
+ input: o,
258
+ focus: () => {
259
+ var l;
260
+ return (l = o.value) == null ? void 0 : l.focus();
261
+ },
262
+ blur: () => {
263
+ var l;
264
+ return (l = o.value) == null ? void 0 : l.blur();
265
+ },
266
+ select: () => {
267
+ var l;
268
+ return (l = o.value) == null ? void 0 : l.select();
269
+ }
270
+ }), (l, i) => (s(), r("div", {
271
+ class: L(G.value),
272
+ style: Z(f(g).style)
273
+ }, [
274
+ l.$slots.prepend ? (s(), r("div", oe, [
275
+ B(l.$slots, "prepend")
276
+ ])) : p("", !0),
277
+ c("div", {
278
+ class: "l-input__wrapper",
279
+ onMouseenter: i[0] || (i[0] = //@ts-ignore
280
+ (...P) => f(a).props.onMouseEnter && f(a).props.onMouseEnter(...P)),
281
+ onMouseleave: i[1] || (i[1] = //@ts-ignore
282
+ (...P) => f(a).props.onMouseLeave && f(a).props.onMouseLeave(...P))
283
+ }, [
284
+ l.$slots.prefix || e.prefixIcon ? (s(), r("span", de, [
285
+ B(l.$slots, "prefix", {}, () => [
286
+ e.prefixIcon ? (s(), r("i", {
287
+ key: 0,
288
+ class: L(e.prefixIcon)
289
+ }, null, 2)) : p("", !0)
290
+ ])
291
+ ])) : p("", !0),
292
+ j.value ? (s(), r("textarea", K({
293
+ key: 1,
294
+ ref_key: "inputRef",
295
+ ref: o
296
+ }, R.value, { value: f(u) }), null, 16, ie)) : (s(), r("input", K({
297
+ key: 2,
298
+ ref_key: "inputRef",
299
+ ref: o
300
+ }, R.value, { value: f(u) }), null, 16, ce)),
301
+ l.$slots.suffix || e.suffixIcon || e.clearable || e.showPassword || e.showWordLimit ? (s(), r("span", ve, [
302
+ c("span", pe, [
303
+ !D.value && !E.value ? B(l.$slots, "suffix", { key: 0 }, () => [
304
+ e.suffixIcon ? (s(), r("i", {
305
+ key: 0,
306
+ class: L(e.suffixIcon)
307
+ }, null, 2)) : p("", !0)
308
+ ]) : p("", !0),
309
+ ee(le, { name: "l-fade" }, {
310
+ default: ae(() => [
311
+ D.value ? (s(), r("span", {
312
+ key: 0,
313
+ class: "l-input__clear",
314
+ role: "button",
315
+ tabindex: "0",
316
+ "aria-label": "清空内容",
317
+ onMousedown: T,
318
+ onKeydown: N(T, ["enter", "space"])
319
+ }, [...i[2] || (i[2] = [
320
+ c("svg", {
321
+ viewBox: "0 0 24 24",
322
+ width: "14",
323
+ height: "14",
324
+ fill: "none",
325
+ stroke: "currentColor",
326
+ "stroke-width": "2",
327
+ "stroke-linecap": "round",
328
+ "stroke-linejoin": "round"
329
+ }, [
330
+ c("circle", {
331
+ cx: "12",
332
+ cy: "12",
333
+ r: "10"
334
+ }),
335
+ c("path", { d: "m15 9-6 6" }),
336
+ c("path", { d: "m9 9 6 6" })
337
+ ], -1)
338
+ ])], 32)) : p("", !0)
339
+ ]),
340
+ _: 1
341
+ }),
342
+ E.value ? (s(), r("span", {
343
+ key: 1,
344
+ class: "l-input__password-toggle",
345
+ role: "button",
346
+ tabindex: "0",
347
+ "aria-label": f(_) ? "隐藏密码" : "显示密码",
348
+ "aria-pressed": f(_),
349
+ onMousedown: W,
350
+ onKeydown: N(W, ["enter", "space"])
351
+ }, [
352
+ f(_) ? (s(), r("svg", ye, [...i[3] || (i[3] = [
353
+ c("path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }, null, -1),
354
+ c("circle", {
355
+ cx: "12",
356
+ cy: "12",
357
+ r: "3"
358
+ }, null, -1)
359
+ ])])) : (s(), r("svg", he, [...i[4] || (i[4] = [
360
+ c("path", { d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }, null, -1),
361
+ c("path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242" }, null, -1),
362
+ c("path", { d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }, null, -1),
363
+ c("line", {
364
+ x1: "3",
365
+ x2: "21",
366
+ y1: "3",
367
+ y2: "21"
368
+ }, null, -1)
369
+ ])]))
370
+ ], 40, fe)) : p("", !0),
371
+ e.showWordLimit ? (s(), r("span", {
372
+ key: 2,
373
+ id: `${C.value}-count`,
374
+ class: "l-input__count"
375
+ }, [
376
+ c("span", we, A(f(H)), 1),
377
+ e.maxLength ? (s(), r("span", be, "/")) : p("", !0),
378
+ e.maxLength ? (s(), r("span", me, A(e.maxLength), 1)) : p("", !0)
379
+ ], 8, ge)) : p("", !0)
380
+ ])
381
+ ])) : p("", !0)
382
+ ], 32),
383
+ l.$slots.append ? (s(), r("div", xe, [
384
+ B(l.$slots, "append")
385
+ ])) : p("", !0)
386
+ ], 6));
387
+ }
388
+ });
389
+ export {
390
+ Me as _
391
+ };
@@ -0,0 +1,176 @@
1
+ import { defineComponent as G, useSlots as K, ref as u, computed as w, watch as _, nextTick as q, onMounted as H, onUnmounted as J, openBlock as r, createElementBlock as a, Fragment as E, createElementVNode as T, unref as f, renderSlot as g, createBlock as S, Teleport as Q, createVNode as W, Transition as X, withCtx as Y, normalizeStyle as ee, normalizeClass as te, createTextVNode as $, toDisplayString as x, createCommentVNode as I, resolveDynamicComponent as oe } from "vue";
2
+ import "./manager-BUdQK4AD.mjs";
3
+ import { u as ne } from "./z-index-D9ecXoNe.mjs";
4
+ import { a as re } from "./auto-update-Dw-2qIsQ.mjs";
5
+ import { c as ie } from "./controller-DZp6lWY1.mjs";
6
+ import { u as se } from "./use-signals-CE1T2jXK.mjs";
7
+ import { useTeleportedConfig as le } from "../config-provider/index.mjs";
8
+ import { u as ae } from "./use-id-D3casveg.mjs";
9
+ const de = {
10
+ trigger: {
11
+ type: String,
12
+ default: "click"
13
+ },
14
+ title: String,
15
+ content: String,
16
+ renderContent: Function,
17
+ placement: {
18
+ type: String,
19
+ default: "bottom"
20
+ },
21
+ disabled: {
22
+ type: Boolean,
23
+ default: !1
24
+ },
25
+ width: {
26
+ type: [String, Number],
27
+ default: 150
28
+ },
29
+ showAfter: {
30
+ type: Number,
31
+ default: 0
32
+ },
33
+ hideAfter: {
34
+ type: Number,
35
+ default: 200
36
+ },
37
+ persistent: {
38
+ type: Boolean,
39
+ default: !1
40
+ },
41
+ visible: {
42
+ type: Boolean,
43
+ default: !1
44
+ },
45
+ popperClass: {
46
+ type: [String, Array, Object],
47
+ default: ""
48
+ }
49
+ }, ce = {
50
+ show: () => !0,
51
+ hide: () => !0,
52
+ "update:visible": (m) => !0
53
+ }, pe = ["aria-haspopup", "aria-expanded", "tabindex"], ue = ["data-theme", "aria-labelledby"], fe = ["id"], ge = { class: "l-popover__content" }, _e = /* @__PURE__ */ G({
54
+ name: "Popover",
55
+ __name: "Popover",
56
+ props: de,
57
+ emits: ce,
58
+ setup(m, { expose: N, emit: R }) {
59
+ const t = m, d = R, { teleportedCssVars: B, teleportedTheme: F } = le();
60
+ K();
61
+ const v = u(null), n = u(null), P = ae("popover"), h = w(() => `${P}-title`), y = (e) => {
62
+ e.key === "Escape" && i.value && o.actions.close();
63
+ }, l = () => v.value, c = () => {
64
+ const e = l();
65
+ e && o.actions.setReference(e);
66
+ }, o = ie({
67
+ placement: t.placement,
68
+ offset: 8,
69
+ openDelay: t.showAfter,
70
+ closeDelay: t.hideAfter
71
+ }), { nextZIndex: V } = ne(), b = u(3e3), {
72
+ isOpen: i,
73
+ x: A,
74
+ y: D
75
+ } = se(o), k = () => {
76
+ const e = l();
77
+ e && n.value && (o.actions.setReference(e), o.actions.updatePosition(n.value));
78
+ };
79
+ let s = null;
80
+ _(i, (e) => {
81
+ e ? (b.value = V(), q(() => {
82
+ const p = l();
83
+ p && n.value && (s = re(p, n.value, k));
84
+ }), d("show")) : (s == null || s(), s = null, d("hide")), d("update:visible", e);
85
+ }), _(() => t.visible, (e) => {
86
+ e !== i.value && (e ? o.actions.open() : o.actions.close());
87
+ }, { immediate: !0 }), N({
88
+ open: o.actions.open,
89
+ close: o.actions.close
90
+ });
91
+ const C = (e) => {
92
+ t.trigger === "click" && o.actions.handleInteractOutside(e.target, l(), n.value);
93
+ };
94
+ H(() => {
95
+ t.trigger === "click" && document.addEventListener("click", C), document.addEventListener("keydown", y);
96
+ }), J(() => {
97
+ t.trigger === "click" && document.removeEventListener("click", C), document.removeEventListener("keydown", y), window.removeEventListener("resize", k), o.actions.unregister();
98
+ });
99
+ const L = w(() => ({
100
+ top: `${D.value}px`,
101
+ left: `${A.value}px`,
102
+ width: typeof t.width == "number" ? `${t.width}px` : t.width,
103
+ zIndex: b.value,
104
+ ...B.value
105
+ })), M = () => {
106
+ t.trigger !== "hover" || t.disabled || (c(), o.actions.open());
107
+ }, z = () => {
108
+ t.trigger !== "hover" || t.disabled || o.actions.close();
109
+ }, O = () => {
110
+ t.trigger !== "click" || t.disabled || (c(), o.actions.toggle());
111
+ }, Z = () => {
112
+ t.trigger !== "focus" || t.disabled || (c(), o.actions.open());
113
+ }, U = () => {
114
+ t.trigger !== "focus" || t.disabled || o.actions.close();
115
+ }, j = () => {
116
+ var e;
117
+ return (e = t.renderContent) == null ? void 0 : e.call(t);
118
+ };
119
+ return (e, p) => (r(), a(E, null, [
120
+ T("span", {
121
+ ref_key: "triggerRef",
122
+ ref: v,
123
+ class: "l-popover__trigger",
124
+ "aria-haspopup": t.disabled ? void 0 : "dialog",
125
+ "aria-expanded": t.disabled ? void 0 : f(i) ? "true" : "false",
126
+ tabindex: t.trigger === "focus" && !t.disabled ? 0 : void 0,
127
+ onMouseenter: M,
128
+ onMouseleave: z,
129
+ onClick: O,
130
+ onFocusin: Z,
131
+ onFocusout: U
132
+ }, [
133
+ g(e.$slots, "default")
134
+ ], 40, pe),
135
+ (r(), S(Q, { to: "body" }, [
136
+ W(X, { name: "l-popover-fade" }, {
137
+ default: Y(() => [
138
+ f(i) ? (r(), a("div", {
139
+ key: 0,
140
+ ref_key: "popperRef",
141
+ ref: n,
142
+ class: te(["l-popover", e.popperClass]),
143
+ "data-theme": f(F),
144
+ style: ee(L.value),
145
+ role: "dialog",
146
+ "aria-labelledby": e.title || e.$slots.title ? h.value : void 0
147
+ }, [
148
+ e.title || e.$slots.title ? (r(), a("div", {
149
+ key: 0,
150
+ id: h.value,
151
+ class: "l-popover__title"
152
+ }, [
153
+ g(e.$slots, "title", {}, () => [
154
+ $(x(e.title), 1)
155
+ ])
156
+ ], 8, fe)) : I("", !0),
157
+ T("div", ge, [
158
+ g(e.$slots, "content", {}, () => [
159
+ e.renderContent ? (r(), S(oe(j()), { key: 0 })) : (r(), a(E, { key: 1 }, [
160
+ $(x(e.content), 1)
161
+ ], 64))
162
+ ])
163
+ ])
164
+ ], 14, ue)) : I("", !0)
165
+ ]),
166
+ _: 3
167
+ })
168
+ ]))
169
+ ], 64));
170
+ }
171
+ });
172
+ export {
173
+ _e as _,
174
+ de as a,
175
+ ce as p
176
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue");require("./manager-C0AUxQ1I.js");const R=require("./z-index-CNZLw1v7.js"),F=require("./auto-update-6n8Xn1EH.js"),D=require("./controller-37WpkEdZ.js"),z=require("./use-signals-Bz1smiXh.js"),A=require("../config-provider/index.js"),L=require("./use-id-BycaM3-h.js"),y={trigger:{type:String,default:"click"},title:String,content:String,renderContent:Function,placement:{type:String,default:"bottom"},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:150},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},persistent:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},popperClass:{type:[String,Array,Object],default:""}},k={show:()=>!0,hide:()=>!0,"update:visible":u=>!0},M=["aria-haspopup","aria-expanded","tabindex"],O=["data-theme","aria-labelledby"],U=["id"],Z={class:"l-popover__content"},j=e.defineComponent({name:"Popover",__name:"Popover",props:y,emits:k,setup(u,{expose:b,emit:C}){const o=u,a=C,{teleportedCssVars:E,teleportedTheme:w}=A.useTeleportedConfig();e.useSlots();const p=e.ref(null),r=e.ref(null),B=L.useId("popover"),g=e.computed(()=>`${B}-title`),f=t=>{t.key==="Escape"&&i.value&&n.actions.close()},s=()=>p.value,c=()=>{const t=s();t&&n.actions.setReference(t)},n=D.createPopoverController({placement:o.placement,offset:8,openDelay:o.showAfter,closeDelay:o.hideAfter}),{nextZIndex:S}=R.useZIndex(),v=e.ref(3e3),{isOpen:i,x:_,y:T}=z.useController(n),m=()=>{const t=s();t&&r.value&&(n.actions.setReference(t),n.actions.updatePosition(r.value))};let l=null;e.watch(i,t=>{t?(v.value=S(),e.nextTick(()=>{const d=s();d&&r.value&&(l=F.autoUpdate(d,r.value,m))}),a("show")):(l==null||l(),l=null,a("hide")),a("update:visible",t)}),e.watch(()=>o.visible,t=>{t!==i.value&&(t?n.actions.open():n.actions.close())},{immediate:!0}),b({open:n.actions.open,close:n.actions.close});const h=t=>{o.trigger==="click"&&n.actions.handleInteractOutside(t.target,s(),r.value)};e.onMounted(()=>{o.trigger==="click"&&document.addEventListener("click",h),document.addEventListener("keydown",f)}),e.onUnmounted(()=>{o.trigger==="click"&&document.removeEventListener("click",h),document.removeEventListener("keydown",f),window.removeEventListener("resize",m),n.actions.unregister()});const N=e.computed(()=>({top:`${T.value}px`,left:`${_.value}px`,width:typeof o.width=="number"?`${o.width}px`:o.width,zIndex:v.value,...E.value})),I=()=>{o.trigger!=="hover"||o.disabled||(c(),n.actions.open())},$=()=>{o.trigger!=="hover"||o.disabled||n.actions.close()},x=()=>{o.trigger!=="click"||o.disabled||(c(),n.actions.toggle())},V=()=>{o.trigger!=="focus"||o.disabled||(c(),n.actions.open())},q=()=>{o.trigger!=="focus"||o.disabled||n.actions.close()},P=()=>{var t;return(t=o.renderContent)==null?void 0:t.call(o)};return(t,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("span",{ref_key:"triggerRef",ref:p,class:"l-popover__trigger","aria-haspopup":o.disabled?void 0:"dialog","aria-expanded":o.disabled?void 0:e.unref(i)?"true":"false",tabindex:o.trigger==="focus"&&!o.disabled?0:void 0,onMouseenter:I,onMouseleave:$,onClick:x,onFocusin:V,onFocusout:q},[e.renderSlot(t.$slots,"default")],40,M),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"l-popover-fade"},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"popperRef",ref:r,class:e.normalizeClass(["l-popover",t.popperClass]),"data-theme":e.unref(w),style:e.normalizeStyle(N.value),role:"dialog","aria-labelledby":t.title||t.$slots.title?g.value:void 0},[t.title||t.$slots.title?(e.openBlock(),e.createElementBlock("div",{key:0,id:g.value,class:"l-popover__title"},[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])],8,U)):e.createCommentVNode("",!0),e.createElementVNode("div",Z,[e.renderSlot(t.$slots,"content",{},()=>[t.renderContent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(P()),{key:0})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.content),1)],64))])])],14,O)):e.createCommentVNode("",!0)]),_:3})]))],64))}});exports._sfc_main=j;exports.popoverEmits=k;exports.popoverProps=y;
@@ -0,0 +1 @@
1
+ "use strict";const c=require("vue");require("./manager-C0AUxQ1I.js");const m=require("./index-DWAWrVaT.js"),C=require("./use-signals-Bz1smiXh.js"),S=(r,n)=>Math.abs(r-n)>.5;function g(r={}){const n=m.signal(r.direction??"both"),f=m.signal(r.scrollTop??0),t=m.signal(r.scrollLeft??0),s=e=>{f.value=e},o=e=>{t.value=e};return{state:{get direction(){return n.value},set direction(e){n.value=e},get scrollTop(){return f.value},set scrollTop(e){s(e)},get scrollLeft(){return t.value},set scrollLeft(e){o(e)}},actions:{handleScroll:(e,d,L)=>{var p,v,T;s(e),o(d),(p=r.onScrollTopChange)==null||p.call(r,e),(v=r.onScrollLeftChange)==null||v.call(r,d),(T=r.onScroll)==null||T.call(r,L)},syncControlled:e=>{typeof e.scrollTop=="number"&&S(f.value,e.scrollTop)&&s(e.scrollTop),typeof e.scrollLeft=="number"&&S(t.value,e.scrollLeft)&&o(e.scrollLeft)},scrollTo:e=>{typeof e.top=="number"&&s(e.top),typeof e.left=="number"&&o(e.left)},setScrollTop:s,setScrollLeft:o}}}const y={class:"l-scrollbar"},w={class:"l-scrollbar__content"},M=c.defineComponent({name:"Scrollbar",__name:"Scrollbar",props:{direction:{default:"both"},scrollTop:{},scrollLeft:{}},emits:["scroll","update:scrollTop","update:scrollLeft"],setup(r,{expose:n,emit:f}){const t=r,s=f,o=c.ref(null),a=g({direction:t.direction,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft,onScrollTopChange:l=>s("update:scrollTop",l),onScrollLeftChange:l=>s("update:scrollLeft",l),onScroll:l=>s("scroll",l)}),{direction:h,scrollTop:i,scrollLeft:e}=C.useController(a),d=c.computed(()=>["l-scrollbar__viewport",`l-scrollbar__viewport--${h.value}`]),L=l=>{const u=l.target;a.actions.handleScroll(u.scrollTop,u.scrollLeft,l)},p=l=>{var u;a.actions.scrollTo(l),(u=o.value)==null||u.scrollTo(l)},v=l=>{a.actions.setScrollTop(l),o.value&&(o.value.scrollTop=l)},T=l=>{a.actions.setScrollLeft(l),o.value&&(o.value.scrollLeft=l)},b=()=>{a.actions.syncControlled({scrollTop:t.scrollTop,scrollLeft:t.scrollLeft})},_=()=>{o.value&&(Math.abs(o.value.scrollTop-i.value)>.5&&(o.value.scrollTop=i.value),Math.abs(o.value.scrollLeft-e.value)>.5&&(o.value.scrollLeft=e.value))};return c.watch(()=>t.direction,l=>{h.value=l},{immediate:!0}),c.watch(()=>t.scrollTop,l=>{a.actions.syncControlled({scrollTop:l})},{immediate:!0,flush:"post"}),c.watch(()=>t.scrollLeft,l=>{a.actions.syncControlled({scrollLeft:l})},{immediate:!0,flush:"post"}),c.watch(i,l=>{o.value&&Math.abs(o.value.scrollTop-l)>.5&&(o.value.scrollTop=l)},{immediate:!0,flush:"post"}),c.watch(e,l=>{o.value&&Math.abs(o.value.scrollLeft-l)>.5&&(o.value.scrollLeft=l)},{immediate:!0,flush:"post"}),c.onMounted(()=>{b(),_()}),n({wrapRef:o,scrollTo:p,setScrollTop:v,setScrollLeft:T}),(l,u)=>(c.openBlock(),c.createElementBlock("div",y,[c.createElementVNode("div",{ref_key:"wrapRef",ref:o,class:c.normalizeClass(d.value),onScroll:L},[c.createElementVNode("div",w,[c.renderSlot(l.$slots,"default")])],34)]))}});exports._sfc_main=M;