vft 0.0.74 → 0.0.77

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 (373) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/component.js +67 -48
  4. package/es/components/affix/affix.js +45 -0
  5. package/es/components/affix/affix.vue.js +4 -0
  6. package/es/components/affix/affix.vue2.js +83 -0
  7. package/es/components/affix/index.js +12 -0
  8. package/es/components/affix/style/css.js +2 -0
  9. package/es/components/affix/style/index.js +2 -0
  10. package/es/components/back-top/back-top.vue2.js +10 -2
  11. package/es/components/button/button.vue2.js +58 -59
  12. package/es/components/button/use-button.js +26 -20
  13. package/es/components/card/card.vue.js +4 -0
  14. package/es/components/card/card.vue2.js +44 -0
  15. package/es/components/card/index.js +12 -0
  16. package/es/components/card/instance.js +1 -0
  17. package/es/components/card/style/css.js +2 -0
  18. package/es/components/card/style/index.js +2 -0
  19. package/es/components/check-tag/check-tag.vue.js +4 -0
  20. package/es/components/check-tag/check-tag.vue2.js +35 -0
  21. package/es/components/check-tag/index.js +12 -0
  22. package/es/components/check-tag/style/css.js +2 -0
  23. package/es/components/check-tag/style/index.js +2 -0
  24. package/es/components/color-picker/color-picker.vue2.js +1 -1
  25. package/es/components/context-menu/context-menu.vue2.js +10 -2
  26. package/es/components/date-picker/composables/use-month-range-header.js +1 -1
  27. package/es/components/date-picker/constants.js +16 -2
  28. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +37 -34
  29. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +0 -1
  30. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +177 -178
  31. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +328 -336
  32. package/es/components/date-picker/date-picker.js +18 -18
  33. package/es/components/date-picker/index.js +5 -4
  34. package/es/components/date-picker/props/shared.js +1 -1
  35. package/es/components/date-time-select/date-time-select.vue2.js +59 -59
  36. package/es/components/dialog/dialog.vue2.js +12 -12
  37. package/es/components/dialog/hooks/use-dialog.js +4 -4
  38. package/es/components/dropdown/dropdown-menu.vue2.js +4 -4
  39. package/es/components/footer-layout/footer-layout.vue2.js +10 -2
  40. package/es/components/header-layout/header-layout.vue2.js +10 -2
  41. package/es/components/horizontal-menu/constants.js +4 -0
  42. package/es/components/horizontal-menu/horizontal-menu.vue2.js +153 -86
  43. package/es/components/horizontal-menu/index.js +7 -5
  44. package/es/components/horizontal-menu/style/css.js +3 -0
  45. package/es/components/horizontal-menu/style/index.js +3 -0
  46. package/es/components/index.js +228 -194
  47. package/es/components/md-container/md-container.vue2.js +10 -2
  48. package/es/components/menu/menu-item.vue2.js +58 -58
  49. package/es/components/menu/menu.vue2.js +72 -68
  50. package/es/components/menu/style/css.js +3 -0
  51. package/es/components/menu/style/index.js +3 -0
  52. package/es/components/menu/sub-menu.vue2.js +139 -117
  53. package/es/components/multiple-tabs/multiple-tabs.vue2.js +35 -26
  54. package/es/components/option/style/css.js +2 -0
  55. package/es/components/option/style/index.js +2 -0
  56. package/es/components/option-group/style/css.js +2 -0
  57. package/es/components/option-group/style/index.js +2 -0
  58. package/es/components/popconfirm/index.js +12 -0
  59. package/es/components/popconfirm/popconfirm.vue.js +4 -0
  60. package/es/components/popconfirm/popconfirm.vue2.js +112 -0
  61. package/es/components/popconfirm/style/css.js +6 -0
  62. package/es/components/popconfirm/style/index.js +6 -0
  63. package/es/components/result/result.vue2.js +10 -2
  64. package/es/components/roving-focus-group/roving-focus-item.vue2.js +1 -1
  65. package/es/components/select/index.js +22 -0
  66. package/es/components/select/option-group.vue.js +25 -0
  67. package/es/components/select/option-group.vue2.js +53 -0
  68. package/es/components/select/option.vue.js +27 -0
  69. package/es/components/select/option.vue2.js +58 -0
  70. package/es/components/select/options.js +34 -0
  71. package/es/components/select/select-dropdown.vue.js +15 -0
  72. package/es/components/select/select-dropdown.vue2.js +32 -0
  73. package/es/components/select/select.vue.js +327 -0
  74. package/es/components/select/select.vue2.js +348 -0
  75. package/es/components/select/style/css.js +8 -0
  76. package/es/components/select/style/index.js +8 -0
  77. package/es/components/select/token.js +5 -0
  78. package/es/components/select/useOption.js +71 -0
  79. package/es/components/select/useSelect.js +414 -0
  80. package/es/components/select-v2/select-dropdown.js +1 -1
  81. package/es/components/select-v2/useSelect.js +269 -269
  82. package/es/components/side-menu/side-menu.vue2.js +153 -142
  83. package/es/components/side-menu/style/css.js +3 -0
  84. package/es/components/side-menu/style/index.js +3 -0
  85. package/es/components/skeleton/index.js +16 -0
  86. package/es/components/skeleton/skeleton-item.vue.js +4 -0
  87. package/es/components/skeleton/skeleton-item.vue2.js +31 -0
  88. package/es/components/skeleton/skeleton.vue.js +4 -0
  89. package/es/components/skeleton/skeleton.vue2.js +55 -0
  90. package/es/components/skeleton/style/css.js +3 -0
  91. package/es/components/skeleton/style/index.js +3 -0
  92. package/es/components/skeleton-item/style/css.js +2 -0
  93. package/es/components/skeleton-item/style/index.js +2 -0
  94. package/es/components/space/index.js +17 -0
  95. package/es/components/space/item.js +24 -0
  96. package/es/components/space/space.js +182 -0
  97. package/es/components/space/style/css.js +2 -0
  98. package/es/components/space/style/index.js +2 -0
  99. package/es/components/space/use-space.js +44 -0
  100. package/es/components/switch/switch.vue2.js +1 -1
  101. package/es/components/tabs/tab-nav.vue2.js +30 -22
  102. package/es/components/tabs/tabs.vue2.js +37 -37
  103. package/es/components/time-picker/common/picker.vue2.js +241 -257
  104. package/es/components/time-picker/common/props.js +10 -6
  105. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +1 -1
  106. package/es/components/time-picker/time-picker.js +10 -10
  107. package/es/components/time-select/time-select.vue2.js +38 -42
  108. package/es/components/tooltip/content.vue2.js +1 -1
  109. package/es/components/tree/index.js +14 -0
  110. package/es/components/tree/model/node.js +248 -0
  111. package/es/components/tree/model/tree-store.js +197 -0
  112. package/es/components/tree/model/useDragNode.js +71 -0
  113. package/es/components/tree/model/useKeydown.js +81 -0
  114. package/es/components/tree/model/useNodeExpandEventBroadcast.js +19 -0
  115. package/es/components/tree/model/util.js +21 -0
  116. package/es/components/tree/style/css.js +3 -0
  117. package/es/components/tree/style/index.js +3 -0
  118. package/es/components/tree/tree-node-content.vue.js +4 -0
  119. package/es/components/tree/tree-node-content.vue2.js +28 -0
  120. package/es/components/tree/tree-node.vue.js +98 -0
  121. package/es/components/tree/tree-node.vue2.js +152 -0
  122. package/es/components/tree/tree.type.js +1 -0
  123. package/es/components/tree/tree.vue.js +48 -0
  124. package/es/components/tree/tree.vue2.js +268 -0
  125. package/es/components/tree-select/cache-options.js +32 -0
  126. package/es/components/tree-select/index.js +9 -0
  127. package/es/components/tree-select/select.js +38 -0
  128. package/es/components/tree-select/style/css.js +11 -0
  129. package/es/components/tree-select/style/index.js +11 -0
  130. package/es/components/tree-select/tree-select-option.js +21 -0
  131. package/es/components/tree-select/tree-select.vue.js +4 -0
  132. package/es/components/tree-select/tree-select.vue2.js +81 -0
  133. package/es/components/tree-select/tree.js +137 -0
  134. package/es/components/tree-select/utils.js +45 -0
  135. package/es/hooks/index.js +25 -21
  136. package/es/hooks/use-focus/index.js +9 -0
  137. package/es/hooks/use-throttle-render/index.js +21 -0
  138. package/es/index.js +408 -368
  139. package/es/package.json.js +1 -1
  140. package/es/utils/helper.js +5 -2
  141. package/es/utils/index.js +48 -46
  142. package/lib/component.cjs +1 -1
  143. package/lib/components/affix/affix.cjs +1 -0
  144. package/lib/components/affix/affix.vue.cjs +1 -0
  145. package/lib/components/affix/affix.vue2.cjs +1 -0
  146. package/lib/components/affix/index.cjs +1 -0
  147. package/lib/components/affix/style/css.cjs +1 -0
  148. package/lib/components/affix/style/index.cjs +1 -0
  149. package/lib/components/back-top/back-top.vue2.cjs +1 -1
  150. package/lib/components/button/button.vue2.cjs +1 -1
  151. package/lib/components/button/use-button.cjs +1 -1
  152. package/lib/components/card/card.vue.cjs +1 -0
  153. package/lib/components/card/card.vue2.cjs +1 -0
  154. package/lib/components/card/index.cjs +1 -0
  155. package/lib/components/card/instance.cjs +1 -0
  156. package/lib/components/card/style/css.cjs +1 -0
  157. package/lib/components/card/style/index.cjs +1 -0
  158. package/lib/components/check-tag/check-tag.vue.cjs +1 -0
  159. package/lib/components/check-tag/check-tag.vue2.cjs +1 -0
  160. package/lib/components/check-tag/index.cjs +1 -0
  161. package/lib/components/check-tag/style/css.cjs +1 -0
  162. package/lib/components/check-tag/style/index.cjs +1 -0
  163. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  164. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  165. package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
  166. package/lib/components/date-picker/constants.cjs +1 -1
  167. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  168. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  169. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  170. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  171. package/lib/components/date-picker/date-picker.cjs +1 -1
  172. package/lib/components/date-picker/index.cjs +1 -1
  173. package/lib/components/date-picker/props/shared.cjs +1 -1
  174. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  175. package/lib/components/dialog/dialog.vue2.cjs +1 -1
  176. package/lib/components/dialog/hooks/use-dialog.cjs +1 -1
  177. package/lib/components/dropdown/dropdown-menu.vue2.cjs +1 -1
  178. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  179. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  180. package/lib/components/horizontal-menu/constants.cjs +1 -0
  181. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  182. package/lib/components/horizontal-menu/index.cjs +1 -1
  183. package/lib/components/horizontal-menu/style/css.cjs +1 -1
  184. package/lib/components/horizontal-menu/style/index.cjs +1 -1
  185. package/lib/components/index.cjs +1 -1
  186. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  187. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  188. package/lib/components/menu/menu.vue2.cjs +1 -1
  189. package/lib/components/menu/style/css.cjs +1 -1
  190. package/lib/components/menu/style/index.cjs +1 -1
  191. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  192. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  193. package/lib/components/option/style/css.cjs +1 -0
  194. package/lib/components/option/style/index.cjs +1 -0
  195. package/lib/components/option-group/style/css.cjs +1 -0
  196. package/lib/components/option-group/style/index.cjs +1 -0
  197. package/lib/components/popconfirm/index.cjs +1 -0
  198. package/lib/components/popconfirm/popconfirm.vue.cjs +1 -0
  199. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -0
  200. package/lib/components/popconfirm/style/css.cjs +1 -0
  201. package/lib/components/popconfirm/style/index.cjs +1 -0
  202. package/lib/components/result/result.vue2.cjs +1 -1
  203. package/lib/components/roving-focus-group/roving-focus-item.vue2.cjs +1 -1
  204. package/lib/components/select/index.cjs +1 -0
  205. package/lib/components/select/option-group.vue.cjs +1 -0
  206. package/lib/components/select/option-group.vue2.cjs +1 -0
  207. package/lib/components/select/option.vue.cjs +1 -0
  208. package/lib/components/select/option.vue2.cjs +1 -0
  209. package/lib/components/select/options.cjs +1 -0
  210. package/lib/components/select/select-dropdown.vue.cjs +1 -0
  211. package/lib/components/select/select-dropdown.vue2.cjs +1 -0
  212. package/lib/components/select/select.vue.cjs +1 -0
  213. package/lib/components/select/select.vue2.cjs +1 -0
  214. package/lib/components/select/style/css.cjs +1 -0
  215. package/lib/components/select/style/index.cjs +1 -0
  216. package/lib/components/select/token.cjs +1 -0
  217. package/lib/components/select/useOption.cjs +1 -0
  218. package/lib/components/select/useSelect.cjs +1 -0
  219. package/lib/components/select-v2/select-dropdown.cjs +1 -1
  220. package/lib/components/select-v2/useSelect.cjs +1 -1
  221. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  222. package/lib/components/side-menu/style/css.cjs +1 -1
  223. package/lib/components/side-menu/style/index.cjs +1 -1
  224. package/lib/components/skeleton/index.cjs +1 -0
  225. package/lib/components/skeleton/skeleton-item.vue.cjs +1 -0
  226. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -0
  227. package/lib/components/skeleton/skeleton.vue.cjs +1 -0
  228. package/lib/components/skeleton/skeleton.vue2.cjs +1 -0
  229. package/lib/components/skeleton/style/css.cjs +1 -0
  230. package/lib/components/skeleton/style/index.cjs +1 -0
  231. package/lib/components/skeleton-item/style/css.cjs +1 -0
  232. package/lib/components/skeleton-item/style/index.cjs +1 -0
  233. package/lib/components/space/index.cjs +1 -0
  234. package/lib/components/space/item.cjs +1 -0
  235. package/lib/components/space/space.cjs +1 -0
  236. package/lib/components/space/style/css.cjs +1 -0
  237. package/lib/components/space/style/index.cjs +1 -0
  238. package/lib/components/space/use-space.cjs +1 -0
  239. package/lib/components/switch/switch.vue2.cjs +1 -1
  240. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  241. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  242. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  243. package/lib/components/time-picker/common/props.cjs +1 -1
  244. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  245. package/lib/components/time-picker/time-picker.cjs +1 -1
  246. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  247. package/lib/components/tooltip/content.vue2.cjs +1 -1
  248. package/lib/components/tree/index.cjs +1 -0
  249. package/lib/components/tree/model/node.cjs +1 -0
  250. package/lib/components/tree/model/tree-store.cjs +1 -0
  251. package/lib/components/tree/model/useDragNode.cjs +1 -0
  252. package/lib/components/tree/model/useKeydown.cjs +1 -0
  253. package/lib/components/tree/model/useNodeExpandEventBroadcast.cjs +1 -0
  254. package/lib/components/tree/model/util.cjs +1 -0
  255. package/lib/components/tree/style/css.cjs +1 -0
  256. package/lib/components/tree/style/index.cjs +1 -0
  257. package/lib/components/tree/tree-node-content.vue.cjs +1 -0
  258. package/lib/components/tree/tree-node-content.vue2.cjs +1 -0
  259. package/lib/components/tree/tree-node.vue.cjs +1 -0
  260. package/lib/components/tree/tree-node.vue2.cjs +1 -0
  261. package/lib/components/tree/tree.type.cjs +1 -0
  262. package/lib/components/tree/tree.vue.cjs +1 -0
  263. package/lib/components/tree/tree.vue2.cjs +1 -0
  264. package/lib/components/tree-select/cache-options.cjs +1 -0
  265. package/lib/components/tree-select/index.cjs +1 -0
  266. package/lib/components/tree-select/select.cjs +1 -0
  267. package/lib/components/tree-select/style/css.cjs +1 -0
  268. package/lib/components/tree-select/style/index.cjs +1 -0
  269. package/lib/components/tree-select/tree-select-option.cjs +1 -0
  270. package/lib/components/tree-select/tree-select.vue.cjs +1 -0
  271. package/lib/components/tree-select/tree-select.vue2.cjs +1 -0
  272. package/lib/components/tree-select/tree.cjs +1 -0
  273. package/lib/components/tree-select/utils.cjs +1 -0
  274. package/lib/hooks/index.cjs +1 -1
  275. package/lib/hooks/use-focus/index.cjs +1 -0
  276. package/lib/hooks/use-throttle-render/index.cjs +1 -0
  277. package/lib/index.cjs +1 -1
  278. package/lib/package.json.cjs +1 -1
  279. package/lib/utils/helper.cjs +1 -1
  280. package/lib/utils/index.cjs +1 -1
  281. package/package.json +2 -2
  282. package/tags.json +1 -1
  283. package/theme-style/base.css +1 -1
  284. package/theme-style/index.css +1 -1
  285. package/theme-style/src/alert.scss +1 -1
  286. package/theme-style/src/autocomplete.scss +2 -2
  287. package/theme-style/src/breadcrumb.scss +4 -4
  288. package/theme-style/src/calendar.scss +2 -2
  289. package/theme-style/src/card.scss +1 -1
  290. package/theme-style/src/carousel.scss +1 -1
  291. package/theme-style/src/cascader.scss +3 -3
  292. package/theme-style/src/check-tag.scss +3 -3
  293. package/theme-style/src/checkbox.scss +1 -1
  294. package/theme-style/src/color-picker.scss +2 -2
  295. package/theme-style/src/common/var.scss +527 -521
  296. package/theme-style/src/date-picker/date-picker.scss +1 -1
  297. package/theme-style/src/date-picker/date-range-picker.scss +2 -2
  298. package/theme-style/src/date-picker/date-table.scss +1 -1
  299. package/theme-style/src/date-picker/month-table.scss +2 -2
  300. package/theme-style/src/date-picker/picker-panel.scss +4 -5
  301. package/theme-style/src/date-picker/picker.scss +7 -9
  302. package/theme-style/src/date-picker/time-picker.scss +2 -2
  303. package/theme-style/src/date-picker/time-spinner.scss +6 -8
  304. package/theme-style/src/date-picker/year-table.scss +3 -3
  305. package/theme-style/src/date-time-select.scss +3 -4
  306. package/theme-style/src/descriptions-item.scss +4 -4
  307. package/theme-style/src/descriptions.scss +2 -2
  308. package/theme-style/src/header-layout.scss +1 -1
  309. package/theme-style/src/horizontal-menu.scss +27 -39
  310. package/theme-style/src/image-viewer.scss +1 -1
  311. package/theme-style/src/index.scss +3 -0
  312. package/theme-style/src/input-number.scss +1 -1
  313. package/theme-style/src/menu.scss +76 -66
  314. package/theme-style/src/mixins/_var.scss +2 -2
  315. package/theme-style/src/mixins/mixins.scss +2 -2
  316. package/theme-style/src/popconfirm.scss +16 -0
  317. package/theme-style/src/popper.scss +4 -2
  318. package/theme-style/src/progress.scss +1 -1
  319. package/theme-style/src/reset.scss +3 -3
  320. package/theme-style/src/result.scss +2 -2
  321. package/theme-style/src/select-dropdown-v2.scss +1 -1
  322. package/theme-style/src/select-dropdown.scss +1 -1
  323. package/theme-style/src/select-v2.scss +2 -2
  324. package/theme-style/src/select.scss +4 -5
  325. package/theme-style/src/skeleton-item.scss +83 -0
  326. package/theme-style/src/skeleton.scss +44 -0
  327. package/theme-style/src/step.scss +10 -10
  328. package/theme-style/src/tabs.scss +15 -155
  329. package/theme-style/src/timeline-item.scss +2 -2
  330. package/theme-style/src/transfer.scss +5 -5
  331. package/theme-style/src/tree.scss +2 -5
  332. package/theme-style/src/upload.scss +11 -11
  333. package/theme-style/src/var.scss +1 -1
  334. package/theme-style/vft-alert.css +1 -1
  335. package/theme-style/vft-autocomplete.css +1 -1
  336. package/theme-style/vft-breadcrumb.css +1 -1
  337. package/theme-style/vft-calendar.css +1 -1
  338. package/theme-style/vft-card.css +1 -1
  339. package/theme-style/vft-carousel.css +1 -1
  340. package/theme-style/vft-cascader.css +1 -1
  341. package/theme-style/vft-check-tag.css +1 -1
  342. package/theme-style/vft-checkbox.css +1 -1
  343. package/theme-style/vft-color-picker.css +1 -1
  344. package/theme-style/vft-date-picker.css +1 -1
  345. package/theme-style/vft-date-time-select.css +1 -1
  346. package/theme-style/vft-descriptions-item.css +1 -1
  347. package/theme-style/vft-descriptions.css +1 -1
  348. package/theme-style/vft-header-layout.css +1 -1
  349. package/theme-style/vft-horizontal-menu.css +1 -1
  350. package/theme-style/vft-image-viewer.css +1 -1
  351. package/theme-style/vft-input-number.css +1 -1
  352. package/theme-style/vft-menu.css +1 -1
  353. package/theme-style/vft-popconfirm.css +1 -0
  354. package/theme-style/vft-popper.css +1 -1
  355. package/theme-style/vft-progress.css +1 -1
  356. package/theme-style/vft-reset.css +1 -1
  357. package/theme-style/vft-result.css +1 -1
  358. package/theme-style/vft-select-dropdown-v2.css +1 -1
  359. package/theme-style/vft-select-dropdown.css +1 -1
  360. package/theme-style/vft-select-v2.css +1 -1
  361. package/theme-style/vft-select.css +1 -1
  362. package/theme-style/vft-skeleton-item.css +1 -0
  363. package/theme-style/vft-skeleton.css +1 -0
  364. package/theme-style/vft-step.css +1 -1
  365. package/theme-style/vft-tabs.css +1 -1
  366. package/theme-style/vft-time-picker.css +1 -1
  367. package/theme-style/vft-time-select.css +1 -1
  368. package/theme-style/vft-timeline-item.css +1 -1
  369. package/theme-style/vft-transfer.css +1 -1
  370. package/theme-style/vft-tree.css +1 -1
  371. package/theme-style/vft-upload.css +1 -1
  372. package/theme-style/vft-var.css +1 -1
  373. package/web-types.json +1 -1
