bkui-vue 2.0.1-beta.11 → 2.0.1-beta.110

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 (523) hide show
  1. package/README.md +15 -0
  2. package/dist/index.cjs.js +142 -168
  3. package/dist/index.esm.js +29125 -32074
  4. package/dist/index.umd.js +142 -168
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -1
  7. package/lib/affix/affix.variable.css +1 -0
  8. package/lib/affix/index.d.ts +111 -57
  9. package/lib/affix/index.js +24 -24
  10. package/lib/alert/alert.d.ts +5 -12
  11. package/lib/alert/alert.variable.css +1 -0
  12. package/lib/alert/index.d.ts +131 -93
  13. package/lib/alert/index.js +25 -25
  14. package/lib/animate-number/index.d.ts +96 -33
  15. package/lib/animate-number/index.js +7 -8
  16. package/lib/backtop/backtop.d.ts +1 -1
  17. package/lib/backtop/backtop.variable.css +1 -0
  18. package/lib/backtop/index.d.ts +118 -70
  19. package/lib/backtop/index.js +16 -17
  20. package/lib/badge/badge.variable.css +1 -0
  21. package/lib/badge/index.d.ts +152 -119
  22. package/lib/badge/index.js +20 -20
  23. package/lib/breadcrumb/breadcrumb.variable.css +1 -0
  24. package/lib/breadcrumb/index.d.ts +119 -67
  25. package/lib/breadcrumb/index.js +17 -17
  26. package/lib/button/button.css +188 -144
  27. package/lib/button/button.d.ts +10 -10
  28. package/lib/button/button.less +74 -71
  29. package/lib/button/button.variable.css +189 -144
  30. package/lib/button/index.d.ts +160 -124
  31. package/lib/button/index.js +26 -26
  32. package/lib/card/card.variable.css +1 -0
  33. package/lib/card/index.d.ts +157 -128
  34. package/lib/card/index.js +22 -20
  35. package/lib/cascader/cascader-panel.d.ts +6 -1
  36. package/lib/cascader/cascader.css +4 -0
  37. package/lib/cascader/cascader.d.ts +8 -4
  38. package/lib/cascader/cascader.less +5 -0
  39. package/lib/cascader/cascader.variable.css +5 -0
  40. package/lib/cascader/index.d.ts +355 -393
  41. package/lib/cascader/index.js +377 -308
  42. package/lib/cascader/interface.d.ts +1 -1
  43. package/lib/checkbox/checkbox-group.d.ts +0 -16
  44. package/lib/checkbox/checkbox.css +8 -0
  45. package/lib/checkbox/checkbox.d.ts +40 -8
  46. package/lib/checkbox/checkbox.less +12 -0
  47. package/lib/checkbox/checkbox.variable.css +9 -0
  48. package/lib/checkbox/index.d.ts +194 -127
  49. package/lib/checkbox/index.js +65 -52
  50. package/lib/checkbox/type.d.ts +1 -1
  51. package/lib/code-diff/code-diff.variable.css +1 -0
  52. package/lib/code-diff/index.d.ts +82 -65
  53. package/lib/code-diff/index.js +446 -389
  54. package/lib/collapse/collapse-panel.d.ts +5 -5
  55. package/lib/collapse/collapse.variable.css +1 -0
  56. package/lib/collapse/index.d.ts +180 -161
  57. package/lib/collapse/index.js +31 -30
  58. package/lib/collapse/props.d.ts +2 -2
  59. package/lib/collapse/utils.d.ts +2 -2
  60. package/lib/collapse-transition/collapse-transition.variable.css +1 -0
  61. package/lib/collapse-transition/index.d.ts +94 -19
  62. package/lib/collapse-transition/index.js +3 -4
  63. package/lib/color-picker/color-picker.d.ts +17 -1
  64. package/lib/color-picker/color-picker.variable.css +1 -0
  65. package/lib/color-picker/index.d.ts +168 -124
  66. package/lib/color-picker/index.js +93 -88
  67. package/lib/components.d.ts +30 -32
  68. package/lib/components.js +29 -31
  69. package/lib/config-provider/config-provider.variable.css +1 -0
  70. package/lib/config-provider/index.d.ts +228 -161
  71. package/lib/config-provider/index.js +17 -17
  72. package/lib/container/container.d.ts +1 -1
  73. package/lib/container/container.variable.css +1 -0
  74. package/lib/container/index.d.ts +85 -74
  75. package/lib/container/index.js +32 -35
  76. package/lib/date-picker/base/date-table.d.ts +1 -1
  77. package/lib/date-picker/base/month-table.d.ts +1 -1
  78. package/lib/date-picker/base/picker-dropdown.d.ts +2 -2
  79. package/lib/date-picker/base/time-spinner.d.ts +3 -3
  80. package/lib/date-picker/base/year-table.d.ts +1 -1
  81. package/lib/date-picker/date-picker.d.ts +7 -15
  82. package/lib/date-picker/date-picker.variable.css +1 -0
  83. package/lib/date-picker/index.d.ts +356 -399
  84. package/lib/date-picker/index.js +343 -297
  85. package/lib/date-picker/interface.d.ts +9 -9
  86. package/lib/date-picker/panel/date-range.d.ts +6 -6
  87. package/lib/date-picker/panel/date.d.ts +2 -2
  88. package/lib/date-picker/panel/time-range.d.ts +3 -12
  89. package/lib/date-picker/panel/time.d.ts +3 -12
  90. package/lib/date-picker/props.d.ts +1 -5
  91. package/lib/date-picker/time-picker.d.ts +7 -14
  92. package/lib/date-picker/utils.d.ts +1 -1
  93. package/lib/dialog/dialog.d.ts +47 -31
  94. package/lib/dialog/dialog.variable.css +1 -0
  95. package/lib/dialog/index.d.ts +309 -305
  96. package/lib/dialog/index.js +252 -249
  97. package/lib/dialog/props.d.ts +20 -13
  98. package/lib/directives/index.d.ts +4 -3
  99. package/lib/directives/index.js +219 -197
  100. package/lib/directives/tooltips.d.ts +1 -1
  101. package/lib/dist.index.js +2 -4
  102. package/lib/divider/divider.d.ts +5 -5
  103. package/lib/divider/divider.variable.css +1 -0
  104. package/lib/divider/index.d.ts +116 -62
  105. package/lib/divider/index.js +4 -5
  106. package/lib/divider/props.d.ts +2 -2
  107. package/lib/dropdown/dropdown-item.d.ts +1 -1
  108. package/lib/dropdown/dropdown-menu.d.ts +1 -1
  109. package/lib/dropdown/dropdown.d.ts +7 -7
  110. package/lib/dropdown/dropdown.variable.css +1 -0
  111. package/lib/dropdown/index.d.ts +144 -102
  112. package/lib/dropdown/index.js +32 -32
  113. package/lib/exception/exception.d.ts +9 -9
  114. package/lib/exception/exception.variable.css +1 -0
  115. package/lib/exception/index.d.ts +107 -46
  116. package/lib/exception/index.js +31 -31
  117. package/lib/exception/typings/index.d.ts +1 -1
  118. package/lib/fixed-navbar/fixed-navbar.variable.css +1 -0
  119. package/lib/fixed-navbar/index.d.ts +113 -59
  120. package/lib/fixed-navbar/index.js +4 -5
  121. package/lib/form/form-item.d.ts +7 -19
  122. package/lib/form/form.d.ts +3 -3
  123. package/lib/form/form.variable.css +1 -0
  124. package/lib/form/index.d.ts +139 -94
  125. package/lib/form/index.js +44 -42
  126. package/lib/form/type.d.ts +2 -2
  127. package/lib/icon/angle-double-down-line.js +17 -17
  128. package/lib/icon/angle-double-left-line.js +17 -17
  129. package/lib/icon/angle-double-left.js +17 -17
  130. package/lib/icon/angle-double-right-line.js +17 -17
  131. package/lib/icon/angle-double-right.js +17 -17
  132. package/lib/icon/angle-double-up-line.js +17 -17
  133. package/lib/icon/angle-down-fill.js +17 -17
  134. package/lib/icon/angle-down-line.js +17 -17
  135. package/lib/icon/angle-down.js +17 -17
  136. package/lib/icon/angle-left.js +17 -17
  137. package/lib/icon/angle-right.js +17 -17
  138. package/lib/icon/angle-up-fill.js +17 -17
  139. package/lib/icon/angle-up.js +17 -17
  140. package/lib/icon/archive-fill.js +17 -17
  141. package/lib/icon/arrows-left.js +17 -17
  142. package/lib/icon/arrows-right.js +17 -17
  143. package/lib/icon/assistant.js +17 -17
  144. package/lib/icon/audio-fill.js +17 -17
  145. package/lib/icon/bk.js +17 -17
  146. package/lib/icon/circle.js +17 -17
  147. package/lib/icon/close-line.js +17 -17
  148. package/lib/icon/close.js +17 -17
  149. package/lib/icon/code.js +17 -17
  150. package/lib/icon/cog-shape.js +17 -17
  151. package/lib/icon/collapse-left.js +17 -17
  152. package/lib/icon/copy-shape.js +17 -17
  153. package/lib/icon/copy.js +17 -17
  154. package/lib/icon/data-shape.js +17 -17
  155. package/lib/icon/del.js +17 -17
  156. package/lib/icon/doc-fill.js +17 -17
  157. package/lib/icon/done.js +17 -17
  158. package/lib/icon/down-shape.js +17 -17
  159. package/lib/icon/down-small.js +17 -17
  160. package/lib/icon/edit-line.js +17 -17
  161. package/lib/icon/ellipsis.js +17 -17
  162. package/lib/icon/enlarge-line.js +17 -17
  163. package/lib/icon/error.js +17 -17
  164. package/lib/icon/excel-fill.js +17 -17
  165. package/lib/icon/exclamation-circle-shape.js +17 -17
  166. package/lib/icon/eye.js +17 -17
  167. package/lib/icon/filliscreen-line.js +17 -17
  168. package/lib/icon/fix-line.js +17 -17
  169. package/lib/icon/fix-shape.js +17 -17
  170. package/lib/icon/folder-open.js +17 -17
  171. package/lib/icon/folder-shape-open.js +17 -17
  172. package/lib/icon/folder-shape.js +17 -17
  173. package/lib/icon/folder.js +17 -17
  174. package/lib/icon/funnel.js +17 -17
  175. package/lib/icon/grag-fill.js +17 -17
  176. package/lib/icon/help-document-fill.js +17 -17
  177. package/lib/icon/help-fill.js +17 -17
  178. package/lib/icon/help.js +17 -17
  179. package/lib/icon/image-fill.js +17 -17
  180. package/lib/icon/img-error.js +17 -17
  181. package/lib/icon/img-placehoulder.js +17 -17
  182. package/lib/icon/index.d.ts +11 -11
  183. package/lib/icon/index.js +11 -11
  184. package/lib/icon/info-line.js +17 -17
  185. package/lib/icon/info.js +17 -17
  186. package/lib/icon/left-shape.js +17 -17
  187. package/lib/icon/left-turn-line.js +17 -17
  188. package/lib/icon/loading.js +17 -17
  189. package/lib/icon/narrow-line.js +17 -17
  190. package/lib/icon/original.js +17 -17
  191. package/lib/icon/pdf-fill.js +17 -17
  192. package/lib/icon/play-shape.js +17 -17
  193. package/lib/icon/plus.js +17 -17
  194. package/lib/icon/ppt-fill.js +17 -17
  195. package/lib/icon/qq.js +17 -17
  196. package/lib/icon/right-shape.js +17 -17
  197. package/lib/icon/right-turn-line.js +17 -17
  198. package/lib/icon/search.js +17 -17
  199. package/lib/icon/share.js +17 -17
  200. package/lib/icon/spinner.js +17 -17
  201. package/lib/icon/success.js +17 -17
  202. package/lib/icon/switcher-loading.js +17 -17
  203. package/lib/icon/text-all.js +17 -17
  204. package/lib/icon/text-file.js +17 -17
  205. package/lib/icon/text-fill.js +17 -17
  206. package/lib/icon/transfer.js +17 -17
  207. package/lib/icon/tree-application-shape.js +17 -17
  208. package/lib/icon/unfull-screen.js +17 -17
  209. package/lib/icon/unvisible.js +17 -17
  210. package/lib/icon/up-shape.js +17 -17
  211. package/lib/icon/upload.js +17 -17
  212. package/lib/icon/video-fill.js +17 -17
  213. package/lib/icon/warn.js +17 -17
  214. package/lib/icon/weixin-pro.js +17 -17
  215. package/lib/icon/weixin.js +17 -17
  216. package/lib/image/image-viewer.d.ts +1 -1
  217. package/lib/image/image-viewer.variable.css +1 -0
  218. package/lib/image/image.variable.css +1 -0
  219. package/lib/image/index.d.ts +149 -113
  220. package/lib/image/index.js +46 -48
  221. package/lib/index.d.ts +9 -3
  222. package/lib/index.js +5 -29
  223. package/lib/info-box/index.js +250 -250
  224. package/lib/info-box/info-box.d.ts +15 -15
  225. package/lib/info-box/info-box.variable.css +1 -0
  226. package/lib/input/index.d.ts +299 -332
  227. package/lib/input/index.js +110 -561
  228. package/lib/input/input.css +23 -1
  229. package/lib/input/input.d.ts +15 -15
  230. package/lib/input/input.less +30 -1
  231. package/lib/input/input.variable.css +24 -1
  232. package/lib/link/index.d.ts +127 -78
  233. package/lib/link/index.js +5 -5
  234. package/lib/link/link.d.ts +5 -5
  235. package/lib/link/link.variable.css +1 -0
  236. package/lib/loading/index.d.ts +162 -135
  237. package/lib/loading/index.js +43 -40
  238. package/lib/loading/loading.d.ts +9 -9
  239. package/lib/loading/loading.variable.css +1 -0
  240. package/lib/locale/index.d.ts +1 -1
  241. package/lib/menu/index.d.ts +131 -51
  242. package/lib/menu/index.js +46 -27
  243. package/lib/menu/menu-group.d.ts +9 -0
  244. package/lib/menu/menu-item.d.ts +9 -0
  245. package/lib/menu/menu.css +29 -17
  246. package/lib/menu/menu.less +33 -18
  247. package/lib/menu/menu.variable.css +30 -17
  248. package/lib/menu/submenu.d.ts +1 -0
  249. package/lib/menu/submenu.variable.css +1 -0
  250. package/lib/menu/utils.d.ts +3 -3
  251. package/lib/message/index.js +43 -42
  252. package/lib/message/message.css +2 -1
  253. package/lib/message/message.less +3 -2
  254. package/lib/message/message.variable.css +3 -1
  255. package/lib/message/messageConstructor.d.ts +21 -21
  256. package/lib/modal/index.d.ts +214 -159
  257. package/lib/modal/index.js +68 -47
  258. package/lib/modal/modal.d.ts +24 -8
  259. package/lib/modal/modal.variable.css +1 -0
  260. package/lib/modal/props.mixin.d.ts +10 -3
  261. package/lib/navigation/index.d.ts +188 -152
  262. package/lib/navigation/index.js +27 -29
  263. package/lib/navigation/navigation.d.ts +1 -1
  264. package/lib/navigation/navigation.variable.css +1 -0
  265. package/lib/notify/index.js +25 -24
  266. package/lib/notify/notify.variable.css +1 -0
  267. package/lib/notify/notifyConstructor.d.ts +5 -5
  268. package/lib/overflow-title/components/overflow-title.d.ts +45 -16
  269. package/lib/overflow-title/index.d.ts +298 -328
  270. package/lib/overflow-title/index.js +85 -28
  271. package/lib/overflow-title/overflow-title.css +3 -0
  272. package/lib/overflow-title/overflow-title.less +4 -0
  273. package/lib/overflow-title/overflow-title.variable.css +3 -0
  274. package/lib/overflow-title/props.d.ts +36 -21
  275. package/lib/pagination/index.d.ts +198 -203
  276. package/lib/pagination/index.js +128 -68
  277. package/lib/pagination/pagination.css +8 -8
  278. package/lib/pagination/pagination.d.ts +0 -13
  279. package/lib/pagination/pagination.less +14 -13
  280. package/lib/pagination/pagination.variable.css +9 -8
  281. package/lib/pagination/type.d.ts +1 -1
  282. package/lib/pagination/use-limit.d.ts +1 -1
  283. package/lib/pagination/use-total.d.ts +1 -1
  284. package/lib/plugin-popover/index.js +311 -304
  285. package/lib/pop-confirm/index.d.ts +162 -148
  286. package/lib/pop-confirm/index.js +40 -35
  287. package/lib/pop-confirm/pop-confirm.css +3 -1
  288. package/lib/pop-confirm/pop-confirm.d.ts +10 -20
  289. package/lib/pop-confirm/pop-confirm.less +3 -1
  290. package/lib/pop-confirm/pop-confirm.variable.css +4 -1
  291. package/lib/pop-confirm/props.d.ts +8 -11
  292. package/lib/popover/const.d.ts +3 -3
  293. package/lib/popover/content.d.ts +6 -3
  294. package/lib/popover/index.d.ts +411 -380
  295. package/lib/popover/index.js +311 -304
  296. package/lib/popover/plugin-popover.d.ts +1 -1
  297. package/lib/popover/popover.d.ts +51 -8
  298. package/lib/popover/popover.variable.css +1 -0
  299. package/lib/popover/props.d.ts +28 -4
  300. package/lib/popover/use-floating.d.ts +2 -2
  301. package/lib/popover/use-popover-init.d.ts +2 -1
  302. package/lib/popover/utils.d.ts +2 -0
  303. package/lib/popover2/index.d.ts +83 -8
  304. package/lib/popover2/index.js +2 -2
  305. package/lib/preset.d.ts +0 -1
  306. package/lib/preset.js +0 -1
  307. package/lib/process/index.d.ts +137 -93
  308. package/lib/process/index.js +229 -229
  309. package/lib/process/process.variable.css +1 -0
  310. package/lib/progress/index.d.ts +192 -183
  311. package/lib/progress/index.js +31 -33
  312. package/lib/progress/progress.d.ts +9 -9
  313. package/lib/progress/progress.variable.css +1 -0
  314. package/lib/radio/index.d.ts +155 -106
  315. package/lib/radio/index.js +76 -63
  316. package/lib/radio/radio-button.d.ts +7 -7
  317. package/lib/radio/radio-group.d.ts +7 -7
  318. package/lib/radio/radio.d.ts +7 -7
  319. package/lib/radio/radio.variable.css +1 -0
  320. package/lib/radio/type.d.ts +1 -1
  321. package/lib/rate/index.d.ts +112 -55
  322. package/lib/rate/index.js +28 -27
  323. package/lib/rate/rate.variable.css +1 -0
  324. package/lib/resize-layout/index.d.ts +204 -157
  325. package/lib/resize-layout/index.js +54 -34
  326. package/lib/resize-layout/resize-layout.d.ts +18 -7
  327. package/lib/resize-layout/resize-layout.variable.css +1 -0
  328. package/lib/scrollbar/css/scrollbar.css +109 -0
  329. package/lib/scrollbar/css/scrollbar.less +139 -0
  330. package/lib/scrollbar/{scrollbar.variable.css → css/scrollbar.variable.css} +96 -61
  331. package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
  332. package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
  333. package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
  334. package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
  335. package/lib/scrollbar/handlers/touch.d.ts +4 -0
  336. package/lib/scrollbar/helper/class-names.d.ts +21 -0
  337. package/lib/scrollbar/helper/css.d.ts +3 -0
  338. package/lib/scrollbar/helper/dom.d.ts +4 -0
  339. package/lib/scrollbar/helper/event-manager.d.ts +20 -0
  340. package/lib/scrollbar/helper/util.d.ts +11 -0
  341. package/lib/scrollbar/index.d.ts +133 -13
  342. package/lib/scrollbar/index.js +1380 -18482
  343. package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
  344. package/lib/scrollbar/update-geometry.d.ts +8 -0
  345. package/lib/search-select/index.d.ts +946 -701
  346. package/lib/search-select/index.js +644 -486
  347. package/lib/search-select/input.d.ts +20 -8
  348. package/lib/search-select/menu.d.ts +13 -1
  349. package/lib/search-select/search-select.css +45 -47
  350. package/lib/search-select/search-select.d.ts +207 -160
  351. package/lib/search-select/search-select.less +41 -41
  352. package/lib/search-select/search-select.variable.css +46 -47
  353. package/lib/search-select/selected.d.ts +209 -127
  354. package/lib/search-select/utils.d.ts +6 -6
  355. package/lib/select/common.d.ts +4 -4
  356. package/lib/select/index.d.ts +1457 -1384
  357. package/lib/select/index.js +603 -477
  358. package/lib/select/option.d.ts +6 -6
  359. package/lib/select/select.css +9 -4
  360. package/lib/select/select.d.ts +285 -148
  361. package/lib/select/select.less +11 -4
  362. package/lib/select/select.variable.css +10 -4
  363. package/lib/select/selectTagInput.d.ts +9 -8
  364. package/lib/select/type.d.ts +10 -11
  365. package/lib/shared/frame-throttle.d.ts +15 -0
  366. package/lib/shared/index.d.ts +2 -1
  367. package/lib/shared/index.js +166 -101
  368. package/lib/shared/popover.d.ts +3 -3
  369. package/lib/shared/token.d.ts +1 -1
  370. package/lib/shared/vue-types.d.ts +50 -50
  371. package/lib/shared/z-index-manager.d.ts +6 -6
  372. package/lib/sideslider/index.d.ts +220 -182
  373. package/lib/sideslider/index.js +239 -237
  374. package/lib/sideslider/sideslider.css +7 -8
  375. package/lib/sideslider/sideslider.d.ts +24 -8
  376. package/lib/sideslider/sideslider.less +7 -8
  377. package/lib/sideslider/sideslider.variable.css +8 -8
  378. package/lib/slider/index.d.ts +210 -214
  379. package/lib/slider/index.js +246 -249
  380. package/lib/slider/slider.variable.css +1 -0
  381. package/lib/steps/index.d.ts +155 -131
  382. package/lib/steps/index.js +234 -234
  383. package/lib/steps/steps.d.ts +8 -18
  384. package/lib/steps/steps.variable.css +1 -0
  385. package/lib/styles/index.d.ts +1 -0
  386. package/lib/styles/mixins/animate.variable.css +1 -0
  387. package/lib/styles/mixins/popper.variable.css +1 -0
  388. package/lib/styles/mixins/scroll.variable.css +1 -0
  389. package/lib/styles/reset.variable.css +1 -0
  390. package/lib/styles/themes/themes.less +1 -0
  391. package/lib/swiper/index.d.ts +127 -81
  392. package/lib/swiper/index.js +23 -23
  393. package/lib/swiper/swiper.variable.css +1 -0
  394. package/lib/switcher/index.d.ts +179 -157
  395. package/lib/switcher/index.js +24 -22
  396. package/lib/switcher/switcher.d.ts +9 -9
  397. package/lib/switcher/switcher.variable.css +1 -0
  398. package/lib/tab/index.d.ts +220 -258
  399. package/lib/tab/index.js +79 -69
  400. package/lib/tab/props.d.ts +27 -52
  401. package/lib/tab/tab-nav.d.ts +26 -66
  402. package/lib/tab/tab-panel.d.ts +27 -5
  403. package/lib/tab/tab.css +64 -0
  404. package/lib/tab/tab.d.ts +10 -54
  405. package/lib/tab/tab.less +91 -4
  406. package/lib/tab/tab.variable.css +65 -0
  407. package/lib/table/components/ghost-body.d.ts +2 -0
  408. package/lib/table/components/table-cell.d.ts +22 -0
  409. package/lib/table/components/table-column.d.ts +24 -127
  410. package/lib/table/const.d.ts +23 -10
  411. package/lib/table/events.d.ts +16 -112
  412. package/lib/table/hooks/use-cell.d.ts +20 -0
  413. package/lib/table/hooks/use-checkbox-tooltip.d.ts +11 -0
  414. package/lib/table/hooks/use-column-resize.d.ts +7 -0
  415. package/lib/table/hooks/use-column-template.d.ts +5 -0
  416. package/lib/table/hooks/use-columns.d.ts +69 -0
  417. package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
  418. package/lib/table/hooks/use-fixed-column.d.ts +10 -0
  419. package/lib/table/hooks/use-head.d.ts +16 -0
  420. package/lib/table/hooks/use-layout.d.ts +25 -0
  421. package/lib/table/hooks/use-pagination.d.ts +16 -0
  422. package/lib/table/hooks/use-render.d.ts +21 -0
  423. package/lib/table/hooks/use-rows.d.ts +30 -0
  424. package/lib/table/hooks/use-settings.d.ts +138 -0
  425. package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
  426. package/lib/table/index.d.ts +412 -1029
  427. package/lib/table/index.js +4698 -20825
  428. package/lib/table/plugins/head-filter.css +5 -0
  429. package/lib/table/plugins/head-filter.d.ts +2 -1
  430. package/lib/table/plugins/head-filter.less +4 -0
  431. package/lib/table/plugins/head-filter.variable.css +6 -0
  432. package/lib/table/plugins/head-sort.variable.css +1 -0
  433. package/lib/table/plugins/settings.css +11 -1
  434. package/lib/table/plugins/settings.less +12 -1
  435. package/lib/table/plugins/settings.variable.css +12 -1
  436. package/lib/table/props.d.ts +127 -62
  437. package/lib/table/table.css +503 -302
  438. package/lib/table/table.d.ts +51 -185
  439. package/lib/table/table.less +244 -112
  440. package/lib/table/table.variable.css +504 -302
  441. package/lib/table/utils.d.ts +44 -21
  442. package/lib/table-column/index.d.ts +156 -369
  443. package/lib/table-column/index.js +143 -62
  444. package/lib/tag/index.d.ts +147 -100
  445. package/lib/tag/index.js +21 -22
  446. package/lib/tag/tag.css +1 -1
  447. package/lib/tag/tag.d.ts +5 -5
  448. package/lib/tag/tag.less +1 -1
  449. package/lib/tag/tag.variable.css +2 -1
  450. package/lib/tag-input/common.d.ts +2 -2
  451. package/lib/tag-input/index.d.ts +595 -712
  452. package/lib/tag-input/index.js +150 -17391
  453. package/lib/tag-input/tag-input.css +12 -9
  454. package/lib/tag-input/tag-input.d.ts +60 -24
  455. package/lib/tag-input/tag-input.less +13 -9
  456. package/lib/tag-input/tag-input.variable.css +13 -9
  457. package/lib/tag-input/tag-props.d.ts +25 -2
  458. package/lib/time-picker/index.d.ts +391 -455
  459. package/lib/time-picker/time-picker.variable.css +1 -0
  460. package/lib/timeline/index.d.ts +131 -64
  461. package/lib/timeline/index.js +8 -8
  462. package/lib/timeline/timeline.variable.css +1 -0
  463. package/lib/transfer/const.d.ts +2 -2
  464. package/lib/transfer/index.d.ts +206 -191
  465. package/lib/transfer/index.js +3 -5
  466. package/lib/transfer/transfer.variable.css +1 -0
  467. package/lib/tree/constant.d.ts +22 -20
  468. package/lib/tree/index.d.ts +329 -357
  469. package/lib/tree/index.js +176 -17389
  470. package/lib/tree/props.d.ts +18 -11
  471. package/lib/tree/tree.css +103 -69
  472. package/lib/tree/tree.d.ts +16 -10
  473. package/lib/tree/tree.variable.css +104 -69
  474. package/lib/tree/use-empty.d.ts +1 -1
  475. package/lib/tree/use-node-action.d.ts +10 -9
  476. package/lib/tree/use-node-async.d.ts +2 -1
  477. package/lib/tree/use-node-attribute.d.ts +42 -34
  478. package/lib/tree/use-search.d.ts +1 -1
  479. package/lib/tree/use-tree-init.d.ts +8 -5
  480. package/lib/tree/util.d.ts +21 -21
  481. package/lib/upload/index.d.ts +294 -286
  482. package/lib/upload/index.js +398 -316
  483. package/lib/upload/props.d.ts +11 -2
  484. package/lib/upload/upload-list.d.ts +11 -1
  485. package/lib/upload/upload-trigger.d.ts +11 -1
  486. package/lib/upload/upload.d.ts +25 -4
  487. package/lib/upload/upload.type.d.ts +12 -6
  488. package/lib/upload/upload.variable.css +1 -0
  489. package/lib/upload/use-file-handler.d.ts +1 -1
  490. package/lib/virtual-render/index.d.ts +247 -373
  491. package/lib/virtual-render/index.js +223 -162
  492. package/lib/virtual-render/props.d.ts +2 -9
  493. package/lib/virtual-render/use-fix-top.d.ts +1 -1
  494. package/lib/virtual-render/use-scrollbar.d.ts +4 -17
  495. package/lib/virtual-render/v-virtual-render.d.ts +7 -1
  496. package/lib/virtual-render/virtual-render.css +96 -70
  497. package/lib/virtual-render/virtual-render.d.ts +7 -23
  498. package/lib/virtual-render/virtual-render.less +2 -11
  499. package/lib/virtual-render/virtual-render.variable.css +96 -69
  500. package/lib/volar.components.d.ts +2 -0
  501. package/package.json +17 -55
  502. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
  503. package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
  504. package/lib/scrollbar/scrollbar-core/index.d.ts +0 -241
  505. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
  506. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
  507. package/lib/scrollbar/scrollbar.css +0 -75
  508. package/lib/scrollbar/scrollbar.less +0 -94
  509. package/lib/table/plugins/col-group.d.ts +0 -38
  510. package/lib/table/plugins/settings.d.ts +0 -16
  511. package/lib/table/plugins/use-active-columns.d.ts +0 -16
  512. package/lib/table/plugins/use-column-resize.d.ts +0 -35
  513. package/lib/table/plugins/use-column-template.d.ts +0 -7
  514. package/lib/table/plugins/use-fixed-column.d.ts +0 -27
  515. package/lib/table/plugins/use-head-cell.d.ts +0 -7
  516. package/lib/table/plugins/use-pagination.d.ts +0 -23
  517. package/lib/table/use-attributes.d.ts +0 -62
  518. package/lib/table/use-column.d.ts +0 -275
  519. package/lib/table/use-common.d.ts +0 -1679
  520. package/lib/table/use-render.d.ts +0 -11
  521. /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
  522. /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
  523. /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
