vft 0.0.509 → 0.0.513

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