@@ -1,14 +1,14 @@
1
- import { defineComponent as c, provide as p, reactive as u, toRef as O, ref as P, createVNode as n, mergeProps as E } from "vue";
1
+ import { defineComponent as c, provide as p, reactive as u, toRef as O, ref as P, createVNode as n, mergeProps as x } from "vue";
2
2
  import r from "dayjs";
3
- import x from "dayjs/plugin/customParseFormat.js";
4
- import _ from "dayjs/plugin/advancedFormat.js";
5
- import k from "dayjs/plugin/localeData.js";
3
+ import _ from "dayjs/plugin/customParseFormat.js";
4
+ import k from "dayjs/plugin/advancedFormat.js";
5
+ import E from "dayjs/plugin/localeData.js";
6
6
  import T from "dayjs/plugin/weekOfYear.js";
7
7
  import A from "dayjs/plugin/weekYear.js";
8
8
  import C from "dayjs/plugin/dayOfYear.js";
9
9
  import D from "dayjs/plugin/isSameOrAfter.js";
10
- import v from "dayjs/plugin/isSameOrBefore.js";
11
- import { useNamespace as y } from "../../hooks/use-namespace/index.js";
10
+ import V from "dayjs/plugin/isSameOrBefore.js";
11
+ import { useNamespace as v } from "../../hooks/use-namespace/index.js";
12
12
  import "@popperjs/core";
