bkui-vue 0.0.1-beta.13 → 0.0.1-beta.132

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 (529) hide show
  1. package/README.md +31 -19
  2. package/dist/index.cjs.js +171 -0
  3. package/dist/index.esm.js +31713 -0
  4. package/dist/index.umd.js +171 -0
  5. package/dist/style.css +1 -4051
  6. package/dist/style.variable.css +1 -0
  7. package/lib/affix/affix.css +3 -0
  8. package/lib/affix/affix.d.ts +47 -0
  9. package/lib/affix/affix.less +5 -0
  10. package/lib/affix/affix.variable.css +105 -0
  11. package/lib/affix/index.d.ts +190 -0
  12. package/lib/affix/index.js +1 -0
  13. package/lib/alert/alert.css +5 -3
  14. package/lib/alert/alert.d.ts +24 -15
  15. package/lib/alert/alert.less +7 -3
  16. package/lib/alert/alert.variable.css +24 -6
  17. package/lib/alert/index.d.ts +159 -61
  18. package/lib/alert/index.js +1 -1
  19. package/lib/animate-number/animate-number.d.ts +12 -7
  20. package/lib/animate-number/index.d.ts +76 -29
  21. package/lib/animate-number/index.js +1 -1
  22. package/lib/backtop/backtop.d.ts +28 -14
  23. package/lib/backtop/backtop.variable.css +19 -3
  24. package/lib/backtop/index.d.ts +172 -56
  25. package/lib/backtop/index.js +1 -1
  26. package/lib/badge/badge.css +5 -5
  27. package/lib/badge/badge.d.ts +64 -22
  28. package/lib/badge/badge.less +5 -6
  29. package/lib/badge/badge.variable.css +24 -8
  30. package/lib/badge/index.d.ts +305 -85
  31. package/lib/badge/index.js +1 -1
  32. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  33. package/lib/breadcrumb/breadcrumb.css +61 -1
  34. package/lib/breadcrumb/breadcrumb.d.ts +37 -9
  35. package/lib/breadcrumb/breadcrumb.less +13 -2
  36. package/lib/breadcrumb/breadcrumb.variable.css +80 -4
  37. package/lib/breadcrumb/index.d.ts +172 -46
  38. package/lib/breadcrumb/index.js +1 -1
  39. package/lib/button/button-group.d.ts +3 -5
  40. package/lib/button/button.css +92 -44
  41. package/lib/button/button.d.ts +76 -26
  42. package/lib/button/button.less +89 -47
  43. package/lib/button/button.variable.css +111 -47
  44. package/lib/button/index.d.ts +288 -103
  45. package/lib/button/index.js +1 -1
  46. package/lib/card/card.css +96 -1
  47. package/lib/card/card.d.ts +74 -18
  48. package/lib/card/card.less +50 -2
  49. package/lib/card/card.variable.css +115 -4
  50. package/lib/card/index.d.ts +336 -70
  51. package/lib/card/index.js +1 -1
  52. package/lib/cascader/cascader-panel.d.ts +48 -0
  53. package/lib/cascader/cascader.css +130 -0
  54. package/lib/cascader/cascader.d.ts +271 -0
  55. package/lib/cascader/cascader.less +146 -0
  56. package/lib/cascader/cascader.variable.css +232 -0
  57. package/lib/cascader/index.d.ts +991 -0
  58. package/lib/cascader/index.js +1 -0
  59. package/lib/cascader/interface.d.ts +44 -0
  60. package/lib/cascader/node.d.ts +24 -0
  61. package/lib/cascader/store.d.ts +15 -0
  62. package/lib/checkbox/checkbox-group.d.ts +13 -9
  63. package/lib/checkbox/checkbox.css +33 -6
  64. package/lib/checkbox/checkbox.d.ts +43 -32
  65. package/lib/checkbox/checkbox.less +44 -6
  66. package/lib/checkbox/checkbox.variable.css +52 -9
  67. package/lib/checkbox/common.d.ts +3 -3
  68. package/lib/checkbox/index.d.ts +234 -105
  69. package/lib/checkbox/index.js +1 -1
  70. package/lib/checkbox/type.d.ts +4 -8
  71. package/lib/code-diff/code-diff.css +186 -0
  72. package/lib/code-diff/code-diff.d.ts +80 -0
  73. package/lib/code-diff/code-diff.less +238 -0
  74. package/lib/code-diff/code-diff.variable.css +288 -0
  75. package/lib/code-diff/index.d.ts +204 -0
  76. package/lib/code-diff/index.js +1 -0
  77. package/lib/collapse/collapse.css +17 -1
  78. package/lib/collapse/collapse.d.ts +51 -22
  79. package/lib/collapse/collapse.less +24 -2
  80. package/lib/collapse/collapse.variable.css +119 -1
  81. package/lib/collapse/index.d.ts +191 -76
  82. package/lib/collapse/index.js +1 -1
  83. package/lib/collapse/utils.d.ts +11 -0
  84. package/lib/components.d.ts +26 -5
  85. package/lib/components.js +1 -0
  86. package/lib/container/col.d.ts +51 -0
  87. package/lib/container/container.css +91 -0
  88. package/lib/container/container.d.ts +83 -0
  89. package/lib/container/container.less +20 -0
  90. package/lib/container/container.variable.css +193 -0
  91. package/lib/container/index.d.ts +281 -0
  92. package/lib/container/index.js +1 -0
  93. package/lib/container/row.d.ts +4 -0
  94. package/lib/date-picker/date-picker.css +3 -2
  95. package/lib/date-picker/date-picker.d.ts +92 -137
  96. package/lib/date-picker/date-picker.less +5 -2
  97. package/lib/date-picker/date-picker.variable.css +22 -5
  98. package/lib/date-picker/index.d.ts +816 -277
  99. package/lib/date-picker/index.js +1 -1
  100. package/lib/date-picker/interface.d.ts +1 -1
  101. package/lib/date-picker/props.d.ts +118 -0
  102. package/lib/date-picker/utils.d.ts +1 -1
  103. package/lib/dialog/dialog.css +68 -16
  104. package/lib/dialog/dialog.d.ts +285 -52
  105. package/lib/dialog/dialog.less +43 -17
  106. package/lib/dialog/dialog.variable.css +68 -16
  107. package/lib/dialog/index.d.ts +982 -116
  108. package/lib/dialog/index.js +1 -1
  109. package/lib/directives/clickoutside.d.ts +3 -23
  110. package/lib/directives/index.js +2 -15
  111. package/lib/directives/index.js.LICENSE.txt +14 -0
  112. package/lib/directives/tooltips.d.ts +1 -1
  113. package/lib/dist.index.js +1 -0
  114. package/lib/divider/divider.d.ts +21 -13
  115. package/lib/divider/divider.variable.css +19 -3
  116. package/lib/divider/index.d.ts +133 -53
  117. package/lib/divider/index.js +1 -1
  118. package/lib/divider/props.d.ts +21 -0
  119. package/lib/dropdown/dropdown-item.d.ts +6 -5
  120. package/lib/dropdown/dropdown-menu.d.ts +6 -5
  121. package/lib/dropdown/dropdown.css +4 -0
  122. package/lib/dropdown/dropdown.d.ts +29 -15
  123. package/lib/dropdown/dropdown.less +5 -0
  124. package/lib/dropdown/dropdown.variable.css +23 -3
  125. package/lib/dropdown/index.d.ts +168 -73
  126. package/lib/dropdown/index.js +1 -1
  127. package/lib/exception/exception.d.ts +11 -9
  128. package/lib/exception/exception.variable.css +19 -3
  129. package/lib/exception/index.d.ts +71 -37
  130. package/lib/exception/index.js +1 -1
  131. package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
  132. package/lib/fixed-navbar/fixed-navbar.variable.css +19 -3
  133. package/lib/fixed-navbar/index.d.ts +145 -38
  134. package/lib/fixed-navbar/index.js +1 -1
  135. package/lib/form/compose-form-item.d.ts +16 -0
  136. package/lib/form/form-item.d.ts +61 -45
  137. package/lib/form/form.css +96 -10
  138. package/lib/form/form.d.ts +45 -40
  139. package/lib/form/form.less +136 -34
  140. package/lib/form/form.variable.css +198 -10
  141. package/lib/form/index.d.ts +361 -3
  142. package/lib/form/index.js +1 -1
  143. package/lib/form/type.d.ts +8 -6
  144. package/lib/form/validator.d.ts +1 -0
  145. package/lib/icon/angle-double-down-line.d.ts +4 -0
  146. package/lib/icon/angle-double-down-line.js +1 -0
  147. package/lib/icon/angle-double-left-line.d.ts +4 -0
  148. package/lib/icon/angle-double-left-line.js +1 -0
  149. package/lib/icon/angle-double-left.js +1 -0
  150. package/lib/icon/angle-double-right-line.d.ts +4 -0
  151. package/lib/icon/angle-double-right-line.js +1 -0
  152. package/lib/icon/angle-double-right.js +1 -0
  153. package/lib/icon/angle-double-up-line.d.ts +4 -0
  154. package/lib/icon/angle-double-up-line.js +1 -0
  155. package/lib/icon/angle-down-fill.d.ts +4 -0
  156. package/lib/icon/angle-down-fill.js +1 -0
  157. package/lib/icon/angle-down-line.js +1 -0
  158. package/lib/icon/angle-down.js +1 -0
  159. package/lib/icon/angle-left.js +1 -0
  160. package/lib/icon/angle-right.js +1 -0
  161. package/lib/icon/angle-up-fill.d.ts +4 -0
  162. package/lib/icon/angle-up-fill.js +1 -0
  163. package/lib/icon/angle-up.js +1 -0
  164. package/lib/icon/archive-fill.d.ts +4 -0
  165. package/lib/icon/archive-fill.js +1 -0
  166. package/lib/icon/arrows-left.d.ts +4 -0
  167. package/lib/icon/arrows-left.js +1 -0
  168. package/lib/icon/arrows-right.d.ts +4 -0
  169. package/lib/icon/arrows-right.js +1 -0
  170. package/lib/icon/audio-fill.d.ts +4 -0
  171. package/lib/icon/audio-fill.js +1 -0
  172. package/lib/icon/bk.d.ts +4 -0
  173. package/lib/icon/bk.js +1 -0
  174. package/lib/icon/circle.js +1 -0
  175. package/lib/icon/close-line.d.ts +4 -0
  176. package/lib/icon/close-line.js +1 -0
  177. package/lib/icon/close.js +1 -0
  178. package/lib/icon/code.js +1 -0
  179. package/lib/icon/cog-shape.js +1 -0
  180. package/lib/icon/collapse-left.js +1 -0
  181. package/lib/icon/copy.js +1 -0
  182. package/lib/icon/data-shape.d.ts +4 -0
  183. package/lib/icon/data-shape.js +1 -0
  184. package/lib/icon/del.d.ts +4 -0
  185. package/lib/icon/del.js +1 -0
  186. package/lib/icon/doc-fill.d.ts +4 -0
  187. package/lib/icon/doc-fill.js +1 -0
  188. package/lib/icon/done.js +1 -0
  189. package/lib/icon/down-shape.js +1 -0
  190. package/lib/icon/down-small.js +1 -0
  191. package/lib/icon/edit-line.d.ts +4 -0
  192. package/lib/icon/edit-line.js +1 -0
  193. package/lib/icon/ellipsis.d.ts +4 -0
  194. package/lib/icon/ellipsis.js +1 -0
  195. package/lib/icon/error.js +1 -0
  196. package/lib/icon/excel-fill.d.ts +4 -0
  197. package/lib/icon/excel-fill.js +1 -0
  198. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  199. package/lib/icon/exclamation-circle-shape.js +1 -0
  200. package/lib/icon/eye.js +1 -0
  201. package/lib/icon/folder-open.js +1 -0
  202. package/lib/icon/folder-shape-open.js +1 -0
  203. package/lib/icon/folder-shape.js +1 -0
  204. package/lib/icon/funnel.d.ts +4 -0
  205. package/lib/icon/funnel.js +1 -0
  206. package/lib/icon/help-document-fill.js +1 -0
  207. package/lib/icon/help-fill.js +1 -0
  208. package/lib/icon/help.js +1 -0
  209. package/lib/icon/image-fill.d.ts +4 -0
  210. package/lib/icon/image-fill.js +1 -0
  211. package/lib/icon/index.d.ts +34 -3
  212. package/lib/icon/index.js +1 -15
  213. package/lib/icon/info-line.js +1 -0
  214. package/lib/icon/info.js +1 -0
  215. package/lib/icon/left-shape.d.ts +4 -0
  216. package/lib/icon/left-shape.js +1 -0
  217. package/lib/icon/pdf-fill.d.ts +4 -0
  218. package/lib/icon/pdf-fill.js +1 -0
  219. package/lib/icon/play-shape.js +1 -0
  220. package/lib/icon/plus.js +1 -0
  221. package/lib/icon/ppt-fill.d.ts +4 -0
  222. package/lib/icon/ppt-fill.js +1 -0
  223. package/lib/icon/qq.d.ts +4 -0
  224. package/lib/icon/qq.js +1 -0
  225. package/lib/icon/right-shape.js +1 -0
  226. package/lib/icon/search.js +1 -0
  227. package/lib/icon/share.js +1 -0
  228. package/lib/icon/spinner.d.ts +4 -0
  229. package/lib/icon/spinner.js +1 -0
  230. package/lib/icon/success.js +1 -0
  231. package/lib/icon/switcher-loading.js +1 -0
  232. package/lib/icon/text-file.js +1 -0
  233. package/lib/icon/text-fill.d.ts +4 -0
  234. package/lib/icon/text-fill.js +1 -0
  235. package/lib/icon/tree-application-shape.js +1 -0
  236. package/lib/icon/unvisible.js +1 -0
  237. package/lib/icon/up-shape.d.ts +4 -0
  238. package/lib/icon/up-shape.js +1 -0
  239. package/lib/icon/upload.d.ts +4 -0
  240. package/lib/icon/upload.js +1 -0
  241. package/lib/icon/video-fill.d.ts +4 -0
  242. package/lib/icon/video-fill.js +1 -0
  243. package/lib/icon/warn.js +1 -0
  244. package/lib/icon/weixin.d.ts +4 -0
  245. package/lib/icon/weixin.js +1 -0
  246. package/lib/index.d.ts +1 -1
  247. package/lib/index.js +1 -0
  248. package/lib/input/index.d.ts +688 -197
  249. package/lib/input/index.js +1 -15
  250. package/lib/input/input.css +232 -16
  251. package/lib/input/input.d.ts +182 -52
  252. package/lib/input/input.less +182 -19
  253. package/lib/input/input.variable.css +248 -15
  254. package/lib/link/index.d.ts +161 -55
  255. package/lib/link/index.js +1 -1
  256. package/lib/link/link.d.ts +25 -13
  257. package/lib/link/link.variable.css +19 -3
  258. package/lib/loading/index.d.ts +281 -72
  259. package/lib/loading/index.js +1 -1
  260. package/lib/loading/loading.css +177 -98
  261. package/lib/loading/loading.d.ts +109 -25
  262. package/lib/loading/loading.less +84 -73
  263. package/lib/loading/loading.variable.css +196 -101
  264. package/lib/menu/index.d.ts +122 -72
  265. package/lib/menu/index.js +1 -1
  266. package/lib/menu/menu-group.d.ts +6 -5
  267. package/lib/menu/menu-item.d.ts +6 -5
  268. package/lib/menu/menu.css +51 -0
  269. package/lib/menu/menu.d.ts +16 -21
  270. package/lib/menu/menu.variable.css +70 -3
  271. package/lib/menu/submenu.css +3 -0
  272. package/lib/menu/submenu.d.ts +6 -5
  273. package/lib/menu/submenu.less +1 -1
  274. package/lib/menu/submenu.variable.css +22 -3
  275. package/lib/menu/utils.d.ts +1 -1
  276. package/lib/message/index.js +1 -1
  277. package/lib/message/message.css +16 -2
  278. package/lib/message/message.less +18 -1
  279. package/lib/message/message.variable.css +35 -5
  280. package/lib/message/messageConstructor.d.ts +68 -20
  281. package/lib/modal/index.d.ts +732 -69
  282. package/lib/modal/index.js +1 -1
  283. package/lib/modal/modal.css +25 -1
  284. package/lib/modal/modal.d.ts +191 -24
  285. package/lib/modal/modal.less +33 -1
  286. package/lib/modal/modal.variable.css +25 -1
  287. package/lib/modal/props.mixin.d.ts +77 -10
  288. package/lib/navigation/index.d.ts +428 -1
  289. package/lib/navigation/index.js +1 -1
  290. package/lib/navigation/navigation-title.d.ts +10 -7
  291. package/lib/navigation/navigation.css +1 -1
  292. package/lib/navigation/navigation.d.ts +50 -24
  293. package/lib/navigation/navigation.less +1 -1
  294. package/lib/navigation/navigation.variable.css +20 -4
  295. package/lib/notify/index.js +1 -1
  296. package/lib/notify/notify.css +17 -1
  297. package/lib/notify/notify.less +19 -1
  298. package/lib/notify/notify.variable.css +36 -4
  299. package/lib/notify/notifyConstructor.d.ts +83 -23
  300. package/lib/pagination/index.d.ts +552 -0
  301. package/lib/pagination/index.js +1 -0
  302. package/lib/pagination/pagination.css +179 -0
  303. package/lib/pagination/pagination.d.ts +220 -0
  304. package/lib/pagination/pagination.less +201 -0
  305. package/lib/pagination/pagination.variable.css +281 -0
  306. package/lib/pagination/type.d.ts +6 -0
  307. package/lib/pagination/use-limit.d.ts +8 -0
  308. package/lib/pagination/use-list.d.ts +8 -0
  309. package/lib/pagination/use-small-list.d.ts +5 -0
  310. package/lib/pagination/use-total.d.ts +5 -0
  311. package/lib/popover/index.d.ts +488 -138
  312. package/lib/popover/index.js +1 -1
  313. package/lib/popover/popover.css +26 -13
  314. package/lib/popover/popover.d.ts +122 -45
  315. package/lib/popover/popover.less +59 -45
  316. package/lib/popover/popover.variable.css +45 -16
  317. package/lib/popover/props.d.ts +104 -0
  318. package/lib/popover2/arrow.d.ts +2 -0
  319. package/lib/popover2/const.d.ts +10 -0
  320. package/lib/popover2/content.d.ts +24 -0
  321. package/lib/popover2/index.d.ts +704 -0
  322. package/lib/popover2/index.js +1 -0
  323. package/lib/popover2/popover2.css +25 -0
  324. package/lib/popover2/popover2.d.ts +209 -0
  325. package/lib/popover2/popover2.less +35 -0
  326. package/lib/popover2/popover2.variable.css +127 -0
  327. package/lib/popover2/props.d.ts +108 -0
  328. package/lib/popover2/reference.d.ts +2 -0
  329. package/lib/popover2/root.d.ts +16 -0
  330. package/lib/popover2/use-floating.d.ts +20 -0
  331. package/lib/popover2/use-platform.d.ts +30 -0
  332. package/lib/popover2/use-popper-id.d.ts +7 -0
  333. package/lib/preset.d.ts +2 -3
  334. package/lib/preset.js +1 -0
  335. package/lib/process/index.d.ts +279 -0
  336. package/lib/process/index.js +1 -0
  337. package/lib/process/process.css +138 -0
  338. package/lib/process/process.d.ts +131 -0
  339. package/lib/process/process.less +178 -0
  340. package/lib/process/process.variable.css +240 -0
  341. package/lib/progress/index.d.ts +474 -136
  342. package/lib/progress/index.js +1 -1
  343. package/lib/progress/progress.css +51 -3
  344. package/lib/progress/progress.d.ts +89 -36
  345. package/lib/progress/progress.less +0 -4
  346. package/lib/progress/progress.variable.css +70 -6
  347. package/lib/radio/common.d.ts +5 -5
  348. package/lib/radio/index.d.ts +206 -95
  349. package/lib/radio/index.js +1 -1
  350. package/lib/radio/radio-button.d.ts +30 -23
  351. package/lib/radio/radio-group.d.ts +11 -10
  352. package/lib/radio/radio.css +12 -13
  353. package/lib/radio/radio.d.ts +27 -17
  354. package/lib/radio/radio.less +13 -14
  355. package/lib/radio/radio.variable.css +32 -17
  356. package/lib/radio/type.d.ts +10 -5
  357. package/lib/rate/index.d.ts +85 -41
  358. package/lib/rate/index.js +1 -1
  359. package/lib/rate/rate.d.ts +13 -10
  360. package/lib/rate/star.d.ts +33 -16
  361. package/lib/resize-layout/index.d.ts +463 -0
  362. package/lib/resize-layout/index.js +1 -0
  363. package/lib/resize-layout/resize-layout.css +189 -0
  364. package/lib/resize-layout/resize-layout.d.ts +127 -0
  365. package/lib/resize-layout/resize-layout.less +233 -0
  366. package/lib/resize-layout/resize-layout.variable.css +291 -0
  367. package/lib/select/common.d.ts +20 -22
  368. package/lib/select/index.d.ts +1522 -698
  369. package/lib/select/index.js +1 -15
  370. package/lib/select/option.d.ts +23 -19
  371. package/lib/select/optionGroup.d.ts +36 -97
  372. package/lib/select/select.css +226 -71
  373. package/lib/select/select.d.ts +376 -192
  374. package/lib/select/select.less +270 -130
  375. package/lib/select/select.variable.css +245 -74
  376. package/lib/select/selectTagInput.d.ts +72 -0
  377. package/lib/select/type.d.ts +38 -0
  378. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
  379. package/lib/shared/index.d.ts +32 -6
  380. package/lib/shared/index.js +1 -1
  381. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
  382. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
  383. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +50 -5
  384. package/lib/shared/token.d.ts +4 -0
  385. package/lib/shared/utils.d.ts +18 -0
  386. package/lib/shared/vue-types.d.ts +11 -7
  387. package/lib/sideslider/index.d.ts +630 -81
  388. package/lib/sideslider/index.js +1 -1
  389. package/lib/sideslider/sideslider.css +48 -3
  390. package/lib/sideslider/sideslider.d.ts +181 -30
  391. package/lib/sideslider/sideslider.less +65 -6
  392. package/lib/sideslider/sideslider.variable.css +67 -6
  393. package/lib/slider/index.d.ts +588 -1
  394. package/lib/slider/index.js +1 -15
  395. package/lib/slider/slider-button.d.ts +15 -7
  396. package/lib/slider/slider.d.ts +84 -42
  397. package/lib/slider/slider.variable.css +19 -3
  398. package/lib/steps/index.d.ts +258 -111
  399. package/lib/steps/index.js +1 -15
  400. package/lib/steps/steps.css +17 -3
  401. package/lib/steps/steps.d.ts +41 -28
  402. package/lib/steps/steps.less +27 -3
  403. package/lib/steps/steps.variable.css +36 -6
  404. package/lib/styles/index.d.ts +14 -0
  405. package/lib/styles/mixins/clearfix.css +8 -0
  406. package/lib/styles/mixins/clearfix.less +10 -0
  407. package/lib/styles/mixins/clearfix.variable.css +8 -0
  408. package/lib/styles/mixins/mixins.css +51 -0
  409. package/lib/styles/mixins/mixins.less +2 -0
  410. package/lib/styles/mixins/mixins.variable.css +51 -0
  411. package/lib/styles/mixins/scroll.css +17 -0
  412. package/lib/styles/mixins/scroll.less +22 -0
  413. package/lib/styles/mixins/scroll.variable.css +119 -0
  414. package/lib/styles/themes/themes.less +27 -3
  415. package/lib/swiper/index.d.ts +246 -0
  416. package/lib/swiper/index.js +1 -0
  417. package/lib/swiper/swiper.css +91 -0
  418. package/lib/swiper/swiper.d.ts +65 -0
  419. package/lib/swiper/swiper.less +107 -0
  420. package/lib/swiper/swiper.variable.css +91 -0
  421. package/lib/switcher/index.d.ts +315 -138
  422. package/lib/switcher/index.js +1 -1
  423. package/lib/switcher/switcher.css +200 -135
  424. package/lib/switcher/switcher.d.ts +52 -36
  425. package/lib/switcher/switcher.less +211 -153
  426. package/lib/switcher/switcher.variable.css +219 -138
  427. package/lib/tab/index.d.ts +445 -282
  428. package/lib/tab/index.js +1 -1
  429. package/lib/tab/props.d.ts +194 -0
  430. package/lib/tab/tab-nav.d.ts +102 -87
  431. package/lib/tab/tab-panel.d.ts +53 -26
  432. package/lib/tab/tab.css +25 -1
  433. package/lib/tab/tab.d.ts +59 -51
  434. package/lib/tab/tab.less +31 -19
  435. package/lib/tab/tab.variable.css +44 -4
  436. package/lib/table/const.d.ts +67 -0
  437. package/lib/table/index.d.ts +728 -71
  438. package/lib/table/index.js +1 -1
  439. package/lib/table/plugins/head-filter.css +68 -0
  440. package/lib/table/plugins/head-filter.less +88 -0
  441. package/lib/table/plugins/head-filter.variable.css +170 -0
  442. package/lib/table/plugins/head-sort.css +22 -0
  443. package/lib/table/plugins/head-sort.less +28 -0
  444. package/lib/table/plugins/head-sort.variable.css +124 -0
  445. package/lib/table/plugins/settings.css +129 -0
  446. package/lib/table/plugins/settings.less +157 -0
  447. package/lib/table/plugins/settings.variable.css +231 -0
  448. package/lib/table/props.d.ts +210 -2
  449. package/lib/table/render.d.ts +76 -5
  450. package/lib/table/table.css +1089 -15
  451. package/lib/table/table.d.ts +221 -14
  452. package/lib/table/table.less +251 -24
  453. package/lib/table/table.variable.css +1109 -19
  454. package/lib/table/use-common.d.ts +72 -0
  455. package/lib/table/utils.d.ts +84 -2
  456. package/lib/tag/index.d.ts +249 -274
  457. package/lib/tag/index.js +1 -1
  458. package/lib/tag/tag.css +97 -0
  459. package/lib/tag/tag.d.ts +83 -53
  460. package/lib/tag/tag.less +110 -2
  461. package/lib/tag/tag.variable.css +116 -3
  462. package/lib/tag-input/common.d.ts +24 -0
  463. package/lib/tag-input/index.d.ts +1267 -0
  464. package/lib/tag-input/index.js +1 -0
  465. package/lib/tag-input/list-tag-render.d.ts +47 -0
  466. package/lib/tag-input/tag-input.css +209 -0
  467. package/lib/tag-input/tag-input.d.ts +374 -0
  468. package/lib/tag-input/tag-input.less +251 -0
  469. package/lib/tag-input/tag-input.variable.css +311 -0
  470. package/lib/tag-input/tag-props.d.ts +131 -0
  471. package/lib/tag-input/tag-render.d.ts +38 -0
  472. package/lib/timeline/index.d.ts +168 -0
  473. package/lib/timeline/index.js +1 -0
  474. package/lib/timeline/timeline.css +235 -0
  475. package/lib/timeline/timeline.d.ts +81 -0
  476. package/lib/timeline/timeline.less +240 -0
  477. package/lib/timeline/timeline.variable.css +337 -0
  478. package/lib/transfer/const.d.ts +5 -0
  479. package/lib/transfer/index.d.ts +500 -0
  480. package/lib/transfer/index.js +1 -0
  481. package/lib/transfer/props.d.ts +54 -0
  482. package/lib/transfer/transfer.css +139 -0
  483. package/lib/transfer/transfer.d.ts +160 -0
  484. package/lib/transfer/transfer.less +144 -0
  485. package/lib/transfer/transfer.variable.css +241 -0
  486. package/lib/tree/constant.d.ts +45 -0
  487. package/lib/tree/index.d.ts +695 -94
  488. package/lib/tree/index.js +1 -1
  489. package/lib/tree/props.d.ts +184 -0
  490. package/lib/tree/tree.css +176 -15
  491. package/lib/tree/tree.d.ts +201 -31
  492. package/lib/tree/tree.less +75 -38
  493. package/lib/tree/tree.variable.css +278 -15
  494. package/lib/tree/use-empty.d.ts +6 -0
  495. package/lib/tree/use-node-action.d.ts +12 -0
  496. package/lib/tree/use-node-async.d.ts +5 -0
  497. package/lib/tree/use-node-attribute.d.ts +33 -0
  498. package/lib/tree/use-node-drag.d.ts +3 -0
  499. package/lib/tree/use-search.d.ts +11 -0
  500. package/lib/tree/use-tree-init.d.ts +15 -0
  501. package/lib/tree/util.d.ts +34 -57
  502. package/lib/upload/index.d.ts +831 -0
  503. package/lib/upload/index.js +1 -0
  504. package/lib/upload/props.d.ts +113 -0
  505. package/lib/upload/upload-list.d.ts +46 -0
  506. package/lib/upload/upload-trigger.d.ts +54 -0
  507. package/lib/upload/upload.css +417 -0
  508. package/lib/upload/upload.d.ts +252 -0
  509. package/lib/upload/upload.less +455 -0
  510. package/lib/upload/upload.type.d.ts +78 -0
  511. package/lib/upload/upload.variable.css +519 -0
  512. package/lib/upload/use-ajax-upload.d.ts +3 -0
  513. package/lib/upload/use-file-handler.d.ts +44 -0
  514. package/lib/virtual-render/index.d.ts +834 -0
  515. package/lib/virtual-render/index.js +1 -0
  516. package/lib/virtual-render/props.d.ts +167 -0
  517. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  518. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  519. package/lib/virtual-render/virtual-render.css +33 -0
  520. package/lib/virtual-render/virtual-render.d.ts +255 -0
  521. package/lib/virtual-render/virtual-render.less +22 -0
  522. package/lib/virtual-render/virtual-render.variable.css +135 -0
  523. package/lib/volar.components.d.ts +31 -0
  524. package/package.json +107 -84
  525. package/dist/bkui-vue.cjs.js +0 -9999
  526. package/dist/bkui-vue.esm.js +0 -9958
  527. package/dist/bkui-vue.umd.js +0 -10002
  528. package/lib/form/common.d.ts +0 -3
  529. package/lib/styles/index.js +0 -1
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../directives"),require("../shared"),require("@bkui-vue/icon")):"function"==typeof define&&define.amd?define(["exports","vue","../directives","../shared","@bkui-vue/icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Directives,e.Shared,e["@bkui-vue/icon/icons"])}(this,(function(e,t,n,r,a){"use strict";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i={exports:{}},l={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0}(l);var u={exports:{}};!function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}},e.exports.default=e.exports,e.exports.__esModule=!0}(u);var s={exports:{}},c={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0}(c),function(e){var t=c.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0}(s);var d={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(d),function(e){var t=l.exports,n=u.exports,r=s.exports,a=d.exports;e.exports=function(e,o){return t(e)||n(e,o)||r(e,o)||a()},e.exports.default=e.exports,e.exports.__esModule=!0}(i);var f=o(i.exports),h={exports:{}},p={exports:{}};!function(e){var t=c.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(p);var m={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(m);var g={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(g),function(e){var t=p.exports,n=m.exports,r=s.exports,a=g.exports;e.exports=function(e){return t(e)||n(e)||r(e)||a()},e.exports.default=e.exports,e.exports.__esModule=!0}(h);var y=o(h.exports),v={exports:{}};!function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}(v);var b=o(v.exports);function w(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function D(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function k(e){D(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function M(e,t){D(2,arguments);var n=k(e).getTime(),r=w(t);return new Date(n+r)}function x(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function S(e){return D(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function T(e){if(D(1,arguments),!S(e)&&"number"!=typeof e)return!1;var t=k(e);return!isNaN(Number(t))}var C={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},P=function(e,t,n){var r,a=C[e];return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function V(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var N={date:V({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:V({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:V({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},O={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},F=function(e,t,n,r){return O[e]};function L(e){return function(t,n){var r,a=n||{};if("formatting"===(a.context?String(a.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=a.width?String(a.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var l=e.defaultWidth,u=a.width?String(a.width):e.defaultWidth;r=e.values[u]||e.values[l]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var H={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:L({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:L({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:L({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:L({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:L({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function U(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var i,l=o[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(u)?A(u,(function(e){return e.test(l)})):Y(u,(function(e){return e.test(l)}));i=e.valueCallback?e.valueCallback(s):s,i=n.valueCallback?n.valueCallback(i):i;var c=t.slice(l.length);return{value:i,rest:c}}}function Y(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function A(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var j,R={ordinalNumber:(j={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(j.matchPattern);if(!n)return null;var r=n[0],a=e.match(j.parsePattern);if(!a)return null;var o=j.valueCallback?j.valueCallback(a[0]):a[0];o=t.valueCallback?t.valueCallback(o):o;var i=e.slice(r.length);return{value:o,rest:i}}),era:U({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:U({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:U({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:U({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:U({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},B={code:"en-US",formatDistance:P,formatLong:N,formatRelative:F,localize:H,match:R,options:{weekStartsOn:0,firstWeekContainsDate:1}};function z(e,t){D(2,arguments);var n=w(t);return M(e,-n)}function W(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var E={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return W("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):W(n+1,2)},d:function(e,t){return W(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return W(e.getUTCHours()%12||12,t.length)},H:function(e,t){return W(e.getUTCHours(),t.length)},m:function(e,t){return W(e.getUTCMinutes(),t.length)},s:function(e,t){return W(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return W(Math.floor(r*Math.pow(10,n-3)),t.length)}},q=E,_=864e5;function I(e){D(1,arguments);var t=1,n=k(e),r=n.getUTCDay(),a=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}function J(e){D(1,arguments);var t=k(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var a=I(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var i=I(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Q(e){D(1,arguments);var t=J(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=I(n);return r}var G=6048e5;function X(e,t){D(1,arguments);var n=t||{},r=n.locale,a=r&&r.options&&r.options.weekStartsOn,o=null==a?0:w(a),i=null==n.weekStartsOn?o:w(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=k(e),u=l.getUTCDay(),s=(u<i?7:0)+u-i;return l.setUTCDate(l.getUTCDate()-s),l.setUTCHours(0,0,0,0),l}function Z(e,t){D(1,arguments);var n=k(e,t),r=n.getUTCFullYear(),a=t||{},o=a.locale,i=o&&o.options&&o.options.firstWeekContainsDate,l=null==i?1:w(i),u=null==a.firstWeekContainsDate?l:w(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var s=new Date(0);s.setUTCFullYear(r+1,0,u),s.setUTCHours(0,0,0,0);var c=X(s,t),d=new Date(0);d.setUTCFullYear(r,0,u),d.setUTCHours(0,0,0,0);var f=X(d,t);return n.getTime()>=c.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function $(e,t){D(1,arguments);var n=t||{},r=n.locale,a=r&&r.options&&r.options.firstWeekContainsDate,o=null==a?1:w(a),i=null==n.firstWeekContainsDate?o:w(n.firstWeekContainsDate),l=Z(e,t),u=new Date(0);u.setUTCFullYear(l,0,i),u.setUTCHours(0,0,0,0);var s=X(u,t);return s}var K=6048e5;var ee="midnight",te="noon",ne="morning",re="afternoon",ae="evening",oe="night",ie={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return q.y(e,t)},Y:function(e,t,n,r){var a=Z(e,r),o=a>0?a:1-a;return"YY"===t?W(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):W(o,t.length)},R:function(e,t){return W(J(e),t.length)},u:function(e,t){return W(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return W(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return W(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return q.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return W(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=function(e,t){D(1,arguments);var n=k(e),r=X(n,t).getTime()-$(n,t).getTime();return Math.round(r/K)+1}(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):W(a,t.length)},I:function(e,t,n){var r=function(e){D(1,arguments);var t=k(e),n=I(t).getTime()-Q(t).getTime();return Math.round(n/G)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):W(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):q.d(e,t)},D:function(e,t,n){var r=function(e){D(1,arguments);var t=k(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),a=n-r;return Math.floor(a/_)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):W(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return W(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return W(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return W(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,a=e.getUTCHours();switch(r=12===a?te:0===a?ee:a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,a=e.getUTCHours();switch(r=a>=17?ae:a>=12?re:a>=4?ne:oe,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return q.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):q.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):W(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):W(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):q.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):q.s(e,t)},S:function(e,t){return q.S(e,t)},X:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return ue(a);case"XXXX":case"XX":return se(a);default:return se(a,":")}},x:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return ue(a);case"xxxx":case"xx":return se(a);default:return se(a,":")}},O:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+le(a,":");default:return"GMT"+se(a,":")}},z:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+le(a,":");default:return"GMT"+se(a,":")}},t:function(e,t,n,r){var a=r._originalDate||e;return W(Math.floor(a.getTime()/1e3),t.length)},T:function(e,t,n,r){return W((r._originalDate||e).getTime(),t.length)}};function le(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),o=r%60;if(0===o)return n+String(a);var i=t||"";return n+String(a)+i+W(o,2)}function ue(e,t){return e%60==0?(e>0?"-":"+")+W(Math.abs(e)/60,2):se(e,t)}function se(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e);return r+W(Math.floor(a/60),2)+n+W(a%60,2)}var ce=ie;function de(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function fe(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var he={p:fe,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),a=r[1],o=r[2];if(!o)return de(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",de(a,t)).replace("{{time}}",fe(o,t))}},pe=he,me=["D","DD"],ge=["YY","YYYY"];function ye(e){return-1!==me.indexOf(e)}function ve(e){return-1!==ge.indexOf(e)}function be(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var we=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,De=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ke=/^'([^]*?)'?$/,Me=/''/g,xe=/[a-zA-Z]/;function Se(e){return e.match(ke)[1].replace(Me,"'")}var Te={},Ce=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Pe=/\d\d?/,Ve=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Ne=function(){};function Oe(e,t){for(var n=[],r=0,a=e.length;r<a;r++)n.push(e[r].substr(0,t));return n}function Fe(e){return function(t,n,r){var a=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~a&&(t.month=a)}}function Le(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=String(e);n.length<t;)n="0".concat(n);return n}var He=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ue=["January","February","March","April","May","June","July","August","September","October","November","December"],Ye=Oe(Ue,3),Ae=Oe(He,3);Te.i18n={dayNamesShort:Ae,dayNames:He,monthNamesShort:Ye,monthNames:Ue,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10)*e%10]}};var je={D:function(e){return e.getDay()},DD:function(e){return Le(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return Le(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return Le(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return String(e.getFullYear()).substr(2)},yyyy:function(e){return e.getFullYear()},h:function(e){return e.getHours()%12||12},hh:function(e){return Le(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return Le(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return Le(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return Le(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return Le(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return Le(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+Le(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},Re={d:[Pe,function(e,t){e.day=t}],M:[Pe,function(e,t){e.month=t-1}],yy:[Pe,function(e,t){var n=new Date,r=+"".concat(n.getFullYear()).substr(0,2);e.year="".concat(t>68?r-1:r).concat(t)}],h:[Pe,function(e,t){e.hour=t}],m:[Pe,function(e,t){e.minute=t}],s:[Pe,function(e,t){e.second=t}],yyyy:[/\d{4}/,function(e,t){e.year=t}],S:[/\d/,function(e,t){e.millisecond=100*t}],SS:[/\d{2}/,function(e,t){e.millisecond=10*t}],SSS:[/\d{3}/,function(e,t){e.millisecond=t}],D:[Pe,Ne],ddd:[Ve,Ne],MMM:[Ve,Fe("monthNamesShort")],MMMM:[Ve,Fe("monthNames")],a:[Ve,function(e,t,n){var r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],ZZ:[/[\\+\\-]\d\d:?\d\d/,function(e,t){var n,r="".concat(t).match(/([\\+\\-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),e.timezoneOffset="+"===r[0]?n:-n)}]};Re.DD=Re.D,Re.dddd=Re.ddd,Re.Do=Re.dd=Re.d,Re.mm=Re.m,Re.hh=Re.H=Re.HH=Re.h,Re.MM=Re.M,Re.ss=Re.s,Re.A=Re.a,Te.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Te.format=function(e,t,n){var r=n||Te.i18n;if("number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");return(t=Te.masks[t]||t||Te.masks.default).replace(Ce,(function(t){return t in je?je[t](e,r):t.slice(1,t.length-1)}))},Te.parse=function(e,t,n){var r=n||Te.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");if(t=Te.masks[t]||t,e.length>1e3)return!1;var a=!0,o={};if(t.replace(Ce,(function(t){if(Re[t]){var n=Re[t],i=e.search(n[0]);~i?e.replace(n[0],(function(t){return n[1](o,t,r),e=e.substr(i+t.length),t})):a=!1}return Re[t]?"":t.slice(1,t.length-1)})),!a)return!1;var i,l=new Date;return!0===o.isPm&&null!==o.hour&&12!=+o.hour?o.hour=+o.hour+12:!1===o.isPm&&12==+o.hour&&(o.hour=0),null!==o.timezoneOffset&&void 0!==o.timezoneOffset?(o.minute=+(o.minute||0)-+o.timezoneOffset,i=new Date(Date.UTC(o.year||l.getFullYear(),o.month||0,o.day||1,o.hour||0,o.minute||0,o.second||0,o.millisecond||0))):i=new Date(o.year||l.getFullYear(),o.month||0,o.day||1,o.hour||0,o.minute||0,o.second||0,o.millisecond||0),i};var Be=" - ",ze=function(e,t){var n=k(new Date(e));return!n||isNaN(n.getTime())?"":function(e,t,n){D(2,arguments);var r=String(t),a=n||{},o=a.locale||B,i=o.options&&o.options.firstWeekContainsDate,l=null==i?1:w(i),u=null==a.firstWeekContainsDate?l:w(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var s=o.options&&o.options.weekStartsOn,c=null==s?0:w(s),d=null==a.weekStartsOn?c:w(a.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var f=k(e);if(!T(f))throw new RangeError("Invalid time value");var h=x(f),p=z(f,h),m={firstWeekContainsDate:u,weekStartsOn:d,locale:o,_originalDate:f};return r.match(De).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,pe[t])(e,o.formatLong,m):e})).join("").match(we).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return Se(n);var i=ce[r];if(i)return!a.useAdditionalWeekYearTokens&&ve(n)&&be(n,t,e),!a.useAdditionalDayOfYearTokens&&ye(n)&&be(n,t,e),i(p,n,o.localize,m);if(r.match(xe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")}(n,t||"yyyy-MM-dd")},We=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],r=e[1];if(n&&r)return ze(n,t)+Be+ze(r,t)}else if(!Array.isArray(e)&&e instanceof Date)return ze(e,t);return""},Ee=function(e,t){var n=Array.isArray(e)?e:e.split(Be);if(2===n.length){var r=n[0],a=n[1];return[r instanceof Date?r:Te.parse(r,t||"yyyy-MM-dd"),a instanceof Date?a:Te.parse(a,t||"yyyy-MM-dd")]}return[]},qe={default:{formatter:function(e){return e?"".concat(e):""},parser:function(e){return void 0===e||""===e?null:e}},date:{formatter:function(e,t){return ze(e,t)},parser:function(e,t){return Te.parse(e,t||"yyyy-MM-dd")}},datetime:{formatter:function(e,t){return ze(e,t)},parser:function(e,t){return Te.parse(e,t||"yyyy-MM-dd")}},daterange:{formatter:We,parser:Ee},datetimerange:{formatter:We,parser:Ee},timerange:{formatter:We,parser:Ee},time:{formatter:function(e,t){return ze(e,t)},parser:function(e,t){return Te.parse(e,t||"yyyy-MM-dd")}},month:{formatter:function(e,t){return ze(e,t)},parser:function(e,t){return Te.parse(e,t||"yyyy-MM-dd")}},year:{formatter:function(e,t){return ze(e,t)},parser:function(e,t){return Te.parse(e,t||"yyyy-MM-dd")}},multiple:{formatter:function(e,t){return e.filter(Boolean).map((function(e){return ze(e,t)})).join(",")},parser:function(e,t){return("string"==typeof e?e.split(","):e).map((function(e){if(e instanceof Date)return e;var n=e;return"string"==typeof e?n=e.trim():"number"==typeof e||e||(n=""),Te.parse(n,t||"yyyy-MM-dd")}))}},number:{formatter:function(e){return e?"".concat(e):""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}}},_e=function(e){return e?[e.getHours(),e.getMinutes(),e.getSeconds()]:[0,0,0]},Ie={date:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",datetimerange:"yyyy-MM-dd HH:mm:ss"},Je=function(e,t,n,r){var a=t.includes("range"),o=(qe[t]||qe.default).parser,i=r||Ie[t],l=qe.multiple.parser,u=e;if(!e||"time"!==t||e instanceof Date)if(n&&e)u=l(e,i);else if(a)if(e)if("string"==typeof e)u=o(e,i);else if("timerange"===t)u=o(e,i).map((function(e){return e||""}));else{var s=f(e,2),c=s[0],d=s[1];c instanceof Date&&d instanceof Date?u=e.map((function(e){return new Date(e)})):"string"==typeof c&&"string"==typeof d?u=o(e.join(Be),i):c&&d||(u=[null,null])}else u=[null,null];else"string"==typeof e&&0!==t.indexOf("time")&&(u=o(e,i)||null);else u=o(e,i);return a||n?u||[]:[u]},Qe=function(e,t,n,r){var a=Ie[t];return n?(0,qe.multiple.formatter)(e,r||a):(0,(qe[t]||qe.default).formatter)(e,r||a)},Ge=Symbol("date-picker");function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return["bk-picker-panel-icon-btn","bk-date-picker-".concat(e,"-btn"),"bk-date-picker-".concat(e,"-btn-arrow").concat(t)]}var Ze,$e,Ke=function(e,t){var n,r=new Date(e),a=r.getMonth()+t,o=(n=r.getFullYear(),new Date(n,a+1,0).getDate());return o<r.getDate()&&r.setDate(o),r.setMonth(a),r},et=(Ze={yyyy:function(e){return e.getFullYear()},m:function(e){return e.getMonth()+1},mm:function(e){return"0".concat(e.getMonth()+1).slice(-2)},mmm:function(e,t){return e.toLocaleDateString(t,{month:"long"}).slice(0,3)},Mmm:function(e,t){var n=e.toLocaleDateString(t,{month:"long"});return(n[0].toUpperCase()+n.slice(1).toLowerCase()).slice(0,3)},mmmm:function(e,t){return e.toLocaleDateString(t,{month:"long"})},Mmmm:function(e,t){var n=e.toLocaleDateString(t,{month:"long"});return n[0].toUpperCase()+n.slice(1).toLowerCase()}},$e=new RegExp(["yyyy","Mmmm","mmmm","Mmm","mmm","mm","m"].join("|"),"g"),function(e,t,n){var r=t.match(/(\[[^\]]+\])([^\\[\]]+)(\[[^\]]+\])/).slice(1),a=r[1],o=[r[0],r[2]].map((function(t){var r=t.replace(/\[[^\]]+\]/,(function(t){return t.slice(1,-1).replace($e,(function(t){return Ze[t](n,e)}))}));return{label:r,type:-1!==t.indexOf("yy")?"year":"month"}}));return{separator:a,labels:o}}),tt=function(e){var t=new Date(e);return t.setHours(0,0,0,0),t.getTime()},nt=function(e,t,n){if(!t||!n)return!1;var r=[t,n].sort(),a=f(r,2),o=a[0],i=a[1];return e>=o&&e<=i},rt={placement:{type:String,default:"bottom-start",validator:function(e){return!(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)<0)||(console.error("placement property is not valid: '".concat(e,"'")),!1)}},className:{type:String},extPopoverCls:{type:String},appendToBody:{type:Boolean},triggerRef:{type:Object},onClick:Function},at=t.defineComponent({props:rt,emits:["changeVisible"],setup:function(e,n){var a=n.emit,o=Object.create(null),i=t.ref(null);t.onMounted((function(){u()})),t.onBeforeUnmount((function(){l()}));var l=function(){if(o&&0!==Object.keys(o).length){var e=o;e.isShow&&e.hide(),e.destroy(),o=null,a("changeVisible",!1)}},u=function(){o&&0!==Object.keys(o).length?t.nextTick((function(){o.update()})):t.nextTick((function(){o=new r.BKPopover(e.triggerRef,i.value,{placement:e.placement,trigger:"manual",modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},{name:"offset",options:{offset:[0,4]}}]})}))},s=t.computed((function(){var t={};return e.appendToBody&&(t["z-index"]=1060+r.bkZIndexManager.getModalNextIndex()),t})),c=t.reactive({styles:s});return Object.assign(Object.assign({},t.toRefs(c)),{refContentRef:i,updateDropdown:u,destoryDropdown:l})},render:function(){var e,n,r;return t.createVNode("div",{ref:"refContentRef",class:["bk-date-picker-dropdown",this.className,this.extPopoverCls],style:this.styles,onClick:this.onClick},[null!==(r=null===(n=(e=this.$slots).default)||void 0===n?void 0:n.call(e))&&void 0!==r?r:""])}}),ot={exports:{}};!function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0}(ot);var it=o(ot.exports),lt=864e5;function ut(e,t){return new Date(e,t+1,0).getDate()}function st(e,t,n){return 0===t&&n>50?e-1:11===t&&n<10?e+1:e}function ct(e,t,n,r){t>11&&(t=0,e++);var a=new Date(e,t,n);r&&a.setDate(a.getDate()+4-(a.getDay()||7));var o=r?a.getFullYear():e,i=new Date(o,0,1),l=1+Math.round((a-i)/lt);r||(l+=i.getDay());var u=Math.ceil(l/7);if(!r){var s=new Date(e,t,n),c=new Date(e+1,0,1),d=c.getDay();s.getTime()>=c.getTime()-lt*d&&(u=1)}return u}function dt(e,t,n){for(var r,a,o,i=this.lang||"en",l=this.onlyDays,u=void 0===this.weekStart?1:this.weekStart,s=1===u,c=[],d=u-(new Date(e,t,1).getDay()||(s?7:0)),f=ct(e,t,1,s),h=ut(e,t),p=ut(e,t-1),m=st(e,t,f),g={month:t,year:e,daysInMonth:h},y=0;y<7;y++){o=d;for(var v=0;v<8;v++){y>0&&v>0&&d++,d>h||d<1?(a=d>h?d-h:p+d,r=d>h?t+1:t-1):(a=d,r=t);var b=o!==d&&y>0,w={desc:b?a:f,week:f,type:0===v?"weekLabel":0===y?"dayLabel":d<1?"prevMonth":d>h?"nextMonth":"monthDay",format:s?"ISO 8601":"US",date:!!b&&new Date(Date.UTC(e,r,a)),year:m,index:c.length};n&&("function"==typeof n?w=n.call(g,w,i):n.forEach((function(e){w=e.call(g,w,i)}))),l&&b?c.push(w):l||c.push(w)}y>0&&(f=ct(e,r,a+1,s)),m=st(e,t,f)}return g.cells=c,g}var ft={weekPlaceholder:"",columnNames:{en:{0:"w",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday",7:"sunday"},sv:{0:"v",1:"måndag",2:"tisdag",3:"onsdag",4:"torsdag",5:"fredag",6:"lördag",7:"söndag"},pt:{0:"s",1:"segunda",2:"terça",3:"quarta",4:"quinta",5:"sexta",6:"sábado",7:"domingo"}},monthNames:{en:["January","February","March","April","May","June","July","August","September","October","November","December"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],pt:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},classes:{dayLabel:"day-of-week",weekLabel:"week-number",prevMonth:"inactive",nextMonth:"inactive",monthDay:"day-in-month"}};function ht(e,t){for(var n in e)t[n]?null==(r=e[n])||r.constructor!==Array&&r.constructor!==Object||ht(e[n],t[n]):t[n]=e[n];var r}function pt(e,t){var n=[ft.classes[e.type]];return e.class?e.class=("string"==typeof e.class?[e.class]:e.class).concat(n):e.class=n,e.type.indexOf("Label")>0&&(0==e.index&&ft.weekPlaceholder?e.desc=ft.weekPlaceholder:e.index<8?e.desc=ft.columnNames[t][e.index]:e.index%8==0&&(e.desc=e.week)),e.date&&(e.monthName=ft.monthNames[t][e.date.getMonth()]),this.monthName||(this.monthName=ft.monthNames[t][this.month]),this.labels||(this.labels={monthNames:ft.monthNames[t],columnNames:ft.columnNames[t],classes:ft.classes}),e}pt.setLabels=function(e){ht(e,ft)};var mt=function(e){return dt.bind(e)},gt={tableDate:{type:Date,required:!0},disableDate:Function,selectionMode:{type:String,required:!0},modelValue:{type:[Date,String,Number,Array]},rangeState:{type:Object,default:function(){return{from:null,to:null,selecting:!1}}},focusedDate:{type:Date,required:!0}},yt=t.defineComponent({props:gt,emits:["pick","pick-click","changeRange"],setup:function(e,n){var r=n.emit,a=t.computed((function(){return new mt({onlyDays:!0,weekStart:0})})),o=t.computed((function(){var e=["日","一","二","三","四","五","六"];return e.splice(0,7).concat(e.splice(0,0))})),i=t.computed((function(){return"range"===e.selectionMode&&e.rangeState.selecting?[e.rangeState.from]:e.modelValue}));return{headerDays:o,cells:t.computed((function(){var t=e.tableDate.getFullYear(),n=e.tableDate.getMonth(),r=tt(new Date),o=i.value.filter(Boolean).map(tt),l=i.value.map(tt),u=f(l,2),s=u[0],c=u[1],d=e.rangeState.from&&tt(e.rangeState.from),h=e.rangeState.to&&tt(e.rangeState.to),p="range"===e.selectionMode,m="function"==typeof e.disableDate&&e.disableDate;return a.value(t,n,(function(e){e.date instanceof Date&&e.date.setTime(e.date.getTime()+6e4*e.date.getTimezoneOffset());var t=e.date&&tt(e.date),a=e.date&&n===e.date.getMonth();return Object.assign(Object.assign({},e),{type:t===r?"today":e.type,selected:a&&o.includes(t),disabled:e.date&&m&&m(new Date(t)),range:a&&p&&nt(t,d,h),start:a&&p&&t===s,end:a&&p&&t===c})})).cells.slice(0)})),getCellCls:function(e){var t;return["bk-date-picker-cells-cell",(t={},it(t,"bk-date-picker-cells-cell-selected",e.selected||e.start||e.end),it(t,"bk-date-picker-cells-cell-disabled",e.disabled),it(t,"bk-date-picker-cells-cell-today","today"===e.type),it(t,"bk-date-picker-cells-cell-prev-month","prevMonth"===e.type),it(t,"bk-date-picker-cells-cell-next-month","nextMonth"===e.type),it(t,"bk-date-picker-cells-cell-week-label","weekLabel"===e.type),it(t,"bk-date-picker-cells-cell-range",e.range&&!e.start&&!e.end),t)]},handleClick:function(e){if(!e.disabled&&"weekLabel"!==e.type){var t=new Date(tt(e.date));r("pick",t),r("pick-click")}},handleMouseMove:function(t){if(e.rangeState.selecting&&!t.disabled){var n=t.date;r("changeRange",n)}}}},render:function(){var e=this;return t.createVNode("div",{class:"bk-date-picker-cells"},[t.createVNode("div",{class:"bk-date-picker-cells-header"},[this.headerDays.map((function(e){return t.createVNode("span",null,[e])}))]),this.cells.map((function(n){return t.createVNode("span",{class:e.getCellCls(n),onClick:function(){return e.handleClick(n)},onMouseenter:function(){return e.handleMouseMove(n)}},[t.createVNode("em",null,[n.desc])])}))])}}),vt={modelValue:{type:[Date,String,Number,Array]},shortcuts:{type:Array,default:function(){return[]}},multiple:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator:function(e){return!(["year","month","date","time"].indexOf(e)<0)||(console.error("selectionMode property is not valid: '".concat(e,"'")),!1)}},startDate:{type:Date},disableDate:Function,focusedDate:{type:Date,required:!0}},bt=t.defineComponent({props:vt,emits:["pick","pick-success"],setup:function(e,n){var r=this,a=n.emit,o=function(e){return e.match(/^time/)?"time-picker":"".concat(e,"-table")},i=e.modelValue.slice().sort(),l=t.reactive({currentView:e.selectionMode||"date",pickerTable:o(e.selectionMode),dates:i,panelDate:e.startDate||i[0]||new Date}),u=function(e){l.panelDate=e,"year-table"===l.pickerTable?l.pickerTable="month-table":l.pickerTable=o(l.currentView)},s=function(t,n){console.warn("handlePick");var r=t;r="year"===e.selectionMode?new Date(t.getFullYear(),0,1):"month"===e.selectionMode?new Date(l.panelDate.getFullYear(),t.getMonth(),1):new Date(t),l.dates=[r],a("pick",r,!1,n||e.selectionMode)},c=function(){setTimeout((function(){l.currentView=e.selectionMode}),500),a("pick-success")},d=t.ref(null),f=t.ref(null),h=t.computed((function(){return l.pickerTable==="".concat(l.currentView,"-table")?s:u})),p=t.computed((function(){var e=l.panelDate,t=et("zh-CN","[yyyy]-[mm]",e),n=t.labels,r=t.separator;return{separator:r,labels:n.map((function(e){var t,n=e;return n.handler=(t=e.type,function(){l.pickerTable=o(t)}),n}))}})),m=t.computed((function(){return"year"===p.value.labels[0].type||"date"===l.currentView})),g=t.computed((function(){return"year"===p.value.labels[1].type||"date"===l.currentView})),y=t.computed((function(){return"time"===l.currentView}));return console.warn("panelDatepanelDate",l.panelDate),Object.assign(Object.assign({},t.toRefs(l)),{panelPickerHandlers:h,datePanelLabel:p,showLabelFirst:m,showLabelSecond:g,handleShortcutClick:function(t){t.value&&a("pick",t.value(),!1,void 0,t),t.onClick&&t.onClick(r),e.shortcutClose&&c()},changeYear:function(t){"year"===e.selectionMode||"year-table"===l.pickerTable?l.panelDate=new Date(l.panelDate.getFullYear()+10*t,0,1):l.panelDate=Ke(l.panelDate,12*t)},changeMonth:function(e){l.panelDate=Ke(l.panelDate,e)},reset:function(){l.currentView=e.selectionMode,l.pickerTable=o(l.currentView)},isTime:y,onToggleVisibility:function(e){var t,n;e&&(null===(t=null==d?void 0:d.value)||void 0===t||t.updateScroll(),null===(n=null==f?void 0:f.value)||void 0===n||n.updateScroll())}})},render:function(){var e=this;return t.createVNode("div",{class:["bk-picker-panel-body-wrapper",this.shortcuts.length?"bk-picker-panel-with-sidebar":""],onMousedown:function(e){e.preventDefault()}},[this.shortcuts.length?t.createVNode("div",{class:"bk-picker-panel-sidebar"},[this.shortcuts.map((function(n){return t.createVNode("div",{class:"bk-picker-panel-shortcut",onClick:function(){return e.handleShortcutClick(n)}},[n.text])}))]):"",t.createVNode("div",{class:"bk-picker-panel-body",style:"width: 261px;"},[t.withDirectives(t.createVNode("div",{class:"bk-date-picker-header"},[t.createVNode("span",{class:Xe("prev","-double"),onClick:function(){return e.changeYear(-1)}},[t.createVNode(a.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?t.withDirectives(t.createVNode("span",{class:Xe("prev"),onClick:function(){return e.changeMonth(-1)}},[t.createVNode(a.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[t.vShow,"date"===this.currentView]]):"",this.datePanelLabel&&Object.keys(this.datePanelLabel).length>0?t.createVNode("span",null,[t.withDirectives(t.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.datePanelLabel.labels[0].handler}},[this.datePanelLabel.labels[0].label]),[[t.vShow,this.showLabelFirst]]),"date"===this.currentView?" ".concat(this.datePanelLabel.separator," "):" ",t.withDirectives(t.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.datePanelLabel.labels[1].handler}},[this.datePanelLabel.labels[1].label]),[[t.vShow,this.showLabelSecond]])]):"",t.createVNode("span",{class:Xe("next","-double"),onClick:function(){return e.changeYear(1)}},[t.createVNode(a.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?t.withDirectives(t.createVNode("span",{class:Xe("next"),onClick:function(){return e.changeMonth(1)}},[t.createVNode(a.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[t.vShow,"date"===this.currentView]]):""]),[[t.vShow,"time"!==this.currentView]]),t.createVNode("div",{class:"bk-picker-panel-content"},["time"!==this.currentView?"date-table"===e.pickerTable?t.createVNode(yt,{tableDate:e.panelDate,disableDate:e.disableDate,selectionMode:e.selectionMode,modelValue:e.dates,focusedDate:e.focusedDate,onPick:e.panelPickerHandlers},null):null:""])])])}}),wt={modelValue:{type:[Date,String,Number,Array]},type:{type:String,default:"date",validator:function(e){return!(["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0)||(console.error("type property is not valid: '".concat(e,"'")),!1)}},shortcuts:{type:Array,default:function(){return[]}},clearable:{type:Boolean,default:!0},splitPanels:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},showTime:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator:function(e){return!(["year","month","date","time"].indexOf(e)<0)||(console.error("selectionMode property is not valid: '".concat(e,"'")),!1)}},startDate:{type:Date},upToNow:{type:Boolean,default:!1},disableDate:Function,focusedDate:{type:Date,required:!0}},Dt=t.defineComponent({props:wt,emits:["pick"],setup:function(e,n){var r=n.emit,a=e.modelValue.map((function(e){return e||function(){var e=new Date;return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e}()})),o=f(a,2),i=o[0],l=o[1],u=e.startDate?e.startDate:i,s=t.reactive({currentView:e.selectionMode||"date",leftPickerTable:"".concat(e.selectionMode,"-table"),rightPickerTable:"".concat(e.selectionMode,"-table"),leftPanelDate:u,rightPanelDate:new Date(u.getFullYear(),u.getMonth()+1,1),rangeState:{from:e.modelValue[0],to:e.modelValue[1],selecting:i&&!l},upToNowEnable:!1,dates:e.modelValue}),c=function(e,t){return e&&t?e.getTime()-t.getTime():0},d=t.ref(null),h=t.ref(null),p=function t(n,r,a){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=new Date(s["".concat(n,"PanelDate")]);if(i["set".concat(r)](i["get".concat(r)]()+a),s["".concat(n,"PanelDate")]=i,o)if(e.splitPanels){var l="left"===n?"right":"left";"left"===n&&s.leftPanelDate>=s.rightPanelDate&&t(l,r,1),"right"===n&&s.rightPanelDate<=s.leftPanelDate&&t(l,r,-1)}else{var u="left"===n?"right":"left",c=s["".concat(u,"PanelDate")],d=new Date(c);if("Month"===r){var f=new Date(d.getFullYear(),d.getMonth()+a+1,0).getDate();d.setDate(Math.min(f,d.getDate()))}d["set".concat(r)](d["get".concat(r)]()+a),s["".concat(u,"PanelDate")]=d}},m=function(e){s["".concat(e,"PickerTable")]="year-table"},g=function(e){s["".concat(e,"PickerTable")]="month-table"},y=function(e){var t=s["".concat(e,"PanelDate")],n=et("zh-CN","[yyyy]-[mm]",t),r=n.labels,a=n.separator;return{separator:a,labels:r.map((function(t){var n,r,a=t;return a.handler=(n=t.type,r="month"===n?g:m,function(){return r(e)}),a}))}},v=function(t,n){if(console.warn("handleRangePick"),s.rangeState.selecting||"time"===s.currentView){if("time"===s.currentView)s.dates=t;else{var a=[s.rangeState.from,t].sort(c),o=f(a,2),i=o[0],l=o[1],u="upToNow"===n?new Date:new Date(new Date(new Date(l.setHours(23)).setMinutes(59)).setSeconds(59));s.dates=[i,u],s.rangeState={from:i,to:u,selecting:!1}}!function(t,n){r("pick",s.dates,t,n||e.type)}(!1,n||"date")}else s.upToNowEnable=new Date(t).getTime()<(new Date).getTime(),s.rangeState={from:t,to:null,selecting:!0}},b=function(t,n){s["".concat(t,"PanelDate")]=n;var r=s["".concat(t,"PickerTable")];if(s["".concat(t,"PickerTable")]="year-table"===r?"month-table":"".concat(s.currentView,"-table"),!e.splitPanels){var a="left"===t?"right":"left";s["".concat(a,"PanelDate")]=n,p(a,"Month","left"===a?-1:1,!1)}};t.watch((function(){return e.selectionMode}),(function(e){s.currentView=e||"range"}));var w=t.computed((function(){return"time"===s.currentView})),D=t.computed((function(){return y("left")})),k=t.computed((function(){return y("right")})),M=t.computed((function(){return s.leftPickerTable.split("-").shift()})),x=t.computed((function(){return s.rightPickerTable.split("-").shift()})),S=t.computed((function(){return"year"===D.value.labels[0].type||"date"===s.currentView})),T=t.computed((function(){return"year"===D.value.labels[1].type||"date"===s.currentView})),C=t.computed((function(){return"year"===k.value.labels[0].type||"date"===s.currentView})),P=t.computed((function(){return"year"===k.value.labels[1].type||"date"===s.currentView})),V=t.computed((function(){var e="".concat(s.currentView,"-table");return{left:s.leftPickerTable!==e,right:s.rightPickerTable!==e}})),N=t.computed((function(){return{left:V.value.left?b.bind("left"):v,right:V.value.right?b.bind("right"):v}}));return Object.assign(Object.assign({},t.toRefs(s)),{isTime:w,prevYear:function(e){var t="year"===s.currentView?-10:-1;p(e,"FullYear",t)},nextYear:function(e){var t="year"===s.currentView?10:1;p(e,"FullYear",t)},prevMonth:function(e){p(e,"Month",-1)},nextMonth:function(e){p(e,"Month",1)},leftDatePanelLabel:D,rightDatePanelLabel:k,leftDatePanelView:M,rightDatePanelView:x,leftShowLabelFirst:S,leftShowLabelSecond:T,rightShowLabelFirst:C,rightShowLabelSecond:P,preSelecting:V,panelPickerHandlers:N,reset:function(){s.currentView=e.selectionMode,s.leftPickerTable="".concat(s.currentView,"-table"),s.rightPickerTable="".concat(s.currentView,"-table")},onToggleVisibility:function(e){var t,n;e&&(null===(t=null==d?void 0:d.value)||void 0===t||t.updateScroll(),null===(n=null==h?void 0:h.value)||void 0===n||n.updateScroll())},handleRangePick:v,handleChangeRange:function(e){s.rangeState.to=e}})},render:function(){var e=this;return t.createVNode("div",{class:["bk-picker-panel-body-wrapper","bk-date-picker-with-range",this.shortcuts.length||this.$slots.shortcuts?"bk-picker-panel-with-sidebar":""],onMousedown:function(e){e.preventDefault()}},[t.createVNode("div",{class:["bk-picker-panel-body",this.showTime?"bk-picker-panel-body-time":"bk-picker-panel-body-date"]},[t.withDirectives(t.createVNode("div",{class:"bk-picker-panel-content bk-picker-panel-content-left",style:"width: 261px;"},[t.withDirectives(t.createVNode("div",{class:"bk-date-picker-header"},[t.createVNode("span",{class:Xe("prev","-double"),onClick:function(){return e.prevYear("left")}},[t.createVNode(a.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.leftPickerTable?t.withDirectives(t.createVNode("span",{class:Xe("prev"),onClick:function(){return e.prevMonth("left")}},[t.createVNode(a.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[t.vShow,"date"===this.currentView]]):"",this.leftDatePanelLabel&&Object.keys(this.leftDatePanelLabel).length>0?t.createVNode("span",null,[t.withDirectives(t.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.leftDatePanelLabel.labels[0].handler}},[this.leftDatePanelLabel.labels[0].label]),[[t.vShow,this.leftShowLabelFirst]]),"date"===this.leftDatePanelView?" ".concat(this.leftDatePanelLabel.separator," "):" ",t.withDirectives(t.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.leftDatePanelLabel.labels[1].handler}},[this.leftDatePanelLabel.labels[1].label]),[[t.vShow,this.leftShowLabelSecond]])]):"",this.splitPanels||"date-table"!==this.leftPickerTable?t.createVNode("span",{class:Xe("next","-double"),onClick:function(){return e.nextYear("left")}},[t.createVNode(a.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels||"date-table"===this.leftPickerTable?t.withDirectives(t.createVNode("span",{class:Xe("next"),onClick:function(){return e.nextMonth("left")}},[t.createVNode(a.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[t.vShow,"date"===this.currentView]]):""]),[[t.vShow,"time"!==this.currentView]]),"time"!==this.currentView?"date-table"===e.leftPickerTable?t.createVNode(yt,{selectionMode:"range",tableDate:e.leftPanelDate,disableDate:e.disableDate,rangeState:e.rangeState,modelValue:e.preSelecting.left?[e.dates[0]]:e.dates,focusedDate:e.focusedDate,onChangeRange:e.handleChangeRange,onPick:e.panelPickerHandlers.left},null):null:""]),[[t.vShow,!this.isTime]]),t.withDirectives(t.createVNode("div",{class:"bk-picker-panel-content bk-picker-panel-content-right",style:"width: 261px;"},[t.withDirectives(t.createVNode("div",{class:"bk-date-picker-header"},[this.splitPanels||"date-table"!==this.rightPickerTable?t.createVNode("span",{class:Xe("prev","-double"),onClick:function(){return e.prevYear("right")}},[t.createVNode(a.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels&&"date-table"===this.rightPickerTable?t.withDirectives(t.createVNode("span",{class:Xe("prev","-double"),onClick:function(){return e.prevMonth("right")}},[t.createVNode(a.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[t.vShow,"date"===this.currentView]]):"",this.rightDatePanelLabel&&Object.keys(this.rightDatePanelLabel).length>0?t.createVNode("span",null,[t.withDirectives(t.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.rightDatePanelLabel.labels[0].handler}},[this.rightDatePanelLabel.labels[0].label]),[[t.vShow,this.rightShowLabelFirst]]),"date"===this.rightDatePanelView?" ".concat(this.rightDatePanelLabel.separator," "):" ",t.withDirectives(t.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.rightDatePanelLabel.labels[1].handler}},[this.rightDatePanelLabel.labels[1].label]),[[t.vShow,this.rightShowLabelSecond]])]):"",this.upToNow?(e.rangeState.selecting||"time"===e.currentView)&&e.upToNowEnable?t.createVNode("span",{class:"up-to-now",onClick:function(){return e.handleRangePick(new Date,"upToNow")}},[t.createTextVNode("至今")]):t.createVNode("span",{class:"up-to-now disabled"},[t.createTextVNode("至今")]):"",t.createVNode("span",{class:Xe("next","-double"),onClick:function(){return e.nextYear("right")}},[t.createVNode(a.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.rightPickerTable?t.withDirectives(t.createVNode("span",{class:Xe("next"),onClick:function(){return e.nextMonth("right")}},[t.createVNode(a.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[t.vShow,"date"===this.currentView]]):""]),[[t.vShow,"time"!==this.currentView]]),"time"!==this.currentView?"date-table"===e.rightPickerTable?t.createVNode(yt,{selectionMode:"range",tableDate:e.rightPanelDate,disableDate:e.disableDate,rangeState:e.rangeState,modelValue:e.preSelecting.right?[e.dates[e.dates.length-1]]:e.dates,focusedDate:e.focusedDate,onChangeRange:e.handleChangeRange,onPick:e.panelPickerHandlers.right},null):null:""]),[[t.vShow,!this.isTime]])])])}}),kt={type:{type:String,default:"date",validator:function(e){return!(["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0)||(console.error("type property is not valid: '".concat(e,"'")),!1)}},extPopoverCls:{type:String,default:""},format:String,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},open:{type:Boolean,default:null},multiple:{type:Boolean,default:!1},timePickerOptions:{type:Object,default:function(){return{}}},splitPanels:{type:Boolean,default:!0},startDate:Date,placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start",validator:function(e){return!(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)<0)||(console.error("placement property is not valid: '".concat(e,"'")),!1)}},transfer:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},shortcuts:{type:Array,default:function(){return[]}},shortcutClose:{type:Boolean,default:!1},modelValue:{type:[Date,String,Number,Array]},options:{type:Object,default:function(){return{}}},fontSize:{type:String,default:"normal"},upToNow:{type:Boolean,default:!1},useShortcutText:{type:Boolean,default:!1},shortcutSelectedIndex:{type:Number,default:-1},footerSlotCls:{type:String,default:""},allowCrossDay:{type:Boolean,default:!1},behavior:{type:String,default:"normal",validator:function(e){return["simplicity","normal"].indexOf(e)>-1}},disableDate:Function},Mt=t.defineComponent({name:"BkDatePicker",props:kt,emits:["open-change","input","change","update:modelValue","clear","shortcut-change","pick-success"],slots:["header"],directives:{clickoutside:n.clickoutside},setup:function(e,n){var r=n.slots,a=n.emit,o=e.type.includes("range"),i=o?[null,null]:[null],l=((o?e.modelValue:[e.modelValue])||[]).every((function(e){return!e||"string"==typeof e&&""===e.trim()}))?i:Je(e.modelValue,e.type,e.multiple,e.format),u=null;-1!==e.shortcutSelectedIndex&&(u=e.shortcuts[e.shortcutSelectedIndex]||null)&&(l=u.value());var s=t.reactive({showClose:!1,visible:!1,internalValue:l,disableClickOutSide:!1,disableCloseUnderTransfer:!1,selectionMode:"date",forceInputRerender:1,isFocused:!1,focusedDate:l[0]||e.startDate||new Date,focusedTime:{column:0,picker:0,time:l.map(_e),active:!1},internalFocus:!1,timeEnterMode:!0,shortcut:u,onSelectionModeChange:c});function c(e){var t=e;return e.match(/^date/)&&(t="date"),s.selectionMode=["year","month","date","time"].indexOf(t)>-1&&t,s.selectionMode}var d=t.computed((function(){if(e.multiple)return s.internalValue.slice();var t=e.type.includes("range"),n=s.internalValue.map((function(e){return e instanceof Date?new Date(e):e||""}));return e.type.match(/^time/)&&(n=n.map((function(t){return Qe(t,e.type,e.multiple,e.format)}))),t||e.multiple?n:n[0]})),h=t.computed((function(){return e.type.match(/^time/)?d.value:e.multiple?Qe(d.value,e.type,e.multiple,e.format):Array.isArray(d.value)?d.value.map((function(t){return Qe(t,e.type,e.multiple,e.format)})):Qe(d.value,e.type,e.multiple,e.format)})),p=t.computed((function(){return"daterange"===e.type||"datetimerange"===e.type?"DateRangePanel":"DatePanel"})),m=t.computed((function(){return null===e.open?s.visible:e.open})),g=t.computed((function(){return console.warn("state.internalValue",s.internalValue),Qe(s.internalValue,e.type,e.multiple,e.format)})),v=t.computed((function(){var t;return(null===(t=s.shortcut)||void 0===t?void 0:t.text)&&e.useShortcutText?s.shortcut.text:g.value})),w=t.computed((function(){return!!r.trigger||"datetime"===e.type||"datetimerange"===e.type||e.multiple})),D=t.computed((function(){var t="";return"medium"===e.fontSize?t="medium-font":"large"===e.fontSize&&(t="large-font"),t})),k=t.computed((function(){var t="";return"medium"===e.fontSize?t="medium-width":"large"===e.fontSize&&(t="large-width"),t})),M=t.computed((function(){var t;return!(!(null===(t=s.shortcut)||void 0===t?void 0:t.text)||!e.useShortcutText)||(!e.editable||e.readonly)})),x=t.computed((function(){return!!r.footer})),S=t.computed((function(){return"RangeTimePickerPanel"===p.value&&e.allowCrossDay})),T=t.ref(null);t.watch((function(){return s.visible}),(function(e){var t,n;!1===e&&(null===(t=C.value)||void 0===t||t.destoryDropdown()),null===(n=C.value)||void 0===n||n.updateDropdown(),a("open-change",e)}));var C=t.ref(null);t.watch((function(){return e.modelValue}),(function(t){s.internalValue=Je(t,e.type,e.multiple,e.format)})),t.watch((function(){return e.open}),(function(e){s.visible=!0===e})),t.watch((function(){return e.type}),(function(e){c(e)})),t.watch((function(){return d}),(function(e,t){(JSON.stringify(e)!==JSON.stringify(t)||b(e)!==b(t))&&a("input",e)})),t.onMounted((function(){e.type.indexOf("date"),s.timeEnterMode=!0;var n=e.modelValue,r=d.value;b(n)===b(r)&&JSON.stringify(n)===JSON.stringify(r)||a("input",d.value),null!==e.open&&(s.visible=e.open),t.provide(Ge,{props:e,focus:function(){var e;null===(e=null==T?void 0:T.value)||void 0===e||e.focus()}})}));var P=t.ref(null),V=function(e){var t;if(s.disableCloseUnderTransfer)return s.disableCloseUnderTransfer=!1,!1;if(e&&"mousedown"===e.type&&s.visible)return e.preventDefault(),void e.stopPropagation();if(s.visible){var n=null===(t=null==P?void 0:P.value)||void 0===t?void 0:t.$el;if(e&&n&&n.contains(e.target))return;return s.visible=!1,null==e||e.preventDefault(),void(null==e||e.stopPropagation())}s.isFocused=!1,s.disableClickOutSide=!1},N=function(n){t.nextTick((function(){var t;a("change",h.value,n),a("update:modelValue",d.value),e.type.indexOf("time")<0&&(null===(t=null==T?void 0:T.value)||void 0===t||t.blur())}))},O=function(){var e;null===(e=null==P?void 0:P.value)||void 0===e||e.reset()},F=function(){var e;s.visible=!1,t.nextTick((function(){a("pick-success")})),null===(e=null==T?void 0:T.value)||void 0===e||e.blur(),O()},L=t.ref(null);return Object.assign(Object.assign({},t.toRefs(s)),{panel:p,publicStringValue:h,opened:m,visualValue:g,displayValue:v,isConfirm:w,fontSizeCls:D,longWidthCls:k,localReadonly:M,hasFooter:x,allowCrossDayProp:S,pickerDropdownRef:C,inputRef:T,triggerRef:L,pickerPanelRef:P,handleClose:V,handleIconClick:function(){var e,t;null===(e=null==T?void 0:T.value)||void 0===e||e.focus(),null===(t=null==T?void 0:T.value)||void 0===t||t.click()},handleInputMouseenter:function(){e.readonly||e.disabled||(null==g?void 0:g.value)&&(s.showClose=!0)},handleInputMouseleave:function(e){var t;(null===(t=e.toElement)||void 0===t?void 0:t.classList.contains("clear-action"))||(s.showClose=!1)},handleFocus:function(t){e.readonly||(s.isFocused=!0,t&&"focus"===t.type||e.disabled||(s.visible=!0))},handleBlur:function(t){var n;s.internalFocus?s.internalFocus=!1:s.visible?t.preventDefault():(s.isFocused=!1,c(e.type),s.internalValue=s.internalValue.slice(),O(),null===(n=null==P?void 0:P.value)||void 0===n||n.onToggleVisibility(!1))},handleKeydown:function(e){var t=e.keyCode;if(9===t&&s.visible)if(e.stopPropagation(),e.preventDefault(),w){var n=C.$el.querySelectorAll(".bk-picker-confirm > *");s.internalFocus=!0,y(n)[e.shiftKey?"pop":"shift"]().focus()}else V();var r=[37,38,39,40];s.visible||!r.includes(t)?(27===t&&s.visible&&(e.stopPropagation(),V()),r.includes(t)&&s.focusedTime.active&&e.preventDefault()):s.visible=!0},handleInputChange:function(t){var n,r=e.type.includes("range")||e.multiple,a=g.value,o=t.target.value,i=Je(o,e.type,e.multiple,e.format),l=r?i:i[0],u=null===(n=e.disableDate)||void 0===n?void 0:n.call(e,l),c=i.reduce((function(e,t){return e&&t instanceof Date}),!0);o!==a&&!u&&c?(N(e.type),s.internalValue=i):s.forceInputRerender=s.forceInputRerender+1},handleClear:function(){s.visible=!1,s.internalValue=s.internalValue.map((function(){return null})),a("clear"),N(e.type),O(),s.showClose=!1,s.shortcut=null,setTimeout((function(){return c(e.type)}),500)},handleTransferClick:function(){e.appendToBody&&(s.disableCloseUnderTransfer=!0)},onPick:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=t;if(e.multiple){var l=i.getTime(),u=s.internalValue.findIndex((function(e){return e&&e.getTime()===l})),d=[].concat(y(s.internalValue),[i]).filter(Boolean),h=d.map((function(e){return e.getTime()})).filter((function(e,t,n){return n.indexOf(e)===t&&t!==u}));s.internalValue=h.map((function(e){return new Date(e)}))}else i=Je(t,e.type,e.multiple,e.format),s.internalValue=Array.isArray(i)?i:[i];if(s.internalValue[0]){var p=f(s.internalValue,1),m=p[0];s.focusedDate=m}s.focusedTime=Object.assign(Object.assign({},s.focusedTime),{time:s.internalValue.map(_e)}),w.value||(c(e.type),s.visible=n),"upToNow"===r&&"daterange"===e.type&&F(),s.shortcut=o,N(r);var g=e.shortcuts.findIndex((function(e){return e===s.shortcut}));a("shortcut-change",s.shortcut,g)}})},render:function(){var e,n,r,a=this,o=t.createVNode("div",null,[t.createVNode("span",{class:["icon-wrapper",this.disabled?"disabled":""],onClick:this.handleIconClick,onMouseenter:this.handleInputMouseenter,onMouseleave:this.handleInputMouseleave},["time"===this.type||"timerange"===this.type?t.createVNode("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[t.createVNode("g",{id:"time"},[t.createVNode("path",{fill:"#c4c6cc",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"},null),t.createVNode("polygon",{fill:"#c4c6cc",points:"512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"},null)])]):t.createVNode("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[t.createVNode("g",{id:"date"},[t.createVNode("path",{fill:"#c4c6cc",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"},null),t.createVNode("rect",{x:"416",y:"128",fill:"#c4c6cc",width:"192",height:"64"},null),t.createVNode("rect",{x:"288",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),t.createVNode("rect",{x:"672",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),t.createVNode("polygon",{fill:"#c4c6cc",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"},null)])])]),t.createVNode("input",{type:"text",class:["bk-date-picker-editor",this.readonly?"readonly":"",this.fontSizeCls,"simplicity"===this.behavior?"only-bottom-border":""],ref:"inputRef",key:this.forceInputRerender,readonly:this.localReadonly,disabled:this.disabled,placeholder:this.placeholder,value:this.displayValue,onFocus:this.handleFocus,onClick:this.handleFocus,onBlur:this.handleBlur,onMouseenter:this.handleInputMouseenter,onMouseleave:this.handleInputMouseleave,onKeydown:this.handleKeydown,onChange:this.handleInputChange},null),this.clearable&&this.showClose?t.createVNode("i",{class:"bk-icon icon-close-circle-shape clear-action",onClick:this.handleClear},null):""]);return t.withDirectives(t.createVNode("div",{class:["bk-date-picker","datetimerange"===this.type?"long":"",this.longWidthCls]},[t.createVNode("div",{ref:"triggerRef",class:"bk-date-picker-rel"},[null!==(r=null===(n=(e=this.$slots).header)||void 0===n?void 0:n.call(e))&&void 0!==r?r:o]),t.createVNode(t.Teleport,{to:"body",disabled:!this.appendToBody},{default:function(){return[t.createVNode(t.Transition,{name:"bk-fade-down-transition"},{default:function(){return[t.withDirectives(t.createVNode(at,{class:[a.appendToBody?"bk-date-picker-transfer":""],ref:"pickerDropdownRef",triggerRef:a.triggerRef,placement:a.placement,extPopoverCls:a.extPopoverCls,appendToBody:a.appendToBody,onClick:a.handleTransferClick},{default:function(){return["DateRangePanel"===a.panel?t.createVNode(Dt,{ref:"pickerPanelRef",shortcuts:a.shortcuts,modelValue:a.internalValue,type:a.type,selectionMode:a.selectionMode,startDate:a.startDate,disableDate:a.disableDate,focusedDate:a.focusedDate,onPick:a.onPick},null):t.createVNode(bt,{ref:"pickerPanelRef",shortcuts:a.shortcuts,multiple:a.multiple,clearable:a.clearable,shortcutClose:a.shortcutClose,selectionMode:a.selectionMode,modelValue:a.internalValue,startDate:a.startDate,disableDate:a.disableDate,focusedDate:a.focusedDate,onPick:a.onPick},null)]}}),[[t.vShow,a.opened]])]}})]}})]),[[t.resolveDirective("clickoutside"),this.handleClose]])}}),xt=r.withInstall(Mt);e.default=xt,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../directives"),require("../icon"),require("js-calendar"),require("date-fns"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives","../icon","js-calendar","date-fns"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives"),require("../icon"),require("js-calendar"),require("date-fns")):t(e["../shared"],e.vue,e["../directives"],e["../icon"],e["js-calendar"],e["date-fns"]);for(var a in n)("object"==typeof exports?exports:e)[a]=n[a]}}(self,((e,t,n,a,r,l)=>(()=>{"use strict";var i={4061:e=>{e.exports=n},6870:e=>{e.exports=a},4212:t=>{t.exports=e},7876:e=>{e.exports=l},7926:e=>{e.exports=r},748:e=>{e.exports=t}},o={};function c(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e](n,n.exports,c),n.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{c.r(u),c.d(u,{default:()=>le});var e=c(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function n(e,n){if(e){if("string"==typeof e)return t(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?t(e,n):void 0}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,l=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(l.push(a.value),!t||l.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return l}}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||n(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var i=c(748),o=c(4061),s=c(6870),d={placement:{type:String,default:"bottom-start",validator:function(e){return!(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)<0&&(console.error("placement property is not valid: '".concat(e,"'")),1))}},className:{type:String},extPopoverCls:{type:String},appendToBody:{type:Boolean},triggerRef:{type:Object},onClick:Function};const f=(0,i.defineComponent)({props:d,emits:["changeVisible"],setup:function(t,n){var a=n.emit,r=Object.create(null),l=(0,i.ref)(null);(0,i.onMounted)((function(){c()})),(0,i.onBeforeUnmount)((function(){o()}));var o=function(){if(r&&0!==Object.keys(r).length){var e=r;e.isShow&&e.hide(),e.destroy(),r=null,a("changeVisible",!1)}},c=function(){r&&0!==Object.keys(r).length?(0,i.nextTick)((function(){r.update()})):(0,i.nextTick)((function(){r=new e.BKPopover(t.triggerRef,l.value,{placement:t.placement,trigger:"manual",modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},{name:"offset",options:{offset:[0,4]}}]})}))},u=(0,i.computed)((function(){var n={};return t.appendToBody&&(n["z-index"]=1060+e.bkZIndexManager.getModalNextIndex()),n})),s=(0,i.reactive)({styles:u});return Object.assign(Object.assign({},(0,i.toRefs)(s)),{refContentRef:l,updateDropdown:c,destoryDropdown:o})},render:function(){var e,t,n;return(0,i.createVNode)("div",{ref:"refContentRef",class:["bk-date-picker-dropdown",this.className,this.extPopoverCls],style:this.styles,onClick:this.onClick},[null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""])}});var p={showTime:{type:Boolean,required:!0},isTime:{type:Boolean,default:!1},timeDisabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0}};const h=(0,i.defineComponent)({props:p,emits:["pick-clear","pick-success","pick-toggle-time"],setup:function(e,t){var n=t.emit,a=(0,i.computed)((function(){return{time:e.isTime?"选择日期":"选择时间",clear:"清除",ok:"确定"}})),l=(0,i.ref)(null);return{labels:a,handleClear:function(){n("pick-clear")},handleSuccess:function(){n("pick-success")},handleToggleTime:function(){e.timeDisabled||n("pick-toggle-time")},handleTab:function(e){var t=r(l.value.children)[e.shiftKey?"shift":"pop"]();document.activeElement===t&&(e.preventDefault(),e.stopPropagation())}}},render:function(){return(0,i.createVNode)("div",{class:"bk-picker-confirm",ref:"elRef",onKeydown:this.handleTab},[this.showTime?(0,i.createVNode)("a",{href:"javascript: void(0);",class:"bk-picker-confirm-time",disabled:this.timeDisabled,onClick:this.handleToggleTime},[this.labels.time]):"",this.clearable?(0,i.createVNode)("a",{href:"javascript: void(0);",onClick:this.handleClear,onKeydown:this.handleClear},[this.labels.clear]):"",(0,i.createVNode)("a",{href:"javascript: void(0);",class:"confirm",onClick:this.handleSuccess,onKeydown_enter:this.handleSuccess},[this.labels.ok])])}});function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=c(7926),v=c.n(y),g=c(7876),b={},k=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,D=/\d\d?/,w=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,S=function(){};function V(e,t){for(var n=[],a=0,r=e.length;a<r;a++)n.push(e[a].substr(0,t));return n}function M(e){return function(t,n,a){var r=a[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(t.month=r)}}function P(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=String(e);n.length<t;)n="0".concat(n);return n}var N=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],C=["January","February","March","April","May","June","July","August","September","October","November","December"],T=V(C,3),x=V(N,3);b.i18n={dayNamesShort:x,dayNames:N,monthNamesShort:T,monthNames:C,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10)*e%10]}};var F={D:function(e){return e.getDay()},DD:function(e){return P(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return P(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return P(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return String(e.getFullYear()).substr(2)},yyyy:function(e){return e.getFullYear()},h:function(e){return e.getHours()%12||12},hh:function(e){return P(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return P(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return P(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return P(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return P(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return P(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+P(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},O={d:[D,function(e,t){e.day=t}],M:[D,function(e,t){e.month=t-1}],yy:[D,function(e,t){var n=new Date,a=+"".concat(n.getFullYear()).substr(0,2);e.year="".concat(t>68?a-1:a).concat(t)}],h:[D,function(e,t){e.hour=t}],m:[D,function(e,t){e.minute=t}],s:[D,function(e,t){e.second=t}],yyyy:[/\d{4}/,function(e,t){e.year=t}],S:[/\d/,function(e,t){e.millisecond=100*t}],SS:[/\d{2}/,function(e,t){e.millisecond=10*t}],SSS:[/\d{3}/,function(e,t){e.millisecond=t}],D:[D,S],ddd:[w,S],MMM:[w,M("monthNamesShort")],MMMM:[w,M("monthNames")],a:[w,function(e,t,n){var a=t.toLowerCase();a===n.amPm[0]?e.isPm=!1:a===n.amPm[1]&&(e.isPm=!0)}],ZZ:[/[\\+\\-]\d\d:?\d\d/,function(e,t){var n,a="".concat(t).match(/([\\+\\-]|\d\d)/gi);a&&(n=60*a[1]+parseInt(a[2],10),e.timezoneOffset="+"===a[0]?n:-n)}]};O.DD=O.D,O.dddd=O.ddd,O.Do=O.dd=O.d,O.mm=O.m,O.hh=O.H=O.HH=O.h,O.MM=O.M,O.ss=O.s,O.A=O.a,b.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},b.format=function(e,t,n){var a=n||b.i18n;if("number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");return(t=b.masks[t]||t||b.masks.default).replace(k,(function(t){return t in F?F[t](e,a):t.slice(1,t.length-1)}))},b.parse=function(e,t,n){var a=n||b.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");if(t=b.masks[t]||t,e.length>1e3)return!1;var r=!0,l={};if(t.replace(k,(function(t){if(O[t]){var n=O[t],i=e.search(n[0]);~i?e.replace(n[0],(function(t){return n[1](l,t,a),e=e.substr(i+t.length),t})):r=!1}return O[t]?"":t.slice(1,t.length-1)})),!r)return!1;var i,o=new Date;return!0===l.isPm&&null!==l.hour&&12!=+l.hour?l.hour=+l.hour+12:!1===l.isPm&&12==+l.hour&&(l.hour=0),null!==l.timezoneOffset&&void 0!==l.timezoneOffset?(l.minute=+(l.minute||0)-+l.timezoneOffset,i=new Date(Date.UTC(l.year||o.getFullYear(),l.month||0,l.day||1,l.hour||0,l.minute||0,l.second||0,l.millisecond||0))):i=new Date(l.year||o.getFullYear(),l.month||0,l.day||1,l.hour||0,l.minute||0,l.second||0,l.millisecond||0),i};const H=b;var L=" - ",A=function(e,t){var n=(0,g.toDate)(new Date(e));return!n||isNaN(n.getTime())?"":(0,g.format)(n,t||"yyyy-MM-dd")},j=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],a=e[1];if(n&&a)return A(n,t)+L+A(a,t)}else if(!Array.isArray(e)&&e instanceof Date)return A(e,t);return""},B=function(e,t){var n=Array.isArray(e)?e:e.split(L);if(2===n.length){var a=n[0],r=n[1];return[a instanceof Date?a:H.parse(a,t||"yyyy-MM-dd"),r instanceof Date?r:H.parse(r,t||"yyyy-MM-dd")]}return[]},R={default:{formatter:function(e){return e?"".concat(e):""},parser:function(e){return void 0===e||""===e?null:e}},date:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return H.parse(e,t||"yyyy-MM-dd")}},datetime:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return H.parse(e,t||"yyyy-MM-dd")}},daterange:{formatter:j,parser:B},datetimerange:{formatter:j,parser:B},timerange:{formatter:j,parser:B},time:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return H.parse(e,t||"yyyy-MM-dd")}},month:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return H.parse(e,t||"yyyy-MM-dd")}},year:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return H.parse(e,t||"yyyy-MM-dd")}},multiple:{formatter:function(e,t){return e.filter(Boolean).map((function(e){return A(e,t)})).join(",")},parser:function(e,t){return("string"==typeof e?e.split(","):e).map((function(e){if(e instanceof Date)return e;var n=e;return"string"==typeof e?n=e.trim():"number"==typeof e||e||(n=""),H.parse(n,t||"yyyy-MM-dd")}))}},number:{formatter:function(e){return e?"".concat(e):""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}}},z=function(e){return e?[e.getHours(),e.getMinutes(),e.getSeconds()]:[0,0,0]},I={date:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",datetimerange:"yyyy-MM-dd HH:mm:ss"},Y=function(e,t,n,r){var l=t.includes("range"),i=(R[t]||R.default).parser,o=r||I[t],c=R.multiple.parser,u=e;if(!e||"time"!==t||e instanceof Date)if(n&&e)u=c(e,o);else if(l)if(e)if("string"==typeof e)u=i(e,o);else if("timerange"===t)u=i(e,o).map((function(e){return e||""}));else{var s=a(e,2),d=s[0],f=s[1];d instanceof Date&&f instanceof Date?u=e.map((function(e){return new Date(e)})):"string"==typeof d&&"string"==typeof f?u=i(e.join(L),o):d&&f||(u=[null,null])}else u=[null,null];else"string"==typeof e&&0!==t.indexOf("time")&&(u=i(e,o)||null);else u=i(e,o);return l||n?u||[]:[u]},q=function(e,t,n,a){var r=I[t];return n?(0,R.multiple.formatter)(e,a||r):(0,(R[t]||R.default).formatter)(e,a||r)},E=Symbol("date-picker");function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return["bk-picker-panel-icon-btn","bk-date-picker-".concat(e,"-btn"),"bk-date-picker-".concat(e,"-btn-arrow").concat(t)]}var $,K,J=function(e,t){var n,a=new Date(e),r=a.getMonth()+t,l=(n=a.getFullYear(),new Date(n,r+1,0).getDate());return l<a.getDate()&&a.setDate(l),a.setMonth(r),a},Z=($={yyyy:function(e){return e.getFullYear()},m:function(e){return e.getMonth()+1},mm:function(e){return"0".concat(e.getMonth()+1).slice(-2)},mmm:function(e,t){return e.toLocaleDateString(t,{month:"long"}).slice(0,3)},Mmm:function(e,t){var n=e.toLocaleDateString(t,{month:"long"});return(n[0].toUpperCase()+n.slice(1).toLowerCase()).slice(0,3)},mmmm:function(e,t){return e.toLocaleDateString(t,{month:"long"})},Mmmm:function(e,t){var n=e.toLocaleDateString(t,{month:"long"});return n[0].toUpperCase()+n.slice(1).toLowerCase()}},K=new RegExp(["yyyy","Mmmm","mmmm","Mmm","mmm","mm","m"].join("|"),"g"),function(e,t,n){var a=t.match(/(\[[^\]]+\])([^\\[\]]+)(\[[^\]]+\])/).slice(1);return{separator:a[1],labels:[a[0],a[2]].map((function(t){return{label:t.replace(/\[[^\]]+\]/,(function(t){return t.slice(1,-1).replace(K,(function(t){return $[t](n,e)}))})),type:-1!==t.indexOf("yy")?"year":"month"}}))}}),_=function(e){var t=new Date(e);return t.setHours(0,0,0,0),t.getTime()},W=function(e,t,n){if(!t||!n)return!1;var r=a([t,n].sort(),2),l=r[0],i=r[1];return e>=l&&e<=i},G={tableDate:{type:Date,required:!0},disableDate:Function,selectionMode:{type:String,required:!0},modelValue:{type:[Date,String,Number,Array]},rangeState:{type:Object,default:function(){return{from:null,to:null,selecting:!1}}},focusedDate:{type:Date,required:!0}};const Q=(0,i.defineComponent)({props:G,emits:["pick","pick-click","changeRange"],setup:function(e,t){var n=t.emit,r=(0,i.computed)((function(){return new(v().Generator)({onlyDays:!0,weekStart:0})})),l=(0,i.computed)((function(){var e=["日","一","二","三","四","五","六"];return e.splice(0,7).concat(e.splice(0,0))})),o=(0,i.computed)((function(){return"range"===e.selectionMode&&e.rangeState.selecting?[e.rangeState.from]:e.modelValue}));return{headerDays:l,cells:(0,i.computed)((function(){var t=e.tableDate.getFullYear(),n=e.tableDate.getMonth(),l=_(new Date),i=o.value.filter(Boolean).map(_),c=a(o.value.map(_),2),u=c[0],s=c[1],d=e.rangeState.from&&_(e.rangeState.from),f=e.rangeState.to&&_(e.rangeState.to),p="range"===e.selectionMode,h="function"==typeof e.disableDate&&e.disableDate;return r.value(t,n,(function(e){e.date instanceof Date&&e.date.setTime(e.date.getTime()+6e4*e.date.getTimezoneOffset());var t=e.date&&_(e.date),a=e.date&&n===e.date.getMonth();return Object.assign(Object.assign({},e),{type:t===l?"today":e.type,selected:a&&i.includes(t),disabled:e.date&&h&&h(new Date(t)),range:a&&p&&W(t,d,f),start:a&&p&&t===u,end:a&&p&&t===s})})).cells.slice(0)})),getCellCls:function(e){var t;return["bk-date-picker-cells-cell",(t={},m(t,"bk-date-picker-cells-cell-selected",e.selected||e.start||e.end),m(t,"bk-date-picker-cells-cell-disabled",e.disabled),m(t,"bk-date-picker-cells-cell-today","today"===e.type),m(t,"bk-date-picker-cells-cell-prev-month","prevMonth"===e.type),m(t,"bk-date-picker-cells-cell-next-month","nextMonth"===e.type),m(t,"bk-date-picker-cells-cell-week-label","weekLabel"===e.type),m(t,"bk-date-picker-cells-cell-range",e.range&&!e.start&&!e.end),t)]},handleClick:function(e){if(!e.disabled&&"weekLabel"!==e.type){var t=new Date(_(e.date));n("pick",t),n("pick-click")}},handleMouseMove:function(t){if(e.rangeState.selecting&&!t.disabled){var a=t.date;n("changeRange",a)}}}},render:function(){var e=this;return(0,i.createVNode)("div",{class:"bk-date-picker-cells"},[(0,i.createVNode)("div",{class:"bk-date-picker-cells-header"},[this.headerDays.map((function(e){return(0,i.createVNode)("span",null,[e])}))]),this.cells.map((function(t){return(0,i.createVNode)("span",{class:e.getCellCls(t),onClick:function(){return e.handleClick(t)},onMouseenter:function(){return e.handleMouseMove(t)}},[(0,i.createVNode)("em",null,[t.desc])])}))])}});var X={modelValue:{type:[Date,String,Number,Array]},shortcuts:{type:Array,default:function(){return[]}},multiple:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator:function(e){return!(["year","month","date","time"].indexOf(e)<0&&(console.error("selectionMode property is not valid: '".concat(e,"'")),1))}},startDate:{type:Date},disableDate:Function,focusedDate:{type:Date,required:!0},confirm:{type:Boolean,default:!1},showTime:{type:Boolean,default:!1}};const ee=(0,i.defineComponent)({props:X,emits:["pick","pick-success","pick-clear"],setup:function(e,t){var n=this,a=t.slots,r=t.emit,l=function(e){return e.match(/^time/)?"time-picker":"".concat(e,"-table")},o=e.modelValue.slice().sort(),c=(0,i.reactive)({currentView:e.selectionMode||"date",pickerTable:l(e.selectionMode),dates:o,panelDate:e.startDate||o[0]||new Date}),u=function(){setTimeout((function(){c.currentView=e.selectionMode}),500)},s=function(e){c.panelDate=e,"year-table"===c.pickerTable?c.pickerTable="month-table":c.pickerTable=l(c.currentView)},d=function(t,n){var a;a="year"===e.selectionMode?new Date(t.getFullYear(),0,1):"month"===e.selectionMode?new Date(c.panelDate.getFullYear(),t.getMonth(),1):new Date(t),c.dates=[a],r("pick",a,!1,n||e.selectionMode)},f=function(){u(),r("pick-success")},p=(0,i.ref)(null),h=(0,i.ref)(null),m=(0,i.computed)((function(){return c.pickerTable==="".concat(c.currentView,"-table")?d:s})),y=(0,i.computed)((function(){var e=c.panelDate,t=Z("zh-CN","[yyyy]-[mm]",e),n=t.labels;return{separator:t.separator,labels:n.map((function(e){var t,n=e;return n.handler=(t=e.type,function(){c.pickerTable=l(t)}),n}))}})),v=(0,i.computed)((function(){return"year"===y.value.labels[0].type||"date"===c.currentView})),g=(0,i.computed)((function(){return"year"===y.value.labels[1].type||"date"===c.currentView})),b=(0,i.computed)((function(){return"time"===c.currentView})),k=(0,i.computed)((function(){return!!a.shortcuts}));return Object.assign(Object.assign({},(0,i.toRefs)(c)),{panelPickerHandlers:m,datePanelLabel:y,showLabelFirst:v,showLabelSecond:g,handleShortcutClick:function(t){t.value&&r("pick",t.value(),!1,void 0,t),t.onClick&&t.onClick(n),e.shortcutClose&&f()},changeYear:function(t){"year"===e.selectionMode||"year-table"===c.pickerTable?c.panelDate=new Date(c.panelDate.getFullYear()+10*t,0,1):c.panelDate=J(c.panelDate,12*t)},changeMonth:function(e){c.panelDate=J(c.panelDate,e)},reset:function(){c.currentView=e.selectionMode,c.pickerTable=l(c.currentView)},isTime:b,hasShortcuts:k,onToggleVisibility:function(e){var t,n;e&&(null===(t=null==p?void 0:p.value)||void 0===t||t.updateScroll(),null===(n=null==h?void 0:h.value)||void 0===n||n.updateScroll())},handleToggleTime:function(){c.currentView="time"===c.currentView?"date":"time"},handlePickSuccess:f,handlePickClear:function(){u(),r("pick-clear")}})},render:function(){var e,t,n,a=this;return(0,i.createVNode)("div",{class:["bk-picker-panel-body-wrapper",this.shortcuts.length||this.hasShortcuts?"bk-picker-panel-with-sidebar":""],onMousedown:function(e){e.preventDefault()}},[this.shortcuts.length?(0,i.createVNode)("div",{class:"bk-picker-panel-sidebar"},[this.shortcuts.map((function(e){return(0,i.createVNode)("div",{class:"bk-picker-panel-shortcut",onClick:function(){return a.handleShortcutClick(e)}},[e.text])}))]):"",(0,i.createVNode)("div",{class:"bk-picker-panel-body",style:"width: 261px;"},[(0,i.withDirectives)((0,i.createVNode)("div",{class:"bk-date-picker-header"},[(0,i.createVNode)("span",{class:U("prev","-double"),onClick:function(){return a.changeYear(-1)}},[(0,i.createVNode)(s.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?(0,i.withDirectives)((0,i.createVNode)("span",{class:U("prev"),onClick:function(){return a.changeMonth(-1)}},[(0,i.createVNode)(s.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[i.vShow,"date"===this.currentView]]):"",this.datePanelLabel&&Object.keys(this.datePanelLabel).length>0?(0,i.createVNode)("span",null,[(0,i.withDirectives)((0,i.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return a.datePanelLabel.labels[0].handler}},[this.datePanelLabel.labels[0].label]),[[i.vShow,this.showLabelFirst]]),"date"===this.currentView?" ".concat(this.datePanelLabel.separator," "):" ",(0,i.withDirectives)((0,i.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return a.datePanelLabel.labels[1].handler}},[this.datePanelLabel.labels[1].label]),[[i.vShow,this.showLabelSecond]])]):"",(0,i.createVNode)("span",{class:U("next","-double"),onClick:function(){return a.changeYear(1)}},[(0,i.createVNode)(s.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?(0,i.withDirectives)((0,i.createVNode)("span",{class:U("next"),onClick:function(){return a.changeMonth(1)}},[(0,i.createVNode)(s.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[i.vShow,"date"===this.currentView]]):""]),[[i.vShow,"time"!==this.currentView]]),(0,i.createVNode)("div",{class:"bk-picker-panel-content"},["time"!==this.currentView?"date-table"===a.pickerTable?(0,i.createVNode)(Q,{tableDate:a.panelDate,disableDate:a.disableDate,selectionMode:a.selectionMode,modelValue:a.dates,focusedDate:a.focusedDate,onPick:a.panelPickerHandlers},null):null:""]),this.confirm?(0,i.createVNode)(h,{clearable:this.clearable,showTime:this.showTime,isTime:this.isTime,"onPick-toggle-time":this.handleToggleTime,"onPick-clear":this.handlePickClear,"onPick-success":this.handlePickSuccess},null):""]),this.hasShortcuts?(0,i.createVNode)("div",{class:"bk-picker-panel-sidebar"},[null!==(n=null===(t=(e=this.$slots).shortcuts)||void 0===t?void 0:t.call(e))&&void 0!==n?n:null]):null])}});var te={modelValue:{type:[Date,String,Number,Array]},type:{type:String,default:"date",validator:function(e){return!(["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0&&(console.error("type property is not valid: '".concat(e,"'")),1))}},shortcuts:{type:Array,default:function(){return[]}},clearable:{type:Boolean,default:!0},splitPanels:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},showTime:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator:function(e){return!(["year","month","date","time"].indexOf(e)<0&&(console.error("selectionMode property is not valid: '".concat(e,"'")),1))}},startDate:{type:Date},upToNow:{type:Boolean,default:!1},disableDate:Function,focusedDate:{type:Date,required:!0},confirm:{type:Boolean,default:!1}};const ne=(0,i.defineComponent)({props:te,emits:["pick"],setup:function(e,t){var n=t.slots,r=t.emit,l=e.modelValue.map((function(e){return e||function(){var e=new Date;return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e}()})),o=a(l,2),c=o[0],u=o[1],s=e.startDate?e.startDate:c,d=(0,i.reactive)({currentView:e.selectionMode||"date",leftPickerTable:"".concat(e.selectionMode,"-table"),rightPickerTable:"".concat(e.selectionMode,"-table"),leftPanelDate:s,rightPanelDate:new Date(s.getFullYear(),s.getMonth()+1,1),rangeState:{from:e.modelValue[0],to:e.modelValue[1],selecting:c&&!u},upToNowEnable:!1,dates:e.modelValue}),f=function(e,t){return e&&t?e.getTime()-t.getTime():0},p=(0,i.ref)(null),h=(0,i.ref)(null),m=function t(n,a,r){var l=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=new Date(d["".concat(n,"PanelDate")]);if(i["set".concat(a)](i["get".concat(a)]()+r),d["".concat(n,"PanelDate")]=i,l)if(e.splitPanels){var o="left"===n?"right":"left";"left"===n&&d.leftPanelDate>=d.rightPanelDate&&t(o,a,1),"right"===n&&d.rightPanelDate<=d.leftPanelDate&&t(o,a,-1)}else{var c="left"===n?"right":"left",u=d["".concat(c,"PanelDate")],s=new Date(u);if("Month"===a){var f=new Date(s.getFullYear(),s.getMonth()+r+1,0).getDate();s.setDate(Math.min(f,s.getDate()))}s["set".concat(a)](s["get".concat(a)]()+r),d["".concat(c,"PanelDate")]=s}},y=function(e){d["".concat(e,"PickerTable")]="year-table"},v=function(e){d["".concat(e,"PickerTable")]="month-table"},g=function(e){var t=d["".concat(e,"PanelDate")],n=Z("zh-CN","[yyyy]-[mm]",t),a=n.labels;return{separator:n.separator,labels:a.map((function(t){var n,a,r=t;return r.handler=(n=t.type,a="month"===n?v:y,function(){return a(e)}),r}))}},b=function(t,n){if(console.warn("handleRangePick"),d.rangeState.selecting||"time"===d.currentView){if("time"===d.currentView)d.dates=t;else{var l=a([d.rangeState.from,t].sort(f),2),i=l[0],o=l[1],c="upToNow"===n?new Date:new Date(new Date(new Date(o.setHours(23)).setMinutes(59)).setSeconds(59));d.dates=[i,c],d.rangeState={from:i,to:c,selecting:!1}}!function(t,n){r("pick",d.dates,!1,n||e.type)}(0,n||"date")}else d.upToNowEnable=new Date(t).getTime()<(new Date).getTime(),d.rangeState={from:t,to:null,selecting:!0}},k=function(t,n){d["".concat(t,"PanelDate")]=n;var a=d["".concat(t,"PickerTable")];if(d["".concat(t,"PickerTable")]="year-table"===a?"month-table":"".concat(d.currentView,"-table"),!e.splitPanels){var r="left"===t?"right":"left";d["".concat(r,"PanelDate")]=n,m(r,"Month","left"===r?-1:1,!1)}};(0,i.watch)((function(){return e.selectionMode}),(function(e){d.currentView=e||"range"}));var D=(0,i.computed)((function(){return"time"===d.currentView})),w=(0,i.computed)((function(){return g("left")})),S=(0,i.computed)((function(){return g("right")})),V=(0,i.computed)((function(){return d.leftPickerTable.split("-").shift()})),M=(0,i.computed)((function(){return d.rightPickerTable.split("-").shift()})),P=(0,i.computed)((function(){return"year"===w.value.labels[0].type||"date"===d.currentView})),N=(0,i.computed)((function(){return"year"===w.value.labels[1].type||"date"===d.currentView})),C=(0,i.computed)((function(){return"year"===S.value.labels[0].type||"date"===d.currentView})),T=(0,i.computed)((function(){return"year"===S.value.labels[1].type||"date"===d.currentView})),x=(0,i.computed)((function(){var e="".concat(d.currentView,"-table");return{left:d.leftPickerTable!==e,right:d.rightPickerTable!==e}})),F=(0,i.computed)((function(){return{left:x.value.left?k.bind("left"):b,right:x.value.right?k.bind("right"):b}})),O=(0,i.computed)((function(){return!!n.shortcuts}));return Object.assign(Object.assign({},(0,i.toRefs)(d)),{isTime:D,hasShortcuts:O,prevYear:function(e){var t="year"===d.currentView?-10:-1;m(e,"FullYear",t)},nextYear:function(e){var t="year"===d.currentView?10:1;m(e,"FullYear",t)},prevMonth:function(e){m(e,"Month",-1)},nextMonth:function(e){m(e,"Month",1)},leftDatePanelLabel:w,rightDatePanelLabel:S,leftDatePanelView:V,rightDatePanelView:M,leftShowLabelFirst:P,leftShowLabelSecond:N,rightShowLabelFirst:C,rightShowLabelSecond:T,preSelecting:x,panelPickerHandlers:F,reset:function(){d.currentView=e.selectionMode,d.leftPickerTable="".concat(d.currentView,"-table"),d.rightPickerTable="".concat(d.currentView,"-table")},onToggleVisibility:function(e){var t,n;e&&(null===(t=null==p?void 0:p.value)||void 0===t||t.updateScroll(),null===(n=null==h?void 0:h.value)||void 0===n||n.updateScroll())},handleRangePick:b,handleChangeRange:function(e){d.rangeState.to=e}})},render:function(){var e,t,n,a=this;return(0,i.createVNode)("div",{class:["bk-picker-panel-body-wrapper","bk-date-picker-with-range",this.shortcuts.length||this.$slots.shortcuts?"bk-picker-panel-with-sidebar":""],onMousedown:function(e){e.preventDefault()}},[(0,i.createVNode)("div",{class:["bk-picker-panel-body",this.showTime?"bk-picker-panel-body-time":"bk-picker-panel-body-date"]},[(0,i.withDirectives)((0,i.createVNode)("div",{class:"bk-picker-panel-content bk-picker-panel-content-left",style:"width: 261px;"},[(0,i.withDirectives)((0,i.createVNode)("div",{class:"bk-date-picker-header"},[(0,i.createVNode)("span",{class:U("prev","-double"),onClick:function(){return a.prevYear("left")}},[(0,i.createVNode)(s.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.leftPickerTable?(0,i.withDirectives)((0,i.createVNode)("span",{class:U("prev"),onClick:function(){return a.prevMonth("left")}},[(0,i.createVNode)(s.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[i.vShow,"date"===this.currentView]]):"",this.leftDatePanelLabel&&Object.keys(this.leftDatePanelLabel).length>0?(0,i.createVNode)("span",null,[(0,i.withDirectives)((0,i.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return a.leftDatePanelLabel.labels[0].handler}},[this.leftDatePanelLabel.labels[0].label]),[[i.vShow,this.leftShowLabelFirst]]),"date"===this.leftDatePanelView?" ".concat(this.leftDatePanelLabel.separator," "):" ",(0,i.withDirectives)((0,i.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return a.leftDatePanelLabel.labels[1].handler}},[this.leftDatePanelLabel.labels[1].label]),[[i.vShow,this.leftShowLabelSecond]])]):"",this.splitPanels||"date-table"!==this.leftPickerTable?(0,i.createVNode)("span",{class:U("next","-double"),onClick:function(){return a.nextYear("left")}},[(0,i.createVNode)(s.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels||"date-table"===this.leftPickerTable?(0,i.withDirectives)((0,i.createVNode)("span",{class:U("next"),onClick:function(){return a.nextMonth("left")}},[(0,i.createVNode)(s.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[i.vShow,"date"===this.currentView]]):""]),[[i.vShow,"time"!==this.currentView]]),"time"!==this.currentView?"date-table"===a.leftPickerTable?(0,i.createVNode)(Q,{selectionMode:"range",tableDate:a.leftPanelDate,disableDate:a.disableDate,rangeState:a.rangeState,modelValue:a.preSelecting.left?[a.dates[0]]:a.dates,focusedDate:a.focusedDate,onChangeRange:a.handleChangeRange,onPick:a.panelPickerHandlers.left},null):null:""]),[[i.vShow,!this.isTime]]),(0,i.withDirectives)((0,i.createVNode)("div",{class:"bk-picker-panel-content bk-picker-panel-content-right",style:"width: 261px;"},[(0,i.withDirectives)((0,i.createVNode)("div",{class:"bk-date-picker-header"},[this.splitPanels||"date-table"!==this.rightPickerTable?(0,i.createVNode)("span",{class:U("prev","-double"),onClick:function(){return a.prevYear("right")}},[(0,i.createVNode)(s.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels&&"date-table"===this.rightPickerTable?(0,i.withDirectives)((0,i.createVNode)("span",{class:U("prev","-double"),onClick:function(){return a.prevMonth("right")}},[(0,i.createVNode)(s.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[i.vShow,"date"===this.currentView]]):"",this.rightDatePanelLabel&&Object.keys(this.rightDatePanelLabel).length>0?(0,i.createVNode)("span",null,[(0,i.withDirectives)((0,i.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return a.rightDatePanelLabel.labels[0].handler}},[this.rightDatePanelLabel.labels[0].label]),[[i.vShow,this.rightShowLabelFirst]]),"date"===this.rightDatePanelView?" ".concat(this.rightDatePanelLabel.separator," "):" ",(0,i.withDirectives)((0,i.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return a.rightDatePanelLabel.labels[1].handler}},[this.rightDatePanelLabel.labels[1].label]),[[i.vShow,this.rightShowLabelSecond]])]):"",this.upToNow?(a.rangeState.selecting||"time"===a.currentView)&&a.upToNowEnable?(0,i.createVNode)("span",{class:"up-to-now",onClick:function(){return a.handleRangePick(new Date,"upToNow")}},[(0,i.createTextVNode)("至今")]):(0,i.createVNode)("span",{class:"up-to-now disabled"},[(0,i.createTextVNode)("至今")]):"",(0,i.createVNode)("span",{class:U("next","-double"),onClick:function(){return a.nextYear("right")}},[(0,i.createVNode)(s.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.rightPickerTable?(0,i.withDirectives)((0,i.createVNode)("span",{class:U("next"),onClick:function(){return a.nextMonth("right")}},[(0,i.createVNode)(s.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[i.vShow,"date"===this.currentView]]):""]),[[i.vShow,"time"!==this.currentView]]),"time"!==this.currentView?"date-table"===a.rightPickerTable?(0,i.createVNode)(Q,{selectionMode:"range",tableDate:a.rightPanelDate,disableDate:a.disableDate,rangeState:a.rangeState,modelValue:a.preSelecting.right?[a.dates[a.dates.length-1]]:a.dates,focusedDate:a.focusedDate,onChangeRange:a.handleChangeRange,onPick:a.panelPickerHandlers.right},null):null:""]),[[i.vShow,!this.isTime]])]),this.hasShortcuts?(0,i.createVNode)("div",{class:"bk-picker-panel-sidebar"},[null!==(n=null===(t=(e=this.$slots).shortcuts)||void 0===t?void 0:t.call(e))&&void 0!==n?n:null]):null])}});var ae={type:{type:String,default:"date",validator:function(e){return!(["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0&&(console.error("type property is not valid: '".concat(e,"'")),1))}},extPopoverCls:{type:String,default:""},format:String,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},open:{type:Boolean,default:null},multiple:{type:Boolean,default:!1},timePickerOptions:{type:Object,default:function(){return{}}},splitPanels:{type:Boolean,default:!0},startDate:Date,placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start",validator:function(e){return!(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)<0&&(console.error("placement property is not valid: '".concat(e,"'")),1))}},transfer:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},shortcuts:{type:Array,default:function(){return[]}},shortcutClose:{type:Boolean,default:!1},modelValue:{type:[Date,String,Number,Array]},value:{type:[Date,String,Number,Array]},options:{type:Object,default:function(){return{}}},fontSize:{type:String,default:"normal"},upToNow:{type:Boolean,default:!1},useShortcutText:{type:Boolean,default:!1},shortcutSelectedIndex:{type:Number,default:-1},headerSlotCls:{type:String,default:""},footerSlotCls:{type:String,default:""},allowCrossDay:{type:Boolean,default:!1},behavior:{type:String,default:"normal",validator:function(e){return["simplicity","normal"].indexOf(e)>-1}},disableDate:Function};const re=(0,i.defineComponent)({name:"DatePicker",directives:{clickoutside:o.clickoutside},props:ae,emits:["open-change","input","change","update:modelValue","clear","shortcut-change","pick-success"],slots:["header"],setup:function(t,n){var o=n.slots,c=n.emit,u=(0,e.useFormItem)(),s=t.type.includes("range"),d=s?[null,null]:[null],f=((s?t.modelValue:[t.modelValue])||[]).every((function(e){return!e||"string"==typeof e&&""===e.trim()}))?d:Y(t.modelValue,t.type,t.multiple,t.format),p=null;-1!==t.shortcutSelectedIndex&&(p=t.shortcuts[t.shortcutSelectedIndex]||null)&&(f=p.value());var h=(0,i.reactive)({showClose:!1,visible:!1,internalValue:f,disableClickOutSide:!1,disableCloseUnderTransfer:!1,selectionMode:"date",forceInputRerender:1,isFocused:!1,focusedDate:f[0]||t.startDate||new Date,focusedTime:{column:0,picker:0,time:f.map(z),active:!1},internalFocus:!1,timeEnterMode:!0,shortcut:p,onSelectionModeChange:m});function m(e){var t=e;return e.match(/^date/)&&(t="date"),h.selectionMode=["year","month","date","time"].indexOf(t)>-1&&t,h.selectionMode}var y=(0,i.computed)((function(){if(t.multiple)return h.internalValue.slice();var e=t.type.includes("range"),n=h.internalValue.map((function(e){return e instanceof Date?new Date(e):e||""}));return t.type.match(/^time/)&&(n=n.map((function(e){return q(e,t.type,t.multiple,t.format)}))),e||t.multiple?n:n[0]})),v=(0,i.computed)((function(){return t.type.match(/^time/)?y.value:t.multiple?q(y.value,t.type,t.multiple,t.format):Array.isArray(y.value)?y.value.map((function(e){return q(e,t.type,t.multiple,t.format)})):q(y.value,t.type,t.multiple,t.format)})),g=(0,i.computed)((function(){return"daterange"===t.type||"datetimerange"===t.type?"DateRangePanel":"DatePanel"})),b=(0,i.computed)((function(){return null===t.open?h.visible:t.open})),k=(0,i.computed)((function(){return q(h.internalValue,t.type,t.multiple,t.format)})),D=(0,i.computed)((function(){var e;return(null===(e=h.shortcut)||void 0===e?void 0:e.text)&&t.useShortcutText?h.shortcut.text:k.value})),w=(0,i.computed)((function(){return!!o.trigger||"datetime"===t.type||"datetimerange"===t.type||t.multiple})),S=(0,i.computed)((function(){return!!o.header})),V=(0,i.computed)((function(){return!!o.footer})),M=(0,i.computed)((function(){return!!o.shortcuts})),P=(0,i.computed)((function(){var e="";return"medium"===t.fontSize?e="medium-font":"large"===t.fontSize&&(e="large-font"),e})),N=(0,i.computed)((function(){var e="";return"medium"===t.fontSize?e="medium-width":"large"===t.fontSize&&(e="large-width"),e})),C=(0,i.computed)((function(){var e;return!(!(null===(e=h.shortcut)||void 0===e?void 0:e.text)||!t.useShortcutText)||!t.editable||t.readonly})),T=(0,i.computed)((function(){return"RangeTimePickerPanel"===g.value&&t.allowCrossDay})),x=(0,i.ref)(null);(0,i.watch)((function(){return h.visible}),(function(e){var t,n;!1===e&&(null===(t=F.value)||void 0===t||t.destoryDropdown()),null===(n=F.value)||void 0===n||n.updateDropdown(),c("open-change",e)}));var F=(0,i.ref)(null);(0,i.watch)((function(){return t.modelValue}),(function(e){h.internalValue=Y(e,t.type,t.multiple,t.format)})),(0,i.watch)((function(){return t.open}),(function(e){h.visible=!0===e})),(0,i.watch)((function(){return t.type}),(function(e){m(e)})),(0,i.watch)((function(){return y}),(function(e,t){(JSON.stringify(e)!==JSON.stringify(t)||l(e)!==l(t))&&c("input",e)})),(0,i.onMounted)((function(){t.type.indexOf("date"),h.timeEnterMode=!0;var e=t.modelValue,n=y.value;l(e)===l(n)&&JSON.stringify(e)===JSON.stringify(n)||c("input",y.value),null!==t.open&&(h.visible=t.open),(0,i.provide)(E,{props:t,focus:function(){var e;null===(e=null==x?void 0:x.value)||void 0===e||e.focus()}})}));var O=(0,i.ref)(null),H=function(e){var t;if(h.disableCloseUnderTransfer)return h.disableCloseUnderTransfer=!1,!1;if(e&&"mousedown"===e.type&&h.visible)return e.preventDefault(),void e.stopPropagation();if(h.visible){var n=null===(t=null==O?void 0:O.value)||void 0===t?void 0:t.$el;if(e&&n&&n.contains(e.target))return;return h.visible=!1,null==e||e.preventDefault(),void(null==e||e.stopPropagation())}h.isFocused=!1,h.disableClickOutSide=!1},L=function(e){(0,i.nextTick)((function(){var n,a;c("change",v.value,e),c("update:modelValue",y.value),null===(n=null==u?void 0:u.validate)||void 0===n||n.call(u,"change"),t.type.indexOf("time")<0&&(null===(a=null==x?void 0:x.value)||void 0===a||a.blur())}))},A=function(){var e;null===(e=null==O?void 0:O.value)||void 0===e||e.reset()},j=function(){var e;h.visible=!1,(0,i.nextTick)((function(){c("pick-success")})),null===(e=null==x?void 0:x.value)||void 0===e||e.blur(),A()},B=(0,i.ref)(null);return Object.assign(Object.assign({},(0,i.toRefs)(h)),{panel:g,publicStringValue:v,opened:b,visualValue:k,displayValue:D,isConfirm:w,hasHeader:S,hasFooter:V,hasShortcuts:M,fontSizeCls:P,longWidthCls:N,localReadonly:C,allowCrossDayProp:T,pickerDropdownRef:F,inputRef:x,triggerRef:B,pickerPanelRef:O,handleClose:H,handleIconClick:function(){var e,t;null===(e=null==x?void 0:x.value)||void 0===e||e.focus(),null===(t=null==x?void 0:x.value)||void 0===t||t.click()},handleInputMouseenter:function(){t.readonly||t.disabled||(null==k?void 0:k.value)&&(h.showClose=!0)},handleInputMouseleave:function(e){console.log("handleInputMouseleave"),h.showClose=!1},handleFocus:function(e){t.readonly||(h.isFocused=!0,e&&"focus"===e.type||t.disabled||(h.visible=!0))},handleBlur:function(e){var n,a;h.internalFocus?h.internalFocus=!1:h.visible?e.preventDefault():(h.isFocused=!1,m(t.type),h.internalValue=h.internalValue.slice(),A(),null===(n=null==O?void 0:O.value)||void 0===n||n.onToggleVisibility(!1),null===(a=null==u?void 0:u.validate)||void 0===a||a.call(u,"blur"))},handleKeydown:function(e){var t=e.keyCode;if(9===t&&h.visible)if(e.stopPropagation(),e.preventDefault(),w.value){var n=F.value.$el.querySelectorAll(".bk-picker-confirm > *");h.internalFocus=!0,r(n)[e.shiftKey?"pop":"shift"]().focus()}else H();var a=[37,38,39,40];h.visible||!a.includes(t)?(27===t&&h.visible&&(e.stopPropagation(),H()),a.includes(t)&&h.focusedTime.active&&e.preventDefault()):h.visible=!0},handleInputChange:function(e){var n,a=t.type.includes("range")||t.multiple,r=k.value,l=e.target.value,i=Y(l,t.type,t.multiple,t.format),o=a?i:i[0],c=null===(n=t.disableDate)||void 0===n?void 0:n.call(t,o),u=i.reduce((function(e,t){return e&&t instanceof Date}),!0);l!==r&&!c&&u?(L(t.type),h.internalValue=i):h.forceInputRerender=h.forceInputRerender+1},handleClear:function(){h.visible=!1,h.internalValue=h.internalValue.map((function(){return null})),c("clear"),L(t.type),A(),h.showClose=!1,h.shortcut=null,setTimeout((function(){return m(t.type)}),500)},handleTransferClick:function(){t.appendToBody&&(h.disableCloseUnderTransfer=!0)},onPick:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=e;if(t.multiple){var u=o.getTime(),s=h.internalValue.findIndex((function(e){return e&&e.getTime()===u})),d=[].concat(r(h.internalValue),[o]).filter(Boolean),f=d.map((function(e){return e.getTime()})).filter((function(e,t,n){return n.indexOf(e)===t&&t!==s}));h.internalValue=f.map((function(e){return new Date(e)}))}else o=Y(e,t.type,t.multiple,t.format),h.internalValue=Array.isArray(o)?o:[o];if(h.internalValue[0]){var p=a(h.internalValue,1),y=p[0];h.focusedDate=y}h.focusedTime=Object.assign(Object.assign({},h.focusedTime),{time:h.internalValue.map(z)}),w.value||(m(t.type),h.visible=n),"upToNow"===l&&"daterange"===t.type&&j(),h.shortcut=i,L(l);var v=t.shortcuts.findIndex((function(e){return e===h.shortcut}));c("shortcut-change",h.shortcut,v)},onPickSuccess:j})},render:function(){var e,t,n,a,r,l,o,c,u,d=this,p=(0,i.createVNode)("div",null,[(0,i.createVNode)("span",{class:["icon-wrapper",this.disabled?"disabled":""],onClick:this.handleIconClick},["time"===this.type||"timerange"===this.type?(0,i.createVNode)("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[(0,i.createVNode)("g",{id:"time"},[(0,i.createVNode)("path",{fill:"#c4c6cc",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"},null),(0,i.createVNode)("polygon",{fill:"#c4c6cc",points:"512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"},null)])]):(0,i.createVNode)("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[(0,i.createVNode)("g",{id:"date"},[(0,i.createVNode)("path",{fill:"#c4c6cc",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"},null),(0,i.createVNode)("rect",{x:"416",y:"128",fill:"#c4c6cc",width:"192",height:"64"},null),(0,i.createVNode)("rect",{x:"288",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),(0,i.createVNode)("rect",{x:"672",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),(0,i.createVNode)("polygon",{fill:"#c4c6cc",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"},null)])])]),(0,i.createVNode)("input",{type:"text",class:["bk-date-picker-editor",this.readonly?"readonly":"",this.fontSizeCls,"simplicity"===this.behavior?"only-bottom-border":""],ref:"inputRef",key:this.forceInputRerender,readonly:this.localReadonly,disabled:this.disabled,placeholder:this.placeholder,value:this.displayValue,onFocus:this.handleFocus,onClick:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeydown,onChange:this.handleInputChange},null),this.clearable&&this.showClose?(0,i.createVNode)(s.Close,{onClick:this.handleClear,class:"clear-action"},null):""]),h=this.hasShortcuts?{shortcuts:function(){var e,t;return(null===(t=(e=d.$slots).shortcuts)||void 0===t?void 0:t.call(e))||null}}:{};return(0,i.withDirectives)((0,i.createVNode)("div",{class:["bk-date-picker","datetimerange"===this.type?"long":"",this.longWidthCls]},[(0,i.createVNode)("div",{ref:"triggerRef",class:"bk-date-picker-rel",onMouseenter:this.handleInputMouseenter,onMouseleave:this.handleInputMouseleave},[null!==(n=null===(t=(e=this.$slots).trigger)||void 0===t?void 0:t.call(e))&&void 0!==n?n:p]),(0,i.createVNode)(i.Teleport,{to:"body",disabled:!this.appendToBody},{default:function(){return[(0,i.createVNode)(i.Transition,{name:"bk-fade-down-transition"},{default:function(){return[(0,i.withDirectives)((0,i.createVNode)(f,{class:[d.appendToBody?"bk-date-picker-transfer":""],ref:"pickerDropdownRef",triggerRef:d.triggerRef,placement:d.placement,extPopoverCls:d.extPopoverCls,appendToBody:d.appendToBody,onClick:d.handleTransferClick},{default:function(){return[d.hasHeader?(0,i.createVNode)("div",{class:["bk-date-picker-top-wrapper",d.headerSlotCls]},[null!==(l=null===(r=(a=d.$slots).header)||void 0===r?void 0:r.call(a))&&void 0!==l?l:null]):null,"DateRangePanel"===d.panel?(0,i.createVNode)(ne,{ref:"pickerPanelRef",type:d.type,confirm:d.isConfirm,shortcuts:d.shortcuts,modelValue:d.internalValue,selectionMode:d.selectionMode,startDate:d.startDate,disableDate:d.disableDate,focusedDate:d.focusedDate,onPick:d.onPick,"onPick-success":d.onPickSuccess},h):(0,i.createVNode)(ee,{ref:"pickerPanelRef",clearable:d.clearable,showTime:"datetime"===d.type||"datetimerange"===d.type,confirm:d.isConfirm,shortcuts:d.shortcuts,multiple:d.multiple,shortcutClose:d.shortcutClose,selectionMode:d.selectionMode,modelValue:d.internalValue,startDate:d.startDate,disableDate:d.disableDate,focusedDate:d.focusedDate,onPick:d.onPick,"onPick-clear":d.handleClear,"onPick-success":d.onPickSuccess},h),d.hasFooter?(0,i.createVNode)("div",{class:["bk-date-picker-footer-wrapper",d.footerSlotCls]},[null!==(u=null===(c=(o=d.$slots).footer)||void 0===c?void 0:c.call(o))&&void 0!==u?u:null]):null]}}),[[i.vShow,d.opened]])]}})]}})]),[[(0,i.resolveDirective)("clickoutside"),this.handleClose]])}}),le=(0,e.withInstall)(re)})(),u})()));
@@ -1,5 +1,5 @@
1
1
  import type { ComputedPlacement } from '@popperjs/core';
2
- import type { DatePickerProps } from './date-picker';
2
+ import type { DatePickerProps } from './props';
3
3
  export declare type DatePickerPlacementType = ComputedPlacement;
4
4
  export declare type DatePickerTypeType = 'year' | 'month' | 'date' | 'daterange' | 'datetime' | 'datetimerange';
5
5
  export declare type TimePickerTypeType = 'time' | 'timerange';
@@ -0,0 +1,118 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ import { PropType } from 'vue';
3
+ import type { DatePickerShortcutsType, DatePickerValueType, DisableDateType, PickerTypeType } from './interface';
4
+ export declare const datePickerProps: {
5
+ readonly type: {
6
+ readonly type: PropType<PickerTypeType>;
7
+ readonly default: "date";
8
+ readonly validator: (value: any) => boolean;
9
+ };
10
+ readonly extPopoverCls: {
11
+ readonly type: StringConstructor;
12
+ readonly default: "";
13
+ };
14
+ readonly format: StringConstructor;
15
+ readonly readonly: {
16
+ readonly type: BooleanConstructor;
17
+ readonly default: false;
18
+ };
19
+ readonly disabled: {
20
+ readonly type: BooleanConstructor;
21
+ readonly default: false;
22
+ };
23
+ readonly editable: {
24
+ readonly type: BooleanConstructor;
25
+ readonly default: true;
26
+ };
27
+ readonly clearable: {
28
+ readonly type: BooleanConstructor;
29
+ readonly default: true;
30
+ };
31
+ readonly open: {
32
+ readonly type: BooleanConstructor;
33
+ readonly default: any;
34
+ };
35
+ readonly multiple: {
36
+ readonly type: BooleanConstructor;
37
+ readonly default: false;
38
+ };
39
+ readonly timePickerOptions: {
40
+ readonly type: PropType<Record<string, any>>;
41
+ readonly default: () => {};
42
+ };
43
+ readonly splitPanels: {
44
+ readonly type: BooleanConstructor;
45
+ readonly default: true;
46
+ };
47
+ readonly startDate: DateConstructor;
48
+ readonly placeholder: {
49
+ readonly type: StringConstructor;
50
+ readonly default: "";
51
+ };
52
+ readonly placement: {
53
+ readonly type: PropType<import("@popperjs/core").ComputedPlacement>;
54
+ readonly default: "bottom-start";
55
+ readonly validator: (value: any) => boolean;
56
+ };
57
+ readonly transfer: {
58
+ readonly type: BooleanConstructor;
59
+ readonly default: false;
60
+ };
61
+ readonly appendToBody: {
62
+ readonly type: BooleanConstructor;
63
+ readonly default: false;
64
+ };
65
+ readonly shortcuts: {
66
+ readonly type: PropType<DatePickerShortcutsType>;
67
+ readonly default: () => any[];
68
+ };
69
+ readonly shortcutClose: {
70
+ readonly type: BooleanConstructor;
71
+ readonly default: false;
72
+ };
73
+ readonly modelValue: {
74
+ readonly type: PropType<DatePickerValueType>;
75
+ };
76
+ readonly value: {
77
+ readonly type: PropType<DatePickerValueType>;
78
+ };
79
+ readonly options: {
80
+ readonly type: ObjectConstructor;
81
+ readonly default: () => {};
82
+ };
83
+ readonly fontSize: {
84
+ readonly type: PropType<"large" | "normal" | "medium">;
85
+ readonly default: "normal";
86
+ };
87
+ readonly upToNow: {
88
+ readonly type: BooleanConstructor;
89
+ readonly default: false;
90
+ };
91
+ readonly useShortcutText: {
92
+ readonly type: BooleanConstructor;
93
+ readonly default: false;
94
+ };
95
+ readonly shortcutSelectedIndex: {
96
+ readonly type: NumberConstructor;
97
+ readonly default: -1;
98
+ };
99
+ readonly headerSlotCls: {
100
+ readonly type: StringConstructor;
101
+ readonly default: "";
102
+ };
103
+ readonly footerSlotCls: {
104
+ readonly type: StringConstructor;
105
+ readonly default: "";
106
+ };
107
+ readonly allowCrossDay: {
108
+ readonly type: BooleanConstructor;
109
+ readonly default: false;
110
+ };
111
+ readonly behavior: {
112
+ readonly type: PropType<"normal" | "simplicity">;
113
+ readonly default: "normal";
114
+ readonly validator: (v: any) => boolean;
115
+ };
116
+ readonly disableDate: PropType<DisableDateType>;
117
+ };
118
+ export declare type DatePickerProps = Readonly<ExtractPropTypes<typeof datePickerProps>>;
@@ -1,5 +1,5 @@
1
1
  import type { InjectionKey } from 'vue';
2
- import type { PickerTypeType, IDatePickerCtx } from './interface';
2
+ import type { IDatePickerCtx, PickerTypeType } from './interface';
3
3
  export declare const RANGE_SEPARATOR = " - ";
4
4
  export declare const typeValueResolver: {
5
5
  default: {
@@ -1,3 +1,38 @@
1
+ .bk-modal-wrapper {
2
+ position: absolute;
3
+ top: 50%;
4
+ left: 50%;
5
+ transform: translate(-50%, -50%);
6
+ width: 480px;
7
+ }
8
+ .bk-modal-wrapper .bk-modal-outside {
9
+ position: fixed;
10
+ top: 0;
11
+ right: 0;
12
+ bottom: 0;
13
+ left: 0;
14
+ }
15
+ .bk-modal-wrapper.normal {
16
+ width: 480px;
17
+ height: 240px;
18
+ }
19
+ .bk-modal-wrapper.small {
20
+ width: 400px;
21
+ height: 200px;
22
+ }
23
+ .bk-modal-wrapper.medium {
24
+ width: 640px;
25
+ height: 400px;
26
+ }
27
+ .bk-modal-wrapper.large {
28
+ width: 960px;
29
+ height: 720px;
30
+ }
31
+ .bk-modal-wrapper .bk-modal-body {
32
+ height: 100%;
33
+ background: #fff;
34
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
35
+ }
1
36
  .bk-modal-wrapper.bk-dialog-wrapper {
2
37
  position: relative;
3
38
  }
@@ -8,6 +43,9 @@
8
43
  .bk-modal-wrapper.bk-dialog-wrapper.scroll-able .bk-modal-content {
9
44
  overflow: auto;
10
45
  }
46
+ .bk-modal-wrapper.bk-dialog-wrapper.multi-instance {
47
+ position: absolute;
48
+ }
11
49
  .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-tool {
12
50
  position: absolute;
13
51
  top: 0;
@@ -15,7 +53,27 @@
15
53
  left: 0;
16
54
  height: 30px;
17
55
  }
18
- .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-tool .bk-dialog-close {
56
+ .bk-modal-wrapper.bk-dialog-wrapper .move {
57
+ cursor: move;
58
+ }
59
+ .bk-modal-wrapper.bk-dialog-wrapper .content-dragging {
60
+ user-select: none;
61
+ }
62
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-header {
63
+ padding: 24px;
64
+ font-size: 20px;
65
+ line-height: 1;
66
+ }
67
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-header .bk-dialog-title {
68
+ display: inline-block;
69
+ width: 100%;
70
+ overflow: hidden;
71
+ font-size: 24px;
72
+ color: #313238;
73
+ text-overflow: ellipsis;
74
+ white-space: nowrap;
75
+ }
76
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-header .bk-dialog-close {
19
77
  position: absolute;
20
78
  top: 5px;
21
79
  right: 5px;
@@ -33,24 +91,18 @@
33
91
  justify-content: center;
34
92
  align-items: center;
35
93
  }
36
- .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-header {
37
- padding: 24px;
38
- font-size: 20px;
39
- line-height: 1;
94
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-header .bk-dialog-close:hover {
95
+ background-color: #f0f1f5;
96
+ border-radius: 50%;
40
97
  }
41
- .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-header .bk-dialog-title {
42
- display: inline-block;
43
- width: 100%;
44
- overflow: hidden;
45
- font-size: 24px;
46
- color: #313238;
47
- text-overflow: ellipsis;
48
- white-space: nowrap;
98
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-header .close-icon {
99
+ display: none;
49
100
  }
50
101
  .bk-modal-wrapper.bk-dialog-wrapper .bk-modal-content {
51
- height: calc(100% - 132px);
52
- padding: 3px 24px 26px;
53
- margin-bottom: 58px;
102
+ height: calc(100% - 74px);
103
+ max-height: calc(100vh - 74px);
104
+ min-height: calc(258px - 132px);
105
+ padding: 3px 24px 58px;
54
106
  font-size: 14px;
55
107
  line-height: 1.5;
56
108
  color: #63656e;