bkui-vue 0.0.1-beta.37 → 0.0.1-beta.38

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 (489) hide show
  1. package/dist/index.cjs.js +57 -0
  2. package/dist/{bkui-vue.esm.js → index.esm.js} +12 -6
  3. package/dist/index.umd.js +57 -0
  4. package/dist/style.css +1 -5902
  5. package/package.json +17 -29
  6. package/README_EN.md +0 -93
  7. package/dist/bkui-vue.cjs.js +0 -20346
  8. package/dist/bkui-vue.umd.js +0 -20349
  9. package/lib/alert/alert.css +0 -75
  10. package/lib/alert/alert.d.ts +0 -62
  11. package/lib/alert/alert.js +0 -1
  12. package/lib/alert/alert.less +0 -110
  13. package/lib/alert/alert.variable.css +0 -168
  14. package/lib/alert/index.d.ts +0 -180
  15. package/lib/animate-number/animate-number.d.ts +0 -27
  16. package/lib/animate-number/animate-number.js +0 -1
  17. package/lib/animate-number/index.d.ts +0 -97
  18. package/lib/backtop/backtop.css +0 -42
  19. package/lib/backtop/backtop.d.ts +0 -60
  20. package/lib/backtop/backtop.js +0 -1
  21. package/lib/backtop/backtop.less +0 -18
  22. package/lib/backtop/backtop.variable.css +0 -135
  23. package/lib/backtop/index.d.ts +0 -166
  24. package/lib/badge/badge.css +0 -121
  25. package/lib/badge/badge.d.ts +0 -91
  26. package/lib/badge/badge.js +0 -1
  27. package/lib/badge/badge.less +0 -137
  28. package/lib/badge/badge.variable.css +0 -214
  29. package/lib/badge/index.d.ts +0 -217
  30. package/lib/breadcrumb/breadcrumb-item.d.ts +0 -36
  31. package/lib/breadcrumb/breadcrumb.css +0 -68
  32. package/lib/breadcrumb/breadcrumb.d.ts +0 -54
  33. package/lib/breadcrumb/breadcrumb.js +0 -1
  34. package/lib/breadcrumb/breadcrumb.less +0 -65
  35. package/lib/breadcrumb/breadcrumb.variable.css +0 -161
  36. package/lib/breadcrumb/index.d.ts +0 -194
  37. package/lib/breadcrumb/props.d.ts +0 -4
  38. package/lib/button/button-group.d.ts +0 -6
  39. package/lib/button/button.css +0 -265
  40. package/lib/button/button.d.ts +0 -143
  41. package/lib/button/button.js +0 -1
  42. package/lib/button/button.less +0 -195
  43. package/lib/button/button.variable.css +0 -358
  44. package/lib/button/index.d.ts +0 -226
  45. package/lib/card/card.css +0 -63
  46. package/lib/card/card.d.ts +0 -69
  47. package/lib/card/card.js +0 -1
  48. package/lib/card/card.less +0 -44
  49. package/lib/card/card.variable.css +0 -156
  50. package/lib/card/index.d.ts +0 -187
  51. package/lib/checkbox/checkbox-group.d.ts +0 -48
  52. package/lib/checkbox/checkbox.css +0 -64
  53. package/lib/checkbox/checkbox.d.ts +0 -114
  54. package/lib/checkbox/checkbox.js +0 -1
  55. package/lib/checkbox/checkbox.less +0 -80
  56. package/lib/checkbox/checkbox.variable.css +0 -157
  57. package/lib/checkbox/common.d.ts +0 -13
  58. package/lib/checkbox/index.d.ts +0 -261
  59. package/lib/checkbox/type.d.ts +0 -19
  60. package/lib/code-diff/code-diff.css +0 -186
  61. package/lib/code-diff/code-diff.d.ts +0 -80
  62. package/lib/code-diff/code-diff.js +0 -1
  63. package/lib/code-diff/code-diff.less +0 -238
  64. package/lib/code-diff/code-diff.variable.css +0 -279
  65. package/lib/code-diff/index.d.ts +0 -154
  66. package/lib/collapse/collapse.css +0 -30
  67. package/lib/collapse/collapse.d.ts +0 -106
  68. package/lib/collapse/collapse.js +0 -1
  69. package/lib/collapse/collapse.less +0 -37
  70. package/lib/collapse/collapse.variable.css +0 -30
  71. package/lib/collapse/index.d.ts +0 -166
  72. package/lib/components.d.ts +0 -41
  73. package/lib/date-picker/date-picker.css +0 -407
  74. package/lib/date-picker/date-picker.d.ts +0 -294
  75. package/lib/date-picker/date-picker.js +0 -1
  76. package/lib/date-picker/date-picker.less +0 -526
  77. package/lib/date-picker/date-picker.variable.css +0 -500
  78. package/lib/date-picker/fecha.d.ts +0 -6
  79. package/lib/date-picker/index.d.ts +0 -713
  80. package/lib/date-picker/interface.d.ts +0 -22
  81. package/lib/date-picker/props.d.ts +0 -111
  82. package/lib/date-picker/utils.d.ts +0 -97
  83. package/lib/dialog/dialog.css +0 -68
  84. package/lib/dialog/dialog.d.ts +0 -113
  85. package/lib/dialog/dialog.js +0 -1
  86. package/lib/dialog/dialog.less +0 -80
  87. package/lib/dialog/dialog.variable.css +0 -68
  88. package/lib/dialog/index.d.ts +0 -286
  89. package/lib/directives/clickoutside.d.ts +0 -3
  90. package/lib/directives/directives.js +0 -2
  91. package/lib/directives/directives.js.LICENSE.txt +0 -14
  92. package/lib/directives/index.d.ts +0 -3
  93. package/lib/directives/mousewheel.d.ts +0 -3
  94. package/lib/directives/tooltips.d.ts +0 -17
  95. package/lib/divider/divider.css +0 -38
  96. package/lib/divider/divider.d.ts +0 -48
  97. package/lib/divider/divider.js +0 -1
  98. package/lib/divider/divider.less +0 -53
  99. package/lib/divider/divider.variable.css +0 -131
  100. package/lib/divider/index.d.ts +0 -142
  101. package/lib/divider/props.d.ts +0 -21
  102. package/lib/dropdown/dropdown-item.d.ts +0 -19
  103. package/lib/dropdown/dropdown-menu.d.ts +0 -16
  104. package/lib/dropdown/dropdown.css +0 -43
  105. package/lib/dropdown/dropdown.d.ts +0 -61
  106. package/lib/dropdown/dropdown.js +0 -1
  107. package/lib/dropdown/dropdown.less +0 -54
  108. package/lib/dropdown/dropdown.variable.css +0 -136
  109. package/lib/dropdown/index.d.ts +0 -192
  110. package/lib/exception/exception.css +0 -32
  111. package/lib/exception/exception.d.ts +0 -26
  112. package/lib/exception/exception.js +0 -1
  113. package/lib/exception/exception.less +0 -39
  114. package/lib/exception/exception.variable.css +0 -125
  115. package/lib/exception/index.d.ts +0 -96
  116. package/lib/fixed-navbar/fixed-navbar.css +0 -42
  117. package/lib/fixed-navbar/fixed-navbar.d.ts +0 -34
  118. package/lib/fixed-navbar/fixed-navbar.js +0 -1
  119. package/lib/fixed-navbar/fixed-navbar.less +0 -53
  120. package/lib/fixed-navbar/fixed-navbar.variable.css +0 -135
  121. package/lib/fixed-navbar/index.d.ts +0 -112
  122. package/lib/form/common.d.ts +0 -3
  123. package/lib/form/form-item.d.ts +0 -145
  124. package/lib/form/form.css +0 -48
  125. package/lib/form/form.d.ts +0 -64
  126. package/lib/form/form.js +0 -1
  127. package/lib/form/form.less +0 -63
  128. package/lib/form/form.variable.css +0 -48
  129. package/lib/form/index.d.ts +0 -246
  130. package/lib/form/type.d.ts +0 -21
  131. package/lib/form/validator.d.ts +0 -8
  132. package/lib/icon/angle-double-down-line.d.ts +0 -4
  133. package/lib/icon/angle-double-down-line.js +0 -1
  134. package/lib/icon/angle-double-left-line.d.ts +0 -4
  135. package/lib/icon/angle-double-left-line.js +0 -1
  136. package/lib/icon/angle-double-left.d.ts +0 -4
  137. package/lib/icon/angle-double-left.js +0 -1
  138. package/lib/icon/angle-double-right-line.d.ts +0 -4
  139. package/lib/icon/angle-double-right-line.js +0 -1
  140. package/lib/icon/angle-double-right.d.ts +0 -4
  141. package/lib/icon/angle-double-right.js +0 -1
  142. package/lib/icon/angle-double-up-line.d.ts +0 -4
  143. package/lib/icon/angle-double-up-line.js +0 -1
  144. package/lib/icon/angle-down-fill.d.ts +0 -4
  145. package/lib/icon/angle-down-fill.js +0 -1
  146. package/lib/icon/angle-down-line.d.ts +0 -4
  147. package/lib/icon/angle-down-line.js +0 -1
  148. package/lib/icon/angle-down.d.ts +0 -4
  149. package/lib/icon/angle-down.js +0 -1
  150. package/lib/icon/angle-left.d.ts +0 -4
  151. package/lib/icon/angle-left.js +0 -1
  152. package/lib/icon/angle-right.d.ts +0 -4
  153. package/lib/icon/angle-right.js +0 -1
  154. package/lib/icon/angle-up-fill.d.ts +0 -4
  155. package/lib/icon/angle-up-fill.js +0 -1
  156. package/lib/icon/angle-up.d.ts +0 -4
  157. package/lib/icon/angle-up.js +0 -1
  158. package/lib/icon/arrows-left.d.ts +0 -4
  159. package/lib/icon/arrows-left.js +0 -1
  160. package/lib/icon/arrows-right.d.ts +0 -4
  161. package/lib/icon/arrows-right.js +0 -1
  162. package/lib/icon/bk.d.ts +0 -4
  163. package/lib/icon/bk.js +0 -1
  164. package/lib/icon/circle.d.ts +0 -4
  165. package/lib/icon/circle.js +0 -1
  166. package/lib/icon/close.d.ts +0 -4
  167. package/lib/icon/close.js +0 -1
  168. package/lib/icon/code.d.ts +0 -4
  169. package/lib/icon/code.js +0 -1
  170. package/lib/icon/cog-shape.d.ts +0 -4
  171. package/lib/icon/cog-shape.js +0 -1
  172. package/lib/icon/collapse-left.d.ts +0 -4
  173. package/lib/icon/collapse-left.js +0 -1
  174. package/lib/icon/copy.d.ts +0 -4
  175. package/lib/icon/copy.js +0 -1
  176. package/lib/icon/done.d.ts +0 -4
  177. package/lib/icon/done.js +0 -1
  178. package/lib/icon/down-shape.d.ts +0 -4
  179. package/lib/icon/down-shape.js +0 -1
  180. package/lib/icon/down-small.d.ts +0 -4
  181. package/lib/icon/down-small.js +0 -1
  182. package/lib/icon/ellipsis.d.ts +0 -4
  183. package/lib/icon/ellipsis.js +0 -1
  184. package/lib/icon/error.d.ts +0 -4
  185. package/lib/icon/error.js +0 -1
  186. package/lib/icon/eye.d.ts +0 -4
  187. package/lib/icon/eye.js +0 -1
  188. package/lib/icon/folder-open.d.ts +0 -4
  189. package/lib/icon/folder-open.js +0 -1
  190. package/lib/icon/folder-shape-open.d.ts +0 -4
  191. package/lib/icon/folder-shape-open.js +0 -1
  192. package/lib/icon/folder-shape.d.ts +0 -4
  193. package/lib/icon/folder-shape.js +0 -1
  194. package/lib/icon/folder.d.ts +0 -4
  195. package/lib/icon/folder.js +0 -1
  196. package/lib/icon/help-document-fill.d.ts +0 -4
  197. package/lib/icon/help-document-fill.js +0 -1
  198. package/lib/icon/help-fill.d.ts +0 -4
  199. package/lib/icon/help-fill.js +0 -1
  200. package/lib/icon/help.d.ts +0 -4
  201. package/lib/icon/help.js +0 -1
  202. package/lib/icon/icon.d.ts +0 -12
  203. package/lib/icon/icon.js +0 -1
  204. package/lib/icon/index.d.ts +0 -53
  205. package/lib/icon/info-line.d.ts +0 -4
  206. package/lib/icon/info-line.js +0 -1
  207. package/lib/icon/info.d.ts +0 -4
  208. package/lib/icon/info.js +0 -1
  209. package/lib/icon/left-shape.d.ts +0 -4
  210. package/lib/icon/left-shape.js +0 -1
  211. package/lib/icon/play-shape.d.ts +0 -4
  212. package/lib/icon/play-shape.js +0 -1
  213. package/lib/icon/plus.d.ts +0 -4
  214. package/lib/icon/plus.js +0 -1
  215. package/lib/icon/qq.d.ts +0 -4
  216. package/lib/icon/qq.js +0 -1
  217. package/lib/icon/right-shape.d.ts +0 -4
  218. package/lib/icon/right-shape.js +0 -1
  219. package/lib/icon/search.d.ts +0 -4
  220. package/lib/icon/search.js +0 -1
  221. package/lib/icon/share.d.ts +0 -4
  222. package/lib/icon/share.js +0 -1
  223. package/lib/icon/spinner.d.ts +0 -4
  224. package/lib/icon/spinner.js +0 -1
  225. package/lib/icon/success.d.ts +0 -4
  226. package/lib/icon/success.js +0 -1
  227. package/lib/icon/switcher-loading.d.ts +0 -4
  228. package/lib/icon/switcher-loading.js +0 -1
  229. package/lib/icon/text-file.d.ts +0 -4
  230. package/lib/icon/text-file.js +0 -1
  231. package/lib/icon/tree-application-shape.d.ts +0 -4
  232. package/lib/icon/tree-application-shape.js +0 -1
  233. package/lib/icon/unvisible.d.ts +0 -4
  234. package/lib/icon/unvisible.js +0 -1
  235. package/lib/icon/up-shape.d.ts +0 -4
  236. package/lib/icon/up-shape.js +0 -1
  237. package/lib/icon/warn.d.ts +0 -4
  238. package/lib/icon/warn.js +0 -1
  239. package/lib/icon/weixin.d.ts +0 -4
  240. package/lib/icon/weixin.js +0 -1
  241. package/lib/index.d.ts +0 -4
  242. package/lib/input/index.d.ts +0 -443
  243. package/lib/input/input.css +0 -190
  244. package/lib/input/input.d.ts +0 -254
  245. package/lib/input/input.js +0 -1
  246. package/lib/input/input.less +0 -214
  247. package/lib/input/input.variable.css +0 -284
  248. package/lib/link/index.d.ts +0 -164
  249. package/lib/link/link.css +0 -55
  250. package/lib/link/link.d.ts +0 -58
  251. package/lib/link/link.js +0 -1
  252. package/lib/link/link.less +0 -74
  253. package/lib/link/link.variable.css +0 -148
  254. package/lib/loading/index.d.ts +0 -164
  255. package/lib/loading/loading.css +0 -261
  256. package/lib/loading/loading.d.ts +0 -94
  257. package/lib/loading/loading.js +0 -1
  258. package/lib/loading/loading.less +0 -197
  259. package/lib/loading/loading.variable.css +0 -354
  260. package/lib/menu/index.d.ts +0 -188
  261. package/lib/menu/menu-group.d.ts +0 -14
  262. package/lib/menu/menu-item.d.ts +0 -16
  263. package/lib/menu/menu.css +0 -182
  264. package/lib/menu/menu.d.ts +0 -64
  265. package/lib/menu/menu.js +0 -1
  266. package/lib/menu/menu.less +0 -180
  267. package/lib/menu/menu.variable.css +0 -275
  268. package/lib/menu/submenu.css +0 -3
  269. package/lib/menu/submenu.d.ts +0 -22
  270. package/lib/menu/submenu.less +0 -5
  271. package/lib/menu/submenu.variable.css +0 -96
  272. package/lib/menu/utils.d.ts +0 -41
  273. package/lib/message/index.d.ts +0 -2
  274. package/lib/message/message.css +0 -53
  275. package/lib/message/message.js +0 -1
  276. package/lib/message/message.less +0 -61
  277. package/lib/message/message.variable.css +0 -146
  278. package/lib/message/messageConstructor.d.ts +0 -73
  279. package/lib/modal/index.d.ts +0 -214
  280. package/lib/modal/modal.css +0 -11
  281. package/lib/modal/modal.d.ts +0 -65
  282. package/lib/modal/modal.js +0 -1
  283. package/lib/modal/modal.less +0 -12
  284. package/lib/modal/modal.variable.css +0 -11
  285. package/lib/modal/props.mixin.d.ts +0 -26
  286. package/lib/navigation/index.d.ts +0 -2
  287. package/lib/navigation/navigation-title.d.ts +0 -25
  288. package/lib/navigation/navigation.css +0 -184
  289. package/lib/navigation/navigation.d.ts +0 -111
  290. package/lib/navigation/navigation.js +0 -1
  291. package/lib/navigation/navigation.less +0 -210
  292. package/lib/navigation/navigation.variable.css +0 -277
  293. package/lib/notify/index.d.ts +0 -2
  294. package/lib/notify/notify.css +0 -49
  295. package/lib/notify/notify.js +0 -1
  296. package/lib/notify/notify.less +0 -58
  297. package/lib/notify/notify.variable.css +0 -142
  298. package/lib/notify/notifyConstructor.d.ts +0 -91
  299. package/lib/pagination/index.d.ts +0 -395
  300. package/lib/pagination/pagination.css +0 -179
  301. package/lib/pagination/pagination.d.ts +0 -220
  302. package/lib/pagination/pagination.js +0 -1
  303. package/lib/pagination/pagination.less +0 -201
  304. package/lib/pagination/pagination.variable.css +0 -272
  305. package/lib/pagination/type.d.ts +0 -6
  306. package/lib/pagination/use-limit.d.ts +0 -8
  307. package/lib/pagination/use-list.d.ts +0 -8
  308. package/lib/pagination/use-small-list.d.ts +0 -5
  309. package/lib/pagination/use-total.d.ts +0 -5
  310. package/lib/popover/index.d.ts +0 -287
  311. package/lib/popover/popover.css +0 -65
  312. package/lib/popover/popover.d.ts +0 -117
  313. package/lib/popover/popover.js +0 -1
  314. package/lib/popover/popover.less +0 -82
  315. package/lib/popover/popover.variable.css +0 -158
  316. package/lib/popover/props.d.ts +0 -77
  317. package/lib/preset.d.ts +0 -7
  318. package/lib/process/index.d.ts +0 -205
  319. package/lib/process/process.css +0 -138
  320. package/lib/process/process.d.ts +0 -131
  321. package/lib/process/process.js +0 -1
  322. package/lib/process/process.less +0 -178
  323. package/lib/process/process.variable.css +0 -231
  324. package/lib/progress/circle.d.ts +0 -6
  325. package/lib/progress/index.d.ts +0 -398
  326. package/lib/progress/line.d.ts +0 -6
  327. package/lib/progress/progress.css +0 -94
  328. package/lib/progress/progress.d.ts +0 -171
  329. package/lib/progress/progress.js +0 -1
  330. package/lib/progress/progress.less +0 -90
  331. package/lib/progress/progress.variable.css +0 -187
  332. package/lib/radio/common.d.ts +0 -13
  333. package/lib/radio/index.d.ts +0 -277
  334. package/lib/radio/radio-button.d.ts +0 -91
  335. package/lib/radio/radio-group.d.ts +0 -41
  336. package/lib/radio/radio.css +0 -138
  337. package/lib/radio/radio.d.ts +0 -87
  338. package/lib/radio/radio.js +0 -1
  339. package/lib/radio/radio.less +0 -173
  340. package/lib/radio/radio.variable.css +0 -231
  341. package/lib/radio/type.d.ts +0 -9
  342. package/lib/rate/index.d.ts +0 -113
  343. package/lib/rate/rate.css +0 -10
  344. package/lib/rate/rate.d.ts +0 -32
  345. package/lib/rate/rate.js +0 -1
  346. package/lib/rate/rate.less +0 -11
  347. package/lib/rate/rate.variable.css +0 -10
  348. package/lib/rate/star.css +0 -24
  349. package/lib/rate/star.d.ts +0 -74
  350. package/lib/rate/star.less +0 -29
  351. package/lib/rate/star.variable.css +0 -24
  352. package/lib/resize-layout/index.d.ts +0 -336
  353. package/lib/resize-layout/resize-layout.css +0 -189
  354. package/lib/resize-layout/resize-layout.d.ts +0 -127
  355. package/lib/resize-layout/resize-layout.js +0 -1
  356. package/lib/resize-layout/resize-layout.less +0 -233
  357. package/lib/resize-layout/resize-layout.variable.css +0 -282
  358. package/lib/select/common.d.ts +0 -33
  359. package/lib/select/index.d.ts +0 -1347
  360. package/lib/select/option.d.ts +0 -25
  361. package/lib/select/optionGroup.d.ts +0 -54
  362. package/lib/select/select.css +0 -325
  363. package/lib/select/select.d.ts +0 -395
  364. package/lib/select/select.js +0 -1
  365. package/lib/select/select.less +0 -324
  366. package/lib/select/select.variable.css +0 -418
  367. package/lib/select/type.d.ts +0 -31
  368. package/lib/shared/helper.d.ts +0 -92
  369. package/lib/shared/index.d.ts +0 -52
  370. package/lib/shared/mask-manager.d.ts +0 -76
  371. package/lib/shared/pop-manager.d.ts +0 -26
  372. package/lib/shared/popover.d.ts +0 -127
  373. package/lib/shared/scrollbar-width.d.ts +0 -1
  374. package/lib/shared/shared.js +0 -1
  375. package/lib/shared/utils.d.ts +0 -6
  376. package/lib/shared/vue-types.d.ts +0 -115
  377. package/lib/shared/z-index-manager.d.ts +0 -93
  378. package/lib/sideslider/index.d.ts +0 -206
  379. package/lib/sideslider/sideslider.css +0 -69
  380. package/lib/sideslider/sideslider.d.ts +0 -75
  381. package/lib/sideslider/sideslider.js +0 -1
  382. package/lib/sideslider/sideslider.less +0 -86
  383. package/lib/sideslider/sideslider.variable.css +0 -162
  384. package/lib/slider/index.d.ts +0 -27
  385. package/lib/slider/slider-button.d.ts +0 -80
  386. package/lib/slider/slider.css +0 -149
  387. package/lib/slider/slider.d.ts +0 -201
  388. package/lib/slider/slider.js +0 -1
  389. package/lib/slider/slider.less +0 -179
  390. package/lib/slider/slider.variable.css +0 -242
  391. package/lib/steps/index.d.ts +0 -250
  392. package/lib/steps/steps.css +0 -288
  393. package/lib/steps/steps.d.ts +0 -161
  394. package/lib/steps/steps.js +0 -1
  395. package/lib/steps/steps.less +0 -324
  396. package/lib/steps/steps.variable.css +0 -381
  397. package/lib/styles/index.d.ts +0 -47
  398. package/lib/styles/mixins/animate.css +0 -21
  399. package/lib/styles/mixins/animate.less +0 -27
  400. package/lib/styles/mixins/animate.variable.css +0 -21
  401. package/lib/styles/mixins/ellipsis.less +0 -8
  402. package/lib/styles/mixins/mixins.css +0 -21
  403. package/lib/styles/mixins/mixins.less +0 -3
  404. package/lib/styles/mixins/mixins.variable.css +0 -21
  405. package/lib/styles/mixins/popper.css +0 -43
  406. package/lib/styles/mixins/popper.less +0 -52
  407. package/lib/styles/mixins/popper.variable.css +0 -43
  408. package/lib/styles/mixins/size.less +0 -13
  409. package/lib/styles/reset.css +0 -273
  410. package/lib/styles/reset.less +0 -313
  411. package/lib/styles/reset.variable.css +0 -273
  412. package/lib/styles/themes/themes.less +0 -126
  413. package/lib/swiper/index.d.ts +0 -181
  414. package/lib/swiper/swiper.css +0 -91
  415. package/lib/swiper/swiper.d.ts +0 -65
  416. package/lib/swiper/swiper.js +0 -1
  417. package/lib/swiper/swiper.less +0 -107
  418. package/lib/swiper/swiper.variable.css +0 -91
  419. package/lib/switcher/index.d.ts +0 -286
  420. package/lib/switcher/switcher.css +0 -272
  421. package/lib/switcher/switcher.d.ts +0 -113
  422. package/lib/switcher/switcher.js +0 -1
  423. package/lib/switcher/switcher.less +0 -358
  424. package/lib/switcher/switcher.variable.css +0 -365
  425. package/lib/tab/index.d.ts +0 -443
  426. package/lib/tab/props.d.ts +0 -191
  427. package/lib/tab/tab-nav.d.ts +0 -165
  428. package/lib/tab/tab-panel.d.ts +0 -73
  429. package/lib/tab/tab.css +0 -148
  430. package/lib/tab/tab.d.ts +0 -140
  431. package/lib/tab/tab.js +0 -1
  432. package/lib/tab/tab.less +0 -222
  433. package/lib/tab/tab.variable.css +0 -241
  434. package/lib/table/const.d.ts +0 -4
  435. package/lib/table/index.d.ts +0 -302
  436. package/lib/table/props.d.ts +0 -117
  437. package/lib/table/render.d.ts +0 -83
  438. package/lib/table/table.css +0 -91
  439. package/lib/table/table.d.ts +0 -119
  440. package/lib/table/table.js +0 -1
  441. package/lib/table/table.less +0 -115
  442. package/lib/table/table.variable.css +0 -184
  443. package/lib/table/utils.d.ts +0 -69
  444. package/lib/tag/index.d.ts +0 -229
  445. package/lib/tag/tag.css +0 -97
  446. package/lib/tag/tag.d.ts +0 -84
  447. package/lib/tag/tag.js +0 -1
  448. package/lib/tag/tag.less +0 -113
  449. package/lib/tag/tag.variable.css +0 -190
  450. package/lib/tag-input/common.d.ts +0 -24
  451. package/lib/tag-input/index.d.ts +0 -2
  452. package/lib/tag-input/list-tag-render.d.ts +0 -47
  453. package/lib/tag-input/tag-input.css +0 -208
  454. package/lib/tag-input/tag-input.d.ts +0 -374
  455. package/lib/tag-input/tag-input.js +0 -1
  456. package/lib/tag-input/tag-input.less +0 -250
  457. package/lib/tag-input/tag-input.variable.css +0 -301
  458. package/lib/tag-input/tag-props.d.ts +0 -131
  459. package/lib/tag-input/tag-render.d.ts +0 -38
  460. package/lib/timeline/index.d.ts +0 -129
  461. package/lib/timeline/timeline.css +0 -235
  462. package/lib/timeline/timeline.d.ts +0 -81
  463. package/lib/timeline/timeline.js +0 -1
  464. package/lib/timeline/timeline.less +0 -239
  465. package/lib/timeline/timeline.variable.css +0 -328
  466. package/lib/transfer/index.d.ts +0 -351
  467. package/lib/transfer/transfer.css +0 -158
  468. package/lib/transfer/transfer.d.ts +0 -185
  469. package/lib/transfer/transfer.js +0 -1
  470. package/lib/transfer/transfer.less +0 -171
  471. package/lib/transfer/transfer.variable.css +0 -251
  472. package/lib/tree/index.d.ts +0 -287
  473. package/lib/tree/props.d.ts +0 -89
  474. package/lib/tree/tree.css +0 -50
  475. package/lib/tree/tree.d.ts +0 -111
  476. package/lib/tree/tree.js +0 -1
  477. package/lib/tree/tree.less +0 -63
  478. package/lib/tree/tree.variable.css +0 -143
  479. package/lib/tree/util.d.ts +0 -70
  480. package/lib/use-form.d.ts +0 -3
  481. package/lib/use-message.d.ts +0 -2
  482. package/lib/virtual-render/index.d.ts +0 -556
  483. package/lib/virtual-render/props.d.ts +0 -157
  484. package/lib/virtual-render/v-virtual-render.d.ts +0 -7
  485. package/lib/virtual-render/virtual-render.css +0 -33
  486. package/lib/virtual-render/virtual-render.d.ts +0 -244
  487. package/lib/virtual-render/virtual-render.js +0 -1
  488. package/lib/virtual-render/virtual-render.less +0 -43
  489. package/lib/virtual-render/virtual-render.variable.css +0 -33
