vft 0.0.249 → 0.0.252

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 (582) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/alert/alert.vue.d.ts +1 -11
  3. package/es/components/alert/alert.vue2.js +13 -65
  4. package/es/components/alert/index.d.ts +28 -76
  5. package/es/components/autocomplete/autocomplete.vue.d.ts +14 -14
  6. package/es/components/autocomplete/autocomplete.vue2.js +194 -199
  7. package/es/components/autocomplete/index.d.ts +42 -42
  8. package/es/components/backtop/backtop.vue.d.ts +1 -15
  9. package/es/components/backtop/backtop.vue2.js +17 -106
  10. package/es/components/backtop/index.d.ts +3 -9
  11. package/es/components/backtop/types.d.ts +14 -0
  12. package/es/components/backtop/types.js +1 -0
  13. package/es/components/button/button-custom.d.ts +1 -1
  14. package/es/components/button/button.vue.d.ts +3 -50
  15. package/es/components/button/button.vue2.js +1 -1
  16. package/es/components/button/index.d.ts +39 -40
  17. package/es/components/button/types.d.ts +47 -1
  18. package/es/components/button/use-button.d.ts +5 -5
  19. package/es/components/card/index.d.ts +3 -3
  20. package/es/components/carousel/carousel.vue.d.ts +1 -1
  21. package/es/components/carousel/index.d.ts +18 -18
  22. package/es/components/carousel/use-carousel.js +2 -3
  23. package/es/components/checkbox/checkbox-group.vue.d.ts +1 -1
  24. package/es/components/checkbox/index.d.ts +42 -42
  25. package/es/components/color-picker/components/hue-slider.vue.d.ts +3 -3
  26. package/es/components/color-picker/components/predefine.vue.d.ts +3 -3
  27. package/es/components/color-picker/components/sv-panel.vue.d.ts +3 -3
  28. package/es/components/config-provider/hooks/use-global-config.d.ts +3 -3
  29. package/es/components/context-menu/context-menu.vue2.js +36 -124
  30. package/es/components/context-menu/index.js +5 -101
  31. package/es/components/context-menu/types.d.ts +1 -1
  32. package/es/components/context-menu/types.js +1 -98
  33. package/es/components/date-picker/composables/use-basic-date-table.d.ts +188 -0
  34. package/es/components/date-picker/composables/use-basic-date-table.js +183 -0
  35. package/es/components/date-picker/composables/use-month-range-header.d.ts +1 -1
  36. package/es/components/date-picker/composables/use-panel-date-range.d.ts +29 -0
  37. package/es/components/date-picker/composables/use-panel-date-range.js +72 -0
  38. package/es/components/date-picker/composables/use-range-picker.d.ts +46 -42
  39. package/es/components/date-picker/composables/use-range-picker.js +65 -52
  40. package/es/components/date-picker/composables/use-shortcut.js +4 -4
  41. package/es/components/date-picker/composables/use-year-range-header.d.ts +16 -0
  42. package/es/components/date-picker/composables/use-year-range-header.js +35 -0
  43. package/es/components/date-picker/constants.d.ts +2 -15
  44. package/es/components/date-picker/constants.js +3 -16
  45. package/es/components/date-picker/date-picker-com/basic-cell-render.d.ts +3 -1
  46. package/es/components/date-picker/date-picker-com/basic-cell-render.js +16 -19
  47. package/es/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +14 -23
  48. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +73 -176
  49. package/es/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +2 -2
  50. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +93 -71
  51. package/es/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +50 -9
  52. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +108 -57
  53. package/es/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +13 -3
  54. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +329 -277
  55. package/es/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +16 -3
  56. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +422 -281
  57. package/es/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +6 -3
  58. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +137 -113
  59. package/es/components/date-picker/date-picker-com/panel-year-range.vue.d.ts +35 -0
  60. package/es/components/date-picker/date-picker-com/panel-year-range.vue.js +4 -0
  61. package/es/components/date-picker/date-picker-com/panel-year-range.vue2.js +210 -0
  62. package/es/components/date-picker/date-picker.d.ts +70 -40
  63. package/es/components/date-picker/date-picker.js +59 -50
  64. package/es/components/date-picker/date-picker.type.d.ts +2 -1
  65. package/es/components/date-picker/index.d.ts +126 -68
  66. package/es/components/date-picker/index.js +7 -7
  67. package/es/components/date-picker/instance.d.ts +9 -0
  68. package/es/components/date-picker/instance.js +1 -0
  69. package/es/components/date-picker/panel-utils.d.ts +48 -0
  70. package/es/components/date-picker/panel-utils.js +9 -6
  71. package/es/components/date-picker/props/basic-cell.d.ts +2 -1
  72. package/es/components/date-picker/props/basic-date-table.d.ts +7 -2
  73. package/es/components/date-picker/props/basic-date-table.js +6 -5
  74. package/es/components/date-picker/props/basic-month-table.d.ts +3 -2
  75. package/es/components/date-picker/props/basic-year-table.d.ts +23 -5
  76. package/es/components/date-picker/props/basic-year-table.js +5 -6
  77. package/es/components/date-picker/props/date-picker.d.ts +26 -12
  78. package/es/components/date-picker/props/date-picker.js +3 -0
  79. package/es/components/date-picker/props/panel-date-pick.d.ts +6 -1
  80. package/es/components/date-picker/props/panel-date-range.d.ts +7 -1
  81. package/es/components/date-picker/props/panel-month-range.d.ts +3 -1
  82. package/es/components/date-picker/props/panel-month-range.js +7 -3
  83. package/es/components/date-picker/props/panel-year-range.d.ts +14 -0
  84. package/es/components/date-picker/props/panel-year-range.js +17 -0
  85. package/es/components/date-picker/props/shared.d.ts +9 -2
  86. package/es/components/date-picker/props/shared.js +29 -12
  87. package/es/components/date-picker/style/css.d.ts +4 -0
  88. package/es/components/date-picker/style/css.js +5 -0
  89. package/es/components/date-picker/utils.d.ts +9 -2
  90. package/es/components/date-picker/utils.js +66 -33
  91. package/es/components/date-time-select/date-time-select.vue2.js +1 -1
  92. package/es/components/date-time-select/index.d.ts +1 -0
  93. package/es/components/date-time-select/types.d.ts +4 -0
  94. package/es/components/dialog/dialog-content.vue2.js +2 -3
  95. package/es/components/dropdown/dropdown-item-impl.vue.d.ts +4 -4
  96. package/es/components/dropdown/dropdown-item-impl.vue.js +12 -12
  97. package/es/components/dropdown/dropdown-item-impl.vue2.js +6 -6
  98. package/es/components/dropdown/dropdown.vue.d.ts +6 -29
  99. package/es/components/dropdown/dropdown.vue2.js +146 -149
  100. package/es/components/footer-layout/footer-layout.vue2.js +19 -108
  101. package/es/components/form/form-item.vue.d.ts +2 -3
  102. package/es/components/form/form-item.vue2.js +140 -135
  103. package/es/components/form/form-label-wrap.js +27 -27
  104. package/es/components/form/form.vue2.js +71 -65
  105. package/es/components/form/hooks/use-form-common-props.js +3 -4
  106. package/es/components/form/hooks/use-form-item.js +12 -13
  107. package/es/components/form/index.d.ts +75 -48
  108. package/es/components/form/types.d.ts +7 -1
  109. package/es/components/form/utils.d.ts +1 -1
  110. package/es/components/form/utils.js +33 -28
  111. package/es/components/header-layout/header-layout.vue2.js +26 -114
  112. package/es/components/icon/icon.vue2.js +20 -19
  113. package/es/components/icon/index.d.ts +0 -1
  114. package/es/components/icon/index.js +3 -4
  115. package/es/components/index.js +323 -319
  116. package/es/components/input/input.vue2.js +4 -4
  117. package/es/components/link/index.d.ts +3 -3
  118. package/es/components/md-code-demo/md-code-demo.js +12 -13
  119. package/es/components/md-container/md-container.vue2.js +52 -138
  120. package/es/components/md-vue-playground/md-vue-playground.vue2.js +17 -17
  121. package/es/components/menu/index.js +1 -1
  122. package/es/components/menu/menu-item.vue.d.ts +1 -1
  123. package/es/components/menu/menu-item.vue2.js +45 -132
  124. package/es/components/menu/sub-menu.vue.d.ts +2 -1
  125. package/es/components/menu/sub-menu.vue2.js +76 -163
  126. package/es/components/modal/index.d.ts +33 -45
  127. package/es/components/modal/modal-footer-action.vue2.js +26 -112
  128. package/es/components/modal/modal.vue.d.ts +2 -2
  129. package/es/components/multiple-tabs/multiple-tabs.vue2.js +57 -144
  130. package/es/components/multiple-tabs/tab-content.vue2.js +19 -113
  131. package/es/components/multiple-tabs/use/use-tab-dropdown.js +37 -132
  132. package/es/components/popconfirm/index.d.ts +24 -24
  133. package/es/components/popconfirm/popconfirm.vue.d.ts +2 -2
  134. package/es/components/popover/index.d.ts +5 -5
  135. package/es/components/popover/popover.vue.d.ts +2 -2
  136. package/es/components/popper/composables/use-content.js +2 -3
  137. package/es/components/popper/trigger.vue2.js +7 -8
  138. package/es/components/progress/index.d.ts +3 -3
  139. package/es/components/result/result.vue.d.ts +1 -1
  140. package/es/components/result/result.vue2.js +20 -109
  141. package/es/components/roving-focus-group/index.js +11 -11
  142. package/es/components/roving-focus-group/roving-focus-group.vue.js +5 -5
  143. package/es/components/roving-focus-group/roving-focus-item.vue2.js +2 -3
  144. package/es/components/scrollbar/index.js +9 -10
  145. package/es/components/select/defaults.d.ts +99 -15
  146. package/es/components/select/defaults.js +90 -12
  147. package/es/components/select/group-item.vue.d.ts +10 -5
  148. package/es/components/select/group-item.vue.js +9 -19
  149. package/es/components/select/group-item.vue2.js +4 -2
  150. package/es/components/select/index.d.ts +2782 -0
  151. package/es/components/select/index.js +2 -2
  152. package/es/components/select/option-item.vue.d.ts +40 -26
  153. package/es/components/select/option-item.vue.js +12 -12
  154. package/es/components/select/option-item.vue2.js +15 -12
  155. package/es/components/select/select-dropdown.d.ts +29 -3
  156. package/es/components/select/select-dropdown.js +120 -129
  157. package/es/components/select/select.types.d.ts +19 -11
  158. package/es/components/select/select.vue.d.ts +2778 -0
  159. package/es/components/select/select.vue.js +261 -251
  160. package/es/components/select/select.vue2.js +49 -45
  161. package/es/components/select/token.d.ts +10 -12
  162. package/es/components/select/token.js +4 -2
  163. package/es/components/select/useAllowCreate.d.ts +3 -3
  164. package/es/components/select/useAllowCreate.js +32 -29
  165. package/es/components/select/useOption.d.ts +3 -3
  166. package/es/components/select/useProps.d.ts +21 -0
  167. package/es/components/select/useProps.js +22 -0
  168. package/es/components/select/useSelect.d.ts +940 -121
  169. package/es/components/select/useSelect.js +396 -302
  170. package/es/components/side-menu/side-menu.vue2.js +77 -165
  171. package/es/components/steps/index.d.ts +12 -12
  172. package/es/components/super-form/component-map.js +52 -141
  173. package/es/components/super-form/style/css.js +4 -4
  174. package/es/components/super-form/super-form-action.vue2.js +39 -126
  175. package/es/components/super-form/super-form-item.vue2.js +161 -248
  176. package/es/components/super-form/super-form.vue.d.ts +1 -1
  177. package/es/components/super-form/super-form.vue2.js +116 -202
  178. package/es/components/super-form/types.d.ts +3 -1
  179. package/es/components/switch/index.d.ts +6 -6
  180. package/es/components/table/field.js +82 -176
  181. package/es/components/table/index.d.ts +24 -24
  182. package/es/components/table/table.vue.d.ts +1 -1
  183. package/es/components/tabs/tab-nav.vue.d.ts +2 -2
  184. package/es/components/tabs/tab-nav.vue2.js +98 -187
  185. package/es/components/tabs/tabs.vue.d.ts +2 -1
  186. package/es/components/time-picker/common/picker-range-trigger.vue.d.ts +84 -0
  187. package/es/components/time-picker/common/picker-range-trigger.vue.js +4 -0
  188. package/es/components/time-picker/common/picker-range-trigger.vue2.js +100 -0
  189. package/es/components/time-picker/common/picker.vue.d.ts +71 -41
  190. package/es/components/time-picker/common/picker.vue2.js +285 -289
  191. package/es/components/time-picker/common/props.d.ts +76 -12
  192. package/es/components/time-picker/common/props.js +78 -35
  193. package/es/components/time-picker/composables/use-time-panel.d.ts +4 -4
  194. package/es/components/time-picker/composables/use-time-picker.d.ts +28 -29
  195. package/es/components/time-picker/constants.d.ts +5 -0
  196. package/es/components/time-picker/constants.js +15 -10
  197. package/es/components/time-picker/index.d.ts +120 -74
  198. package/es/components/time-picker/index.js +28 -23
  199. package/es/components/time-picker/props/basic-time-spinner.d.ts +5 -4
  200. package/es/components/time-picker/props/panel-time-picker.d.ts +2 -1
  201. package/es/components/time-picker/props/panel-time-range.d.ts +2 -1
  202. package/es/components/time-picker/props/shared.d.ts +4 -5
  203. package/es/components/time-picker/style/css.d.ts +3 -0
  204. package/es/components/time-picker/style/css.js +3 -0
  205. package/es/components/time-picker/style/index.d.ts +3 -0
  206. package/es/components/time-picker/style/index.js +3 -0
  207. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +6 -6
  208. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +135 -128
  209. package/es/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +4 -4
  210. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +36 -35
  211. package/es/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +4 -4
  212. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +109 -108
  213. package/es/components/time-picker/time-picker.d.ts +60 -37
  214. package/es/components/time-picker/time-picker.js +28 -30
  215. package/es/components/time-picker/utils.d.ts +5 -2
  216. package/es/components/time-picker/utils.js +17 -16
  217. package/es/components/time-select/time-select.vue.d.ts +1 -1
  218. package/es/components/timeline/index.d.ts +6 -6
  219. package/es/components/tooltip/content.vue2.js +47 -48
  220. package/es/components/tooltip/index.d.ts +3 -3
  221. package/es/components/tooltip/tooltip.vue.d.ts +1 -1
  222. package/es/components/tooltip/tooltip.vue2.js +77 -78
  223. package/es/components/tooltip/utils.js +4 -5
  224. package/es/components/tree/tree-node.vue.d.ts +33 -33
  225. package/es/components/tree/tree-node.vue.js +11 -11
  226. package/es/components/tree/tree-node.vue2.js +15 -15
  227. package/es/components/upload/index.d.ts +15 -15
  228. package/es/components/upload/upload-content.vue.d.ts +1 -1
  229. package/es/components/upload/upload.vue.d.ts +1 -1
  230. package/es/components/virtual-list/builders/build-grid.d.ts +9 -9
  231. package/es/components/virtual-list/builders/build-grid.js +222 -214
  232. package/es/components/virtual-list/builders/build-list.d.ts +13 -13
  233. package/es/components/virtual-list/builders/build-list.js +206 -198
  234. package/es/components/virtual-list/components/dynamic-size-grid.d.ts +6 -6
  235. package/es/components/virtual-list/components/dynamic-size-grid.js +12 -12
  236. package/es/components/virtual-list/components/dynamic-size-list.d.ts +13 -12
  237. package/es/components/virtual-list/components/dynamic-size-list.js +7 -7
  238. package/es/components/virtual-list/components/fixed-size-grid.d.ts +6 -6
  239. package/es/components/virtual-list/components/fixed-size-list.d.ts +13 -12
  240. package/es/components/virtual-list/components/fixed-size-list.js +8 -8
  241. package/es/components/virtual-list/components/scrollbar.js +59 -66
  242. package/es/components/virtual-list/defaults.d.ts +0 -4
  243. package/es/components/virtual-list/defaults.js +11 -15
  244. package/es/components/virtual-list/hooks/use-cache.d.ts +1 -1
  245. package/es/components/virtual-list/hooks/use-cache.js +6 -6
  246. package/es/components/virtual-list/hooks/use-wheel.js +1 -1
  247. package/es/components/virtual-list/index.d.ts +6 -4
  248. package/es/components/virtual-list/index.js +4 -4
  249. package/es/components/virtual-list/props.d.ts +11 -7
  250. package/es/components/virtual-list/props.js +24 -30
  251. package/es/components/virtual-list/types.d.ts +1 -1
  252. package/es/components/virtual-list/utils.d.ts +1 -2
  253. package/es/components/virtual-list/utils.js +16 -18
  254. package/es/hooks/index.d.ts +3 -1
  255. package/es/hooks/index.js +49 -46
  256. package/es/hooks/use-calc-input-width/index.d.ts +7 -0
  257. package/es/hooks/use-calc-input-width/index.js +17 -0
  258. package/es/hooks/use-composition/index.d.ts +12 -0
  259. package/es/hooks/use-composition/index.js +28 -0
  260. package/es/hooks/use-delayed-toggle/index.d.ts +8 -4
  261. package/es/hooks/use-delayed-toggle/index.js +52 -17
  262. package/es/hooks/use-empty-values/index.d.ts +16 -0
  263. package/es/hooks/use-empty-values/index.js +37 -0
  264. package/es/hooks/use-focus-controller/index.d.ts +27 -0
  265. package/es/hooks/use-focus-controller/index.js +38 -0
  266. package/es/hooks/use-id/index.d.ts +1 -1
  267. package/es/hooks/use-id/index.js +11 -11
  268. package/es/hooks/use-namespace/index.d.ts +5 -6
  269. package/es/hooks/use-namespace/index.js +13 -15
  270. package/es/index.js +459 -451
  271. package/es/package.json.d.ts +2 -2
  272. package/es/package.json.js +1 -1
  273. package/es/utils/helper.d.ts +1 -0
  274. package/es/utils/helper.js +3 -2
  275. package/es/utils/index.js +49 -48
  276. package/lib/components/alert/alert.vue.d.ts +1 -11
  277. package/lib/components/alert/alert.vue2.cjs +1 -1
  278. package/lib/components/alert/index.d.ts +28 -76
  279. package/lib/components/autocomplete/autocomplete.vue.d.ts +14 -14
  280. package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
  281. package/lib/components/autocomplete/index.d.ts +42 -42
  282. package/lib/components/backtop/backtop.vue.d.ts +1 -15
  283. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  284. package/lib/components/backtop/index.d.ts +3 -9
  285. package/lib/components/backtop/types.cjs +1 -0
  286. package/lib/components/backtop/types.d.ts +14 -0
  287. package/lib/components/button/button-custom.d.ts +1 -1
  288. package/lib/components/button/button.vue.d.ts +3 -50
  289. package/lib/components/button/button.vue2.cjs +1 -1
  290. package/lib/components/button/index.d.ts +39 -40
  291. package/lib/components/button/types.d.ts +47 -1
  292. package/lib/components/button/use-button.d.ts +5 -5
  293. package/lib/components/card/index.d.ts +3 -3
  294. package/lib/components/carousel/carousel.vue.d.ts +1 -1
  295. package/lib/components/carousel/index.d.ts +18 -18
  296. package/lib/components/carousel/use-carousel.cjs +1 -1
  297. package/lib/components/checkbox/checkbox-group.vue.d.ts +1 -1
  298. package/lib/components/checkbox/index.d.ts +42 -42
  299. package/lib/components/color-picker/components/hue-slider.vue.d.ts +3 -3
  300. package/lib/components/color-picker/components/predefine.vue.d.ts +3 -3
  301. package/lib/components/color-picker/components/sv-panel.vue.d.ts +3 -3
  302. package/lib/components/config-provider/hooks/use-global-config.d.ts +3 -3
  303. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  304. package/lib/components/context-menu/index.cjs +1 -1
  305. package/lib/components/context-menu/types.cjs +1 -1
  306. package/lib/components/context-menu/types.d.ts +1 -1
  307. package/lib/components/date-picker/composables/use-basic-date-table.cjs +1 -0
  308. package/lib/components/date-picker/composables/use-basic-date-table.d.ts +188 -0
  309. package/lib/components/date-picker/composables/use-month-range-header.d.ts +1 -1
  310. package/lib/components/date-picker/composables/use-panel-date-range.cjs +1 -0
  311. package/lib/components/date-picker/composables/use-panel-date-range.d.ts +29 -0
  312. package/lib/components/date-picker/composables/use-range-picker.cjs +1 -1
  313. package/lib/components/date-picker/composables/use-range-picker.d.ts +46 -42
  314. package/lib/components/date-picker/composables/use-shortcut.cjs +1 -1
  315. package/lib/components/date-picker/composables/use-year-range-header.cjs +1 -0
  316. package/lib/components/date-picker/composables/use-year-range-header.d.ts +16 -0
  317. package/lib/components/date-picker/constants.cjs +1 -1
  318. package/lib/components/date-picker/constants.d.ts +2 -15
  319. package/lib/components/date-picker/date-picker-com/basic-cell-render.cjs +1 -1
  320. package/lib/components/date-picker/date-picker-com/basic-cell-render.d.ts +3 -1
  321. package/lib/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +14 -23
  322. package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
  323. package/lib/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +2 -2
  324. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  325. package/lib/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +50 -9
  326. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  327. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +13 -3
  328. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  329. package/lib/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +16 -3
  330. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  331. package/lib/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +6 -3
  332. package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
  333. package/lib/components/date-picker/date-picker-com/panel-year-range.vue.cjs +1 -0
  334. package/lib/components/date-picker/date-picker-com/panel-year-range.vue.d.ts +35 -0
  335. package/lib/components/date-picker/date-picker-com/panel-year-range.vue2.cjs +1 -0
  336. package/lib/components/date-picker/date-picker.cjs +1 -1
  337. package/lib/components/date-picker/date-picker.d.ts +70 -40
  338. package/lib/components/date-picker/date-picker.type.d.ts +2 -1
  339. package/lib/components/date-picker/index.cjs +1 -1
  340. package/lib/components/date-picker/index.d.ts +126 -68
  341. package/lib/components/date-picker/instance.cjs +1 -0
  342. package/lib/components/date-picker/instance.d.ts +9 -0
  343. package/lib/components/date-picker/panel-utils.cjs +1 -1
  344. package/lib/components/date-picker/panel-utils.d.ts +48 -0
  345. package/lib/components/date-picker/props/basic-cell.d.ts +2 -1
  346. package/lib/components/date-picker/props/basic-date-table.cjs +1 -1
  347. package/lib/components/date-picker/props/basic-date-table.d.ts +7 -2
  348. package/lib/components/date-picker/props/basic-month-table.d.ts +3 -2
  349. package/lib/components/date-picker/props/basic-year-table.cjs +1 -1
  350. package/lib/components/date-picker/props/basic-year-table.d.ts +23 -5
  351. package/lib/components/date-picker/props/date-picker.d.ts +26 -12
  352. package/lib/components/date-picker/props/panel-date-pick.d.ts +6 -1
  353. package/lib/components/date-picker/props/panel-date-range.d.ts +7 -1
  354. package/lib/components/date-picker/props/panel-month-range.cjs +1 -1
  355. package/lib/components/date-picker/props/panel-month-range.d.ts +3 -1
  356. package/lib/components/date-picker/props/panel-year-range.cjs +1 -0
  357. package/lib/components/date-picker/props/panel-year-range.d.ts +14 -0
  358. package/lib/components/date-picker/props/shared.cjs +1 -1
  359. package/lib/components/date-picker/props/shared.d.ts +9 -2
  360. package/lib/components/date-picker/style/css.cjs +1 -1
  361. package/lib/components/date-picker/style/css.d.ts +4 -0
  362. package/lib/components/date-picker/utils.cjs +1 -1
  363. package/lib/components/date-picker/utils.d.ts +9 -2
  364. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  365. package/lib/components/date-time-select/index.d.ts +1 -0
  366. package/lib/components/date-time-select/types.d.ts +4 -0
  367. package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
  368. package/lib/components/dropdown/dropdown-item-impl.vue.cjs +1 -1
  369. package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +4 -4
  370. package/lib/components/dropdown/dropdown-item-impl.vue2.cjs +1 -1
  371. package/lib/components/dropdown/dropdown.vue.d.ts +6 -29
  372. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  373. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  374. package/lib/components/form/form-item.vue.d.ts +2 -3
  375. package/lib/components/form/form-item.vue2.cjs +1 -1
  376. package/lib/components/form/form-label-wrap.cjs +1 -1
  377. package/lib/components/form/form.vue2.cjs +1 -1
  378. package/lib/components/form/hooks/use-form-common-props.cjs +1 -1
  379. package/lib/components/form/hooks/use-form-item.cjs +1 -1
  380. package/lib/components/form/index.d.ts +75 -48
  381. package/lib/components/form/types.d.ts +7 -1
  382. package/lib/components/form/utils.cjs +1 -1
  383. package/lib/components/form/utils.d.ts +1 -1
  384. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  385. package/lib/components/icon/icon.vue2.cjs +1 -1
  386. package/lib/components/icon/index.cjs +1 -1
  387. package/lib/components/icon/index.d.ts +0 -1
  388. package/lib/components/index.cjs +1 -1
  389. package/lib/components/input/input.vue2.cjs +1 -1
  390. package/lib/components/link/index.d.ts +3 -3
  391. package/lib/components/md-code-demo/md-code-demo.cjs +1 -1
  392. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  393. package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
  394. package/lib/components/menu/menu-item.vue.d.ts +1 -1
  395. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  396. package/lib/components/menu/sub-menu.vue.d.ts +2 -1
  397. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  398. package/lib/components/modal/index.d.ts +33 -45
  399. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  400. package/lib/components/modal/modal.vue.d.ts +2 -2
  401. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  402. package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
  403. package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
  404. package/lib/components/popconfirm/index.d.ts +24 -24
  405. package/lib/components/popconfirm/popconfirm.vue.d.ts +2 -2
  406. package/lib/components/popover/index.d.ts +5 -5
  407. package/lib/components/popover/popover.vue.d.ts +2 -2
  408. package/lib/components/popper/composables/use-content.cjs +1 -1
  409. package/lib/components/popper/trigger.vue2.cjs +1 -1
  410. package/lib/components/progress/index.d.ts +3 -3
  411. package/lib/components/result/result.vue.d.ts +1 -1
  412. package/lib/components/result/result.vue2.cjs +1 -1
  413. package/lib/components/roving-focus-group/roving-focus-item.vue2.cjs +1 -1
  414. package/lib/components/scrollbar/index.cjs +1 -1
  415. package/lib/components/select/defaults.cjs +1 -1
  416. package/lib/components/select/defaults.d.ts +99 -15
  417. package/lib/components/select/group-item.vue.cjs +1 -1
  418. package/lib/components/select/group-item.vue.d.ts +10 -5
  419. package/lib/components/select/group-item.vue2.cjs +1 -1
  420. package/lib/components/select/index.cjs +1 -1
  421. package/lib/components/select/index.d.ts +2782 -0
  422. package/lib/components/select/option-item.vue.cjs +1 -1
  423. package/lib/components/select/option-item.vue.d.ts +40 -26
  424. package/lib/components/select/option-item.vue2.cjs +1 -1
  425. package/lib/components/select/select-dropdown.cjs +1 -1
  426. package/lib/components/select/select-dropdown.d.ts +29 -3
  427. package/lib/components/select/select.types.d.ts +19 -11
  428. package/lib/components/select/select.vue.cjs +1 -1
  429. package/lib/components/select/select.vue.d.ts +2778 -0
  430. package/lib/components/select/select.vue2.cjs +1 -1
  431. package/lib/components/select/token.cjs +1 -1
  432. package/lib/components/select/token.d.ts +10 -12
  433. package/lib/components/select/useAllowCreate.cjs +1 -1
  434. package/lib/components/select/useAllowCreate.d.ts +3 -3
  435. package/lib/components/select/useOption.d.ts +3 -3
  436. package/lib/components/select/useProps.cjs +1 -0
  437. package/lib/components/select/useProps.d.ts +21 -0
  438. package/lib/components/select/useSelect.cjs +1 -1
  439. package/lib/components/select/useSelect.d.ts +940 -121
  440. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  441. package/lib/components/steps/index.d.ts +12 -12
  442. package/lib/components/super-form/component-map.cjs +1 -1
  443. package/lib/components/super-form/style/css.cjs +1 -1
  444. package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
  445. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  446. package/lib/components/super-form/super-form.vue.d.ts +1 -1
  447. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  448. package/lib/components/super-form/types.d.ts +3 -1
  449. package/lib/components/switch/index.d.ts +6 -6
  450. package/lib/components/table/field.cjs +1 -1
  451. package/lib/components/table/index.d.ts +24 -24
  452. package/lib/components/table/table.vue.d.ts +1 -1
  453. package/lib/components/tabs/tab-nav.vue.d.ts +2 -2
  454. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  455. package/lib/components/tabs/tabs.vue.d.ts +2 -1
  456. package/lib/components/time-picker/common/picker-range-trigger.vue.cjs +1 -0
  457. package/lib/components/time-picker/common/picker-range-trigger.vue.d.ts +84 -0
  458. package/lib/components/time-picker/common/picker-range-trigger.vue2.cjs +1 -0
  459. package/lib/components/time-picker/common/picker.vue.d.ts +71 -41
  460. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  461. package/lib/components/time-picker/common/props.cjs +1 -1
  462. package/lib/components/time-picker/common/props.d.ts +76 -12
  463. package/lib/components/time-picker/composables/use-time-panel.d.ts +4 -4
  464. package/lib/components/time-picker/composables/use-time-picker.d.ts +28 -29
  465. package/lib/components/time-picker/constants.cjs +1 -1
  466. package/lib/components/time-picker/constants.d.ts +5 -0
  467. package/lib/components/time-picker/index.cjs +1 -1
  468. package/lib/components/time-picker/index.d.ts +120 -74
  469. package/lib/components/time-picker/props/basic-time-spinner.d.ts +5 -4
  470. package/lib/components/time-picker/props/panel-time-picker.d.ts +2 -1
  471. package/lib/components/time-picker/props/panel-time-range.d.ts +2 -1
  472. package/lib/components/time-picker/props/shared.d.ts +4 -5
  473. package/lib/components/time-picker/style/css.cjs +1 -1
  474. package/lib/components/time-picker/style/css.d.ts +3 -0
  475. package/lib/components/time-picker/style/index.cjs +1 -1
  476. package/lib/components/time-picker/style/index.d.ts +3 -0
  477. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +6 -6
  478. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -1
  479. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +4 -4
  480. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
  481. package/lib/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +4 -4
  482. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  483. package/lib/components/time-picker/time-picker.cjs +1 -1
  484. package/lib/components/time-picker/time-picker.d.ts +60 -37
  485. package/lib/components/time-picker/utils.cjs +1 -1
  486. package/lib/components/time-picker/utils.d.ts +5 -2
  487. package/lib/components/time-select/time-select.vue.d.ts +1 -1
  488. package/lib/components/timeline/index.d.ts +6 -6
  489. package/lib/components/tooltip/content.vue2.cjs +1 -1
  490. package/lib/components/tooltip/index.d.ts +3 -3
  491. package/lib/components/tooltip/tooltip.vue.d.ts +1 -1
  492. package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
  493. package/lib/components/tooltip/utils.cjs +1 -1
  494. package/lib/components/tree/tree-node.vue.cjs +1 -1
  495. package/lib/components/tree/tree-node.vue.d.ts +33 -33
  496. package/lib/components/tree/tree-node.vue2.cjs +1 -1
  497. package/lib/components/upload/index.d.ts +15 -15
  498. package/lib/components/upload/upload-content.vue.d.ts +1 -1
  499. package/lib/components/upload/upload.vue.d.ts +1 -1
  500. package/lib/components/virtual-list/builders/build-grid.cjs +1 -1
  501. package/lib/components/virtual-list/builders/build-grid.d.ts +9 -9
  502. package/lib/components/virtual-list/builders/build-list.cjs +1 -1
  503. package/lib/components/virtual-list/builders/build-list.d.ts +13 -13
  504. package/lib/components/virtual-list/components/dynamic-size-grid.cjs +1 -1
  505. package/lib/components/virtual-list/components/dynamic-size-grid.d.ts +6 -6
  506. package/lib/components/virtual-list/components/dynamic-size-list.cjs +1 -1
  507. package/lib/components/virtual-list/components/dynamic-size-list.d.ts +13 -12
  508. package/lib/components/virtual-list/components/fixed-size-grid.d.ts +6 -6
  509. package/lib/components/virtual-list/components/fixed-size-list.cjs +1 -1
  510. package/lib/components/virtual-list/components/fixed-size-list.d.ts +13 -12
  511. package/lib/components/virtual-list/components/scrollbar.cjs +1 -1
  512. package/lib/components/virtual-list/defaults.cjs +1 -1
  513. package/lib/components/virtual-list/defaults.d.ts +0 -4
  514. package/lib/components/virtual-list/hooks/use-cache.cjs +1 -1
  515. package/lib/components/virtual-list/hooks/use-cache.d.ts +1 -1
  516. package/lib/components/virtual-list/hooks/use-wheel.cjs +1 -1
  517. package/lib/components/virtual-list/index.cjs +1 -1
  518. package/lib/components/virtual-list/index.d.ts +6 -4
  519. package/lib/components/virtual-list/props.cjs +1 -1
  520. package/lib/components/virtual-list/props.d.ts +11 -7
  521. package/lib/components/virtual-list/types.d.ts +1 -1
  522. package/lib/components/virtual-list/utils.cjs +1 -1
  523. package/lib/components/virtual-list/utils.d.ts +1 -2
  524. package/lib/hooks/index.cjs +1 -1
  525. package/lib/hooks/index.d.ts +3 -1
  526. package/lib/hooks/use-calc-input-width/index.cjs +1 -0
  527. package/lib/hooks/use-calc-input-width/index.d.ts +7 -0
  528. package/lib/hooks/use-composition/index.cjs +1 -0
  529. package/lib/hooks/use-composition/index.d.ts +12 -0
  530. package/lib/hooks/use-delayed-toggle/index.cjs +1 -1
  531. package/lib/hooks/use-delayed-toggle/index.d.ts +8 -4
  532. package/lib/hooks/use-empty-values/index.cjs +1 -0
  533. package/lib/hooks/use-empty-values/index.d.ts +16 -0
  534. package/lib/hooks/use-focus-controller/index.cjs +1 -0
  535. package/lib/hooks/use-focus-controller/index.d.ts +27 -0
  536. package/lib/hooks/use-id/index.cjs +2 -2
  537. package/lib/hooks/use-id/index.d.ts +1 -1
  538. package/lib/hooks/use-namespace/index.cjs +1 -1
  539. package/lib/hooks/use-namespace/index.d.ts +5 -6
  540. package/lib/index.cjs +1 -1
  541. package/lib/package.json.cjs +1 -1
  542. package/lib/package.json.d.ts +2 -2
  543. package/lib/utils/helper.cjs +1 -1
  544. package/lib/utils/helper.d.ts +1 -0
  545. package/lib/utils/index.cjs +1 -1
  546. package/package.json +5 -5
  547. package/theme-style/index.css +1 -1
  548. package/theme-style/src/common/var.scss +41 -0
  549. package/theme-style/src/date-picker/date-picker.scss +31 -31
  550. package/theme-style/src/date-picker/date-range-picker.scss +60 -37
  551. package/theme-style/src/date-picker/date-table.scss +20 -20
  552. package/theme-style/src/date-picker/month-table.scss +40 -25
  553. package/theme-style/src/date-picker/picker-panel.scss +27 -28
  554. package/theme-style/src/date-picker/picker.scss +60 -56
  555. package/theme-style/src/date-picker/time-picker.scss +21 -21
  556. package/theme-style/src/date-picker/time-range-picker.scss +6 -6
  557. package/theme-style/src/date-picker/time-spinner.scss +24 -22
  558. package/theme-style/src/date-picker/year-table.scss +61 -14
  559. package/theme-style/src/option-group.scss +7 -28
  560. package/theme-style/src/option.scss +46 -12
  561. package/theme-style/src/select-dropdown-v2.scss +31 -37
  562. package/theme-style/src/select.scss +136 -220
  563. package/theme-style/src/tabs.scss +6 -66
  564. package/theme-style/src/tabss.scss +4 -4
  565. package/theme-style/vft-date-picker.css +1 -1
  566. package/theme-style/vft-option-group.css +1 -1
  567. package/theme-style/vft-option.css +1 -1
  568. package/theme-style/vft-select-dropdown-v2.css +1 -1
  569. package/theme-style/vft-select.css +1 -1
  570. package/theme-style/vft-tabs.css +1 -1
  571. package/theme-style/vft-tabss.css +1 -1
  572. package/theme-style/vft-time-picker.css +1 -1
  573. package/theme-style/vft-time-select.css +1 -1
  574. package/web-types.json +1 -1
  575. package/es/components/select/useInput.d.ts +0 -5
  576. package/es/components/select/useInput.js +0 -20
  577. package/es/components/select/util.d.ts +0 -2
  578. package/es/components/select/util.js +0 -18
  579. package/lib/components/select/useInput.cjs +0 -1
  580. package/lib/components/select/useInput.d.ts +0 -5
  581. package/lib/components/select/util.cjs +0 -1
  582. package/lib/components/select/util.d.ts +0 -2