@@ -45,38 +45,38 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
45
45
  var y = x => () => x
46
46
  const shared_namespaceObject = x({ ["BKPopover"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.BKPopover, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["capitalize"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.capitalize, ["getFullscreenRoot"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.getFullscreenRoot, ["scrollTop"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.scrollTop, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
47
47
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
48
- function _typeof(o) {
48
+ function _typeof(obj) {
49
49
  "@babel/helpers - typeof";
50
50
 
51
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
52
- return typeof o;
53
- } : function (o) {
54
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
55
- }, _typeof(o);
51
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
52
+ return typeof obj;
53
+ } : function (obj) {
54
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
55
+ }, _typeof(obj);
56
56
  }
57
57
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
58
58
 
59
- function toPrimitive(t, r) {
60
- if ("object" != _typeof(t) || !t) return t;
61
- var e = t[Symbol.toPrimitive];
62
- if (void 0 !== e) {
63
- var i = e.call(t, r || "default");
64
- if ("object" != _typeof(i)) return i;
59
+ function _toPrimitive(input, hint) {
60
+ if (_typeof(input) !== "object" || input === null) return input;
61
+ var prim = input[Symbol.toPrimitive];
62
+ if (prim !== undefined) {
63
+ var res = prim.call(input, hint || "default");
64
+ if (_typeof(res) !== "object") return res;
65
65
  throw new TypeError("@@toPrimitive must return a primitive value.");
66
66
  }
67
- return ("string" === r ? String : Number)(t);
67
+ return (hint === "string" ? String : Number)(input);
68
68
  }
69
69
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
70
70
 
71
71
 
72
- function toPropertyKey(t) {
73
- var i = toPrimitive(t, "string");
74
- return "symbol" == _typeof(i) ? i : String(i);
72
+ function _toPropertyKey(arg) {
73
+ var key = _toPrimitive(arg, "string");
74
+ return _typeof(key) === "symbol" ? key : String(key);
75
75
  }
76
76
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
77
77
 
78
78
  function _defineProperty(obj, key, value) {
79
- key = toPropertyKey(key);
79
+ key = _toPropertyKey(key);
80
80
  if (key in obj) {
81
81
  Object.defineProperty(obj, key, {
82
82
  value: value,
@@ -94,31 +94,31 @@ function _arrayWithHoles(arr) {
94
94
  if (Array.isArray(arr)) return arr;
95
95
  }
96
96
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
97
- function _iterableToArrayLimit(r, l) {
98
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
99
- if (null != t) {
100
- var e,
101
- n,
102
- i,
103
- u,
104
- a = [],
105
- f = !0,
106
- o = !1;
97
+ function _iterableToArrayLimit(arr, i) {
98
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
99
+ if (null != _i) {
100
+ var _s,
101
+ _e,
102
+ _x,
103
+ _r,
104
+ _arr = [],
105
+ _n = !0,
106
+ _d = !1;
107
107
  try {
108
- if (i = (t = t.call(r)).next, 0 === l) {
109
- if (Object(t) !== t) return;
110
- f = !1;
111
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
112
- } catch (r) {
113
- o = !0, n = r;
108
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
109
+ if (Object(_i) !== _i) return;
110
+ _n = !1;
111
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
112
+ } catch (err) {
113
+ _d = !0, _e = err;
114
114
  } finally {
115
115
  try {
116
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
116
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
117
117
  } finally {
118
- if (o) throw n;
118
+ if (_d) throw _e;
119
119
  }
120
120
  }
121
- return a;
121
+ return _arr;
122
122
  }
123
123
  }
124
124
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
@@ -173,7 +173,7 @@ function _toConsumableArray(arr) {
173
173
  ;// CONCATENATED MODULE: external "vue"
174
174
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
175
175
  var external_vue_y = x => () => x
176
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
176
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
177
177
  ;// CONCATENATED MODULE: external "../config-provider"
178
178
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
179
179
  var config_provider_y = x => () => x
@@ -277,7 +277,7 @@ var pickerDropdownProps = {
277
277
  var forceUpdate = function forceUpdate() {
278
278
  if (popoverInstance) {
279
279
  var _popoverInstance, _popoverInstance$forc;
280
- (_popoverInstance = popoverInstance) === null || _popoverInstance === void 0 || (_popoverInstance$forc = _popoverInstance.forceUpdate) === null || _popoverInstance$forc === void 0 || _popoverInstance$forc.call(_popoverInstance);
280
+ (_popoverInstance = popoverInstance) === null || _popoverInstance === void 0 || (_popoverInstance$forc = _popoverInstance.forceUpdate) === null || _popoverInstance$forc === void 0 ? void 0 : _popoverInstance$forc.call(_popoverInstance);
281
281
  }
282
282
  };
283
283
  var destoryDropdown = function destoryDropdown() {
@@ -431,8 +431,8 @@ var pickerDropdownProps = {
431
431
  var _this$$slots$default, _this$$slots$default2, _this$$slots;
432
432
  return (0,external_vue_namespaceObject.createVNode)("div", {
433
433
  "ref": "refContentRef",
434
- "class": [this.resolveClassName('date-picker-dropdown'), this.className, this.extPopoverCls],
435
434
  "style": this.styles,
435
+ "class": [this.resolveClassName('date-picker-dropdown'), this.className, this.extPopoverCls],
436
436
  "onClick": this.onClick
437
437
  }, [(_this$$slots$default = (_this$$slots$default2 = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : '']);
438
438
  }
@@ -448,46 +448,46 @@ var pickerDropdownProps = {
448
448
  */
449
449
  var dateIcon = (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("svg", {
450
450
  "class": "picker-icon",
451
+ "viewBox": "0 0 1024 1024",
451
452
  "x": "0px",
452
- "y": "0px",
453
- "viewBox": "0 0 1024 1024"
453
+ "y": "0px"
454
454
  }, [(0,external_vue_namespaceObject.createVNode)("g", {
455
455
  "id": "date"
456
456
  }, [(0,external_vue_namespaceObject.createVNode)("path", {
457
- "fill": "#c4c6cc",
458
- "d": "M896,128h-96v64h64v112H160V192h64v-64h-96c-17.7,0-32,14.3-32,32v736c0,17.7,14.3,32,32,32h768c17.7,0,32-14.3,32-32V160C928,142.3,913.7,128,896,128z M160,864V368h704v496H160z"
457
+ "d": "M896,128h-96v64h64v112H160V192h64v-64h-96c-17.7,0-32,14.3-32,32v736c0,17.7,14.3,32,32,32h768c17.7,0,32-14.3,32-32V160C928,142.3,913.7,128,896,128z M160,864V368h704v496H160z",
458
+ "fill": "#c4c6cc"
459
459
  }, null), (0,external_vue_namespaceObject.createVNode)("rect", {
460
- "x": "416",
461
- "y": "128",
462
- "fill": "#c4c6cc",
463
460
  "width": "192",
464
- "height": "64"
465
- }, null), (0,external_vue_namespaceObject.createVNode)("rect", {
466
- "x": "288",
467
- "y": "96",
461
+ "height": "64",
468
462
  "fill": "#c4c6cc",
469
- "width": "64",
470
- "height": "128"
463
+ "x": "416",
464
+ "y": "128"
471
465
  }, null), (0,external_vue_namespaceObject.createVNode)("rect", {
472
- "x": "672",
473
- "y": "96",
466
+ "width": "64",
467
+ "height": "128",
474
468
  "fill": "#c4c6cc",
469
+ "x": "288",
470
+ "y": "96"
471
+ }, null), (0,external_vue_namespaceObject.createVNode)("rect", {
475
472
  "width": "64",
476
- "height": "128"
473
+ "height": "128",
474
+ "fill": "#c4c6cc",
475
+ "x": "672",
476
+ "y": "96"
477
477
  }, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
478
478
  "fill": "#c4c6cc",
479
479
  "points": "403.7,514.4 557.1,514.4 557.1,515.3 420.1,765.5 483.5,765.5 620.3,504.3 620.3,466.5 403.7,466.5"
480
480
  }, null)])])]);
481
481
  var timeIcon = (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("svg", {
482
482
  "class": "picker-icon",
483
+ "viewBox": "0 0 1024 1024",
483
484
  "x": "0px",
484
- "y": "0px",
485
- "viewBox": "0 0 1024 1024"
485
+ "y": "0px"
486
486
  }, [(0,external_vue_namespaceObject.createVNode)("g", {
487
487
  "id": "time"
488
488
  }, [(0,external_vue_namespaceObject.createVNode)("path", {
489
- "fill": "#c4c6cc",
490
- "d": "M512,128c51.9,0,102.2,10.1,149.5,30.2c45.7,19.3,86.8,47,122.1,82.3s63,76.4,82.3,122.1c20,47.3,30.2,97.6,30.2,149.5S886,614.3,865.9,661.6c-19.3,45.7-47,86.8-82.3,122.1s-76.4,63-122.1,82.3c-47.3,20-97.6,30.2-149.5,30.2S409.8,886.1,362.5,866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2,30.2-149.5c19.3-45.7,47-86.8,82.3-122.1s76.4-63,122.1-82.3C409.8,138.1,460.1,128,512,128 M512,64C264.6,64,64,264.6,64,512s200.6,448,448,448s448-200.6,448-448S759.4,64,512,64L512,64z"
489
+ "d": "M512,128c51.9,0,102.2,10.1,149.5,30.2c45.7,19.3,86.8,47,122.1,82.3s63,76.4,82.3,122.1c20,47.3,30.2,97.6,30.2,149.5S886,614.3,865.9,661.6c-19.3,45.7-47,86.8-82.3,122.1s-76.4,63-122.1,82.3c-47.3,20-97.6,30.2-149.5,30.2S409.8,886.1,362.5,866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2,30.2-149.5c19.3-45.7,47-86.8,82.3-122.1s76.4-63,122.1-82.3C409.8,138.1,460.1,128,512,128 M512,64C264.6,64,64,264.6,64,512s200.6,448,448,448s448-200.6,448-448S759.4,64,512,64L512,64z",
490
+ "fill": "#c4c6cc"
491
491
  }, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
492
492
  "fill": "#c4c6cc",
493
493
  "points": "512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"
@@ -603,17 +603,17 @@ var confirmProps = {
603
603
  _this$$slots$confirm2,
604
604
  _this$$slots;
605
605
  return (0,external_vue_namespaceObject.createVNode)("div", {
606
- "class": this.resolveClassName('picker-confirm'),
607
606
  "ref": "elRef",
607
+ "class": this.resolveClassName('picker-confirm'),
608
608
  "onKeydown": this.handleTab
609
609
  }, [this.showTime ? // <a href="javascript: void(0);" class="bk-picker-confirm-time" disabled onClick={this.handleToggleTime}>
610
610
  // {this.labels.time}
611
611
  // </a>
612
612
  (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
613
- "text": true,
614
- "theme": "primary",
615
613
  "class": this.resolveClassName('picker-confirm-time'),
616
614
  "disabled": this.timeDisabled,
615
+ "theme": "primary",
616
+ "text": true,
617
617
  "onClick": this.handleToggleTime
618
618
  }, {
619
619
  "default": function _default() {
@@ -625,12 +625,13 @@ var confirmProps = {
625
625
  "href": "javascript: void(0);",
626
626
  "onClick": this.handleClear,
627
627
  "onKeydown": this.handleClear
628
- }, [this.labels.clear]) : '', (0,external_vue_namespaceObject.createVNode)("a", {
629
- "href": "javascript: void(0);",
628
+ }, [this.labels.clear]) : '', (0,external_vue_namespaceObject.createVNode)("a", (0,external_vue_namespaceObject.mergeProps)({
630
629
  "class": "confirm",
631
- "onClick": this.handleSuccess,
632
- "onKeydown_enter": this.handleSuccess
633
- }, [this.labels.ok])])]);
630
+ "href": "javascript: void(0);",
631
+ "onClick": this.handleSuccess
632
+ }, {
633
+ onKeydown_enter: this.handleSuccess
634
+ }), [this.labels.ok])])]);
634
635
  }
635
636
  }));
636
637
  ;// CONCATENATED MODULE: external "js-calendar"
@@ -667,7 +668,6 @@ const external_date_fns_namespaceObject = external_date_fns_x({ ["format"]: () =
667
668
  * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
668
669
  * IN THE SOFTWARE.
669
670
  */
670
- /* eslint-disable no-param-reassign, no-multi-assign */
671
671
  /**
672
672
  * @file fecha
673
673
  * https://github.com/taylorhakes/fecha
@@ -677,7 +677,6 @@ var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^
677
677
  var twoDigits = /\d\d?/;
678
678
  var threeDigits = /\d{3}/;
679
679
  var fourDigits = /\d{4}/;
680
- // eslint-disable-next-line max-len
681
680
  var word = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
682
681
  var noop = function noop() {};
683
682
  function shorten(arr, sLen) {
@@ -1548,7 +1547,8 @@ var dateTableProps = {
1548
1547
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
1549
1548
  resolveClassName = _usePrefix.resolveClassName;
1550
1549
  var getCellCls = function getCellCls(cell) {
1551
- return [resolveClassName('date-picker-cells-cell'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, resolveClassName('date-picker-cells-cell-selected'), cell.selected || cell.start || cell.end), resolveClassName('date-picker-cells-cell-disabled'), cell.disabled), resolveClassName('date-picker-cells-cell-today'), cell.type === 'today'), resolveClassName('date-picker-cells-cell-prev-month'), cell.type === 'prevMonth'), resolveClassName('date-picker-cells-cell-next-month'), cell.type === 'nextMonth'), resolveClassName('date-picker-cells-cell-week-label'), cell.type === 'weekLabel'), resolveClassName('date-picker-cells-cell-range'), cell.range && !cell.start && !cell.end)];
1550
+ var _ref2;
1551
+ return [resolveClassName('date-picker-cells-cell'), (_ref2 = {}, _defineProperty(_ref2, resolveClassName('date-picker-cells-cell-selected'), cell.selected || cell.start || cell.end), _defineProperty(_ref2, resolveClassName('date-picker-cells-cell-disabled'), cell.disabled), _defineProperty(_ref2, resolveClassName('date-picker-cells-cell-today'), cell.type === 'today'), _defineProperty(_ref2, resolveClassName('date-picker-cells-cell-prev-month'), cell.type === 'prevMonth'), _defineProperty(_ref2, resolveClassName('date-picker-cells-cell-next-month'), cell.type === 'nextMonth'), _defineProperty(_ref2, resolveClassName('date-picker-cells-cell-week-label'), cell.type === 'weekLabel'), _defineProperty(_ref2, resolveClassName('date-picker-cells-cell-range'), cell.range && !cell.start && !cell.end), _ref2)];
1552
1552
  };
1553
1553
  return {
1554
1554
  headerDays: headerDays,
@@ -1710,12 +1710,8 @@ var monthTableProps = {
1710
1710
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
1711
1711
  resolveClassName = _usePrefix.resolveClassName;
1712
1712
  var getCellCls = function getCellCls(cell) {
1713
- return [resolveClassName('date-picker-cells-cell'), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, resolveClassName('date-picker-cells-cell-selected'), cell.selected), resolveClassName('date-picker-cells-cell-disabled'), cell.disabled), resolveClassName('date-picker-cells-cell-today'), cell.isCurrentMonth), resolveClassName('date-picker-cells-cell-range'), cell.range && !cell.start && !cell.end) // resolveClassName('date-picker-cells-cell'),
1714
- // {
1715
- // [resolveClassName('date-picker-cells-cell-today')]: cell.type === 'today',
1716
- // [resolveClassName('date-picker-cells-cell-range')]: cell.range && !cell.start && !cell.end,
1717
- // },
1718
- ];
1713
+ var _ref2;
1714
+ return [resolveClassName('date-picker-cells-cell'), (_ref2 = {}, _defineProperty(_ref2, resolveClassName('date-picker-cells-cell-selected'), cell.selected), _defineProperty(_ref2, resolveClassName('date-picker-cells-cell-disabled'), cell.disabled), _defineProperty(_ref2, resolveClassName('date-picker-cells-cell-today'), cell.isCurrentMonth), _defineProperty(_ref2, resolveClassName('date-picker-cells-cell-range'), cell.range && !cell.start && !cell.end), _ref2)];
1719
1715
  };
1720
1716
  var handleClick = function handleClick(cell) {
1721
1717
  if (cell.disabled || cell.type === 'weekLabel') {
@@ -1887,7 +1883,8 @@ var yearTableProps = {
1887
1883
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
1888
1884
  resolveClassName = _usePrefix.resolveClassName;
1889
1885
  var getCellCls = function getCellCls(cell) {
1890
- return [resolveClassName('date-picker-cells-cell'), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, resolveClassName('date-picker-cells-cell-selected'), cell.selected), resolveClassName('date-picker-cells-cell-disabled'), cell.disabled), resolveClassName('date-picker-cells-cell-today'), cell.isCurrent), resolveClassName('date-picker-cells-cell-range'), cell.range && !cell.start && !cell.end)];
1886
+ var _ref2;
1887
+ return [resolveClassName('date-picker-cells-cell'), (_ref2 = {}, _defineProperty(_ref2, resolveClassName('date-picker-cells-cell-selected'), cell.selected), _defineProperty(_ref2, resolveClassName('date-picker-cells-cell-disabled'), cell.disabled), _defineProperty(_ref2, resolveClassName('date-picker-cells-cell-today'), cell.isCurrent), _defineProperty(_ref2, resolveClassName('date-picker-cells-cell-range'), cell.range && !cell.start && !cell.end), _ref2)];
1891
1888
  };
1892
1889
  var handleClick = function handleClick(cell) {
1893
1890
  if (cell.disabled || cell.type === 'weekLabel') {
@@ -2040,10 +2037,6 @@ var datePickerProps = {
2040
2037
  return true;
2041
2038
  }
2042
2039
  },
2043
- transfer: {
2044
- type: Boolean,
2045
- "default": false
2046
- },
2047
2040
  appendToBody: {
2048
2041
  type: Boolean,
2049
2042
  "default": false
@@ -2396,7 +2389,8 @@ var timeParts = ['hours', 'minutes', 'seconds'];
2396
2389
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
2397
2390
  resolveClassName = _usePrefix.resolveClassName;
2398
2391
  function getCellCls(cell) {
2399
- return [resolveClassName('time-picker-cells-cell'), _defineProperty(_defineProperty(_defineProperty({}, resolveClassName('time-picker-cells-cell-selected'), cell.selected), resolveClassName('time-picker-cells-cell-focused'), cell.focused), resolveClassName('time-picker-cells-cell-disabled'), cell.disabled)];
2392
+ var _ref2;
2393
+ return [resolveClassName('time-picker-cells-cell'), (_ref2 = {}, _defineProperty(_ref2, resolveClassName('time-picker-cells-cell-selected'), cell.selected), _defineProperty(_ref2, resolveClassName('time-picker-cells-cell-focused'), cell.focused), _defineProperty(_ref2, resolveClassName('time-picker-cells-cell-disabled'), cell.disabled), _ref2)];
2400
2394
  }
2401
2395
  var wheelStart = (0,external_vue_namespaceObject.ref)(true);
2402
2396
  var wheelEnd = (0,external_vue_namespaceObject.ref)(false);
@@ -2544,18 +2538,18 @@ var timeParts = ['hours', 'minutes', 'seconds'];
2544
2538
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
2545
2539
  "class": this.resolveClassName('time-picker-cells-title-wrapper')
2546
2540
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
2547
- "class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 0 ? 'active' : ''],
2548
- "style": this.styles
2541
+ "style": this.styles,
2542
+ "class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 0 ? 'active' : '']
2549
2543
  }, [this.t.hour]), (0,external_vue_namespaceObject.createVNode)("div", {
2550
- "class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 1 ? 'active' : ''],
2551
- "style": this.styles
2544
+ "style": this.styles,
2545
+ "class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 1 ? 'active' : '']
2552
2546
  }, [this.t.min]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
2553
- "class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 2 ? 'active' : ''],
2554
- "style": this.styles
2547
+ "style": this.styles,
2548
+ "class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 2 ? 'active' : '']
2555
2549
  }, [this.t.sec]), [[external_vue_namespaceObject.vShow, this.showSeconds]])]), (0,external_vue_namespaceObject.createVNode)("div", {
2556
- "class": this.resolveClassName('time-picker-cells-list'),
2557
2550
  "ref": "hoursRef",
2558
- "style": this.styles
2551
+ "style": this.styles,
2552
+ "class": this.resolveClassName('time-picker-cells-list')
2559
2553
  }, [(0,external_vue_namespaceObject.createVNode)("ul", {
2560
2554
  "class": this.resolveClassName('time-picker-cells-ul')
2561
2555
  }, [this.hoursList.map(function (item) {
@@ -2566,9 +2560,9 @@ var timeParts = ['hours', 'minutes', 'seconds'];
2566
2560
  }
2567
2561
  }, [_this2.padTime(item.text)]), [[external_vue_namespaceObject.vShow, !item.hide]]);
2568
2562
  })])]), (0,external_vue_namespaceObject.createVNode)("div", {
2569
- "class": this.resolveClassName('time-picker-cells-list'),
2570
2563
  "ref": "minutesRef",
2571
- "style": this.styles
2564
+ "style": this.styles,
2565
+ "class": this.resolveClassName('time-picker-cells-list')
2572
2566
  }, [(0,external_vue_namespaceObject.createVNode)("ul", {
2573
2567
  "class": this.resolveClassName('time-picker-cells-ul')
2574
2568
  }, [this.minutesList.map(function (item) {
@@ -2579,9 +2573,9 @@ var timeParts = ['hours', 'minutes', 'seconds'];
2579
2573
  }
2580
2574
  }, [_this2.padTime(item.text)]), [[external_vue_namespaceObject.vShow, !item.hide]]);
2581
2575
  })])]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
2582
- "class": this.resolveClassName('time-picker-cells-list'),
2583
2576
  "ref": "secondsRef",
2584
- "style": this.styles
2577
+ "style": this.styles,
2578
+ "class": this.resolveClassName('time-picker-cells-list')
2585
2579
  }, [(0,external_vue_namespaceObject.createVNode)("ul", {
2586
2580
  "class": this.resolveClassName('time-picker-cells-ul')
2587
2581
  }, [this.secondsList.map(function (item) {
@@ -2691,12 +2685,10 @@ var timeProps = {
2691
2685
  // const parentProvide = injectStrict(timePickerKey);
2692
2686
  var parentProvide = (0,external_vue_namespaceObject.inject)(timePickerKey);
2693
2687
  var timeSpinnerRef = (0,external_vue_namespaceObject.ref)(null);
2688
+ var visibleDate = (0,external_vue_namespaceObject.ref)(src_fecha.format(parentProvide.panelDate, props.format));
2694
2689
  var showSeconds = (0,external_vue_namespaceObject.computed)(function () {
2695
2690
  return !(props.format || '').match(/mm$/);
2696
2691
  });
2697
- var visibleDate = (0,external_vue_namespaceObject.computed)(function () {
2698
- return src_fecha.format(parentProvide.panelDate, props.format);
2699
- });
2700
2692
  var timeSlots = (0,external_vue_namespaceObject.computed)(function () {
2701
2693
  if (!props.value[0]) {
2702
2694
  return [];
@@ -2750,6 +2742,10 @@ var timeProps = {
2750
2742
  var newVal = dates[0] || initTime();
2751
2743
  newVal = new Date(newVal);
2752
2744
  state.date = newVal;
2745
+ parentProvide.panelDate = newVal;
2746
+ visibleDate.value = src_fecha.format(parentProvide.panelDate, props.format);
2747
+ }, {
2748
+ immediate: true
2753
2749
  });
2754
2750
  (0,external_vue_namespaceObject.onMounted)(function () {
2755
2751
  if (parentProvide && parentProvide.parentName === 'DatePanel') {
@@ -2790,27 +2786,27 @@ var timeProps = {
2790
2786
  e.preventDefault();
2791
2787
  }
2792
2788
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
2793
- "class": this.resolveClassName('picker-panel-body'),
2794
2789
  "style": {
2795
2790
  width: "".concat(this.width, "px")
2796
- }
2791
+ },
2792
+ "class": this.resolveClassName('picker-panel-body')
2797
2793
  }, [this.showDate ? (0,external_vue_namespaceObject.createVNode)("div", {
2798
2794
  "class": this.resolveClassName('time-picker-header')
2799
2795
  }, [this.visibleDate]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
2800
2796
  "class": this.resolveClassName('picker-panel-content')
2801
2797
  }, [(0,external_vue_namespaceObject.createVNode)(time_spinner, {
2802
2798
  "ref": "timeSpinnerRef",
2803
- "showSeconds": this.showSeconds,
2804
- "steps": this.steps,
2805
- "hours": this.timeSlots[0],
2806
- "minutes": this.timeSlots[1],
2807
- "seconds": this.timeSlots[2],
2808
2799
  "disabledHours": this.disabledHMS.disabledHours,
2809
2800
  "disabledMinutes": this.disabledHMS.disabledMinutes,
2810
2801
  "disabledSeconds": this.disabledHMS.disabledSeconds,
2811
2802
  "hideDisabledOptions": this.hideDisabledOptions,
2812
- "onPick-click": this.handlePickClick,
2813
- "onChange": this.handleChange
2803
+ "hours": this.timeSlots[0],
2804
+ "minutes": this.timeSlots[1],
2805
+ "seconds": this.timeSlots[2],
2806
+ "showSeconds": this.showSeconds,
2807
+ "steps": this.steps,
2808
+ "onChange": this.handleChange,
2809
+ "onPick-click": this.handlePickClick
2814
2810
  }, null)])])]);
2815
2811
  }
2816
2812
  }));
@@ -2844,6 +2840,7 @@ function date_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
2844
2840
  * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2845
2841
  * IN THE SOFTWARE.
2846
2842
  */
2843
+ // import type { Placement } from '@popperjs/core';
2847
2844
 
2848
2845
 
2849
2846
 
@@ -3036,8 +3033,8 @@ var datePanelProps = {
3036
3033
  var onToggleVisibility = function onToggleVisibility(open) {
3037
3034
  if (open) {
3038
3035
  var _timeSpinnerRef$value, _timeSpinnerEndRef$va;
3039
- timeSpinnerRef === null || timeSpinnerRef === void 0 || (_timeSpinnerRef$value = timeSpinnerRef.value) === null || _timeSpinnerRef$value === void 0 || _timeSpinnerRef$value.updateScroll();
3040
- timeSpinnerEndRef === null || timeSpinnerEndRef === void 0 || (_timeSpinnerEndRef$va = timeSpinnerEndRef.value) === null || _timeSpinnerEndRef$va === void 0 || _timeSpinnerEndRef$va.updateScroll();
3036
+ timeSpinnerRef === null || timeSpinnerRef === void 0 || (_timeSpinnerRef$value = timeSpinnerRef.value) === null || _timeSpinnerRef$value === void 0 ? void 0 : _timeSpinnerRef$value.updateScroll();
3037
+ timeSpinnerEndRef === null || timeSpinnerEndRef === void 0 || (_timeSpinnerEndRef$va = timeSpinnerEndRef.value) === null || _timeSpinnerEndRef$va === void 0 ? void 0 : _timeSpinnerEndRef$va.updateScroll();
3041
3038
  }
3042
3039
  };
3043
3040
  var panelPickerHandlers = (0,external_vue_namespaceObject.computed)(function () {
@@ -3129,8 +3126,8 @@ var datePanelProps = {
3129
3126
  }
3130
3127
  }, [shortcut.text]);
3131
3128
  })]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
3132
- "class": this.resolveClassName('picker-panel-body'),
3133
- "style": "width: 261px;"
3129
+ "style": "width: 261px;",
3130
+ "class": this.resolveClassName('picker-panel-body')
3134
3131
  }, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
3135
3132
  "class": this.resolveClassName('date-picker-header')
3136
3133
  }, [(0,external_vue_namespaceObject.createVNode)("span", {
@@ -3193,29 +3190,29 @@ var datePanelProps = {
3193
3190
  switch (_this2.pickerTable) {
3194
3191
  case 'date-table':
3195
3192
  return (0,external_vue_namespaceObject.createVNode)(date_table, {
3196
- "tableDate": _this2.panelDate,
3197
3193
  "disabledDate": _this2.disabledDate,
3198
- "selectionMode": _this2.selectionMode,
3199
- "modelValue": _this2.dates,
3200
3194
  "focusedDate": _this2.focusedDate,
3195
+ "modelValue": _this2.dates,
3196
+ "selectionMode": _this2.selectionMode,
3197
+ "tableDate": _this2.panelDate,
3201
3198
  "onPick": _this2.panelPickerHandlers
3202
3199
  }, null);
3203
3200
  case 'year-table':
3204
3201
  return (0,external_vue_namespaceObject.createVNode)(year_table, {
3205
- "tableDate": _this2.panelDate,
3206
3202
  "disabledDate": _this2.disabledDate,
3207
- "selectionMode": _this2.selectionMode,
3208
- "modelValue": _this2.dates,
3209
3203
  "focusedDate": _this2.focusedDate,
3204
+ "modelValue": _this2.dates,
3205
+ "selectionMode": _this2.selectionMode,
3206
+ "tableDate": _this2.panelDate,
3210
3207
  "onPick": _this2.panelPickerHandlers
3211
3208
  }, null);
3212
3209
  case 'month-table':
3213
3210
  return (0,external_vue_namespaceObject.createVNode)(month_table, {
3214
- "tableDate": _this2.panelDate,
3215
3211
  "disabledDate": _this2.disabledDate,
3216
- "selectionMode": _this2.selectionMode,
3217
- "modelValue": _this2.dates,
3218
3212
  "focusedDate": _this2.focusedDate,
3213
+ "modelValue": _this2.dates,
3214
+ "selectionMode": _this2.selectionMode,
3215
+ "tableDate": _this2.panelDate,
3219
3216
  "onPick": _this2.panelPickerHandlers
3220
3217
  }, null);
3221
3218
  default:
@@ -3223,23 +3220,23 @@ var datePanelProps = {
3223
3220
  }
3224
3221
  }() : (0,external_vue_namespaceObject.createVNode)(time, {
3225
3222
  "ref": "timePickerRef",
3226
- "value": this.dates,
3223
+ "disabledDate": this.disabledDate,
3227
3224
  "format": this.format,
3228
3225
  "selectionMode": this.selectionMode,
3229
- "disabledDate": this.disabledDate,
3226
+ "value": this.dates,
3230
3227
  "onPick": this.handlePick,
3231
- "onPick-click": this.handlePickClick,
3232
3228
  "onPick-clear": this.handlePickClear,
3229
+ "onPick-click": this.handlePickClick,
3233
3230
  "onPick-success": this.handlePickSuccess,
3234
3231
  "onPick-toggle-time": this.handleToggleTime
3235
3232
  }, null)]), this.confirm ? (0,external_vue_namespaceObject.createVNode)(base_confirm, {
3236
3233
  "clearable": this.clearable,
3234
+ "isTime": this.isTime,
3237
3235
  "showTime": this.showTime,
3238
3236
  "timeDisabled": this.timeDisabled,
3239
- "isTime": this.isTime,
3240
- "onPick-toggle-time": this.handleToggleTime,
3241
3237
  "onPick-clear": this.handlePickClear,
3242
- "onPick-success": this.handlePickSuccess
3238
+ "onPick-success": this.handlePickSuccess,
3239
+ "onPick-toggle-time": this.handleToggleTime
3243
3240
  }, this.$slots) : '']), this.hasShortcuts ? (0,external_vue_namespaceObject.createVNode)("div", {
3244
3241
  "class": this.resolveClassName('picker-panel-sidebar')
3245
3242
  }, [(_this$$slots$shortcut = (_this$$slots$shortcut2 = (_this$$slots = this.$slots).shortcuts) === null || _this$$slots$shortcut2 === void 0 ? void 0 : _this$$slots$shortcut2.call(_this$$slots)) !== null && _this$$slots$shortcut !== void 0 ? _this$$slots$shortcut : null]) : null]);
@@ -3437,8 +3434,8 @@ var timeRangeProps = {
3437
3434
  var timeSpinnerEndRef = (0,external_vue_namespaceObject.ref)(null);
3438
3435
  function updateScroll() {
3439
3436
  var _timeSpinnerRef$value, _timeSpinnerEndRef$va;
3440
- timeSpinnerRef === null || timeSpinnerRef === void 0 || (_timeSpinnerRef$value = timeSpinnerRef.value) === null || _timeSpinnerRef$value === void 0 || _timeSpinnerRef$value.updateScroll();
3441
- timeSpinnerEndRef === null || timeSpinnerEndRef === void 0 || (_timeSpinnerEndRef$va = timeSpinnerEndRef.value) === null || _timeSpinnerEndRef$va === void 0 || _timeSpinnerEndRef$va.updateScroll();
3437
+ timeSpinnerRef === null || timeSpinnerRef === void 0 || (_timeSpinnerRef$value = timeSpinnerRef.value) === null || _timeSpinnerRef$value === void 0 ? void 0 : _timeSpinnerRef$value.updateScroll();
3438
+ timeSpinnerEndRef === null || timeSpinnerEndRef === void 0 || (_timeSpinnerEndRef$va = timeSpinnerEndRef.value) === null || _timeSpinnerEndRef$va === void 0 ? void 0 : _timeSpinnerEndRef$va.updateScroll();
3442
3439
  }
3443
3440
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
3444
3441
  resolveClassName = _usePrefix.resolveClassName;
@@ -3462,48 +3459,48 @@ var timeRangeProps = {
3462
3459
  e.preventDefault();
3463
3460
  }
3464
3461
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
3465
- "class": this.resolveClassName('picker-panel-body'),
3466
3462
  "style": {
3467
3463
  width: "".concat(this.width * 2, "px")
3468
- }
3464
+ },
3465
+ "class": this.resolveClassName('picker-panel-body')
3469
3466
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
3470
- "class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-left')],
3471
3467
  "style": {
3472
3468
  width: "".concat(this.width, "px")
3473
- }
3469
+ },
3470
+ "class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-left')]
3474
3471
  }, [this.showDate ? (0,external_vue_namespaceObject.createVNode)("div", {
3475
3472
  "class": "".concat(this.resolveClassName('time-picker-header'))
3476
3473
  }, [this.leftDatePanelLabel]) : '', (0,external_vue_namespaceObject.createVNode)(time_spinner, {
3477
3474
  "ref": "timeSpinnerRef",
3478
- "steps": this.steps,
3479
- "showSeconds": this.showSeconds,
3480
- "hours": this.value[0] && this.dateStart.getHours(),
3481
- "minutes": this.value[0] && this.dateStart.getMinutes(),
3482
- "seconds": this.value[0] && this.dateStart.getSeconds(),
3483
3475
  "disabledHours": this.disabledHours,
3484
3476
  "disabledMinutes": this.disabledMinutes,
3485
3477
  "disabledSeconds": this.disabledSeconds,
3486
3478
  "hideDisabledOptions": this.hideDisabledOptions,
3479
+ "hours": this.value[0] && this.dateStart.getHours(),
3480
+ "minutes": this.value[0] && this.dateStart.getMinutes(),
3481
+ "seconds": this.value[0] && this.dateStart.getSeconds(),
3482
+ "showSeconds": this.showSeconds,
3483
+ "steps": this.steps,
3487
3484
  "onChange": this.handleStartChange,
3488
3485
  "onPick-click": this.handlePickClick
3489
3486
  }, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
3490
- "class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-right')],
3491
3487
  "style": {
3492
3488
  width: "".concat(this.width, "px")
3493
- }
3489
+ },
3490
+ "class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-right')]
3494
3491
  }, [this.showDate ? (0,external_vue_namespaceObject.createVNode)("div", {
3495
3492
  "class": this.resolveClassName('time-picker-header')
3496
3493
  }, [this.rightDatePanelLabel]) : '', (0,external_vue_namespaceObject.createVNode)(time_spinner, {
3497
3494
  "ref": "timeSpinnerEndRef",
3498
- "steps": this.steps,
3499
- "showSeconds": this.showSeconds,
3500
- "hours": this.value[1] && this.dateEnd.getHours(),
3501
- "minutes": this.value[1] && this.dateEnd.getMinutes(),
3502
- "seconds": this.value[1] && this.dateEnd.getSeconds(),
3503
3495
  "disabledHours": this.disabledHours,
3504
3496
  "disabledMinutes": this.disabledMinutes,
3505
3497
  "disabledSeconds": this.disabledSeconds,
3506
3498
  "hideDisabledOptions": this.hideDisabledOptions,
3499
+ "hours": this.value[1] && this.dateEnd.getHours(),
3500
+ "minutes": this.value[1] && this.dateEnd.getMinutes(),
3501
+ "seconds": this.value[1] && this.dateEnd.getSeconds(),
3502
+ "showSeconds": this.showSeconds,
3503
+ "steps": this.steps,
3507
3504
  "onChange": this.handleEndChange,
3508
3505
  "onPick-click": this.handlePickClick
3509
3506
  }, null)])])]);
@@ -3515,6 +3512,7 @@ var timeRangeProps = {
3515
3512
 
3516
3513
  function date_range_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3517
3514
  function date_range_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? date_range_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : date_range_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3515
+ /* eslint-disable @typescript-eslint/no-explicit-any */
3518
3516
  /*
3519
3517
  * Tencent is pleased to support the open source community by making
3520
3518
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -3541,10 +3539,9 @@ function date_range_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
3541
3539
  * IN THE SOFTWARE.
3542
3540
  */
3543
3541
  // import type { Placement } from '@popperjs/core';
3544
- // import { bkZIndexManager, BKPopover, IBKPopover } from '@bkui-vue/shared';
3545
-
3546
3542
 
3547
3543
 
3544
+ // import { bkZIndexManager, BKPopover, IBKPopover } from '@bkui-vue/shared';
3548
3545
 
3549
3546
 
3550
3547
 
@@ -3699,8 +3696,8 @@ var dateRangePanelProps = {
3699
3696
  var onToggleVisibility = function onToggleVisibility(open) {
3700
3697
  if (open) {
3701
3698
  var _timeSpinner$value, _timeSpinnerEnd$value;
3702
- timeSpinner === null || timeSpinner === void 0 || (_timeSpinner$value = timeSpinner.value) === null || _timeSpinner$value === void 0 || _timeSpinner$value.updateScroll();
3703
- timeSpinnerEnd === null || timeSpinnerEnd === void 0 || (_timeSpinnerEnd$value = timeSpinnerEnd.value) === null || _timeSpinnerEnd$value === void 0 || _timeSpinnerEnd$value.updateScroll();
3699
+ timeSpinner === null || timeSpinner === void 0 || (_timeSpinner$value = timeSpinner.value) === null || _timeSpinner$value === void 0 ? void 0 : _timeSpinner$value.updateScroll();
3700
+ timeSpinnerEnd === null || timeSpinnerEnd === void 0 || (_timeSpinnerEnd$value = timeSpinnerEnd.value) === null || _timeSpinnerEnd$value === void 0 ? void 0 : _timeSpinnerEnd$value.updateScroll();
3704
3701
  }
3705
3702
  };
3706
3703
  var changePanelDate = function changePanelDate(panel, type, increment) {
@@ -3713,13 +3710,23 @@ var dateRangePanelProps = {
3713
3710
  }
3714
3711
  if (props.splitPanels) {
3715
3712
  var otherPanel = panel === 'left' ? 'right' : 'left';
3716
- if (panel === 'left' && (state.leftPanelDate >= state.rightPanelDate || Math.floor(state.leftPanelDate.getFullYear() / 10) * 10 === Math.floor(state.rightPanelDate.getFullYear() / 10) * 10)) {
3717
- // changePanelDate(otherPanel, type, 1);
3718
- changePanelDate(otherPanel, type, state.currentView === 'year' ? 10 : 1);
3713
+ if (panel === 'left' && state.leftPanelDate >= state.rightPanelDate) {
3714
+ if (state.currentView === 'year') {
3715
+ if (Math.floor(state.leftPanelDate.getFullYear() / 10) * 10 === Math.floor(state.rightPanelDate.getFullYear() / 10) * 10) {
3716
+ changePanelDate(otherPanel, type, 10);
3717
+ }
3718
+ } else {
3719
+ changePanelDate(otherPanel, type, 1);
3720
+ }
3719
3721
  }
3720
- if (panel === 'right' && (state.rightPanelDate <= state.leftPanelDate || Math.floor(state.leftPanelDate.getFullYear() / 10) * 10 === Math.floor(state.rightPanelDate.getFullYear() / 10) * 10)) {
3721
- // changePanelDate(otherPanel, type, -1);
3722
- changePanelDate(otherPanel, type, state.currentView === 'year' ? -10 : -1);
3722
+ if (panel === 'right' && state.rightPanelDate <= state.leftPanelDate) {
3723
+ if (state.currentView === 'year') {
3724
+ if (Math.floor(state.leftPanelDate.getFullYear() / 10) * 10 === Math.floor(state.rightPanelDate.getFullYear() / 10) * 10) {
3725
+ changePanelDate(otherPanel, type, -10);
3726
+ }
3727
+ } else {
3728
+ changePanelDate(otherPanel, type, -1);
3729
+ }
3723
3730
  }
3724
3731
  } else {
3725
3732
  var _otherPanel = panel === 'left' ? 'right' : 'left';
@@ -4075,8 +4082,8 @@ var dateRangePanelProps = {
4075
4082
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
4076
4083
  "class": [this.resolveClassName('picker-panel-body'), this.showTime ? this.resolveClassName('picker-panel-body-time') : this.resolveClassName('picker-panel-body-date')]
4077
4084
  }, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
4078
- "class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-left')],
4079
- "style": "width: 261px;"
4085
+ "style": "width: 261px;",
4086
+ "class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-left')]
4080
4087
  }, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
4081
4088
  "class": this.resolveClassName('date-picker-header')
4082
4089
  }, [(0,external_vue_namespaceObject.createVNode)("span", {
@@ -4137,34 +4144,34 @@ var dateRangePanelProps = {
4137
4144
  switch (_this.leftPickerTable) {
4138
4145
  case 'date-table':
4139
4146
  return (0,external_vue_namespaceObject.createVNode)(date_table, {
4140
- "selectionMode": "range",
4141
- "tableDate": _this.leftPanelDate,
4142
4147
  "disabledDate": _this.disabledDate,
4143
- "rangeState": _this.rangeState,
4144
- "modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
4145
4148
  "focusedDate": _this.focusedDate,
4149
+ "modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
4150
+ "rangeState": _this.rangeState,
4151
+ "selectionMode": "range",
4152
+ "tableDate": _this.leftPanelDate,
4146
4153
  "onChangeRange": _this.handleChangeRange,
4147
4154
  "onPick": _this.panelPickerHandlers.left
4148
4155
  }, null);
4149
4156
  case 'month-table':
4150
4157
  return (0,external_vue_namespaceObject.createVNode)(month_table, {
4151
- "selectionMode": "range",
4152
- "tableDate": _this.leftPanelDate,
4153
4158
  "disabledDate": _this.disabledDate,
4154
- "rangeState": _this.rangeState,
4155
- "modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
4156
4159
  "focusedDate": _this.focusedDate,
4160
+ "modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
4161
+ "rangeState": _this.rangeState,
4162
+ "selectionMode": "range",
4163
+ "tableDate": _this.leftPanelDate,
4157
4164
  "onChangeRange": _this.handleChangeRange,
4158
4165
  "onPick": _this.panelPickerHandlers.left
4159
4166
  }, null);
4160
4167
  case 'year-table':
4161
4168
  return (0,external_vue_namespaceObject.createVNode)(year_table, {
4162
- "selectionMode": "range",
4163
- "tableDate": _this.leftPanelDate,
4164
4169
  "disabledDate": _this.disabledDate,
4165
- "rangeState": _this.rangeState,
4166
- "modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
4167
4170
  "focusedDate": _this.focusedDate,
4171
+ "modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
4172
+ "rangeState": _this.rangeState,
4173
+ "selectionMode": "range",
4174
+ "tableDate": _this.leftPanelDate,
4168
4175
  "onChangeRange": _this.handleChangeRange,
4169
4176
  "onPick": _this.panelPickerHandlers.left
4170
4177
  }, null);
@@ -4172,8 +4179,8 @@ var dateRangePanelProps = {
4172
4179
  return null;
4173
4180
  }
4174
4181
  }() : '']), [[external_vue_namespaceObject.vShow, !this.isTime]]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
4175
- "class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-right')],
4176
- "style": "width: 261px;"
4182
+ "style": "width: 261px;",
4183
+ "class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-right')]
4177
4184
  }, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
4178
4185
  "class": this.resolveClassName('date-picker-header')
4179
4186
  }, [this.splitPanels || this.rightPickerTable !== 'date-table' && this.rightPickerTable !== 'month-table' && this.rightPickerTable !== 'year-table' ? (0,external_vue_namespaceObject.createVNode)("span", {
@@ -4246,34 +4253,34 @@ var dateRangePanelProps = {
4246
4253
  switch (_this.rightPickerTable) {
4247
4254
  case 'date-table':
4248
4255
  return (0,external_vue_namespaceObject.createVNode)(date_table, {
4249
- "selectionMode": "range",
4250
- "tableDate": _this.rightPanelDate,
4251
- "disabledDate": _this.disabledDate,
4252
- "rangeState": _this.rangeState,
4253
4256
  "modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
4257
+ "disabledDate": _this.disabledDate,
4254
4258
  "focusedDate": _this.focusedDate,
4259
+ "rangeState": _this.rangeState,
4260
+ "selectionMode": "range",
4261
+ "tableDate": _this.rightPanelDate,
4255
4262
  "onChangeRange": _this.handleChangeRange,
4256
4263
  "onPick": _this.panelPickerHandlers.right
4257
4264
  }, null);
4258
4265
  case 'month-table':
4259
4266
  return (0,external_vue_namespaceObject.createVNode)(month_table, {
4260
- "selectionMode": "range",
4261
- "tableDate": _this.rightPanelDate,
4262
- "disabledDate": _this.disabledDate,
4263
- "rangeState": _this.rangeState,
4264
4267
  "modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
4268
+ "disabledDate": _this.disabledDate,
4265
4269
  "focusedDate": _this.focusedDate,
4270
+ "rangeState": _this.rangeState,
4271
+ "selectionMode": "range",
4272
+ "tableDate": _this.rightPanelDate,
4266
4273
  "onChangeRange": _this.handleChangeRange,
4267
4274
  "onPick": _this.panelPickerHandlers.right
4268
4275
  }, null);
4269
4276
  case 'year-table':
4270
4277
  return (0,external_vue_namespaceObject.createVNode)(year_table, {
4271
- "selectionMode": "range",
4272
- "tableDate": _this.rightPanelDate,
4273
- "disabledDate": _this.disabledDate,
4274
- "rangeState": _this.rangeState,
4275
4278
  "modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
4279
+ "disabledDate": _this.disabledDate,
4276
4280
  "focusedDate": _this.focusedDate,
4281
+ "rangeState": _this.rangeState,
4282
+ "selectionMode": "range",
4283
+ "tableDate": _this.rightPanelDate,
4277
4284
  "onChangeRange": _this.handleChangeRange,
4278
4285
  "onPick": _this.panelPickerHandlers.right
4279
4286
  }, null);
@@ -4282,23 +4289,24 @@ var dateRangePanelProps = {
4282
4289
  }
4283
4290
  }() : '']), [[external_vue_namespaceObject.vShow, !this.isTime]]), this.isTime ? (0,external_vue_namespaceObject.createVNode)(time_range, {
4284
4291
  "ref": "timePickerRef",
4292
+ "allowCrossDay": !!this.timePickerOptions.allowCrossDay,
4293
+ "disabledDate": this.disabledDate,
4294
+ "format": this.format,
4285
4295
  "selectionMode": this.selectionMode,
4286
4296
  "value": this.dates,
4287
- "format": this.format,
4288
- "disabledDate": this.disabledDate,
4289
4297
  "onPick": this.handleRangePick,
4290
- "onPick-click": this.handlePickClick,
4291
4298
  "onPick-clear": this.handlePickClear,
4299
+ "onPick-click": this.handlePickClick,
4292
4300
  "onPick-success": this.handlePickSuccess,
4293
4301
  "onPick-toggle-time": this.handleToggleTime
4294
4302
  }, null) : '', this.confirm ? (0,external_vue_namespaceObject.createVNode)(base_confirm, {
4295
4303
  "clearable": this.clearable,
4304
+ "isTime": this.isTime,
4296
4305
  "showTime": this.showTime,
4297
4306
  "timeDisabled": this.timeDisabled,
4298
- "isTime": this.isTime,
4299
- "onPick-toggle-time": this.handleToggleTime,
4300
4307
  "onPick-clear": this.handlePickClear,
4301
- "onPick-success": this.handlePickSuccess
4308
+ "onPick-success": this.handlePickSuccess,
4309
+ "onPick-toggle-time": this.handleToggleTime
4302
4310
  }, this.$slots) : '']), shortcuts]);
4303
4311
  }
4304
4312
  }));
@@ -4342,6 +4350,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4342
4350
 
4343
4351
 
4344
4352
 
4353
+ // import VueTypes, { toType, toValidableType } from 'vue-types';
4345
4354
 
4346
4355
 
4347
4356
 
@@ -4352,12 +4361,13 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4352
4361
  clickoutside: directives_namespaceObject.clickoutside
4353
4362
  },