13
13
  import "lodash";
14
14
  import "../../hooks/use-z-index/index.js";
@@ -16,31 +16,31 @@ import "@vueuse/core";
16
16
  import "@vft/utils";
17
17
  import "../../utils/ns-cover.js";
18
18
  import "../time-picker/index.js";
19
- import { ROOT_PICKER_INJECTION_KEY as F } from "./constants.js";
20
- import { datePickerProps as R } from "./props/date-picker.js";
21
- import { getPanel as N } from "./panel-utils.js";
22
- import { DEFAULT_FORMATS_DATEPICKER as V, DEFAULT_FORMATS_DATE as g } from "../time-picker/constants.js";
19
+ import { ROOT_PICKER_INJECTION_KEY as y } from "./constants.js";
20
+ import { datePickerProps as F } from "./props/date-picker.js";
21
+ import { getPanel as R } from "./panel-utils.js";
22
+ import { DEFAULT_FORMATS_DATEPICKER as N, DEFAULT_FORMATS_DATE as g } from "../time-picker/constants.js";
23
23
  import h from "../time-picker/common/picker.vue2.js";
24
+ r.extend(E);
24
25
  r.extend(k);
25
26
  r.extend(_);
26
- r.extend(x);
27
27
  r.extend(T);
28
28
  r.extend(A);