@@ -1,403 +1,544 @@
1
- import { defineComponent as qe, inject as Ge, toRef as ie, ref as V, computed as v, createElementBlock as h, openBlock as p, normalizeClass as s, unref as e, createElementVNode as c, createCommentVNode as C, renderSlot as He, Fragment as Je, renderList as Qe, toDisplayString as _, withDirectives as de, createVNode as d, createBlock as We, withCtx as ve, createTextVNode as ce } from "vue";
2
- import { ClickOutside as me } from "@vft/directives";
3
- import { isArray as fe } from "@vft/utils";
4
- import { VftButton as pe } from "../../button/index.js";
5
- import { VftIcon as b } from "../../icon/index.js";
6
- import { VftInput as E } from "../../input/index.js";
1
+ import { defineComponent as sa, inject as we, toRef as te, ref as T, watch as da, computed as k, createElementBlock as h, openBlock as m, normalizeClass as r, unref as e, createElementVNode as s, createCommentVNode as p, renderSlot as va, Fragment as ma, renderList as ca, toDisplayString as K, withDirectives as S, createVNode as f, createBlock as I, vShow as H, withKeys as Q, withCtx as ye, createTextVNode as Ce } from "vue";
2
+ import z from "dayjs";
3
+ import { ClickOutside as Pe } from "@vft/directives";
4
+ import { isArray as fa } from "@vft/utils";
5
+ import { VftButton as Ve } from "../../button/index.js";
6
+ import { VftInput as X } from "../../input/index.js";
7
7
  import "../../time-picker/index.js";