4354
4363
  props: datePickerProps,
4355
- emits: ['open-change', 'input', 'change', 'update:modelValue', 'clear', 'shortcut-change', 'pick-success', 'pick-first'],
4364
+ emits: ['open-change', 'input', 'change', 'update:modelValue', 'clear', 'shortcut-change', 'pick-success', 'pick-first', 'blur', 'focus'],
4356
4365
  // slots: ['header'],
4357
4366
  slots: Object,
4358
4367
  setup: function setup(props, _ref) {
4359
4368
  var slots = _ref.slots,
4360
- emit = _ref.emit;
4369
+ emit = _ref.emit,
4370
+ expose = _ref.expose;
4361
4371
  var formItem = (0,shared_namespaceObject.useFormItem)();
4362
4372
  var isRange = props.type.includes('range');
4363
4373
  var teleportTo = (0,external_vue_namespaceObject.ref)((0,shared_namespaceObject.getFullscreenRoot)());
@@ -4505,13 +4515,20 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4505
4515
  return props.options;
4506
4516
  });
4507
4517
  // 限制 allow-cross-day 属性只在 time-picker 组件 type 为 timerange 时生效
4508
- var allowCrossDayProp = (0,external_vue_namespaceObject.computed)(function () {
4509
- return panel.value === 'RangeTimePickerPanel' ? props.allowCrossDay : false;
4510
- });
4518
+ // const allowCrossDayProp = computed(() => (panel.value === 'RangeTimePickerPanel' ? props.allowCrossDay : false));
4519
+ // const allowCrossDayProp = computed(() => {
4520
+ // if (panel.value === 'RangeTimePickerPanel') {
4521
+ // return props.allowCrossDay;
4522
+ // }
4523
+ // if (panel.value === 'DateRangePanel') {
4524
+ // return (props?.timePickerOptions as any)?.allowCrossDay;
4525
+ // }
4526
+ // return false;
4527
+ // });
4511
4528
  var inputRef = (0,external_vue_namespaceObject.ref)(null);