@@ -1,294 +0,0 @@
1
- import type { DatePickerPanelType, SelectionModeType } from './interface';
2
- declare const _default: import("vue").DefineComponent<{
3
- readonly type: {
4
- readonly type: import("vue").PropType<import("./interface").PickerTypeType>;
5
- readonly default: "date";
6
- readonly validator: (value: any) => boolean;
7
- };
8
- readonly extPopoverCls: {
9
- readonly type: StringConstructor;
10
- readonly default: "";
11
- };
12
- readonly format: StringConstructor;
13
- readonly readonly: {
14
- readonly type: BooleanConstructor;
15
- readonly default: false;
16
- };
17
- readonly disabled: {
18
- readonly type: BooleanConstructor;
19
- readonly default: false;
20
- };
21
- readonly editable: {
22
- readonly type: BooleanConstructor;
23
- readonly default: true;
24
- };
25
- readonly clearable: {
26
- readonly type: BooleanConstructor;
27
- readonly default: true;
28
- };
29
- readonly open: {
30
- readonly type: BooleanConstructor;
31
- readonly default: any;
32
- };
33
- readonly multiple: {
34
- readonly type: BooleanConstructor;
35
- readonly default: false;
36
- };
37
- readonly timePickerOptions: {
38
- readonly type: import("vue").PropType<Record<string, any>>;
39
- readonly default: () => {};
40
- };
41
- readonly splitPanels: {
42
- readonly type: BooleanConstructor;
43
- readonly default: true;
44
- };
45
- readonly startDate: DateConstructor;
46
- readonly placeholder: {
47
- readonly type: StringConstructor;
48
- readonly default: "";
49
- };
50
- readonly placement: {
51
- readonly type: import("vue").PropType<import("@popperjs/core").ComputedPlacement>;
52
- readonly default: "bottom-start";
53
- readonly validator: (value: any) => boolean;
54
- };
55
- readonly transfer: {
56
- readonly type: BooleanConstructor;
57
- readonly default: false;
58
- };
59
- readonly appendToBody: {
60
- readonly type: BooleanConstructor;
61
- readonly default: false;
62
- };
63
- readonly shortcuts: {
64
- readonly type: import("vue").PropType<import("./interface").DatePickerShortcutsType>;
65
- readonly default: () => any[];
66
- };
67
- readonly shortcutClose: {
68
- readonly type: BooleanConstructor;
69
- readonly default: false;
70
- };
71
- readonly modelValue: {
72
- readonly type: import("vue").PropType<import("./interface").DatePickerValueType>;
73
- };
74
- readonly options: {
75
- readonly type: ObjectConstructor;
76
- readonly default: () => {};
77
- };
78
- readonly fontSize: {
79
- readonly type: import("vue").PropType<"large" | "normal" | "medium">;
80
- readonly default: "normal";
81
- };
82
- readonly upToNow: {
83
- readonly type: BooleanConstructor;
84
- readonly default: false;
85
- };
86
- readonly useShortcutText: {
87
- readonly type: BooleanConstructor;
88
- readonly default: false;
89
- };
90
- readonly shortcutSelectedIndex: {
91
- readonly type: NumberConstructor;
92
- readonly default: -1;
93
- };
94
- readonly footerSlotCls: {
95
- readonly type: StringConstructor;
96
- readonly default: "";
97
- };
98
- readonly allowCrossDay: {
99
- readonly type: BooleanConstructor;
100
- readonly default: false;
101
- };
102
- readonly behavior: {
103
- readonly type: import("vue").PropType<"normal" | "simplicity">;
104
- readonly default: "normal";
105
- readonly validator: (v: any) => boolean;
106
- };
107
- readonly disableDate: import("vue").PropType<import("./interface").DisableDateType>;
108
- }, {
109
- panel: import("vue").ComputedRef<DatePickerPanelType>;
110
- publicStringValue: import("vue").ComputedRef<any>;
111
- opened: import("vue").ComputedRef<boolean>;
112
- visualValue: import("vue").ComputedRef<any>;
113
- displayValue: import("vue").ComputedRef<any>;
114
- isConfirm: import("vue").ComputedRef<boolean>;
115
- fontSizeCls: import("vue").ComputedRef<string>;
116
- longWidthCls: import("vue").ComputedRef<string>;
117
- localReadonly: import("vue").ComputedRef<boolean>;
118
- hasFooter: import("vue").ComputedRef<boolean>;
119
- allowCrossDayProp: import("vue").ComputedRef<boolean>;
120
- pickerDropdownRef: any;
121
- inputRef: any;
122
- triggerRef: import("vue").Ref<HTMLElement>;
123
- pickerPanelRef: any;
124
- handleClose: (e?: Event) => boolean;
125
- handleIconClick: () => void;
126
- handleInputMouseenter: () => void;
127
- handleInputMouseleave: (e: any) => void;
128
- handleFocus: (e: any) => void;
129
- handleBlur: (e: any) => void;
130
- handleKeydown: (e: KeyboardEvent) => void;
131
- handleInputChange: (e: any) => void;
132
- handleClear: () => void;
133
- handleTransferClick: () => void;
134
- onPick: (_dates: any, visible: boolean, type: any, shortcut: any) => void;
135
- showClose: import("vue").Ref<boolean>;
136
- visible: import("vue").Ref<boolean>;
137
- internalValue: import("vue").Ref<any>;
138
- disableClickOutSide: import("vue").Ref<boolean>;
139
- disableCloseUnderTransfer: import("vue").Ref<boolean>;
140
- selectionMode: import("vue").Ref<SelectionModeType>;
141
- forceInputRerender: import("vue").Ref<number>;
142
- isFocused: import("vue").Ref<boolean>;
143
- focusedDate: import("vue").Ref<any>;
144
- focusedTime: import("vue").Ref<{
145
- column: number;
146
- picker: number;
147
- time: any;
148
- active: boolean;
149
- }>;
150
- internalFocus: import("vue").Ref<boolean>;
151
- timeEnterMode: import("vue").Ref<boolean>;
152
- shortcut: import("vue").Ref<any>;
153
- onSelectionModeChange: import("vue").Ref<(_type: any) => SelectionModeType>;
154
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change")[], "input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
155
- readonly type: {
156
- readonly type: import("vue").PropType<import("./interface").PickerTypeType>;
157
- readonly default: "date";
158
- readonly validator: (value: any) => boolean;
159
- };
160
- readonly extPopoverCls: {
161
- readonly type: StringConstructor;
162
- readonly default: "";
163
- };
164
- readonly format: StringConstructor;
165
- readonly readonly: {
166
- readonly type: BooleanConstructor;
167
- readonly default: false;
168
- };
169
- readonly disabled: {
170
- readonly type: BooleanConstructor;
171
- readonly default: false;
172
- };
173
- readonly editable: {
174
- readonly type: BooleanConstructor;
175
- readonly default: true;
176
- };
177
- readonly clearable: {
178
- readonly type: BooleanConstructor;
179
- readonly default: true;
180
- };
181
- readonly open: {
182
- readonly type: BooleanConstructor;
183
- readonly default: any;
184
- };
185
- readonly multiple: {
186
- readonly type: BooleanConstructor;
187
- readonly default: false;
188
- };
189
- readonly timePickerOptions: {
190
- readonly type: import("vue").PropType<Record<string, any>>;
191
- readonly default: () => {};
192
- };
193
- readonly splitPanels: {
194
- readonly type: BooleanConstructor;
195
- readonly default: true;
196
- };
197
- readonly startDate: DateConstructor;
198
- readonly placeholder: {
199
- readonly type: StringConstructor;
200
- readonly default: "";
201
- };
202
- readonly placement: {
203
- readonly type: import("vue").PropType<import("@popperjs/core").ComputedPlacement>;
204
- readonly default: "bottom-start";
205
- readonly validator: (value: any) => boolean;
206
- };
207
- readonly transfer: {
208
- readonly type: BooleanConstructor;
209
- readonly default: false;
210
- };
211
- readonly appendToBody: {
212
- readonly type: BooleanConstructor;
213
- readonly default: false;
214
- };
215
- readonly shortcuts: {
216
- readonly type: import("vue").PropType<import("./interface").DatePickerShortcutsType>;
217
- readonly default: () => any[];
218
- };
219
- readonly shortcutClose: {
220
- readonly type: BooleanConstructor;
221
- readonly default: false;
222
- };
223
- readonly modelValue: {
224
- readonly type: import("vue").PropType<import("./interface").DatePickerValueType>;
225
- };
226
- readonly options: {
227
- readonly type: ObjectConstructor;
228
- readonly default: () => {};
229
- };
230
- readonly fontSize: {
231
- readonly type: import("vue").PropType<"large" | "normal" | "medium">;
232
- readonly default: "normal";
233
- };
234
- readonly upToNow: {
235
- readonly type: BooleanConstructor;
236
- readonly default: false;
237
- };
238
- readonly useShortcutText: {
239
- readonly type: BooleanConstructor;
240
- readonly default: false;
241
- };
242
- readonly shortcutSelectedIndex: {
243
- readonly type: NumberConstructor;
244
- readonly default: -1;
245
- };
246
- readonly footerSlotCls: {
247
- readonly type: StringConstructor;
248
- readonly default: "";
249
- };
250
- readonly allowCrossDay: {
251
- readonly type: BooleanConstructor;
252
- readonly default: false;
253
- };
254
- readonly behavior: {
255
- readonly type: import("vue").PropType<"normal" | "simplicity">;
256
- readonly default: "normal";
257
- readonly validator: (v: any) => boolean;
258
- };
259
- readonly disableDate: import("vue").PropType<import("./interface").DisableDateType>;
260
- }>> & {
261
- onChange?: (...args: any[]) => any;
262
- onInput?: (...args: any[]) => any;
263
- "onUpdate:modelValue"?: (...args: any[]) => any;
264
- "onPick-success"?: (...args: any[]) => any;
265
- onClear?: (...args: any[]) => any;
266
- "onOpen-change"?: (...args: any[]) => any;
267
- "onShortcut-change"?: (...args: any[]) => any;
268
- }, {
269
- type: import("./interface").PickerTypeType;
270
- placeholder: string;
271
- placement: import("@popperjs/core").ComputedPlacement;
272
- options: Record<string, any>;
273
- fontSize: "large" | "normal" | "medium";
274
- open: boolean;
275
- multiple: boolean;
276
- disabled: boolean;
277
- extPopoverCls: string;
278
- readonly: boolean;
279
- editable: boolean;
280
- clearable: boolean;
281
- timePickerOptions: {};
282
- splitPanels: boolean;
283
- transfer: boolean;
284
- appendToBody: boolean;
285
- shortcuts: import("./interface").DatePickerShortcutsType;
286
- shortcutClose: boolean;
287
- upToNow: boolean;
288
- useShortcutText: boolean;
289
- shortcutSelectedIndex: number;
290
- footerSlotCls: string;
291
- allowCrossDay: boolean;
292
- behavior: "normal" | "simplicity";
293
- }>;
294
- export default _default;
@@ -1 +0,0 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/typeof"),require("vue"),require("../directives"),require("../icon"),require("@babel/runtime/helpers/defineProperty"),require("js-calendar"),require("date-fns"));else if("function"==typeof define&&define.amd)define(["../shared","@babel/runtime/helpers/slicedToArray","@babel/runtime/helpers/toConsumableArray","@babel/runtime/helpers/typeof","vue","../directives","../icon","@babel/runtime/helpers/defineProperty","js-calendar","date-fns"],t);else{var n="object"==typeof exports?t(require("../shared"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/typeof"),require("vue"),require("../directives"),require("../icon"),require("@babel/runtime/helpers/defineProperty"),require("js-calendar"),require("date-fns")):t(e["../shared"],e["@babel/runtime/helpers/slicedToArray"],e["@babel/runtime/helpers/toConsumableArray"],e["@babel/runtime/helpers/typeof"],e.vue,e["../directives"],e["../icon"],e["@babel/runtime/helpers/defineProperty"],e["js-calendar"],e["date-fns"]);for(var a in n)("object"==typeof exports?exports:e)[a]=n[a]}}(self,((e,t,n,a,r,l,i,o,c,u)=>(()=>{"use strict";var s={4061:e=>{e.exports=l},6870:e=>{e.exports=i},4212:t=>{t.exports=e},311:e=>{e.exports=o},1673:e=>{e.exports=t},642:e=>{e.exports=n},8541:e=>{e.exports=a},7876:e=>{e.exports=u},7926:e=>{e.exports=c},748:e=>{e.exports=r}},d={};function p(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}};return s[e](n,n.exports,p),n.exports}p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var f={};return(()=>{p.r(f),p.d(f,{default:()=>le});var e=p(4212),t=p(1673),n=p.n(t),a=p(642),r=p.n(a),l=p(8541),i=p.n(l),o=p(748),c=p(4061),u={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 s=(0,o.defineComponent)({props:u,emits:["changeVisible"],setup:function(t,n){var a=n.emit,r=Object.create(null),l=(0,o.ref)(null);(0,o.onMounted)((function(){c()})),(0,o.onBeforeUnmount)((function(){i()}));var i=function(){if(r&&0!==Object.keys(r).length){var e=r;e.isShow&&e.hide(),e.destroy(),r=null,a("changeVisible",!1)}},c=function(){r&&0!==Object.keys(r).length?(0,o.nextTick)((function(){r.update()})):(0,o.nextTick)((function(){r=new e.BKPopover(t.triggerRef,l.value,{placement:t.placement,trigger:"manual",modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},{name:"offset",options:{offset:[0,4]}}]})}))},u=(0,o.computed)((function(){var n={};return t.appendToBody&&(n["z-index"]=1060+e.bkZIndexManager.getModalNextIndex()),n})),s=(0,o.reactive)({styles:u});return Object.assign(Object.assign({},(0,o.toRefs)(s)),{refContentRef:l,updateDropdown:c,destoryDropdown:i})},render:function(){var e,t,n;return(0,o.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 d=p(6870),h=p(311),m=p.n(h),y=p(7926),b=p.n(y),g=p(7876),v={},D=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,k=/\d\d?/,w=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,V=function(){};function M(e,t){for(var n=[],a=0,r=e.length;a<r;a++)n.push(e[a].substr(0,t));return n}function S(e){return function(t,n,a){var r=a[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(t.month=r)}}function P(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=String(e);n.length<t;)n="0".concat(n);return n}var N=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],C=["January","February","March","April","May","June","July","August","September","October","November","December"],T=M(C,3),x=M(N,3);v.i18n={dayNamesShort:x,dayNames:N,monthNamesShort:T,monthNames:C,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10)*e%10]}};var F={D:function(e){return e.getDay()},DD:function(e){return P(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return P(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return P(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return String(e.getFullYear()).substr(2)},yyyy:function(e){return e.getFullYear()},h:function(e){return e.getHours()%12||12},hh:function(e){return P(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return P(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return P(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return P(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return P(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return P(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+P(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},O={d:[k,function(e,t){e.day=t}],M:[k,function(e,t){e.month=t-1}],yy:[k,function(e,t){var n=new Date,a=+"".concat(n.getFullYear()).substr(0,2);e.year="".concat(t>68?a-1:a).concat(t)}],h:[k,function(e,t){e.hour=t}],m:[k,function(e,t){e.minute=t}],s:[k,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:[k,V],ddd:[w,V],MMM:[w,S("monthNamesShort")],MMMM:[w,S("monthNames")],a:[w,function(e,t,n){var a=t.toLowerCase();a===n.amPm[0]?e.isPm=!1:a===n.amPm[1]&&(e.isPm=!0)}],ZZ:[/[\\+\\-]\d\d:?\d\d/,function(e,t){var n,a="".concat(t).match(/([\\+\\-]|\d\d)/gi);a&&(n=60*a[1]+parseInt(a[2],10),e.timezoneOffset="+"===a[0]?n:-n)}]};O.DD=O.D,O.dddd=O.ddd,O.Do=O.dd=O.d,O.mm=O.m,O.hh=O.H=O.HH=O.h,O.MM=O.M,O.ss=O.s,O.A=O.a,v.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"},v.format=function(e,t,n){var a=n||v.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=v.masks[t]||t||v.masks.default).replace(D,(function(t){return t in F?F[t](e,a):t.slice(1,t.length-1)}))},v.parse=function(e,t,n){var a=n||v.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");if(t=v.masks[t]||t,e.length>1e3)return!1;var r=!0,l={};if(t.replace(D,(function(t){if(O[t]){var n=O[t],i=e.search(n[0]);~i?e.replace(n[0],(function(t){return n[1](l,t,a),e=e.substr(i+t.length),t})):r=!1}return O[t]?"":t.slice(1,t.length-1)})),!r)return!1;var i,o=new Date;return!0===l.isPm&&null!==l.hour&&12!=+l.hour?l.hour=+l.hour+12:!1===l.isPm&&12==+l.hour&&(l.hour=0),null!==l.timezoneOffset&&void 0!==l.timezoneOffset?(l.minute=+(l.minute||0)-+l.timezoneOffset,i=new Date(Date.UTC(l.year||o.getFullYear(),l.month||0,l.day||1,l.hour||0,l.minute||0,l.second||0,l.millisecond||0))):i=new Date(l.year||o.getFullYear(),l.month||0,l.day||1,l.hour||0,l.minute||0,l.second||0,l.millisecond||0),i};const L=v;var H=" - ",A=function(e,t){var n=(0,g.toDate)(new Date(e));return!n||isNaN(n.getTime())?"":(0,g.format)(n,t||"yyyy-MM-dd")},R=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],a=e[1];if(n&&a)return A(n,t)+H+A(a,t)}else if(!Array.isArray(e)&&e instanceof Date)return A(e,t);return""},B=function(e,t){var n=Array.isArray(e)?e:e.split(H);if(2===n.length){var a=n[0],r=n[1];return[a instanceof Date?a:L.parse(a,t||"yyyy-MM-dd"),r instanceof Date?r:L.parse(r,t||"yyyy-MM-dd")]}return[]},j={default:{formatter:function(e){return e?"".concat(e):""},parser:function(e){return void 0===e||""===e?null:e}},date:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return L.parse(e,t||"yyyy-MM-dd")}},datetime:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return L.parse(e,t||"yyyy-MM-dd")}},daterange:{formatter:R,parser:B},datetimerange:{formatter:R,parser:B},timerange:{formatter:R,parser:B},time:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return L.parse(e,t||"yyyy-MM-dd")}},month:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return L.parse(e,t||"yyyy-MM-dd")}},year:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return L.parse(e,t||"yyyy-MM-dd")}},multiple:{formatter:function(e,t){return e.filter(Boolean).map((function(e){return A(e,t)})).join(",")},parser:function(e,t){return("string"==typeof e?e.split(","):e).map((function(e){if(e instanceof Date)return e;var n=e;return"string"==typeof e?n=e.trim():"number"==typeof e||e||(n=""),L.parse(n,t||"yyyy-MM-dd")}))}},number:{formatter:function(e){return e?"".concat(e):""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}}},z=function(e){return e?[e.getHours(),e.getMinutes(),e.getSeconds()]:[0,0,0]},q={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"},I=function(e,t,a,r){var l=t.includes("range"),i=(j[t]||j.default).parser,o=r||q[t],c=j.multiple.parser,u=e;if(!e||"time"!==t||e instanceof Date)if(a&&e)u=c(e,o);else if(l)if(e)if("string"==typeof e)u=i(e,o);else if("timerange"===t)u=i(e,o).map((function(e){return e||""}));else{var s=n()(e,2),d=s[0],p=s[1];d instanceof Date&&p instanceof Date?u=e.map((function(e){return new Date(e)})):"string"==typeof d&&"string"==typeof p?u=i(e.join(H),o):d&&p||(u=[null,null])}else u=[null,null];else"string"==typeof e&&0!==t.indexOf("time")&&(u=i(e,o)||null);else u=i(e,o);return l||a?u||[]:[u]},Y=function(e,t,n,a){var r=q[t];return n?(0,j.multiple.formatter)(e,a||r):(0,(j[t]||j.default).formatter)(e,a||r)},U=Symbol("date-picker");function E(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 J,Z,K=function(e,t){var n,a=new Date(e),r=a.getMonth()+t,l=(n=a.getFullYear(),new Date(n,r+1,0).getDate());return l<a.getDate()&&a.setDate(l),a.setMonth(r),a},$=(J={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()}},Z=new RegExp(["yyyy","Mmmm","mmmm","Mmm","mmm","mm","m"].join("|"),"g"),function(e,t,n){var a=t.match(/(\[[^\]]+\])([^\\[\]]+)(\[[^\]]+\])/).slice(1);return{separator:a[1],labels:[a[0],a[2]].map((function(t){return{label:t.replace(/\[[^\]]+\]/,(function(t){return t.slice(1,-1).replace(Z,(function(t){return J[t](n,e)}))})),type:-1!==t.indexOf("yy")?"year":"month"}}))}}),_=function(e){var t=new Date(e);return t.setHours(0,0,0,0),t.getTime()},W=function(e,t,a){if(!t||!a)return!1;var r=[t,a].sort(),l=n()(r,2),i=l[0],o=l[1];return e>=i&&e<=o},G={tableDate:{type:Date,required:!0},disableDate:Function,selectionMode:{type:String,required:!0},modelValue:{type:[Date,String,Number,Array]},rangeState:{type:Object,default:function(){return{from:null,to:null,selecting:!1}}},focusedDate:{type:Date,required:!0}};const Q=(0,o.defineComponent)({props:G,emits:["pick","pick-click","changeRange"],setup:function(e,t){var a=t.emit,r=(0,o.computed)((function(){return new(b().Generator)({onlyDays:!0,weekStart:0})})),l=(0,o.computed)((function(){var e=["日","一","二","三","四","五","六"];return e.splice(0,7).concat(e.splice(0,0))})),i=(0,o.computed)((function(){return"range"===e.selectionMode&&e.rangeState.selecting?[e.rangeState.from]:e.modelValue}));return{headerDays:l,cells:(0,o.computed)((function(){var t=e.tableDate.getFullYear(),a=e.tableDate.getMonth(),l=_(new Date),o=i.value.filter(Boolean).map(_),c=i.value.map(_),u=n()(c,2),s=u[0],d=u[1],p=e.rangeState.from&&_(e.rangeState.from),f=e.rangeState.to&&_(e.rangeState.to),h="range"===e.selectionMode,m="function"==typeof e.disableDate&&e.disableDate;return r.value(t,a,(function(e){e.date instanceof Date&&e.date.setTime(e.date.getTime()+6e4*e.date.getTimezoneOffset());var t=e.date&&_(e.date),n=e.date&&a===e.date.getMonth();return Object.assign(Object.assign({},e),{type:t===l?"today":e.type,selected:n&&o.includes(t),disabled:e.date&&m&&m(new Date(t)),range:n&&h&&W(t,p,f),start:n&&h&&t===s,end:n&&h&&t===d})})).cells.slice(0)})),getCellCls:function(e){var t;return["bk-date-picker-cells-cell",(t={},m()(t,"bk-date-picker-cells-cell-selected",e.selected||e.start||e.end),m()(t,"bk-date-picker-cells-cell-disabled",e.disabled),m()(t,"bk-date-picker-cells-cell-today","today"===e.type),m()(t,"bk-date-picker-cells-cell-prev-month","prevMonth"===e.type),m()(t,"bk-date-picker-cells-cell-next-month","nextMonth"===e.type),m()(t,"bk-date-picker-cells-cell-week-label","weekLabel"===e.type),m()(t,"bk-date-picker-cells-cell-range",e.range&&!e.start&&!e.end),t)]},handleClick:function(e){if(!e.disabled&&"weekLabel"!==e.type){var t=new Date(_(e.date));a("pick",t),a("pick-click")}},handleMouseMove:function(t){if(e.rangeState.selecting&&!t.disabled){var n=t.date;a("changeRange",n)}}}},render:function(){var e=this;return(0,o.createVNode)("div",{class:"bk-date-picker-cells"},[(0,o.createVNode)("div",{class:"bk-date-picker-cells-header"},[this.headerDays.map((function(e){return(0,o.createVNode)("span",null,[e])}))]),this.cells.map((function(t){return(0,o.createVNode)("span",{class:e.getCellCls(t),onClick:function(){return e.handleClick(t)},onMouseenter:function(){return e.handleMouseMove(t)}},[(0,o.createVNode)("em",null,[t.desc])])}))])}});var X={modelValue:{type:[Date,String,Number,Array]},shortcuts:{type:Array,default:function(){return[]}},multiple:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator:function(e){return!(["year","month","date","time"].indexOf(e)<0&&(console.error("selectionMode property is not valid: '".concat(e,"'")),1))}},startDate:{type:Date},disableDate:Function,focusedDate:{type:Date,required:!0}};const ee=(0,o.defineComponent)({props:X,emits:["pick","pick-success"],setup:function(e,t){var n=this,a=t.emit,r=function(e){return e.match(/^time/)?"time-picker":"".concat(e,"-table")},l=e.modelValue.slice().sort(),i=(0,o.reactive)({currentView:e.selectionMode||"date",pickerTable:r(e.selectionMode),dates:l,panelDate:e.startDate||l[0]||new Date}),c=function(e){i.panelDate=e,"year-table"===i.pickerTable?i.pickerTable="month-table":i.pickerTable=r(i.currentView)},u=function(t,n){console.warn("handlePick");var r;r="year"===e.selectionMode?new Date(t.getFullYear(),0,1):"month"===e.selectionMode?new Date(i.panelDate.getFullYear(),t.getMonth(),1):new Date(t),i.dates=[r],a("pick",r,!1,n||e.selectionMode)},s=(0,o.ref)(null),d=(0,o.ref)(null),p=(0,o.computed)((function(){return i.pickerTable==="".concat(i.currentView,"-table")?u:c})),f=(0,o.computed)((function(){var e=i.panelDate,t=$("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(){i.pickerTable=r(t)}),n}))}})),h=(0,o.computed)((function(){return"year"===f.value.labels[0].type||"date"===i.currentView})),m=(0,o.computed)((function(){return"year"===f.value.labels[1].type||"date"===i.currentView})),y=(0,o.computed)((function(){return"time"===i.currentView}));return console.warn("panelDatepanelDate",i.panelDate),Object.assign(Object.assign({},(0,o.toRefs)(i)),{panelPickerHandlers:p,datePanelLabel:f,showLabelFirst:h,showLabelSecond:m,handleShortcutClick:function(t){t.value&&a("pick",t.value(),!1,void 0,t),t.onClick&&t.onClick(n),e.shortcutClose&&(setTimeout((function(){i.currentView=e.selectionMode}),500),a("pick-success"))},changeYear:function(t){"year"===e.selectionMode||"year-table"===i.pickerTable?i.panelDate=new Date(i.panelDate.getFullYear()+10*t,0,1):i.panelDate=K(i.panelDate,12*t)},changeMonth:function(e){i.panelDate=K(i.panelDate,e)},reset:function(){i.currentView=e.selectionMode,i.pickerTable=r(i.currentView)},isTime:y,onToggleVisibility:function(e){var t,n;e&&(null===(t=null==s?void 0:s.value)||void 0===t||t.updateScroll(),null===(n=null==d?void 0:d.value)||void 0===n||n.updateScroll())}})},render:function(){var e=this;return(0,o.createVNode)("div",{class:["bk-picker-panel-body-wrapper",this.shortcuts.length?"bk-picker-panel-with-sidebar":""],onMousedown:function(e){e.preventDefault()}},[this.shortcuts.length?(0,o.createVNode)("div",{class:"bk-picker-panel-sidebar"},[this.shortcuts.map((function(t){return(0,o.createVNode)("div",{class:"bk-picker-panel-shortcut",onClick:function(){return e.handleShortcutClick(t)}},[t.text])}))]):"",(0,o.createVNode)("div",{class:"bk-picker-panel-body",style:"width: 261px;"},[(0,o.withDirectives)((0,o.createVNode)("div",{class:"bk-date-picker-header"},[(0,o.createVNode)("span",{class:E("prev","-double"),onClick:function(){return e.changeYear(-1)}},[(0,o.createVNode)(d.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?(0,o.withDirectives)((0,o.createVNode)("span",{class:E("prev"),onClick:function(){return e.changeMonth(-1)}},[(0,o.createVNode)(d.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[o.vShow,"date"===this.currentView]]):"",this.datePanelLabel&&Object.keys(this.datePanelLabel).length>0?(0,o.createVNode)("span",null,[(0,o.withDirectives)((0,o.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return e.datePanelLabel.labels[0].handler}},[this.datePanelLabel.labels[0].label]),[[o.vShow,this.showLabelFirst]]),"date"===this.currentView?" ".concat(this.datePanelLabel.separator," "):" ",(0,o.withDirectives)((0,o.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return e.datePanelLabel.labels[1].handler}},[this.datePanelLabel.labels[1].label]),[[o.vShow,this.showLabelSecond]])]):"",(0,o.createVNode)("span",{class:E("next","-double"),onClick:function(){return e.changeYear(1)}},[(0,o.createVNode)(d.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?(0,o.withDirectives)((0,o.createVNode)("span",{class:E("next"),onClick:function(){return e.changeMonth(1)}},[(0,o.createVNode)(d.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[o.vShow,"date"===this.currentView]]):""]),[[o.vShow,"time"!==this.currentView]]),(0,o.createVNode)("div",{class:"bk-picker-panel-content"},["time"!==this.currentView?"date-table"===e.pickerTable?(0,o.createVNode)(Q,{tableDate:e.panelDate,disableDate:e.disableDate,selectionMode:e.selectionMode,modelValue:e.dates,focusedDate:e.focusedDate,onPick:e.panelPickerHandlers},null):null:""])])])}});var te={modelValue:{type:[Date,String,Number,Array]},type:{type:String,default:"date",validator:function(e){return!(["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0&&(console.error("type property is not valid: '".concat(e,"'")),1))}},shortcuts:{type:Array,default:function(){return[]}},clearable:{type:Boolean,default:!0},splitPanels:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},showTime:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator:function(e){return!(["year","month","date","time"].indexOf(e)<0&&(console.error("selectionMode property is not valid: '".concat(e,"'")),1))}},startDate:{type:Date},upToNow:{type:Boolean,default:!1},disableDate:Function,focusedDate:{type:Date,required:!0}};const ne=(0,o.defineComponent)({props:te,emits:["pick"],setup:function(e,t){var a=t.emit,r=e.modelValue.map((function(e){return e||function(){var e=new Date;return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e}()})),l=n()(r,2),i=l[0],c=l[1],u=e.startDate?e.startDate:i,s=(0,o.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&&!c},upToNowEnable:!1,dates:e.modelValue}),d=function(e,t){return e&&t?e.getTime()-t.getTime():0},p=(0,o.ref)(null),f=(0,o.ref)(null),h=function t(n,a,r){var l=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=new Date(s["".concat(n,"PanelDate")]);if(i["set".concat(a)](i["get".concat(a)]()+r),s["".concat(n,"PanelDate")]=i,l)if(e.splitPanels){var o="left"===n?"right":"left";"left"===n&&s.leftPanelDate>=s.rightPanelDate&&t(o,a,1),"right"===n&&s.rightPanelDate<=s.leftPanelDate&&t(o,a,-1)}else{var c="left"===n?"right":"left",u=s["".concat(c,"PanelDate")],d=new Date(u);if("Month"===a){var p=new Date(d.getFullYear(),d.getMonth()+r+1,0).getDate();d.setDate(Math.min(p,d.getDate()))}d["set".concat(a)](d["get".concat(a)]()+r),s["".concat(c,"PanelDate")]=d}},m=function(e){s["".concat(e,"PickerTable")]="year-table"},y=function(e){s["".concat(e,"PickerTable")]="month-table"},b=function(e){var t=s["".concat(e,"PanelDate")],n=$("zh-CN","[yyyy]-[mm]",t),a=n.labels;return{separator:n.separator,labels:a.map((function(t){var n,a,r=t;return r.handler=(n=t.type,a="month"===n?y:m,function(){return a(e)}),r}))}},g=function(t,r){if(console.warn("handleRangePick"),s.rangeState.selecting||"time"===s.currentView){if("time"===s.currentView)s.dates=t;else{var l=[s.rangeState.from,t].sort(d),i=n()(l,2),o=i[0],c=i[1],u="upToNow"===r?new Date:new Date(new Date(new Date(c.setHours(23)).setMinutes(59)).setSeconds(59));s.dates=[o,u],s.rangeState={from:o,to:u,selecting:!1}}!function(t,n){a("pick",s.dates,!1,n||e.type)}(0,r||"date")}else s.upToNowEnable=new Date(t).getTime()<(new Date).getTime(),s.rangeState={from:t,to:null,selecting:!0}},v=function(t,n){s["".concat(t,"PanelDate")]=n;var a=s["".concat(t,"PickerTable")];if(s["".concat(t,"PickerTable")]="year-table"===a?"month-table":"".concat(s.currentView,"-table"),!e.splitPanels){var r="left"===t?"right":"left";s["".concat(r,"PanelDate")]=n,h(r,"Month","left"===r?-1:1,!1)}};(0,o.watch)((function(){return e.selectionMode}),(function(e){s.currentView=e||"range"}));var D=(0,o.computed)((function(){return"time"===s.currentView})),k=(0,o.computed)((function(){return b("left")})),w=(0,o.computed)((function(){return b("right")})),V=(0,o.computed)((function(){return s.leftPickerTable.split("-").shift()})),M=(0,o.computed)((function(){return s.rightPickerTable.split("-").shift()})),S=(0,o.computed)((function(){return"year"===k.value.labels[0].type||"date"===s.currentView})),P=(0,o.computed)((function(){return"year"===k.value.labels[1].type||"date"===s.currentView})),N=(0,o.computed)((function(){return"year"===w.value.labels[0].type||"date"===s.currentView})),C=(0,o.computed)((function(){return"year"===w.value.labels[1].type||"date"===s.currentView})),T=(0,o.computed)((function(){var e="".concat(s.currentView,"-table");return{left:s.leftPickerTable!==e,right:s.rightPickerTable!==e}})),x=(0,o.computed)((function(){return{left:T.value.left?v.bind("left"):g,right:T.value.right?v.bind("right"):g}}));return Object.assign(Object.assign({},(0,o.toRefs)(s)),{isTime:D,prevYear:function(e){var t="year"===s.currentView?-10:-1;h(e,"FullYear",t)},nextYear:function(e){var t="year"===s.currentView?10:1;h(e,"FullYear",t)},prevMonth:function(e){h(e,"Month",-1)},nextMonth:function(e){h(e,"Month",1)},leftDatePanelLabel:k,rightDatePanelLabel:w,leftDatePanelView:V,rightDatePanelView:M,leftShowLabelFirst:S,leftShowLabelSecond:P,rightShowLabelFirst:N,rightShowLabelSecond:C,preSelecting:T,panelPickerHandlers:x,reset:function(){s.currentView=e.selectionMode,s.leftPickerTable="".concat(s.currentView,"-table"),s.rightPickerTable="".concat(s.currentView,"-table")},onToggleVisibility:function(e){var t,n;e&&(null===(t=null==p?void 0:p.value)||void 0===t||t.updateScroll(),null===(n=null==f?void 0:f.value)||void 0===n||n.updateScroll())},handleRangePick:g,handleChangeRange:function(e){s.rangeState.to=e}})},render:function(){var e=this;return(0,o.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,o.createVNode)("div",{class:["bk-picker-panel-body",this.showTime?"bk-picker-panel-body-time":"bk-picker-panel-body-date"]},[(0,o.withDirectives)((0,o.createVNode)("div",{class:"bk-picker-panel-content bk-picker-panel-content-left",style:"width: 261px;"},[(0,o.withDirectives)((0,o.createVNode)("div",{class:"bk-date-picker-header"},[(0,o.createVNode)("span",{class:E("prev","-double"),onClick:function(){return e.prevYear("left")}},[(0,o.createVNode)(d.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.leftPickerTable?(0,o.withDirectives)((0,o.createVNode)("span",{class:E("prev"),onClick:function(){return e.prevMonth("left")}},[(0,o.createVNode)(d.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[o.vShow,"date"===this.currentView]]):"",this.leftDatePanelLabel&&Object.keys(this.leftDatePanelLabel).length>0?(0,o.createVNode)("span",null,[(0,o.withDirectives)((0,o.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return e.leftDatePanelLabel.labels[0].handler}},[this.leftDatePanelLabel.labels[0].label]),[[o.vShow,this.leftShowLabelFirst]]),"date"===this.leftDatePanelView?" ".concat(this.leftDatePanelLabel.separator," "):" ",(0,o.withDirectives)((0,o.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return e.leftDatePanelLabel.labels[1].handler}},[this.leftDatePanelLabel.labels[1].label]),[[o.vShow,this.leftShowLabelSecond]])]):"",this.splitPanels||"date-table"!==this.leftPickerTable?(0,o.createVNode)("span",{class:E("next","-double"),onClick:function(){return e.nextYear("left")}},[(0,o.createVNode)(d.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels||"date-table"===this.leftPickerTable?(0,o.withDirectives)((0,o.createVNode)("span",{class:E("next"),onClick:function(){return e.nextMonth("left")}},[(0,o.createVNode)(d.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[o.vShow,"date"===this.currentView]]):""]),[[o.vShow,"time"!==this.currentView]]),"time"!==this.currentView?"date-table"===e.leftPickerTable?(0,o.createVNode)(Q,{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:""]),[[o.vShow,!this.isTime]]),(0,o.withDirectives)((0,o.createVNode)("div",{class:"bk-picker-panel-content bk-picker-panel-content-right",style:"width: 261px;"},[(0,o.withDirectives)((0,o.createVNode)("div",{class:"bk-date-picker-header"},[this.splitPanels||"date-table"!==this.rightPickerTable?(0,o.createVNode)("span",{class:E("prev","-double"),onClick:function(){return e.prevYear("right")}},[(0,o.createVNode)(d.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels&&"date-table"===this.rightPickerTable?(0,o.withDirectives)((0,o.createVNode)("span",{class:E("prev","-double"),onClick:function(){return e.prevMonth("right")}},[(0,o.createVNode)(d.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[o.vShow,"date"===this.currentView]]):"",this.rightDatePanelLabel&&Object.keys(this.rightDatePanelLabel).length>0?(0,o.createVNode)("span",null,[(0,o.withDirectives)((0,o.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return e.rightDatePanelLabel.labels[0].handler}},[this.rightDatePanelLabel.labels[0].label]),[[o.vShow,this.rightShowLabelFirst]]),"date"===this.rightDatePanelView?" ".concat(this.rightDatePanelLabel.separator," "):" ",(0,o.withDirectives)((0,o.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return e.rightDatePanelLabel.labels[1].handler}},[this.rightDatePanelLabel.labels[1].label]),[[o.vShow,this.rightShowLabelSecond]])]):"",this.upToNow?(e.rangeState.selecting||"time"===e.currentView)&&e.upToNowEnable?(0,o.createVNode)("span",{class:"up-to-now",onClick:function(){return e.handleRangePick(new Date,"upToNow")}},[(0,o.createTextVNode)("至今")]):(0,o.createVNode)("span",{class:"up-to-now disabled"},[(0,o.createTextVNode)("至今")]):"",(0,o.createVNode)("span",{class:E("next","-double"),onClick:function(){return e.nextYear("right")}},[(0,o.createVNode)(d.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.rightPickerTable?(0,o.withDirectives)((0,o.createVNode)("span",{class:E("next"),onClick:function(){return e.nextMonth("right")}},[(0,o.createVNode)(d.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[o.vShow,"date"===this.currentView]]):""]),[[o.vShow,"time"!==this.currentView]]),"time"!==this.currentView?"date-table"===e.rightPickerTable?(0,o.createVNode)(Q,{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:""]),[[o.vShow,!this.isTime]])])])}});var ae={type:{type:String,default:"date",validator:function(e){return!(["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0&&(console.error("type property is not valid: '".concat(e,"'")),1))}},extPopoverCls:{type:String,default:""},format:String,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},open:{type:Boolean,default:null},multiple:{type:Boolean,default:!1},timePickerOptions:{type:Object,default:function(){return{}}},splitPanels:{type:Boolean,default:!0},startDate:Date,placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start",validator:function(e){return!(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)<0&&(console.error("placement property is not valid: '".concat(e,"'")),1))}},transfer:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},shortcuts:{type:Array,default:function(){return[]}},shortcutClose:{type:Boolean,default:!1},modelValue:{type:[Date,String,Number,Array]},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};const re=(0,o.defineComponent)({name:"DatePicker",directives:{clickoutside:c.clickoutside},props:ae,emits:["open-change","input","change","update:modelValue","clear","shortcut-change","pick-success"],slots:["header"],setup:function(e,t){var a=t.slots,l=t.emit,c=e.type.includes("range"),u=c?[null,null]:[null],s=((c?e.modelValue:[e.modelValue])||[]).every((function(e){return!e||"string"==typeof e&&""===e.trim()}))?u:I(e.modelValue,e.type,e.multiple,e.format),d=null;-1!==e.shortcutSelectedIndex&&(d=e.shortcuts[e.shortcutSelectedIndex]||null)&&(s=d.value());var p=(0,o.reactive)({showClose:!1,visible:!1,internalValue:s,disableClickOutSide:!1,disableCloseUnderTransfer:!1,selectionMode:"date",forceInputRerender:1,isFocused:!1,focusedDate:s[0]||e.startDate||new Date,focusedTime:{column:0,picker:0,time:s.map(z),active:!1},internalFocus:!1,timeEnterMode:!0,shortcut:d,onSelectionModeChange:f});function f(e){var t=e;return e.match(/^date/)&&(t="date"),p.selectionMode=["year","month","date","time"].indexOf(t)>-1&&t,p.selectionMode}var h=(0,o.computed)((function(){if(e.multiple)return p.internalValue.slice();var t=e.type.includes("range"),n=p.internalValue.map((function(e){return e instanceof Date?new Date(e):e||""}));return e.type.match(/^time/)&&(n=n.map((function(t){return Y(t,e.type,e.multiple,e.format)}))),t||e.multiple?n:n[0]})),m=(0,o.computed)((function(){return e.type.match(/^time/)?h.value:e.multiple?Y(h.value,e.type,e.multiple,e.format):Array.isArray(h.value)?h.value.map((function(t){return Y(t,e.type,e.multiple,e.format)})):Y(h.value,e.type,e.multiple,e.format)})),y=(0,o.computed)((function(){return"daterange"===e.type||"datetimerange"===e.type?"DateRangePanel":"DatePanel"})),b=(0,o.computed)((function(){return null===e.open?p.visible:e.open})),g=(0,o.computed)((function(){return console.warn("state.internalValue",p.internalValue),Y(p.internalValue,e.type,e.multiple,e.format)})),v=(0,o.computed)((function(){var t;return(null===(t=p.shortcut)||void 0===t?void 0:t.text)&&e.useShortcutText?p.shortcut.text:g.value})),D=(0,o.computed)((function(){return!!a.trigger||"datetime"===e.type||"datetimerange"===e.type||e.multiple})),k=(0,o.computed)((function(){var t="";return"medium"===e.fontSize?t="medium-font":"large"===e.fontSize&&(t="large-font"),t})),w=(0,o.computed)((function(){var t="";return"medium"===e.fontSize?t="medium-width":"large"===e.fontSize&&(t="large-width"),t})),V=(0,o.computed)((function(){var t;return!(!(null===(t=p.shortcut)||void 0===t?void 0:t.text)||!e.useShortcutText)||!e.editable||e.readonly})),M=(0,o.computed)((function(){return!!a.footer})),S=(0,o.computed)((function(){return"RangeTimePickerPanel"===y.value&&e.allowCrossDay})),P=(0,o.ref)(null);(0,o.watch)((function(){return p.visible}),(function(e){var t,n;console.error(123),!1===e&&(null===(t=N.value)||void 0===t||t.destoryDropdown()),null===(n=N.value)||void 0===n||n.updateDropdown(),l("open-change",e)}));var N=(0,o.ref)(null);(0,o.watch)((function(){return e.modelValue}),(function(t){p.internalValue=I(t,e.type,e.multiple,e.format)})),(0,o.watch)((function(){return e.open}),(function(e){p.visible=!0===e})),(0,o.watch)((function(){return e.type}),(function(e){f(e)})),(0,o.watch)((function(){return h}),(function(e,t){(JSON.stringify(e)!==JSON.stringify(t)||i()(e)!==i()(t))&&l("input",e)})),(0,o.onMounted)((function(){e.type.indexOf("date"),p.timeEnterMode=!0;var t=e.modelValue,n=h.value;i()(t)===i()(n)&&JSON.stringify(t)===JSON.stringify(n)||l("input",h.value),null!==e.open&&(p.visible=e.open),(0,o.provide)(U,{props:e,focus:function(){var e;null===(e=null==P?void 0:P.value)||void 0===e||e.focus()}})}));var C=(0,o.ref)(null),T=function(e){var t;if(p.disableCloseUnderTransfer)return p.disableCloseUnderTransfer=!1,!1;if(e&&"mousedown"===e.type&&p.visible)return e.preventDefault(),void e.stopPropagation();if(p.visible){var n=null===(t=null==C?void 0:C.value)||void 0===t?void 0:t.$el;if(e&&n&&n.contains(e.target))return;return p.visible=!1,null==e||e.preventDefault(),void(null==e||e.stopPropagation())}p.isFocused=!1,p.disableClickOutSide=!1},x=function(t){(0,o.nextTick)((function(){var n;l("change",m.value,t),l("update:modelValue",h.value),e.type.indexOf("time")<0&&(null===(n=null==P?void 0:P.value)||void 0===n||n.blur())}))},F=function(){var e;null===(e=null==C?void 0:C.value)||void 0===e||e.reset()},O=function(){var e;p.visible=!1,(0,o.nextTick)((function(){l("pick-success")})),null===(e=null==P?void 0:P.value)||void 0===e||e.blur(),F()},L=(0,o.ref)(null);return Object.assign(Object.assign({},(0,o.toRefs)(p)),{panel:y,publicStringValue:m,opened:b,visualValue:g,displayValue:v,isConfirm:D,fontSizeCls:k,longWidthCls:w,localReadonly:V,hasFooter:M,allowCrossDayProp:S,pickerDropdownRef:N,inputRef:P,triggerRef:L,pickerPanelRef:C,handleClose:T,handleIconClick:function(){var e,t;null===(e=null==P?void 0:P.value)||void 0===e||e.focus(),null===(t=null==P?void 0:P.value)||void 0===t||t.click()},handleInputMouseenter:function(){e.readonly||e.disabled||(null==g?void 0:g.value)&&(p.showClose=!0)},handleInputMouseleave:function(e){var t;(null===(t=e.toElement)||void 0===t?void 0:t.classList.contains("clear-action"))||(p.showClose=!1)},handleFocus:function(t){e.readonly||(p.isFocused=!0,t&&"focus"===t.type||e.disabled||(p.visible=!0))},handleBlur:function(t){var n;p.internalFocus?p.internalFocus=!1:p.visible?t.preventDefault():(p.isFocused=!1,f(e.type),p.internalValue=p.internalValue.slice(),F(),null===(n=null==C?void 0:C.value)||void 0===n||n.onToggleVisibility(!1))},handleKeydown:function(e){var t=e.keyCode;if(9===t&&p.visible)if(e.stopPropagation(),e.preventDefault(),D.value){var n=N.value.$el.querySelectorAll(".bk-picker-confirm > *");p.internalFocus=!0,r()(n)[e.shiftKey?"pop":"shift"]().focus()}else T();var a=[37,38,39,40];p.visible||!a.includes(t)?(27===t&&p.visible&&(e.stopPropagation(),T()),a.includes(t)&&p.focusedTime.active&&e.preventDefault()):p.visible=!0},handleInputChange:function(t){var n,a=e.type.includes("range")||e.multiple,r=g.value,l=t.target.value,i=I(l,e.type,e.multiple,e.format),o=a?i:i[0],c=null===(n=e.disableDate)||void 0===n?void 0:n.call(e,o),u=i.reduce((function(e,t){return e&&t instanceof Date}),!0);l!==r&&!c&&u?(x(e.type),p.internalValue=i):p.forceInputRerender=p.forceInputRerender+1},handleClear:function(){p.visible=!1,p.internalValue=p.internalValue.map((function(){return null})),l("clear"),x(e.type),F(),p.showClose=!1,p.shortcut=null,setTimeout((function(){return f(e.type)}),500)},handleTransferClick:function(){e.appendToBody&&(p.disableCloseUnderTransfer=!0)},onPick:function(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,c=t;if(e.multiple){var u=c.getTime(),s=p.internalValue.findIndex((function(e){return e&&e.getTime()===u})),d=[].concat(r()(p.internalValue),[c]).filter(Boolean),h=d.map((function(e){return e.getTime()})).filter((function(e,t,n){return n.indexOf(e)===t&&t!==s}));p.internalValue=h.map((function(e){return new Date(e)}))}else c=I(t,e.type,e.multiple,e.format),p.internalValue=Array.isArray(c)?c:[c];if(p.internalValue[0]){var m=n()(p.internalValue,1),y=m[0];p.focusedDate=y}p.focusedTime=Object.assign(Object.assign({},p.focusedTime),{time:p.internalValue.map(z)}),D.value||(f(e.type),p.visible=a),"upToNow"===i&&"daterange"===e.type&&O(),p.shortcut=o,x(i);var b=e.shortcuts.findIndex((function(e){return e===p.shortcut}));l("shortcut-change",p.shortcut,b)}})},render:function(){var e,t,n,a=this,r=(0,o.createVNode)("div",null,[(0,o.createVNode)("span",{class:["icon-wrapper",this.disabled?"disabled":""],onClick:this.handleIconClick,onMouseenter:this.handleInputMouseenter,onMouseleave:this.handleInputMouseleave},["time"===this.type||"timerange"===this.type?(0,o.createVNode)("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[(0,o.createVNode)("g",{id:"time"},[(0,o.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,o.createVNode)("polygon",{fill:"#c4c6cc",points:"512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"},null)])]):(0,o.createVNode)("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[(0,o.createVNode)("g",{id:"date"},[(0,o.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,o.createVNode)("rect",{x:"416",y:"128",fill:"#c4c6cc",width:"192",height:"64"},null),(0,o.createVNode)("rect",{x:"288",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),(0,o.createVNode)("rect",{x:"672",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),(0,o.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,o.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?(0,o.createVNode)("i",{class:"bk-icon icon-close-circle-shape clear-action",onClick:this.handleClear},null):""]);return(0,o.withDirectives)((0,o.createVNode)("div",{class:["bk-date-picker","datetimerange"===this.type?"long":"",this.longWidthCls]},[(0,o.createVNode)("div",{ref:"triggerRef",class:"bk-date-picker-rel"},[null!==(n=null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e))&&void 0!==n?n:r]),(0,o.createVNode)(o.Teleport,{to:"body",disabled:!this.appendToBody},{default:function(){return[(0,o.createVNode)(o.Transition,{name:"bk-fade-down-transition"},{default:function(){return[(0,o.withDirectives)((0,o.createVNode)(s,{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?(0,o.createVNode)(ne,{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):(0,o.createVNode)(ee,{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)]}}),[[o.vShow,a.opened]])]}})]}})]),[[(0,o.resolveDirective)("clickoutside"),this.handleClose]])}}),le=(0,e.withInstall)(re)})(),f})()));