29
29
  r.extend(C);
30
30
  r.extend(D);
31
- r.extend(v);
31
+ r.extend(V);
32
32
  const te = /* @__PURE__ */ c({
33
- name: "ElDatePicker",
33
+ name: "VftDatePicker",
34
34
  install: null,
35
- props: R,
35
+ props: F,
36
36
  emits: ["update:modelValue"],
37
37
  setup(o, {
38
38
  expose: i,
39
39
  emit: f,
40
40
  slots: a
41
41
  }) {
42
- const d = y("picker-panel");
43
- p("ElPopperOptions", u(O(o, "popperOptions"))), p(F, {
42
+ const d = v("picker-panel");
43
+ p("VftPopperOptions", u(O(o, "popperOptions"))), p(y, {
44
44
  slots: a,
45
45
  pickerNs: d
46
46
  });
@@ -63,8 +63,8 @@ const te = /* @__PURE__ */ c({
63
63
  f("update:modelValue", e);
64
64
  };
65
65
  return () => {
66
- const e = o.format ?? (V[o.type] || g), m = N(o.type);
67
- return n(h, E(o, {
66
+ const e = o.format ?? (N[o.type] || g), m = R(o.type);
67
+ return n(h, x(o, {
68
68
  format: e,
69
69
  type: o.type,
70
70
  ref: t,
@@ -1,14 +1,15 @@
1
1
  import o from "./date-picker.js";
2
- import { ROOT_PICKER_INJECTION_KEY as m } from "./constants.js";
3
- import { datePickerProps as p } from "./props/date-picker.js";
2
+ import { ROOT_PICKER_INJECTION_KEY as n, datePickerConfig as P } from "./constants.js";
3
+ import { datePickerProps as m } from "./props/date-picker.js";
4
4
  const e = o;
5
5
  e.install = (t) => {
6
6
  t.component(e.name, e);
7
7
  };
8
8
  const a = e;
9
9
  export {
10
- m as ROOT_PICKER_INJECTION_KEY,
10
+ n as ROOT_PICKER_INJECTION_KEY,
11
11
  a as VftDatePicker,
12
- p as datePickerProps,
12
+ P as datePickerConfig,
13
+ m as datePickerProps,
13
14
  e as default
14
15
  };
@@ -2,9 +2,9 @@ import { isArray as a } from "@vft/utils";
2
2
  import "vue";
3
3
  import { buildProps as r, definePropType as e } from "../../../utils/vue/props/runtime.js";
4
4
  import "@vueuse/core";
5
+ import { datePickTypes as o } from "../../../constants/date.js";
5
6
  import "../../../utils/ns-cover.js";
6
7
  import "lodash";
7
- import { datePickTypes as o } from "../../../constants/date.js";
8
8
  const p = ["date", "dates", "year", "month", "week", "range"], y = r({
9
9
  disabledDate: {
10
10
  type: e(Function)
@@ -1,22 +1,22 @@
1
- import { defineComponent as x, ref as o, computed as q, createVNode as e, withDirectives as F, resolveDirective as T, Fragment as z } from "vue";
2
- import { useNamespace as B } from "../../hooks/use-namespace/index.js";
1
+ import { defineComponent as F, ref as u, computed as A, createVNode as e, Fragment as E } from "vue";
2
+ import { useNamespace as S } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
5
5
  import "../../hooks/use-z-index/index.js";
6
6
  import "@vueuse/core";
7
- import { isArray as b } from "@vft/utils";
7
+ import { isArray as Y } from "@vft/utils";
8
8
  import "../../utils/ns-cover.js";
9
9
  import v from "dayjs";
10
- import { VftIcon as w } from "../icon/index.js";
11
- import { VftDropdown as E } from "../dropdown/index.js";
12
- import G from "../date-picker/index.js";
10
+ import { VftIcon as k } from "../icon/index.js";
11
+ import { VftDropdown as q } from "../dropdown/index.js";
12
+ import z from "../date-picker/index.js";
13
13
  const n = (
14
14
  /* hoist-static*/
15
- B("date-time-select")
16
- ), J = x({
15
+ S("date-time-select")
16
+ ), B = F({
17
17
  name: n.b()
18
- }), re = /* @__PURE__ */ x({
19
- ...J,
18
+ }), ae = /* @__PURE__ */ F({
19
+ ...B,
20
20
  props: {
21
21
  dateList: {
22
22
  default: []
@@ -26,89 +26,89 @@ const n = (
26
26
  }
27
27
  },
28
28
  emits: ["change"],
29
- setup(f, {
30
- emit: H
29
+ setup(d, {
30
+ emit: b
31
31
  }) {
32
- const k = o(!1), D = o(), I = o("请选择时间"), t = o("");
33
- function M(a) {
32
+ const C = u(!1), g = u(), x = u("请选择时间"), t = u("");
33
+ function H(a) {
34
34
  const {
35
- count: l,
36
- type: g,
37
- format: d,
38
- dateRange: s = !0,
35
+ count: r,
36
+ type: h,
37
+ format: f,
38
+ dateRange: o = !0,
39
39
  startOfType: O,
40
40
  endOfType: V
41
41
  } = a;
42
- let m, r, L;
43
- const p = d || f.defaultFormat;
44
- let i = v().format(p);
45
- const R = (u, S = !0) => {
46
- let h, Y = S ? "startOf" : "endOf";
47
- return u === "week" ? h = v().add(l, u)[Y](u).add(1, "day").format(p) : h = v().add(l, u)[Y](u).format(p), h;
42
+ let m, l, L;
43
+ const p = f || d.defaultFormat;
44
+ let s = v().format(p);
45
+ const R = (i, j = !0) => {
46
+ let D, T = j ? "startOf" : "endOf";
47
+ return i === "week" ? D = v().add(r, i)[T](i).add(1, "day").format(p) : D = v().add(r, i)[T](i).format(p), D;
48
48
  };
49
- O && (m = R(O)), V && (r = R(V, !1)), L = v().add(l, g).format(p);
50
- let c = m || r || L;
51
- return s ? m && r ? [c, r] : l > 0 ? [c !== r && r || i, c] : l === 0 ? [m || i, r || i] : [c, c !== r && r || i] : c;
49
+ O && (m = R(O)), V && (l = R(V, !1)), L = v().add(r, h).format(p);
50
+ let c = m || l || L;
51
+ return o ? m && l ? [c, l] : r > 0 ? [c !== l && l || s, c] : r === 0 ? [m || s, l || s] : [c, c !== l && l || s] : c;
52
52
  }
53
- function N(a, l) {
54
- D.value = a, y.value.handleClose(), t.value = M(l), H("change", t.value);
53
+ function I(a, r) {
54
+ g.value = a, y.value.handleClose(), t.value = H(r), b("change", t.value);
55
55
  }
56
- function P() {
56
+ function M() {
57
57
  t.value = "";
58
58
  }
59
- const C = q(() => {
59
+ const w = A(() => {
60
60
  var a;
61
- return b(t.value) && ((a = t.value) != null && a.length) ? t.value[0] + " - " + t.value[1] : t.value;
62
- }), y = o();
63
- function j(a) {
64
- k.value = a;
61
+ return Y(t.value) && ((a = t.value) != null && a.length) ? t.value[0] + " - " + t.value[1] : t.value;
62
+ }), y = u();
63
+ function N(a) {
64
+ C.value = a;
65
65
  }
66
- o([new Date(2e3, 10, 10, 10, 10), new Date(2e3, 10, 11, 10, 10)]), o();
67
- const A = () => {
68
- const a = b(f.dateList[0]) ? f.dateList : [f.dateList];
66
+ const P = () => {
67
+ const a = Y(d.dateList[0]) ? d.dateList : [d.dateList];
69
68
  return e("div", {
70
69
  class: n.e("content")
71
- }, [e(z, null, [a.map((l, g) => e("div", {
72
- key: g,
70
+ }, [e(E, null, [a.map((r, h) => e("div", {
71
+ key: h,
73
72
  class: n.e("item-container")
74
- }, [l.map((d, s) => e("div", {
75
- class: [n.e("item"), n.is("active", D.value === s)],
76
- onClick: () => N(s, d)
73
+ }, [r.map((f, o) => e("div", {
74
+ class: [n.e("item"), n.is("active", g.value === o)],
75
+ onClick: () => I(o, f)
77
76
  }, [e("span", {
78
- key: s
79
- }, [d.text]), D.value === s ? e(w, {
77
+ key: o
78
+ }, [f.text]), g.value === o ? e(k, {
80
79
  icon: "ico-ep:check"
81
- }, null) : null])), e(G, {
82
- teleported: !1,
83
- type: "datetime",
84
- placeholder: "Select date and time"
80
+ }, null) : null])), e(z, {
81
+ type: "daterange",
82
+ "range-separator": "To",
83
+ "start-placeholder": "Start date",
84
+ "end-placeholder": "End date"
85
85
  }, null)]))])]);
86
86
  };
87
- return () => e(E, {
87
+ return () => e(q, {
88
88
  ref: y,
89
89
  trigger: "click",
90
90
  teleported: !1,
91
91
  class: n.b(),
92
- onVisibleChange: j
92
+ onVisibleChange: N
93
93
  }, {
94
94
  default: () => [e("span", {
95
95
  class: [n.e("trigger"), "cursor-pointer"]
96
96
  }, [e("span", {
97
- class: [C.value ? "text" : "placeholder"]
98
- }, [C.value || I.value]), F(e(w, {
99
- onClick: P,
97
+ class: [w.value ? "text" : "placeholder"]
98
+ }, [w.value || x.value]), t.value ? e(k, {
99
+ onClick: M,
100
100
  icon: "ico-ep:circle-close",
101
101
  class: "hover:text-black"
102
- }, null), [[T("if"), t.value]]), F(e(w, {
102
+ }, null) : null, t.value ? e(k, {
103
103
  icon: "ico-ep:arrow-down",
104
104
  class: [{
105
- "rotate-180": k.value
105
+ "rotate-180": C.value
106
106
  }]
107
- }, null), [[T("if"), t.value]])])],
108
- dropdown: () => A()
107
+ }, null) : null])],
108
+ dropdown: () => P()
109
109
  });
110
110
  }
111
111
  });
112
112
  export {
113
- re as default
113
+ ae as default
114
114
  };
@@ -6,14 +6,14 @@ import "lodash";
6
6
  import "../../hooks/use-z-index/index.js";
7
7
  import "@vueuse/core";
8
8
  import { isBoolean as Y } from "@vft/utils";
9
+ import { UPDATE_MODEL_EVENT as Z } from "../../constants/event.js";
9
10
  import "../../utils/ns-cover.js";
10
- import { useSameTarget as Z } from "../../hooks/use-same-target/index.js";
11
- import _ from "../focus-trap/focus-trap.vue.js";
11
+ import { useSameTarget as _ } from "../../hooks/use-same-target/index.js";
12
+ import ee from "../focus-trap/focus-trap.vue.js";
12
13
  import "../focus-trap/utils.js";
13
- import ee from "./dialog-content.vue2.js";
14
- import { dialogInjectionKey as oe } from "./constants.js";
15
- import { useDialog as te } from "./hooks/use-dialog.js";
16
- import { UPDATE_MODEL_EVENT as le } from "../../constants/event.js";
14
+ import oe from "./dialog-content.vue2.js";
15
+ import { dialogInjectionKey as te } from "./constants.js";
16
+ import { useDialog as le } from "./hooks/use-dialog.js";
17
17
  const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
18
18
  /* hoist-static*/
19
19
  X("dialog")
@@ -48,7 +48,7 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
48
48
  trapFocus: { type: Boolean, default: !1 }
49
49
  },
50
50
  emits: {
51
- [le]: (o) => Y(o),
51
+ [Z]: (o) => Y(o),
52
52
  open: () => !0,
53
53
  opened: () => !0,
54
54
  close: () => !0,
@@ -74,8 +74,8 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
74
74
  onCloseAutoFocus: D,
75
75
  onCloseRequested: L,
76
76
  onFocusoutPrevented: S
77
- } = te(F.props, c);
78
- O(oe, {
77
+ } = le(F.props, c);
78
+ O(te, {
79
79
  dialogRef: c,
80
80
  headerRef: A,
81
81
  bodyId: y,
@@ -83,7 +83,7 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
83
83
  rendered: C,
84
84
  style: w
85
85
  });
86
- const l = Z(M), V = P(() => o.draggable && !o.fullscreen);
86
+ const l = _(M), V = P(() => o.draggable && !o.fullscreen);
87
87
  return k({
88
88
  /** @description whether the dialog is visible */
89
89
  visible: u,
@@ -121,7 +121,7 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
121
121
  onMouseup: a[2] || (a[2] = //@ts-ignore
122
122
  (...s) => e(l).onMouseup && e(l).onMouseup(...s))
123
123
  }, [
124
- f(e(_), {
124
+ f(e(ee), {
125
125
  loop: "",
126
126
  trapped: e(u),
127
127
  "focus-start-el": "container",
@@ -131,7 +131,7 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
131
131
  onReleaseRequested: e(L)
132
132
  }, {
133
133
  default: n(() => [
134
- e(C) ? (v(), b(ee, G({
134
+ e(C) ? (v(), b(oe, G({
135
135
  key: 0,
136
136
  ref_key: "dialogContentRef",
137
137
  ref: m
@@ -6,9 +6,9 @@ import "lodash";
6
6
  import { useZIndex as G } from "../../../hooks/use-z-index/index.js";
7
7
  import { useId as E } from "../../../hooks/use-id/index.js";
8
8
  import { addUnit as j } from "@vft/utils";
9
+ import { UPDATE_MODEL_EVENT as B } from "../../../constants/event.js";
9
10
  import "../../../utils/ns-cover.js";
10
- import { useLockscreen as B } from "../../../hooks/use-lockscreen/index.js";
11
- import { UPDATE_MODEL_EVENT as H } from "../../../constants/event.js";
11
+ import { useLockscreen as H } from "../../../hooks/use-lockscreen/index.js";
12
12
  import "../../config-provider/index.js";
13
13
  import { useGlobalConfig as J } from "../../config-provider/hooks/use-global-config.js";
14
14
  const ue = (e, a) => {
@@ -24,7 +24,7 @@ const ue = (e, a) => {
24
24
  n("opened");
25
25
  }
26
26
  function L() {
27
- n("closed"), n(H, !1), e.destroyOnClose && (f.value = !1);
27
+ n("closed"), n(B, !1), e.destroyOnClose && (f.value = !1);
28
28
  }
29
29
  function M() {
30
30
  n("close");
@@ -60,7 +60,7 @@ const ue = (e, a) => {
60
60
  var u;
61
61
  ((u = o.detail) == null ? void 0 : u.focusReason) === "pointer" && o.preventDefault();
62
62
  }
63
- e.lockScroll && B(t);
63
+ e.lockScroll && H(t);
64
64
  function N() {
65
65
  e.closeOnPressEscape && m();
66
66
  }
@@ -3,9 +3,9 @@ import "@vft/utils";
3
3
  import { composeRefs as Y } from "../../utils/vue/refs.js";
4
4
  import "lodash";
5
5
  import "@vueuse/core";
6
- import { composeEventHandlers as y } from "../../utils/event.js";
6
+ import { EVENT_CODE as y } from "../../constants/aria.js";
7
+ import { composeEventHandlers as J } from "../../utils/event.js";
7
8
  import "../../utils/ns-cover.js";
8
- import { EVENT_CODE as J } from "../../constants/aria.js";
9
9
  import "../focus-trap/focus-trap.vue2.js";
10
10
  import { FOCUS_TRAP_INJECTION_KEY as G } from "../focus-trap/tokens.js";
11
11
  import "../focus-trap/utils.js";
@@ -54,7 +54,7 @@ const Io = F({
54
54
  u,
55
55
  E,
56
56
  w
57
- ), g = y(
57
+ ), g = J(
58
58
  (o) => {
59
59
  var r;
60
60
  (r = n.onKeydown) == null || r.call(n, o);
@@ -63,7 +63,7 @@ const Io = F({
63
63
  const { currentTarget: r, code: i, target: c } = o;
64
64
  if (r.contains(
65
65
  c
66
- ), J.tab === i && o.stopImmediatePropagation(), o.preventDefault(), c !== D(p) || !h.includes(i))
66
+ ), y.tab === i && o.stopImmediatePropagation(), o.preventDefault(), c !== D(p) || !h.includes(i))
67
67
  return;
68
68
  const d = l().filter(
69
69
  (m) => !m.disabled
@@ -57,6 +57,8 @@ import "../virtual-list/components/fixed-size-grid.js";
57
57
  import "../virtual-list/components/dynamic-size-grid.js";
58
58
  import "../virtual-list/props.js";
59
59
  import "../select-v2/index.js";
60
+ import "../select/index.js";
61
+ import "../tree-select/index.js";
60
62
  import "../verify-code/index.js";
61
63
  import "../table/index.js";
62
64
  import "../image-viewer/index.js";
@@ -68,6 +70,12 @@ import "../row/index.js";
68
70
  import "../horizontal-menu/index.js";
69
71
  import "../time-picker/index.js";
70
72
  import "../date-picker/index.js";
73
+ import "../check-tag/index.js";
74
+ import "../tree/index.js";
75
+ import "../skeleton/index.js";
76
+ import "../space/index.js";
77
+ import "../card/index.js";
78
+ import "../popconfirm/index.js";
71
79
  import "../md-container/index.js";
72
80
  import "../md-comment/index.js";
73
81
  import "../md-tabs/index.js";
@@ -80,7 +88,7 @@ const o = (
80
88
  h("footer-layout")
81
89
  ), _ = s({
82
90
  name: o.b()
83
- }), Jt = /* @__PURE__ */ s({
91
+ }), Wt = /* @__PURE__ */ s({
84
92
  ..._,
85
93
  props: {
86
94
  leftDistance: null
@@ -116,5 +124,5 @@ const o = (
116
124
  }
117
125
  });
118
126
  export {
119
- Jt as default
127
+ Wt as default
120
128
  };
@@ -57,6 +57,8 @@ import "../virtual-list/components/fixed-size-grid.js";
57
57
  import "../virtual-list/components/dynamic-size-grid.js";
58
58
  import "../virtual-list/props.js";
59
59
  import "../select-v2/index.js";
60
+ import "../select/index.js";
61
+ import "../tree-select/index.js";
60
62
  import "../verify-code/index.js";
61
63
  import "../table/index.js";
62
64
  import "../image-viewer/index.js";
@@ -68,6 +70,12 @@ import "../row/index.js";
68
70
  import "../horizontal-menu/index.js";
69
71
  import "../time-picker/index.js";
70
72
  import "../date-picker/index.js";
73
+ import "../check-tag/index.js";
74
+ import "../tree/index.js";
75
+ import "../skeleton/index.js";
76
+ import "../space/index.js";
77
+ import "../card/index.js";
78
+ import "../popconfirm/index.js";
71
79
  import "../md-container/index.js";
72
80
  import "../md-comment/index.js";
73
81
  import "../md-tabs/index.js";
@@ -86,7 +94,7 @@ const y = { class: "content" }, b = {
86
94
  h("header-layout")
87
95
  ), v = c({
88
96
  name: p.b()
89
- }), Xt = /* @__PURE__ */ c({
97
+ }), mo = /* @__PURE__ */ c({
90
98
  ...v,
91
99
  props: {
92
100
  logoCfg: null
@@ -132,5 +140,5 @@ const y = { class: "content" }, b = {
132
140
  }
133
141
  });
134
142
  export {
135
- Xt as default
143
+ mo as default
136
144
  };
@@ -0,0 +1,4 @@
1
+ var L = /* @__PURE__ */ ((r) => (r[r.NORMAL = 0] = "NORMAL", r[r.TILE = 1] = "TILE", r))(L || {});
2
+ export {
3
+ L as MenuTypeEnum
4
+ };