4512
4529
  var inputFocus = function inputFocus() {
4513
4530
  var _inputRef$value;
4514
- inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
4531
+ inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
4515
4532
  };
4516
4533
  (0,external_vue_namespaceObject.watch)(function () {
4517
4534
  return state.visible;
@@ -4519,9 +4536,9 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4519
4536
  var _pickerDropdownRef$va2;
4520
4537
  if (visible === false) {
4521
4538
  var _pickerDropdownRef$va;
4522
- (_pickerDropdownRef$va = pickerDropdownRef.value) === null || _pickerDropdownRef$va === void 0 || _pickerDropdownRef$va.destoryDropdown();
4539
+ (_pickerDropdownRef$va = pickerDropdownRef.value) === null || _pickerDropdownRef$va === void 0 ? void 0 : _pickerDropdownRef$va.destoryDropdown();
4523
4540
  }
4524
- (_pickerDropdownRef$va2 = pickerDropdownRef.value) === null || _pickerDropdownRef$va2 === void 0 || _pickerDropdownRef$va2.updateDropdown();
4541
+ (_pickerDropdownRef$va2 = pickerDropdownRef.value) === null || _pickerDropdownRef$va2 === void 0 ? void 0 : _pickerDropdownRef$va2.updateDropdown();
4525
4542
  // TODO: provide/inject
4526
4543
  // if (!visible) {
4527
4544
  // this.dispatch('bk-form-item', 'form-blur');
@@ -4535,7 +4552,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4535
4552
  state.internalValue = parseDate(modelValue, props.type, props.multiple, props.format);
4536
4553
  if (props.withValidate) {
4537
4554
  var _formItem$validate;
4538
- formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
4555
+ formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
4539
4556
  }
4540
4557
  });
