vxe-pc-ui 4.20.34 → 4.20.36

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 (879) hide show
  1. package/dist/all.esm.js +45718 -45038
  2. package/dist/all.esm.min.js +3 -3
  3. package/dist/style.css +307 -1
  4. package/dist/style.mini.css +1 -1
  5. package/es/alert/src/alert.js +117 -114
  6. package/es/anchor/index.d.ts +8 -8
  7. package/es/anchor/src/anchor-link.js +110 -107
  8. package/es/anchor/src/anchor.d.ts +1 -1
  9. package/es/anchor/src/anchor.js +212 -209
  10. package/es/avatar/index.d.ts +6 -6
  11. package/es/avatar/src/avatar.d.ts +1 -1
  12. package/es/avatar/src/avatar.js +132 -129
  13. package/es/backtop/index.d.ts +42 -42
  14. package/es/backtop/src/backtop.d.ts +7 -7
  15. package/es/backtop/src/backtop.js +267 -264
  16. package/es/badge/index.d.ts +6 -6
  17. package/es/badge/src/badge.d.ts +1 -1
  18. package/es/badge/src/badge.js +102 -99
  19. package/es/breadcrumb/src/breadcrumb-item.js +104 -101
  20. package/es/breadcrumb/src/breadcrumb.js +70 -67
  21. package/es/button/index.d.ts +20 -20
  22. package/es/button/src/button-group.js +88 -85
  23. package/es/button/src/button.d.ts +3 -3
  24. package/es/calendar/index.d.ts +20 -20
  25. package/es/calendar/src/calendar.d.ts +3 -3
  26. package/es/calendar/src/calendar.js +1371 -1368
  27. package/es/card/index.d.ts +12 -12
  28. package/es/card/src/card.d.ts +2 -2
  29. package/es/card/src/card.js +235 -232
  30. package/es/carousel/index.d.ts +14 -14
  31. package/es/carousel/src/carousel-item.js +78 -75
  32. package/es/carousel/src/carousel.d.ts +2 -2
  33. package/es/carousel/src/carousel.js +392 -389
  34. package/es/cascader/index.d.ts +70 -70
  35. package/es/cascader/src/cascader.d.ts +11 -11
  36. package/es/cascader/src/cascader.js +1667 -1664
  37. package/es/checkbox/index.d.ts +14 -14
  38. package/es/checkbox/src/button.d.ts +2 -2
  39. package/es/checkbox/src/button.js +198 -195
  40. package/es/checkbox/src/checkbox.d.ts +2 -2
  41. package/es/checkbox/src/checkbox.js +181 -178
  42. package/es/checkbox/src/group.d.ts +4 -4
  43. package/es/checkbox/src/group.js +210 -207
  44. package/es/checkbox-button/index.d.ts +14 -14
  45. package/es/checkbox-group/index.d.ts +26 -26
  46. package/es/collapse/index.d.ts +14 -14
  47. package/es/collapse/src/collapse-pane.js +98 -95
  48. package/es/collapse/src/collapse.d.ts +2 -2
  49. package/es/collapse/src/collapse.js +340 -337
  50. package/es/color-picker/index.d.ts +46 -46
  51. package/es/color-picker/src/color-picker.d.ts +8 -8
  52. package/es/color-picker/src/color-picker.js +1116 -1113
  53. package/es/color-picker/src/util.d.ts +9 -1
  54. package/es/components.d.ts +1 -0
  55. package/es/components.js +3 -0
  56. package/es/context-menu/index.d.ts +16 -16
  57. package/es/context-menu/src/context-menu.d.ts +3 -3
  58. package/es/context-menu/src/context-menu.js +601 -598
  59. package/es/countdown/index.d.ts +2 -2
  60. package/es/countdown/src/countdown.d.ts +1 -1
  61. package/es/countdown/src/countdown.js +224 -221
  62. package/es/date-panel/index.d.ts +46 -46
  63. package/es/date-panel/src/date-panel.d.ts +7 -7
  64. package/es/date-panel/src/date-panel.js +1905 -1902
  65. package/es/date-picker/index.d.ts +110 -110
  66. package/es/date-picker/src/date-picker.d.ts +17 -17
  67. package/es/date-picker/src/date-picker.js +1537 -1534
  68. package/es/date-range-picker/index.d.ts +114 -114
  69. package/es/date-range-picker/src/date-range-picker.d.ts +17 -17
  70. package/es/date-range-picker/src/date-range-picker.js +1412 -1409
  71. package/es/divider/index.d.ts +6 -6
  72. package/es/divider/src/divider.d.ts +1 -1
  73. package/es/divider/src/divider.js +80 -77
  74. package/es/drawer/index.d.ts +74 -74
  75. package/es/drawer/src/drawer.d.ts +13 -13
  76. package/es/drawer/src/drawer.js +778 -775
  77. package/es/dynamics/index.d.ts +12 -12
  78. package/es/empty/src/empty.js +100 -97
  79. package/es/form/index.d.ts +36 -36
  80. package/es/form/src/form-config-item.d.ts +7 -7
  81. package/es/form/src/form-group.d.ts +7 -7
  82. package/es/form/src/form-group.js +74 -71
  83. package/es/form/src/form-item.d.ts +7 -7
  84. package/es/form/src/form-item.js +76 -73
  85. package/es/form/src/form.d.ts +6 -6
  86. package/es/form/src/form.js +789 -786
  87. package/es/form-gather/index.d.ts +42 -42
  88. package/es/form-group/index.d.ts +42 -42
  89. package/es/form-item/index.d.ts +42 -42
  90. package/es/icon/src/icon.js +59 -56
  91. package/es/icon/style.css +1 -1
  92. package/es/icon/style.mini.css +1 -1
  93. package/es/icon-picker/index.d.ts +22 -22
  94. package/es/icon-picker/src/icon-picker.d.ts +4 -4
  95. package/es/icon-picker/src/icon-picker.js +719 -716
  96. package/es/image/index.d.ts +30 -30
  97. package/es/image/src/group.d.ts +2 -2
  98. package/es/image/src/group.js +130 -127
  99. package/es/image/src/image.d.ts +5 -5
  100. package/es/image/src/image.js +243 -240
  101. package/es/image/src/preview.d.ts +3 -3
  102. package/es/image/src/preview.js +627 -624
  103. package/es/image-group/index.d.ts +8 -8
  104. package/es/image-preview/index.d.ts +16 -16
  105. package/es/index.esm.js +2 -0
  106. package/es/index.js +2 -0
  107. package/es/input/index.d.ts +160 -160
  108. package/es/input/src/input.d.ts +25 -25
  109. package/es/input/src/input.js +2700 -2697
  110. package/es/layout-aside/src/layout-aside.js +138 -135
  111. package/es/layout-body/src/layout-body.js +145 -142
  112. package/es/layout-container/src/layout-container.js +71 -68
  113. package/es/layout-footer/src/layout-footer.js +60 -57
  114. package/es/layout-header/src/layout-header.js +58 -55
  115. package/es/link/src/link.js +131 -128
  116. package/es/list/src/list.js +2174 -2171
  117. package/es/loading/index.d.ts +6 -6
  118. package/es/loading/src/loading.d.ts +1 -1
  119. package/es/loading/src/loading.js +141 -138
  120. package/es/mention/src/mention.js +49 -46
  121. package/es/menu/index.d.ts +32 -32
  122. package/es/menu/src/menu.d.ts +5 -5
  123. package/es/menu/src/menu.js +799 -796
  124. package/es/modal/index.d.ts +92 -92
  125. package/es/modal/src/modal.d.ts +16 -16
  126. package/es/modal/src/modal.js +1519 -1527
  127. package/es/notice-bar/index.d.ts +8 -8
  128. package/es/notice-bar/src/notice-bar.d.ts +2 -2
  129. package/es/notice-bar/src/notice-bar.js +168 -165
  130. package/es/number-input/index.d.ts +134 -134
  131. package/es/number-input/src/number-input.d.ts +21 -21
  132. package/es/number-input/src/number-input.js +1094 -1091
  133. package/es/optgroup/index.d.ts +6 -6
  134. package/es/option/index.d.ts +6 -6
  135. package/es/pager/index.d.ts +34 -34
  136. package/es/pager/src/pager.d.ts +6 -6
  137. package/es/pager/src/pager.js +767 -764
  138. package/es/password-input/index.d.ts +72 -72
  139. package/es/password-input/src/password-input.d.ts +11 -11
  140. package/es/password-input/src/password-input.js +431 -428
  141. package/es/print/index.d.ts +6 -6
  142. package/es/print/src/page-break.js +63 -60
  143. package/es/print/src/print.d.ts +1 -1
  144. package/es/print/src/print.js +303 -300
  145. package/es/pulldown/index.d.ts +22 -22
  146. package/es/pulldown/src/pulldown.d.ts +4 -4
  147. package/es/pulldown/src/pulldown.js +403 -400
  148. package/es/radio/index.d.ts +20 -20
  149. package/es/radio/src/button.d.ts +3 -3
  150. package/es/radio/src/button.js +214 -211
  151. package/es/radio/src/group.d.ts +4 -4
  152. package/es/radio/src/group.js +195 -192
  153. package/es/radio/src/radio.d.ts +3 -3
  154. package/es/radio/src/radio.js +194 -191
  155. package/es/radio-button/index.d.ts +20 -20
  156. package/es/radio-group/index.d.ts +26 -26
  157. package/es/rate/index.d.ts +14 -14
  158. package/es/rate/src/rate.d.ts +2 -2
  159. package/es/rate/src/rate.js +164 -161
  160. package/es/result/src/result.js +116 -113
  161. package/es/row/index.d.ts +6 -6
  162. package/es/row/src/col.js +133 -130
  163. package/es/row/src/row.d.ts +1 -1
  164. package/es/row/src/row.js +111 -108
  165. package/es/scrollbar/index.d.ts +30 -30
  166. package/es/scrollbar/src/scrollbar.d.ts +5 -5
  167. package/es/scrollbar/src/scrollbar.js +518 -515
  168. package/es/segmented/index.d.ts +14 -14
  169. package/es/segmented/src/segmented.d.ts +2 -2
  170. package/es/segmented/src/segmented.js +240 -237
  171. package/es/select/index.d.ts +66 -66
  172. package/es/select/src/optgroup.d.ts +1 -1
  173. package/es/select/src/optgroup.js +44 -41
  174. package/es/select/src/option.d.ts +1 -1
  175. package/es/select/src/option.js +39 -36
  176. package/es/select/src/select.d.ts +11 -11
  177. package/es/select/src/select.js +1914 -1896
  178. package/es/slider/index.d.ts +38 -38
  179. package/es/slider/src/slider.d.ts +6 -6
  180. package/es/slider/src/slider.js +419 -416
  181. package/es/space/index.d.ts +36 -36
  182. package/es/space/src/space.d.ts +6 -6
  183. package/es/space/src/space.js +190 -187
  184. package/es/split/index.d.ts +14 -14
  185. package/es/split-pane/index.d.ts +18 -18
  186. package/es/splitter/index.d.ts +14 -14
  187. package/es/splitter/src/splitter-panel.d.ts +3 -3
  188. package/es/splitter/src/splitter-panel.js +146 -143
  189. package/es/splitter/src/splitter.d.ts +3 -3
  190. package/es/splitter/src/splitter.js +917 -914
  191. package/es/splitter-panel/index.d.ts +18 -18
  192. package/es/step-item/index.d.ts +76 -0
  193. package/es/step-item/index.js +17 -0
  194. package/es/steps/index.d.ts +288 -34
  195. package/es/steps/src/step-info.d.ts +6 -0
  196. package/es/steps/src/step-info.js +20 -0
  197. package/es/steps/src/step-item.d.ts +14 -0
  198. package/es/steps/src/step-item.js +39 -0
  199. package/es/steps/src/steps.d.ts +68 -8
  200. package/es/steps/src/steps.js +299 -47
  201. package/es/steps/src/util.d.ts +7 -0
  202. package/es/steps/src/util.js +44 -0
  203. package/es/steps/style.css +297 -0
  204. package/es/steps/style.mini.css +1 -0
  205. package/es/style.css +307 -1
  206. package/es/style.mini.css +1 -1
  207. package/es/switch/index.d.ts +24 -24
  208. package/es/switch/src/switch.d.ts +4 -4
  209. package/es/switch/src/switch.js +228 -225
  210. package/es/table-select/index.d.ts +30 -30
  211. package/es/table-select/src/table-select.d.ts +5 -5
  212. package/es/table-select/src/table-select.js +865 -862
  213. package/es/table-transfer/src/table-transfer.js +61 -58
  214. package/es/tabs/index.d.ts +26 -26
  215. package/es/tabs/src/tab-pane.js +102 -99
  216. package/es/tabs/src/tabs.d.ts +4 -4
  217. package/es/tabs/src/tabs.js +936 -933
  218. package/es/tag/index.d.ts +16 -16
  219. package/es/tag/src/tag.d.ts +3 -3
  220. package/es/tag/src/tag.js +163 -160
  221. package/es/text/src/text.js +232 -229
  222. package/es/text-ellipsis/src/text-ellipsis.js +252 -249
  223. package/es/textarea/index.d.ts +76 -76
  224. package/es/textarea/src/textarea.d.ts +12 -12
  225. package/es/textarea/src/textarea.js +434 -431
  226. package/es/timeline/index.d.ts +6 -6
  227. package/es/timeline/src/timeline.d.ts +1 -1
  228. package/es/timeline/src/timeline.js +74 -36
  229. package/es/timeline/src/util.js +7 -4
  230. package/es/tip/index.d.ts +9 -9
  231. package/es/tip/src/tip.d.ts +1 -1
  232. package/es/tip/src/tip.js +117 -114
  233. package/es/tooltip/index.d.ts +72 -72
  234. package/es/tooltip/src/tooltip.d.ts +14 -14
  235. package/es/tooltip/src/tooltip.js +552 -549
  236. package/es/tour/src/tour.js +49 -46
  237. package/es/transfer/src/transfer.js +95 -92
  238. package/es/tree/index.d.ts +44 -44
  239. package/es/tree/src/tree.d.ts +7 -7
  240. package/es/tree/src/tree.js +3379 -3376
  241. package/es/tree-select/index.d.ts +74 -74
  242. package/es/tree-select/src/tree-select.d.ts +12 -12
  243. package/es/tree-select/src/tree-select.js +969 -966
  244. package/es/ui/index.js +8 -2
  245. package/es/ui/src/log.js +1 -1
  246. package/es/ui/src/vn.d.ts +1 -1
  247. package/es/upload/index.d.ts +128 -128
  248. package/es/upload/src/upload.d.ts +21 -21
  249. package/es/upload/src/upload.js +1791 -1788
  250. package/es/vxe-icon/style.css +1 -1
  251. package/es/vxe-icon/style.mini.css +1 -1
  252. package/es/vxe-steps/style.css +297 -0
  253. package/es/vxe-steps/style.mini.css +1 -0
  254. package/es/watermark/index.d.ts +6 -6
  255. package/es/watermark/src/watermark.d.ts +1 -1
  256. package/es/watermark/src/watermark.js +158 -155
  257. package/lib/alert/index.d.ts +170 -0
  258. package/lib/alert/src/alert.d.ts +35 -0
  259. package/lib/alert/src/alert.js +117 -114
  260. package/lib/anchor/index.d.ts +140 -0
  261. package/lib/anchor/src/anchor-link.d.ts +12 -0
  262. package/lib/anchor/src/anchor-link.js +110 -107
  263. package/lib/anchor/src/anchor.d.ts +26 -0
  264. package/lib/anchor/src/anchor.js +212 -209
  265. package/lib/anchor/src/util.d.ts +3 -0
  266. package/lib/anchor-link/index.d.ts +64 -0
  267. package/lib/avatar/index.d.ts +216 -0
  268. package/lib/avatar/src/avatar.d.ts +48 -0
  269. package/lib/avatar/src/avatar.js +132 -129
  270. package/lib/backtop/index.d.ts +640 -0
  271. package/lib/backtop/src/backtop.d.ts +146 -0
  272. package/lib/backtop/src/backtop.js +267 -264
  273. package/lib/badge/index.d.ts +154 -0
  274. package/lib/badge/src/badge.d.ts +33 -0
  275. package/lib/badge/src/badge.js +102 -99
  276. package/lib/breadcrumb/index.d.ts +108 -0
  277. package/lib/breadcrumb/src/breadcrumb-item.d.ts +10 -0
  278. package/lib/breadcrumb/src/breadcrumb-item.js +104 -101
  279. package/lib/breadcrumb/src/breadcrumb.d.ts +20 -0
  280. package/lib/breadcrumb/src/breadcrumb.js +70 -67
  281. package/lib/breadcrumb-item/index.d.ts +56 -0
  282. package/lib/button/index.d.ts +592 -0
  283. package/lib/button/src/button-group.d.ts +39 -0
  284. package/lib/button/src/button-group.js +88 -85
  285. package/lib/button/src/button.d.ts +235 -0
  286. package/lib/button-group/index.d.ts +188 -0
  287. package/lib/calendar/index.d.ts +442 -0
  288. package/lib/calendar/src/calendar.d.ts +93 -0
  289. package/lib/calendar/src/calendar.js +1371 -1368
  290. package/lib/card/index.d.ts +314 -0
  291. package/lib/card/src/card.d.ts +71 -0
  292. package/lib/card/src/card.js +235 -232
  293. package/lib/carousel/index.d.ts +360 -0
  294. package/lib/carousel/src/carousel-item.d.ts +12 -0
  295. package/lib/carousel/src/carousel-item.js +78 -75
  296. package/lib/carousel/src/carousel.d.ts +79 -0
  297. package/lib/carousel/src/carousel.js +392 -389
  298. package/lib/carousel/src/util.d.ts +3 -0
  299. package/lib/carousel-item/index.d.ts +64 -0
  300. package/lib/cascader/index.d.ts +842 -0
  301. package/lib/cascader/src/cascader.d.ts +183 -0
  302. package/lib/cascader/src/cascader.js +1665 -1662
  303. package/lib/cascader/src/util.d.ts +2 -0
  304. package/lib/checkbox/index.d.ts +292 -0
  305. package/lib/checkbox/src/button.d.ts +73 -0
  306. package/lib/checkbox/src/button.js +198 -195
  307. package/lib/checkbox/src/checkbox.d.ts +71 -0
  308. package/lib/checkbox/src/checkbox.js +181 -178
  309. package/lib/checkbox/src/group.d.ts +68 -0
  310. package/lib/checkbox/src/group.js +210 -207
  311. package/lib/checkbox-button/index.d.ts +304 -0
  312. package/lib/checkbox-group/index.d.ts +320 -0
  313. package/lib/col/index.d.ts +124 -0
  314. package/lib/collapse/index.d.ts +224 -0
  315. package/lib/collapse/src/collapse-pane.d.ts +16 -0
  316. package/lib/collapse/src/collapse-pane.js +98 -95
  317. package/lib/collapse/src/collapse.d.ts +45 -0
  318. package/lib/collapse/src/collapse.js +340 -337
  319. package/lib/collapse/src/util.d.ts +3 -0
  320. package/lib/collapse-pane/index.d.ts +80 -0
  321. package/lib/color-picker/index.d.ts +636 -0
  322. package/lib/color-picker/src/color-picker.d.ts +159 -0
  323. package/lib/color-picker/src/color-picker.js +1116 -1113
  324. package/lib/color-picker/src/util.d.ts +62 -0
  325. package/lib/components.d.ts +156 -0
  326. package/lib/components.js +3 -0
  327. package/lib/context-menu/index.d.ts +338 -0
  328. package/lib/context-menu/src/context-menu.d.ts +70 -0
  329. package/lib/context-menu/src/context-menu.js +601 -598
  330. package/lib/countdown/index.d.ts +148 -0
  331. package/lib/countdown/src/countdown.d.ts +28 -0
  332. package/lib/countdown/src/countdown.js +224 -221
  333. package/lib/date-panel/index.d.ts +520 -0
  334. package/lib/date-panel/src/date-panel.d.ts +112 -0
  335. package/lib/date-panel/src/date-panel.js +1905 -1902
  336. package/lib/date-panel/src/util.d.ts +40 -0
  337. package/lib/date-picker/index.d.ts +1074 -0
  338. package/lib/date-picker/src/date-picker.d.ts +262 -0
  339. package/lib/date-picker/src/date-picker.js +1537 -1534
  340. package/lib/date-range-picker/index.d.ts +1044 -0
  341. package/lib/date-range-picker/src/date-range-picker.d.ts +245 -0
  342. package/lib/date-range-picker/src/date-range-picker.js +1412 -1409
  343. package/lib/divider/index.d.ts +198 -0
  344. package/lib/divider/src/divider.d.ts +43 -0
  345. package/lib/divider/src/divider.js +80 -77
  346. package/lib/drawer/index.d.ts +1398 -0
  347. package/lib/drawer/src/drawer.d.ts +317 -0
  348. package/lib/drawer/src/drawer.js +778 -775
  349. package/lib/drawer/src/store.d.ts +2 -0
  350. package/lib/dynamics/index.d.ts +463 -0
  351. package/lib/empty/index.d.ts +116 -0
  352. package/lib/empty/src/empty.d.ts +24 -0
  353. package/lib/empty/src/empty.js +100 -97
  354. package/lib/form/index.d.ts +836 -0
  355. package/lib/form/render/index.d.ts +1 -0
  356. package/lib/form/src/form-config-item.d.ts +187 -0
  357. package/lib/form/src/form-group.d.ts +188 -0
  358. package/lib/form/src/form-group.js +74 -71
  359. package/lib/form/src/form-item.d.ts +271 -0
  360. package/lib/form/src/form-item.js +76 -73
  361. package/lib/form/src/form.d.ts +191 -0
  362. package/lib/form/src/form.js +789 -786
  363. package/lib/form/src/itemInfo.d.ts +5 -0
  364. package/lib/form/src/render.d.ts +27 -0
  365. package/lib/form/src/util.d.ts +13 -0
  366. package/lib/form-gather/index.d.ts +840 -0
  367. package/lib/form-group/index.d.ts +828 -0
  368. package/lib/form-item/index.d.ts +828 -0
  369. package/lib/icon/index.d.ts +132 -0
  370. package/lib/icon/src/icon.d.ts +26 -0
  371. package/lib/icon/src/icon.js +59 -56
  372. package/lib/icon/style/style.css +1 -1
  373. package/lib/icon/style/style.mini.css +1 -1
  374. package/lib/icon-picker/index.d.ts +440 -0
  375. package/lib/icon-picker/src/icon-picker.d.ts +105 -0
  376. package/lib/icon-picker/src/icon-picker.js +719 -716
  377. package/lib/image/index.d.ts +442 -0
  378. package/lib/image/src/group.d.ts +57 -0
  379. package/lib/image/src/group.js +130 -127
  380. package/lib/image/src/image.d.ts +96 -0
  381. package/lib/image/src/image.js +243 -240
  382. package/lib/image/src/preview.d.ts +73 -0
  383. package/lib/image/src/preview.js +627 -624
  384. package/lib/image/src/util.d.ts +2 -0
  385. package/lib/image-group/index.d.ts +270 -0
  386. package/lib/image-preview/index.d.ts +352 -0
  387. package/lib/index.common.js +2 -0
  388. package/lib/index.d.ts +6 -0
  389. package/lib/index.js +2 -0
  390. package/lib/index.umd.js +47411 -46732
  391. package/lib/index.umd.min.js +3 -3
  392. package/lib/input/index.d.ts +1402 -0
  393. package/lib/input/src/input.d.ts +318 -0
  394. package/lib/input/src/input.js +2700 -2697
  395. package/lib/language/ar-EG.d.ts +908 -0
  396. package/lib/language/de-DE.d.ts +908 -0
  397. package/lib/language/en-US.d.ts +908 -0
  398. package/lib/language/es-ES.d.ts +908 -0
  399. package/lib/language/fr-FR.d.ts +908 -0
  400. package/lib/language/hu-HU.d.ts +908 -0
  401. package/lib/language/hy-AM.d.ts +908 -0
  402. package/lib/language/id-ID.d.ts +908 -0
  403. package/lib/language/it-IT.d.ts +908 -0
  404. package/lib/language/ja-JP.d.ts +908 -0
  405. package/lib/language/ko-KR.d.ts +908 -0
  406. package/lib/language/ms-MY.d.ts +908 -0
  407. package/lib/language/nb-NO.d.ts +908 -0
  408. package/lib/language/pt-BR.d.ts +908 -0
  409. package/lib/language/ru-RU.d.ts +908 -0
  410. package/lib/language/th-TH.d.ts +908 -0
  411. package/lib/language/ug-CN.d.ts +908 -0
  412. package/lib/language/uk-UA.d.ts +908 -0
  413. package/lib/language/uz-UZ.d.ts +908 -0
  414. package/lib/language/vi-VN.d.ts +908 -0
  415. package/lib/language/zh-CHT.d.ts +908 -0
  416. package/lib/language/zh-CN.d.ts +908 -0
  417. package/lib/language/zh-HK.d.ts +908 -0
  418. package/lib/language/zh-MO.d.ts +908 -0
  419. package/lib/language/zh-TC.d.ts +908 -0
  420. package/lib/language/zh-TW.d.ts +908 -0
  421. package/lib/layout-aside/index.d.ts +178 -0
  422. package/lib/layout-aside/src/layout-aside.d.ts +39 -0
  423. package/lib/layout-aside/src/layout-aside.js +138 -135
  424. package/lib/layout-body/index.d.ts +192 -0
  425. package/lib/layout-body/src/layout-body.d.ts +42 -0
  426. package/lib/layout-body/src/layout-body.js +145 -142
  427. package/lib/layout-container/index.d.ts +130 -0
  428. package/lib/layout-container/src/layout-container.d.ts +27 -0
  429. package/lib/layout-container/src/layout-container.js +71 -68
  430. package/lib/layout-footer/index.d.ts +56 -0
  431. package/lib/layout-footer/src/layout-footer.d.ts +10 -0
  432. package/lib/layout-footer/src/layout-footer.js +60 -57
  433. package/lib/layout-header/index.d.ts +48 -0
  434. package/lib/layout-header/src/layout-header.d.ts +8 -0
  435. package/lib/layout-header/src/layout-header.js +58 -55
  436. package/lib/link/index.d.ts +210 -0
  437. package/lib/link/src/link.d.ts +51 -0
  438. package/lib/link/src/link.js +131 -128
  439. package/lib/list/index.d.ts +538 -0
  440. package/lib/list/src/list.d.ts +110 -0
  441. package/lib/list/src/list.js +2173 -2170
  442. package/lib/list/src/store.d.ts +6 -0
  443. package/lib/list/src/util.d.ts +2 -0
  444. package/lib/loading/index.d.ts +257 -0
  445. package/lib/loading/src/loading.d.ts +56 -0
  446. package/lib/loading/src/loading.js +141 -138
  447. package/lib/locale/ar-EG.umd.d.ts +908 -0
  448. package/lib/locale/de-DE.umd.d.ts +908 -0
  449. package/lib/locale/en-US.umd.d.ts +908 -0
  450. package/lib/locale/es-ES.umd.d.ts +908 -0
  451. package/lib/locale/fr-FR.umd.d.ts +908 -0
  452. package/lib/locale/hu-HU.umd.d.ts +908 -0
  453. package/lib/locale/hy-AM.umd.d.ts +908 -0
  454. package/lib/locale/id-ID.umd.d.ts +908 -0
  455. package/lib/locale/it-IT.umd.d.ts +908 -0
  456. package/lib/locale/ja-JP.umd.d.ts +908 -0
  457. package/lib/locale/ko-KR.umd.d.ts +908 -0
  458. package/lib/locale/ms-MY.umd.d.ts +908 -0
  459. package/lib/locale/nb-NO.umd.d.ts +908 -0
  460. package/lib/locale/pt-BR.umd.d.ts +908 -0
  461. package/lib/locale/ru-RU.umd.d.ts +908 -0
  462. package/lib/locale/th-TH.umd.d.ts +908 -0
  463. package/lib/locale/ug-CN.umd.d.ts +908 -0
  464. package/lib/locale/uk-UA.umd.d.ts +908 -0
  465. package/lib/locale/uz-UZ.umd.d.ts +908 -0
  466. package/lib/locale/vi-VN.umd.d.ts +908 -0
  467. package/lib/locale/zh-CHT.umd.d.ts +908 -0
  468. package/lib/locale/zh-CN.umd.d.ts +908 -0
  469. package/lib/locale/zh-HK.umd.d.ts +908 -0
  470. package/lib/locale/zh-MO.umd.d.ts +908 -0
  471. package/lib/locale/zh-TC.umd.d.ts +908 -0
  472. package/lib/locale/zh-TW.umd.d.ts +908 -0
  473. package/lib/mention/index.d.ts +84 -0
  474. package/lib/mention/src/mention.d.ts +16 -0
  475. package/lib/mention/src/mention.js +49 -46
  476. package/lib/menu/index.d.ts +446 -0
  477. package/lib/menu/src/menu.d.ts +98 -0
  478. package/lib/menu/src/menu.js +799 -796
  479. package/lib/modal/index.d.ts +1934 -0
  480. package/lib/modal/src/modal.d.ts +457 -0
  481. package/lib/modal/src/modal.js +1519 -1527
  482. package/lib/modal/src/store.d.ts +2 -0
  483. package/lib/notice-bar/index.d.ts +232 -0
  484. package/lib/notice-bar/src/notice-bar.d.ts +49 -0
  485. package/lib/notice-bar/src/notice-bar.js +168 -165
  486. package/lib/number-input/index.d.ts +1208 -0
  487. package/lib/number-input/src/number-input.d.ts +268 -0
  488. package/lib/number-input/src/number-input.js +1094 -1091
  489. package/lib/number-input/src/util.d.ts +3 -0
  490. package/lib/optgroup/index.d.ts +150 -0
  491. package/lib/option/index.d.ts +158 -0
  492. package/lib/pager/index.d.ts +682 -0
  493. package/lib/pager/src/pager.d.ts +155 -0
  494. package/lib/pager/src/pager.js +767 -764
  495. package/lib/password-input/index.d.ts +572 -0
  496. package/lib/password-input/src/password-input.d.ts +122 -0
  497. package/lib/password-input/src/password-input.js +431 -428
  498. package/lib/print/index.d.ts +454 -0
  499. package/lib/print/src/page-break.d.ts +9 -0
  500. package/lib/print/src/page-break.js +63 -60
  501. package/lib/print/src/print.d.ts +113 -0
  502. package/lib/print/src/print.js +303 -300
  503. package/lib/print/src/util.d.ts +6 -0
  504. package/lib/print-page-break/index.d.ts +60 -0
  505. package/lib/pulldown/index.d.ts +356 -0
  506. package/lib/pulldown/src/pulldown.d.ts +99 -0
  507. package/lib/pulldown/src/pulldown.js +403 -400
  508. package/lib/radio/index.d.ts +292 -0
  509. package/lib/radio/src/button.d.ts +73 -0
  510. package/lib/radio/src/button.js +214 -211
  511. package/lib/radio/src/group.d.ts +66 -0
  512. package/lib/radio/src/group.js +195 -192
  513. package/lib/radio/src/radio.d.ts +71 -0
  514. package/lib/radio/src/radio.js +194 -191
  515. package/lib/radio-button/index.d.ts +304 -0
  516. package/lib/radio-group/index.d.ts +308 -0
  517. package/lib/rate/index.d.ts +200 -0
  518. package/lib/rate/src/rate.d.ts +41 -0
  519. package/lib/rate/src/rate.js +164 -161
  520. package/lib/result/index.d.ts +96 -0
  521. package/lib/result/src/result.d.ts +20 -0
  522. package/lib/result/src/result.js +116 -113
  523. package/lib/row/index.d.ts +192 -0
  524. package/lib/row/src/col.d.ts +26 -0
  525. package/lib/row/src/col.js +133 -130
  526. package/lib/row/src/row.d.ts +40 -0
  527. package/lib/row/src/row.js +111 -108
  528. package/lib/scrollbar/index.d.ts +660 -0
  529. package/lib/scrollbar/src/scrollbar.d.ts +167 -0
  530. package/lib/scrollbar/src/scrollbar.js +518 -515
  531. package/lib/segmented/index.d.ts +210 -0
  532. package/lib/segmented/src/segmented.d.ts +44 -0
  533. package/lib/segmented/src/segmented.js +240 -237
  534. package/lib/select/index.d.ts +1120 -0
  535. package/lib/select/src/optgroup.d.ts +31 -0
  536. package/lib/select/src/optgroup.js +44 -41
  537. package/lib/select/src/option-info.d.ts +5 -0
  538. package/lib/select/src/option.d.ts +33 -0
  539. package/lib/select/src/option.js +39 -36
  540. package/lib/select/src/select.d.ts +303 -0
  541. package/lib/select/src/select.js +1915 -1897
  542. package/lib/select/src/util.d.ts +10 -0
  543. package/lib/slider/index.d.ts +530 -0
  544. package/lib/slider/src/slider.d.ts +115 -0
  545. package/lib/slider/src/slider.js +419 -416
  546. package/lib/space/index.d.ts +548 -0
  547. package/lib/space/src/space.d.ts +126 -0
  548. package/lib/space/src/space.js +190 -187
  549. package/lib/split/index.d.ts +348 -0
  550. package/lib/split-pane/index.d.ts +230 -0
  551. package/lib/splitter/index.d.ts +348 -0
  552. package/lib/splitter/src/splitter-panel.d.ts +51 -0
  553. package/lib/splitter/src/splitter-panel.js +146 -143
  554. package/lib/splitter/src/splitter.d.ts +73 -0
  555. package/lib/splitter/src/splitter.js +917 -914
  556. package/lib/splitter/src/util.d.ts +3 -0
  557. package/lib/splitter-panel/index.d.ts +230 -0
  558. package/lib/step-item/index.d.ts +76 -0
  559. package/lib/step-item/index.js +47 -0
  560. package/lib/steps/index.d.ts +314 -0
  561. package/lib/steps/src/step-info.d.ts +6 -0
  562. package/lib/steps/src/step-info.js +49 -0
  563. package/lib/steps/src/step-item.d.ts +14 -0
  564. package/lib/steps/src/step-item.js +59 -0
  565. package/lib/steps/src/steps.d.ts +69 -0
  566. package/lib/steps/src/steps.js +298 -46
  567. package/lib/steps/src/util.d.ts +7 -0
  568. package/lib/steps/src/util.js +74 -0
  569. package/lib/steps/style/style.css +297 -0
  570. package/lib/steps/style/style.mini.css +1 -0
  571. package/lib/style.css +307 -1
  572. package/lib/style.mini.css +1 -1
  573. package/lib/switch/index.d.ts +332 -0
  574. package/lib/switch/src/switch.d.ts +71 -0
  575. package/lib/switch/src/switch.js +228 -225
  576. package/lib/tab-pane/index.d.ts +96 -0
  577. package/lib/table-select/index.d.ts +528 -0
  578. package/lib/table-select/src/table-select.d.ts +122 -0
  579. package/lib/table-select/src/table-select.js +865 -862
  580. package/lib/table-transfer/index.d.ts +100 -0
  581. package/lib/table-transfer/src/table-transfer.d.ts +20 -0
  582. package/lib/table-transfer/src/table-transfer.js +61 -58
  583. package/lib/tabs/index.d.ts +488 -0
  584. package/lib/tabs/src/tab-pane.d.ts +20 -0
  585. package/lib/tabs/src/tab-pane.js +102 -99
  586. package/lib/tabs/src/tabs.d.ts +105 -0
  587. package/lib/tabs/src/tabs.js +936 -933
  588. package/lib/tabs/src/util.d.ts +3 -0
  589. package/lib/tag/index.d.ts +332 -0
  590. package/lib/tag/src/tag.d.ts +71 -0
  591. package/lib/tag/src/tag.js +163 -160
  592. package/lib/text/index.d.ts +242 -0
  593. package/lib/text/src/text.d.ts +48 -0
  594. package/lib/text/src/text.js +232 -229
  595. package/lib/text-ellipsis/index.d.ts +218 -0
  596. package/lib/text-ellipsis/src/text-ellipsis.d.ts +53 -0
  597. package/lib/text-ellipsis/src/text-ellipsis.js +252 -249
  598. package/lib/textarea/index.d.ts +738 -0
  599. package/lib/textarea/src/textarea.d.ts +170 -0
  600. package/lib/textarea/src/textarea.js +434 -431
  601. package/lib/timeline/index.d.ts +176 -0
  602. package/lib/timeline/src/timeline-info.d.ts +6 -0
  603. package/lib/timeline/src/timeline-item.d.ts +12 -0
  604. package/lib/timeline/src/timeline.d.ts +38 -0
  605. package/lib/timeline/src/timeline.js +74 -36
  606. package/lib/timeline/src/util.d.ts +7 -0
  607. package/lib/timeline/src/util.js +7 -4
  608. package/lib/timeline-item/index.d.ts +68 -0
  609. package/lib/tip/index.d.ts +275 -0
  610. package/lib/tip/src/tip.d.ts +46 -0
  611. package/lib/tip/src/tip.js +117 -114
  612. package/lib/tooltip/index.d.ts +890 -0
  613. package/lib/tooltip/src/tooltip.d.ts +202 -0
  614. package/lib/tooltip/src/tooltip.js +552 -549
  615. package/lib/tour/index.d.ts +84 -0
  616. package/lib/tour/src/tour.d.ts +16 -0
  617. package/lib/tour/src/tour.js +49 -46
  618. package/lib/transfer/index.d.ts +100 -0
  619. package/lib/transfer/src/transfer.d.ts +20 -0
  620. package/lib/transfer/src/transfer.js +95 -92
  621. package/lib/tree/index.d.ts +1402 -0
  622. package/lib/tree/src/store.d.ts +6 -0
  623. package/lib/tree/src/tree.d.ts +313 -0
  624. package/lib/tree/src/tree.js +3379 -3376
  625. package/lib/tree/src/util.d.ts +3 -0
  626. package/lib/tree-select/index.d.ts +986 -0
  627. package/lib/tree-select/src/tree-select.d.ts +255 -0
  628. package/lib/tree-select/src/tree-select.js +969 -966
  629. package/lib/ui/index.d.ts +6 -0
  630. package/lib/ui/index.js +8 -2
  631. package/lib/ui/src/anime.d.ts +10 -0
  632. package/lib/ui/src/comp.d.ts +2 -0
  633. package/lib/ui/src/dom.d.ts +70 -0
  634. package/lib/ui/src/log.d.ts +6 -0
  635. package/lib/ui/src/log.js +1 -1
  636. package/lib/ui/src/utils.d.ts +23 -0
  637. package/lib/ui/src/vn.d.ts +6 -0
  638. package/lib/upload/index.d.ts +1778 -0
  639. package/lib/upload/src/upload.d.ts +413 -0
  640. package/lib/upload/src/upload.js +1788 -1785
  641. package/lib/upload/src/util.d.ts +16 -0
  642. package/lib/vxe-alert/index.d.ts +3 -0
  643. package/lib/vxe-anchor/index.d.ts +3 -0
  644. package/lib/vxe-anchor-link/index.d.ts +3 -0
  645. package/lib/vxe-avatar/index.d.ts +3 -0
  646. package/lib/vxe-backtop/index.d.ts +3 -0
  647. package/lib/vxe-badge/index.d.ts +3 -0
  648. package/lib/vxe-breadcrumb/index.d.ts +3 -0
  649. package/lib/vxe-breadcrumb-item/index.d.ts +3 -0
  650. package/lib/vxe-button/index.d.ts +3 -0
  651. package/lib/vxe-button-group/index.d.ts +3 -0
  652. package/lib/vxe-calendar/index.d.ts +3 -0
  653. package/lib/vxe-card/index.d.ts +3 -0
  654. package/lib/vxe-carousel/index.d.ts +3 -0
  655. package/lib/vxe-carousel-item/index.d.ts +3 -0
  656. package/lib/vxe-cascader/index.d.ts +3 -0
  657. package/lib/vxe-checkbox/index.d.ts +3 -0
  658. package/lib/vxe-checkbox-button/index.d.ts +3 -0
  659. package/lib/vxe-checkbox-group/index.d.ts +3 -0
  660. package/lib/vxe-col/index.d.ts +3 -0
  661. package/lib/vxe-collapse/index.d.ts +3 -0
  662. package/lib/vxe-collapse-pane/index.d.ts +3 -0
  663. package/lib/vxe-color-picker/index.d.ts +3 -0
  664. package/lib/vxe-context-menu/index.d.ts +3 -0
  665. package/lib/vxe-countdown/index.d.ts +3 -0
  666. package/lib/vxe-date-panel/index.d.ts +3 -0
  667. package/lib/vxe-date-picker/index.d.ts +3 -0
  668. package/lib/vxe-date-range-picker/index.d.ts +3 -0
  669. package/lib/vxe-divider/index.d.ts +3 -0
  670. package/lib/vxe-drawer/index.d.ts +3 -0
  671. package/lib/vxe-empty/index.d.ts +3 -0
  672. package/lib/vxe-form/index.d.ts +3 -0
  673. package/lib/vxe-form-gather/index.d.ts +3 -0
  674. package/lib/vxe-form-group/index.d.ts +3 -0
  675. package/lib/vxe-form-item/index.d.ts +3 -0
  676. package/lib/vxe-icon/index.d.ts +3 -0
  677. package/lib/vxe-icon/style/style.css +1 -1
  678. package/lib/vxe-icon/style/style.mini.css +1 -1
  679. package/lib/vxe-icon-picker/index.d.ts +3 -0
  680. package/lib/vxe-image/index.d.ts +3 -0
  681. package/lib/vxe-image-group/index.d.ts +3 -0
  682. package/lib/vxe-image-preview/index.d.ts +3 -0
  683. package/lib/vxe-input/index.d.ts +3 -0
  684. package/lib/vxe-layout-aside/index.d.ts +3 -0
  685. package/lib/vxe-layout-body/index.d.ts +3 -0
  686. package/lib/vxe-layout-container/index.d.ts +3 -0
  687. package/lib/vxe-layout-footer/index.d.ts +3 -0
  688. package/lib/vxe-layout-header/index.d.ts +3 -0
  689. package/lib/vxe-link/index.d.ts +3 -0
  690. package/lib/vxe-list/index.d.ts +3 -0
  691. package/lib/vxe-loading/index.d.ts +3 -0
  692. package/lib/vxe-mention/index.d.ts +3 -0
  693. package/lib/vxe-menu/index.d.ts +3 -0
  694. package/lib/vxe-modal/index.d.ts +3 -0
  695. package/lib/vxe-notice-bar/index.d.ts +3 -0
  696. package/lib/vxe-number-input/index.d.ts +3 -0
  697. package/lib/vxe-optgroup/index.d.ts +3 -0
  698. package/lib/vxe-option/index.d.ts +3 -0
  699. package/lib/vxe-pager/index.d.ts +3 -0
  700. package/lib/vxe-password-input/index.d.ts +3 -0
  701. package/lib/vxe-print/index.d.ts +3 -0
  702. package/lib/vxe-print-page-break/index.d.ts +3 -0
  703. package/lib/vxe-pulldown/index.d.ts +3 -0
  704. package/lib/vxe-radio/index.d.ts +3 -0
  705. package/lib/vxe-radio-button/index.d.ts +3 -0
  706. package/lib/vxe-radio-group/index.d.ts +3 -0
  707. package/lib/vxe-rate/index.d.ts +3 -0
  708. package/lib/vxe-result/index.d.ts +3 -0
  709. package/lib/vxe-row/index.d.ts +3 -0
  710. package/lib/vxe-scrollbar/index.d.ts +3 -0
  711. package/lib/vxe-segmented/index.d.ts +3 -0
  712. package/lib/vxe-select/index.d.ts +3 -0
  713. package/lib/vxe-slider/index.d.ts +3 -0
  714. package/lib/vxe-space/index.d.ts +3 -0
  715. package/lib/vxe-split/index.d.ts +3 -0
  716. package/lib/vxe-split-pane/index.d.ts +3 -0
  717. package/lib/vxe-splitter/index.d.ts +3 -0
  718. package/lib/vxe-splitter-panel/index.d.ts +3 -0
  719. package/lib/vxe-steps/index.d.ts +3 -0
  720. package/lib/vxe-steps/style/style.css +297 -0
  721. package/lib/vxe-steps/style/style.mini.css +1 -0
  722. package/lib/vxe-switch/index.d.ts +3 -0
  723. package/lib/vxe-tab-pane/index.d.ts +3 -0
  724. package/lib/vxe-table-select/index.d.ts +3 -0
  725. package/lib/vxe-table-transfer/index.d.ts +3 -0
  726. package/lib/vxe-tabs/index.d.ts +3 -0
  727. package/lib/vxe-tag/index.d.ts +3 -0
  728. package/lib/vxe-text/index.d.ts +3 -0
  729. package/lib/vxe-text-ellipsis/index.d.ts +3 -0
  730. package/lib/vxe-textarea/index.d.ts +3 -0
  731. package/lib/vxe-timeline/index.d.ts +3 -0
  732. package/lib/vxe-timeline-item/index.d.ts +3 -0
  733. package/lib/vxe-tip/index.d.ts +3 -0
  734. package/lib/vxe-tooltip/index.d.ts +3 -0
  735. package/lib/vxe-tour/index.d.ts +3 -0
  736. package/lib/vxe-transfer/index.d.ts +3 -0
  737. package/lib/vxe-tree/index.d.ts +3 -0
  738. package/lib/vxe-tree-select/index.d.ts +3 -0
  739. package/lib/vxe-ui/index.d.ts +3 -0
  740. package/lib/vxe-upload/index.d.ts +3 -0
  741. package/lib/vxe-watermark/index.d.ts +3 -0
  742. package/lib/watermark/index.d.ts +183 -0
  743. package/lib/watermark/src/util.d.ts +9 -0
  744. package/lib/watermark/src/watermark.d.ts +39 -0
  745. package/lib/watermark/src/watermark.js +158 -155
  746. package/package.json +9 -9
  747. package/packages/alert/src/alert.ts +2 -2
  748. package/packages/anchor/src/anchor-link.ts +2 -2
  749. package/packages/anchor/src/anchor.ts +2 -2
  750. package/packages/avatar/src/avatar.ts +2 -2
  751. package/packages/backtop/src/backtop.ts +2 -2
  752. package/packages/badge/src/badge.ts +2 -2
  753. package/packages/breadcrumb/src/breadcrumb-item.ts +2 -2
  754. package/packages/breadcrumb/src/breadcrumb.ts +2 -2
  755. package/packages/button/src/button-group.ts +2 -2
  756. package/packages/calendar/src/calendar.ts +2 -2
  757. package/packages/card/src/card.ts +2 -2
  758. package/packages/carousel/src/carousel-item.ts +2 -2
  759. package/packages/carousel/src/carousel.ts +2 -2
  760. package/packages/cascader/src/cascader.ts +2 -2
  761. package/packages/checkbox/src/button.ts +3 -15
  762. package/packages/checkbox/src/checkbox.ts +2 -2
  763. package/packages/checkbox/src/group.ts +2 -2
  764. package/packages/collapse/src/collapse-pane.ts +2 -2
  765. package/packages/collapse/src/collapse.ts +2 -2
  766. package/packages/color-picker/src/color-picker.ts +2 -2
  767. package/packages/components.ts +3 -0
  768. package/packages/context-menu/src/context-menu.ts +3 -16
  769. package/packages/countdown/src/countdown.ts +2 -2
  770. package/packages/date-panel/src/date-panel.ts +2 -2
  771. package/packages/date-picker/src/date-picker.ts +2 -2
  772. package/packages/date-range-picker/src/date-range-picker.ts +2 -2
  773. package/packages/divider/src/divider.ts +2 -2
  774. package/packages/drawer/src/drawer.ts +2 -2
  775. package/packages/empty/src/empty.ts +2 -2
  776. package/packages/form/src/form-group.ts +2 -2
  777. package/packages/form/src/form-item.ts +2 -2
  778. package/packages/form/src/form.ts +2 -2
  779. package/packages/icon/src/icon.ts +2 -2
  780. package/packages/icon-picker/src/icon-picker.ts +2 -2
  781. package/packages/image/src/group.ts +2 -2
  782. package/packages/image/src/image.ts +2 -2
  783. package/packages/image/src/preview.ts +3 -16
  784. package/packages/index.ts +2 -2
  785. package/packages/input/src/input.ts +2 -2
  786. package/packages/layout-aside/src/layout-aside.ts +2 -2
  787. package/packages/layout-body/src/layout-body.ts +2 -2
  788. package/packages/layout-container/src/layout-container.ts +3 -14
  789. package/packages/layout-footer/src/layout-footer.ts +2 -2
  790. package/packages/layout-header/src/layout-header.ts +2 -2
  791. package/packages/link/src/link.ts +2 -2
  792. package/packages/list/src/list.ts +2 -2
  793. package/packages/loading/src/loading.ts +2 -2
  794. package/packages/mention/src/mention.ts +2 -2
  795. package/packages/menu/src/menu.ts +2 -2
  796. package/packages/modal/src/modal.ts +5 -20
  797. package/packages/notice-bar/src/notice-bar.ts +2 -2
  798. package/packages/number-input/src/number-input.ts +3 -17
  799. package/packages/pager/src/pager.ts +2 -2
  800. package/packages/password-input/src/password-input.ts +2 -2
  801. package/packages/print/src/page-break.ts +2 -2
  802. package/packages/print/src/print.ts +2 -2
  803. package/packages/pulldown/src/pulldown.ts +2 -2
  804. package/packages/radio/src/button.ts +3 -16
  805. package/packages/radio/src/group.ts +3 -17
  806. package/packages/radio/src/radio.ts +2 -2
  807. package/packages/rate/src/rate.ts +2 -2
  808. package/packages/result/src/result.ts +2 -2
  809. package/packages/row/src/col.ts +2 -2
  810. package/packages/row/src/row.ts +2 -2
  811. package/packages/scrollbar/src/scrollbar.ts +3 -4
  812. package/packages/segmented/src/segmented.ts +2 -2
  813. package/packages/select/src/optgroup.ts +2 -2
  814. package/packages/select/src/option.ts +2 -2
  815. package/packages/select/src/select.ts +33 -19
  816. package/packages/slider/src/slider.ts +2 -2
  817. package/packages/space/src/space.ts +2 -2
  818. package/packages/splitter/src/splitter-panel.ts +2 -2
  819. package/packages/splitter/src/splitter.ts +2 -2
  820. package/packages/step-item/index.ts +16 -0
  821. package/packages/steps/src/step-info.ts +18 -0
  822. package/packages/steps/src/step-item.ts +41 -0
  823. package/packages/steps/src/steps.ts +273 -13
  824. package/packages/steps/src/util.ts +44 -0
  825. package/packages/switch/src/switch.ts +2 -2
  826. package/packages/table-select/src/table-select.ts +2 -2
  827. package/packages/table-transfer/src/table-transfer.ts +3 -15
  828. package/packages/tabs/src/tab-pane.ts +2 -2
  829. package/packages/tabs/src/tabs.ts +2 -2
  830. package/packages/tag/src/tag.ts +2 -2
  831. package/packages/text/src/text.ts +2 -2
  832. package/packages/text-ellipsis/src/text-ellipsis.ts +2 -2
  833. package/packages/textarea/src/textarea.ts +2 -2
  834. package/packages/timeline/src/timeline-info.ts +17 -17
  835. package/packages/timeline/src/timeline.ts +93 -49
  836. package/packages/timeline/src/util.ts +44 -41
  837. package/packages/tip/src/tip.ts +2 -2
  838. package/packages/tooltip/src/tooltip.ts +2 -2
  839. package/packages/tour/src/tour.ts +2 -2
  840. package/packages/transfer/src/transfer.ts +2 -2
  841. package/packages/tree/src/tree.ts +2 -2
  842. package/packages/tree-select/src/tree-select.ts +2 -2
  843. package/packages/ui/index.ts +8 -1
  844. package/packages/upload/src/upload.ts +2 -2
  845. package/packages/watermark/src/watermark.ts +2 -2
  846. package/styles/all.scss +1 -0
  847. package/styles/components/step-item.scss +0 -0
  848. package/styles/components/steps.scss +354 -0
  849. package/styles/theme/base.scss +9 -0
  850. package/types/all.d.ts +3 -0
  851. package/types/components/gantt.d.ts +1 -3
  852. package/types/components/select.d.ts +1 -13
  853. package/types/components/step-item.d.ts +72 -0
  854. package/types/components/steps.d.ts +67 -8
  855. package/types/components/table.d.ts +7 -66
  856. package/types/handles/form-design.d.ts +1 -4
  857. package/types/ui/global-config.d.ts +2 -0
  858. package/types/ui/global-icon.d.ts +7 -0
  859. /package/dist/{iconfont.1793330162657.ttf → iconfont.1793683457630.ttf} +0 -0
  860. /package/dist/{iconfont.1793330162657.woff → iconfont.1793683457630.woff} +0 -0
  861. /package/dist/{iconfont.1793330162657.woff2 → iconfont.1793683457630.woff2} +0 -0
  862. /package/es/icon/{iconfont.1793330162657.ttf → iconfont.1793683457630.ttf} +0 -0
  863. /package/es/icon/{iconfont.1793330162657.woff → iconfont.1793683457630.woff} +0 -0
  864. /package/es/icon/{iconfont.1793330162657.woff2 → iconfont.1793683457630.woff2} +0 -0
  865. /package/es/{iconfont.1793330162657.ttf → iconfont.1793683457630.ttf} +0 -0
  866. /package/es/{iconfont.1793330162657.woff → iconfont.1793683457630.woff} +0 -0
  867. /package/es/{iconfont.1793330162657.woff2 → iconfont.1793683457630.woff2} +0 -0
  868. /package/es/vxe-icon/{iconfont.1793330162657.ttf → iconfont.1793683457630.ttf} +0 -0
  869. /package/es/vxe-icon/{iconfont.1793330162657.woff → iconfont.1793683457630.woff} +0 -0
  870. /package/es/vxe-icon/{iconfont.1793330162657.woff2 → iconfont.1793683457630.woff2} +0 -0
  871. /package/lib/icon/style/{iconfont.1793330162657.ttf → iconfont.1793683457630.ttf} +0 -0
  872. /package/lib/icon/style/{iconfont.1793330162657.woff → iconfont.1793683457630.woff} +0 -0
  873. /package/lib/icon/style/{iconfont.1793330162657.woff2 → iconfont.1793683457630.woff2} +0 -0
  874. /package/lib/{iconfont.1793330162657.ttf → iconfont.1793683457630.ttf} +0 -0
  875. /package/lib/{iconfont.1793330162657.woff → iconfont.1793683457630.woff} +0 -0
  876. /package/lib/{iconfont.1793330162657.woff2 → iconfont.1793683457630.woff2} +0 -0
  877. /package/lib/vxe-icon/style/{iconfont.1793330162657.ttf → iconfont.1793683457630.ttf} +0 -0
  878. /package/lib/vxe-icon/style/{iconfont.1793330162657.woff → iconfont.1793683457630.woff} +0 -0
  879. /package/lib/vxe-icon/style/{iconfont.1793330162657.woff2 → iconfont.1793683457630.woff2} +0 -0