8
- import D from "dayjs";
9
- import { useRangePicker as Xe } from "../composables/use-range-picker.js";
10
- import { panelDateRangeProps as Ze } from "../props/panel-date-range.js";
11
- import { isValidRange as he, getDefaultValue as je } from "../utils.js";
12
- import be from "./basic-date-table.vue2.js";
13
- import ge from "../../time-picker/time-picker-com/panel-time-pick.vue2.js";
14
- import { extractTimeFormat as ea, extractDateFormat as aa } from "../../time-picker/utils.js";
15
- const la = ["onClick"], ta = ["disabled"], na = ["disabled"], oa = ["disabled"], ra = ["disabled"], A = "month", Ca = /* @__PURE__ */ qe({
8
+ import { VftIcon as y } from "../../icon/index.js";
9
+ import { panelDateRangeProps as pa } from "../props/panel-date-range.js";
10
+ import { useRangePicker as ha } from "../composables/use-range-picker.js";
11
+ import { isValidRange as De, getDefaultValue as ba, correctlyParseUserInput as ka } from "../utils.js";
12
+ import { usePanelDateRange as ga } from "../composables/use-panel-date-range.js";
13
+ import { ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY as wa } from "../constants.js";
14
+ import Re from "./basic-year-table.vue2.js";
15
+ import xe from "./basic-month-table.vue2.js";
16
+ import Te from "./basic-date-table.vue2.js";
17
+ import Ie from "../../time-picker/time-picker-com/panel-time-pick.vue2.js";
18
+ import { PICKER_BASE_INJECTION_KEY as ya } from "../../time-picker/constants.js";
19
+ import { extractTimeFormat as Ca, extractDateFormat as Pa } from "../../time-picker/utils.js";
20
+ const Va = ["onClick"], Da = ["disabled"], Ra = ["disabled"], xa = ["disabled"], Ta = ["disabled"], Z = "month", Ha = /* @__PURE__ */ sa({
16
21
  __name: "panel-date-range",
17
- props: Ze,
22
+ props: pa,
18
23
  emits: [
19
24
  "pick",
20
25
  "set-picker-option",
21
26
  "calendar-change",
22
27
  "panel-change"
23
28
  ],
24
- setup(ke, { emit: ye }) {
25
- const f = ke, w = ye, U = Ge("EP_PICKER_BASE"), {
26
- disabledDate: B,
27
- cellClassName: q,
28
- format: T,
29
+ setup($e, { emit: Me }) {
30
+ const c = $e, D = Me, A = we(ya), Ne = we(
31
+ wa
32
+ ), { disabledDate: b, cellClassName: ne, defaultTime: L, clearable: Se } = A.props, Y = te(A.props, "format"), oe = te(A.props, "shortcuts"), re = te(A.props, "defaultValue"), R = T("zh-cn"), i = T(z().locale(R.value)), u = T(z().locale(R.value).add(1, Z)), {
33
+ minDate: n,
34
+ maxDate: o,
35
+ rangeState: C,
36
+ ppNs: v,
37
+ drpNs: d,
38
+ handleChangeRange: ie,
39
+ handleRangeConfirm: ue,
40
+ handleShortcutClick: Ye,
41
+ onSelect: j,
42
+ onReset: Be
43
+ } = ha(c, {
44
+ defaultValue: re,
29
45
  defaultTime: L,
30
- arrowControl: G,
31
- clearable: Ce
32
- } = U.props, H = ie(U.props, "shortcuts"), J = ie(U.props, "defaultValue"), g = V("zh-cn"), n = V(D().locale(g.value)), o = V(D().locale(g.value).add(1, A)), {
33
- minDate: r,
34
- maxDate: u,
35
- rangeState: P,
36
- ppNs: i,
37
- drpNs: m,
38
- handleChangeRange: Q,
39
- handleRangeConfirm: W,
40
- handleShortcutClick: we,
41
- onSelect: X
42
- } = Xe(f, {
43
- defaultValue: J,
44
- leftDate: n,
45
- rightDate: o,
46
- unit: A,
47
- onParsedValueChanged: _e
48
- }), M = V({
46
+ leftDate: i,
47
+ rightDate: u,
48
+ unit: Z,
49
+ onParsedValueChanged: ua
50
+ });
51
+ da(
52
+ () => c.visible,
53
+ (t) => {
54
+ !t && C.value.selecting && (Be(c.parsedValue), j(!1));
55
+ }
56
+ );
57
+ const $ = T({
49
58
  min: null,
50
59
  max: null
51
- }), k = V({
60
+ }), P = T({
52
61
  min: null,
53
62
  max: null
54
- }), Pe = v(() => `${n.value.year()} 年 ${n.value.month() + 1}月`), xe = v(() => `${o.value.year()} 年 ${o.value.month() + 1}月`), Z = v(() => n.value.year()), O = v(() => n.value.month()), j = v(() => o.value.year()), ee = v(() => o.value.month()), ae = v(() => !!H.value.length), Ve = v(() => M.value.min !== null ? M.value.min : r.value ? r.value.format(K.value) : ""), De = v(() => M.value.max !== null ? M.value.max : u.value || r.value ? (u.value || r.value).format(K.value) : ""), Te = v(() => k.value.min !== null ? k.value.min : r.value ? r.value.format($.value) : ""), Me = v(() => k.value.max !== null ? k.value.max : u.value || r.value ? (u.value || r.value).format($.value) : ""), $ = v(() => ea(T)), K = v(() => aa(T)), Ie = () => {
55
- n.value = n.value.subtract(1, "year"), f.unlinkPanels || (o.value = n.value.add(1, "month")), y("year");
56
- }, Se = () => {
57
- n.value = n.value.subtract(1, "month"), f.unlinkPanels || (o.value = n.value.add(1, "month")), y("month");
58
- }, $e = () => {
59
- f.unlinkPanels ? o.value = o.value.add(1, "year") : (n.value = n.value.add(1, "year"), o.value = n.value.add(1, "month")), y("year");
60
- }, Ne = () => {
61
- f.unlinkPanels ? o.value = o.value.add(1, "month") : (n.value = n.value.add(1, "month"), o.value = n.value.add(1, "month")), y("month");
62
- }, Be = () => {
63
- n.value = n.value.add(1, "year"), y("year");
64
- }, Ye = () => {
65
- n.value = n.value.add(1, "month"), y("month");
66
- }, ze = () => {
67
- o.value = o.value.subtract(1, "year"), y("year");
68
- }, Re = () => {
69
- o.value = o.value.subtract(1, "month"), y("month");
70
- }, y = (t) => {
71
- w(
72
- "panel-change",
73
- [n.value.toDate(), o.value.toDate()],
74
- t
75
- );
76
- }, Y = v(() => {
77
- const t = (O.value + 1) % 12, a = O.value + 1 >= 12 ? 1 : 0;
78
- return f.unlinkPanels && new Date(Z.value + a, t) < new Date(j.value, ee.value);
79
- }), z = v(() => f.unlinkPanels && j.value * 12 + ee.value - (Z.value * 12 + O.value + 1) >= 12), Fe = v(() => !(r.value && u.value && !P.value.selecting && he([r.value, u.value]))), R = v(
80
- () => f.type === "datetime" || f.type === "datetimerange"
81
- ), le = (t, a) => {
63
+ }), {
64
+ leftCurrentView: w,
65
+ rightCurrentView: g,
66
+ leftCurrentViewRef: _,
67
+ rightCurrentViewRef: ee,
68
+ leftYear: se,
69
+ rightYear: de,
70
+ leftMonth: ae,
71
+ rightMonth: ve,
72
+ leftYearLabel: Fe,
73
+ rightYearLabel: Ee,
74
+ showLeftPicker: O,
75
+ showRightPicker: U,
76
+ handleLeftYearPick: Ke,
77
+ handleRightYearPick: ze,
78
+ handleLeftMonthPick: Ae,
79
+ handleRightMonthPick: Le,
80
+ handlePanelChange: V,
81
+ adjustDateByView: B
82
+ } = ga(c, D, i, u), me = k(() => !!oe.value.length), Oe = k(() => $.value.min !== null ? $.value.min : n.value ? n.value.format(le.value) : ""), Ue = k(() => $.value.max !== null ? $.value.max : o.value || n.value ? (o.value || n.value).format(le.value) : ""), Je = k(() => P.value.min !== null ? P.value.min : n.value ? n.value.format(F.value) : ""), We = k(() => P.value.max !== null ? P.value.max : o.value || n.value ? (o.value || n.value).format(F.value) : ""), F = k(() => c.timeFormat || Ca(Y.value)), le = k(() => c.dateFormat || Pa(Y.value)), qe = (t) => De(t) && (b ? !b(t[0].toDate()) && !b(t[1].toDate()) : !0), Ge = () => {
83
+ i.value = B(
84
+ w.value,
85
+ i.value,
86
+ !1
87
+ ), c.unlinkPanels || (u.value = i.value.add(1, "month")), V("year");
88
+ }, He = () => {
89
+ i.value = i.value.subtract(1, "month"), c.unlinkPanels || (u.value = i.value.add(1, "month")), V("month");
90
+ }, Qe = () => {
91
+ c.unlinkPanels ? u.value = B(
92
+ g.value,
93
+ u.value,
94
+ !0
95
+ ) : (i.value = B(
96
+ g.value,
97
+ i.value,
98
+ !0
99
+ ), u.value = i.value.add(1, "month")), V("year");
100
+ }, Xe = () => {
101
+ c.unlinkPanels ? u.value = u.value.add(1, "month") : (i.value = i.value.add(1, "month"), u.value = i.value.add(1, "month")), V("month");
102
+ }, Ze = () => {
103
+ i.value = B(
104
+ w.value,
105
+ i.value,
106
+ !0
107
+ ), V("year");
108
+ }, je = () => {
109
+ i.value = i.value.add(1, "month"), V("month");
110
+ }, _e = () => {
111
+ u.value = B(
112
+ g.value,
113
+ u.value,
114
+ !1
115
+ ), V("year");
116
+ }, ea = () => {
117
+ u.value = u.value.subtract(1, "month"), V("month");
118
+ }, J = k(() => {
119
+ const t = (ae.value + 1) % 12, a = ae.value + 1 >= 12 ? 1 : 0;
120
+ return c.unlinkPanels && new Date(se.value + a, t) < new Date(de.value, ve.value);
121
+ }), W = k(() => c.unlinkPanels && de.value * 12 + ve.value - (se.value * 12 + ae.value + 1) >= 12), aa = k(() => !(n.value && o.value && !C.value.selecting && De([n.value, o.value]))), q = k(
122
+ () => c.type === "datetime" || c.type === "datetimerange"
123
+ ), ce = (t, a) => {
82
124
  if (t)
83
- return L ? D(
125
+ return L ? z(
84
126
  L[a] || L
85
- ).locale(g.value).year(t.year()).month(t.month()).date(t.date()) : t;
86
- }, te = (t, a = !0) => {
87
- const l = t.minDate, x = t.maxDate, N = le(l, 0), F = le(x, 1);
88
- u.value === F && r.value === N || (w("calendar-change", [l.toDate(), x && x.toDate()]), u.value = F, r.value = N, !(!a || R.value) && W());
89
- }, I = V(!1), S = V(!1), Ee = () => {
90
- I.value = !1;
91
- }, Ae = () => {
92
- S.value = !1;
93
- }, ne = (t, a) => {
94
- M.value[a] = t;
95
- const l = D(t, K.value).locale(g.value);
127
+ ).locale(R.value).year(t.year()).month(t.month()).date(t.date()) : t;
128
+ }, fe = (t, a = !0) => {
129
+ const l = t.minDate, x = t.maxDate, E = ce(l, 0), G = ce(x, 1);
130
+ o.value === G && n.value === E || (D("calendar-change", [l.toDate(), x && x.toDate()]), o.value = G, n.value = E, !(!a || q.value) && ue());
131
+ }, M = T(!1), N = T(!1), la = () => {
132
+ M.value = !1;
133
+ }, ta = () => {
134
+ N.value = !1;
135
+ }, pe = (t, a) => {
136
+ $.value[a] = t;
137
+ const l = z(t, le.value).locale(R.value);
96
138
  if (l.isValid()) {
97
- if (B && B(l.toDate()))
139
+ if (b && b(l.toDate()))
98
140
  return;
99
- a === "min" ? (n.value = l, r.value = (r.value || n.value).year(l.year()).month(l.month()).date(l.date()), f.unlinkPanels || (o.value = l.add(1, "month"), u.value = r.value.add(1, "month"))) : (o.value = l, u.value = (u.value || o.value).year(l.year()).month(l.month()).date(l.date()), f.unlinkPanels || (n.value = l.subtract(1, "month"), r.value = u.value.subtract(1, "month")));
141
+ a === "min" ? (i.value = l, n.value = (n.value || i.value).year(l.year()).month(l.month()).date(l.date()), !c.unlinkPanels && (!o.value || o.value.isBefore(n.value)) && (u.value = l.add(1, "month"), o.value = n.value.add(1, "month"))) : (u.value = l, o.value = (o.value || u.value).year(l.year()).month(l.month()).date(l.date()), !c.unlinkPanels && (!n.value || n.value.isAfter(o.value)) && (i.value = l.subtract(1, "month"), n.value = o.value.subtract(1, "month")));
100
142
  }
101
- }, oe = (t, a) => {
102
- M.value[a] = null;
103
- }, re = (t, a) => {
104
- k.value[a] = t;
105
- const l = D(t, $.value).locale(g.value);
106
- l.isValid() && (a === "min" ? (I.value = !0, r.value = (r.value || n.value).hour(l.hour()).minute(l.minute()).second(l.second()), (!u.value || u.value.isBefore(r.value)) && (u.value = r.value)) : (S.value = !0, u.value = (u.value || o.value).hour(l.hour()).minute(l.minute()).second(l.second()), o.value = u.value, u.value && u.value.isBefore(r.value) && (r.value = u.value)));
107
- }, ue = (t, a) => {
108
- k.value[a] = null, a === "min" ? (n.value = r.value, I.value = !1) : (o.value = u.value, S.value = !1);
109
- }, Ue = (t, a, l) => {
110
- k.value.min || (t && (n.value = t, r.value = (r.value || n.value).hour(t.hour()).minute(t.minute()).second(t.second())), l || (I.value = a), (!u.value || u.value.isBefore(r.value)) && (u.value = r.value, o.value = t));
111
- }, Le = (t, a, l) => {
112
- k.value.max || (t && (o.value = t, u.value = (u.value || o.value).hour(t.hour()).minute(t.minute()).second(t.second())), l || (S.value = a), u.value && u.value.isBefore(r.value) && (r.value = u.value));
113
- }, se = () => {
114
- n.value = je(e(J), {
115
- lang: e(g),
143
+ }, he = (t, a) => {
144
+ $.value[a] = null;
145
+ }, be = (t, a) => {
146
+ P.value[a] = t;
147
+ const l = z(t, F.value).locale(R.value);
148
+ l.isValid() && (a === "min" ? (M.value = !0, n.value = (n.value || i.value).hour(l.hour()).minute(l.minute()).second(l.second())) : (N.value = !0, o.value = (o.value || u.value).hour(l.hour()).minute(l.minute()).second(l.second()), u.value = o.value));
149
+ }, ke = (t, a) => {
150
+ P.value[a] = null, a === "min" ? (i.value = n.value, M.value = !1, (!o.value || o.value.isBefore(n.value)) && (o.value = n.value)) : (u.value = o.value, N.value = !1, o.value && o.value.isBefore(n.value) && (n.value = o.value));
151
+ }, na = (t, a, l) => {
152
+ P.value.min || (t && (i.value = t, n.value = (n.value || i.value).hour(t.hour()).minute(t.minute()).second(t.second())), l || (M.value = a), (!o.value || o.value.isBefore(n.value)) && (o.value = n.value, u.value = t));
153
+ }, oa = (t, a, l) => {
154
+ P.value.max || (t && (u.value = t, o.value = (o.value || u.value).hour(t.hour()).minute(t.minute()).second(t.second())), l || (N.value = a), o.value && o.value.isBefore(n.value) && (n.value = o.value));
155
+ }, ge = () => {
156
+ i.value = ba(e(re), {
157
+ lang: e(R),
116
158
  unit: "month",
117
- unlinkPanels: f.unlinkPanels
118
- })[0], o.value = n.value.add(1, "month"), w("pick", null);
119
- }, Oe = (t) => fe(t) ? t.map((a) => a.format(T)) : t.format(T), Ke = (t) => fe(t) ? t.map((a) => D(a, T).locale(g.value)) : D(t, T).locale(g.value);
120
- function _e(t, a) {
121
- if (f.unlinkPanels && a) {
122
- const l = t?.year() || 0, x = t?.month() || 0, N = a.year(), F = a.month();
123
- o.value = l === N && x === F ? a.add(1, A) : a;
159
+ unlinkPanels: c.unlinkPanels
160
+ })[0], u.value = i.value.add(1, "month"), o.value = void 0, n.value = void 0, D("pick", null);
161
+ }, ra = (t) => fa(t) ? t.map((a) => a.format(Y.value)) : t.format(Y.value), ia = (t) => ka(
162
+ t,
163
+ Y.value,
164
+ R.value,
165
+ Ne
166
+ );
167
+ function ua(t, a) {
168
+ if (c.unlinkPanels && a) {
169
+ const l = t?.year() || 0, x = t?.month() || 0, E = a.year(), G = a.month();
170
+ u.value = l === E && x === G ? a.add(1, Z) : a;
124
171
  } else
125
- o.value = n.value.add(1, A), a && (o.value = o.value.hour(a.hour()).minute(a.minute()).second(a.second()));
172
+ u.value = i.value.add(1, Z), a && (u.value = u.value.hour(a.hour()).minute(a.minute()).second(a.second()));
126
173
  }
127
- return w("set-picker-option", ["isValidValue", he]), w("set-picker-option", ["parseUserInput", Ke]), w("set-picker-option", ["formatToString", Oe]), w("set-picker-option", ["handleClear", se]), (t, a) => (p(), h("div", {
128
- class: s([
129
- e(i).b(),
130
- e(m).b(),
174
+ return D("set-picker-option", ["isValidValue", qe]), D("set-picker-option", ["parseUserInput", ia]), D("set-picker-option", ["formatToString", ra]), D("set-picker-option", ["handleClear", ge]), (t, a) => (m(), h("div", {
175
+ class: r([
176
+ e(v).b(),
177
+ e(d).b(),
131
178
  {
132
- "has-sidebar": t.$slots.sidebar || ae.value,
133
- "has-time": R.value
179
+ "has-sidebar": t.$slots.sidebar || me.value,
180
+ "has-time": q.value
134
181
  }
135
182
  ])
136
183
  }, [
137
- c("div", {
138
- class: s(e(i).e("body-wrapper"))
184
+ s("div", {
185
+ class: r(e(v).e("body-wrapper"))
139
186
  }, [
140
- He(t.$slots, "sidebar", {
141
- class: s(e(i).e("sidebar"))
187
+ va(t.$slots, "sidebar", {
188
+ class: r(e(v).e("sidebar"))
142
189
  }),
143
- ae.value ? (p(), h("div", {
190
+ me.value ? (m(), h("div", {
144
191
  key: 0,
145
- class: s(e(i).e("sidebar"))
192
+ class: r(e(v).e("sidebar"))
146
193
  }, [
147
- (p(!0), h(Je, null, Qe(H.value, (l, x) => (p(), h("button", {
194
+ (m(!0), h(ma, null, ca(oe.value, (l, x) => (m(), h("button", {
148
195
  key: x,
149
196
  type: "button",
150
- class: s(e(i).e("shortcut")),
151
- onClick: (N) => e(we)(l)
152
- }, _(l.text), 11, la))), 128))
153
- ], 2)) : C("", !0),
154
- c("div", {
155
- class: s(e(i).e("body"))
197
+ class: r(e(v).e("shortcut")),
198
+ onClick: (E) => e(Ye)(l)
199
+ }, K(l.text), 11, Va))), 128))
200
+ ], 2)) : p("", !0),
201
+ s("div", {
202
+ class: r(e(v).e("body"))
156
203
  }, [
157
- R.value ? (p(), h("div", {
204
+ q.value ? (m(), h("div", {
158
205
  key: 0,
159
- class: s(e(m).e("time-header"))
206
+ class: r(e(d).e("time-header"))
160
207
  }, [
161
- c("span", {
162
- class: s(e(m).e("editors-wrap"))
208
+ s("span", {
209
+ class: r(e(d).e("editors-wrap"))
163
210
  }, [
164
- c("span", {
165
- class: s(e(m).e("time-picker-wrap"))
211
+ s("span", {
212
+ class: r(e(d).e("time-picker-wrap"))
166
213
  }, [
167
- d(e(E), {
214
+ f(e(X), {
168
215
  size: "small",
169
- disabled: e(P).selecting,
216
+ disabled: e(C).selecting,
170
217
  placeholder: "开始日期",
171
- class: s(e(m).e("editor")),
172
- "model-value": Ve.value,
218
+ class: r(e(d).e("editor")),
219
+ "model-value": Oe.value,
173
220
  "validate-event": !1,
174
- onInput: a[0] || (a[0] = (l) => ne(l, "min")),
175
- onChange: a[1] || (a[1] = (l) => oe(l, "min"))
221
+ onInput: a[0] || (a[0] = (l) => pe(l, "min")),
222
+ onChange: a[1] || (a[1] = (l) => he(l, "min"))
176
223
  }, null, 8, ["disabled", "class", "model-value"])
177
224
  ], 2),
178
- de((p(), h("span", {
179
- class: s(e(m).e("time-picker-wrap"))
225
+ S((m(), h("span", {
226
+ class: r(e(d).e("time-picker-wrap"))
180
227
  }, [
181
- d(e(E), {
228
+ f(e(X), {
182
229
  size: "small",
183
- class: s(e(m).e("editor")),
184
- disabled: e(P).selecting,
230
+ class: r(e(d).e("editor")),
231
+ disabled: e(C).selecting,
185
232
  placeholder: "开始时间",
186
- "model-value": Te.value,
233
+ "model-value": Je.value,
187
234
  "validate-event": !1,
188
- onFocus: a[2] || (a[2] = (l) => I.value = !0),
189
- onInput: a[3] || (a[3] = (l) => re(l, "min")),
190
- onChange: a[4] || (a[4] = (l) => ue(l, "min"))
235
+ onFocus: a[2] || (a[2] = (l) => M.value = !0),
236
+ onInput: a[3] || (a[3] = (l) => be(l, "min")),
237
+ onChange: a[4] || (a[4] = (l) => ke(l, "min"))
191
238
  }, null, 8, ["class", "disabled", "model-value"]),
192
- d(e(ge), {
193
- visible: I.value,
194
- format: $.value,
239
+ f(e(Ie), {
240
+ visible: M.value,
241
+ format: F.value,
195
242
  "datetime-role": "start",
196
- "time-arrow-control": e(G),
197
- "parsed-value": n.value,
198
- onPick: Ue
199
- }, null, 8, ["visible", "format", "time-arrow-control", "parsed-value"])
243
+ "parsed-value": i.value,
244
+ onPick: na
245
+ }, null, 8, ["visible", "format", "parsed-value"])
200
246
  ], 2)), [
201
- [e(me), Ee]
247
+ [e(Pe), la]
202
248
  ])
203
249
  ], 2),
204
- c("span", null, [
205
- d(e(b), { icon: "icon-arrow-right" })
250
+ s("span", null, [
251
+ f(e(y), { icon: "icon-arrow-right" })
206
252
  ]),
207
- c("span", {
208
- class: s([e(m).e("editors-wrap"), "is-right"])
253
+ s("span", {
254
+ class: r([e(d).e("editors-wrap"), "is-right"])
209
255
  }, [
210
- c("span", {
211
- class: s(e(m).e("time-picker-wrap"))
256
+ s("span", {
257
+ class: r(e(d).e("time-picker-wrap"))
212
258
  }, [
213
- d(e(E), {
259
+ f(e(X), {
214
260
  size: "small",
215
- class: s(e(m).e("editor")),
216
- disabled: e(P).selecting,
261
+ class: r(e(d).e("editor")),
262
+ disabled: e(C).selecting,
217
263
  placeholder: "结束日期",
218
- "model-value": De.value,
219
- readonly: !e(r),
264
+ "model-value": Ue.value,
265
+ readonly: !e(n),
220
266
  "validate-event": !1,
221
- onInput: a[5] || (a[5] = (l) => ne(l, "max")),
222
- onChange: a[6] || (a[6] = (l) => oe(l, "max"))
267
+ onInput: a[5] || (a[5] = (l) => pe(l, "max")),
268
+ onChange: a[6] || (a[6] = (l) => he(l, "max"))
223
269
  }, null, 8, ["class", "disabled", "model-value", "readonly"])
224
270
  ], 2),
225
- de((p(), h("span", {
226
- class: s(e(m).e("time-picker-wrap"))
271
+ S((m(), h("span", {
272
+ class: r(e(d).e("time-picker-wrap"))
227
273
  }, [
228
- d(e(E), {
274
+ f(e(X), {
229
275
  size: "small",
230
- class: s(e(m).e("editor")),
231
- disabled: e(P).selecting,
276
+ class: r(e(d).e("editor")),
277
+ disabled: e(C).selecting,
232
278
  placeholder: "结束时间",
233
- "model-value": Me.value,
234
- readonly: !e(r),
279
+ "model-value": We.value,
280
+ readonly: !e(n),
235
281
  "validate-event": !1,
236
- onFocus: a[7] || (a[7] = (l) => e(r) && (S.value = !0)),
237
- onInput: a[8] || (a[8] = (l) => re(l, "max")),
238
- onChange: a[9] || (a[9] = (l) => ue(l, "max"))
282
+ onFocus: a[7] || (a[7] = (l) => e(n) && (N.value = !0)),
283
+ onInput: a[8] || (a[8] = (l) => be(l, "max")),
284
+ onChange: a[9] || (a[9] = (l) => ke(l, "max"))
239
285
  }, null, 8, ["class", "disabled", "model-value", "readonly"]),
240
- d(e(ge), {
286
+ f(e(Ie), {
241
287
  "datetime-role": "end",
242
- visible: S.value,
243
- format: $.value,
244
- "time-arrow-control": e(G),
245
- "parsed-value": o.value,
246
- onPick: Le
247
- }, null, 8, ["visible", "format", "time-arrow-control", "parsed-value"])
288
+ visible: N.value,
289
+ format: F.value,
290
+ "parsed-value": u.value,
291
+ onPick: oa
292
+ }, null, 8, ["visible", "format", "parsed-value"])
248
293
  ], 2)), [
249
- [e(me), Ae]
294
+ [e(Pe), ta]
250
295
  ])
251
296
  ], 2)
252
- ], 2)) : C("", !0),
253
- c("div", {
254
- class: s([[e(i).e("content"), e(m).e("content")], "is-left"])
297
+ ], 2)) : p("", !0),
298
+ s("div", {
299
+ class: r([[e(v).e("content"), e(d).e("content")], "is-left"])
255
300
  }, [
256
- c("div", {
257
- class: s(e(m).e("header"))
301
+ s("div", {
302
+ class: r(e(d).e("header"))
258
303
  }, [
259
- c("button", {
304
+ s("button", {
260
305
  type: "button",
261
- class: s([e(i).e("icon-btn"), "d-arrow-left"]),
262
- onClick: Ie
306
+ class: r([e(v).e("icon-btn"), "d-arrow-left"]),
307
+ onClick: Ge
263
308
  }, [
264
- d(e(b), { icon: "icon-d-arrow-left" })
309
+ f(e(y), { icon: "icon-d-arrow-left" })
265
310
  ], 2),
266
- c("button", {
311
+ S(s("button", {
267
312
  type: "button",
268
- class: s([e(i).e("icon-btn"), "arrow-left"]),
269
- onClick: Se
313
+ class: r([e(v).e("icon-btn"), "arrow-left"]),
314
+ onClick: He
270
315
  }, [
271
- d(e(b), { icon: "icon-arrow-left" })
272
- ], 2),
273
- t.unlinkPanels ? (p(), h("button", {
316
+ f(e(y), { icon: "icon-arrow-left" })
317
+ ], 2), [
318
+ [H, e(w) === "date"]
319
+ ]),
320
+ t.unlinkPanels ? (m(), h("button", {
274
321
  key: 0,
275
322
  type: "button",
276
- disabled: !z.value,
277
- class: s([[e(i).e("icon-btn"), { "is-disabled": !z.value }], "d-arrow-right"]),
278
- onClick: Be
323
+ disabled: !W.value,
324
+ class: r([[e(v).e("icon-btn"), { "is-disabled": !W.value }], "d-arrow-right"]),
325
+ onClick: Ze
279
326
  }, [
280
- d(e(b), { icon: "icon-d-arrow-right" })
281
- ], 10, ta)) : C("", !0),
282
- t.unlinkPanels ? (p(), h("button", {
327
+ f(e(y), { icon: "icon-d-arrow-right" })
328
+ ], 10, Da)) : p("", !0),
329
+ t.unlinkPanels && e(w) === "date" ? (m(), h("button", {
283
330
  key: 1,
284
331
  type: "button",
285
- disabled: !Y.value,
286
- class: s([[
287
- e(i).e("icon-btn"),
288
- { "is-disabled": !Y.value }
332
+ disabled: !J.value,
333
+ class: r([[
334
+ e(v).e("icon-btn"),
335
+ { "is-disabled": !J.value }
289
336
  ], "arrow-right"]),
290
- onClick: Ye
337
+ onClick: je
291
338
  }, [
292
- d(e(b), { icon: "icon-arrow-right" })
293
- ], 10, na)) : C("", !0),
294
- c("div", null, _(Pe.value), 1)
339
+ f(e(y), { icon: "icon-arrow-right" })
340
+ ], 10, Ra)) : p("", !0),
341
+ s("div", null, [
342
+ s("span", {
343
+ role: "button",
344
+ class: r(e(d).e("header-label")),
345
+ "aria-live": "polite",
346
+ tabindex: "0",
347
+ onKeydown: a[10] || (a[10] = Q((l) => e(O)("year"), ["enter"])),
348
+ onClick: a[11] || (a[11] = (l) => e(O)("year"))
349
+ }, K(e(Fe)), 35),
350
+ S(s("span", {
351
+ role: "button",
352
+ "aria-live": "polite",
353
+ tabindex: "0",
354
+ class: r([
355
+ e(d).e("header-label"),
356
+ { active: e(w) === "month" }
357
+ ]),
358
+ onKeydown: a[12] || (a[12] = Q((l) => e(O)("month"), ["enter"])),
359
+ onClick: a[13] || (a[13] = (l) => e(O)("month"))
360
+ }, K(i.value.month() + 1), 35), [
361
+ [H, e(w) === "date"]
362
+ ])
363
+ ])
295
364
  ], 2),
296
- d(be, {
365
+ e(w) === "date" ? (m(), I(Te, {
366
+ key: 0,
367
+ ref_key: "leftCurrentViewRef",
368
+ ref: _,
297
369
  "selection-mode": "range",
298
- date: n.value,
299
- "min-date": e(r),
300
- "max-date": e(u),
301
- "range-state": e(P),
302
- "disabled-date": e(B),
303
- "cell-class-name": e(q),
304
- onChangerange: e(Q),
305
- onPick: te,
306
- onSelect: e(X)
307
- }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "onChangerange", "onSelect"])
370
+ date: i.value,
371
+ "min-date": e(n),
372
+ "max-date": e(o),
373
+ "range-state": e(C),
374
+ "disabled-date": e(b),
375
+ "cell-class-name": e(ne),
376
+ "show-week-number": t.showWeekNumber,
377
+ onChangerange: e(ie),
378
+ onPick: fe,
379
+ onSelect: e(j)
380
+ }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "show-week-number", "onChangerange", "onSelect"])) : p("", !0),
381
+ e(w) === "year" ? (m(), I(Re, {
382
+ key: 1,
383
+ ref_key: "leftCurrentViewRef",
384
+ ref: _,
385
+ "selection-mode": "year",
386
+ date: i.value,
387
+ "disabled-date": e(b),
388
+ "parsed-value": t.parsedValue,
389
+ onPick: e(Ke)
390
+ }, null, 8, ["date", "disabled-date", "parsed-value", "onPick"])) : p("", !0),
391
+ e(w) === "month" ? (m(), I(xe, {
392
+ key: 2,
393
+ ref_key: "leftCurrentViewRef",
394
+ ref: _,
395
+ "selection-mode": "month",
396
+ date: i.value,
397
+ "parsed-value": t.parsedValue,
398
+ "disabled-date": e(b),
399
+ onPick: e(Ae)
400
+ }, null, 8, ["date", "parsed-value", "disabled-date", "onPick"])) : p("", !0)
308
401
  ], 2),
309
- c("div", {
310
- class: s([[e(i).e("content"), e(m).e("content")], "is-right"])
402
+ s("div", {
403
+ class: r([[e(v).e("content"), e(d).e("content")], "is-right"])
311
404
  }, [
312
- c("div", {
313
- class: s(e(m).e("header"))
405
+ s("div", {
406
+ class: r(e(d).e("header"))
314
407
  }, [
315
- t.unlinkPanels ? (p(), h("button", {
408
+ t.unlinkPanels ? (m(), h("button", {
316
409
  key: 0,
317
410
  type: "button",
318
- disabled: !z.value,
319
- class: s([[e(i).e("icon-btn"), { "is-disabled": !z.value }], "d-arrow-left"]),
320
- onClick: ze
411
+ disabled: !W.value,
412
+ class: r([[e(v).e("icon-btn"), { "is-disabled": !W.value }], "d-arrow-left"]),
413
+ onClick: _e
321
414
  }, [
322
- d(e(b), { icon: "icon-d-arrow-left" })
323
- ], 10, oa)) : C("", !0),
324
- t.unlinkPanels ? (p(), h("button", {
415
+ f(e(y), { icon: "icon-d-arrow-left" })
416
+ ], 10, xa)) : p("", !0),
417
+ t.unlinkPanels && e(g) === "date" ? (m(), h("button", {
325
418
  key: 1,
326
419
  type: "button",
327
- disabled: !Y.value,
328
- class: s([[
329
- e(i).e("icon-btn"),
330
- { "is-disabled": !Y.value }
420
+ disabled: !J.value,
421
+ class: r([[
422
+ e(v).e("icon-btn"),
423
+ { "is-disabled": !J.value }
331
424
  ], "arrow-left"]),
332
- onClick: Re
425
+ onClick: ea
333
426
  }, [
334
- d(e(b), { icon: "icon-arrow-left" })
335
- ], 10, ra)) : C("", !0),
336
- c("button", {
427
+ f(e(y), { icon: "icon-arrow-left" })
428
+ ], 10, Ta)) : p("", !0),
429
+ s("button", {
337
430
  type: "button",
338
- class: s([e(i).e("icon-btn"), "d-arrow-right"]),
339
- onClick: $e
431
+ class: r([e(v).e("icon-btn"), "d-arrow-right"]),
432
+ onClick: Qe
340
433
  }, [
341
- d(e(b), { icon: "icon-d-arrow-right" })
434
+ f(e(y), { icon: "icon-d-arrow-right" })
342
435
  ], 2),
343
- c("button", {
436
+ S(s("button", {
344
437
  type: "button",
345
- class: s([e(i).e("icon-btn"), "arrow-right"]),
346
- onClick: Ne
438
+ class: r([e(v).e("icon-btn"), "arrow-right"]),
439
+ onClick: Xe
347
440
  }, [
348
- d(e(b), { icon: "icon-arrow-right" })
349
- ], 2),
350
- c("div", null, _(xe.value), 1)
441
+ f(e(y), { icon: "icon-arrow-right" })
442
+ ], 2), [
443
+ [H, e(g) === "date"]
444
+ ]),
445
+ s("div", null, [
446
+ s("span", {
447
+ role: "button",
448
+ class: r(e(d).e("header-label")),
449
+ "aria-live": "polite",
450
+ tabindex: "0",
451
+ onKeydown: a[14] || (a[14] = Q((l) => e(U)("year"), ["enter"])),
452
+ onClick: a[15] || (a[15] = (l) => e(U)("year"))
453
+ }, K(e(Ee)), 35),
454
+ S(s("span", {
455
+ role: "button",
456
+ "aria-live": "polite",
457
+ tabindex: "0",
458
+ class: r([
459
+ e(d).e("header-label"),
460
+ { active: e(g) === "month" }
461
+ ]),
462
+ onKeydown: a[16] || (a[16] = Q((l) => e(U)("month"), ["enter"])),
463
+ onClick: a[17] || (a[17] = (l) => e(U)("month"))
464
+ }, K(u.value.month() + 1), 35), [
465
+ [H, e(g) === "date"]
466
+ ])
467
+ ])
351
468
  ], 2),
352
- d(be, {
469
+ e(g) === "date" ? (m(), I(Te, {
470
+ key: 0,
471
+ ref_key: "rightCurrentViewRef",
472
+ ref: ee,
353
473
  "selection-mode": "range",
354
- date: o.value,
355
- "min-date": e(r),
356
- "max-date": e(u),
357
- "range-state": e(P),
358
- "disabled-date": e(B),
359
- "cell-class-name": e(q),
360
- onChangerange: e(Q),
361
- onPick: te,
362
- onSelect: e(X)
363
- }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "onChangerange", "onSelect"])
474
+ date: u.value,
475
+ "min-date": e(n),
476
+ "max-date": e(o),
477
+ "range-state": e(C),
478
+ "disabled-date": e(b),
479
+ "cell-class-name": e(ne),
480
+ "show-week-number": t.showWeekNumber,
481
+ onChangerange: e(ie),
482
+ onPick: fe,
483
+ onSelect: e(j)
484
+ }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "show-week-number", "onChangerange", "onSelect"])) : p("", !0),
485
+ e(g) === "year" ? (m(), I(Re, {
486
+ key: 1,
487
+ ref_key: "rightCurrentViewRef",
488
+ ref: ee,
489
+ "selection-mode": "year",
490
+ date: u.value,
491
+ "disabled-date": e(b),
492
+ "parsed-value": t.parsedValue,
493
+ onPick: e(ze)
494
+ }, null, 8, ["date", "disabled-date", "parsed-value", "onPick"])) : p("", !0),
495
+ e(g) === "month" ? (m(), I(xe, {
496
+ key: 2,
497
+ ref_key: "rightCurrentViewRef",
498
+ ref: ee,
499
+ "selection-mode": "month",
500
+ date: u.value,
501
+ "parsed-value": t.parsedValue,
502
+ "disabled-date": e(b),
503
+ onPick: e(Le)
504
+ }, null, 8, ["date", "parsed-value", "disabled-date", "onPick"])) : p("", !0)
364
505
  ], 2)
365
506
  ], 2)
366
507
  ], 2),
367
- R.value ? (p(), h("div", {
508
+ q.value ? (m(), h("div", {
368
509
  key: 0,
369
- class: s(e(i).e("footer"))
510
+ class: r(e(v).e("footer"))
370
511
  }, [
371
- e(Ce) ? (p(), We(e(pe), {
512
+ e(Se) ? (m(), I(e(Ve), {
372
513
  key: 0,
373
514
  text: "",
374
515
  size: "small",
375
- class: s(e(i).e("link-btn")),
376
- onClick: se
516
+ class: r(e(v).e("link-btn")),
517
+ onClick: ge
377
518
  }, {
378
- default: ve(() => a[11] || (a[11] = [
379
- ce(" 清除 ")
519
+ default: ye(() => a[19] || (a[19] = [
520
+ Ce(" 清除 ")
380
521
  ])),
381
522
  _: 1,
382
- __: [11]
383
- }, 8, ["class"])) : C("", !0),
384
- d(e(pe), {
523
+ __: [19]
524
+ }, 8, ["class"])) : p("", !0),
525
+ f(e(Ve), {
385
526
  plain: "",
386
527
  size: "small",
387
- class: s(e(i).e("link-btn")),
388
- disabled: Fe.value,
389
- onClick: a[10] || (a[10] = (l) => e(W)(!1))
528
+ class: r(e(v).e("link-btn")),
529
+ disabled: aa.value,
530
+ onClick: a[18] || (a[18] = (l) => e(ue)(!1))
390
531
  }, {
391
- default: ve(() => a[12] || (a[12] = [
392
- ce(" 确认 ")
532
+ default: ye(() => a[20] || (a[20] = [
533
+ Ce(" 确认 ")
393
534
  ])),
394
535
  _: 1,
395
- __: [12]
536
+ __: [20]
396
537
  }, 8, ["class", "disabled"])
397
- ], 2)) : C("", !0)
538
+ ], 2)) : p("", !0)
398
539
  ], 2));
399
540
  }
400
541
  });
401
542
  export {
402
- Ca as default
543
+ Ha as default
403
544
  };