4541
4558
  (0,external_vue_namespaceObject.watch)(function () {
@@ -4602,12 +4619,12 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4602
4619
  if (state.visible) {
4603
4620
  var _pickerPanelRef$value;
4604
4621
  var pickerPanel = pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value = pickerPanelRef.value) === null || _pickerPanelRef$value === void 0 ? void 0 : _pickerPanelRef$value.$el;
4605
- if (e && pickerPanel && pickerPanel.contains(e.target)) {
4622
+ if (e && pickerPanel !== null && pickerPanel !== void 0 && pickerPanel.contains(e.target)) {
4606
4623
  return;
4607
4624
  }
4608
4625
  state.visible = false;
4609
- e === null || e === void 0 || e.preventDefault();
4610
- e === null || e === void 0 || e.stopPropagation();
4626
+ e === null || e === void 0 ? void 0 : e.preventDefault();
4627
+ e === null || e === void 0 ? void 0 : e.stopPropagation();
4611
4628
  return;
4612
4629
  }
4613
4630
  state.isFocused = false;
@@ -4615,8 +4632,8 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4615
4632
  };
4616
4633
  var handleIconClick = function handleIconClick() {
4617
4634
  var _inputRef$value2, _inputRef$value3;
4618
- inputRef === null || inputRef === void 0 || (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.focus();
4619
- inputRef === null || inputRef === void 0 || (_inputRef$value3 = inputRef.value) === null || _inputRef$value3 === void 0 || _inputRef$value3.click();
4635
+ inputRef === null || inputRef === void 0 || (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.focus();
4636
+ inputRef === null || inputRef === void 0 || (_inputRef$value3 = inputRef.value) === null || _inputRef$value3 === void 0 ? void 0 : _inputRef$value3.click();
4620
4637
  };
4621
4638
  var handleInputMouseenter = function handleInputMouseenter() {
4622
4639
  if (props.readonly || props.disabled) {
@@ -4625,14 +4642,18 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4625
4642
  if (visualValue !== null && visualValue !== void 0 && visualValue.value) {
4626
4643
  state.showClose = true;
4627
4644
  }
4628
- state.internalValue = state.tmpValue;
4645
+ // state.internalValue = state.tmpValue;
4646
+ // console.error('enterenterenterenterenterenterenterenter', e, state.internalValue);
4629
4647
  };
4630
4648
  var handleInputMouseleave = function handleInputMouseleave(_e) {
4631
4649
  // if (e.toElement?.classList.contains('clear-action')) {
4632
4650
  // return;
4633
4651
  // }
4634
4652
  state.showClose = false;
4635
- state.internalValue = state.tmpValue;
4653
+ // state.internalValue = state.tmpValue;
4654
+ if (state.internalValue !== state.tmpValue) {
4655
+ handleInputChange(_e);
4656
+ }
4636
4657
  };
4637
4658
  var emitChange = function emitChange(type) {
4638
4659
  (0,external_vue_namespaceObject.nextTick)(function () {
@@ -4643,7 +4664,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4643
4664
  // this.dispatch('bk-form-item', 'form-change');
4644
4665
  if (props.type.indexOf('time') < 0) {
4645
4666
  var _inputRef$value4;
4646
- inputRef === null || inputRef === void 0 || (_inputRef$value4 = inputRef.value) === null || _inputRef$value4 === void 0 || _inputRef$value4.blur();
4667
+ inputRef === null || inputRef === void 0 || (_inputRef$value4 = inputRef.value) === null || _inputRef$value4 === void 0 ? void 0 : _inputRef$value4.blur();
4647
4668
  }
4648
4669
  });
4649
4670
  };
@@ -4654,7 +4675,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4654
4675
  var newValue = e.target.value;
4655
4676
  var newDate = parseDate(newValue, props.type, props.multiple, props.format);
4656
4677
  var valueToTest = isArrayValue ? newDate : newDate[0];
4657
- var isDisabled = (_props$disabledDate = props.disabledDate) === null || _props$disabledDate === void 0 ? void 0 : _props$disabledDate.call(props, valueToTest);
4678
+ var isDisabled = !valueToTest ? false : (_props$disabledDate = props.disabledDate) === null || _props$disabledDate === void 0 ? void 0 : _props$disabledDate.call(props, valueToTest);
4658
4679
  var isValidDate = newDate.reduce(function (valid, date) {
4659
4680
  return valid && date instanceof Date;
4660
4681
  }, true);
@@ -4672,7 +4693,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4672
4693
  var newValue = e.target.value;
4673
4694
  var newDate = parseDate(newValue, props.type, props.multiple, props.format);
4674
4695
  var valueToTest = isArrayValue ? newDate : newDate[0];
4675
- var isDisabled = (_props$disabledDate2 = props.disabledDate) === null || _props$disabledDate2 === void 0 ? void 0 : _props$disabledDate2.call(props, valueToTest);
4696
+ var isDisabled = !valueToTest ? false : (_props$disabledDate2 = props.disabledDate) === null || _props$disabledDate2 === void 0 ? void 0 : _props$disabledDate2.call(props, valueToTest);
4676
4697
  var isValidDate = newDate.reduce(function (valid, date) {
4677
4698
  return valid && date instanceof Date;
4678
4699
  }, true);
@@ -4686,6 +4707,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4686
4707
  }
4687
4708
  teleportTo.value = (0,shared_namespaceObject.getFullscreenRoot)();
4688
4709
  state.isFocused = true;
4710
+ emit('focus');
4689
4711
  if (e && e.type === 'focus') {
4690
4712
  return;
4691
4713
  }
@@ -4696,10 +4718,11 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4696
4718
  };
4697
4719
  var reset = function reset() {
4698
4720
  var _pickerPanelRef$value2;
4699
- pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value2 = pickerPanelRef.value) === null || _pickerPanelRef$value2 === void 0 || _pickerPanelRef$value2.reset();
4721
+ pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value2 = pickerPanelRef.value) === null || _pickerPanelRef$value2 === void 0 ? void 0 : _pickerPanelRef$value2.reset();
4700
4722
  };