@@ -66,1530 +66,1533 @@ function createInternalData() {
66
66
  // hpTimeout: undefined
67
67
  };
68
68
  }
69
- var date_range_picker_default = (0, import_comp.defineVxeComponent)({
70
- name: "VxeDateRangePicker",
71
- props: {
72
- modelValue: [String, Number, Date, Array],
73
- startValue: [String, Number, Date],
74
- endValue: [String, Number, Date],
75
- immediate: {
76
- type: Boolean,
77
- default: true
78
- },
79
- width: [Number, String],
80
- name: String,
81
- type: {
82
- type: String,
83
- default: "date"
84
- },
85
- clearable: {
86
- type: Boolean,
87
- default: () => getConfig().dateRangePicker.clearable
88
- },
89
- linkedPanels: {
90
- type: Boolean,
91
- default: () => getConfig().dateRangePicker.linkedPanels
92
- },
93
- readonly: {
94
- type: Boolean,
95
- default: null
96
- },
97
- disabled: {
98
- type: Boolean,
99
- default: null
100
- },
101
- placeholder: String,
102
- autoComplete: {
103
- type: String,
104
- default: "off"
105
- },
106
- form: String,
107
- className: String,
108
- inputClassName: {
109
- type: String,
110
- default: () => getConfig().dateRangePicker.inputClassName
111
- },
112
- zIndex: Number,
113
- size: {
114
- type: String,
115
- default: () => getConfig().dateRangePicker.size || getConfig().size
116
- },
117
- // startDate: {
118
- // type: [String, Number, Date] as PropType<VxeDateRangePickerPropTypes.StartDate>,
119
- // default: () => getConfig().dateRangePicker.startDate
120
- // },
121
- // endDate: {
122
- // type: [String, Number, Date] as PropType<VxeDateRangePickerPropTypes.EndDate>,
123
- // default: () => getConfig().dateRangePicker.endDate
124
- // },
125
- minDate: [String, Number, Date],
126
- maxDate: [String, Number, Date],
127
- defaultDate: [String, Number, Date, Array],
128
- defaultTime: [String, Number, Date, Array],
129
- startDay: {
130
- type: [String, Number],
131
- default: () => getConfig().dateRangePicker.startDay
132
- },
133
- labelFormat: String,
134
- valueFormat: String,
135
- timeFormat: String,
136
- valueType: String,
137
- editable: {
138
- type: Boolean,
139
- default: true
140
- },
141
- festivalMethod: Function,
142
- disabledMethod: Function,
143
- separator: {
144
- type: [String, Number],
145
- default: () => getConfig().dateRangePicker.separator
146
- },
147
- // week
148
- selectDay: {
149
- type: [String, Number],
150
- default: () => getConfig().dateRangePicker.selectDay
151
- },
152
- showClearButton: {
153
- type: Boolean,
154
- default: () => getConfig().dateRangePicker.showClearButton
155
- },
156
- showConfirmButton: {
157
- type: Boolean,
158
- default: () => getConfig().dateRangePicker.showConfirmButton
159
- },
160
- autoClose: {
161
- type: Boolean,
162
- default: () => getConfig().dateRangePicker.autoClose
163
- },
164
- prefixIcon: String,
165
- suffixIcon: String,
166
- /**
167
- * 已废弃,请使用 popupConfig.placement
168
- * @deprecated
169
- */
170
- placement: String,
171
- /**
172
- * 已废弃,请使用 popupConfig.transfer
173
- * @deprecated
174
- */
175
- transfer: {
176
- type: Boolean,
177
- default: null
69
+ var date_range_picker_default = (
70
+ /* define-vxe-component start */
71
+ (0, import_comp.defineVxeComponent)({
72
+ name: "VxeDateRangePicker",
73
+ props: {
74
+ modelValue: [String, Number, Date, Array],
75
+ startValue: [String, Number, Date],
76
+ endValue: [String, Number, Date],
77
+ immediate: {
78
+ type: Boolean,
79
+ default: true
80
+ },
81
+ width: [Number, String],
82
+ name: String,
83
+ type: {
84
+ type: String,
85
+ default: "date"
86
+ },
87
+ clearable: {
88
+ type: Boolean,
89
+ default: () => getConfig().dateRangePicker.clearable
90
+ },
91
+ linkedPanels: {
92
+ type: Boolean,
93
+ default: () => getConfig().dateRangePicker.linkedPanels
94
+ },
95
+ readonly: {
96
+ type: Boolean,
97
+ default: null
98
+ },
99
+ disabled: {
100
+ type: Boolean,
101
+ default: null
102
+ },
103
+ placeholder: String,
104
+ autoComplete: {
105
+ type: String,
106
+ default: "off"
107
+ },
108
+ form: String,
109
+ className: String,
110
+ inputClassName: {
111
+ type: String,
112
+ default: () => getConfig().dateRangePicker.inputClassName
113
+ },
114
+ zIndex: Number,
115
+ size: {
116
+ type: String,
117
+ default: () => getConfig().dateRangePicker.size || getConfig().size
118
+ },
119
+ // startDate: {
120
+ // type: [String, Number, Date] as PropType<VxeDateRangePickerPropTypes.StartDate>,
121
+ // default: () => getConfig().dateRangePicker.startDate
122
+ // },
123
+ // endDate: {
124
+ // type: [String, Number, Date] as PropType<VxeDateRangePickerPropTypes.EndDate>,
125
+ // default: () => getConfig().dateRangePicker.endDate
126
+ // },
127
+ minDate: [String, Number, Date],
128
+ maxDate: [String, Number, Date],
129
+ defaultDate: [String, Number, Date, Array],
130
+ defaultTime: [String, Number, Date, Array],
131
+ startDay: {
132
+ type: [String, Number],
133
+ default: () => getConfig().dateRangePicker.startDay
134
+ },
135
+ labelFormat: String,
136
+ valueFormat: String,
137
+ timeFormat: String,
138
+ valueType: String,
139
+ editable: {
140
+ type: Boolean,
141
+ default: true
142
+ },
143
+ festivalMethod: Function,
144
+ disabledMethod: Function,
145
+ separator: {
146
+ type: [String, Number],
147
+ default: () => getConfig().dateRangePicker.separator
148
+ },
149
+ // week
150
+ selectDay: {
151
+ type: [String, Number],
152
+ default: () => getConfig().dateRangePicker.selectDay
153
+ },
154
+ showClearButton: {
155
+ type: Boolean,
156
+ default: () => getConfig().dateRangePicker.showClearButton
157
+ },
158
+ showConfirmButton: {
159
+ type: Boolean,
160
+ default: () => getConfig().dateRangePicker.showConfirmButton
161
+ },
162
+ autoClose: {
163
+ type: Boolean,
164
+ default: () => getConfig().dateRangePicker.autoClose
165
+ },
166
+ prefixIcon: String,
167
+ suffixIcon: String,
168
+ /**
169
+ * 已废弃,请使用 popupConfig.placement
170
+ * @deprecated
171
+ */
172
+ placement: String,
173
+ /**
174
+ * 已废弃,请使用 popupConfig.transfer
175
+ * @deprecated
176
+ */
177
+ transfer: {
178
+ type: Boolean,
179
+ default: null
180
+ },
181
+ timeConfig: Object,
182
+ popupConfig: Object,
183
+ shortcutConfig: Object
178
184
  },
179
- timeConfig: Object,
180
- popupConfig: Object,
181
- shortcutConfig: Object
182
- },
183
- emits: ["update:modelValue", "update:startValue", "update:endValue", "input", "change", "keydown", "keyup", "click", "focus", "blur", "clear", "confirm", "prefix-click", "suffix-click", "date-prev", "date-today", "date-next", "shortcut-click"],
184
- setup(props, context) {
185
- const { slots, emit } = context;
186
- const $xeModal = (0, import_vue.inject)("$xeModal", null);
187
- const $xeDrawer = (0, import_vue.inject)("$xeDrawer", null);
188
- const $xeTable = (0, import_vue.inject)("$xeTable", null);
189
- const $xeCard = (0, import_vue.inject)("$xeCard", null);
190
- const $xeForm = (0, import_vue.inject)("$xeForm", null);
191
- const formItemInfo = (0, import_vue.inject)("xeFormItemInfo", null);
192
- const xID = import_xe_utils.default.uniqueId();
193
- const { computeSize } = useFns.useSize(props);
194
- const reactData = (0, import_vue.reactive)(createReactData());
195
- const internalData = createInternalData();
196
- const defaultFuncProps = {
197
- festivalMethod: getConfig().dateRangePicker.festivalMethod,
198
- disabledMethod: getConfig().dateRangePicker.disabledMethod
199
- };
200
- const refElem = (0, import_vue.ref)();
201
- const refInputTarget = (0, import_vue.ref)();
202
- const refInputPanel = (0, import_vue.ref)();
203
- const refPanelWrapper = (0, import_vue.ref)();
204
- const refStartDatePanel = (0, import_vue.ref)();
205
- const refEndDatePanel = (0, import_vue.ref)();
206
- const refMaps = {
207
- refElem,
208
- refInput: refInputTarget
209
- };
210
- const $xeDateRangePicker = {
211
- xID,
212
- props,
213
- context,
214
- reactData,
215
- internalData,
216
- getRefMaps: () => refMaps
217
- };
218
- let dateRangePickerMethods = {};
219
- const computeBtnTransfer = (0, import_vue.computed)(() => {
220
- const { transfer } = props;
221
- const popupOpts = computePopupOpts.value;
222
- if (import_xe_utils.default.isBoolean(popupOpts.transfer)) {
223
- return popupOpts.transfer;
224
- }
225
- if (transfer === null) {
226
- const globalTransfer = getConfig().dateRangePicker.transfer;
227
- if (import_xe_utils.default.isBoolean(globalTransfer)) {
228
- return globalTransfer;
185
+ emits: ["update:modelValue", "update:startValue", "update:endValue", "input", "change", "keydown", "keyup", "click", "focus", "blur", "clear", "confirm", "prefix-click", "suffix-click", "date-prev", "date-today", "date-next", "shortcut-click"],
186
+ setup(props, context) {
187
+ const { slots, emit } = context;
188
+ const $xeModal = (0, import_vue.inject)("$xeModal", null);
189
+ const $xeDrawer = (0, import_vue.inject)("$xeDrawer", null);
190
+ const $xeTable = (0, import_vue.inject)("$xeTable", null);
191
+ const $xeCard = (0, import_vue.inject)("$xeCard", null);
192
+ const $xeForm = (0, import_vue.inject)("$xeForm", null);
193
+ const formItemInfo = (0, import_vue.inject)("xeFormItemInfo", null);
194
+ const xID = import_xe_utils.default.uniqueId();
195
+ const { computeSize } = useFns.useSize(props);
196
+ const reactData = (0, import_vue.reactive)(createReactData());
197
+ const internalData = createInternalData();
198
+ const defaultFuncProps = {
199
+ festivalMethod: getConfig().dateRangePicker.festivalMethod,
200
+ disabledMethod: getConfig().dateRangePicker.disabledMethod
201
+ };
202
+ const refElem = (0, import_vue.ref)();
203
+ const refInputTarget = (0, import_vue.ref)();
204
+ const refInputPanel = (0, import_vue.ref)();
205
+ const refPanelWrapper = (0, import_vue.ref)();
206
+ const refStartDatePanel = (0, import_vue.ref)();
207
+ const refEndDatePanel = (0, import_vue.ref)();
208
+ const refMaps = {
209
+ refElem,
210
+ refInput: refInputTarget
211
+ };
212
+ const $xeDateRangePicker = {
213
+ xID,
214
+ props,
215
+ context,
216
+ reactData,
217
+ internalData,
218
+ getRefMaps: () => refMaps
219
+ };
220
+ let dateRangePickerMethods = {};
221
+ const computeBtnTransfer = (0, import_vue.computed)(() => {
222
+ const { transfer } = props;
223
+ const popupOpts = computePopupOpts.value;
224
+ if (import_xe_utils.default.isBoolean(popupOpts.transfer)) {
225
+ return popupOpts.transfer;
229
226
  }
230
- if ($xeTable || $xeModal || $xeDrawer || $xeCard || $xeForm) {
231
- return true;
227
+ if (transfer === null) {
228
+ const globalTransfer = getConfig().dateRangePicker.transfer;
229
+ if (import_xe_utils.default.isBoolean(globalTransfer)) {
230
+ return globalTransfer;
231
+ }
232
+ if ($xeTable || $xeModal || $xeDrawer || $xeCard || $xeForm) {
233
+ return true;
234
+ }
232
235
  }
233
- }
234
- return transfer;
235
- });
236
- const computeFormReadonly = (0, import_vue.computed)(() => {
237
- const { readonly } = props;
238
- if (readonly === null) {
239
- if ($xeForm) {
240
- return $xeForm.props.readonly;
236
+ return transfer;
237
+ });
238
+ const computeFormReadonly = (0, import_vue.computed)(() => {
239
+ const { readonly } = props;
240
+ if (readonly === null) {
241
+ if ($xeForm) {
242
+ return $xeForm.props.readonly;
243
+ }
244
+ return false;
241
245
  }
242
- return false;
243
- }
244
- return readonly;
245
- });
246
- const computeIsDisabled = (0, import_vue.computed)(() => {
247
- const { disabled } = props;
248
- if (disabled === null) {
249
- if ($xeForm) {
250
- return $xeForm.props.disabled;
246
+ return readonly;
247
+ });
248
+ const computeIsDisabled = (0, import_vue.computed)(() => {
249
+ const { disabled } = props;
250
+ if (disabled === null) {
251
+ if ($xeForm) {
252
+ return $xeForm.props.disabled;
253
+ }
254
+ return false;
251
255
  }
252
- return false;
253
- }
254
- return disabled;
255
- });
256
- const computeDefaultDates = (0, import_vue.computed)(() => {
257
- const { defaultDate } = props;
258
- if (defaultDate) {
259
- if (import_xe_utils.default.isArray(defaultDate)) {
260
- return defaultDate;
256
+ return disabled;
257
+ });
258
+ const computeDefaultDates = (0, import_vue.computed)(() => {
259
+ const { defaultDate } = props;
260
+ if (defaultDate) {
261
+ if (import_xe_utils.default.isArray(defaultDate)) {
262
+ return defaultDate;
263
+ }
264
+ if (`${defaultDate}`.indexOf(",") > -1) {
265
+ return `${defaultDate}`.split(",");
266
+ }
267
+ return [defaultDate, defaultDate];
261
268
  }
262
- if (`${defaultDate}`.indexOf(",") > -1) {
263
- return `${defaultDate}`.split(",");
269
+ return [];
270
+ });
271
+ const computeDefaultTimes = (0, import_vue.computed)(() => {
272
+ const { defaultTime } = props;
273
+ if (defaultTime) {
274
+ if (import_xe_utils.default.isArray(defaultTime)) {
275
+ return defaultTime;
276
+ }
277
+ if (`${defaultTime}`.indexOf(",") > -1) {
278
+ return `${defaultTime}`.split(",");
279
+ }
280
+ return [defaultTime, defaultTime];
264
281
  }
265
- return [defaultDate, defaultDate];
266
- }
267
- return [];
268
- });
269
- const computeDefaultTimes = (0, import_vue.computed)(() => {
270
- const { defaultTime } = props;
271
- if (defaultTime) {
272
- if (import_xe_utils.default.isArray(defaultTime)) {
273
- return defaultTime;
282
+ return [];
283
+ });
284
+ const computeCurrStyle = (0, import_vue.computed)(() => {
285
+ const { width } = props;
286
+ const stys = {};
287
+ if (width) {
288
+ stys.width = (0, import_dom.toCssUnit)(width);
274
289
  }
275
- if (`${defaultTime}`.indexOf(",") > -1) {
276
- return `${defaultTime}`.split(",");
290
+ return stys;
291
+ });
292
+ const computeMVal = (0, import_vue.computed)(() => {
293
+ const { startValue, endValue } = props;
294
+ return `${startValue || ""}${endValue || ""}`;
295
+ });
296
+ const computeIsTimeType = (0, import_vue.computed)(() => {
297
+ const { type } = props;
298
+ return type === "time";
299
+ });
300
+ const computeIsTimeOrDateTimeType = (0, import_vue.computed)(() => {
301
+ const { type } = props;
302
+ const isTimeType = computeIsTimeType.value;
303
+ return isTimeType || type === "datetime";
304
+ });
305
+ const computeIsDatePickerType = (0, import_vue.computed)(() => {
306
+ return ["date", "week", "month", "quarter", "year"].indexOf(props.type) > -1;
307
+ });
308
+ const computeIsClearable = (0, import_vue.computed)(() => {
309
+ return props.clearable;
310
+ });
311
+ const computeInpPlaceholder = (0, import_vue.computed)(() => {
312
+ const { placeholder } = props;
313
+ if (placeholder) {
314
+ return (0, import_utils.getFuncText)(placeholder);
277
315
  }
278
- return [defaultTime, defaultTime];
279
- }
280
- return [];
281
- });
282
- const computeCurrStyle = (0, import_vue.computed)(() => {
283
- const { width } = props;
284
- const stys = {};
285
- if (width) {
286
- stys.width = (0, import_dom.toCssUnit)(width);
287
- }
288
- return stys;
289
- });
290
- const computeMVal = (0, import_vue.computed)(() => {
291
- const { startValue, endValue } = props;
292
- return `${startValue || ""}${endValue || ""}`;
293
- });
294
- const computeIsTimeType = (0, import_vue.computed)(() => {
295
- const { type } = props;
296
- return type === "time";
297
- });
298
- const computeIsTimeOrDateTimeType = (0, import_vue.computed)(() => {
299
- const { type } = props;
300
- const isTimeType = computeIsTimeType.value;
301
- return isTimeType || type === "datetime";
302
- });
303
- const computeIsDatePickerType = (0, import_vue.computed)(() => {
304
- return ["date", "week", "month", "quarter", "year"].indexOf(props.type) > -1;
305
- });
306
- const computeIsClearable = (0, import_vue.computed)(() => {
307
- return props.clearable;
308
- });
309
- const computeInpPlaceholder = (0, import_vue.computed)(() => {
310
- const { placeholder } = props;
311
- if (placeholder) {
312
- return (0, import_utils.getFuncText)(placeholder);
313
- }
314
- const globalPlaceholder = getConfig().dateRangePicker.placeholder;
315
- if (globalPlaceholder) {
316
- return (0, import_utils.getFuncText)(globalPlaceholder);
317
- }
318
- return getI18n("vxe.dateRangePicker.pleaseRange");
319
- });
320
- const computeInpImmediate = (0, import_vue.computed)(() => {
321
- const { immediate } = props;
322
- return immediate;
323
- });
324
- const computeTimeOpts = (0, import_vue.computed)(() => {
325
- return Object.assign({}, getConfig().dateRangePicker.timeConfig, props.timeConfig);
326
- });
327
- const computePopupOpts = (0, import_vue.computed)(() => {
328
- return Object.assign({}, getConfig().dateRangePicker.popupConfig, props.popupConfig);
329
- });
330
- const computeShortcutOpts = (0, import_vue.computed)(() => {
331
- return Object.assign({}, getConfig().dateRangePicker.shortcutConfig, props.shortcutConfig);
332
- });
333
- const computeShortcutList = (0, import_vue.computed)(() => {
334
- const shortcutOpts = computeShortcutOpts.value;
335
- const { options } = shortcutOpts;
336
- if (options) {
337
- return options.map((option, index) => {
338
- return Object.assign(
339
- {
340
- name: `${option.name || option.code || index}`
341
- },
342
- option
343
- );
344
- });
345
- }
346
- return [];
347
- });
348
- const computeDateLabelFormat = (0, import_vue.computed)(() => {
349
- const { labelFormat } = props;
350
- return labelFormat || getI18n(`vxe.input.date.labelFormat.${props.type}`);
351
- });
352
- const computeDateValueFormat = (0, import_vue.computed)(() => {
353
- const { type, valueFormat } = props;
354
- return (0, import_util.handleValueFormat)(type, valueFormat);
355
- });
356
- const computeFirstDayOfWeek = (0, import_vue.computed)(() => {
357
- const { startDay } = props;
358
- return import_xe_utils.default.toNumber(startDay);
359
- });
360
- const computePanelLabelObj = (0, import_vue.computed)(() => {
361
- const { selectStValue, selectEdValue } = reactData;
362
- const vals = selectStValue || selectEdValue ? [selectStValue || "", selectEdValue || ""] : [];
363
- return formatRangeLabel(vals);
364
- });
365
- const computeInputLabel = (0, import_vue.computed)(() => {
366
- const panelLabelObj = computePanelLabelObj.value;
367
- return panelLabelObj.label;
368
- });
369
- const formatRangeLabel = (vals) => {
370
- const { type, separator } = props;
371
- const dateLabelFormat = computeDateLabelFormat.value;
372
- const dateValueFormat = computeDateValueFormat.value;
373
- const firstDayOfWeek = computeFirstDayOfWeek.value;
374
- const startRest = vals[0] ? (0, import_util.parseDateObj)(vals[0], type, {
375
- valueFormat: dateValueFormat,
376
- labelFormat: dateLabelFormat,
377
- firstDay: firstDayOfWeek
378
- }) : null;
379
- const endRest = vals[1] ? (0, import_util.parseDateObj)(vals[1], type, {
380
- valueFormat: dateValueFormat,
381
- labelFormat: dateLabelFormat,
382
- firstDay: firstDayOfWeek
383
- }) : null;
384
- const startLabel = startRest ? startRest.label : "";
385
- const endLabel = endRest ? endRest.label : "";
386
- return {
387
- label: (startLabel || endLabel ? [startLabel, endLabel] : []).join(`${separator || " ~ "}`),
388
- startLabel,
389
- endLabel
390
- };
391
- };
392
- const getRangeValue = (sValue, eValue) => {
393
- const { modelValue, valueType, valueFormat } = props;
394
- let isArr = valueFormat === "date" || import_xe_utils.default.isArray(modelValue);
395
- if (valueType) {
396
- switch (valueType) {
397
- case "array":
398
- isArr = true;
399
- break;
400
- case "string":
401
- isArr = false;
402
- break;
316
+ const globalPlaceholder = getConfig().dateRangePicker.placeholder;
317
+ if (globalPlaceholder) {
318
+ return (0, import_utils.getFuncText)(globalPlaceholder);
403
319
  }
404
- }
405
- if (sValue || eValue) {
406
- const rest = [sValue || null, eValue || null];
407
- if (isArr) {
408
- return rest;
320
+ return getI18n("vxe.dateRangePicker.pleaseRange");
321
+ });
322
+ const computeInpImmediate = (0, import_vue.computed)(() => {
323
+ const { immediate } = props;
324
+ return immediate;
325
+ });
326
+ const computeTimeOpts = (0, import_vue.computed)(() => {
327
+ return Object.assign({}, getConfig().dateRangePicker.timeConfig, props.timeConfig);
328
+ });
329
+ const computePopupOpts = (0, import_vue.computed)(() => {
330
+ return Object.assign({}, getConfig().dateRangePicker.popupConfig, props.popupConfig);
331
+ });
332
+ const computeShortcutOpts = (0, import_vue.computed)(() => {
333
+ return Object.assign({}, getConfig().dateRangePicker.shortcutConfig, props.shortcutConfig);
334
+ });
335
+ const computeShortcutList = (0, import_vue.computed)(() => {
336
+ const shortcutOpts = computeShortcutOpts.value;
337
+ const { options } = shortcutOpts;
338
+ if (options) {
339
+ return options.map((option, index) => {
340
+ return Object.assign(
341
+ {
342
+ name: `${option.name || option.code || index}`
343
+ },
344
+ option
345
+ );
346
+ });
409
347
  }
410
- return rest.join(",");
411
- }
412
- return isArr ? [] : "";
413
- };
414
- const paraeUpdateModel = () => {
415
- const { type, modelValue } = props;
416
- const dateValueFormat = computeDateValueFormat.value;
417
- let sValue = "";
418
- let eValue = "";
419
- if (import_xe_utils.default.isArray(modelValue)) {
420
- const date1 = (0, import_util.parseDateString)(modelValue[0], type, { valueFormat: dateValueFormat });
421
- const date2 = (0, import_util.parseDateString)(modelValue[1], type, { valueFormat: dateValueFormat });
422
- if (date1 || date2) {
423
- sValue = date1 || "";
424
- eValue = date2 || "";
348
+ return [];
349
+ });
350
+ const computeDateLabelFormat = (0, import_vue.computed)(() => {
351
+ const { labelFormat } = props;
352
+ return labelFormat || getI18n(`vxe.input.date.labelFormat.${props.type}`);
353
+ });
354
+ const computeDateValueFormat = (0, import_vue.computed)(() => {
355
+ const { type, valueFormat } = props;
356
+ return (0, import_util.handleValueFormat)(type, valueFormat);
357
+ });
358
+ const computeFirstDayOfWeek = (0, import_vue.computed)(() => {
359
+ const { startDay } = props;
360
+ return import_xe_utils.default.toNumber(startDay);
361
+ });
362
+ const computePanelLabelObj = (0, import_vue.computed)(() => {
363
+ const { selectStValue, selectEdValue } = reactData;
364
+ const vals = selectStValue || selectEdValue ? [selectStValue || "", selectEdValue || ""] : [];
365
+ return formatRangeLabel(vals);
366
+ });
367
+ const computeInputLabel = (0, import_vue.computed)(() => {
368
+ const panelLabelObj = computePanelLabelObj.value;
369
+ return panelLabelObj.label;
370
+ });
371
+ const formatRangeLabel = (vals) => {
372
+ const { type, separator } = props;
373
+ const dateLabelFormat = computeDateLabelFormat.value;
374
+ const dateValueFormat = computeDateValueFormat.value;
375
+ const firstDayOfWeek = computeFirstDayOfWeek.value;
376
+ const startRest = vals[0] ? (0, import_util.parseDateObj)(vals[0], type, {
377
+ valueFormat: dateValueFormat,
378
+ labelFormat: dateLabelFormat,
379
+ firstDay: firstDayOfWeek
380
+ }) : null;
381
+ const endRest = vals[1] ? (0, import_util.parseDateObj)(vals[1], type, {
382
+ valueFormat: dateValueFormat,
383
+ labelFormat: dateLabelFormat,
384
+ firstDay: firstDayOfWeek
385
+ }) : null;
386
+ const startLabel = startRest ? startRest.label : "";
387
+ const endLabel = endRest ? endRest.label : "";
388
+ return {
389
+ label: (startLabel || endLabel ? [startLabel, endLabel] : []).join(`${separator || " ~ "}`),
390
+ startLabel,
391
+ endLabel
392
+ };
393
+ };
394
+ const getRangeValue = (sValue, eValue) => {
395
+ const { modelValue, valueType, valueFormat } = props;
396
+ let isArr = valueFormat === "date" || import_xe_utils.default.isArray(modelValue);
397
+ if (valueType) {
398
+ switch (valueType) {
399
+ case "array":
400
+ isArr = true;
401
+ break;
402
+ case "string":
403
+ isArr = false;
404
+ break;
405
+ }
425
406
  }
426
- } else if (import_xe_utils.default.isString(modelValue)) {
427
- const strArr = modelValue.split(",");
428
- if (strArr[0] || strArr[1]) {
429
- sValue = strArr[0] || "";
430
- eValue = strArr[1] || "";
407
+ if (sValue || eValue) {
408
+ const rest = [sValue || null, eValue || null];
409
+ if (isArr) {
410
+ return rest;
411
+ }
412
+ return rest.join(",");
431
413
  }
432
- }
433
- return {
434
- sValue,
435
- eValue
414
+ return isArr ? [] : "";
436
415
  };
437
- };
438
- const parseUpdateData = () => {
439
- const { type, startValue, endValue } = props;
440
- const dateValueFormat = computeDateValueFormat.value;
441
- let sValue = "";
442
- let eValue = "";
443
- sValue = (0, import_util.parseDateString)(startValue, type, { valueFormat: dateValueFormat });
444
- eValue = (0, import_util.parseDateString)(endValue, type, { valueFormat: dateValueFormat });
445
- return {
446
- sValue,
447
- eValue
416
+ const paraeUpdateModel = () => {
417
+ const { type, modelValue } = props;
418
+ const dateValueFormat = computeDateValueFormat.value;
419
+ let sValue = "";
420
+ let eValue = "";
421
+ if (import_xe_utils.default.isArray(modelValue)) {
422
+ const date1 = (0, import_util.parseDateString)(modelValue[0], type, { valueFormat: dateValueFormat });
423
+ const date2 = (0, import_util.parseDateString)(modelValue[1], type, { valueFormat: dateValueFormat });
424
+ if (date1 || date2) {
425
+ sValue = date1 || "";
426
+ eValue = date2 || "";
427
+ }
428
+ } else if (import_xe_utils.default.isString(modelValue)) {
429
+ const strArr = modelValue.split(",");
430
+ if (strArr[0] || strArr[1]) {
431
+ sValue = strArr[0] || "";
432
+ eValue = strArr[1] || "";
433
+ }
434
+ }
435
+ return {
436
+ sValue,
437
+ eValue
438
+ };
448
439
  };
449
- };
450
- const updateModelValue = (isModel) => {
451
- const { modelValue, startValue, endValue, valueFormat } = props;
452
- let restObj = {
453
- sValue: "",
454
- eValue: ""
440
+ const parseUpdateData = () => {
441
+ const { type, startValue, endValue } = props;
442
+ const dateValueFormat = computeDateValueFormat.value;
443
+ let sValue = "";
444
+ let eValue = "";
445
+ sValue = (0, import_util.parseDateString)(startValue, type, { valueFormat: dateValueFormat });
446
+ eValue = (0, import_util.parseDateString)(endValue, type, { valueFormat: dateValueFormat });
447
+ return {
448
+ sValue,
449
+ eValue
450
+ };
455
451
  };
456
- if (isModel) {
457
- if (modelValue) {
458
- restObj = paraeUpdateModel();
459
- } else {
460
- restObj = parseUpdateData();
461
- }
462
- } else {
463
- if (startValue || endValue) {
464
- restObj = parseUpdateData();
452
+ const updateModelValue = (isModel) => {
453
+ const { modelValue, startValue, endValue, valueFormat } = props;
454
+ let restObj = {
455
+ sValue: "",
456
+ eValue: ""
457
+ };
458
+ if (isModel) {
459
+ if (modelValue) {
460
+ restObj = paraeUpdateModel();
461
+ } else {
462
+ restObj = parseUpdateData();
463
+ }
465
464
  } else {
466
- restObj = paraeUpdateModel();
465
+ if (startValue || endValue) {
466
+ restObj = parseUpdateData();
467
+ } else {
468
+ restObj = paraeUpdateModel();
469
+ }
467
470
  }
468
- }
469
- let startRest = restObj.sValue;
470
- let endRest = restObj.eValue;
471
- if (valueFormat === "timestamp") {
472
- if (import_xe_utils.default.isString(startRest) && /^\d+$/.test(startRest)) {
473
- startRest = Number(startRest);
471
+ let startRest = restObj.sValue;
472
+ let endRest = restObj.eValue;
473
+ if (valueFormat === "timestamp") {
474
+ if (import_xe_utils.default.isString(startRest) && /^\d+$/.test(startRest)) {
475
+ startRest = Number(startRest);
476
+ }
477
+ if (import_xe_utils.default.isString(endRest) && /^\d+$/.test(endRest)) {
478
+ endRest = Number(endRest);
479
+ }
474
480
  }
475
- if (import_xe_utils.default.isString(endRest) && /^\d+$/.test(endRest)) {
476
- endRest = Number(endRest);
481
+ reactData.selectStValue = startRest;
482
+ reactData.selectEdValue = endRest;
483
+ reactData.paneEndVal = [startRest, endRest];
484
+ reactData.paneStartVal = [startRest, endRest];
485
+ };
486
+ const triggerEvent = (evnt) => {
487
+ const { selectStValue, selectEdValue } = reactData;
488
+ const value = getRangeValue(selectStValue, selectEdValue);
489
+ dispatchEvent(evnt.type, { value, startValue: selectStValue, endValue: selectEdValue }, evnt);
490
+ };
491
+ const handleChange = (sValue, eValue, evnt) => {
492
+ const { type, modelValue, valueFormat } = props;
493
+ const dateValueFormat = computeDateValueFormat.value;
494
+ let startRest = sValue;
495
+ let endRest = eValue;
496
+ if ((0, import_util.hasTimestampValueType)(valueFormat)) {
497
+ if (startRest) {
498
+ const dateVal = (0, import_util.parseDateValue)(startRest, type, { valueFormat: dateValueFormat });
499
+ startRest = dateVal ? dateVal.getTime() : null;
500
+ }
501
+ if (endRest) {
502
+ const dateVal = (0, import_util.parseDateValue)(endRest, type, { valueFormat: dateValueFormat });
503
+ endRest = dateVal ? dateVal.getTime() : null;
504
+ }
505
+ } else if ((0, import_util.hasDateValueType)(valueFormat)) {
506
+ if (startRest) {
507
+ startRest = (0, import_util.parseDateValue)(startRest, type, { valueFormat: dateValueFormat });
508
+ }
509
+ if (endRest) {
510
+ endRest = (0, import_util.parseDateValue)(endRest, type, { valueFormat: dateValueFormat });
511
+ }
477
512
  }
478
- }
479
- reactData.selectStValue = startRest;
480
- reactData.selectEdValue = endRest;
481
- reactData.paneEndVal = [startRest, endRest];
482
- reactData.paneStartVal = [startRest, endRest];
483
- };
484
- const triggerEvent = (evnt) => {
485
- const { selectStValue, selectEdValue } = reactData;
486
- const value = getRangeValue(selectStValue, selectEdValue);
487
- dispatchEvent(evnt.type, { value, startValue: selectStValue, endValue: selectEdValue }, evnt);
488
- };
489
- const handleChange = (sValue, eValue, evnt) => {
490
- const { type, modelValue, valueFormat } = props;
491
- const dateValueFormat = computeDateValueFormat.value;
492
- let startRest = sValue;
493
- let endRest = eValue;
494
- if ((0, import_util.hasTimestampValueType)(valueFormat)) {
495
- if (startRest) {
496
- const dateVal = (0, import_util.parseDateValue)(startRest, type, { valueFormat: dateValueFormat });
497
- startRest = dateVal ? dateVal.getTime() : null;
513
+ reactData.selectStValue = startRest;
514
+ reactData.selectEdValue = endRest;
515
+ const value = getRangeValue(startRest, endRest);
516
+ const isFinish = startRest && endRest || !startRest && !endRest;
517
+ emitModel(value);
518
+ emit("update:startValue", startRest || "");
519
+ emit("update:endValue", endRest || "");
520
+ if (import_xe_utils.default.toValueString(modelValue) !== value) {
521
+ dispatchEvent("change", { value, startValue: startRest, endValue: endRest, isFinish }, evnt);
522
+ if ($xeForm && formItemInfo) {
523
+ $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
524
+ }
498
525
  }
499
- if (endRest) {
500
- const dateVal = (0, import_util.parseDateValue)(endRest, type, { valueFormat: dateValueFormat });
501
- endRest = dateVal ? dateVal.getTime() : null;
526
+ };
527
+ const changeEvent = (evnt) => {
528
+ const inpImmediate = computeInpImmediate.value;
529
+ if (!inpImmediate) {
530
+ triggerEvent(evnt);
502
531
  }
503
- } else if ((0, import_util.hasDateValueType)(valueFormat)) {
504
- if (startRest) {
505
- startRest = (0, import_util.parseDateValue)(startRest, type, { valueFormat: dateValueFormat });
532
+ };
533
+ const focusEvent = (evnt) => {
534
+ const popupOpts = computePopupOpts.value;
535
+ const { trigger } = popupOpts;
536
+ reactData.isActivated = true;
537
+ if (!trigger || trigger === "default") {
538
+ dateRangePickerOpenEvent(evnt);
539
+ } else if (trigger === "icon") {
540
+ hidePanel();
506
541
  }
507
- if (endRest) {
508
- endRest = (0, import_util.parseDateValue)(endRest, type, { valueFormat: dateValueFormat });
542
+ triggerEvent(evnt);
543
+ };
544
+ const clickPrefixEvent = (evnt) => {
545
+ const isDisabled = computeIsDisabled.value;
546
+ if (!isDisabled) {
547
+ const { selectStValue, selectEdValue } = reactData;
548
+ const value = getRangeValue(selectStValue, selectEdValue);
549
+ dispatchEvent("prefix-click", { value, startValue: selectStValue, endValue: selectEdValue }, evnt);
509
550
  }
510
- }
511
- reactData.selectStValue = startRest;
512
- reactData.selectEdValue = endRest;
513
- const value = getRangeValue(startRest, endRest);
514
- const isFinish = startRest && endRest || !startRest && !endRest;
515
- emitModel(value);
516
- emit("update:startValue", startRest || "");
517
- emit("update:endValue", endRest || "");
518
- if (import_xe_utils.default.toValueString(modelValue) !== value) {
519
- dispatchEvent("change", { value, startValue: startRest, endValue: endRest, isFinish }, evnt);
520
- if ($xeForm && formItemInfo) {
521
- $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
551
+ };
552
+ const hidePanel = () => {
553
+ return new Promise((resolve) => {
554
+ reactData.visiblePanel = false;
555
+ internalData.hpTimeout = setTimeout(() => {
556
+ reactData.isAniVisible = false;
557
+ resolve();
558
+ }, 350);
559
+ });
560
+ };
561
+ const clearValueEvent = (evnt, value) => {
562
+ const isDatePickerType = computeIsDatePickerType.value;
563
+ if (isDatePickerType) {
564
+ hidePanel();
522
565
  }
523
- }
524
- };
525
- const changeEvent = (evnt) => {
526
- const inpImmediate = computeInpImmediate.value;
527
- if (!inpImmediate) {
528
- triggerEvent(evnt);
529
- }
530
- };
531
- const focusEvent = (evnt) => {
532
- const popupOpts = computePopupOpts.value;
533
- const { trigger } = popupOpts;
534
- reactData.isActivated = true;
535
- if (!trigger || trigger === "default") {
536
- dateRangePickerOpenEvent(evnt);
537
- } else if (trigger === "icon") {
538
- hidePanel();
539
- }
540
- triggerEvent(evnt);
541
- };
542
- const clickPrefixEvent = (evnt) => {
543
- const isDisabled = computeIsDisabled.value;
544
- if (!isDisabled) {
545
- const { selectStValue, selectEdValue } = reactData;
546
- const value = getRangeValue(selectStValue, selectEdValue);
547
- dispatchEvent("prefix-click", { value, startValue: selectStValue, endValue: selectEdValue }, evnt);
548
- }
549
- };
550
- const hidePanel = () => {
551
- return new Promise((resolve) => {
552
- reactData.visiblePanel = false;
553
- internalData.hpTimeout = setTimeout(() => {
554
- reactData.isAniVisible = false;
555
- resolve();
556
- }, 350);
557
- });
558
- };
559
- const clearValueEvent = (evnt, value) => {
560
- const isDatePickerType = computeIsDatePickerType.value;
561
- if (isDatePickerType) {
562
- hidePanel();
563
- }
564
- const startValue = "";
565
- const endValue = "";
566
- handleChange(startValue, endValue, evnt);
567
- dispatchEvent("clear", { value, startValue, endValue }, evnt);
568
- };
569
- const checkValue = () => {
570
- const $startDatePanel = refStartDatePanel.value;
571
- const $endDatePanel = refEndDatePanel.value;
572
- if ($startDatePanel && $endDatePanel) {
573
- const startValue = $startDatePanel.getModelValue();
574
- const endValue = $endDatePanel.getModelValue();
575
- if (!startValue || !endValue) {
576
- handleChange("", "", { type: "check" });
566
+ const startValue = "";
567
+ const endValue = "";
568
+ handleChange(startValue, endValue, evnt);
569
+ dispatchEvent("clear", { value, startValue, endValue }, evnt);
570
+ };
571
+ const checkValue = () => {
572
+ const $startDatePanel = refStartDatePanel.value;
573
+ const $endDatePanel = refEndDatePanel.value;
574
+ if ($startDatePanel && $endDatePanel) {
575
+ const startValue = $startDatePanel.getModelValue();
576
+ const endValue = $endDatePanel.getModelValue();
577
+ if (!startValue || !endValue) {
578
+ handleChange("", "", { type: "check" });
579
+ }
577
580
  }
578
- }
579
- };
580
- const panelCellClassName = ({ date }) => {
581
- const startValue = reactData.selectStValue;
582
- const endValue = reactData.selectEdValue;
583
- if (startValue && endValue) {
584
- const currTime = date.getTime();
585
- const startTime = import_xe_utils.default.toStringDate(startValue).getTime();
586
- const endTime = import_xe_utils.default.toStringDate(endValue).getTime();
587
- if (currTime >= startTime && currTime <= endTime) {
588
- return "is--range-selected";
581
+ };
582
+ const panelCellClassName = ({ date }) => {
583
+ const startValue = reactData.selectStValue;
584
+ const endValue = reactData.selectEdValue;
585
+ if (startValue && endValue) {
586
+ const currTime = date.getTime();
587
+ const startTime = import_xe_utils.default.toStringDate(startValue).getTime();
588
+ const endTime = import_xe_utils.default.toStringDate(endValue).getTime();
589
+ if (currTime >= startTime && currTime <= endTime) {
590
+ return "is--range-selected";
591
+ }
589
592
  }
590
- }
591
- return "";
592
- };
593
- const handleSelectClose = () => {
594
- const { autoClose } = props;
595
- const { selectStValue, selectEdValue } = reactData;
596
- const { selectStatus } = internalData;
597
- const isDatePickerType = computeIsDatePickerType.value;
598
- if (autoClose) {
599
- if (selectStatus && isDatePickerType) {
593
+ return "";
594
+ };
595
+ const handleSelectClose = () => {
596
+ const { autoClose } = props;
597
+ const { selectStValue, selectEdValue } = reactData;
598
+ const { selectStatus } = internalData;
599
+ const isDatePickerType = computeIsDatePickerType.value;
600
+ if (autoClose) {
601
+ if (selectStatus && isDatePickerType) {
602
+ if (selectStValue && selectEdValue) {
603
+ hidePanel();
604
+ }
605
+ }
606
+ } else {
600
607
  if (selectStValue && selectEdValue) {
601
- hidePanel();
608
+ internalData.selectStatus = false;
602
609
  }
603
610
  }
604
- } else {
605
- if (selectStValue && selectEdValue) {
606
- internalData.selectStatus = false;
611
+ };
612
+ const clickSuffixEvent = (evnt) => {
613
+ const isDisabled = computeIsDisabled.value;
614
+ if (!isDisabled) {
615
+ const { selectStValue, selectEdValue } = reactData;
616
+ const value = getRangeValue(selectStValue, selectEdValue);
617
+ dispatchEvent("suffix-click", { value, startValue: selectStValue, endValue: selectEdValue }, evnt);
607
618
  }
608
- }
609
- };
610
- const clickSuffixEvent = (evnt) => {
611
- const isDisabled = computeIsDisabled.value;
612
- if (!isDisabled) {
619
+ };
620
+ const blurEvent = (evnt) => {
613
621
  const { selectStValue, selectEdValue } = reactData;
614
- const value = getRangeValue(selectStValue, selectEdValue);
615
- dispatchEvent("suffix-click", { value, startValue: selectStValue, endValue: selectEdValue }, evnt);
616
- }
617
- };
618
- const blurEvent = (evnt) => {
619
- const { selectStValue, selectEdValue } = reactData;
620
- const inpImmediate = computeInpImmediate.value;
621
- const value = "";
622
- if (!inpImmediate) {
623
- handleChange(selectStValue, selectEdValue, evnt);
624
- }
625
- if (!reactData.visiblePanel) {
626
- reactData.isActivated = false;
627
- checkValue();
628
- }
629
- dispatchEvent("blur", { value, startValue: selectStValue, endValue: selectEdValue }, evnt);
630
- if ($xeForm && formItemInfo) {
631
- $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
632
- }
633
- };
634
- const keydownEvent = (evnt) => {
635
- triggerEvent(evnt);
636
- };
637
- const keyupEvent = (evnt) => {
638
- triggerEvent(evnt);
639
- };
640
- const confirmEvent = (evnt) => {
641
- const isTimeType = computeIsTimeType.value;
642
- const $startDatePanel = refStartDatePanel.value;
643
- const $endDatePanel = refEndDatePanel.value;
644
- if ($startDatePanel && $endDatePanel) {
645
- const startValue = $startDatePanel.getModelValue();
646
- const endValue = $endDatePanel.getModelValue();
647
- if (isTimeType) {
648
- $startDatePanel.confirmByEvent(evnt);
649
- $endDatePanel.confirmByEvent(evnt);
650
- } else if (startValue && !endValue || !startValue && endValue) {
651
- handleChange("", "", evnt);
652
- } else {
653
- $startDatePanel.confirmByEvent(evnt);
654
- $endDatePanel.confirmByEvent(evnt);
622
+ const inpImmediate = computeInpImmediate.value;
623
+ const value = "";
624
+ if (!inpImmediate) {
625
+ handleChange(selectStValue, selectEdValue, evnt);
655
626
  }
656
- const value = getRangeValue(startValue, endValue);
657
- dispatchEvent("confirm", { value, startValue, endValue }, evnt);
658
- }
659
- hidePanel();
660
- };
661
- const startPanelChangeEvent = (params) => {
662
- const { paneStartVal } = reactData;
663
- const { selectStatus } = internalData;
664
- const { value, currValue, $event } = params;
665
- const paneVals = value ? import_xe_utils.default.isString(value) ? value.split(",") : [value] : [];
666
- let startValue = "";
667
- let endValue = "";
668
- if (selectStatus) {
669
- if (!value && currValue === paneStartVal[0]) {
670
- startValue = currValue;
671
- endValue = currValue;
672
- } else {
673
- startValue = paneVals[0];
674
- if (paneVals[1]) {
675
- endValue = paneVals[1];
676
- } else {
677
- endValue = reactData.selectEdValue;
678
- }
627
+ if (!reactData.visiblePanel) {
628
+ reactData.isActivated = false;
629
+ checkValue();
679
630
  }
680
- } else {
681
- startValue = currValue || import_xe_utils.default.last(paneVals);
682
- }
683
- reactData.paneEndVal = [startValue, endValue];
684
- reactData.paneStartVal = [startValue, endValue];
685
- handleChange(startValue, endValue, $event);
686
- handleSelectClose();
687
- if (selectStatus) {
688
- if (startValue && endValue) {
689
- internalData.selectStatus = false;
631
+ dispatchEvent("blur", { value, startValue: selectStValue, endValue: selectEdValue }, evnt);
632
+ if ($xeForm && formItemInfo) {
633
+ $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
690
634
  }
691
- } else {
692
- internalData.selectStatus = true;
693
- }
694
- (0, import_vue.nextTick)(() => {
695
- handleUpdateStartPanelDate();
696
- });
697
- };
698
- const endPanelChangeEvent = (params) => {
699
- const { paneEndVal } = reactData;
700
- const { selectStatus } = internalData;
701
- const { value, currValue, $event } = params;
702
- const paneVals = value ? import_xe_utils.default.isString(value) ? value.split(",") : [value] : [];
703
- let startValue = "";
704
- let endValue = "";
705
- if (selectStatus) {
706
- if (!value && currValue === paneEndVal[1]) {
707
- startValue = currValue;
708
- endValue = currValue;
709
- } else {
710
- endValue = paneVals[0];
711
- if (paneVals[1]) {
712
- startValue = paneVals[0];
713
- endValue = paneVals[1];
635
+ };
636
+ const keydownEvent = (evnt) => {
637
+ triggerEvent(evnt);
638
+ };
639
+ const keyupEvent = (evnt) => {
640
+ triggerEvent(evnt);
641
+ };
642
+ const confirmEvent = (evnt) => {
643
+ const isTimeType = computeIsTimeType.value;
644
+ const $startDatePanel = refStartDatePanel.value;
645
+ const $endDatePanel = refEndDatePanel.value;
646
+ if ($startDatePanel && $endDatePanel) {
647
+ const startValue = $startDatePanel.getModelValue();
648
+ const endValue = $endDatePanel.getModelValue();
649
+ if (isTimeType) {
650
+ $startDatePanel.confirmByEvent(evnt);
651
+ $endDatePanel.confirmByEvent(evnt);
652
+ } else if (startValue && !endValue || !startValue && endValue) {
653
+ handleChange("", "", evnt);
714
654
  } else {
715
- startValue = reactData.selectStValue;
655
+ $startDatePanel.confirmByEvent(evnt);
656
+ $endDatePanel.confirmByEvent(evnt);
716
657
  }
658
+ const value = getRangeValue(startValue, endValue);
659
+ dispatchEvent("confirm", { value, startValue, endValue }, evnt);
717
660
  }
718
- } else {
719
- endValue = currValue || import_xe_utils.default.last(paneVals);
720
- }
721
- reactData.paneEndVal = [startValue, endValue];
722
- reactData.paneStartVal = [startValue, endValue];
723
- handleChange(startValue, endValue, $event);
724
- handleSelectClose();
725
- if (selectStatus) {
726
- if (startValue && endValue) {
727
- internalData.selectStatus = false;
661
+ hidePanel();
662
+ };
663
+ const startPanelChangeEvent = (params) => {
664
+ const { paneStartVal } = reactData;
665
+ const { selectStatus } = internalData;
666
+ const { value, currValue, $event } = params;
667
+ const paneVals = value ? import_xe_utils.default.isString(value) ? value.split(",") : [value] : [];
668
+ let startValue = "";
669
+ let endValue = "";
670
+ if (selectStatus) {
671
+ if (!value && currValue === paneStartVal[0]) {
672
+ startValue = currValue;
673
+ endValue = currValue;
674
+ } else {
675
+ startValue = paneVals[0];
676
+ if (paneVals[1]) {
677
+ endValue = paneVals[1];
678
+ } else {
679
+ endValue = reactData.selectEdValue;
680
+ }
681
+ }
682
+ } else {
683
+ startValue = currValue || import_xe_utils.default.last(paneVals);
728
684
  }
729
- } else {
730
- internalData.selectStatus = true;
731
- }
732
- (0, import_vue.nextTick)(() => {
733
- handleUpdateEndPanelDate();
734
- });
735
- };
736
- const handleUpdateStartPanelDate = () => {
737
- const $startDatePanel = refStartDatePanel.value;
738
- const $endDatePanel = refEndDatePanel.value;
739
- if (!$startDatePanel || !$endDatePanel) {
740
- return;
741
- }
742
- const startPanelDate = $startDatePanel.getPanelDate();
743
- const endPanelDate = $endDatePanel.getPanelDate();
744
- if (!startPanelDate || !endPanelDate) {
745
- return;
746
- }
747
- const viewType = $startDatePanel.getViewType();
748
- const startYear = startPanelDate.getFullYear();
749
- const startMonth = startPanelDate.getMonth();
750
- const endYear = endPanelDate.getFullYear();
751
- const endMonth = endPanelDate.getMonth();
752
- switch (viewType) {
753
- case "day":
754
- case "date":
755
- case "week": {
756
- if (endYear <= startYear && endMonth <= startMonth) {
757
- $endDatePanel.setPanelDate((0, import_util.getNextMonth)(startPanelDate));
685
+ reactData.paneEndVal = [startValue, endValue];
686
+ reactData.paneStartVal = [startValue, endValue];
687
+ handleChange(startValue, endValue, $event);
688
+ handleSelectClose();
689
+ if (selectStatus) {
690
+ if (startValue && endValue) {
691
+ internalData.selectStatus = false;
758
692
  }
759
- break;
693
+ } else {
694
+ internalData.selectStatus = true;
760
695
  }
761
- case "month":
762
- case "quarter": {
763
- if (endYear <= startYear) {
764
- $endDatePanel.setPanelDate((0, import_util.getNextYear)(startPanelDate));
696
+ (0, import_vue.nextTick)(() => {
697
+ handleUpdateStartPanelDate();
698
+ });
699
+ };
700
+ const endPanelChangeEvent = (params) => {
701
+ const { paneEndVal } = reactData;
702
+ const { selectStatus } = internalData;
703
+ const { value, currValue, $event } = params;
704
+ const paneVals = value ? import_xe_utils.default.isString(value) ? value.split(",") : [value] : [];
705
+ let startValue = "";
706
+ let endValue = "";
707
+ if (selectStatus) {
708
+ if (!value && currValue === paneEndVal[1]) {
709
+ startValue = currValue;
710
+ endValue = currValue;
711
+ } else {
712
+ endValue = paneVals[0];
713
+ if (paneVals[1]) {
714
+ startValue = paneVals[0];
715
+ endValue = paneVals[1];
716
+ } else {
717
+ startValue = reactData.selectStValue;
718
+ }
765
719
  }
766
- break;
720
+ } else {
721
+ endValue = currValue || import_xe_utils.default.last(paneVals);
767
722
  }
768
- case "year": {
769
- const { computeYearList } = $startDatePanel.getComputeMaps();
770
- const yearList = computeYearList.value;
771
- if (yearList.some((item) => import_xe_utils.default.isDateSame(item.date, endPanelDate, "yyyy"))) {
772
- $endDatePanel.setPanelDate((0, import_util.getNextYear)(startPanelDate, yearList.length));
723
+ reactData.paneEndVal = [startValue, endValue];
724
+ reactData.paneStartVal = [startValue, endValue];
725
+ handleChange(startValue, endValue, $event);
726
+ handleSelectClose();
727
+ if (selectStatus) {
728
+ if (startValue && endValue) {
729
+ internalData.selectStatus = false;
773
730
  }
774
- break;
731
+ } else {
732
+ internalData.selectStatus = true;
733
+ }
734
+ (0, import_vue.nextTick)(() => {
735
+ handleUpdateEndPanelDate();
736
+ });
737
+ };
738
+ const handleUpdateStartPanelDate = () => {
739
+ const $startDatePanel = refStartDatePanel.value;
740
+ const $endDatePanel = refEndDatePanel.value;
741
+ if (!$startDatePanel || !$endDatePanel) {
742
+ return;
743
+ }
744
+ const startPanelDate = $startDatePanel.getPanelDate();
745
+ const endPanelDate = $endDatePanel.getPanelDate();
746
+ if (!startPanelDate || !endPanelDate) {
747
+ return;
775
748
  }
776
- }
777
- };
778
- const startPanelDateBtnChangeEvent = () => {
779
- const { linkedPanels } = props;
780
- const $startDatePanel = refStartDatePanel.value;
781
- const $endDatePanel = refEndDatePanel.value;
782
- if (!$startDatePanel || !$endDatePanel) {
783
- return;
784
- }
785
- const startPanelDate = $startDatePanel.getPanelDate();
786
- const endPanelDate = $endDatePanel.getPanelDate();
787
- if (!startPanelDate || !endPanelDate) {
788
- return;
789
- }
790
- const viewType = $startDatePanel.getViewType();
791
- if (linkedPanels) {
749
+ const viewType = $startDatePanel.getViewType();
750
+ const startYear = startPanelDate.getFullYear();
751
+ const startMonth = startPanelDate.getMonth();
752
+ const endYear = endPanelDate.getFullYear();
753
+ const endMonth = endPanelDate.getMonth();
792
754
  switch (viewType) {
793
755
  case "day":
794
756
  case "date":
795
757
  case "week": {
796
- $endDatePanel.setPanelDate((0, import_util.getNextMonth)(startPanelDate));
758
+ if (endYear <= startYear && endMonth <= startMonth) {
759
+ $endDatePanel.setPanelDate((0, import_util.getNextMonth)(startPanelDate));
760
+ }
797
761
  break;
798
762
  }
799
763
  case "month":
800
764
  case "quarter": {
801
- $endDatePanel.setPanelDate((0, import_util.getNextYear)(startPanelDate));
765
+ if (endYear <= startYear) {
766
+ $endDatePanel.setPanelDate((0, import_util.getNextYear)(startPanelDate));
767
+ }
802
768
  break;
803
769
  }
804
770
  case "year": {
805
771
  const { computeYearList } = $startDatePanel.getComputeMaps();
806
772
  const yearList = computeYearList.value;
807
- $endDatePanel.setPanelDate((0, import_util.getNextYear)(startPanelDate, yearList.length));
773
+ if (yearList.some((item) => import_xe_utils.default.isDateSame(item.date, endPanelDate, "yyyy"))) {
774
+ $endDatePanel.setPanelDate((0, import_util.getNextYear)(startPanelDate, yearList.length));
775
+ }
808
776
  break;
809
777
  }
810
778
  }
811
- } else {
812
- handleUpdateStartPanelDate();
813
- }
814
- };
815
- const handleUpdateEndPanelDate = () => {
816
- const $startDatePanel = refStartDatePanel.value;
817
- const $endDatePanel = refEndDatePanel.value;
818
- if (!$startDatePanel || !$endDatePanel) {
819
- return;
820
- }
821
- const startPanelDate = $startDatePanel.getPanelDate();
822
- const endPanelDate = $endDatePanel.getPanelDate();
823
- if (!startPanelDate || !endPanelDate) {
824
- return;
825
- }
826
- const viewType = $endDatePanel.getViewType();
827
- const startYear = startPanelDate.getFullYear();
828
- const startMonth = startPanelDate.getMonth();
829
- const endYear = endPanelDate.getFullYear();
830
- const endMonth = endPanelDate.getMonth();
831
- switch (viewType) {
832
- case "day":
833
- case "date":
834
- case "week": {
835
- if (startYear >= endYear && startMonth >= endMonth) {
836
- $startDatePanel.setPanelDate((0, import_util.getPrevMonth)(endPanelDate));
837
- }
838
- break;
779
+ };
780
+ const startPanelDateBtnChangeEvent = () => {
781
+ const { linkedPanels } = props;
782
+ const $startDatePanel = refStartDatePanel.value;
783
+ const $endDatePanel = refEndDatePanel.value;
784
+ if (!$startDatePanel || !$endDatePanel) {
785
+ return;
839
786
  }
840
- case "month":
841
- case "quarter": {
842
- if (startYear >= endYear) {
843
- $startDatePanel.setPanelDate((0, import_util.getPrevYear)(endPanelDate));
844
- }
845
- break;
787
+ const startPanelDate = $startDatePanel.getPanelDate();
788
+ const endPanelDate = $endDatePanel.getPanelDate();
789
+ if (!startPanelDate || !endPanelDate) {
790
+ return;
846
791
  }
847
- case "year": {
848
- const { computeYearList } = $endDatePanel.getComputeMaps();
849
- const yearList = computeYearList.value;
850
- if (yearList.some((item) => import_xe_utils.default.isDateSame(item.date, startPanelDate, "yyyy"))) {
851
- $startDatePanel.setPanelDate((0, import_util.getPrevYear)(endPanelDate, yearList.length));
792
+ const viewType = $startDatePanel.getViewType();
793
+ if (linkedPanels) {
794
+ switch (viewType) {
795
+ case "day":
796
+ case "date":
797
+ case "week": {
798
+ $endDatePanel.setPanelDate((0, import_util.getNextMonth)(startPanelDate));
799
+ break;
800
+ }
801
+ case "month":
802
+ case "quarter": {
803
+ $endDatePanel.setPanelDate((0, import_util.getNextYear)(startPanelDate));
804
+ break;
805
+ }
806
+ case "year": {
807
+ const { computeYearList } = $startDatePanel.getComputeMaps();
808
+ const yearList = computeYearList.value;
809
+ $endDatePanel.setPanelDate((0, import_util.getNextYear)(startPanelDate, yearList.length));
810
+ break;
811
+ }
852
812
  }
853
- break;
813
+ } else {
814
+ handleUpdateStartPanelDate();
815
+ }
816
+ };
817
+ const handleUpdateEndPanelDate = () => {
818
+ const $startDatePanel = refStartDatePanel.value;
819
+ const $endDatePanel = refEndDatePanel.value;
820
+ if (!$startDatePanel || !$endDatePanel) {
821
+ return;
822
+ }
823
+ const startPanelDate = $startDatePanel.getPanelDate();
824
+ const endPanelDate = $endDatePanel.getPanelDate();
825
+ if (!startPanelDate || !endPanelDate) {
826
+ return;
854
827
  }
855
- }
856
- };
857
- const endPanelDateBtnChangeEvent = () => {
858
- const { linkedPanels } = props;
859
- const $startDatePanel = refStartDatePanel.value;
860
- const $endDatePanel = refEndDatePanel.value;
861
- if (!$startDatePanel || !$endDatePanel) {
862
- return;
863
- }
864
- const startPanelDate = $startDatePanel.getPanelDate();
865
- const endPanelDate = $endDatePanel.getPanelDate();
866
- if (!startPanelDate || !endPanelDate) {
867
- return;
868
- }
869
- const viewType = $endDatePanel.getViewType();
870
- if (linkedPanels) {
828
+ const viewType = $endDatePanel.getViewType();
829
+ const startYear = startPanelDate.getFullYear();
830
+ const startMonth = startPanelDate.getMonth();
831
+ const endYear = endPanelDate.getFullYear();
832
+ const endMonth = endPanelDate.getMonth();
871
833
  switch (viewType) {
872
834
  case "day":
873
835
  case "date":
874
836
  case "week": {
875
- $startDatePanel.setPanelDate((0, import_util.getPrevMonth)(endPanelDate));
837
+ if (startYear >= endYear && startMonth >= endMonth) {
838
+ $startDatePanel.setPanelDate((0, import_util.getPrevMonth)(endPanelDate));
839
+ }
876
840
  break;
877
841
  }
878
842
  case "month":
879
843
  case "quarter": {
880
- $startDatePanel.setPanelDate((0, import_util.getPrevYear)(endPanelDate));
844
+ if (startYear >= endYear) {
845
+ $startDatePanel.setPanelDate((0, import_util.getPrevYear)(endPanelDate));
846
+ }
881
847
  break;
882
848
  }
883
849
  case "year": {
884
850
  const { computeYearList } = $endDatePanel.getComputeMaps();
885
851
  const yearList = computeYearList.value;
886
- $startDatePanel.setPanelDate((0, import_util.getPrevYear)(endPanelDate, yearList.length));
852
+ if (yearList.some((item) => import_xe_utils.default.isDateSame(item.date, startPanelDate, "yyyy"))) {
853
+ $startDatePanel.setPanelDate((0, import_util.getPrevYear)(endPanelDate, yearList.length));
854
+ }
887
855
  break;
888
856
  }
889
857
  }
890
- } else {
891
- handleUpdateEndPanelDate();
892
- }
893
- };
894
- const handleGlobalMousedownEvent = (evnt) => {
895
- const { visiblePanel, isActivated } = reactData;
896
- const el = refElem.value;
897
- const panelWrapperElem = refPanelWrapper.value;
898
- const isDisabled = computeIsDisabled.value;
899
- if (!isDisabled && isActivated) {
900
- reactData.isActivated = (0, import_dom.getEventTargetNode)(evnt, el).flag || (0, import_dom.getEventTargetNode)(evnt, panelWrapperElem).flag;
901
- if (!reactData.isActivated) {
858
+ };
859
+ const endPanelDateBtnChangeEvent = () => {
860
+ const { linkedPanels } = props;
861
+ const $startDatePanel = refStartDatePanel.value;
862
+ const $endDatePanel = refEndDatePanel.value;
863
+ if (!$startDatePanel || !$endDatePanel) {
864
+ return;
865
+ }
866
+ const startPanelDate = $startDatePanel.getPanelDate();
867
+ const endPanelDate = $endDatePanel.getPanelDate();
868
+ if (!startPanelDate || !endPanelDate) {
869
+ return;
870
+ }
871
+ const viewType = $endDatePanel.getViewType();
872
+ if (linkedPanels) {
873
+ switch (viewType) {
874
+ case "day":
875
+ case "date":
876
+ case "week": {
877
+ $startDatePanel.setPanelDate((0, import_util.getPrevMonth)(endPanelDate));
878
+ break;
879
+ }
880
+ case "month":
881
+ case "quarter": {
882
+ $startDatePanel.setPanelDate((0, import_util.getPrevYear)(endPanelDate));
883
+ break;
884
+ }
885
+ case "year": {
886
+ const { computeYearList } = $endDatePanel.getComputeMaps();
887
+ const yearList = computeYearList.value;
888
+ $startDatePanel.setPanelDate((0, import_util.getPrevYear)(endPanelDate, yearList.length));
889
+ break;
890
+ }
891
+ }
892
+ } else {
893
+ handleUpdateEndPanelDate();
894
+ }
895
+ };
896
+ const handleGlobalMousedownEvent = (evnt) => {
897
+ const { visiblePanel, isActivated } = reactData;
898
+ const el = refElem.value;
899
+ const panelWrapperElem = refPanelWrapper.value;
900
+ const isDisabled = computeIsDisabled.value;
901
+ if (!isDisabled && isActivated) {
902
+ reactData.isActivated = (0, import_dom.getEventTargetNode)(evnt, el).flag || (0, import_dom.getEventTargetNode)(evnt, panelWrapperElem).flag;
903
+ if (!reactData.isActivated) {
904
+ if (visiblePanel) {
905
+ checkValue();
906
+ hidePanel();
907
+ }
908
+ }
909
+ }
910
+ };
911
+ const handleGlobalKeydownEvent = (evnt) => {
912
+ const { visiblePanel } = reactData;
913
+ const isDisabled = computeIsDisabled.value;
914
+ if (!isDisabled) {
915
+ const isTab = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
916
+ const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
917
+ if (isTab) {
918
+ reactData.isActivated = false;
919
+ }
902
920
  if (visiblePanel) {
903
- checkValue();
904
- hidePanel();
921
+ if (isEsc || isTab) {
922
+ checkValue();
923
+ hidePanel();
924
+ }
905
925
  }
906
926
  }
907
- }
908
- };
909
- const handleGlobalKeydownEvent = (evnt) => {
910
- const { visiblePanel } = reactData;
911
- const isDisabled = computeIsDisabled.value;
912
- if (!isDisabled) {
913
- const isTab = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
914
- const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
915
- if (isTab) {
927
+ };
928
+ const handleGlobalBlurEvent = () => {
929
+ const { visiblePanel, isActivated } = reactData;
930
+ if (visiblePanel) {
931
+ checkValue();
932
+ hidePanel();
933
+ }
934
+ if (isActivated) {
916
935
  reactData.isActivated = false;
917
936
  }
918
- if (visiblePanel) {
919
- if (isEsc || isTab) {
920
- checkValue();
921
- hidePanel();
937
+ if (visiblePanel || isActivated) {
938
+ const targetElem = refInputTarget.value;
939
+ if (targetElem) {
940
+ targetElem.blur();
922
941
  }
923
942
  }
924
- }
925
- };
926
- const handleGlobalBlurEvent = () => {
927
- const { visiblePanel, isActivated } = reactData;
928
- if (visiblePanel) {
929
- checkValue();
930
- hidePanel();
931
- }
932
- if (isActivated) {
933
- reactData.isActivated = false;
934
- }
935
- if (visiblePanel || isActivated) {
943
+ };
944
+ const handleGlobalResizeEvent = () => {
945
+ const { visiblePanel } = reactData;
946
+ if (visiblePanel) {
947
+ updatePlacement();
948
+ }
949
+ };
950
+ const handleGlobalScrollEvent = () => {
951
+ const { visiblePanel } = reactData;
952
+ if (visiblePanel) {
953
+ updatePlacement();
954
+ }
955
+ };
956
+ const updateZindex = () => {
957
+ const popupOpts = computePopupOpts.value;
958
+ const customZIndex = popupOpts.zIndex || props.zIndex;
959
+ if (customZIndex) {
960
+ reactData.panelIndex = import_xe_utils.default.toNumber(customZIndex);
961
+ } else if (reactData.panelIndex < (0, import_utils.getLastZIndex)()) {
962
+ reactData.panelIndex = (0, import_utils.nextZIndex)();
963
+ }
964
+ };
965
+ const updatePlacement = () => {
966
+ const { placement } = props;
967
+ const { panelIndex } = reactData;
936
968
  const targetElem = refInputTarget.value;
937
- if (targetElem) {
938
- targetElem.blur();
969
+ const panelElem = refInputPanel.value;
970
+ if (!panelElem) {
971
+ return (0, import_vue.nextTick)();
939
972
  }
940
- }
941
- };
942
- const handleGlobalResizeEvent = () => {
943
- const { visiblePanel } = reactData;
944
- if (visiblePanel) {
945
- updatePlacement();
946
- }
947
- };
948
- const handleGlobalScrollEvent = () => {
949
- const { visiblePanel } = reactData;
950
- if (visiblePanel) {
951
- updatePlacement();
952
- }
953
- };
954
- const updateZindex = () => {
955
- const popupOpts = computePopupOpts.value;
956
- const customZIndex = popupOpts.zIndex || props.zIndex;
957
- if (customZIndex) {
958
- reactData.panelIndex = import_xe_utils.default.toNumber(customZIndex);
959
- } else if (reactData.panelIndex < (0, import_utils.getLastZIndex)()) {
960
- reactData.panelIndex = (0, import_utils.nextZIndex)();
961
- }
962
- };
963
- const updatePlacement = () => {
964
- const { placement } = props;
965
- const { panelIndex } = reactData;
966
- const targetElem = refInputTarget.value;
967
- const panelElem = refInputPanel.value;
968
- if (!panelElem) {
969
- return (0, import_vue.nextTick)();
970
- }
971
- const btnTransfer = computeBtnTransfer.value;
972
- const popupOpts = computePopupOpts.value;
973
- const handleStyle = () => {
974
- const ppObj = (0, import_dom.updatePanelPlacement)(targetElem, panelElem, {
975
- placement: popupOpts.placement || placement,
976
- defaultPlacement: popupOpts.defaultPlacement,
977
- appendTo: popupOpts.appendTo,
978
- teleportTo: btnTransfer
979
- });
980
- const panelStyle = Object.assign(ppObj.style, {
981
- zIndex: panelIndex
982
- });
983
- reactData.panelStyle = panelStyle;
984
- reactData.panelPlacement = ppObj.placement;
973
+ const btnTransfer = computeBtnTransfer.value;
974
+ const popupOpts = computePopupOpts.value;
975
+ const handleStyle = () => {
976
+ const ppObj = (0, import_dom.updatePanelPlacement)(targetElem, panelElem, {
977
+ placement: popupOpts.placement || placement,
978
+ defaultPlacement: popupOpts.defaultPlacement,
979
+ appendTo: popupOpts.appendTo,
980
+ teleportTo: btnTransfer
981
+ });
982
+ const panelStyle = Object.assign(ppObj.style, {
983
+ zIndex: panelIndex
984
+ });
985
+ reactData.panelStyle = panelStyle;
986
+ reactData.panelPlacement = ppObj.placement;
987
+ };
988
+ handleStyle();
989
+ return (0, import_vue.nextTick)().then(handleStyle);
985
990
  };
986
- handleStyle();
987
- return (0, import_vue.nextTick)().then(handleStyle);
988
- };
989
- const showPanel = () => {
990
- const { visiblePanel } = reactData;
991
- const isDisabled = computeIsDisabled.value;
992
- if (!isDisabled && !visiblePanel) {
993
- if (!reactData.initialized) {
994
- reactData.initialized = true;
991
+ const showPanel = () => {
992
+ const { visiblePanel } = reactData;
993
+ const isDisabled = computeIsDisabled.value;
994
+ if (!isDisabled && !visiblePanel) {
995
+ if (!reactData.initialized) {
996
+ reactData.initialized = true;
997
+ }
998
+ if (internalData.hpTimeout) {
999
+ clearTimeout(internalData.hpTimeout);
1000
+ internalData.hpTimeout = void 0;
1001
+ }
1002
+ internalData.selectStatus = false;
1003
+ reactData.isActivated = true;
1004
+ reactData.isAniVisible = true;
1005
+ setTimeout(() => {
1006
+ reactData.visiblePanel = true;
1007
+ handleUpdateStartPanelDate();
1008
+ updatePlacement();
1009
+ }, 10);
1010
+ updateZindex();
1011
+ return updatePlacement();
995
1012
  }
996
- if (internalData.hpTimeout) {
997
- clearTimeout(internalData.hpTimeout);
998
- internalData.hpTimeout = void 0;
1013
+ return (0, import_vue.nextTick)();
1014
+ };
1015
+ const dateRangePickerOpenEvent = (evnt) => {
1016
+ const formReadonly = computeFormReadonly.value;
1017
+ if (!formReadonly) {
1018
+ evnt.preventDefault();
1019
+ showPanel();
999
1020
  }
1000
- internalData.selectStatus = false;
1001
- reactData.isActivated = true;
1002
- reactData.isAniVisible = true;
1003
- setTimeout(() => {
1004
- reactData.visiblePanel = true;
1005
- handleUpdateStartPanelDate();
1006
- updatePlacement();
1007
- }, 10);
1008
- updateZindex();
1009
- return updatePlacement();
1010
- }
1011
- return (0, import_vue.nextTick)();
1012
- };
1013
- const dateRangePickerOpenEvent = (evnt) => {
1014
- const formReadonly = computeFormReadonly.value;
1015
- if (!formReadonly) {
1016
- evnt.preventDefault();
1017
- showPanel();
1018
- }
1019
- };
1020
- const clickIconEvent = (evnt) => {
1021
- const { visiblePanel } = reactData;
1022
- const popupOpts = computePopupOpts.value;
1023
- const { trigger } = popupOpts;
1024
- if (!trigger || trigger === "default" || trigger === "icon") {
1025
- if (visiblePanel) {
1026
- hidePanel();
1027
- } else {
1028
- dateRangePickerOpenEvent(evnt);
1021
+ };
1022
+ const clickIconEvent = (evnt) => {
1023
+ const { visiblePanel } = reactData;
1024
+ const popupOpts = computePopupOpts.value;
1025
+ const { trigger } = popupOpts;
1026
+ if (!trigger || trigger === "default" || trigger === "icon") {
1027
+ if (visiblePanel) {
1028
+ hidePanel();
1029
+ } else {
1030
+ dateRangePickerOpenEvent(evnt);
1031
+ }
1029
1032
  }
1030
- }
1031
- };
1032
- const clickEvent = (evnt) => {
1033
- triggerEvent(evnt);
1034
- };
1035
- const handleShortcutEvent = ({ option, $event }) => {
1036
- const { type } = props;
1037
- const shortcutOpts = computeShortcutOpts.value;
1038
- const { autoClose } = shortcutOpts;
1039
- const { code, clickMethod } = option;
1040
- let startValue = reactData.selectStValue;
1041
- let endValue = reactData.selectEdValue;
1042
- let value = getRangeValue(startValue, endValue);
1043
- const shortcutParams = {
1044
- $dateRangePicker: $xeDateRangePicker,
1045
- option,
1046
- value,
1047
- startValue,
1048
- endValue,
1049
- code
1050
1033
  };
1051
- if (!clickMethod && code) {
1052
- const gCommandOpts = commands.get(code);
1053
- const drpCommandMethod = gCommandOpts ? gCommandOpts.dateRangePickerCommandMethod : null;
1054
- if (drpCommandMethod) {
1055
- drpCommandMethod(shortcutParams);
1056
- } else {
1057
- const dateValueFormat = computeDateValueFormat.value;
1058
- const firstDayOfWeek = computeFirstDayOfWeek.value;
1059
- switch (code) {
1060
- case "last1":
1061
- case "last3":
1062
- case "last7":
1063
- case "last30":
1064
- case "last60":
1065
- case "last90":
1066
- case "last180": {
1067
- const restObj = (0, import_util.getRangeDateByCode)(code, value, type, {
1068
- valueFormat: dateValueFormat,
1069
- firstDay: firstDayOfWeek
1070
- });
1071
- startValue = restObj.startValue;
1072
- endValue = restObj.endValue;
1073
- value = getRangeValue(startValue, endValue);
1074
- shortcutParams.value = value;
1075
- shortcutParams.startValue = startValue;
1076
- shortcutParams.endValue = endValue;
1077
- handleChange(startValue, endValue, $event);
1078
- break;
1034
+ const clickEvent = (evnt) => {
1035
+ triggerEvent(evnt);
1036
+ };
1037
+ const handleShortcutEvent = ({ option, $event }) => {
1038
+ const { type } = props;
1039
+ const shortcutOpts = computeShortcutOpts.value;
1040
+ const { autoClose } = shortcutOpts;
1041
+ const { code, clickMethod } = option;
1042
+ let startValue = reactData.selectStValue;
1043
+ let endValue = reactData.selectEdValue;
1044
+ let value = getRangeValue(startValue, endValue);
1045
+ const shortcutParams = {
1046
+ $dateRangePicker: $xeDateRangePicker,
1047
+ option,
1048
+ value,
1049
+ startValue,
1050
+ endValue,
1051
+ code
1052
+ };
1053
+ if (!clickMethod && code) {
1054
+ const gCommandOpts = commands.get(code);
1055
+ const drpCommandMethod = gCommandOpts ? gCommandOpts.dateRangePickerCommandMethod : null;
1056
+ if (drpCommandMethod) {
1057
+ drpCommandMethod(shortcutParams);
1058
+ } else {
1059
+ const dateValueFormat = computeDateValueFormat.value;
1060
+ const firstDayOfWeek = computeFirstDayOfWeek.value;
1061
+ switch (code) {
1062
+ case "last1":
1063
+ case "last3":
1064
+ case "last7":
1065
+ case "last30":
1066
+ case "last60":
1067
+ case "last90":
1068
+ case "last180": {
1069
+ const restObj = (0, import_util.getRangeDateByCode)(code, value, type, {
1070
+ valueFormat: dateValueFormat,
1071
+ firstDay: firstDayOfWeek
1072
+ });
1073
+ startValue = restObj.startValue;
1074
+ endValue = restObj.endValue;
1075
+ value = getRangeValue(startValue, endValue);
1076
+ shortcutParams.value = value;
1077
+ shortcutParams.startValue = startValue;
1078
+ shortcutParams.endValue = endValue;
1079
+ handleChange(startValue, endValue, $event);
1080
+ break;
1081
+ }
1082
+ default:
1083
+ errLog("vxe.error.notCommands", [code]);
1084
+ break;
1079
1085
  }
1080
- default:
1081
- errLog("vxe.error.notCommands", [code]);
1082
- break;
1086
+ }
1087
+ } else {
1088
+ const optClickMethod = clickMethod || shortcutOpts.clickMethod;
1089
+ if (optClickMethod) {
1090
+ optClickMethod(shortcutParams);
1083
1091
  }
1084
1092
  }
1085
- } else {
1086
- const optClickMethod = clickMethod || shortcutOpts.clickMethod;
1087
- if (optClickMethod) {
1088
- optClickMethod(shortcutParams);
1093
+ if (autoClose) {
1094
+ hidePanel();
1089
1095
  }
1090
- }
1091
- if (autoClose) {
1092
- hidePanel();
1093
- }
1094
- dispatchEvent("shortcut-click", shortcutParams, $event);
1095
- };
1096
- const dispatchEvent = (type, params, evnt) => {
1097
- emit(type, createEvent(evnt, { $dateRangePicker: $xeDateRangePicker }, params));
1098
- };
1099
- const emitModel = (value) => {
1100
- emit("update:modelValue", value);
1101
- };
1102
- dateRangePickerMethods = {
1103
- dispatchEvent,
1104
- setModelValue(startValue, endValue) {
1105
- reactData.selectStValue = startValue || "";
1106
- reactData.selectEdValue = endValue || "";
1107
- const value = getRangeValue(startValue, endValue);
1108
- emitModel(value);
1109
- },
1110
- setModelValueByEvent(evnt, startValue, endValue) {
1111
- handleChange(startValue || "", endValue || "", evnt);
1112
- },
1113
- focus() {
1114
- const inputElem = refInputTarget.value;
1115
- reactData.isActivated = true;
1116
- inputElem.focus();
1117
- return (0, import_vue.nextTick)();
1118
- },
1119
- blur() {
1120
- const inputElem = refInputTarget.value;
1121
- inputElem.blur();
1122
- reactData.isActivated = false;
1123
- return (0, import_vue.nextTick)();
1124
- },
1125
- select() {
1126
- const inputElem = refInputTarget.value;
1127
- inputElem.select();
1128
- reactData.isActivated = false;
1129
- return (0, import_vue.nextTick)();
1130
- },
1131
- showPanel,
1132
- hidePanel,
1133
- updatePlacement
1134
- };
1135
- Object.assign($xeDateRangePicker, dateRangePickerMethods);
1136
- const renderShortcutBtn = (pos, isVertical) => {
1137
- const shortcutOpts = computeShortcutOpts.value;
1138
- const { position, align, mode } = shortcutOpts;
1139
- const shortcutList = computeShortcutList.value;
1140
- if ((0, import_utils.isEnableConf)(shortcutOpts) && shortcutList.length && (position || "left") === pos) {
1141
- return (0, import_vue.h)(
1142
- "div",
1143
- {
1144
- class: `vxe-date-range-picker--layout-${pos}-wrapper`
1145
- },
1146
- [
1147
- (0, import_vue.h)(import_button_group.default, {
1148
- options: shortcutList,
1149
- mode,
1150
- align,
1151
- vertical: isVertical,
1152
- onClick: handleShortcutEvent
1153
- })
1154
- ]
1155
- );
1156
- }
1157
- return renderEmptyElement($xeDateRangePicker);
1158
- };
1159
- const renderPanel = () => {
1160
- const popupOpts = computePopupOpts.value;
1161
- if (popupOpts.enabled === false) {
1162
- return renderEmptyElement($xeDateRangePicker);
1163
- }
1164
- const { type, separator, autoClose, valueFormat, showConfirmButton, showClearButton } = props;
1165
- const { initialized, isAniVisible, visiblePanel, panelPlacement, panelStyle, selectStValue, selectEdValue, paneStartVal, paneEndVal } = reactData;
1166
- const vSize = computeSize.value;
1167
- const btnTransfer = computeBtnTransfer.value;
1168
- const shortcutOpts = computeShortcutOpts.value;
1169
- const isClearable = computeIsClearable.value;
1170
- const panelLabelObj = computePanelLabelObj.value;
1171
- const shortcutList = computeShortcutList.value;
1172
- const isTimeType = computeIsTimeType.value;
1173
- const isTimeOrDateTimeType = computeIsTimeOrDateTimeType.value;
1174
- const defaultDates = computeDefaultDates.value;
1175
- const defaultTimes = computeDefaultTimes.value;
1176
- const timeOpts = computeTimeOpts.value;
1177
- const { appendTo } = popupOpts;
1178
- const { startLabel, endLabel } = panelLabelObj;
1179
- const { position } = shortcutOpts;
1180
- const headerSlot = slots.header;
1181
- const footerSlot = slots.footer;
1182
- const topSlot = slots.top;
1183
- const bottomSlot = slots.bottom;
1184
- const leftSlot = slots.left;
1185
- const rightSlot = slots.right;
1186
- const ppClassName = popupOpts.className;
1187
- const [sdDate, edDate] = defaultDates;
1188
- const [sdTime, edTime] = defaultTimes;
1189
- const hasShortcutBtn = shortcutList.length > 0;
1190
- const showConfirmBtn = showConfirmButton === null ? isTimeOrDateTimeType || !autoClose : showConfirmButton;
1191
- const showClearBtn = showClearButton === null ? isClearable : showClearButton;
1192
- return (0, import_vue.h)(
1193
- import_vue.Teleport,
1194
- {
1195
- to: (0, import_dom.getPopupContainer)(appendTo),
1196
- disabled: btnTransfer ? !initialized : true
1096
+ dispatchEvent("shortcut-click", shortcutParams, $event);
1097
+ };
1098
+ const dispatchEvent = (type, params, evnt) => {
1099
+ emit(type, createEvent(evnt, { $dateRangePicker: $xeDateRangePicker }, params));
1100
+ };
1101
+ const emitModel = (value) => {
1102
+ emit("update:modelValue", value);
1103
+ };
1104
+ dateRangePickerMethods = {
1105
+ dispatchEvent,
1106
+ setModelValue(startValue, endValue) {
1107
+ reactData.selectStValue = startValue || "";
1108
+ reactData.selectEdValue = endValue || "";
1109
+ const value = getRangeValue(startValue, endValue);
1110
+ emitModel(value);
1197
1111
  },
1198
- [
1199
- (0, import_vue.h)(
1200
- "div",
1201
- {
1202
- ref: refInputPanel,
1203
- class: [
1204
- "vxe-table--ignore-clear vxe-date-range-picker--panel",
1205
- `type--${type}`,
1206
- ppClassName ? import_xe_utils.default.isFunction(ppClassName) ? ppClassName({ $dateRangePicker: $xeDateRangePicker }) : ppClassName : "",
1207
- {
1208
- [`size--${vSize}`]: vSize,
1209
- "is--transfer": btnTransfer,
1210
- "ani--leave": isAniVisible,
1211
- "ani--enter": visiblePanel,
1212
- "show--top": !!(topSlot || headerSlot || hasShortcutBtn && (position === "top" || position === "header")),
1213
- "show--bottom": !!(bottomSlot || footerSlot || hasShortcutBtn && (position === "bottom" || position === "footer")),
1214
- "show--left": !!(leftSlot || hasShortcutBtn && position === "left"),
1215
- "show--right": !!(rightSlot || hasShortcutBtn && position === "right")
1216
- }
1217
- ],
1218
- placement: panelPlacement,
1219
- style: panelStyle
1220
- },
1221
- initialized && (visiblePanel || isAniVisible) ? [
1222
- (0, import_vue.h)(
1223
- "div",
1224
- {
1225
- ref: refPanelWrapper,
1226
- class: [
1227
- "vxe-date-range-picker--layout-all-wrapper",
1228
- `type--${type}`,
1229
- {
1230
- [`size--${vSize}`]: vSize
1231
- }
1232
- ]
1233
- },
1234
- [
1235
- topSlot ? (0, import_vue.h)(
1236
- "div",
1237
- {
1238
- class: "vxe-date-range-picker--layout-top-wrapper"
1239
- },
1240
- topSlot({})
1241
- ) : renderShortcutBtn("top"),
1242
- (0, import_vue.h)(
1243
- "div",
1244
- {
1245
- class: "vxe-date-range-picker--layout-body-layout-wrapper"
1246
- },
1247
- [
1248
- leftSlot ? (0, import_vue.h)(
1249
- "div",
1250
- {
1251
- class: "vxe-date-range-picker--layout-left-wrapper"
1252
- },
1253
- leftSlot({})
1254
- ) : renderShortcutBtn("left", true),
1255
- (0, import_vue.h)(
1256
- "div",
1257
- {
1258
- class: "vxe-date-range-picker--layout-body-content-wrapper"
1259
- },
1260
- [
1261
- headerSlot ? (0, import_vue.h)(
1262
- "div",
1263
- {
1264
- class: "vxe-date-range-picker--layout-header-wrapper"
1265
- },
1266
- headerSlot({})
1267
- ) : renderShortcutBtn("header"),
1268
- (0, import_vue.h)(
1269
- "div",
1270
- {
1271
- class: "vxe-date-range-picker--layout-body-wrapper"
1272
- },
1273
- [
1274
- (0, import_vue.h)(import_date_panel.default, {
1275
- ref: refStartDatePanel,
1276
- modelValue: paneStartVal,
1277
- multiple: !isTimeType,
1278
- valueSort: true,
1279
- limitCount: 3,
1280
- defaultMode: "first",
1281
- type: props.type,
1282
- className: props.className,
1283
- minDate: props.minDate,
1284
- maxDate: props.maxDate,
1285
- startDay: props.startDay,
1286
- labelFormat: props.labelFormat,
1287
- valueFormat: valueFormat === "date" || valueFormat === "timestamp" ? "" : valueFormat,
1288
- timeFormat: props.timeFormat,
1289
- defaultDate: sdDate,
1290
- defaultTime: sdTime,
1291
- timeConfig: timeOpts,
1292
- festivalMethod: props.festivalMethod || defaultFuncProps.festivalMethod,
1293
- disabledMethod: props.disabledMethod || defaultFuncProps.disabledMethod,
1294
- selectDay: props.selectDay,
1295
- cellClassName: panelCellClassName,
1296
- onChange: startPanelChangeEvent,
1297
- onDatePrev: startPanelDateBtnChangeEvent,
1298
- onDateToday: startPanelDateBtnChangeEvent,
1299
- onDateNext: startPanelDateBtnChangeEvent
1300
- }),
1301
- (0, import_vue.h)(import_date_panel.default, {
1302
- ref: refEndDatePanel,
1303
- modelValue: paneEndVal,
1304
- multiple: !isTimeType,
1305
- valueSort: true,
1306
- limitCount: 3,
1307
- defaultMode: "last",
1308
- type: props.type,
1309
- className: props.className,
1310
- minDate: props.minDate,
1311
- maxDate: props.maxDate,
1312
- startDay: props.startDay,
1313
- labelFormat: props.labelFormat,
1314
- valueFormat: valueFormat === "date" || valueFormat === "timestamp" ? "" : valueFormat,
1315
- timeFormat: props.timeFormat,
1316
- defaultDate: edDate,
1317
- defaultTime: edTime,
1318
- timeConfig: timeOpts,
1319
- festivalMethod: props.festivalMethod || defaultFuncProps.festivalMethod,
1320
- disabledMethod: props.disabledMethod || defaultFuncProps.disabledMethod,
1321
- selectDay: props.selectDay,
1322
- cellClassName: panelCellClassName,
1323
- onChange: endPanelChangeEvent,
1324
- onDatePrev: endPanelDateBtnChangeEvent,
1325
- onDateToday: endPanelDateBtnChangeEvent,
1326
- onDateNext: endPanelDateBtnChangeEvent
1327
- })
1328
- ]
1329
- ),
1330
- (0, import_vue.h)(
1331
- "div",
1332
- {
1333
- class: "vxe-date-range-picker--layout-footer-wrapper"
1334
- },
1335
- [
1336
- (0, import_vue.h)(
1337
- "div",
1338
- {
1339
- class: "vxe-date-range-picker--layout-footer-label"
1340
- },
1341
- startLabel || endLabel ? [(0, import_vue.h)("span", startLabel), (0, import_vue.h)("span", `${separator || ""}`), (0, import_vue.h)("span", endLabel)] : `${separator || ""}`
1342
- ),
1343
- (0, import_vue.h)(
1344
- "div",
1345
- {
1346
- class: "vxe-date-range-picker--layout-footer-custom"
1347
- },
1348
- footerSlot ? footerSlot({}) : [renderShortcutBtn("footer")]
1349
- ),
1350
- (0, import_vue.h)(
1351
- "div",
1352
- {
1353
- class: "vxe-date-range-picker--layout-footer-btns"
1354
- },
1355
- [
1356
- showClearBtn ? (0, import_vue.h)(import_button.default, {
1357
- size: "mini",
1358
- disabled: !(selectStValue || selectEdValue),
1359
- content: getI18n("vxe.button.clear"),
1360
- onClick: clearValueEvent
1361
- }) : renderEmptyElement($xeDateRangePicker),
1362
- showConfirmBtn ? (0, import_vue.h)(import_button.default, {
1363
- size: "mini",
1364
- status: "primary",
1365
- content: getI18n("vxe.button.confirm"),
1366
- onClick: confirmEvent
1367
- }) : renderEmptyElement($xeDateRangePicker)
1368
- ]
1369
- )
1370
- ]
1371
- )
1372
- ]
1373
- ),
1374
- rightSlot ? (0, import_vue.h)(
1375
- "div",
1376
- {
1377
- class: "vxe-date-range-picker--layout-right-wrapper"
1378
- },
1379
- rightSlot({})
1380
- ) : renderShortcutBtn("right", true)
1381
- ]
1382
- ),
1383
- bottomSlot ? (0, import_vue.h)(
1384
- "div",
1385
- {
1386
- class: "vxe-date-range-picker--layout-bottom-wrapper"
1387
- },
1388
- bottomSlot({})
1389
- ) : renderShortcutBtn("bottom")
1390
- ]
1391
- )
1392
- ] : []
1393
- )
1394
- ]
1395
- );
1396
- };
1397
- const renderPrefixIcon = () => {
1398
- const { prefixIcon } = props;
1399
- const prefixSlot = slots.prefix;
1400
- return prefixSlot || prefixIcon ? (0, import_vue.h)(
1401
- "div",
1402
- {
1403
- class: "vxe-date-range-picker--prefix",
1404
- onClick: clickPrefixEvent
1112
+ setModelValueByEvent(evnt, startValue, endValue) {
1113
+ handleChange(startValue || "", endValue || "", evnt);
1405
1114
  },
1406
- [
1407
- (0, import_vue.h)(
1408
- "div",
1409
- {
1410
- class: "vxe-date-range-picker--prefix-icon"
1411
- },
1412
- prefixSlot ? (0, import_vn.getSlotVNs)(prefixSlot({})) : [
1413
- (0, import_vue.h)("i", {
1414
- class: prefixIcon
1415
- })
1416
- ]
1417
- )
1418
- ]
1419
- ) : null;
1420
- };
1421
- const renderSuffixIcon = () => {
1422
- const { suffixIcon } = props;
1423
- const { selectStValue, selectEdValue } = reactData;
1424
- const suffixSlot = slots.suffix;
1425
- const isDisabled = computeIsDisabled.value;
1426
- const isClearable = computeIsClearable.value;
1427
- return (0, import_vue.h)(
1428
- "div",
1429
- {
1430
- class: [
1431
- "vxe-date-range-picker--suffix",
1432
- {
1433
- "is--clear": isClearable && !isDisabled && (selectStValue || selectEdValue)
1434
- }
1435
- ]
1115
+ focus() {
1116
+ const inputElem = refInputTarget.value;
1117
+ reactData.isActivated = true;
1118
+ inputElem.focus();
1119
+ return (0, import_vue.nextTick)();
1120
+ },
1121
+ blur() {
1122
+ const inputElem = refInputTarget.value;
1123
+ inputElem.blur();
1124
+ reactData.isActivated = false;
1125
+ return (0, import_vue.nextTick)();
1436
1126
  },
1437
- [
1438
- isClearable ? (0, import_vue.h)(
1127
+ select() {
1128
+ const inputElem = refInputTarget.value;
1129
+ inputElem.select();
1130
+ reactData.isActivated = false;
1131
+ return (0, import_vue.nextTick)();
1132
+ },
1133
+ showPanel,
1134
+ hidePanel,
1135
+ updatePlacement
1136
+ };
1137
+ Object.assign($xeDateRangePicker, dateRangePickerMethods);
1138
+ const renderShortcutBtn = (pos, isVertical) => {
1139
+ const shortcutOpts = computeShortcutOpts.value;
1140
+ const { position, align, mode } = shortcutOpts;
1141
+ const shortcutList = computeShortcutList.value;
1142
+ if ((0, import_utils.isEnableConf)(shortcutOpts) && shortcutList.length && (position || "left") === pos) {
1143
+ return (0, import_vue.h)(
1439
1144
  "div",
1440
1145
  {
1441
- class: "vxe-date-range-picker--clear-icon",
1442
- onClick: clearValueEvent
1146
+ class: `vxe-date-range-picker--layout-${pos}-wrapper`
1443
1147
  },
1444
1148
  [
1445
- (0, import_vue.h)("i", {
1446
- class: getIcon().INPUT_CLEAR
1149
+ (0, import_vue.h)(import_button_group.default, {
1150
+ options: shortcutList,
1151
+ mode,
1152
+ align,
1153
+ vertical: isVertical,
1154
+ onClick: handleShortcutEvent
1447
1155
  })
1448
1156
  ]
1449
- ) : renderEmptyElement($xeDateRangePicker),
1450
- renderExtraSuffixIcon(),
1451
- suffixSlot || suffixIcon ? (0, import_vue.h)(
1452
- "div",
1453
- {
1454
- class: "vxe-date-range-picker--suffix-icon",
1455
- onClick: clickSuffixEvent
1456
- },
1457
- suffixSlot ? (0, import_vn.getSlotVNs)(suffixSlot({})) : [
1458
- (0, import_vue.h)("i", {
1459
- class: suffixIcon
1460
- })
1157
+ );
1158
+ }
1159
+ return renderEmptyElement($xeDateRangePicker);
1160
+ };
1161
+ const renderPanel = () => {
1162
+ const popupOpts = computePopupOpts.value;
1163
+ if (popupOpts.enabled === false) {
1164
+ return renderEmptyElement($xeDateRangePicker);
1165
+ }
1166
+ const { type, separator, autoClose, valueFormat, showConfirmButton, showClearButton } = props;
1167
+ const { initialized, isAniVisible, visiblePanel, panelPlacement, panelStyle, selectStValue, selectEdValue, paneStartVal, paneEndVal } = reactData;
1168
+ const vSize = computeSize.value;
1169
+ const btnTransfer = computeBtnTransfer.value;
1170
+ const shortcutOpts = computeShortcutOpts.value;
1171
+ const isClearable = computeIsClearable.value;
1172
+ const panelLabelObj = computePanelLabelObj.value;
1173
+ const shortcutList = computeShortcutList.value;
1174
+ const isTimeType = computeIsTimeType.value;
1175
+ const isTimeOrDateTimeType = computeIsTimeOrDateTimeType.value;
1176
+ const defaultDates = computeDefaultDates.value;
1177
+ const defaultTimes = computeDefaultTimes.value;
1178
+ const timeOpts = computeTimeOpts.value;
1179
+ const { appendTo } = popupOpts;
1180
+ const { startLabel, endLabel } = panelLabelObj;
1181
+ const { position } = shortcutOpts;
1182
+ const headerSlot = slots.header;
1183
+ const footerSlot = slots.footer;
1184
+ const topSlot = slots.top;
1185
+ const bottomSlot = slots.bottom;
1186
+ const leftSlot = slots.left;
1187
+ const rightSlot = slots.right;
1188
+ const ppClassName = popupOpts.className;
1189
+ const [sdDate, edDate] = defaultDates;
1190
+ const [sdTime, edTime] = defaultTimes;
1191
+ const hasShortcutBtn = shortcutList.length > 0;
1192
+ const showConfirmBtn = showConfirmButton === null ? isTimeOrDateTimeType || !autoClose : showConfirmButton;
1193
+ const showClearBtn = showClearButton === null ? isClearable : showClearButton;
1194
+ return (0, import_vue.h)(
1195
+ import_vue.Teleport,
1196
+ {
1197
+ to: (0, import_dom.getPopupContainer)(appendTo),
1198
+ disabled: btnTransfer ? !initialized : true
1199
+ },
1200
+ [
1201
+ (0, import_vue.h)(
1202
+ "div",
1203
+ {
1204
+ ref: refInputPanel,
1205
+ class: [
1206
+ "vxe-table--ignore-clear vxe-date-range-picker--panel",
1207
+ `type--${type}`,
1208
+ ppClassName ? import_xe_utils.default.isFunction(ppClassName) ? ppClassName({ $dateRangePicker: $xeDateRangePicker }) : ppClassName : "",
1209
+ {
1210
+ [`size--${vSize}`]: vSize,
1211
+ "is--transfer": btnTransfer,
1212
+ "ani--leave": isAniVisible,
1213
+ "ani--enter": visiblePanel,
1214
+ "show--top": !!(topSlot || headerSlot || hasShortcutBtn && (position === "top" || position === "header")),
1215
+ "show--bottom": !!(bottomSlot || footerSlot || hasShortcutBtn && (position === "bottom" || position === "footer")),
1216
+ "show--left": !!(leftSlot || hasShortcutBtn && position === "left"),
1217
+ "show--right": !!(rightSlot || hasShortcutBtn && position === "right")
1218
+ }
1219
+ ],
1220
+ placement: panelPlacement,
1221
+ style: panelStyle
1222
+ },
1223
+ initialized && (visiblePanel || isAniVisible) ? [
1224
+ (0, import_vue.h)(
1225
+ "div",
1226
+ {
1227
+ ref: refPanelWrapper,
1228
+ class: [
1229
+ "vxe-date-range-picker--layout-all-wrapper",
1230
+ `type--${type}`,
1231
+ {
1232
+ [`size--${vSize}`]: vSize
1233
+ }
1234
+ ]
1235
+ },
1236
+ [
1237
+ topSlot ? (0, import_vue.h)(
1238
+ "div",
1239
+ {
1240
+ class: "vxe-date-range-picker--layout-top-wrapper"
1241
+ },
1242
+ topSlot({})
1243
+ ) : renderShortcutBtn("top"),
1244
+ (0, import_vue.h)(
1245
+ "div",
1246
+ {
1247
+ class: "vxe-date-range-picker--layout-body-layout-wrapper"
1248
+ },
1249
+ [
1250
+ leftSlot ? (0, import_vue.h)(
1251
+ "div",
1252
+ {
1253
+ class: "vxe-date-range-picker--layout-left-wrapper"
1254
+ },
1255
+ leftSlot({})
1256
+ ) : renderShortcutBtn("left", true),
1257
+ (0, import_vue.h)(
1258
+ "div",
1259
+ {
1260
+ class: "vxe-date-range-picker--layout-body-content-wrapper"
1261
+ },
1262
+ [
1263
+ headerSlot ? (0, import_vue.h)(
1264
+ "div",
1265
+ {
1266
+ class: "vxe-date-range-picker--layout-header-wrapper"
1267
+ },
1268
+ headerSlot({})
1269
+ ) : renderShortcutBtn("header"),
1270
+ (0, import_vue.h)(
1271
+ "div",
1272
+ {
1273
+ class: "vxe-date-range-picker--layout-body-wrapper"
1274
+ },
1275
+ [
1276
+ (0, import_vue.h)(import_date_panel.default, {
1277
+ ref: refStartDatePanel,
1278
+ modelValue: paneStartVal,
1279
+ multiple: !isTimeType,
1280
+ valueSort: true,
1281
+ limitCount: 3,
1282
+ defaultMode: "first",
1283
+ type: props.type,
1284
+ className: props.className,
1285
+ minDate: props.minDate,
1286
+ maxDate: props.maxDate,
1287
+ startDay: props.startDay,
1288
+ labelFormat: props.labelFormat,
1289
+ valueFormat: valueFormat === "date" || valueFormat === "timestamp" ? "" : valueFormat,
1290
+ timeFormat: props.timeFormat,
1291
+ defaultDate: sdDate,
1292
+ defaultTime: sdTime,
1293
+ timeConfig: timeOpts,
1294
+ festivalMethod: props.festivalMethod || defaultFuncProps.festivalMethod,
1295
+ disabledMethod: props.disabledMethod || defaultFuncProps.disabledMethod,
1296
+ selectDay: props.selectDay,
1297
+ cellClassName: panelCellClassName,
1298
+ onChange: startPanelChangeEvent,
1299
+ onDatePrev: startPanelDateBtnChangeEvent,
1300
+ onDateToday: startPanelDateBtnChangeEvent,
1301
+ onDateNext: startPanelDateBtnChangeEvent
1302
+ }),
1303
+ (0, import_vue.h)(import_date_panel.default, {
1304
+ ref: refEndDatePanel,
1305
+ modelValue: paneEndVal,
1306
+ multiple: !isTimeType,
1307
+ valueSort: true,
1308
+ limitCount: 3,
1309
+ defaultMode: "last",
1310
+ type: props.type,
1311
+ className: props.className,
1312
+ minDate: props.minDate,
1313
+ maxDate: props.maxDate,
1314
+ startDay: props.startDay,
1315
+ labelFormat: props.labelFormat,
1316
+ valueFormat: valueFormat === "date" || valueFormat === "timestamp" ? "" : valueFormat,
1317
+ timeFormat: props.timeFormat,
1318
+ defaultDate: edDate,
1319
+ defaultTime: edTime,
1320
+ timeConfig: timeOpts,
1321
+ festivalMethod: props.festivalMethod || defaultFuncProps.festivalMethod,
1322
+ disabledMethod: props.disabledMethod || defaultFuncProps.disabledMethod,
1323
+ selectDay: props.selectDay,
1324
+ cellClassName: panelCellClassName,
1325
+ onChange: endPanelChangeEvent,
1326
+ onDatePrev: endPanelDateBtnChangeEvent,
1327
+ onDateToday: endPanelDateBtnChangeEvent,
1328
+ onDateNext: endPanelDateBtnChangeEvent
1329
+ })
1330
+ ]
1331
+ ),
1332
+ (0, import_vue.h)(
1333
+ "div",
1334
+ {
1335
+ class: "vxe-date-range-picker--layout-footer-wrapper"
1336
+ },
1337
+ [
1338
+ (0, import_vue.h)(
1339
+ "div",
1340
+ {
1341
+ class: "vxe-date-range-picker--layout-footer-label"
1342
+ },
1343
+ startLabel || endLabel ? [(0, import_vue.h)("span", startLabel), (0, import_vue.h)("span", `${separator || ""}`), (0, import_vue.h)("span", endLabel)] : `${separator || ""}`
1344
+ ),
1345
+ (0, import_vue.h)(
1346
+ "div",
1347
+ {
1348
+ class: "vxe-date-range-picker--layout-footer-custom"
1349
+ },
1350
+ footerSlot ? footerSlot({}) : [renderShortcutBtn("footer")]
1351
+ ),
1352
+ (0, import_vue.h)(
1353
+ "div",
1354
+ {
1355
+ class: "vxe-date-range-picker--layout-footer-btns"
1356
+ },
1357
+ [
1358
+ showClearBtn ? (0, import_vue.h)(import_button.default, {
1359
+ size: "mini",
1360
+ disabled: !(selectStValue || selectEdValue),
1361
+ content: getI18n("vxe.button.clear"),
1362
+ onClick: clearValueEvent
1363
+ }) : renderEmptyElement($xeDateRangePicker),
1364
+ showConfirmBtn ? (0, import_vue.h)(import_button.default, {
1365
+ size: "mini",
1366
+ status: "primary",
1367
+ content: getI18n("vxe.button.confirm"),
1368
+ onClick: confirmEvent
1369
+ }) : renderEmptyElement($xeDateRangePicker)
1370
+ ]
1371
+ )
1372
+ ]
1373
+ )
1374
+ ]
1375
+ ),
1376
+ rightSlot ? (0, import_vue.h)(
1377
+ "div",
1378
+ {
1379
+ class: "vxe-date-range-picker--layout-right-wrapper"
1380
+ },
1381
+ rightSlot({})
1382
+ ) : renderShortcutBtn("right", true)
1383
+ ]
1384
+ ),
1385
+ bottomSlot ? (0, import_vue.h)(
1386
+ "div",
1387
+ {
1388
+ class: "vxe-date-range-picker--layout-bottom-wrapper"
1389
+ },
1390
+ bottomSlot({})
1391
+ ) : renderShortcutBtn("bottom")
1392
+ ]
1393
+ )
1394
+ ] : []
1395
+ )
1396
+ ]
1397
+ );
1398
+ };
1399
+ const renderPrefixIcon = () => {
1400
+ const { prefixIcon } = props;
1401
+ const prefixSlot = slots.prefix;
1402
+ return prefixSlot || prefixIcon ? (0, import_vue.h)(
1403
+ "div",
1404
+ {
1405
+ class: "vxe-date-range-picker--prefix",
1406
+ onClick: clickPrefixEvent
1407
+ },
1408
+ [
1409
+ (0, import_vue.h)(
1410
+ "div",
1411
+ {
1412
+ class: "vxe-date-range-picker--prefix-icon"
1413
+ },
1414
+ prefixSlot ? (0, import_vn.getSlotVNs)(prefixSlot({})) : [
1415
+ (0, import_vue.h)("i", {
1416
+ class: prefixIcon
1417
+ })
1418
+ ]
1419
+ )
1420
+ ]
1421
+ ) : null;
1422
+ };
1423
+ const renderSuffixIcon = () => {
1424
+ const { suffixIcon } = props;
1425
+ const { selectStValue, selectEdValue } = reactData;
1426
+ const suffixSlot = slots.suffix;
1427
+ const isDisabled = computeIsDisabled.value;
1428
+ const isClearable = computeIsClearable.value;
1429
+ return (0, import_vue.h)(
1430
+ "div",
1431
+ {
1432
+ class: [
1433
+ "vxe-date-range-picker--suffix",
1434
+ {
1435
+ "is--clear": isClearable && !isDisabled && (selectStValue || selectEdValue)
1436
+ }
1461
1437
  ]
1462
- ) : renderEmptyElement($xeDateRangePicker)
1463
- ]
1464
- );
1465
- };
1466
- const renderExtraSuffixIcon = () => {
1467
- return (0, import_vue.h)(
1468
- "div",
1469
- {
1470
- class: "vxe-date-range-picker--control-icon",
1471
- onClick: clickIconEvent
1472
- },
1473
- [
1474
- (0, import_vue.h)("i", {
1475
- class: ["vxe-date-range-picker--date-picker-icon", getIcon().DATE_PICKER_DATE]
1476
- })
1477
- ]
1478
- );
1479
- };
1480
- const renderVN = () => {
1481
- const { className, inputClassName, type, name, autoComplete } = props;
1482
- const { selectStValue, selectEdValue, visiblePanel, isActivated } = reactData;
1483
- const vSize = computeSize.value;
1484
- const isDisabled = computeIsDisabled.value;
1485
- const formReadonly = computeFormReadonly.value;
1486
- const inputLabel = computeInputLabel.value;
1487
- if (formReadonly) {
1438
+ },
1439
+ [
1440
+ isClearable ? (0, import_vue.h)(
1441
+ "div",
1442
+ {
1443
+ class: "vxe-date-range-picker--clear-icon",
1444
+ onClick: clearValueEvent
1445
+ },
1446
+ [
1447
+ (0, import_vue.h)("i", {
1448
+ class: getIcon().INPUT_CLEAR
1449
+ })
1450
+ ]
1451
+ ) : renderEmptyElement($xeDateRangePicker),
1452
+ renderExtraSuffixIcon(),
1453
+ suffixSlot || suffixIcon ? (0, import_vue.h)(
1454
+ "div",
1455
+ {
1456
+ class: "vxe-date-range-picker--suffix-icon",
1457
+ onClick: clickSuffixEvent
1458
+ },
1459
+ suffixSlot ? (0, import_vn.getSlotVNs)(suffixSlot({})) : [
1460
+ (0, import_vue.h)("i", {
1461
+ class: suffixIcon
1462
+ })
1463
+ ]
1464
+ ) : renderEmptyElement($xeDateRangePicker)
1465
+ ]
1466
+ );
1467
+ };
1468
+ const renderExtraSuffixIcon = () => {
1488
1469
  return (0, import_vue.h)(
1489
1470
  "div",
1490
1471
  {
1491
- ref: refElem,
1492
- class: ["vxe-date-range-picker--readonly", `type--${type}`, className]
1472
+ class: "vxe-date-range-picker--control-icon",
1473
+ onClick: clickIconEvent
1493
1474
  },
1494
- inputLabel
1475
+ [
1476
+ (0, import_vue.h)("i", {
1477
+ class: ["vxe-date-range-picker--date-picker-icon", getIcon().DATE_PICKER_DATE]
1478
+ })
1479
+ ]
1495
1480
  );
1496
- }
1497
- const currStyle = computeCurrStyle.value;
1498
- const inpPlaceholder = computeInpPlaceholder.value;
1499
- const isClearable = computeIsClearable.value;
1500
- const prefix = renderPrefixIcon();
1501
- const suffix = renderSuffixIcon();
1502
- return (0, import_vue.h)(
1503
- "div",
1504
- {
1505
- ref: refElem,
1506
- class: [
1507
- "vxe-date-range-picker",
1508
- `type--${type}`,
1509
- className,
1510
- {
1511
- [`size--${vSize}`]: vSize,
1512
- "is--prefix": !!prefix,
1513
- "is--suffix": !!suffix,
1514
- "is--visible": visiblePanel,
1515
- "is--disabled": isDisabled,
1516
- "is--active": isActivated,
1517
- "show--clear": isClearable && !isDisabled && (selectStValue || selectEdValue)
1518
- }
1519
- ],
1520
- style: currStyle,
1521
- spellcheck: false
1522
- },
1523
- [
1524
- prefix || renderEmptyElement($xeDateRangePicker),
1525
- (0, import_vue.h)(
1481
+ };
1482
+ const renderVN = () => {
1483
+ const { className, inputClassName, type, name, autoComplete } = props;
1484
+ const { selectStValue, selectEdValue, visiblePanel, isActivated } = reactData;
1485
+ const vSize = computeSize.value;
1486
+ const isDisabled = computeIsDisabled.value;
1487
+ const formReadonly = computeFormReadonly.value;
1488
+ const inputLabel = computeInputLabel.value;
1489
+ if (formReadonly) {
1490
+ return (0, import_vue.h)(
1526
1491
  "div",
1527
1492
  {
1528
- class: "vxe-date-range-picker--wrapper"
1493
+ ref: refElem,
1494
+ class: ["vxe-date-range-picker--readonly", `type--${type}`, className]
1529
1495
  },
1530
- [
1531
- (0, import_vue.h)("input", {
1532
- ref: refInputTarget,
1533
- class: "vxe-date-range-picker--inner" + (inputClassName ? " " + inputClassName : ""),
1534
- value: inputLabel,
1535
- name,
1536
- type: "text",
1537
- placeholder: inpPlaceholder,
1538
- editable: false,
1539
- disabled: isDisabled,
1540
- autocomplete: autoComplete,
1541
- onKeydown: keydownEvent,
1542
- onKeyup: keyupEvent,
1543
- onClick: clickEvent,
1544
- onChange: changeEvent,
1545
- onFocus: focusEvent,
1546
- onBlur: blurEvent
1547
- })
1548
- ]
1549
- ),
1550
- suffix || renderEmptyElement($xeDateRangePicker),
1551
- // 下拉面板
1552
- renderPanel()
1553
- ]
1496
+ inputLabel
1497
+ );
1498
+ }
1499
+ const currStyle = computeCurrStyle.value;
1500
+ const inpPlaceholder = computeInpPlaceholder.value;
1501
+ const isClearable = computeIsClearable.value;
1502
+ const prefix = renderPrefixIcon();
1503
+ const suffix = renderSuffixIcon();
1504
+ return (0, import_vue.h)(
1505
+ "div",
1506
+ {
1507
+ ref: refElem,
1508
+ class: [
1509
+ "vxe-date-range-picker",
1510
+ `type--${type}`,
1511
+ className,
1512
+ {
1513
+ [`size--${vSize}`]: vSize,
1514
+ "is--prefix": !!prefix,
1515
+ "is--suffix": !!suffix,
1516
+ "is--visible": visiblePanel,
1517
+ "is--disabled": isDisabled,
1518
+ "is--active": isActivated,
1519
+ "show--clear": isClearable && !isDisabled && (selectStValue || selectEdValue)
1520
+ }
1521
+ ],
1522
+ style: currStyle,
1523
+ spellcheck: false
1524
+ },
1525
+ [
1526
+ prefix || renderEmptyElement($xeDateRangePicker),
1527
+ (0, import_vue.h)(
1528
+ "div",
1529
+ {
1530
+ class: "vxe-date-range-picker--wrapper"
1531
+ },
1532
+ [
1533
+ (0, import_vue.h)("input", {
1534
+ ref: refInputTarget,
1535
+ class: "vxe-date-range-picker--inner" + (inputClassName ? " " + inputClassName : ""),
1536
+ value: inputLabel,
1537
+ name,
1538
+ type: "text",
1539
+ placeholder: inpPlaceholder,
1540
+ editable: false,
1541
+ disabled: isDisabled,
1542
+ autocomplete: autoComplete,
1543
+ onKeydown: keydownEvent,
1544
+ onKeyup: keyupEvent,
1545
+ onClick: clickEvent,
1546
+ onChange: changeEvent,
1547
+ onFocus: focusEvent,
1548
+ onBlur: blurEvent
1549
+ })
1550
+ ]
1551
+ ),
1552
+ suffix || renderEmptyElement($xeDateRangePicker),
1553
+ // 下拉面板
1554
+ renderPanel()
1555
+ ]
1556
+ );
1557
+ };
1558
+ (0, import_vue.watch)(
1559
+ () => props.modelValue,
1560
+ () => {
1561
+ updateModelValue(true);
1562
+ }
1554
1563
  );
1555
- };
1556
- (0, import_vue.watch)(
1557
- () => props.modelValue,
1558
- () => {
1559
- updateModelValue(true);
1560
- }
1561
- );
1562
- (0, import_vue.watch)(computeMVal, () => {
1563
- updateModelValue(false);
1564
- });
1565
- updateModelValue(true);
1566
- (0, import_vue.nextTick)(() => {
1567
- globalEvents.on($xeDateRangePicker, "mousedown", handleGlobalMousedownEvent);
1568
- globalEvents.on($xeDateRangePicker, "keydown", handleGlobalKeydownEvent);
1569
- globalEvents.on($xeDateRangePicker, "blur", handleGlobalBlurEvent);
1570
- globalEvents.on($xeDateRangePicker, "resize", handleGlobalResizeEvent);
1571
- globalEvents.on($xeDateRangePicker, "scroll", handleGlobalScrollEvent);
1572
- });
1573
- (0, import_vue.onDeactivated)(() => {
1574
- checkValue();
1575
- });
1576
- (0, import_vue.onBeforeUnmount)(() => {
1577
- checkValue();
1578
- });
1579
- (0, import_vue.onUnmounted)(() => {
1580
- globalEvents.off($xeDateRangePicker, "mousedown");
1581
- globalEvents.off($xeDateRangePicker, "keydown");
1582
- globalEvents.off($xeDateRangePicker, "blur");
1583
- globalEvents.off($xeDateRangePicker, "resize");
1584
- globalEvents.off($xeDateRangePicker, "scroll");
1585
- import_xe_utils.default.assign(reactData, createReactData());
1586
- import_xe_utils.default.assign(internalData, createInternalData());
1587
- });
1588
- (0, import_vue.provide)("$xeDateRangePicker", $xeDateRangePicker);
1589
- $xeDateRangePicker.renderVN = renderVN;
1590
- return $xeDateRangePicker;
1591
- },
1592
- render() {
1593
- return this.renderVN();
1594
- }
1595
- });
1564
+ (0, import_vue.watch)(computeMVal, () => {
1565
+ updateModelValue(false);
1566
+ });
1567
+ updateModelValue(true);
1568
+ (0, import_vue.nextTick)(() => {
1569
+ globalEvents.on($xeDateRangePicker, "mousedown", handleGlobalMousedownEvent);
1570
+ globalEvents.on($xeDateRangePicker, "keydown", handleGlobalKeydownEvent);
1571
+ globalEvents.on($xeDateRangePicker, "blur", handleGlobalBlurEvent);
1572
+ globalEvents.on($xeDateRangePicker, "resize", handleGlobalResizeEvent);
1573
+ globalEvents.on($xeDateRangePicker, "scroll", handleGlobalScrollEvent);
1574
+ });
1575
+ (0, import_vue.onDeactivated)(() => {
1576
+ checkValue();
1577
+ });
1578
+ (0, import_vue.onBeforeUnmount)(() => {
1579
+ checkValue();
1580
+ });
1581
+ (0, import_vue.onUnmounted)(() => {
1582
+ globalEvents.off($xeDateRangePicker, "mousedown");
1583
+ globalEvents.off($xeDateRangePicker, "keydown");
1584
+ globalEvents.off($xeDateRangePicker, "blur");
1585
+ globalEvents.off($xeDateRangePicker, "resize");
1586
+ globalEvents.off($xeDateRangePicker, "scroll");
1587
+ import_xe_utils.default.assign(reactData, createReactData());
1588
+ import_xe_utils.default.assign(internalData, createInternalData());
1589
+ });
1590
+ (0, import_vue.provide)("$xeDateRangePicker", $xeDateRangePicker);
1591
+ $xeDateRangePicker.renderVN = renderVN;
1592
+ return $xeDateRangePicker;
1593
+ },
1594
+ render() {
1595
+ return this.renderVN();
1596
+ }
1597
+ })
1598
+ );