bkui-vue 0.0.1-beta.23 → 0.0.1-beta.230

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 (608) hide show
  1. package/dist/index.cjs.js +173 -0
  2. package/dist/index.esm.js +38108 -0
  3. package/dist/index.umd.js +173 -0
  4. package/dist/style.css +1 -5099
  5. package/dist/style.variable.css +1 -0
  6. package/lib/affix/affix.css +3 -0
  7. package/lib/affix/affix.d.ts +47 -0
  8. package/lib/affix/affix.less +5 -0
  9. package/lib/affix/affix.variable.css +122 -0
  10. package/lib/affix/index.d.ts +143 -0
  11. package/lib/affix/index.js +1 -0
  12. package/lib/alert/alert.css +5 -3
  13. package/lib/alert/alert.less +7 -3
  14. package/lib/alert/alert.variable.css +34 -6
  15. package/lib/alert/index.js +1 -1
  16. package/lib/animate-number/index.js +1 -1
  17. package/lib/backtop/backtop.css +8 -0
  18. package/lib/backtop/backtop.d.ts +2 -2
  19. package/lib/backtop/backtop.less +8 -0
  20. package/lib/backtop/backtop.variable.css +37 -3
  21. package/lib/backtop/index.d.ts +7 -7
  22. package/lib/backtop/index.js +1 -10
  23. package/lib/badge/badge.css +5 -5
  24. package/lib/badge/badge.d.ts +28 -7
  25. package/lib/badge/badge.less +5 -6
  26. package/lib/badge/badge.variable.css +34 -8
  27. package/lib/badge/index.d.ts +68 -18
  28. package/lib/badge/index.js +1 -1
  29. package/lib/breadcrumb/breadcrumb.css +51 -0
  30. package/lib/breadcrumb/breadcrumb.variable.css +80 -3
  31. package/lib/breadcrumb/index.js +1 -1
  32. package/lib/button/button.css +87 -49
  33. package/lib/button/button.d.ts +28 -7
  34. package/lib/button/button.less +74 -41
  35. package/lib/button/button.variable.css +116 -52
  36. package/lib/button/index.d.ts +45 -12
  37. package/lib/button/index.js +1 -1
  38. package/lib/card/card.css +96 -1
  39. package/lib/card/card.d.ts +47 -6
  40. package/lib/card/card.less +50 -2
  41. package/lib/card/card.variable.css +125 -4
  42. package/lib/card/index.d.ts +113 -17
  43. package/lib/card/index.js +1 -1
  44. package/lib/cascader/cascader-panel.d.ts +100 -0
  45. package/lib/cascader/cascader.css +173 -0
  46. package/lib/cascader/cascader.d.ts +303 -0
  47. package/lib/cascader/cascader.less +196 -0
  48. package/lib/cascader/cascader.variable.css +292 -0
  49. package/lib/cascader/index.d.ts +868 -0
  50. package/lib/cascader/index.js +1 -0
  51. package/lib/cascader/interface.d.ts +51 -0
  52. package/lib/cascader/node.d.ts +31 -0
  53. package/lib/cascader/store.d.ts +23 -0
  54. package/lib/checkbox/checkbox-group.d.ts +16 -0
  55. package/lib/checkbox/checkbox.css +38 -6
  56. package/lib/checkbox/checkbox.d.ts +16 -14
  57. package/lib/checkbox/checkbox.less +48 -6
  58. package/lib/checkbox/checkbox.variable.css +67 -9
  59. package/lib/checkbox/common.d.ts +3 -3
  60. package/lib/checkbox/index.d.ts +40 -23
  61. package/lib/checkbox/index.js +1 -1
  62. package/lib/checkbox/type.d.ts +2 -6
  63. package/lib/code-diff/code-diff.css +72 -1
  64. package/lib/code-diff/code-diff.d.ts +10 -1
  65. package/lib/code-diff/code-diff.less +94 -1
  66. package/lib/code-diff/code-diff.variable.css +101 -4
  67. package/lib/code-diff/index.d.ts +151 -3
  68. package/lib/code-diff/index.js +1 -0
  69. package/lib/collapse/collapse-panel.d.ts +72 -0
  70. package/lib/collapse/collapse.css +28 -12
  71. package/lib/collapse/collapse.d.ts +11 -52
  72. package/lib/collapse/collapse.less +54 -29
  73. package/lib/collapse/collapse.variable.css +147 -12
  74. package/lib/collapse/index.d.ts +113 -16
  75. package/lib/collapse/index.js +1 -1
  76. package/lib/collapse/props.d.ts +121 -0
  77. package/lib/collapse/utils.d.ts +11 -0
  78. package/lib/color-picker/color-picker.css +275 -0
  79. package/lib/color-picker/color-picker.d.ts +144 -0
  80. package/lib/color-picker/color-picker.less +325 -0
  81. package/lib/color-picker/color-picker.variable.css +394 -0
  82. package/lib/color-picker/components/color-input.d.ts +42 -0
  83. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  84. package/lib/color-picker/components/input-container.d.ts +42 -0
  85. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  86. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  87. package/lib/color-picker/index.d.ts +254 -0
  88. package/lib/color-picker/index.js +1 -0
  89. package/lib/color-picker/utils.d.ts +37 -0
  90. package/lib/components.d.ts +28 -7
  91. package/lib/components.js +1 -0
  92. package/lib/container/col.d.ts +51 -0
  93. package/lib/container/container.css +91 -0
  94. package/lib/container/container.d.ts +83 -0
  95. package/lib/container/container.less +20 -0
  96. package/lib/container/container.variable.css +210 -0
  97. package/lib/container/index.d.ts +223 -0
  98. package/lib/container/index.js +1 -0
  99. package/lib/container/row.d.ts +4 -0
  100. package/lib/date-picker/base/confirm.d.ts +74 -0
  101. package/lib/date-picker/base/date-table.d.ts +102 -0
  102. package/lib/date-picker/base/picker-dropdown.d.ts +73 -0
  103. package/lib/date-picker/base/time-spinner.d.ts +153 -0
  104. package/lib/date-picker/date-picker.css +18 -2
  105. package/lib/date-picker/date-picker.d.ts +40 -13
  106. package/lib/date-picker/date-picker.less +23 -2
  107. package/lib/date-picker/date-picker.variable.css +47 -5
  108. package/lib/date-picker/index.d.ts +100 -39
  109. package/lib/date-picker/index.js +1 -1
  110. package/lib/date-picker/interface.d.ts +9 -0
  111. package/lib/date-picker/panel/date-range.d.ts +452 -0
  112. package/lib/date-picker/panel/date.d.ts +550 -0
  113. package/lib/date-picker/panel/time.d.ts +450 -0
  114. package/lib/date-picker/props.d.ts +51 -1
  115. package/lib/date-picker/time-picker.d.ts +381 -0
  116. package/lib/date-picker/utils.d.ts +22 -1
  117. package/lib/dialog/dialog.css +144 -22
  118. package/lib/dialog/dialog.d.ts +275 -58
  119. package/lib/dialog/dialog.less +97 -23
  120. package/lib/dialog/dialog.variable.css +144 -22
  121. package/lib/dialog/index.d.ts +607 -130
  122. package/lib/dialog/index.js +1 -1
  123. package/lib/dialog/props.d.ts +138 -0
  124. package/lib/directives/ellipsis.d.ts +7 -0
  125. package/lib/directives/index.d.ts +1 -0
  126. package/lib/directives/index.js +2 -15
  127. package/lib/directives/index.js.LICENSE.txt +14 -0
  128. package/lib/directives/tooltips.d.ts +1 -1
  129. package/lib/dist.index.js +1 -0
  130. package/lib/divider/divider.d.ts +1 -1
  131. package/lib/divider/divider.variable.css +29 -3
  132. package/lib/divider/index.d.ts +4 -4
  133. package/lib/divider/index.js +1 -1
  134. package/lib/divider/props.d.ts +21 -0
  135. package/lib/dropdown/const.d.ts +4 -0
  136. package/lib/dropdown/dropdown.css +13 -7
  137. package/lib/dropdown/dropdown.d.ts +34 -3
  138. package/lib/dropdown/dropdown.less +47 -34
  139. package/lib/dropdown/dropdown.variable.css +42 -10
  140. package/lib/dropdown/index.d.ts +71 -10
  141. package/lib/dropdown/index.js +1 -1
  142. package/lib/exception/exception.css +40 -14
  143. package/lib/exception/exception.d.ts +10 -3
  144. package/lib/exception/exception.less +59 -22
  145. package/lib/exception/exception.variable.css +69 -17
  146. package/lib/exception/index.d.ts +23 -8
  147. package/lib/exception/index.js +1 -1
  148. package/lib/exception/typings/index.d.ts +4 -0
  149. package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
  150. package/lib/fixed-navbar/fixed-navbar.variable.css +29 -3
  151. package/lib/fixed-navbar/index.d.ts +40 -5
  152. package/lib/fixed-navbar/index.js +1 -1
  153. package/lib/form/compose-form-item.d.ts +16 -0
  154. package/lib/form/form-item.d.ts +16 -5
  155. package/lib/form/form.css +96 -12
  156. package/lib/form/form.d.ts +28 -11
  157. package/lib/form/form.less +144 -45
  158. package/lib/form/form.variable.css +215 -12
  159. package/lib/form/index.d.ts +88 -30
  160. package/lib/form/index.js +1 -1
  161. package/lib/form/type.d.ts +8 -6
  162. package/lib/form/validator.d.ts +1 -0
  163. package/lib/icon/angle-double-down-line.js +1 -15
  164. package/lib/icon/angle-double-left-line.js +1 -15
  165. package/lib/icon/angle-double-left.js +1 -15
  166. package/lib/icon/angle-double-right-line.js +1 -15
  167. package/lib/icon/angle-double-right.js +1 -15
  168. package/lib/icon/angle-double-up-line.js +1 -15
  169. package/lib/icon/angle-down-fill.js +1 -15
  170. package/lib/icon/angle-down-line.js +1 -15
  171. package/lib/icon/angle-down.js +1 -15
  172. package/lib/icon/angle-left.js +1 -15
  173. package/lib/icon/angle-right.js +1 -15
  174. package/lib/icon/angle-up-fill.js +1 -15
  175. package/lib/icon/angle-up.js +1 -15
  176. package/lib/icon/archive-fill.d.ts +4 -0
  177. package/lib/icon/archive-fill.js +1 -0
  178. package/lib/icon/arrows-left.js +1 -15
  179. package/lib/icon/arrows-right.js +1 -15
  180. package/lib/icon/audio-fill.d.ts +4 -0
  181. package/lib/icon/audio-fill.js +1 -0
  182. package/lib/icon/bk.js +1 -15
  183. package/lib/icon/circle.js +1 -15
  184. package/lib/icon/close-line.d.ts +4 -0
  185. package/lib/icon/close-line.js +1 -0
  186. package/lib/icon/close.js +1 -15
  187. package/lib/icon/code.js +1 -15
  188. package/lib/icon/cog-shape.js +1 -15
  189. package/lib/icon/collapse-left.js +1 -15
  190. package/lib/icon/copy.js +1 -15
  191. package/lib/icon/data-shape.d.ts +4 -0
  192. package/lib/icon/data-shape.js +1 -0
  193. package/lib/icon/del.d.ts +4 -0
  194. package/lib/icon/del.js +1 -0
  195. package/lib/icon/doc-fill.d.ts +4 -0
  196. package/lib/icon/doc-fill.js +1 -0
  197. package/lib/icon/done.js +1 -15
  198. package/lib/icon/down-shape.js +1 -15
  199. package/lib/icon/down-small.js +1 -15
  200. package/lib/icon/edit-line.d.ts +4 -0
  201. package/lib/icon/edit-line.js +1 -0
  202. package/lib/icon/ellipsis.js +1 -15
  203. package/lib/icon/enlarge-line.d.ts +4 -0
  204. package/lib/icon/enlarge-line.js +1 -0
  205. package/lib/icon/error.js +1 -15
  206. package/lib/icon/excel-fill.d.ts +4 -0
  207. package/lib/icon/excel-fill.js +1 -0
  208. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  209. package/lib/icon/exclamation-circle-shape.js +1 -0
  210. package/lib/icon/eye.js +1 -15
  211. package/lib/icon/filliscreen-line.d.ts +4 -0
  212. package/lib/icon/filliscreen-line.js +1 -0
  213. package/lib/icon/folder-open.js +1 -15
  214. package/lib/icon/folder-shape-open.js +1 -15
  215. package/lib/icon/folder-shape.js +1 -15
  216. package/lib/icon/folder.js +1 -15
  217. package/lib/icon/funnel.d.ts +4 -0
  218. package/lib/icon/funnel.js +1 -0
  219. package/lib/icon/help-document-fill.js +1 -15
  220. package/lib/icon/help-fill.js +1 -15
  221. package/lib/icon/help.js +1 -15
  222. package/lib/icon/image-fill.d.ts +4 -0
  223. package/lib/icon/img-error.d.ts +4 -0
  224. package/lib/icon/img-error.js +1 -0
  225. package/lib/icon/img-placehoulder.d.ts +4 -0
  226. package/lib/icon/img-placehoulder.js +1 -0
  227. package/lib/icon/index.d.ts +27 -1
  228. package/lib/icon/index.js +1 -15
  229. package/lib/icon/info-line.js +1 -15
  230. package/lib/icon/info.js +1 -15
  231. package/lib/icon/left-shape.js +1 -15
  232. package/lib/icon/left-turn-line.d.ts +4 -0
  233. package/lib/icon/left-turn-line.js +1 -0
  234. package/lib/icon/narrow-line.d.ts +4 -0
  235. package/lib/icon/narrow-line.js +1 -0
  236. package/lib/icon/original .d.ts +4 -0
  237. package/lib/icon/original .js +1 -0
  238. package/lib/icon/pdf-fill.d.ts +4 -0
  239. package/lib/icon/pdf-fill.js +1 -0
  240. package/lib/icon/play-shape.js +1 -15
  241. package/lib/icon/plus.js +1 -15
  242. package/lib/icon/ppt-fill.d.ts +4 -0
  243. package/lib/icon/ppt-fill.js +1 -0
  244. package/lib/icon/qq.js +1 -15
  245. package/lib/icon/right-shape.js +1 -15
  246. package/lib/icon/right-turn-line.d.ts +4 -0
  247. package/lib/icon/right-turn-line.js +1 -0
  248. package/lib/icon/search.js +1 -15
  249. package/lib/icon/share.js +1 -15
  250. package/lib/icon/spinner.js +1 -15
  251. package/lib/icon/success.js +1 -15
  252. package/lib/icon/switcher-loading.js +1 -15
  253. package/lib/icon/text-file.js +1 -15
  254. package/lib/icon/text-fill.d.ts +4 -0
  255. package/lib/icon/text-fill.js +1 -0
  256. package/lib/icon/transfer.d.ts +4 -0
  257. package/lib/icon/transfer.js +1 -0
  258. package/lib/icon/tree-application-shape.js +1 -15
  259. package/lib/icon/unfull-screen.d.ts +4 -0
  260. package/lib/icon/unfull-screen.js +1 -0
  261. package/lib/icon/unvisible.js +1 -15
  262. package/lib/icon/up-shape.js +1 -15
  263. package/lib/icon/upload.d.ts +4 -0
  264. package/lib/icon/upload.js +1 -0
  265. package/lib/icon/video-fill.d.ts +4 -0
  266. package/lib/icon/video-fill.js +1 -0
  267. package/lib/icon/warn.js +1 -15
  268. package/lib/icon/weixin.js +1 -15
  269. package/lib/image/image-viewer.css +142 -0
  270. package/lib/image/image-viewer.d.ts +73 -0
  271. package/lib/image/image-viewer.less +168 -0
  272. package/lib/image/image-viewer.variable.css +142 -0
  273. package/lib/image/image.css +37 -0
  274. package/lib/image/image.d.ts +93 -0
  275. package/lib/image/image.less +44 -0
  276. package/lib/image/image.variable.css +37 -0
  277. package/lib/image/index.d.ts +246 -0
  278. package/lib/image/index.js +1 -0
  279. package/lib/image/props.d.ts +71 -0
  280. package/lib/index.d.ts +1 -1
  281. package/lib/index.js +1 -0
  282. package/lib/info-box/index.d.ts +6 -0
  283. package/lib/info-box/index.js +1 -0
  284. package/lib/info-box/info-box.css +37 -0
  285. package/lib/info-box/info-box.d.ts +26 -0
  286. package/lib/info-box/info-box.less +50 -0
  287. package/lib/info-box/info-box.variable.css +37 -0
  288. package/lib/input/index.d.ts +171 -60
  289. package/lib/input/index.js +1 -15
  290. package/lib/input/input.css +216 -18
  291. package/lib/input/input.d.ts +116 -16
  292. package/lib/input/input.less +157 -17
  293. package/lib/input/input.variable.css +242 -17
  294. package/lib/link/index.d.ts +4 -4
  295. package/lib/link/index.js +1 -1
  296. package/lib/link/link.css +12 -12
  297. package/lib/link/link.d.ts +1 -1
  298. package/lib/link/link.less +16 -14
  299. package/lib/link/link.variable.css +41 -15
  300. package/lib/loading/index.d.ts +107 -13
  301. package/lib/loading/index.js +1 -1
  302. package/lib/loading/loading.css +83 -31
  303. package/lib/loading/loading.d.ts +74 -5
  304. package/lib/loading/loading.less +28 -30
  305. package/lib/loading/loading.variable.css +112 -34
  306. package/lib/menu/index.d.ts +16 -24
  307. package/lib/menu/index.js +1 -1
  308. package/lib/menu/menu.css +51 -0
  309. package/lib/menu/menu.d.ts +7 -16
  310. package/lib/menu/menu.variable.css +80 -3
  311. package/lib/menu/submenu.variable.css +29 -3
  312. package/lib/message/index.js +1 -1
  313. package/lib/message/message.css +24 -3
  314. package/lib/message/message.less +27 -2
  315. package/lib/message/message.variable.css +53 -6
  316. package/lib/message/messageConstructor.d.ts +43 -7
  317. package/lib/modal/index.d.ts +508 -78
  318. package/lib/modal/index.js +1 -1
  319. package/lib/modal/modal.css +63 -1
  320. package/lib/modal/modal.d.ts +194 -30
  321. package/lib/modal/modal.less +36 -1
  322. package/lib/modal/modal.variable.css +63 -1
  323. package/lib/modal/props.mixin.d.ts +82 -13
  324. package/lib/navigation/index.d.ts +310 -1
  325. package/lib/navigation/index.js +1 -1
  326. package/lib/navigation/navigation.css +1 -1
  327. package/lib/navigation/navigation.d.ts +10 -1
  328. package/lib/navigation/navigation.less +1 -1
  329. package/lib/navigation/navigation.variable.css +30 -4
  330. package/lib/notify/index.js +1 -1
  331. package/lib/notify/notify.css +24 -4
  332. package/lib/notify/notify.less +27 -4
  333. package/lib/notify/notify.variable.css +53 -7
  334. package/lib/notify/notifyConstructor.d.ts +51 -7
  335. package/lib/pagination/index.d.ts +38 -23
  336. package/lib/pagination/index.js +1 -1
  337. package/lib/pagination/pagination.css +54 -28
  338. package/lib/pagination/pagination.d.ts +17 -7
  339. package/lib/pagination/pagination.less +58 -31
  340. package/lib/pagination/pagination.variable.css +83 -31
  341. package/lib/pagination/type.d.ts +1 -1
  342. package/lib/plugin-popover/index.d.ts +27 -0
  343. package/lib/plugin-popover/index.js +1 -0
  344. package/lib/plugins/index.d.ts +1 -0
  345. package/lib/plugins/index.js +1 -0
  346. package/lib/popover/index.d.ts +146 -21
  347. package/lib/popover/index.js +1 -1
  348. package/lib/popover/popover.css +3 -0
  349. package/lib/popover/popover.d.ts +67 -8
  350. package/lib/popover/popover.less +2 -0
  351. package/lib/popover/popover.variable.css +32 -3
  352. package/lib/popover/props.d.ts +34 -2
  353. package/lib/popover2/arrow.d.ts +2 -0
  354. package/lib/popover2/const.d.ts +16 -0
  355. package/lib/popover2/content.d.ts +24 -0
  356. package/lib/popover2/index.d.ts +545 -0
  357. package/lib/popover2/index.js +1 -0
  358. package/lib/popover2/plugin-popover.d.ts +12 -0
  359. package/lib/popover2/popover2.css +25 -0
  360. package/lib/popover2/popover2.d.ts +228 -0
  361. package/lib/popover2/popover2.less +35 -0
  362. package/lib/popover2/popover2.variable.css +144 -0
  363. package/lib/popover2/props.d.ts +118 -0
  364. package/lib/popover2/reference.d.ts +2 -0
  365. package/lib/popover2/root.d.ts +16 -0
  366. package/lib/popover2/use-floating.d.ts +31 -0
  367. package/lib/popover2/use-platform.d.ts +30 -0
  368. package/lib/popover2/use-popover-init.d.ts +22 -0
  369. package/lib/popover2/use-popper-id.d.ts +6 -0
  370. package/lib/popover2/utils.d.ts +2 -0
  371. package/lib/preset.js +1 -0
  372. package/lib/process/index.d.ts +9 -9
  373. package/lib/process/index.js +1 -15
  374. package/lib/process/process.css +13 -0
  375. package/lib/process/process.d.ts +2 -2
  376. package/lib/process/process.less +17 -0
  377. package/lib/process/process.variable.css +42 -3
  378. package/lib/progress/index.d.ts +10 -10
  379. package/lib/progress/index.js +1 -1
  380. package/lib/progress/progress.css +51 -0
  381. package/lib/progress/progress.d.ts +3 -3
  382. package/lib/progress/progress.variable.css +80 -3
  383. package/lib/radio/common.d.ts +5 -5
  384. package/lib/radio/index.d.ts +29 -18
  385. package/lib/radio/index.js +1 -1
  386. package/lib/radio/radio-button.d.ts +7 -8
  387. package/lib/radio/radio-group.d.ts +16 -0
  388. package/lib/radio/radio.css +61 -56
  389. package/lib/radio/radio.d.ts +4 -4
  390. package/lib/radio/radio.less +181 -172
  391. package/lib/radio/radio.variable.css +93 -62
  392. package/lib/radio/type.d.ts +9 -4
  393. package/lib/rate/index.d.ts +24 -1
  394. package/lib/rate/index.js +1 -1
  395. package/lib/rate/rate.d.ts +11 -0
  396. package/lib/rate/star.d.ts +1 -1
  397. package/lib/resize-layout/index.d.ts +336 -0
  398. package/lib/resize-layout/index.js +1 -0
  399. package/lib/resize-layout/resize-layout.css +177 -0
  400. package/lib/resize-layout/resize-layout.d.ts +127 -0
  401. package/lib/resize-layout/resize-layout.less +217 -0
  402. package/lib/resize-layout/resize-layout.variable.css +296 -0
  403. package/lib/search-select/index.d.ts +681 -0
  404. package/lib/search-select/index.js +1 -0
  405. package/lib/search-select/input.d.ts +85 -0
  406. package/lib/search-select/menu.d.ts +83 -0
  407. package/lib/search-select/search-select.css +423 -0
  408. package/lib/search-select/search-select.d.ts +273 -0
  409. package/lib/search-select/search-select.less +375 -0
  410. package/lib/search-select/search-select.variable.css +542 -0
  411. package/lib/search-select/selected.d.ts +137 -0
  412. package/lib/search-select/utils.d.ts +79 -0
  413. package/lib/select/common.d.ts +20 -31
  414. package/lib/select/index.d.ts +1422 -451
  415. package/lib/select/index.js +1 -15
  416. package/lib/select/option.d.ts +16 -4
  417. package/lib/select/optionGroup.d.ts +1 -77
  418. package/lib/select/select.css +265 -80
  419. package/lib/select/select.d.ts +553 -126
  420. package/lib/select/select.less +366 -185
  421. package/lib/select/select.variable.css +295 -84
  422. package/lib/select/selectTagInput.d.ts +93 -0
  423. package/lib/select/type.d.ts +39 -0
  424. package/lib/shared/dom.d.ts +3 -0
  425. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +0 -0
  426. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  427. package/lib/shared/hooks/use-form.d.ts +2 -0
  428. package/lib/shared/index.d.ts +27 -4
  429. package/lib/shared/index.js +1 -1
  430. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +6 -2
  431. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +8 -4
  432. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +6 -2
  433. package/lib/shared/token.d.ts +4 -0
  434. package/lib/shared/utils.d.ts +13 -0
  435. package/lib/shared/vue-types.d.ts +4 -0
  436. package/lib/sideslider/index.d.ts +391 -76
  437. package/lib/sideslider/index.js +1 -1
  438. package/lib/sideslider/sideslider.css +55 -10
  439. package/lib/sideslider/sideslider.d.ts +181 -33
  440. package/lib/sideslider/sideslider.less +72 -13
  441. package/lib/sideslider/sideslider.variable.css +84 -13
  442. package/lib/slider/index.d.ts +414 -1
  443. package/lib/slider/index.js +1 -15
  444. package/lib/slider/slider-button.d.ts +5 -0
  445. package/lib/slider/slider.d.ts +14 -2
  446. package/lib/slider/slider.variable.css +29 -3
  447. package/lib/steps/index.d.ts +4 -4
  448. package/lib/steps/index.js +1 -15
  449. package/lib/steps/steps.css +14 -3
  450. package/lib/steps/steps.d.ts +1 -1
  451. package/lib/steps/steps.less +23 -3
  452. package/lib/steps/steps.variable.css +43 -6
  453. package/lib/styles/index.d.ts +12 -0
  454. package/lib/styles/mixins/clearfix.css +8 -0
  455. package/lib/styles/mixins/clearfix.less +10 -0
  456. package/lib/styles/mixins/clearfix.variable.css +8 -0
  457. package/lib/styles/mixins/mixins.css +51 -0
  458. package/lib/styles/mixins/mixins.less +2 -0
  459. package/lib/styles/mixins/mixins.variable.css +51 -0
  460. package/lib/styles/mixins/scroll.css +17 -0
  461. package/lib/styles/mixins/scroll.less +22 -0
  462. package/lib/styles/mixins/scroll.variable.css +136 -0
  463. package/lib/styles/reset.css +36 -0
  464. package/lib/styles/reset.less +26 -0
  465. package/lib/styles/reset.variable.css +36 -0
  466. package/lib/styles/themes/themes.less +38 -3
  467. package/lib/swiper/index.d.ts +181 -0
  468. package/lib/swiper/index.js +1 -0
  469. package/lib/swiper/swiper.css +91 -0
  470. package/lib/swiper/swiper.d.ts +65 -0
  471. package/lib/swiper/swiper.less +107 -0
  472. package/lib/swiper/swiper.variable.css +91 -0
  473. package/lib/switcher/index.d.ts +34 -11
  474. package/lib/switcher/index.js +1 -1
  475. package/lib/switcher/switcher.css +57 -6
  476. package/lib/switcher/switcher.d.ts +15 -4
  477. package/lib/switcher/switcher.less +5 -26
  478. package/lib/switcher/switcher.variable.css +86 -9
  479. package/lib/tab/index.d.ts +107 -219
  480. package/lib/tab/index.js +1 -1
  481. package/lib/tab/props.d.ts +194 -0
  482. package/lib/tab/tab-nav.d.ts +66 -87
  483. package/lib/tab/tab-panel.d.ts +40 -15
  484. package/lib/tab/tab.css +25 -1
  485. package/lib/tab/tab.d.ts +17 -41
  486. package/lib/tab/tab.less +31 -19
  487. package/lib/tab/tab.variable.css +54 -4
  488. package/lib/table/components/index.d.ts +3 -0
  489. package/lib/table/components/table-cell.d.ts +38 -0
  490. package/lib/table/components/table-column.d.ts +142 -0
  491. package/lib/table/components/table-row.d.ts +2 -0
  492. package/lib/table/const.d.ts +108 -1
  493. package/lib/table/index.d.ts +781 -27
  494. package/lib/table/index.js +1 -10
  495. package/lib/table/plugins/body-empty.d.ts +40 -0
  496. package/lib/table/plugins/col-group.d.ts +38 -0
  497. package/lib/table/plugins/common.d.ts +6 -0
  498. package/lib/table/plugins/head-filter.css +71 -0
  499. package/lib/table/plugins/head-filter.d.ts +26 -0
  500. package/lib/table/plugins/head-filter.less +92 -0
  501. package/lib/table/plugins/head-filter.variable.css +190 -0
  502. package/lib/table/plugins/head-sort.css +25 -0
  503. package/lib/table/plugins/head-sort.d.ts +22 -0
  504. package/lib/table/plugins/head-sort.less +31 -0
  505. package/lib/table/plugins/head-sort.variable.css +144 -0
  506. package/lib/table/plugins/index.d.ts +5 -0
  507. package/lib/table/plugins/settings.css +129 -0
  508. package/lib/table/plugins/settings.d.ts +37 -0
  509. package/lib/table/plugins/settings.less +157 -0
  510. package/lib/table/plugins/settings.variable.css +248 -0
  511. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  512. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  513. package/lib/table/plugins/use-fixed-column.d.ts +12 -0
  514. package/lib/table/plugins/use-pagination.d.ts +16 -0
  515. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  516. package/lib/table/props.d.ts +282 -7
  517. package/lib/table/render.d.ts +53 -6
  518. package/lib/table/table.css +1143 -17
  519. package/lib/table/table.d.ts +196 -13
  520. package/lib/table/table.less +237 -25
  521. package/lib/table/table.variable.css +1182 -30
  522. package/lib/table/use-column.d.ts +11 -0
  523. package/lib/table/use-common.d.ts +97 -0
  524. package/lib/table/utils.d.ts +65 -9
  525. package/lib/table-column/index.d.ts +336 -0
  526. package/lib/table-column/index.js +1 -0
  527. package/lib/tag/index.d.ts +7 -7
  528. package/lib/tag/index.js +1 -1
  529. package/lib/tag/tag.css +57 -18
  530. package/lib/tag/tag.d.ts +2 -2
  531. package/lib/tag/tag.less +58 -15
  532. package/lib/tag/tag.variable.css +86 -21
  533. package/lib/tag-input/common.d.ts +36 -0
  534. package/lib/tag-input/index.d.ts +1211 -0
  535. package/lib/tag-input/index.js +1 -0
  536. package/lib/tag-input/list-tag-render.d.ts +44 -0
  537. package/lib/tag-input/tag-input.css +209 -0
  538. package/lib/tag-input/tag-input.d.ts +536 -0
  539. package/lib/tag-input/tag-input.less +251 -0
  540. package/lib/tag-input/tag-input.variable.css +328 -0
  541. package/lib/tag-input/tag-props.d.ts +216 -0
  542. package/lib/tag-input/tag-render.d.ts +35 -0
  543. package/lib/time-picker/index.d.ts +904 -0
  544. package/lib/time-picker/index.js +1 -0
  545. package/lib/time-picker/time-picker.css +215 -0
  546. package/lib/time-picker/time-picker.less +260 -0
  547. package/lib/time-picker/time-picker.variable.css +334 -0
  548. package/lib/timeline/index.d.ts +6 -6
  549. package/lib/timeline/index.js +1 -1
  550. package/lib/timeline/timeline.css +5 -5
  551. package/lib/timeline/timeline.d.ts +1 -1
  552. package/lib/timeline/timeline.less +6 -5
  553. package/lib/timeline/timeline.variable.css +34 -8
  554. package/lib/transfer/const.d.ts +5 -0
  555. package/lib/transfer/index.d.ts +339 -1
  556. package/lib/transfer/index.js +1 -1
  557. package/lib/transfer/props.d.ts +54 -0
  558. package/lib/transfer/transfer.css +89 -86
  559. package/lib/transfer/transfer.d.ts +70 -95
  560. package/lib/transfer/transfer.less +93 -113
  561. package/lib/transfer/transfer.variable.css +123 -94
  562. package/lib/tree/constant.d.ts +57 -0
  563. package/lib/tree/index.d.ts +419 -48
  564. package/lib/tree/index.js +1 -1
  565. package/lib/tree/props.d.ts +124 -0
  566. package/lib/tree/tree.css +183 -11
  567. package/lib/tree/tree.d.ts +194 -23
  568. package/lib/tree/tree.less +72 -10
  569. package/lib/tree/tree.variable.css +302 -11
  570. package/lib/tree/use-empty.d.ts +6 -0
  571. package/lib/tree/use-node-action.d.ts +12 -0
  572. package/lib/tree/use-node-async.d.ts +5 -0
  573. package/lib/tree/use-node-attribute.d.ts +33 -0
  574. package/lib/tree/use-node-drag.d.ts +3 -0
  575. package/lib/tree/use-search.d.ts +11 -0
  576. package/lib/tree/use-tree-init.d.ts +15 -0
  577. package/lib/tree/util.d.ts +5 -7
  578. package/lib/upload/index.d.ts +566 -0
  579. package/lib/upload/index.js +1 -0
  580. package/lib/upload/props.d.ts +111 -0
  581. package/lib/upload/upload-list.d.ts +47 -0
  582. package/lib/upload/upload-trigger.d.ts +51 -0
  583. package/lib/upload/upload.css +425 -0
  584. package/lib/upload/upload.d.ts +246 -0
  585. package/lib/upload/upload.less +464 -0
  586. package/lib/upload/upload.type.d.ts +78 -0
  587. package/lib/upload/upload.variable.css +544 -0
  588. package/lib/upload/use-ajax-upload.d.ts +3 -0
  589. package/lib/upload/use-file-handler.d.ts +44 -0
  590. package/lib/virtual-render/index.d.ts +27 -4
  591. package/lib/virtual-render/index.js +1 -10
  592. package/lib/virtual-render/props.d.ts +10 -0
  593. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  594. package/lib/virtual-render/v-virtual-render.d.ts +0 -1
  595. package/lib/virtual-render/virtual-render.css +17 -24
  596. package/lib/virtual-render/virtual-render.d.ts +14 -3
  597. package/lib/virtual-render/virtual-render.less +2 -31
  598. package/lib/virtual-render/virtual-render.variable.css +136 -24
  599. package/lib/volar.components.d.ts +101 -0
  600. package/package.json +59 -46
  601. package/README_EN.md +0 -93
  602. package/dist/bkui-vue.cjs.js +0 -18938
  603. package/dist/bkui-vue.esm.js +0 -18887
  604. package/dist/bkui-vue.umd.js +0 -18941
  605. package/lib/form/common.d.ts +0 -3
  606. package/lib/icon/icon.js +0 -15
  607. package/lib/styles/index.js +0 -1
  608. package/lib/use-form.d.ts +0 -3
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("../shared"),require("vue"),require("../directives"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","../shared","vue","../directives","../icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared,e.Vue,e.Directives,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.__esModule=!0,e.exports.default=e.exports}(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.__esModule=!0,e.exports.default=e.exports}(u);var c={exports:{}},s={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.__esModule=!0,e.exports.default=e.exports}(s),function(e){var t=s.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.__esModule=!0,e.exports.default=e.exports}(c);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.__esModule=!0,e.exports.default=e.exports}(d),function(e){var t=l.exports,n=u.exports,r=c.exports,a=d.exports;e.exports=function(e,o){return t(e)||n(e,o)||r(e,o)||a()},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var f=o(i.exports),h={exports:{}},p={exports:{}};!function(e){var t=s.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(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.__esModule=!0,e.exports.default=e.exports}(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.__esModule=!0,e.exports.default=e.exports}(g),function(e){var t=p.exports,n=m.exports,r=c.exports,a=g.exports;e.exports=function(e){return t(e)||n(e)||r(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports}(h);var y=o(h.exports),v={exports:{}};!function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(v);var b=o(v.exports),w={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},D=n.defineComponent({props:w,emits:["changeVisible"],setup:function(e,r){var a=r.emit,o=Object.create(null),i=n.ref(null);n.onMounted((function(){u()})),n.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?n.nextTick((function(){o.update()})):n.nextTick((function(){o=new t.BKPopover(e.triggerRef,i.value,{placement:e.placement,trigger:"manual",modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},{name:"offset",options:{offset:[0,4]}}]})}))},c=n.computed((function(){var n={};return e.appendToBody&&(n["z-index"]=1060+t.bkZIndexManager.getModalNextIndex()),n})),s=n.reactive({styles:c});return Object.assign(Object.assign({},n.toRefs(s)),{refContentRef:i,updateDropdown:u,destoryDropdown:l})},render:function(){var e,t,r;return n.createVNode("div",{ref:"refContentRef",class:["bk-date-picker-dropdown",this.className,this.extPopoverCls],style:this.styles,onClick:this.onClick},[null!==(r=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==r?r:""])}}),k={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.__esModule=!0,e.exports.default=e.exports}(k);var M=o(k.exports),x=864e5;function S(e,t){return new Date(e,t+1,0).getDate()}function T(e,t,n){return 0===t&&n>50?e-1:11===t&&n<10?e+1:e}function C(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)/x);r||(l+=i.getDay());var u=Math.ceil(l/7);if(!r){var c=new Date(e,t,n),s=new Date(e+1,0,1),d=s.getDay();c.getTime()>=s.getTime()-x*d&&(u=1)}return u}function P(e,t,n){for(var r,a,o,i=this.lang||"en",l=this.onlyDays,u=void 0===this.weekStart?1:this.weekStart,c=1===u,s=[],d=u-(new Date(e,t,1).getDay()||(c?7:0)),f=C(e,t,1,c),h=S(e,t),p=S(e,t-1),m=T(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:c?"ISO 8601":"US",date:!!b&&new Date(Date.UTC(e,r,a)),year:m,index:s.length};n&&("function"==typeof n?w=n.call(g,w,i):n.forEach((function(e){w=e.call(g,w,i)}))),l&&b?s.push(w):l||s.push(w)}y>0&&(f=C(e,r,a+1,c)),m=T(e,t,f)}return g.cells=s,g}var V={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 N(e,t){for(var n in e)t[n]?null==(r=e[n])||r.constructor!==Array&&r.constructor!==Object||N(e[n],t[n]):t[n]=e[n];var r}function O(e,t){var n=[V.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&&V.weekPlaceholder?e.desc=V.weekPlaceholder:e.index<8?e.desc=V.columnNames[t][e.index]:e.index%8==0&&(e.desc=e.week)),e.date&&(e.monthName=V.monthNames[t][e.date.getMonth()]),this.monthName||(this.monthName=V.monthNames[t][this.month]),this.labels||(this.labels={monthNames:V.monthNames[t],columnNames:V.columnNames[t],classes:V.classes}),e}O.setLabels=function(e){N(e,V)};var F=function(e){return P.bind(e)};function L(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 H(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function U(e){H(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 Y(e,t){H(2,arguments);var n=U(e).getTime(),r=L(t);return new Date(n+r)}function A(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 j(e){return H(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function R(e){if(H(1,arguments),!j(e)&&"number"!=typeof e)return!1;var t=U(e);return!isNaN(Number(t))}var B={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"}},z=function(e,t,n){var r,a=B[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 W(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 E={date:W({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:W({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:W({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},q={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},I=function(e,t,n,r){return q[e]};function _(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 J={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:_({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:_({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:_({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:_({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:_({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 Q(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],c=Array.isArray(u)?X(u,(function(e){return e.test(l)})):G(u,(function(e){return e.test(l)}));i=e.valueCallback?e.valueCallback(c):c,i=n.valueCallback?n.valueCallback(i):i;var s=t.slice(l.length);return{value:i,rest:s}}}function G(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function X(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var Z,$={ordinalNumber:(Z={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(Z.matchPattern);if(!n)return null;var r=n[0],a=e.match(Z.parsePattern);if(!a)return null;var o=Z.valueCallback?Z.valueCallback(a[0]):a[0];o=t.valueCallback?t.valueCallback(o):o;var i=e.slice(r.length);return{value:o,rest:i}}),era:Q({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:Q({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:Q({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:Q({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:Q({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"})},K={code:"en-US",formatDistance:z,formatLong:E,formatRelative:I,localize:J,match:$,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ee(e,t){H(2,arguments);var n=L(t);return Y(e,-n)}var te=864e5;function ne(e){H(1,arguments);var t=1,n=U(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 re(e){H(1,arguments);var t=U(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var a=ne(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var i=ne(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function ae(e){H(1,arguments);var t=re(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=ne(n);return r}var oe=6048e5;function ie(e,t){H(1,arguments);var n=t||{},r=n.locale,a=r&&r.options&&r.options.weekStartsOn,o=null==a?0:L(a),i=null==n.weekStartsOn?o:L(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=U(e),u=l.getUTCDay(),c=(u<i?7:0)+u-i;return l.setUTCDate(l.getUTCDate()-c),l.setUTCHours(0,0,0,0),l}function le(e,t){H(1,arguments);var n=U(e),r=n.getUTCFullYear(),a=t||{},o=a.locale,i=o&&o.options&&o.options.firstWeekContainsDate,l=null==i?1:L(i),u=null==a.firstWeekContainsDate?l:L(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,u),c.setUTCHours(0,0,0,0);var s=ie(c,t),d=new Date(0);d.setUTCFullYear(r,0,u),d.setUTCHours(0,0,0,0);var f=ie(d,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function ue(e,t){H(1,arguments);var n=t||{},r=n.locale,a=r&&r.options&&r.options.firstWeekContainsDate,o=null==a?1:L(a),i=null==n.firstWeekContainsDate?o:L(n.firstWeekContainsDate),l=le(e,t),u=new Date(0);u.setUTCFullYear(l,0,i),u.setUTCHours(0,0,0,0);var c=ie(u,t);return c}var ce=6048e5;function se(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var de={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return se("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):se(n+1,2)},d:function(e,t){return se(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 se(e.getUTCHours()%12||12,t.length)},H:function(e,t){return se(e.getUTCHours(),t.length)},m:function(e,t){return se(e.getUTCMinutes(),t.length)},s:function(e,t){return se(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return se(Math.floor(r*Math.pow(10,n-3)),t.length)}},fe=de,he="midnight",pe="noon",me="morning",ge="afternoon",ye="evening",ve="night",be={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 fe.y(e,t)},Y:function(e,t,n,r){var a=le(e,r),o=a>0?a:1-a;return"YY"===t?se(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):se(o,t.length)},R:function(e,t){return se(re(e),t.length)},u:function(e,t){return se(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 se(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 se(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 fe.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 se(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){H(1,arguments);var n=U(e),r=ie(n,t).getTime()-ue(n,t).getTime();return Math.round(r/ce)+1}(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):se(a,t.length)},I:function(e,t,n){var r=function(e){H(1,arguments);var t=U(e),n=ne(t).getTime()-ae(t).getTime();return Math.round(n/oe)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):se(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):fe.d(e,t)},D:function(e,t,n){var r=function(e){H(1,arguments);var t=U(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/te)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):se(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 se(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 se(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 se(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?pe:0===a?he: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?ye:a>=12?ge:a>=4?me:ve,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 fe.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):fe.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):se(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):se(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):fe.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):fe.s(e,t)},S:function(e,t){return fe.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 De(a);case"XXXX":case"XX":return ke(a);default:return ke(a,":")}},x:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return De(a);case"xxxx":case"xx":return ke(a);default:return ke(a,":")}},O:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+we(a,":");default:return"GMT"+ke(a,":")}},z:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+we(a,":");default:return"GMT"+ke(a,":")}},t:function(e,t,n,r){var a=r._originalDate||e;return se(Math.floor(a.getTime()/1e3),t.length)},T:function(e,t,n,r){return se((r._originalDate||e).getTime(),t.length)}};function we(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+se(o,2)}function De(e,t){return e%60==0?(e>0?"-":"+")+se(Math.abs(e)/60,2):ke(e,t)}function ke(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e);return r+se(Math.floor(a/60),2)+n+se(a%60,2)}var Me=be;function xe(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 Se(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 Te={p:Se,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return xe(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}}",xe(a,t)).replace("{{time}}",Se(o,t))}},Ce=Te,Pe=["D","DD"],Ve=["YY","YYYY"];function Ne(e){return-1!==Pe.indexOf(e)}function Oe(e){return-1!==Ve.indexOf(e)}function Fe(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 Le=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,He=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ue=/^'([^]*?)'?$/,Ye=/''/g,Ae=/[a-zA-Z]/;function je(e){return e.match(Ue)[1].replace(Ye,"'")}var Re={},Be=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,ze=/\d\d?/,We=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Ee=function(){};function qe(e,t){for(var n=[],r=0,a=e.length;r<a;r++)n.push(e[r].substr(0,t));return n}function Ie(e){return function(t,n,r){var a=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~a&&(t.month=a)}}function _e(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 Je=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Qe=["January","February","March","April","May","June","July","August","September","October","November","December"],Ge=qe(Qe,3),Xe=qe(Je,3);Re.i18n={dayNamesShort:Xe,dayNames:Je,monthNamesShort:Ge,monthNames:Qe,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10)*e%10]}};var Ze={D:function(e){return e.getDay()},DD:function(e){return _e(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return _e(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 _e(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 _e(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return _e(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return _e(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return _e(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return _e(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return _e(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?"-":"+")+_e(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},$e={d:[ze,function(e,t){e.day=t}],M:[ze,function(e,t){e.month=t-1}],yy:[ze,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:[ze,function(e,t){e.hour=t}],m:[ze,function(e,t){e.minute=t}],s:[ze,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:[ze,Ee],ddd:[We,Ee],MMM:[We,Ie("monthNamesShort")],MMMM:[We,Ie("monthNames")],a:[We,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)}]};$e.DD=$e.D,$e.dddd=$e.ddd,$e.Do=$e.dd=$e.d,$e.mm=$e.m,$e.hh=$e.H=$e.HH=$e.h,$e.MM=$e.M,$e.ss=$e.s,$e.A=$e.a,Re.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"},Re.format=function(e,t,n){var r=n||Re.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=Re.masks[t]||t||Re.masks.default).replace(Be,(function(t){return t in Ze?Ze[t](e,r):t.slice(1,t.length-1)}))},Re.parse=function(e,t,n){var r=n||Re.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");if(t=Re.masks[t]||t,e.length>1e3)return!1;var a=!0,o={};if(t.replace(Be,(function(t){if($e[t]){var n=$e[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 $e[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 Ke=" - ",et=function(e,t){var n=U(new Date(e));return!n||isNaN(n.getTime())?"":function(e,t,n){H(2,arguments);var r=String(t),a=n||{},o=a.locale||K,i=o.options&&o.options.firstWeekContainsDate,l=null==i?1:L(i),u=null==a.firstWeekContainsDate?l:L(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=o.options&&o.options.weekStartsOn,s=null==c?0:L(c),d=null==a.weekStartsOn?s:L(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=U(e);if(!R(f))throw new RangeError("Invalid time value");var h=A(f),p=ee(f,h),m={firstWeekContainsDate:u,weekStartsOn:d,locale:o,_originalDate:f};return r.match(He).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Ce[t])(e,o.formatLong,m):e})).join("").match(Le).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return je(n);var i=Me[r];if(i)return!a.useAdditionalWeekYearTokens&&Oe(n)&&Fe(n,t,e),!a.useAdditionalDayOfYearTokens&&Ne(n)&&Fe(n,t,e),i(p,n,o.localize,m);if(r.match(Ae))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")}(n,t||"yyyy-MM-dd")},tt=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],r=e[1];if(n&&r)return et(n,t)+Ke+et(r,t)}else if(!Array.isArray(e)&&e instanceof Date)return et(e,t);return""},nt=function(e,t){var n=Array.isArray(e)?e:e.split(Ke);if(2===n.length){var r=n[0],a=n[1];return[r instanceof Date?r:Re.parse(r,t||"yyyy-MM-dd"),a instanceof Date?a:Re.parse(a,t||"yyyy-MM-dd")]}return[]},rt={default:{formatter:function(e){return e?"".concat(e):""},parser:function(e){return void 0===e||""===e?null:e}},date:{formatter:function(e,t){return et(e,t)},parser:function(e,t){return Re.parse(e,t||"yyyy-MM-dd")}},datetime:{formatter:function(e,t){return et(e,t)},parser:function(e,t){return Re.parse(e,t||"yyyy-MM-dd")}},daterange:{formatter:tt,parser:nt},datetimerange:{formatter:tt,parser:nt},timerange:{formatter:tt,parser:nt},time:{formatter:function(e,t){return et(e,t)},parser:function(e,t){return Re.parse(e,t||"yyyy-MM-dd")}},month:{formatter:function(e,t){return et(e,t)},parser:function(e,t){return Re.parse(e,t||"yyyy-MM-dd")}},year:{formatter:function(e,t){return et(e,t)},parser:function(e,t){return Re.parse(e,t||"yyyy-MM-dd")}},multiple:{formatter:function(e,t){return e.filter(Boolean).map((function(e){return et(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=""),Re.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}}},at=function(e){return e?[e.getHours(),e.getMinutes(),e.getSeconds()]:[0,0,0]},ot={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"},it=function(e,t,n,r){var a=t.includes("range"),o=(rt[t]||rt.default).parser,i=r||ot[t],l=rt.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 c=f(e,2),s=c[0],d=c[1];s instanceof Date&&d instanceof Date?u=e.map((function(e){return new Date(e)})):"string"==typeof s&&"string"==typeof d?u=o(e.join(Ke),i):s&&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]},lt=function(e,t,n,r){var a=ot[t];return n?(0,rt.multiple.formatter)(e,r||a):(0,(rt[t]||rt.default).formatter)(e,r||a)},ut=Symbol("date-picker");function ct(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 st,dt,ft=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},ht=(st={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()}},dt=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(dt,(function(t){return st[t](n,e)}))}));return{label:r,type:-1!==t.indexOf("yy")?"year":"month"}}));return{separator:a,labels:o}}),pt=function(e){var t=new Date(e);return t.setHours(0,0,0,0),t.getTime()},mt=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},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=n.defineComponent({props:gt,emits:["pick","pick-click","changeRange"],setup:function(e,t){var r=t.emit,a=n.computed((function(){return new F({onlyDays:!0,weekStart:0})})),o=n.computed((function(){var e=["日","一","二","三","四","五","六"];return e.splice(0,7).concat(e.splice(0,0))})),i=n.computed((function(){return"range"===e.selectionMode&&e.rangeState.selecting?[e.rangeState.from]:e.modelValue}));return{headerDays:o,cells:n.computed((function(){var t=e.tableDate.getFullYear(),n=e.tableDate.getMonth(),r=pt(new Date),o=i.value.filter(Boolean).map(pt),l=i.value.map(pt),u=f(l,2),c=u[0],s=u[1],d=e.rangeState.from&&pt(e.rangeState.from),h=e.rangeState.to&&pt(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&&pt(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&&mt(t,d,h),start:a&&p&&t===c,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(pt(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 n.createVNode("div",{class:"bk-date-picker-cells"},[n.createVNode("div",{class:"bk-date-picker-cells-header"},[this.headerDays.map((function(e){return n.createVNode("span",null,[e])}))]),this.cells.map((function(t){return n.createVNode("span",{class:e.getCellCls(t),onClick:function(){return e.handleClick(t)},onMouseenter:function(){return e.handleMouseMove(t)}},[n.createVNode("em",null,[t.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=n.defineComponent({props:vt,emits:["pick","pick-success"],setup:function(e,t){var r=this,a=t.emit,o=function(e){return e.match(/^time/)?"time-picker":"".concat(e,"-table")},i=e.modelValue.slice().sort(),l=n.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)},c=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)},s=function(){setTimeout((function(){l.currentView=e.selectionMode}),500),a("pick-success")},d=n.ref(null),f=n.ref(null),h=n.computed((function(){return l.pickerTable==="".concat(l.currentView,"-table")?c:u})),p=n.computed((function(){var e=l.panelDate,t=ht("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=n.computed((function(){return"year"===p.value.labels[0].type||"date"===l.currentView})),g=n.computed((function(){return"year"===p.value.labels[1].type||"date"===l.currentView})),y=n.computed((function(){return"time"===l.currentView}));return console.warn("panelDatepanelDate",l.panelDate),Object.assign(Object.assign({},n.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&&s()},changeYear:function(t){"year"===e.selectionMode||"year-table"===l.pickerTable?l.panelDate=new Date(l.panelDate.getFullYear()+10*t,0,1):l.panelDate=ft(l.panelDate,12*t)},changeMonth:function(e){l.panelDate=ft(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 n.createVNode("div",{class:["bk-picker-panel-body-wrapper",this.shortcuts.length?"bk-picker-panel-with-sidebar":""],onMousedown:function(e){e.preventDefault()}},[this.shortcuts.length?n.createVNode("div",{class:"bk-picker-panel-sidebar"},[this.shortcuts.map((function(t){return n.createVNode("div",{class:"bk-picker-panel-shortcut",onClick:function(){return e.handleShortcutClick(t)}},[t.text])}))]):"",n.createVNode("div",{class:"bk-picker-panel-body",style:"width: 261px;"},[n.withDirectives(n.createVNode("div",{class:"bk-date-picker-header"},[n.createVNode("span",{class:ct("prev","-double"),onClick:function(){return e.changeYear(-1)}},[n.createVNode(a.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?n.withDirectives(n.createVNode("span",{class:ct("prev"),onClick:function(){return e.changeMonth(-1)}},[n.createVNode(a.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[n.vShow,"date"===this.currentView]]):"",this.datePanelLabel&&Object.keys(this.datePanelLabel).length>0?n.createVNode("span",null,[n.withDirectives(n.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.datePanelLabel.labels[0].handler}},[this.datePanelLabel.labels[0].label]),[[n.vShow,this.showLabelFirst]]),"date"===this.currentView?" ".concat(this.datePanelLabel.separator," "):" ",n.withDirectives(n.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.datePanelLabel.labels[1].handler}},[this.datePanelLabel.labels[1].label]),[[n.vShow,this.showLabelSecond]])]):"",n.createVNode("span",{class:ct("next","-double"),onClick:function(){return e.changeYear(1)}},[n.createVNode(a.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?n.withDirectives(n.createVNode("span",{class:ct("next"),onClick:function(){return e.changeMonth(1)}},[n.createVNode(a.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[n.vShow,"date"===this.currentView]]):""]),[[n.vShow,"time"!==this.currentView]]),n.createVNode("div",{class:"bk-picker-panel-content"},["time"!==this.currentView?"date-table"===e.pickerTable?n.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=n.defineComponent({props:wt,emits:["pick"],setup:function(e,t){var r=t.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,c=n.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}),s=function(e,t){return e&&t?e.getTime()-t.getTime():0},d=n.ref(null),h=n.ref(null),p=function t(n,r,a){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=new Date(c["".concat(n,"PanelDate")]);if(i["set".concat(r)](i["get".concat(r)]()+a),c["".concat(n,"PanelDate")]=i,o)if(e.splitPanels){var l="left"===n?"right":"left";"left"===n&&c.leftPanelDate>=c.rightPanelDate&&t(l,r,1),"right"===n&&c.rightPanelDate<=c.leftPanelDate&&t(l,r,-1)}else{var u="left"===n?"right":"left",s=c["".concat(u,"PanelDate")],d=new Date(s);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),c["".concat(u,"PanelDate")]=d}},m=function(e){c["".concat(e,"PickerTable")]="year-table"},g=function(e){c["".concat(e,"PickerTable")]="month-table"},y=function(e){var t=c["".concat(e,"PanelDate")],n=ht("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"),c.rangeState.selecting||"time"===c.currentView){if("time"===c.currentView)c.dates=t;else{var a=[c.rangeState.from,t].sort(s),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));c.dates=[i,u],c.rangeState={from:i,to:u,selecting:!1}}!function(t,n){r("pick",c.dates,t,n||e.type)}(!1,n||"date")}else c.upToNowEnable=new Date(t).getTime()<(new Date).getTime(),c.rangeState={from:t,to:null,selecting:!0}},b=function(t,n){c["".concat(t,"PanelDate")]=n;var r=c["".concat(t,"PickerTable")];if(c["".concat(t,"PickerTable")]="year-table"===r?"month-table":"".concat(c.currentView,"-table"),!e.splitPanels){var a="left"===t?"right":"left";c["".concat(a,"PanelDate")]=n,p(a,"Month","left"===a?-1:1,!1)}};n.watch((function(){return e.selectionMode}),(function(e){c.currentView=e||"range"}));var w=n.computed((function(){return"time"===c.currentView})),D=n.computed((function(){return y("left")})),k=n.computed((function(){return y("right")})),M=n.computed((function(){return c.leftPickerTable.split("-").shift()})),x=n.computed((function(){return c.rightPickerTable.split("-").shift()})),S=n.computed((function(){return"year"===D.value.labels[0].type||"date"===c.currentView})),T=n.computed((function(){return"year"===D.value.labels[1].type||"date"===c.currentView})),C=n.computed((function(){return"year"===k.value.labels[0].type||"date"===c.currentView})),P=n.computed((function(){return"year"===k.value.labels[1].type||"date"===c.currentView})),V=n.computed((function(){var e="".concat(c.currentView,"-table");return{left:c.leftPickerTable!==e,right:c.rightPickerTable!==e}})),N=n.computed((function(){return{left:V.value.left?b.bind("left"):v,right:V.value.right?b.bind("right"):v}}));return Object.assign(Object.assign({},n.toRefs(c)),{isTime:w,prevYear:function(e){var t="year"===c.currentView?-10:-1;p(e,"FullYear",t)},nextYear:function(e){var t="year"===c.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(){c.currentView=e.selectionMode,c.leftPickerTable="".concat(c.currentView,"-table"),c.rightPickerTable="".concat(c.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){c.rangeState.to=e}})},render:function(){var e=this;return n.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()}},[n.createVNode("div",{class:["bk-picker-panel-body",this.showTime?"bk-picker-panel-body-time":"bk-picker-panel-body-date"]},[n.withDirectives(n.createVNode("div",{class:"bk-picker-panel-content bk-picker-panel-content-left",style:"width: 261px;"},[n.withDirectives(n.createVNode("div",{class:"bk-date-picker-header"},[n.createVNode("span",{class:ct("prev","-double"),onClick:function(){return e.prevYear("left")}},[n.createVNode(a.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.leftPickerTable?n.withDirectives(n.createVNode("span",{class:ct("prev"),onClick:function(){return e.prevMonth("left")}},[n.createVNode(a.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[n.vShow,"date"===this.currentView]]):"",this.leftDatePanelLabel&&Object.keys(this.leftDatePanelLabel).length>0?n.createVNode("span",null,[n.withDirectives(n.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.leftDatePanelLabel.labels[0].handler}},[this.leftDatePanelLabel.labels[0].label]),[[n.vShow,this.leftShowLabelFirst]]),"date"===this.leftDatePanelView?" ".concat(this.leftDatePanelLabel.separator," "):" ",n.withDirectives(n.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.leftDatePanelLabel.labels[1].handler}},[this.leftDatePanelLabel.labels[1].label]),[[n.vShow,this.leftShowLabelSecond]])]):"",this.splitPanels||"date-table"!==this.leftPickerTable?n.createVNode("span",{class:ct("next","-double"),onClick:function(){return e.nextYear("left")}},[n.createVNode(a.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels||"date-table"===this.leftPickerTable?n.withDirectives(n.createVNode("span",{class:ct("next"),onClick:function(){return e.nextMonth("left")}},[n.createVNode(a.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[n.vShow,"date"===this.currentView]]):""]),[[n.vShow,"time"!==this.currentView]]),"time"!==this.currentView?"date-table"===e.leftPickerTable?n.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:""]),[[n.vShow,!this.isTime]]),n.withDirectives(n.createVNode("div",{class:"bk-picker-panel-content bk-picker-panel-content-right",style:"width: 261px;"},[n.withDirectives(n.createVNode("div",{class:"bk-date-picker-header"},[this.splitPanels||"date-table"!==this.rightPickerTable?n.createVNode("span",{class:ct("prev","-double"),onClick:function(){return e.prevYear("right")}},[n.createVNode(a.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels&&"date-table"===this.rightPickerTable?n.withDirectives(n.createVNode("span",{class:ct("prev","-double"),onClick:function(){return e.prevMonth("right")}},[n.createVNode(a.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[n.vShow,"date"===this.currentView]]):"",this.rightDatePanelLabel&&Object.keys(this.rightDatePanelLabel).length>0?n.createVNode("span",null,[n.withDirectives(n.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.rightDatePanelLabel.labels[0].handler}},[this.rightDatePanelLabel.labels[0].label]),[[n.vShow,this.rightShowLabelFirst]]),"date"===this.rightDatePanelView?" ".concat(this.rightDatePanelLabel.separator," "):" ",n.withDirectives(n.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.rightDatePanelLabel.labels[1].handler}},[this.rightDatePanelLabel.labels[1].label]),[[n.vShow,this.rightShowLabelSecond]])]):"",this.upToNow?(e.rangeState.selecting||"time"===e.currentView)&&e.upToNowEnable?n.createVNode("span",{class:"up-to-now",onClick:function(){return e.handleRangePick(new Date,"upToNow")}},[n.createTextVNode("至今")]):n.createVNode("span",{class:"up-to-now disabled"},[n.createTextVNode("至今")]):"",n.createVNode("span",{class:ct("next","-double"),onClick:function(){return e.nextYear("right")}},[n.createVNode(a.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.rightPickerTable?n.withDirectives(n.createVNode("span",{class:ct("next"),onClick:function(){return e.nextMonth("right")}},[n.createVNode(a.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[n.vShow,"date"===this.currentView]]):""]),[[n.vShow,"time"!==this.currentView]]),"time"!==this.currentView?"date-table"===e.rightPickerTable?n.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:""]),[[n.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=n.defineComponent({name:"DatePicker",directives:{clickoutside:r.clickoutside},props:kt,emits:["open-change","input","change","update:modelValue","clear","shortcut-change","pick-success"],slots:["header"],setup:function(e,t){var r=t.slots,a=t.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:it(e.modelValue,e.type,e.multiple,e.format),u=null;-1!==e.shortcutSelectedIndex&&(u=e.shortcuts[e.shortcutSelectedIndex]||null)&&(l=u.value());var c=n.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(at),active:!1},internalFocus:!1,timeEnterMode:!0,shortcut:u,onSelectionModeChange:s});function s(e){var t=e;return e.match(/^date/)&&(t="date"),c.selectionMode=["year","month","date","time"].indexOf(t)>-1&&t,c.selectionMode}var d=n.computed((function(){if(e.multiple)return c.internalValue.slice();var t=e.type.includes("range"),n=c.internalValue.map((function(e){return e instanceof Date?new Date(e):e||""}));return e.type.match(/^time/)&&(n=n.map((function(t){return lt(t,e.type,e.multiple,e.format)}))),t||e.multiple?n:n[0]})),h=n.computed((function(){return e.type.match(/^time/)?d.value:e.multiple?lt(d.value,e.type,e.multiple,e.format):Array.isArray(d.value)?d.value.map((function(t){return lt(t,e.type,e.multiple,e.format)})):lt(d.value,e.type,e.multiple,e.format)})),p=n.computed((function(){return"daterange"===e.type||"datetimerange"===e.type?"DateRangePanel":"DatePanel"})),m=n.computed((function(){return null===e.open?c.visible:e.open})),g=n.computed((function(){return console.warn("state.internalValue",c.internalValue),lt(c.internalValue,e.type,e.multiple,e.format)})),v=n.computed((function(){var t;return(null===(t=c.shortcut)||void 0===t?void 0:t.text)&&e.useShortcutText?c.shortcut.text:g.value})),w=n.computed((function(){return!!r.trigger||"datetime"===e.type||"datetimerange"===e.type||e.multiple})),D=n.computed((function(){var t="";return"medium"===e.fontSize?t="medium-font":"large"===e.fontSize&&(t="large-font"),t})),k=n.computed((function(){var t="";return"medium"===e.fontSize?t="medium-width":"large"===e.fontSize&&(t="large-width"),t})),M=n.computed((function(){var t;return!(!(null===(t=c.shortcut)||void 0===t?void 0:t.text)||!e.useShortcutText)||(!e.editable||e.readonly)})),x=n.computed((function(){return!!r.footer})),S=n.computed((function(){return"RangeTimePickerPanel"===p.value&&e.allowCrossDay})),T=n.ref(null);n.watch((function(){return c.visible}),(function(e){var t,n;console.error(123),!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=n.ref(null);n.watch((function(){return e.modelValue}),(function(t){c.internalValue=it(t,e.type,e.multiple,e.format)})),n.watch((function(){return e.open}),(function(e){c.visible=!0===e})),n.watch((function(){return e.type}),(function(e){s(e)})),n.watch((function(){return d}),(function(e,t){(JSON.stringify(e)!==JSON.stringify(t)||b(e)!==b(t))&&a("input",e)})),n.onMounted((function(){e.type.indexOf("date"),c.timeEnterMode=!0;var t=e.modelValue,r=d.value;b(t)===b(r)&&JSON.stringify(t)===JSON.stringify(r)||a("input",d.value),null!==e.open&&(c.visible=e.open),n.provide(ut,{props:e,focus:function(){var e;null===(e=null==T?void 0:T.value)||void 0===e||e.focus()}})}));var P=n.ref(null),V=function(e){var t;if(c.disableCloseUnderTransfer)return c.disableCloseUnderTransfer=!1,!1;if(e&&"mousedown"===e.type&&c.visible)return e.preventDefault(),void e.stopPropagation();if(c.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 c.visible=!1,null==e||e.preventDefault(),void(null==e||e.stopPropagation())}c.isFocused=!1,c.disableClickOutSide=!1},N=function(t){n.nextTick((function(){var n;a("change",h.value,t),a("update:modelValue",d.value),e.type.indexOf("time")<0&&(null===(n=null==T?void 0:T.value)||void 0===n||n.blur())}))},O=function(){var e;null===(e=null==P?void 0:P.value)||void 0===e||e.reset()},F=function(){var e;c.visible=!1,n.nextTick((function(){a("pick-success")})),null===(e=null==T?void 0:T.value)||void 0===e||e.blur(),O()},L=n.ref(null);return Object.assign(Object.assign({},n.toRefs(c)),{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)&&(c.showClose=!0)},handleInputMouseleave:function(e){var t;(null===(t=e.toElement)||void 0===t?void 0:t.classList.contains("clear-action"))||(c.showClose=!1)},handleFocus:function(t){e.readonly||(c.isFocused=!0,t&&"focus"===t.type||e.disabled||(c.visible=!0))},handleBlur:function(t){var n;c.internalFocus?c.internalFocus=!1:c.visible?t.preventDefault():(c.isFocused=!1,s(e.type),c.internalValue=c.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&&c.visible)if(e.stopPropagation(),e.preventDefault(),w.value){var n=C.value.$el.querySelectorAll(".bk-picker-confirm > *");c.internalFocus=!0,y(n)[e.shiftKey?"pop":"shift"]().focus()}else V();var r=[37,38,39,40];c.visible||!r.includes(t)?(27===t&&c.visible&&(e.stopPropagation(),V()),r.includes(t)&&c.focusedTime.active&&e.preventDefault()):c.visible=!0},handleInputChange:function(t){var n,r=e.type.includes("range")||e.multiple,a=g.value,o=t.target.value,i=it(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),s=i.reduce((function(e,t){return e&&t instanceof Date}),!0);o!==a&&!u&&s?(N(e.type),c.internalValue=i):c.forceInputRerender=c.forceInputRerender+1},handleClear:function(){c.visible=!1,c.internalValue=c.internalValue.map((function(){return null})),a("clear"),N(e.type),O(),c.showClose=!1,c.shortcut=null,setTimeout((function(){return s(e.type)}),500)},handleTransferClick:function(){e.appendToBody&&(c.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=c.internalValue.findIndex((function(e){return e&&e.getTime()===l})),d=[].concat(y(c.internalValue),[i]).filter(Boolean),h=d.map((function(e){return e.getTime()})).filter((function(e,t,n){return n.indexOf(e)===t&&t!==u}));c.internalValue=h.map((function(e){return new Date(e)}))}else i=it(t,e.type,e.multiple,e.format),c.internalValue=Array.isArray(i)?i:[i];if(c.internalValue[0]){var p=f(c.internalValue,1),m=p[0];c.focusedDate=m}c.focusedTime=Object.assign(Object.assign({},c.focusedTime),{time:c.internalValue.map(at)}),w.value||(s(e.type),c.visible=n),"upToNow"===r&&"daterange"===e.type&&F(),c.shortcut=o,N(r);var g=e.shortcuts.findIndex((function(e){return e===c.shortcut}));a("shortcut-change",c.shortcut,g)}})},render:function(){var e,t,r,a=this,o=n.createVNode("div",null,[n.createVNode("span",{class:["icon-wrapper",this.disabled?"disabled":""],onClick:this.handleIconClick,onMouseenter:this.handleInputMouseenter,onMouseleave:this.handleInputMouseleave},["time"===this.type||"timerange"===this.type?n.createVNode("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[n.createVNode("g",{id:"time"},[n.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),n.createVNode("polygon",{fill:"#c4c6cc",points:"512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"},null)])]):n.createVNode("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[n.createVNode("g",{id:"date"},[n.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),n.createVNode("rect",{x:"416",y:"128",fill:"#c4c6cc",width:"192",height:"64"},null),n.createVNode("rect",{x:"288",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),n.createVNode("rect",{x:"672",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),n.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)])])]),n.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?n.createVNode("i",{class:"bk-icon icon-close-circle-shape clear-action",onClick:this.handleClear},null):""]);return n.withDirectives(n.createVNode("div",{class:["bk-date-picker","datetimerange"===this.type?"long":"",this.longWidthCls]},[n.createVNode("div",{ref:"triggerRef",class:"bk-date-picker-rel"},[null!==(r=null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e))&&void 0!==r?r:o]),n.createVNode(n.Teleport,{to:"body",disabled:!this.appendToBody},{default:function(){return[n.createVNode(n.Transition,{name:"bk-fade-down-transition"},{default:function(){return[n.withDirectives(n.createVNode(D,{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?n.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):n.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)]}}),[[n.vShow,a.opened]])]}})]}})]),[[n.resolveDirective("clickoutside"),this.handleClose]])}}),xt=t.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"),require("lodash"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives","../icon","js-calendar","date-fns","lodash"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives"),require("../icon"),require("js-calendar"),require("date-fns"),require("lodash")):t(e["../shared"],e.vue,e["../directives"],e["../icon"],e["js-calendar"],e["date-fns"],e.lodash);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r,i,a,l)=>(()=>{"use strict";var o={4061:e=>{e.exports=n},6870:e=>{e.exports=r},4212:t=>{t.exports=e},7876:e=>{e.exports=a},7926:e=>{e.exports=i},467:e=>{e.exports=l},748:e=>{e.exports=t}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={exports:{}};return o[e](n,n.exports,u),n.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{u.r(s),u.d(s,{TimePicker:()=>be,default:()=>ge});var e=u(4212);function t(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}function n(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}}function r(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 r,i,a=[],l=!0,o=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);l=!0);}catch(e){o=!0,i=e}finally{try{l||null==n.return||n.return()}finally{if(o)throw i}}return a}}(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 i(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 a(e){return a="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},a(e)}var l=u(748),o=u(4061),c=u(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,l.defineComponent)({props:d,emits:["changeVisible"],setup:function(t,n){var r=n.emit,i=Object.create(null),a=(0,l.ref)(null);(0,l.onMounted)((function(){c()})),(0,l.onBeforeUnmount)((function(){o()}));var o=function(){if(i&&0!==Object.keys(i).length){var e=i;e.isShow&&e.hide(),e.destroy(),i=null,r("changeVisible",!1)}},c=function(){i&&0!==Object.keys(i).length?(0,l.nextTick)((function(){i.update()})):(0,l.nextTick)((function(){i=new e.BKPopover(t.triggerRef,a.value,{placement:t.placement,trigger:"manual",modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},{name:"offset",options:{offset:[0,4]}}]})}))},u=(0,l.computed)((function(){var n={};return t.appendToBody&&(n["z-index"]=1060+e.bkZIndexManager.getModalNextIndex()),n})),s=(0,l.reactive)({styles:u});return Object.assign(Object.assign({},(0,l.toRefs)(s)),{refContentRef:a,updateDropdown:c,destoryDropdown:o})},render:function(){var e,t,n;return(0,l.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,l.defineComponent)({props:p,emits:["pick-clear","pick-success","pick-toggle-time"],setup:function(e,t){var n=t.emit,r=(0,l.computed)((function(){return{time:e.isTime?"选择日期":"选择时间",clear:"清除",ok:"确定"}})),a=(0,l.ref)(null);return{labels:r,handleClear:function(){n("pick-clear")},handleSuccess:function(){n("pick-success")},handleToggleTime:function(){e.timeDisabled||n("pick-toggle-time")},handleTab:function(e){var t=i(a.value.children)[e.shiftKey?"shift":"pop"]();document.activeElement===t&&(e.preventDefault(),e.stopPropagation())}}},render:function(){return(0,l.createVNode)("div",{class:"bk-picker-confirm",ref:"elRef",onKeydown:this.handleTab},[this.showTime?(0,l.createVNode)("a",{href:"javascript: void(0);",class:"bk-picker-confirm-time",onClick:this.handleToggleTime},[this.labels.time]):"",this.clearable?(0,l.createVNode)("a",{href:"javascript: void(0);",onClick:this.handleClear,onKeydown:this.handleClear},[this.labels.clear]):"",(0,l.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 v=u(7926),y=u.n(v),b=u(7876),g={},k=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,w=/\d\d?/,D=/[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=[],r=0,i=e.length;r<i;r++)n.push(e[r].substr(0,t));return n}function M(e){return function(t,n,r){var i=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(t.month=i)}}function C(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"],P=["January","February","March","April","May","June","July","August","September","October","November","December"],T=V(P,3),x=V(N,3);g.i18n={dayNamesShort:x,dayNames:N,monthNamesShort:T,monthNames:P,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10)*e%10]}};var O={D:function(e){return e.getDay()},DD:function(e){return C(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return C(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 C(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 C(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return C(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return C(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return C(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return C(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return C(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?"-":"+")+C(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},H={d:[w,function(e,t){e.day=t}],M:[w,function(e,t){e.month=t-1}],yy:[w,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:[w,function(e,t){e.hour=t}],m:[w,function(e,t){e.minute=t}],s:[w,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:[w,S],ddd:[D,S],MMM:[D,M("monthNamesShort")],MMMM:[D,M("monthNames")],a:[D,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)}]};H.DD=H.D,H.dddd=H.ddd,H.Do=H.dd=H.d,H.mm=H.m,H.hh=H.H=H.HH=H.h,H.MM=H.M,H.ss=H.s,H.A=H.a,g.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"},g.format=function(e,t,n){var r=n||g.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=g.masks[t]||t||g.masks.default).replace(k,(function(t){return t in O?O[t](e,r):t.slice(1,t.length-1)}))},g.parse=function(e,t,n){var r=n||g.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");if(t=g.masks[t]||t,e.length>1e3)return!1;var i=!0,a={};if(t.replace(k,(function(t){if(H[t]){var n=H[t],l=e.search(n[0]);~l?e.replace(n[0],(function(t){return n[1](a,t,r),e=e.substr(l+t.length),t})):i=!1}return H[t]?"":t.slice(1,t.length-1)})),!i)return!1;var l,o=new Date;return!0===a.isPm&&null!==a.hour&&12!=+a.hour?a.hour=+a.hour+12:!1===a.isPm&&12==+a.hour&&(a.hour=0),null!==a.timezoneOffset&&void 0!==a.timezoneOffset?(a.minute=+(a.minute||0)-+a.timezoneOffset,l=new Date(Date.UTC(a.year||o.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0))):l=new Date(a.year||o.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0),l};const R=g;var F=" - ",j=function(e,t){var n=(0,b.toDate)(new Date(e));return!n||isNaN(n.getTime())?"":(0,b.format)(n,t||"yyyy-MM-dd")},B=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],r=e[1];if(n&&r)return j(n,t)+F+j(r,t)}else if(!Array.isArray(e)&&e instanceof Date)return j(e,t);return""},L=function(e,t){var n=Array.isArray(e)?e:e.split(F);if(2===n.length){var r=n[0],i=n[1];return[r instanceof Date?r:R.parse(r,t||"yyyy-MM-dd"),i instanceof Date?i:R.parse(i,t||"yyyy-MM-dd")]}return[]},A={default:{formatter:function(e){return e?"".concat(e):""},parser:function(e){return void 0===e||""===e?null:e}},date:{formatter:function(e,t){return j(e,t)},parser:function(e,t){return R.parse(e,t||"yyyy-MM-dd")}},datetime:{formatter:function(e,t){return j(e,t)},parser:function(e,t){return R.parse(e,t||"yyyy-MM-dd")}},daterange:{formatter:B,parser:L},datetimerange:{formatter:B,parser:L},timerange:{formatter:B,parser:L},time:{formatter:function(e,t){return j(e,t)},parser:function(e,t){return R.parse(e,t||"yyyy-MM-dd")}},month:{formatter:function(e,t){return j(e,t)},parser:function(e,t){return R.parse(e,t||"yyyy-MM-dd")}},year:{formatter:function(e,t){return j(e,t)},parser:function(e,t){return R.parse(e,t||"yyyy-MM-dd")}},multiple:{formatter:function(e,t){return e.filter(Boolean).map((function(e){return j(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=""),R.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}}},I=function(){var e=new Date;return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e},z=function(e){return e.every((function(e){return!e||"string"==typeof e&&""===e.trim()}))},q=function(e){return e?[e.getHours(),e.getMinutes(),e.getSeconds()]:[0,0,0]},Y={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"},$=function(e,t,n,i){var a=t.includes("range"),l=(A[t]||A.default).parser,o=i||Y[t],c=A.multiple.parser,u=e;if(!e||"time"!==t||e instanceof Date)if(n&&e)u=c(e,o);else if(a)if(e)if("string"==typeof e)u=l(e,o);else if("timerange"===t)u=l(e,o).map((function(e){return e||""}));else{var s=r(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=l(e.join(F),o):d&&f||(u=[null,null])}else u=[null,null];else"string"==typeof e&&0!==t.indexOf("time")&&(u=l(e,o)||null);else u=l(e,o);return a||n?u||[]:[u]},E=function(e,t,n,r){var i=Y[t];return n?(0,A.multiple.formatter)(e,r||i):(0,(A[t]||A.default).formatter)(e,r||i)},J=Symbol("date-picker"),U=Symbol("time-picker");function K(e,t){return e.$children.reduce((function(e,n){n.$options.name===t&&e.push(n);var r=K(n,t);return e.concat(r)}),[])}function Z(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 W,_,G=function(e,t){var n,r=new Date(e),i=r.getMonth()+t,a=(n=r.getFullYear(),new Date(n,i+1,0).getDate());return a<r.getDate()&&r.setDate(a),r.setMonth(i),r},Q=(W={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()}},_=new RegExp(["yyyy","Mmmm","mmmm","Mmm","mmm","mm","m"].join("|"),"g"),function(e,t,n){var r=t.match(/(\[[^\]]+\])([^\\[\]]+)(\[[^\]]+\])/).slice(1);return{separator:r[1],labels:[r[0],r[2]].map((function(t){return{label:t.replace(/\[[^\]]+\]/,(function(t){return t.slice(1,-1).replace(_,(function(t){return W[t](n,e)}))})),type:-1!==t.indexOf("yy")?"year":"month"}}))}}),X=function(e){var t=new Date(e);return t.setHours(0,0,0,0),t.getTime()},ee=function(e,t,n){if(!t||!n)return!1;var i=r([t,n].sort(),2),a=i[0],l=i[1];return e>=a&&e<=l},te=function(e){var t=new Date(e.getTime());return t.setHours(arguments.length<=1?void 0:arguments[1]),t.setMinutes(arguments.length<=2?void 0:arguments[2]),t.setSeconds(arguments.length<=3?void 0:arguments[3]),t},ne={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 re=(0,l.defineComponent)({name:"DateTable",props:ne,emits:["pick","pick-click","changeRange"],setup:function(e,t){var n=t.emit,i=(0,l.computed)((function(){return new(y().Generator)({onlyDays:!0,weekStart:0})})),a=(0,l.computed)((function(){var e=["日","一","二","三","四","五","六"];return e.splice(0,7).concat(e.splice(0,0))})),o=(0,l.computed)((function(){return"range"===e.selectionMode&&e.rangeState.selecting?[e.rangeState.from]:e.modelValue})),c=(0,l.computed)((function(){var t=e.tableDate.getFullYear(),n=e.tableDate.getMonth(),a=X(new Date),l=o.value.filter(Boolean).map(X),c=r(o.value.map(X),2),u=c[0],s=c[1],d=e.rangeState.from&&X(e.rangeState.from),f=e.rangeState.to&&X(e.rangeState.to),p="range"===e.selectionMode,h="function"==typeof e.disableDate&&e.disableDate;return i.value(t,n,(function(e){e.date instanceof Date&&e.date.setTime(e.date.getTime()+6e4*e.date.getTimezoneOffset());var t=e.date&&X(e.date),r=e.date&&n===e.date.getMonth();return Object.assign(Object.assign({},e),{type:t===a?"today":e.type,selected:r&&l.includes(t),disabled:e.date&&h&&h(new Date(t)),range:r&&p&&ee(t,d,f),start:r&&p&&t===u,end:r&&p&&t===s})})).cells.slice(0)}));return{headerDays:a,cells:c,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(X(e.date));n("pick",t),n("pick-click")}},handleMouseMove:function(t){if(e.rangeState.selecting&&!t.disabled){var r=t.date;n("changeRange",r)}}}},render:function(){var e=this;return(0,l.createVNode)("div",{class:"bk-date-picker-cells"},[(0,l.createVNode)("div",{class:"bk-date-picker-cells-header"},[this.headerDays.map((function(e){return(0,l.createVNode)("span",null,[e])}))]),this.cells.map((function(t){return(0,l.createVNode)("span",{class:e.getCellCls(t),onClick:function(){return e.handleClick(t)},onMouseenter:function(){return e.handleMouseMove(t)}},[(0,l.createVNode)("em",null,[t.desc])])}))])}});var ie=u(467),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,withValidate:{type:Boolean,default:!0}},le={disabledHours:{type:Array,default:function(){return[]}},disabledMinutes:{type:Array,default:function(){return[]}},disabledSeconds:{type:Array,default:function(){return[]}},hideDisabledOptions:{type:Boolean,default:!1},width:{type:Number,default:261},enterMode:{type:Boolean,default:!0}},oe={type:{type:String,default:"time",validator:function(e){return!(["time","timerange"].indexOf(e)<0&&(console.error("type property is not valid: '".concat(e,"'")),1))}},allowCrossDay:{type:Boolean,default:!1}},ce={hours:{type:[Number,String],default:NaN},minutes:{type:[Number,String],default:NaN},seconds:{type:[Number,String],default:NaN},showSeconds:{type:Boolean,default:!0},steps:{type:Array,default:function(){return[]}}},ue=["hours","minutes","seconds"];const se=(0,l.defineComponent)({name:"TimeSpinner",props:Object.assign(Object.assign({},ce),le),emits:["change","pick-click"],setup:function(t,n){var r=this,i=n.emit,a=(0,l.reactive)({spinerSteps:[1,1,1].map((function(e,n){return Math.abs(t.steps[n])||e})),compiled:!1,focusedColumn:-1,focusedTime:[0,0,0]}),o=(0,l.computed)((function(){for(var e=[],n=a.spinerSteps[0],r=0===a.focusedColumn&&a.focusedTime[0],i={text:0,selected:!1,disabled:!1,hide:!1},l=0;l<24;l+=n){var o=JSON.parse(JSON.stringify(i));o.text=l,o.focused=l===r,t.disabledHours.length&&t.disabledHours.indexOf(l)>-1&&(o.disabled=!0,t.hideDisabledOptions&&(o.hide=!0)),t.hours===l&&(o.selected=!0),e.push(o)}return e})),c=(0,l.computed)((function(){for(var e=[],n=a.spinerSteps[1],r=1===a.focusedColumn&&a.focusedTime[1],i={text:0,selected:!1,disabled:!1,hide:!1},l=0;l<60;l+=n){var o=JSON.parse(JSON.stringify(i));o.text=l,o.focused=l===r,t.disabledMinutes.length&&t.disabledMinutes.indexOf(l)>-1&&(o.disabled=!0,t.hideDisabledOptions&&(o.hide=!0)),t.minutes===l&&(o.selected=!0),e.push(o)}return e})),u=(0,l.computed)((function(){for(var e=[],n=a.spinerSteps[2],r=2===a.focusedColumn&&a.focusedTime[2],i={text:0,selected:!1,disabled:!1,hide:!1},l=0;l<60;l+=n){var o=JSON.parse(JSON.stringify(i));o.text=l,o.focused=l===r,t.disabledSeconds.length&&t.disabledSeconds.indexOf(l)>-1&&(o.disabled=!0,t.hideDisabledOptions&&(o.hide=!0)),t.seconds===l&&(o.selected=!0),e.push(o)}return e})),s=(0,l.computed)((function(){return{width:t.showSeconds?"33.33%":"50%"}}));function d(e){return("hours"===e?v:"minutes"===e?y:b).value}function f(e){return d(e).querySelector("li").offsetHeight}function p(e){i("change",e),i("pick-click")}function h(n,r){var i=d(n),a=i.scrollTop,l=32*function(e,n){var r,i=(r=e).toString()[0].toUpperCase()+r.toString().slice(1),a=t["disabled".concat(i)],l=n;if(a.length&&t.hideDisabledOptions){var o=0;a.forEach((function(e){return e<=n?o+=1:""})),l-=o}return l}(n,r);(0,e.scrollTop)(i,a,l,500)}(0,l.watch)((function(){return t.hours}),(function(e){a.compiled&&h("hours",o.value.findIndex((function(t){return t.text===e})))})),(0,l.watch)((function(){return t.minutes}),(function(e){a.compiled&&h("minutes",c.value.findIndex((function(t){return t.text===e})))})),(0,l.watch)((function(){return t.seconds}),(function(e){a.compiled&&h("seconds",c.value.findIndex((function(t){return t.text===e})))})),(0,l.watch)((function(){return a.focusedTime}),(function(e,t){ue.forEach((function(n,i){e[i]!==t[i]&&void 0!==e[i]&&h(n,r["".concat(n,"List")].findIndex((function(t){return t.text===e[i]})))}))})),(0,l.onMounted)((function(){(0,l.nextTick)((function(){var e;a.compiled=!0,(e=function(e){d(e).addEventListener("wheel",(0,ie.debounce)((function(){!function(e){var t=d(e),n=Math.min(Math.round((t.scrollTop-(.5*function(e){return d(e).offsetHeight}(e)-10)/f(e)+3)/f(e)),"hours"===e?23:59);if(("hours"===e?o:"minutes"===e?c:u).value.find((function(e){return e.text===n})).disabled)return!1;(0,l.nextTick)((function(){p(m({},e,n))}))}(e)}),32),{passive:!0})})("hours"),e("minutes"),e("seconds")}))}));var v=(0,l.ref)(null),y=(0,l.ref)(null),b=(0,l.ref)(null);return Object.assign(Object.assign({},(0,l.toRefs)(a)),{hoursList:o,minutesList:c,secondsList:u,styles:s,hoursRef:v,minutesRef:y,secondsRef:b,getCellCls:function(e){var t;return["bk-time-picker-cells-cell",(t={},m(t,"bk-time-picker-cells-cell-selected",e.selected),m(t,"bk-time-picker-cells-cell-focused",e.focused),m(t,"bk-time-picker-cells-cell-disabled",e.disabled),t)]},handleClick:function(e,t){t.disabled||p(m({},e,t.text))},updateScroll:function(){(0,l.nextTick)((function(){ue.forEach((function(e){var n,r=d(e);n="hours"===e?o:"minutes"===e?c:u,r.scrollTop=32*n.value.findIndex((function(n){return n.text===t[e]}))}))}))},padTime:function(e){return e<10?"0".concat(e):e}})},render:function(){var e=this;return(0,l.createVNode)("div",{class:["bk-time-picker-cells",this.showSeconds?"bk-time-picker-cells-with-seconds":""]},[(0,l.createVNode)("div",{class:"bk-time-picker-cells-title-wrapper"},[(0,l.createVNode)("div",{class:["bk-time-picker-cells-title",0===this.focusedColumn?"active":""],style:this.styles},[(0,l.createTextVNode)("时")]),(0,l.createVNode)("div",{class:["bk-time-picker-cells-title",1===this.focusedColumn?"active":""],style:this.styles},[(0,l.createTextVNode)("分")]),(0,l.withDirectives)((0,l.createVNode)("div",{class:["bk-time-picker-cells-title",2===this.focusedColumn?"active":""],style:this.styles},[(0,l.createTextVNode)("秒")]),[[l.vShow,this.showSeconds]])]),(0,l.createVNode)("div",{class:"bk-time-picker-cells-list",ref:"hoursRef",style:this.styles},[(0,l.createVNode)("ul",{class:"bk-time-picker-cells-ul"},[this.hoursList.map((function(t){return(0,l.withDirectives)((0,l.createVNode)("li",{class:e.getCellCls(t),onClick:function(){return e.handleClick("hours",t)}},[e.padTime(t.text)]),[[l.vShow,!t.hide]])}))])]),(0,l.createVNode)("div",{class:"bk-time-picker-cells-list",ref:"minutesRef",style:this.styles},[(0,l.createVNode)("ul",{class:"bk-time-picker-cells-ul"},[this.minutesList.map((function(t){return(0,l.withDirectives)((0,l.createVNode)("li",{class:e.getCellCls(t),onClick:function(){return e.handleClick("minutes",t)}},[e.padTime(t.text)]),[[l.vShow,!t.hide]])}))])]),(0,l.withDirectives)((0,l.createVNode)("div",{class:"bk-time-picker-cells-list",ref:"secondsRef",style:this.styles},[(0,l.createVNode)("ul",{class:"bk-time-picker-cells-ul"},[this.secondsList.map((function(t){return(0,l.withDirectives)((0,l.createVNode)("li",{class:e.getCellCls(t),onClick:function(){return e.handleClick("seconds",t)}},[e.padTime(t.text)]),[[l.vShow,!t.hide]])}))])]),[[l.vShow,this.showSeconds]])])}});var de={disabledDate:{type:Function,default:function(){return!1}},steps:{type:Array,default:function(){return[]}},format:{type:String,default:"HH:mm:ss"},value:{type:Array,required:!0},confirm:{type:Boolean,default:!1}};const fe=(0,l.defineComponent)({name:"TimePickerPanel",props:Object.assign(Object.assign(Object.assign({},ae),le),de),emits:["pick","pick-click"],setup:function(t,n){var r=this,a=n.emit,o=(0,l.reactive)({date:t.value[0]||I(),showDate:!1}),c=(0,l.inject)(U),u=(0,l.ref)(null),s=(0,l.computed)((function(){return!(t.format||"").match(/mm$/)})),d=(0,l.computed)((function(){return R.format(c.panelDate,t.format)})),f=(0,l.computed)((function(){return t.value[0]?["getHours","getMinutes","getSeconds"].map((function(e){return o.date[e]()})):[]})),p=(0,l.computed)((function(){var e=["disabledHours","disabledMinutes","disabledSeconds"];if(t.disabledDate===function(){return!t.value[0]})return e.reduce((function(e,t){return e[t]=r[t],e}),{});var n=[24,60,60],a=["Hours","Minutes","Seconds"].map((function(e){return t["disabled".concat(e)]})).map((function(e,r){for(var a=n[r],l=e,c=function(e){var n=f.value.map((function(t,n){return n===r?e:t})),a=te.apply(void 0,[o.date].concat(i(n)));t.disabledDate(a,!0)&&l.push(e)},u=0;u<a;u+=t.steps[r]||1)c(u);return l.filter((function(e,t,n){return n.indexOf(e)===t}))}));return e.reduce((function(e,t,n){return e[t]=a[n],e}),{})}));return(0,l.watch)((function(){return t.value}),(function(e){var t=e[0]||I();t=new Date(t),o.date=t})),(0,l.onMounted)((function(){c&&"DatePanel"===c.parentName&&(o.showDate=!0)})),Object.assign(Object.assign({},(0,l.toRefs)(o)),{visibleDate:d,showSeconds:s,timeSlots:f,disabledHMS:p,timeSpinnerRef:u,handlePickClick:function(){a("pick-click")},handleChange:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=new Date(o.date);Object.keys(t).forEach((function(n){return r["set".concat((0,e.capitalize)(n))](t[n])})),n&&a("pick",r,!0,"time")}})},render:function(){return(0,l.createVNode)("div",{class:"bk-picker-panel-body-wrapper",onMousedown:function(e){e.preventDefault()}},[(0,l.createVNode)("div",{class:"bk-picker-panel-body",style:{width:"".concat(this.width,"px")}},[this.showDate?(0,l.createVNode)("div",{class:"bk-time-picker-header"},[this.visibleDate]):"",(0,l.createVNode)("div",{class:"bk-picker-panel-content"},[(0,l.createVNode)(se,{ref:"timeSpinnerRef",showSeconds:this.showSeconds,steps:this.steps,hours:this.timeSlots[0],minutes:this.timeSlots[1],seconds:this.timeSlots[2],disabledHours:this.disabledHMS.disabledHours,disabledMinutes:this.disabledHMS.disabledMinutes,disabledSeconds:this.disabledHMS.disabledSeconds,hideDisabledOptions:this.hideDisabledOptions,"onPick-click":this.handlePickClick,onChange:this.handleChange},null)])])])}});var pe={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},format:{type:String,default:"yyyy-MM-dd"},disabledDate:{type:Function,default:function(){return!1}}};const he=(0,l.defineComponent)({name:"DatePanel",props:pe,emits:["pick","pick-success","pick-clear","pick-click","selection-mode-change"],setup:function(e,t){var n=this,r=t.slots,i=t.emit,a=function(e){return e.match(/^time/)?"time-picker":"".concat(e,"-table")},o=e.modelValue.slice().sort(),c=(0,l.reactive)({currentView:e.selectionMode||"date",pickerTable:a(e.selectionMode),dates:o,panelDate:e.startDate||o[0]||new Date}),u=(0,l.getCurrentInstance)().proxy;(0,l.provide)(U,{panelDate:c.panelDate,parentName:u.$options.name});var s=(0,l.ref)(null),d=(0,l.ref)(null),f=(0,l.ref)(null);(0,l.watch)((function(){return c.currentView}),(function(e){console.error(11111,e),i("selection-mode-change",e),"time"===c.currentView&&(0,l.nextTick)((function(){s.value.timeSpinnerRef.updateScroll()}))})),(0,l.watch)((function(){return e.selectionMode}),(function(e){c.currentView=e,c.pickerTable=a(e)}));var p=function(){setTimeout((function(){c.currentView=e.selectionMode}),500)},h=function(e){c.panelDate=e,"year-table"===c.pickerTable?c.pickerTable="month-table":c.pickerTable=a(c.currentView)},m=function(t,n){var r;r="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=[r],i("pick",r,!1,n||e.selectionMode)},v=function(){p(),i("pick-success")},y=(0,l.computed)((function(){return c.pickerTable==="".concat(c.currentView,"-table")?m:h})),b=(0,l.computed)((function(){var e=c.panelDate,t=Q("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=a(t)}),n}))}})),g=(0,l.computed)((function(){return"year"===b.value.labels[0].type||"date"===c.currentView})),k=(0,l.computed)((function(){return"year"===b.value.labels[1].type||"date"===c.currentView})),w=(0,l.computed)((function(){return"time"===c.currentView})),D=(0,l.computed)((function(){return!!r.shortcuts})),S=(0,l.computed)((function(){return!c.dates[0]}));return Object.assign(Object.assign({},(0,l.toRefs)(c)),{panelPickerHandlers:y,datePanelLabel:b,showLabelFirst:g,showLabelSecond:k,handleShortcutClick:function(t){t.value&&i("pick",t.value(),!1,void 0,t),t.onClick&&t.onClick(n),e.shortcutClose&&v()},changeYear:function(t){"year"===e.selectionMode||"year-table"===c.pickerTable?c.panelDate=new Date(c.panelDate.getFullYear()+10*t,0,1):c.panelDate=G(c.panelDate,12*t)},changeMonth:function(e){c.panelDate=G(c.panelDate,e)},reset:function(){c.currentView=e.selectionMode,c.pickerTable=a(c.currentView)},isTime:w,hasShortcuts:D,timeDisabled:S,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())},handleToggleTime:function(){c.currentView="time"===c.currentView?"date":"time"},handlePickSuccess:v,handlePickClear:function(){p(),i("pick-clear")},handlePick:m,handlePickClick:function(){i("pick-click")},timePickerRef:s})},render:function(){var e,t,n,r=this;return(0,l.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,l.createVNode)("div",{class:"bk-picker-panel-sidebar"},[this.shortcuts.map((function(e){return(0,l.createVNode)("div",{class:"bk-picker-panel-shortcut",onClick:function(){return r.handleShortcutClick(e)}},[e.text])}))]):"",(0,l.createVNode)("div",{class:"bk-picker-panel-body",style:"width: 261px;"},[(0,l.withDirectives)((0,l.createVNode)("div",{class:"bk-date-picker-header"},[(0,l.createVNode)("span",{class:Z("prev","-double"),onClick:function(){return r.changeYear(-1)}},[(0,l.createVNode)(c.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?(0,l.withDirectives)((0,l.createVNode)("span",{class:Z("prev"),onClick:function(){return r.changeMonth(-1)}},[(0,l.createVNode)(c.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[l.vShow,"date"===this.currentView]]):"",this.datePanelLabel&&Object.keys(this.datePanelLabel).length>0?(0,l.createVNode)("span",null,[(0,l.withDirectives)((0,l.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return r.datePanelLabel.labels[0].handler}},[this.datePanelLabel.labels[0].label]),[[l.vShow,this.showLabelFirst]]),"date"===this.currentView?" ".concat(this.datePanelLabel.separator," "):" ",(0,l.withDirectives)((0,l.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return r.datePanelLabel.labels[1].handler}},[this.datePanelLabel.labels[1].label]),[[l.vShow,this.showLabelSecond]])]):"",(0,l.createVNode)("span",{class:Z("next","-double"),onClick:function(){return r.changeYear(1)}},[(0,l.createVNode)(c.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?(0,l.withDirectives)((0,l.createVNode)("span",{class:Z("next"),onClick:function(){return r.changeMonth(1)}},[(0,l.createVNode)(c.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[l.vShow,"date"===this.currentView]]):""]),[[l.vShow,"time"!==this.currentView]]),(0,l.createVNode)("div",{class:"bk-picker-panel-content"},["time"!==this.currentView?"date-table"===r.pickerTable?(0,l.createVNode)(re,{tableDate:r.panelDate,disableDate:r.disableDate,selectionMode:r.selectionMode,modelValue:r.dates,focusedDate:r.focusedDate,onPick:r.panelPickerHandlers},null):null:(0,l.createVNode)(fe,{ref:"timePickerRef",value:this.dates,format:this.format,disabledDate:this.disabledDate,onPick:this.handlePick,"onPick-clear":this.handlePickClear,"onPick-success":this.handlePickSuccess},null)]),this.confirm?(0,l.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,l.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 me={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[]}},shortcutClose:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},splitPanels:{type:Boolean,default:!0},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 ve=(0,l.defineComponent)({name:"DateRangePanel",props:me,emits:["pick","pick-success"],setup:function(e,t){var n=t.slots,i=t.emit,a=e.modelValue.map((function(e){return e||I()})),o=r(a,2),c=o[0],u=o[1],s=e.startDate?e.startDate:c,d=(0,l.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,l.ref)(null),h=(0,l.ref)(null),m=function t(n,r,i){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],l=new Date(d["".concat(n,"PanelDate")]);if(l["set".concat(r)](l["get".concat(r)]()+i),d["".concat(n,"PanelDate")]=l,a)if(e.splitPanels){var o="left"===n?"right":"left";"left"===n&&d.leftPanelDate>=d.rightPanelDate&&t(o,r,1),"right"===n&&d.rightPanelDate<=d.leftPanelDate&&t(o,r,-1)}else{var c="left"===n?"right":"left",u=d["".concat(c,"PanelDate")],s=new Date(u);if("Month"===r){var f=new Date(s.getFullYear(),s.getMonth()+i+1,0).getDate();s.setDate(Math.min(f,s.getDate()))}s["set".concat(r)](s["get".concat(r)]()+i),d["".concat(c,"PanelDate")]=s}},v=function(e){d["".concat(e,"PickerTable")]="year-table"},y=function(e){d["".concat(e,"PickerTable")]="month-table"},b=function(e){var t=d["".concat(e,"PanelDate")],n=Q("zh-CN","[yyyy]-[mm]",t),r=n.labels;return{separator:n.separator,labels:r.map((function(t){var n,r,i=t;return i.handler=(n=t.type,r="month"===n?y:v,function(){return r(e)}),i}))}},g=function(t,n){if(console.warn("handleRangePick"),d.rangeState.selecting||"time"===d.currentView){if("time"===d.currentView)d.dates=t;else{var a=r([d.rangeState.from,t].sort(f),2),l=a[0],o=a[1],c="upToNow"===n?new Date:new Date(new Date(new Date(o.setHours(23)).setMinutes(59)).setSeconds(59));d.dates=[l,c],d.rangeState={from:l,to:c,selecting:!1}}!function(t,n){i("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 r=d["".concat(t,"PickerTable")];if(d["".concat(t,"PickerTable")]="year-table"===r?"month-table":"".concat(d.currentView,"-table"),!e.splitPanels){var i="left"===t?"right":"left";d["".concat(i,"PanelDate")]=n,m(i,"Month","left"===i?-1:1,!1)}};(0,l.watch)((function(){return e.selectionMode}),(function(e){d.currentView=e||"range"}));var w=(0,l.computed)((function(){return"time"===d.currentView})),D=(0,l.computed)((function(){return b("left")})),S=(0,l.computed)((function(){return b("right")})),V=(0,l.computed)((function(){return d.leftPickerTable.split("-").shift()})),M=(0,l.computed)((function(){return d.rightPickerTable.split("-").shift()})),C=(0,l.computed)((function(){return"year"===D.value.labels[0].type||"date"===d.currentView})),N=(0,l.computed)((function(){return"year"===D.value.labels[1].type||"date"===d.currentView})),P=(0,l.computed)((function(){return"year"===S.value.labels[0].type||"date"===d.currentView})),T=(0,l.computed)((function(){return"year"===S.value.labels[1].type||"date"===d.currentView})),x=(0,l.computed)((function(){var e="".concat(d.currentView,"-table");return{left:d.leftPickerTable!==e,right:d.rightPickerTable!==e}})),O=(0,l.computed)((function(){return{left:x.value.left?k.bind("left"):g,right:x.value.right?k.bind("right"):g}})),H=(0,l.computed)((function(){var t;return n.shortcuts||(null===(t=e.shortcuts)||void 0===t?void 0:t.length)}));return Object.assign(Object.assign({},(0,l.toRefs)(d)),{isTime:w,hasShortcuts:H,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:D,rightDatePanelLabel:S,leftDatePanelView:V,rightDatePanelView:M,leftShowLabelFirst:C,leftShowLabelSecond:N,rightShowLabelFirst:P,rightShowLabelSecond:T,preSelecting:x,panelPickerHandlers:O,handleShortcutClick:function(t,n){if(!(null==t?void 0:t.value))return!1;t.onClick&&t.onClick(t,n);var a="function"==typeof t.value?t.value():t.value,l=r(a,2),o=l[0],c=l[1];d.rangeState.from=o,d.rangeState.to=c,d.dates=[o,c],i("pick",a,!1,"shortcut",t),e.shortcutClose&&i("pick-success")},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:g,handleChangeRange:function(e){d.rangeState.to=e}})},render:function(){var e=this;return(0,l.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,l.createVNode)("div",{class:["bk-picker-panel-body",this.showTime?"bk-picker-panel-body-time":"bk-picker-panel-body-date"]},[(0,l.withDirectives)((0,l.createVNode)("div",{class:"bk-picker-panel-content bk-picker-panel-content-left",style:"width: 261px;"},[(0,l.withDirectives)((0,l.createVNode)("div",{class:"bk-date-picker-header"},[(0,l.createVNode)("span",{class:Z("prev","-double"),onClick:function(){return e.prevYear("left")}},[(0,l.createVNode)(c.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.leftPickerTable?(0,l.withDirectives)((0,l.createVNode)("span",{class:Z("prev"),onClick:function(){return e.prevMonth("left")}},[(0,l.createVNode)(c.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[l.vShow,"date"===this.currentView]]):"",this.leftDatePanelLabel&&Object.keys(this.leftDatePanelLabel).length>0?(0,l.createVNode)("span",null,[(0,l.withDirectives)((0,l.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return e.leftDatePanelLabel.labels[0].handler}},[this.leftDatePanelLabel.labels[0].label]),[[l.vShow,this.leftShowLabelFirst]]),"date"===this.leftDatePanelView?" ".concat(this.leftDatePanelLabel.separator," "):" ",(0,l.withDirectives)((0,l.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return e.leftDatePanelLabel.labels[1].handler}},[this.leftDatePanelLabel.labels[1].label]),[[l.vShow,this.leftShowLabelSecond]])]):"",this.splitPanels||"date-table"!==this.leftPickerTable?(0,l.createVNode)("span",{class:Z("next","-double"),onClick:function(){return e.nextYear("left")}},[(0,l.createVNode)(c.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels||"date-table"===this.leftPickerTable?(0,l.withDirectives)((0,l.createVNode)("span",{class:Z("next"),onClick:function(){return e.nextMonth("left")}},[(0,l.createVNode)(c.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[l.vShow,"date"===this.currentView]]):""]),[[l.vShow,"time"!==this.currentView]]),"time"!==this.currentView?"date-table"===e.leftPickerTable?(0,l.createVNode)(re,{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:""]),[[l.vShow,!this.isTime]]),(0,l.withDirectives)((0,l.createVNode)("div",{class:"bk-picker-panel-content bk-picker-panel-content-right",style:"width: 261px;"},[(0,l.withDirectives)((0,l.createVNode)("div",{class:"bk-date-picker-header"},[this.splitPanels||"date-table"!==this.rightPickerTable?(0,l.createVNode)("span",{class:Z("prev","-double"),onClick:function(){return e.prevYear("right")}},[(0,l.createVNode)(c.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels&&"date-table"===this.rightPickerTable?(0,l.withDirectives)((0,l.createVNode)("span",{class:Z("prev","-double"),onClick:function(){return e.prevMonth("right")}},[(0,l.createVNode)(c.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[l.vShow,"date"===this.currentView]]):"",this.rightDatePanelLabel&&Object.keys(this.rightDatePanelLabel).length>0?(0,l.createVNode)("span",null,[(0,l.withDirectives)((0,l.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return e.rightDatePanelLabel.labels[0].handler}},[this.rightDatePanelLabel.labels[0].label]),[[l.vShow,this.rightShowLabelFirst]]),"date"===this.rightDatePanelView?" ".concat(this.rightDatePanelLabel.separator," "):" ",(0,l.withDirectives)((0,l.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return e.rightDatePanelLabel.labels[1].handler}},[this.rightDatePanelLabel.labels[1].label]),[[l.vShow,this.rightShowLabelSecond]])]):"",this.upToNow?(e.rangeState.selecting||"time"===e.currentView)&&e.upToNowEnable?(0,l.createVNode)("span",{class:"up-to-now",onClick:function(){return e.handleRangePick(new Date,"upToNow")}},[(0,l.createTextVNode)("至今")]):(0,l.createVNode)("span",{class:"up-to-now disabled"},[(0,l.createTextVNode)("至今")]):"",(0,l.createVNode)("span",{class:Z("next","-double"),onClick:function(){return e.nextYear("right")}},[(0,l.createVNode)(c.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.rightPickerTable?(0,l.withDirectives)((0,l.createVNode)("span",{class:Z("next"),onClick:function(){return e.nextMonth("right")}},[(0,l.createVNode)(c.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[l.vShow,"date"===this.currentView]]):""]),[[l.vShow,"time"!==this.currentView]]),"time"!==this.currentView?"date-table"===e.rightPickerTable?(0,l.createVNode)(re,{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:""]),[[l.vShow,!this.isTime]])]),this.hasShortcuts?(0,l.createVNode)("div",{class:"bk-picker-panel-sidebar"},[this.$slots.shortcuts?"function"==typeof this.$slots.shortcuts?this.$slots.shortcuts():this.$slots.shortcuts:this.shortcuts.length?(0,l.createVNode)("div",{class:"bk-picker-panel-shortcuts"},[this.shortcuts.map((function(t,n){return(0,l.createVNode)("div",{key:n,class:"shortcuts-item",onClick:function(){return e.handleShortcutClick(t,n)}},[t.text])}))]):""]):null])}}),ye=(0,l.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.value||t.modelValue:[t.value||t.modelValue],p=z(f)?d:$(t.value||t.modelValue,t.type,t.multiple,t.format),h=null;-1!==t.shortcutSelectedIndex&&(h=t.shortcuts[t.shortcutSelectedIndex]||null)&&(p=h.value());var m=(0,l.reactive)({showClose:!1,visible:!1,internalValue:p,disableClickOutSide:!1,disableCloseUnderTransfer:!1,selectionMode:"date",forceInputRerender:1,isFocused:!1,focusedDate:p[0]||t.startDate||new Date,focusedTime:{column:0,picker:0,time:p.map(q),active:!1},internalFocus:!1,timeEnterMode:!0,shortcut:h,onSelectionModeChange:v});function v(e){var t=e;return e.match(/^date/)&&(t="date"),m.selectionMode=["year","month","date","time"].indexOf(t)>-1&&t,m.selectionMode}var y=(0,l.computed)((function(){if(t.multiple)return m.internalValue.slice();var e=t.type.includes("range"),n=m.internalValue.map((function(e){return e instanceof Date?new Date(e):e||""}));return t.type.match(/^time/)&&(n=n.map((function(e){return E(e,t.type,t.multiple,t.format)}))),e||t.multiple?n:n[0]})),b=(0,l.computed)((function(){return t.type.match(/^time/)?y.value:t.multiple?E(y.value,t.type,t.multiple,t.format):Array.isArray(y.value)?y.value.map((function(e){return E(e,t.type,t.multiple,t.format)})):E(y.value,t.type,t.multiple,t.format)})),g=(0,l.computed)((function(){return"daterange"===t.type||"datetimerange"===t.type?"DateRangePanel":"DatePanel"})),k=(0,l.computed)((function(){return null===t.open?m.visible:t.open})),w=(0,l.computed)((function(){return E(m.internalValue,t.type,t.multiple,t.format)})),D=(0,l.computed)((function(){var e;return(null===(e=m.shortcut)||void 0===e?void 0:e.text)&&t.useShortcutText?m.shortcut.text:w.value})),S=(0,l.computed)((function(){return!!o.trigger||"datetime"===t.type||"datetimerange"===t.type||t.multiple})),V=(0,l.computed)((function(){return!!o.header})),M=(0,l.computed)((function(){return!!o.footer})),C=(0,l.computed)((function(){return!!o.shortcuts})),N=(0,l.computed)((function(){var e="";return"medium"===t.fontSize?e="medium-font":"large"===t.fontSize&&(e="large-font"),e})),P=(0,l.computed)((function(){var e="";return"medium"===t.fontSize?e="medium-width":"large"===t.fontSize&&(e="large-width"),e})),T=(0,l.computed)((function(){var e;return!(!(null===(e=m.shortcut)||void 0===e?void 0:e.text)||!t.useShortcutText)||!t.editable||t.readonly})),x=(0,l.computed)((function(){return t.options})),O=(0,l.computed)((function(){return"RangeTimePickerPanel"===g.value&&t.allowCrossDay})),H=(0,l.ref)(null);(0,l.watch)((function(){return m.visible}),(function(e){var t,n;!1===e&&(null===(t=R.value)||void 0===t||t.destoryDropdown()),null===(n=R.value)||void 0===n||n.updateDropdown(),c("open-change",e)}));var R=(0,l.ref)(null);(0,l.watch)((function(){return t.modelValue}),(function(e){var n;m.internalValue=$(e,t.type,t.multiple,t.format),t.withValidate&&(null===(n=null==u?void 0:u.validate)||void 0===n||n.call(u,"change"))})),(0,l.watch)((function(){return t.open}),(function(e){m.visible=!0===e})),(0,l.watch)((function(){return t.type}),(function(e){v(e)})),(0,l.watch)((function(){return y}),(function(e,t){(JSON.stringify(e)!==JSON.stringify(t)||a(e)!==a(t))&&c("input",e)})),(0,l.onMounted)((function(){t.type.indexOf("date"),m.timeEnterMode=!0;var e=t.modelValue,n=y.value;a(e)===a(n)&&JSON.stringify(e)===JSON.stringify(n)||c("input",y.value),null!==t.open&&(m.visible=t.open),(0,l.provide)(J,{props:t,focus:function(){var e;null===(e=null==H?void 0:H.value)||void 0===e||e.focus()}})}));var F=(0,l.ref)(null),j=function(e){var t;if(m.disableCloseUnderTransfer)return m.disableCloseUnderTransfer=!1,!1;if(e&&"mousedown"===e.type&&m.visible)return e.preventDefault(),void e.stopPropagation();if(m.visible){var n=null===(t=null==F?void 0:F.value)||void 0===t?void 0:t.$el;if(e&&n&&n.contains(e.target))return;return m.visible=!1,null==e||e.preventDefault(),void(null==e||e.stopPropagation())}m.isFocused=!1,m.disableClickOutSide=!1},B=function(e){(0,l.nextTick)((function(){var n;c("change",b.value,e),c("update:modelValue",y.value),t.type.indexOf("time")<0&&(null===(n=null==H?void 0:H.value)||void 0===n||n.blur())}))},L=function(){var e;null===(e=null==F?void 0:F.value)||void 0===e||e.reset()},A=function(){var e;m.visible=!1,(0,l.nextTick)((function(){c("pick-success")})),null===(e=null==H?void 0:H.value)||void 0===e||e.blur(),L()},I=(0,l.ref)(null);return Object.assign(Object.assign({},(0,l.toRefs)(m)),{panel:g,publicStringValue:b,opened:k,visualValue:w,displayValue:D,isConfirm:S,hasHeader:V,hasFooter:M,hasShortcuts:C,fontSizeCls:N,longWidthCls:P,localReadonly:T,allowCrossDayProp:O,ownPickerProps:x,pickerDropdownRef:R,inputRef:H,triggerRef:I,pickerPanelRef:F,handleClose:j,handleIconClick:function(){var e,t;null===(e=null==H?void 0:H.value)||void 0===e||e.focus(),null===(t=null==H?void 0:H.value)||void 0===t||t.click()},handleInputMouseenter:function(){t.readonly||t.disabled||(null==w?void 0:w.value)&&(m.showClose=!0)},handleInputMouseleave:function(e){m.showClose=!1},handleFocus:function(e){t.readonly||(m.isFocused=!0,e&&"focus"===e.type||t.disabled||(m.visible=!0))},handleBlur:function(e){var n,r;m.internalFocus?m.internalFocus=!1:m.visible?e.preventDefault():(m.isFocused=!1,v(t.type),m.internalValue=m.internalValue.slice(),L(),null===(n=null==F?void 0:F.value)||void 0===n||n.onToggleVisibility(!1),null===(r=null==u?void 0:u.validate)||void 0===r||r.call(u,"blur"))},handleKeydown:function(e){var t=e.keyCode;if(9===t&&m.visible)if(e.stopPropagation(),e.preventDefault(),S.value){var n=R.value.$el.querySelectorAll(".bk-picker-confirm > *");m.internalFocus=!0,i(n)[e.shiftKey?"pop":"shift"]().focus()}else j();var r=[37,38,39,40];m.visible||!r.includes(t)?(27===t&&m.visible&&(e.stopPropagation(),j()),r.includes(t)&&m.focusedTime.active&&e.preventDefault()):m.visible=!0},handleInputChange:function(e){var n,r=t.type.includes("range")||t.multiple,i=w.value,a=e.target.value,l=$(a,t.type,t.multiple,t.format),o=r?l:l[0],c=null===(n=t.disableDate)||void 0===n?void 0:n.call(t,o),u=l.reduce((function(e,t){return e&&t instanceof Date}),!0);a!==i&&!c&&u?(B(t.type),m.internalValue=l):m.forceInputRerender=m.forceInputRerender+1},handleClear:function(){m.visible=!1,m.internalValue=m.internalValue.map((function(){return null})),c("clear"),B(t.type),L(),m.showClose=!1,m.shortcut=null,setTimeout((function(){return v(t.type)}),500)},onPick:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0,o=e;if(t.multiple){var u=o.getTime(),s=m.internalValue.findIndex((function(e){return e&&e.getTime()===u})),d=[].concat(i(m.internalValue),[o]).filter(Boolean),f=d.map((function(e){return e.getTime()})).filter((function(e,t,n){return n.indexOf(e)===t&&t!==s}));m.internalValue=f.map((function(e){return new Date(e)}))}else o=$(e,t.type,t.multiple,t.format),m.internalValue=Array.isArray(o)?o:[o];if(m.internalValue[0]){var p=r(m.internalValue,1),h=p[0];m.focusedDate=h}m.focusedTime=Object.assign(Object.assign({},m.focusedTime),{time:m.internalValue.map(q)}),S.value||(v(t.type),m.visible=n),"upToNow"===a&&"daterange"===t.type&&A(),m.shortcut=l,B(a);var y=t.shortcuts.findIndex((function(e){return e===m.shortcut}));c("shortcut-change",m.shortcut,y)},onPickSuccess:A})},render:function(){var e,t,n,r,i,a,o,u,s,d=this,p=(0,l.createVNode)("div",null,[(0,l.createVNode)("span",{class:["icon-wrapper",this.disabled?"disabled":""],onClick:this.handleIconClick},["time"===this.type||"timerange"===this.type?(0,l.createVNode)("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[(0,l.createVNode)("g",{id:"time"},[(0,l.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,l.createVNode)("polygon",{fill:"#c4c6cc",points:"512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"},null)])]):(0,l.createVNode)("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[(0,l.createVNode)("g",{id:"date"},[(0,l.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,l.createVNode)("rect",{x:"416",y:"128",fill:"#c4c6cc",width:"192",height:"64"},null),(0,l.createVNode)("rect",{x:"288",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),(0,l.createVNode)("rect",{x:"672",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),(0,l.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,l.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,l.createVNode)(c.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,{change:d.onPick}))||null}}:{};return(0,l.withDirectives)((0,l.createVNode)("div",{class:["bk-date-picker","datetimerange"===this.type?"long":"",this.longWidthCls]},[(0,l.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,l.createVNode)(l.Teleport,{to:"body",disabled:!this.appendToBody},{default:function(){return[(0,l.createVNode)(l.Transition,{name:"bk-fade-down-transition"},{default:function(){return[(0,l.withDirectives)((0,l.createVNode)(f,{class:[d.appendToBody?"bk-date-picker-transfer":""],ref:"pickerDropdownRef",triggerRef:d.triggerRef,placement:d.placement,extPopoverCls:d.extPopoverCls,appendToBody:d.appendToBody},{default:function(){return[d.hasHeader?(0,l.createVNode)("div",{class:["bk-date-picker-top-wrapper",d.headerSlotCls]},[null!==(a=null===(i=(r=d.$slots).header)||void 0===i?void 0:i.call(r))&&void 0!==a?a:null]):null,"DateRangePanel"===d.panel?(0,l.createVNode)(ve,{ref:"pickerPanelRef",type:d.type,confirm:d.isConfirm,shortcuts:d.shortcuts,shortcutClose:d.shortcutClose,modelValue:d.internalValue,selectionMode:d.selectionMode,startDate:d.startDate,disableDate:d.disableDate,focusedDate:d.focusedDate,onPick:d.onPick,"onPick-success":d.onPickSuccess,"onSelection-mode-change":d.onSelectionModeChange},h):(0,l.createVNode)(he,{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,"onSelection-mode-change":d.onSelectionModeChange},h),d.hasFooter?(0,l.createVNode)("div",{class:["bk-date-picker-footer-wrapper",d.footerSlotCls]},[null!==(s=null===(u=(o=d.$slots).footer)||void 0===u?void 0:u.call(o))&&void 0!==s?s:null]):null]}}),[[l.vShow,d.opened]])]}})]}})]),[[(0,l.resolveDirective)("clickoutside"),this.handleClose]])}}),be=(0,l.defineComponent)({name:"TimePicker",directives:{clickoutside:o.clickoutside},props:Object.assign(Object.assign(Object.assign({},ae),oe),le),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=z((s?t.modelValue:[t.modelValue])||[])?d:$(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,l.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(q),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 v=(0,l.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 E(e,t.type,t.multiple,t.format)}))),e||t.multiple?n:n[0]})),y=(0,l.computed)((function(){return t.type.match(/^time/)?v.value:t.multiple?E(v.value,t.type,t.multiple,t.format):Array.isArray(v.value)?v.value.map((function(e){return E(e,t.type,t.multiple,t.format)})):E(v.value,t.type,t.multiple,t.format)})),b=(0,l.computed)((function(){return"timerange"===t.type?"RangeTimePickerPanel":"TimePickerPanel"})),g=(0,l.computed)((function(){return null===t.open?h.visible:t.open})),k=(0,l.computed)((function(){return E(h.internalValue,t.type,t.multiple,t.format)})),w=(0,l.computed)((function(){var e;return(null===(e=h.shortcut)||void 0===e?void 0:e.text)&&t.useShortcutText?h.shortcut.text:k.value})),D=(0,l.computed)((function(){return!!o.trigger||"datetime"===t.type||"datetimerange"===t.type||t.multiple})),S=(0,l.computed)((function(){return!!o.header})),V=(0,l.computed)((function(){return!!o.footer})),M=(0,l.computed)((function(){return!!o.shortcuts})),C=(0,l.computed)((function(){var e="";return"medium"===t.fontSize?e="medium-font":"large"===t.fontSize&&(e="large-font"),e})),N=(0,l.computed)((function(){var e="";return"medium"===t.fontSize?e="medium-width":"large"===t.fontSize&&(e="large-width"),e})),P=(0,l.computed)((function(){var e;return!(!(null===(e=h.shortcut)||void 0===e?void 0:e.text)||!t.useShortcutText)||!t.editable||t.readonly})),T=(0,l.computed)((function(){return{disabledHours:t.disabledHours,disabledMinutes:t.disabledMinutes,disabledSeconds:t.disabledSeconds,hideDisabledOptions:t.hideDisabledOptions}})),x=(0,l.computed)((function(){return"RangeTimePickerPanel"===b.value&&t.allowCrossDay})),O=(0,l.ref)(null),H=(0,l.getCurrentInstance)().proxy;(0,l.watch)((function(){return h.visible}),(function(e){e&&(0,l.nextTick)((function(){K(H,"TimeSpinner").forEach((function(e){return e.updateScroll()}))}))}));var R=(0,l.ref)(null);(0,l.watch)((function(){return t.modelValue}),(function(e){var n;h.internalValue=$(e,t.type,t.multiple,t.format),t.withValidate&&(null===(n=null==u?void 0:u.validate)||void 0===n||n.call(u,"change"))})),(0,l.watch)((function(){return t.open}),(function(e){h.visible=!0===e})),(0,l.watch)((function(){return t.type}),(function(e){m(e)})),(0,l.watch)((function(){return v}),(function(e,t){(JSON.stringify(e)!==JSON.stringify(t)||a(e)!==a(t))&&c("input",e)})),(0,l.onMounted)((function(){t.type.indexOf("date"),h.timeEnterMode=!0;var e=t.modelValue,n=v.value;a(e)===a(n)&&JSON.stringify(e)===JSON.stringify(n)||c("input",v.value),null!==t.open&&(h.visible=t.open),(0,l.provide)(J,{props:t,focus:function(){var e;null===(e=null==O?void 0:O.value)||void 0===e||e.focus()}})}));var F=(0,l.ref)(null),j=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==F?void 0:F.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},B=function(e){(0,l.nextTick)((function(){var n;c("change",y.value,e),c("update:modelValue",v.value),t.type.indexOf("time")<0&&(null===(n=null==O?void 0:O.value)||void 0===n||n.blur())}))},L=function(){var e;null===(e=null==F?void 0:F.value)||void 0===e||e.reset()},A=function(){var e;h.visible=!1,(0,l.nextTick)((function(){c("pick-success")})),null===(e=null==O?void 0:O.value)||void 0===e||e.blur(),L()},I=(0,l.ref)(null);return console.error(b),console.error(b.value),Object.assign(Object.assign({},(0,l.toRefs)(h)),{panel:b,publicStringValue:y,opened:g,visualValue:k,displayValue:w,isConfirm:D,hasHeader:S,hasFooter:V,hasShortcuts:M,fontSizeCls:C,longWidthCls:N,localReadonly:P,allowCrossDayProp:x,ownPickerProps:T,pickerDropdownRef:R,inputRef:O,triggerRef:I,pickerPanelRef:F,handleClose:j,handleIconClick:function(){var e,t;null===(e=null==O?void 0:O.value)||void 0===e||e.focus(),null===(t=null==O?void 0:O.value)||void 0===t||t.click()},handleInputMouseenter:function(){t.readonly||t.disabled||(null==k?void 0:k.value)&&(h.showClose=!0)},handleInputMouseleave:function(e){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,r;h.internalFocus?h.internalFocus=!1:h.visible?e.preventDefault():(h.isFocused=!1,m(t.type),h.internalValue=h.internalValue.slice(),L(),null===(n=null==F?void 0:F.value)||void 0===n||n.onToggleVisibility(!1),null===(r=null==u?void 0:u.validate)||void 0===r||r.call(u,"blur"))},handleKeydown:function(e){var t=e.keyCode;if(9===t&&h.visible)if(e.stopPropagation(),e.preventDefault(),D.value){var n=R.value.$el.querySelectorAll(".bk-picker-confirm > *");h.internalFocus=!0,i(n)[e.shiftKey?"pop":"shift"]().focus()}else j();var r=[37,38,39,40];h.visible||!r.includes(t)?(27===t&&h.visible&&(e.stopPropagation(),j()),r.includes(t)&&h.focusedTime.active&&e.preventDefault()):h.visible=!0},handleInputChange:function(e){var n,r=t.type.includes("range")||t.multiple,i=k.value,a=e.target.value,l=$(a,t.type,t.multiple,t.format),o=r?l:l[0],c=null===(n=t.disableDate)||void 0===n?void 0:n.call(t,o),u=l.reduce((function(e,t){return e&&t instanceof Date}),!0);a!==i&&!c&&u?(B(t.type),h.internalValue=l):h.forceInputRerender=h.forceInputRerender+1},handleClear:function(){h.visible=!1,h.internalValue=h.internalValue.map((function(){return null})),c("clear"),B(t.type),L(),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],a=arguments.length>2?arguments[2]:void 0,l=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(i(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=$(e,t.type,t.multiple,t.format),h.internalValue=Array.isArray(o)?o:[o];if(h.internalValue[0]){var p=r(h.internalValue,1),v=p[0];h.focusedDate=v}h.focusedTime=Object.assign(Object.assign({},h.focusedTime),{time:h.internalValue.map(q)}),D.value||(m(t.type),h.visible=n),"upToNow"===a&&"daterange"===t.type&&A(),h.shortcut=l,B(a);var y=t.shortcuts.findIndex((function(e){return e===h.shortcut}));c("shortcut-change",h.shortcut,y)},onPickSuccess:A})},render:function(){var e,t,n,r,i,a,o,u,s,d=this,p=(0,l.createVNode)("div",null,[(0,l.createVNode)("span",{class:["icon-wrapper",this.disabled?"disabled":""],onClick:this.handleIconClick},["time"===this.type||"timerange"===this.type?(0,l.createVNode)("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[(0,l.createVNode)("g",{id:"time"},[(0,l.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,l.createVNode)("polygon",{fill:"#c4c6cc",points:"512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"},null)])]):(0,l.createVNode)("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[(0,l.createVNode)("g",{id:"date"},[(0,l.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,l.createVNode)("rect",{x:"416",y:"128",fill:"#c4c6cc",width:"192",height:"64"},null),(0,l.createVNode)("rect",{x:"288",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),(0,l.createVNode)("rect",{x:"672",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),(0,l.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,l.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,l.createVNode)(c.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,l.withDirectives)((0,l.createVNode)("div",{class:["bk-date-picker","datetimerange"===this.type?"long":"",this.longWidthCls]},[(0,l.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,l.createVNode)(l.Teleport,{to:"body",disabled:!this.appendToBody},{default:function(){return[(0,l.createVNode)(l.Transition,{name:"bk-fade-down-transition"},{default:function(){return[(0,l.withDirectives)((0,l.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,l.createVNode)("div",{class:["bk-date-picker-top-wrapper",d.headerSlotCls]},[null!==(a=null===(i=(r=d.$slots).header)||void 0===i?void 0:i.call(r))&&void 0!==a?a:null]):null,(0,l.createVNode)(fe,{ref:"pickerPanelRef",clearable:d.clearable,confirm:d.isConfirm,shortcuts:d.shortcuts,multiple:d.multiple,shortcutClose:d.shortcutClose,value:d.internalValue,startDate:d.startDate,disableDate:d.disableDate,onPick:d.onPick,"onPick-clear":d.handleClear,"onPick-success":d.onPickSuccess,disabledHours:d.ownPickerProps.disabledHours,disabledMinutes:d.ownPickerProps.disabledMinutes,disabledSeconds:d.ownPickerProps.disabledSeconds},h),d.hasFooter?(0,l.createVNode)("div",{class:["bk-date-picker-footer-wrapper",d.footerSlotCls]},[null!==(s=null===(u=(o=d.$slots).footer)||void 0===u?void 0:u.call(o))&&void 0!==s?s:null]):null]}}),[[l.vShow,d.opened]])]}})]}})]),[[(0,l.resolveDirective)("clickoutside"),this.handleClose]])}}),ge=(0,e.withInstall)(ye)})(),s})()));
@@ -17,6 +17,15 @@ export interface IDatePickerCtx {
17
17
  props: DatePickerProps;
18
18
  focus: () => void;
19
19
  }
20
+ export interface ITimePickerCtx {
21
+ panelDate: Date;
22
+ parentName: string;
23
+ }
20
24
  export declare type DatePickerPanelType = 'DateRangePanel' | 'DatePanel' | 'RangeTimePickerPanel' | 'TimePickerPanel';
21
25
  export declare type SelectionModeType = 'year' | 'month' | 'date' | 'time';
26
+ export interface IDisabledHMS {
27
+ disabledHours?: number[];
28
+ disabledMinutes?: number[];
29
+ disabledSeconds?: number[];
30
+ }
22
31
  export {};