4701
4723
  var handleBlur = function handleBlur(e) {
4702
4724
  var _pickerPanelRef$value3, _formItem$validate2;
4725
+ emit('blur');
4703
4726
  if (state.internalFocus) {
4704
4727
  state.internalFocus = false;
4705
4728
  return;
@@ -4712,8 +4735,8 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4712
4735
  onSelectionModeChange(props.type);
4713
4736
  state.internalValue = state.internalValue.slice();
4714
4737
  reset();
4715
- pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value3 = pickerPanelRef.value) === null || _pickerPanelRef$value3 === void 0 || _pickerPanelRef$value3.onToggleVisibility(false);
4716
- formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 || _formItem$validate2.call(formItem, 'blur');
4738
+ pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value3 = pickerPanelRef.value) === null || _pickerPanelRef$value3 === void 0 ? void 0 : _pickerPanelRef$value3.onToggleVisibility(false);
4739
+ formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 ? void 0 : _formItem$validate2.call(formItem, 'blur');
4717
4740
  };
4718
4741
  var handleKeydown = function handleKeydown(e) {
4719
4742
  var keyCode = e.keyCode;
@@ -4794,7 +4817,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4794
4817
  (0,external_vue_namespaceObject.nextTick)(function () {
4795
4818
  emit('pick-success');
4796
4819
  });
4797
- inputRef === null || inputRef === void 0 || (_inputRef$value5 = inputRef.value) === null || _inputRef$value5 === void 0 || _inputRef$value5.blur();
4820
+ inputRef === null || inputRef === void 0 || (_inputRef$value5 = inputRef.value) === null || _inputRef$value5 === void 0 ? void 0 : _inputRef$value5.blur();
4798
4821
  reset();
4799
4822
  };
4800
4823
  var onPick = function onPick(_dates) {
@@ -4849,11 +4872,14 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4849
4872
  var triggerRef = (0,external_vue_namespaceObject.ref)(null);
4850
4873
  var handleToggleTime = function handleToggleTime() {
4851
4874
  var _pickerPanelRef$value4, _pickerPanelRef$value5;
4852
- (_pickerPanelRef$value4 = (_pickerPanelRef$value5 = pickerPanelRef.value).handleToggleTime) === null || _pickerPanelRef$value4 === void 0 || _pickerPanelRef$value4.call(_pickerPanelRef$value5);
4875
+ (_pickerPanelRef$value4 = (_pickerPanelRef$value5 = pickerPanelRef.value).handleToggleTime) === null || _pickerPanelRef$value4 === void 0 ? void 0 : _pickerPanelRef$value4.call(_pickerPanelRef$value5);
4853
4876
  };
4854
4877
  var onPickFirst = function onPickFirst(val, type) {
4855
4878
  emit('pick-first', val, type);
4856
4879
  };
4880
+ expose({
4881
+ focus: handleIconClick
4882
+ });
4857
4883
  return date_picker_objectSpread(date_picker_objectSpread({}, (0,external_vue_namespaceObject.toRefs)(state)), {}, {
4858
4884
  panel: panel,
4859
4885
  publicStringValue: publicStringValue,
@@ -4868,7 +4894,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4868
4894
  fontSizeCls: fontSizeCls,
4869
4895
  longWidthCls: longWidthCls,
4870
4896
  localReadonly: localReadonly,
4871
- allowCrossDayProp: allowCrossDayProp,
4897
+ // allowCrossDayProp,
4872
4898
  ownPickerProps: ownPickerProps,
4873
4899
  teleportTo: teleportTo,
4874
4900
  pickerDropdownRef: pickerDropdownRef,
@@ -4907,23 +4933,23 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4907
4933
  "class": ['icon-wrapper', this.disabled ? 'disabled' : ''],
4908
4934
  "onClick": this.handleIconClick
4909
4935
  }, [this.type === 'time' || this.type === 'timerange' ? timeIcon : dateIcon]), (0,external_vue_namespaceObject.createVNode)("input", {
4910
- "type": "text",
4911
- "class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
4912
- "ref": "inputRef",
4913
4936
  "key": this.forceInputRerender,
4914
- "readonly": this.localReadonly,
4937
+ "ref": "inputRef",
4938
+ "class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
4915
4939
  "disabled": this.disabled,
4916
4940
  "placeholder": this.placeholder,
4941
+ "readonly": this.localReadonly,
4942
+ "type": "text",
4917
4943
  "value": this.displayValue,
4918
- "onFocus": this.handleFocus,
4919
- "onClick": this.handleFocus,
4920
4944
  "onBlur": this.handleBlur,
4921
- "onKeydown": this.handleKeydown,
4922
4945
  "onChange": this.handleInputChange,
4923
- "onInput": this.handleInputInput
4946
+ "onClick": this.handleFocus,
4947
+ "onFocus": this.handleFocus,
4948
+ "onInput": this.handleInputInput,
4949
+ "onKeydown": this.handleKeydown
4924
4950
  }, null), this.clearable && this.showClose ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
4925
- "onClick": this.handleClear,
4926
- "class": "clear-action"
4951
+ "class": "clear-action",
4952
+ "onClick": this.handleClear
4927
4953
  }, null) : '']);
4928
4954
  // const shortcutsSlot = this.hasShortcuts ? { shortcuts: () => this.$slots.shortcuts?.() || null } : {};
4929
4955
  var shortcutsSlot = this.hasShortcuts ? {
@@ -4946,8 +4972,8 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4946
4972
  "onMouseenter": this.handleInputMouseenter,
4947
4973
  "onMouseleave": this.handleInputMouseleave
4948
4974
  }, [(_this$$slots$trigger = (_this$$slots$trigger2 = (_this$$slots2 = this.$slots).trigger) === null || _this$$slots$trigger2 === void 0 ? void 0 : _this$$slots$trigger2.call(_this$$slots2, this.displayValue)) !== null && _this$$slots$trigger !== void 0 ? _this$$slots$trigger : defaultTrigger]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
4949
- "to": this.teleportTo,
4950
- "disabled": !this.appendToBody
4975
+ "disabled": !this.appendToBody,
4976
+ "to": this.teleportTo
4951
4977
  }, {
4952
4978
  "default": function _default() {
4953
4979
  return [(0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
@@ -4955,48 +4981,48 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4955
4981
  }, {
4956
4982
  "default": function _default() {
4957
4983
  return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(picker_dropdown, {
4958
- "class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
4959
4984
  "ref": "pickerDropdownRef",
4960
- "triggerRef": _this.triggerRef,
4961
- "placement": _this.placement,
4985
+ "class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
4986
+ "appendToBody": _this.appendToBody,
4962
4987
  "extPopoverCls": _this.extPopoverCls,
4963
- "appendToBody": _this.appendToBody
4988
+ "placement": _this.placement,
4989
+ "triggerRef": _this.triggerRef
4964
4990
  }, {
4965
4991
  "default": function _default() {
4966
4992
  return [_this.hasHeader ? (0,external_vue_namespaceObject.createVNode)("div", {
4967
4993
  "class": [_this.resolveClassName('date-picker-top-wrapper'), _this.headerSlotCls]
4968
4994
  }, [(_this$$slots$header = (_this$$slots$header2 = (_this$$slots3 = _this.$slots).header) === null || _this$$slots$header2 === void 0 ? void 0 : _this$$slots$header2.call(_this$$slots3)) !== null && _this$$slots$header !== void 0 ? _this$$slots$header : null]) : null, _this.panel === 'DateRangePanel' ? (0,external_vue_namespaceObject.createVNode)(date_range, {
4969
4995
  "ref": "pickerPanelRef",
4970
- "type": _this.type,
4971
- "showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
4972
4996
  "confirm": _this.isConfirm,
4973
- "shortcuts": _this.shortcuts,
4974
- "shortcutClose": _this.shortcutClose,
4997
+ "disabledDate": _this.disabledDate,
4998
+ "focusedDate": _this.focusedDate,
4975
4999
  "modelValue": _this.internalValue,
4976
5000
  "selectionMode": _this.selectionMode,
5001
+ "shortcutClose": _this.shortcutClose,
5002
+ "shortcutSelectedIndex": _this.shortcutSelectedIndex,
5003
+ "shortcuts": _this.shortcuts,
5004
+ "showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
4977
5005
  "startDate": _this.startDate,
4978
- "disabledDate": _this.disabledDate,
4979
- "focusedDate": _this.focusedDate,
4980
5006
  "timePickerOptions": _this.timePickerOptions,
5007
+ "type": _this.type,
4981
5008
  "onPick": _this.onPick,
4982
5009
  "onPick-clear": _this.handleClear,
5010
+ "onPick-first": _this.onPickFirst,
4983
5011
  "onPick-success": _this.onPickSuccess,
4984
- "onSelection-mode-change": _this.onSelectionModeChange,
4985
- "shortcutSelectedIndex": _this.shortcutSelectedIndex,
4986
- "onPick-first": _this.onPickFirst
5012
+ "onSelection-mode-change": _this.onSelectionModeChange
4987
5013
  }, slots) : (0,external_vue_namespaceObject.createVNode)(date, {
4988
5014
  "ref": "pickerPanelRef",
4989
5015
  "clearable": _this.clearable,
4990
- "showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
4991
5016
  "confirm": _this.isConfirm,
4992
- "shortcuts": _this.shortcuts,
5017
+ "disabledDate": _this.disabledDate,
5018
+ "focusedDate": _this.focusedDate,
5019
+ "modelValue": _this.internalValue,
4993
5020
  "multiple": _this.multiple,
4994
- "shortcutClose": _this.shortcutClose,
4995
5021
  "selectionMode": _this.selectionMode,
4996
- "modelValue": _this.internalValue,
5022
+ "shortcutClose": _this.shortcutClose,
5023
+ "shortcuts": _this.shortcuts,
5024
+ "showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
4997
5025
  "startDate": _this.startDate,
4998
- "disabledDate": _this.disabledDate,
4999
- "focusedDate": _this.focusedDate,
5000
5026
  "timePickerOptions": _this.timePickerOptions,
5001
5027
  "onPick": _this.onPick,
5002
5028
  "onPick-clear": _this.handleClear,
@@ -5053,6 +5079,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5053
5079
 
5054
5080
 
5055
5081
 
5082
+ // import VueTypes, { toType, toValidableType } from 'vue-types';
5056
5083
 
5057
5084
 
5058
5085
 
@@ -5063,12 +5090,13 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5063
5090
  clickoutside: directives_namespaceObject.clickoutside
5064
5091
  },
5065
5092
  props: time_picker_objectSpread(time_picker_objectSpread(time_picker_objectSpread({}, datePickerProps), timePickerProps), timePanelProps),
5066
- emits: ['open-change', 'input', 'change', 'update:modelValue', 'clear', 'shortcut-change', 'pick-success'],
5093
+ emits: ['open-change', 'input', 'change', 'update:modelValue', 'clear', 'shortcut-change', 'pick-success', 'blur', 'focus'],
5067
5094
  // slots: ['header'],
5068
5095
  slots: Object,
5069
5096
  setup: function setup(props, _ref) {
5070
5097
  var slots = _ref.slots,
5071
- emit = _ref.emit;
5098
+ emit = _ref.emit,
5099
+ expose = _ref.expose;
5072
5100
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
5073
5101
  resolveClassName = _usePrefix.resolveClassName;
5074
5102
  var teleportTo = (0,external_vue_namespaceObject.ref)((0,shared_namespaceObject.getFullscreenRoot)());
@@ -5221,10 +5249,10 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5221
5249
  }, function (visible) {
5222
5250
  if (visible) {
5223
5251
  var _pickerDropdownRef$va, _pickerDropdownRef$va2;
5224
- (_pickerDropdownRef$va = pickerDropdownRef.value) === null || _pickerDropdownRef$va === void 0 || (_pickerDropdownRef$va2 = _pickerDropdownRef$va.forceUpdate) === null || _pickerDropdownRef$va2 === void 0 || _pickerDropdownRef$va2.call(_pickerDropdownRef$va);
5252
+ (_pickerDropdownRef$va = pickerDropdownRef.value) === null || _pickerDropdownRef$va === void 0 || (_pickerDropdownRef$va2 = _pickerDropdownRef$va.forceUpdate) === null || _pickerDropdownRef$va2 === void 0 ? void 0 : _pickerDropdownRef$va2.call(_pickerDropdownRef$va);
5225
5253
  (0,external_vue_namespaceObject.nextTick)(function () {
5226
5254
  var _proxy$pickerPanelRef;
5227
- (_proxy$pickerPanelRef = proxy.pickerPanelRef) === null || _proxy$pickerPanelRef === void 0 || (_proxy$pickerPanelRef = _proxy$pickerPanelRef.timeSpinnerRef) === null || _proxy$pickerPanelRef === void 0 || _proxy$pickerPanelRef.updateScroll();
5255
+ (_proxy$pickerPanelRef = proxy.pickerPanelRef) === null || _proxy$pickerPanelRef === void 0 || (_proxy$pickerPanelRef = _proxy$pickerPanelRef.timeSpinnerRef) === null || _proxy$pickerPanelRef === void 0 ? void 0 : _proxy$pickerPanelRef.updateScroll();
5228
5256
  });
5229
5257
  }
5230
5258
  });
@@ -5234,7 +5262,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5234
5262
  state.internalValue = parseDate(modelValue, props.type, props.multiple, props.format);
5235
5263
  if (props.withValidate) {
5236
5264
  var _formItem$validate;
5237
- formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
5265
+ formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
5238
5266
  }
5239
5267
  });
5240
5268
  (0,external_vue_namespaceObject.watch)(function () {
@@ -5291,6 +5319,17 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5291
5319
  });
5292
5320
  var pickerPanelRef = (0,external_vue_namespaceObject.ref)(null);
5293
5321
  var handleClose = function handleClose(e) {
5322
+ if (props.appendToBody) {
5323
+ var _pickerPanelRef$value;
5324
+ state.disableCloseUnderTransfer = true;
5325
+ var pickerPanel = pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value = pickerPanelRef.value) === null || _pickerPanelRef$value === void 0 ? void 0 : _pickerPanelRef$value.$el;
5326
+ if (e && pickerPanel !== null && pickerPanel !== void 0 && pickerPanel.contains(e.target)) {
5327
+ return;
5328
+ }
5329
+ state.visible = false;
5330
+ e === null || e === void 0 ? void 0 : e.preventDefault();
5331
+ e === null || e === void 0 ? void 0 : e.stopPropagation();
5332
+ }
5294
5333
  if (state.disableCloseUnderTransfer) {
5295
5334
  state.disableCloseUnderTransfer = false;
5296
5335
  return false;
@@ -5301,14 +5340,14 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5301
5340
  return;
5302
5341
  }
5303
5342
  if (state.visible) {
5304
- var _pickerPanelRef$value;
5305
- var pickerPanel = pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value = pickerPanelRef.value) === null || _pickerPanelRef$value === void 0 ? void 0 : _pickerPanelRef$value.$el;
5306
- if (e && pickerPanel && pickerPanel.contains(e.target)) {
5343
+ var _pickerPanelRef$value2;
5344
+ var _pickerPanel = pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value2 = pickerPanelRef.value) === null || _pickerPanelRef$value2 === void 0 ? void 0 : _pickerPanelRef$value2.$el;
5345
+ if (e && _pickerPanel !== null && _pickerPanel !== void 0 && _pickerPanel.contains(e.target)) {
5307
5346
  return;
5308
5347
  }
5309
5348
  state.visible = false;
5310
- e === null || e === void 0 || e.preventDefault();
5311
- e === null || e === void 0 || e.stopPropagation();
5349
+ e === null || e === void 0 ? void 0 : e.preventDefault();
5350
+ e === null || e === void 0 ? void 0 : e.stopPropagation();
5312
5351
  return;
5313
5352
  }
5314
5353
  state.isFocused = false;
@@ -5316,8 +5355,8 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5316
5355
  };
5317
5356
  var handleIconClick = function handleIconClick() {
5318
5357
  var _inputRef$value, _inputRef$value2;
5319
- inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
5320
- inputRef === null || inputRef === void 0 || (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.click();
5358
+ inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
5359
+ inputRef === null || inputRef === void 0 || (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.click();
5321
5360
  };
5322
5361
  var handleInputMouseenter = function handleInputMouseenter() {
5323
5362
  if (props.readonly || props.disabled) {
@@ -5344,14 +5383,14 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5344
5383
  // this.dispatch('bk-form-item', 'form-change');
5345
5384
  if (props.type.indexOf('time') < 0) {
5346
5385
  var _inputRef$value3;
5347
- inputRef === null || inputRef === void 0 || (_inputRef$value3 = inputRef.value) === null || _inputRef$value3 === void 0 || _inputRef$value3.blur();
5386
+ inputRef === null || inputRef === void 0 || (_inputRef$value3 = inputRef.value) === null || _inputRef$value3 === void 0 ? void 0 : _inputRef$value3.blur();
5348
5387
  }
5349
5388
  });
5350
5389
  };
5351
5390
  var handleInputChange = function handleInputChange(e) {
5352
5391
  var _props$disabledDate;
5353
5392
  var isArrayValue = props.type.includes('range') || props.multiple;
5354
- var oldValue = visualValue.value;
5393
+ // const oldValue = visualValue.value;
5355
5394
  var newValue = e.target.value;
5356
5395
  var newDate = parseDate(newValue, props.type, props.multiple, props.format);
5357
5396
  var valueToTest = isArrayValue ? newDate : newDate[0];
@@ -5359,7 +5398,9 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5359
5398
  var isValidDate = newDate.reduce(function (valid, date) {
5360
5399
  return valid && date instanceof Date;
5361
5400
  }, true);
5362
- if (newValue !== oldValue && !isDisabled && isValidDate) {
5401
+ // 这里不需要进行新旧数据对比是因为input输入的时候visualValue的computed依赖始终是最新的
5402
+ // if (newValue !== oldValue && !isDisabled && isValidDate) {
5403
+ if (!isDisabled && isValidDate) {
5363
5404
  emitChange(props.type);
5364
5405
  state.internalValue = newDate;
5365
5406
  } else {
@@ -5387,6 +5428,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5387
5428
  }
5388
5429
  teleportTo.value = (0,shared_namespaceObject.getFullscreenRoot)();
5389
5430
  state.isFocused = true;
5431
+ emit('focus');
5390
5432
  if (e && e.type === 'focus') {
5391
5433
  return;
5392
5434
  }
@@ -5396,11 +5438,12 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5396
5438
  }
5397
5439
  };
5398
5440
  var reset = function reset() {
5399
- var _pickerPanelRef$value2, _pickerPanelRef$value3;
5400
- pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value2 = pickerPanelRef.value) === null || _pickerPanelRef$value2 === void 0 || (_pickerPanelRef$value3 = _pickerPanelRef$value2.reset) === null || _pickerPanelRef$value3 === void 0 || _pickerPanelRef$value3.call(_pickerPanelRef$value2);
5441
+ var _pickerPanelRef$value3, _pickerPanelRef$value4;
5442
+ pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value3 = pickerPanelRef.value) === null || _pickerPanelRef$value3 === void 0 || (_pickerPanelRef$value4 = _pickerPanelRef$value3.reset) === null || _pickerPanelRef$value4 === void 0 ? void 0 : _pickerPanelRef$value4.call(_pickerPanelRef$value3);
5401
5443
  };
5402
5444
  var handleBlur = function handleBlur(e) {
5403
- var _pickerPanelRef$value4, _formItem$validate2;
5445
+ var _pickerPanelRef$value5, _formItem$validate2;
5446
+ emit('blur');
5404
5447
  if (state.internalFocus) {
5405
5448
  state.internalFocus = false;
5406
5449
  return;
@@ -5413,8 +5456,8 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5413
5456
  onSelectionModeChange(props.type);
5414
5457
  state.internalValue = state.internalValue.slice();
5415
5458
  reset();
5416
- pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value4 = pickerPanelRef.value) === null || _pickerPanelRef$value4 === void 0 || _pickerPanelRef$value4.onToggleVisibility(false);
5417
- formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 || _formItem$validate2.call(formItem, 'blur');
5459
+ pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value5 = pickerPanelRef.value) === null || _pickerPanelRef$value5 === void 0 ? void 0 : _pickerPanelRef$value5.onToggleVisibility(false);
5460
+ formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 ? void 0 : _formItem$validate2.call(formItem, 'blur');
5418
5461
  };
5419
5462
  var handleKeydown = function handleKeydown(e) {
5420
5463
  var keyCode = e.keyCode;
@@ -5501,7 +5544,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5501
5544
  (0,external_vue_namespaceObject.nextTick)(function () {
5502
5545
  emit('pick-success');
5503
5546
  });
5504
- inputRef === null || inputRef === void 0 || (_inputRef$value4 = inputRef.value) === null || _inputRef$value4 === void 0 || _inputRef$value4.blur();
5547
+ inputRef === null || inputRef === void 0 || (_inputRef$value4 = inputRef.value) === null || _inputRef$value4 === void 0 ? void 0 : _inputRef$value4.blur();
5505
5548
  reset();
5506
5549
  };
5507
5550
  var onPick = function onPick(_dates) {
@@ -5554,6 +5597,9 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5554
5597
  emit('shortcut-change', state.shortcut, shortcutIndex);
5555
5598
  };
5556
5599
  var triggerRef = (0,external_vue_namespaceObject.ref)(null);
5600
+ expose({
5601
+ focus: handleIconClick
5602
+ });
5557
5603
  return time_picker_objectSpread(time_picker_objectSpread({}, (0,external_vue_namespaceObject.toRefs)(state)), {}, {
5558
5604
  panel: panel,
5559
5605
  publicStringValue: publicStringValue,
@@ -5605,23 +5651,23 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5605
5651
  "class": ['icon-wrapper', this.disabled ? 'disabled' : ''],
5606
5652
  "onClick": this.handleIconClick
5607
5653
  }, [this.type === 'time' || this.type === 'timerange' ? timeIcon : dateIcon]), (0,external_vue_namespaceObject.createVNode)("input", {
5608
- "type": "text",
5609
- "class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
5610
- "ref": "inputRef",
5611
5654
  "key": this.forceInputRerender,
5612
- "readonly": this.localReadonly,
5655
+ "ref": "inputRef",
5656
+ "class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
5613
5657
  "disabled": this.disabled,
5614
5658
  "placeholder": this.placeholder,
5659
+ "readonly": this.localReadonly,
5660
+ "type": "text",
5615
5661
  "value": this.displayValue,
5616
- "onFocus": this.handleFocus,
5617
- "onClick": this.handleFocus,
5618
5662
  "onBlur": this.handleBlur,
5619
- "onKeydown": this.handleKeydown,
5620
5663
  "onChange": this.handleInputChange,
5621
- "onInput": this.handleInputInput
5664
+ "onClick": this.handleFocus,
5665
+ "onFocus": this.handleFocus,
5666
+ "onInput": this.handleInputInput,
5667
+ "onKeydown": this.handleKeydown
5622
5668
  }, null), this.clearable && this.showClose ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
5623
- "onClick": this.handleClear,
5624
- "class": "clear-action"
5669
+ "class": "clear-action",
5670
+ "onClick": this.handleClear
5625
5671
  }, null) : '']);
5626
5672
  var shortcutsSlot = this.hasShortcuts ? {
5627
5673
  shortcuts: function shortcuts() {
@@ -5637,8 +5683,8 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5637
5683
  "onMouseenter": this.handleInputMouseenter,
5638
5684
  "onMouseleave": this.handleInputMouseleave
5639
5685
  }, [(_this$$slots$trigger = (_this$$slots$trigger2 = (_this$$slots2 = this.$slots).trigger) === null || _this$$slots$trigger2 === void 0 ? void 0 : _this$$slots$trigger2.call(_this$$slots2, this.displayValue)) !== null && _this$$slots$trigger !== void 0 ? _this$$slots$trigger : defaultTrigger]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
5640
- "to": this.teleportTo,
5641
- "disabled": !this.appendToBody
5686
+ "disabled": !this.appendToBody,
5687
+ "to": this.teleportTo
5642
5688
  }, {
5643
5689
  "default": function _default() {
5644
5690
  return [(0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
@@ -5646,12 +5692,12 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5646
5692
  }, {
5647
5693
  "default": function _default() {
5648
5694
  return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(picker_dropdown, {
5649
- "class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
5650
5695
  "ref": "pickerDropdownRef",
5651
- "triggerRef": _this.triggerRef,
5652
- "placement": _this.placement,
5653
- "extPopoverCls": _this.extPopoverCls,
5696
+ "class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
5654
5697
  "appendToBody": _this.appendToBody,
5698
+ "extPopoverCls": _this.extPopoverCls,
5699
+ "placement": _this.placement,
5700
+ "triggerRef": _this.triggerRef,
5655
5701
  "onClick": _this.handleTransferClick
5656
5702
  }, {
5657
5703
  "default": function _default() {
@@ -5659,38 +5705,38 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
5659
5705
  "class": [_this.resolveClassName('date-picker-top-wrapper'), _this.headerSlotCls]
5660
5706
  }, [(_this$$slots$header = (_this$$slots$header2 = (_this$$slots3 = _this.$slots).header) === null || _this$$slots$header2 === void 0 ? void 0 : _this$$slots$header2.call(_this$$slots3)) !== null && _this$$slots$header !== void 0 ? _this$$slots$header : null]) : null, _this.panel === 'RangeTimePickerPanel' ? (0,external_vue_namespaceObject.createVNode)(time_range, {
5661
5707
  "ref": "pickerPanelRef",
5708
+ "allowCrossDay": _this.allowCrossDayProp,
5662
5709
  "clearable": _this.clearable,
5663
- "shortcuts": _this.shortcuts,
5710
+ "disabledDate": _this.disabledDate,
5711
+ "disabledHours": _this.ownPickerProps.disabledHours,
5712
+ "disabledMinutes": _this.ownPickerProps.disabledMinutes,
5713
+ "disabledSeconds": _this.ownPickerProps.disabledSeconds,
5714
+ "format": _this.format,
5664
5715
  "multiple": _this.multiple,
5665
5716
  "shortcutClose": _this.shortcutClose,
5666
- "value": _this.internalValue,
5717
+ "shortcuts": _this.shortcuts,
5667
5718
  "startDate": _this.startDate,
5668
- "disabledDate": _this.disabledDate,
5719
+ "value": _this.internalValue,
5669
5720
  "onPick": _this.onPick,
5670
5721
  "onPick-clear": _this.handleClear,
5671
- "onPick-success": _this.onPickSuccess,
5672
- "disabledHours": _this.ownPickerProps.disabledHours,
5673
- "disabledMinutes": _this.ownPickerProps.disabledMinutes,
5674
- "disabledSeconds": _this.ownPickerProps.disabledSeconds,
5675
- "allowCrossDay": _this.allowCrossDayProp,
5676
- "format": _this.format
5722
+ "onPick-success": _this.onPickSuccess
5677
5723
  }, shortcutsSlot) : (0,external_vue_namespaceObject.createVNode)(time, {
5678
5724
  "ref": "pickerPanelRef",
5679
5725
  "clearable": _this.clearable,
5680
5726
  "confirm": _this.isConfirm,
5681
- "shortcuts": _this.shortcuts,
5727
+ "disabledDate": _this.disabledDate,
5728
+ "disabledHours": _this.ownPickerProps.disabledHours,
5729
+ "disabledMinutes": _this.ownPickerProps.disabledMinutes,
5730
+ "disabledSeconds": _this.ownPickerProps.disabledSeconds,
5731
+ "format": _this.format,
5682
5732
  "multiple": _this.multiple,
5683
5733
  "shortcutClose": _this.shortcutClose,
5684
- "value": _this.internalValue,
5734
+ "shortcuts": _this.shortcuts,
5685
5735
  "startDate": _this.startDate,
5686
- "disabledDate": _this.disabledDate,
5736
+ "value": _this.internalValue,
5687
5737
  "onPick": _this.onPick,
5688
5738
  "onPick-clear": _this.handleClear,
5689
- "onPick-success": _this.onPickSuccess,
5690
- "disabledHours": _this.ownPickerProps.disabledHours,
5691
- "disabledMinutes": _this.ownPickerProps.disabledMinutes,
5692
- "disabledSeconds": _this.ownPickerProps.disabledSeconds,
5693
- "format": _this.format
5739
+ "onPick-success": _this.onPickSuccess
5694
5740
  }, shortcutsSlot), _this.hasFooter ? (0,external_vue_namespaceObject.createVNode)("div", {
5695
5741
  "class": [_this.resolveClassName('date-picker-footer-wrapper'), _this.footerSlotCls]
5696
5742
  }, [(_this$$slots$footer = (_this$$slots$footer2 = (_this$$slots4 = _this.$slots).footer) === null || _this$$slots$footer2 === void 0 ? void 0 : _this$$slots$footer2.call(_this$$slots4)) !== null && _this$$slots$footer !== void 0 ? _this$$slots$footer : null]) : null];