bkui-vue 0.0.1-beta.39 → 0.0.1-beta.41

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 (482) hide show
  1. package/lib/alert/alert.css +75 -0
  2. package/lib/alert/alert.d.ts +62 -0
  3. package/lib/alert/alert.js +1 -0
  4. package/lib/alert/alert.less +110 -0
  5. package/lib/alert/alert.variable.css +168 -0
  6. package/lib/alert/index.d.ts +180 -0
  7. package/lib/animate-number/animate-number.d.ts +27 -0
  8. package/lib/animate-number/animate-number.js +1 -0
  9. package/lib/animate-number/index.d.ts +97 -0
  10. package/lib/backtop/backtop.css +42 -0
  11. package/lib/backtop/backtop.d.ts +60 -0
  12. package/lib/backtop/backtop.js +1 -0
  13. package/lib/backtop/backtop.less +18 -0
  14. package/lib/backtop/backtop.variable.css +135 -0
  15. package/lib/backtop/index.d.ts +166 -0
  16. package/lib/badge/badge.css +121 -0
  17. package/lib/badge/badge.d.ts +91 -0
  18. package/lib/badge/badge.js +1 -0
  19. package/lib/badge/badge.less +137 -0
  20. package/lib/badge/badge.variable.css +214 -0
  21. package/lib/badge/index.d.ts +217 -0
  22. package/lib/breadcrumb/breadcrumb-item.d.ts +36 -0
  23. package/lib/breadcrumb/breadcrumb.css +68 -0
  24. package/lib/breadcrumb/breadcrumb.d.ts +54 -0
  25. package/lib/breadcrumb/breadcrumb.js +1 -0
  26. package/lib/breadcrumb/breadcrumb.less +65 -0
  27. package/lib/breadcrumb/breadcrumb.variable.css +161 -0
  28. package/lib/breadcrumb/index.d.ts +194 -0
  29. package/lib/breadcrumb/props.d.ts +4 -0
  30. package/lib/button/button-group.d.ts +6 -0
  31. package/lib/button/button.css +265 -0
  32. package/lib/button/button.d.ts +143 -0
  33. package/lib/button/button.js +1 -0
  34. package/lib/button/button.less +195 -0
  35. package/lib/button/button.variable.css +358 -0
  36. package/lib/button/index.d.ts +226 -0
  37. package/lib/card/card.css +63 -0
  38. package/lib/card/card.d.ts +69 -0
  39. package/lib/card/card.js +1 -0
  40. package/lib/card/card.less +44 -0
  41. package/lib/card/card.variable.css +156 -0
  42. package/lib/card/index.d.ts +187 -0
  43. package/lib/checkbox/checkbox-group.d.ts +48 -0
  44. package/lib/checkbox/checkbox.css +64 -0
  45. package/lib/checkbox/checkbox.d.ts +114 -0
  46. package/lib/checkbox/checkbox.js +1 -0
  47. package/lib/checkbox/checkbox.less +80 -0
  48. package/lib/checkbox/checkbox.variable.css +157 -0
  49. package/lib/checkbox/common.d.ts +13 -0
  50. package/lib/checkbox/index.d.ts +261 -0
  51. package/lib/checkbox/type.d.ts +19 -0
  52. package/lib/code-diff/code-diff.css +186 -0
  53. package/lib/code-diff/code-diff.d.ts +80 -0
  54. package/lib/code-diff/code-diff.js +1 -0
  55. package/lib/code-diff/code-diff.less +238 -0
  56. package/lib/code-diff/code-diff.variable.css +279 -0
  57. package/lib/code-diff/index.d.ts +154 -0
  58. package/lib/collapse/collapse.css +30 -0
  59. package/lib/collapse/collapse.d.ts +106 -0
  60. package/lib/collapse/collapse.js +1 -0
  61. package/lib/collapse/collapse.less +37 -0
  62. package/lib/collapse/collapse.variable.css +30 -0
  63. package/lib/collapse/index.d.ts +166 -0
  64. package/lib/components.d.ts +41 -0
  65. package/lib/date-picker/date-picker.css +407 -0
  66. package/lib/date-picker/date-picker.d.ts +294 -0
  67. package/lib/date-picker/date-picker.js +1 -0
  68. package/lib/date-picker/date-picker.less +526 -0
  69. package/lib/date-picker/date-picker.variable.css +500 -0
  70. package/lib/date-picker/fecha.d.ts +6 -0
  71. package/lib/date-picker/index.d.ts +713 -0
  72. package/lib/date-picker/interface.d.ts +22 -0
  73. package/lib/date-picker/props.d.ts +111 -0
  74. package/lib/date-picker/utils.d.ts +97 -0
  75. package/lib/dialog/dialog.css +68 -0
  76. package/lib/dialog/dialog.d.ts +113 -0
  77. package/lib/dialog/dialog.js +1 -0
  78. package/lib/dialog/dialog.less +80 -0
  79. package/lib/dialog/dialog.variable.css +68 -0
  80. package/lib/dialog/index.d.ts +286 -0
  81. package/lib/directives/clickoutside.d.ts +3 -0
  82. package/lib/directives/directives.js +2 -0
  83. package/lib/directives/directives.js.LICENSE.txt +14 -0
  84. package/lib/directives/index.d.ts +3 -0
  85. package/lib/directives/mousewheel.d.ts +3 -0
  86. package/lib/directives/tooltips.d.ts +17 -0
  87. package/lib/divider/divider.css +38 -0
  88. package/lib/divider/divider.d.ts +48 -0
  89. package/lib/divider/divider.js +1 -0
  90. package/lib/divider/divider.less +53 -0
  91. package/lib/divider/divider.variable.css +131 -0
  92. package/lib/divider/index.d.ts +142 -0
  93. package/lib/divider/props.d.ts +21 -0
  94. package/lib/dropdown/dropdown-item.d.ts +19 -0
  95. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  96. package/lib/dropdown/dropdown.css +43 -0
  97. package/lib/dropdown/dropdown.d.ts +61 -0
  98. package/lib/dropdown/dropdown.js +1 -0
  99. package/lib/dropdown/dropdown.less +54 -0
  100. package/lib/dropdown/dropdown.variable.css +136 -0
  101. package/lib/dropdown/index.d.ts +192 -0
  102. package/lib/exception/exception.css +32 -0
  103. package/lib/exception/exception.d.ts +26 -0
  104. package/lib/exception/exception.js +1 -0
  105. package/lib/exception/exception.less +39 -0
  106. package/lib/exception/exception.variable.css +125 -0
  107. package/lib/exception/index.d.ts +96 -0
  108. package/lib/fixed-navbar/fixed-navbar.css +42 -0
  109. package/lib/fixed-navbar/fixed-navbar.d.ts +34 -0
  110. package/lib/fixed-navbar/fixed-navbar.js +1 -0
  111. package/lib/fixed-navbar/fixed-navbar.less +53 -0
  112. package/lib/fixed-navbar/fixed-navbar.variable.css +135 -0
  113. package/lib/fixed-navbar/index.d.ts +112 -0
  114. package/lib/form/common.d.ts +3 -0
  115. package/lib/form/form-item.d.ts +145 -0
  116. package/lib/form/form.css +48 -0
  117. package/lib/form/form.d.ts +64 -0
  118. package/lib/form/form.js +1 -0
  119. package/lib/form/form.less +63 -0
  120. package/lib/form/form.variable.css +48 -0
  121. package/lib/form/index.d.ts +246 -0
  122. package/lib/form/type.d.ts +21 -0
  123. package/lib/form/validator.d.ts +8 -0
  124. package/lib/icon/angle-double-down-line.d.ts +4 -0
  125. package/lib/icon/angle-double-down-line.js +1 -0
  126. package/lib/icon/angle-double-left-line.d.ts +4 -0
  127. package/lib/icon/angle-double-left-line.js +1 -0
  128. package/lib/icon/angle-double-left.d.ts +4 -0
  129. package/lib/icon/angle-double-left.js +1 -0
  130. package/lib/icon/angle-double-right-line.d.ts +4 -0
  131. package/lib/icon/angle-double-right-line.js +1 -0
  132. package/lib/icon/angle-double-right.d.ts +4 -0
  133. package/lib/icon/angle-double-right.js +1 -0
  134. package/lib/icon/angle-double-up-line.d.ts +4 -0
  135. package/lib/icon/angle-double-up-line.js +1 -0
  136. package/lib/icon/angle-down-fill.d.ts +4 -0
  137. package/lib/icon/angle-down-fill.js +1 -0
  138. package/lib/icon/angle-down-line.d.ts +4 -0
  139. package/lib/icon/angle-down-line.js +1 -0
  140. package/lib/icon/angle-down.d.ts +4 -0
  141. package/lib/icon/angle-down.js +1 -0
  142. package/lib/icon/angle-left.d.ts +4 -0
  143. package/lib/icon/angle-left.js +1 -0
  144. package/lib/icon/angle-right.d.ts +4 -0
  145. package/lib/icon/angle-right.js +1 -0
  146. package/lib/icon/angle-up-fill.d.ts +4 -0
  147. package/lib/icon/angle-up-fill.js +1 -0
  148. package/lib/icon/angle-up.d.ts +4 -0
  149. package/lib/icon/angle-up.js +1 -0
  150. package/lib/icon/arrows-left.d.ts +4 -0
  151. package/lib/icon/arrows-left.js +1 -0
  152. package/lib/icon/arrows-right.d.ts +4 -0
  153. package/lib/icon/arrows-right.js +1 -0
  154. package/lib/icon/bk.d.ts +4 -0
  155. package/lib/icon/bk.js +1 -0
  156. package/lib/icon/circle.d.ts +4 -0
  157. package/lib/icon/circle.js +1 -0
  158. package/lib/icon/close.d.ts +4 -0
  159. package/lib/icon/close.js +1 -0
  160. package/lib/icon/code.d.ts +4 -0
  161. package/lib/icon/code.js +1 -0
  162. package/lib/icon/cog-shape.d.ts +4 -0
  163. package/lib/icon/cog-shape.js +1 -0
  164. package/lib/icon/collapse-left.d.ts +4 -0
  165. package/lib/icon/collapse-left.js +1 -0
  166. package/lib/icon/copy.d.ts +4 -0
  167. package/lib/icon/copy.js +1 -0
  168. package/lib/icon/done.d.ts +4 -0
  169. package/lib/icon/done.js +1 -0
  170. package/lib/icon/down-shape.d.ts +4 -0
  171. package/lib/icon/down-shape.js +1 -0
  172. package/lib/icon/down-small.d.ts +4 -0
  173. package/lib/icon/down-small.js +1 -0
  174. package/lib/icon/ellipsis.d.ts +4 -0
  175. package/lib/icon/ellipsis.js +1 -0
  176. package/lib/icon/error.d.ts +4 -0
  177. package/lib/icon/error.js +1 -0
  178. package/lib/icon/eye.d.ts +4 -0
  179. package/lib/icon/eye.js +1 -0
  180. package/lib/icon/folder-open.d.ts +4 -0
  181. package/lib/icon/folder-open.js +1 -0
  182. package/lib/icon/folder-shape-open.d.ts +4 -0
  183. package/lib/icon/folder-shape-open.js +1 -0
  184. package/lib/icon/folder-shape.d.ts +4 -0
  185. package/lib/icon/folder-shape.js +1 -0
  186. package/lib/icon/folder.d.ts +4 -0
  187. package/lib/icon/folder.js +1 -0
  188. package/lib/icon/help-document-fill.d.ts +4 -0
  189. package/lib/icon/help-document-fill.js +1 -0
  190. package/lib/icon/help-fill.d.ts +4 -0
  191. package/lib/icon/help-fill.js +1 -0
  192. package/lib/icon/help.d.ts +4 -0
  193. package/lib/icon/help.js +1 -0
  194. package/lib/icon/icon.d.ts +12 -0
  195. package/lib/icon/icon.js +1 -0
  196. package/lib/icon/index.d.ts +53 -0
  197. package/lib/icon/info-line.d.ts +4 -0
  198. package/lib/icon/info-line.js +1 -0
  199. package/lib/icon/info.d.ts +4 -0
  200. package/lib/icon/info.js +1 -0
  201. package/lib/icon/left-shape.d.ts +4 -0
  202. package/lib/icon/left-shape.js +1 -0
  203. package/lib/icon/play-shape.d.ts +4 -0
  204. package/lib/icon/play-shape.js +1 -0
  205. package/lib/icon/plus.d.ts +4 -0
  206. package/lib/icon/plus.js +1 -0
  207. package/lib/icon/qq.d.ts +4 -0
  208. package/lib/icon/qq.js +1 -0
  209. package/lib/icon/right-shape.d.ts +4 -0
  210. package/lib/icon/right-shape.js +1 -0
  211. package/lib/icon/search.d.ts +4 -0
  212. package/lib/icon/search.js +1 -0
  213. package/lib/icon/share.d.ts +4 -0
  214. package/lib/icon/share.js +1 -0
  215. package/lib/icon/spinner.d.ts +4 -0
  216. package/lib/icon/spinner.js +1 -0
  217. package/lib/icon/success.d.ts +4 -0
  218. package/lib/icon/success.js +1 -0
  219. package/lib/icon/switcher-loading.d.ts +4 -0
  220. package/lib/icon/switcher-loading.js +1 -0
  221. package/lib/icon/text-file.d.ts +4 -0
  222. package/lib/icon/text-file.js +1 -0
  223. package/lib/icon/tree-application-shape.d.ts +4 -0
  224. package/lib/icon/tree-application-shape.js +1 -0
  225. package/lib/icon/unvisible.d.ts +4 -0
  226. package/lib/icon/unvisible.js +1 -0
  227. package/lib/icon/up-shape.d.ts +4 -0
  228. package/lib/icon/up-shape.js +1 -0
  229. package/lib/icon/warn.d.ts +4 -0
  230. package/lib/icon/warn.js +1 -0
  231. package/lib/icon/weixin.d.ts +4 -0
  232. package/lib/icon/weixin.js +1 -0
  233. package/lib/index.d.ts +4 -0
  234. package/lib/input/index.d.ts +443 -0
  235. package/lib/input/input.css +190 -0
  236. package/lib/input/input.d.ts +254 -0
  237. package/lib/input/input.js +1 -0
  238. package/lib/input/input.less +214 -0
  239. package/lib/input/input.variable.css +284 -0
  240. package/lib/link/index.d.ts +164 -0
  241. package/lib/link/link.css +55 -0
  242. package/lib/link/link.d.ts +58 -0
  243. package/lib/link/link.js +1 -0
  244. package/lib/link/link.less +74 -0
  245. package/lib/link/link.variable.css +148 -0
  246. package/lib/loading/index.d.ts +164 -0
  247. package/lib/loading/loading.css +261 -0
  248. package/lib/loading/loading.d.ts +94 -0
  249. package/lib/loading/loading.js +1 -0
  250. package/lib/loading/loading.less +197 -0
  251. package/lib/loading/loading.variable.css +354 -0
  252. package/lib/menu/index.d.ts +188 -0
  253. package/lib/menu/menu-group.d.ts +14 -0
  254. package/lib/menu/menu-item.d.ts +16 -0
  255. package/lib/menu/menu.css +182 -0
  256. package/lib/menu/menu.d.ts +64 -0
  257. package/lib/menu/menu.js +1 -0
  258. package/lib/menu/menu.less +180 -0
  259. package/lib/menu/menu.variable.css +275 -0
  260. package/lib/menu/submenu.css +3 -0
  261. package/lib/menu/submenu.d.ts +22 -0
  262. package/lib/menu/submenu.less +5 -0
  263. package/lib/menu/submenu.variable.css +96 -0
  264. package/lib/menu/utils.d.ts +41 -0
  265. package/lib/message/index.d.ts +2 -0
  266. package/lib/message/message.css +53 -0
  267. package/lib/message/message.js +1 -0
  268. package/lib/message/message.less +61 -0
  269. package/lib/message/message.variable.css +146 -0
  270. package/lib/message/messageConstructor.d.ts +73 -0
  271. package/lib/modal/index.d.ts +214 -0
  272. package/lib/modal/modal.css +11 -0
  273. package/lib/modal/modal.d.ts +65 -0
  274. package/lib/modal/modal.js +1 -0
  275. package/lib/modal/modal.less +12 -0
  276. package/lib/modal/modal.variable.css +11 -0
  277. package/lib/modal/props.mixin.d.ts +26 -0
  278. package/lib/navigation/index.d.ts +2 -0
  279. package/lib/navigation/navigation-title.d.ts +25 -0
  280. package/lib/navigation/navigation.css +184 -0
  281. package/lib/navigation/navigation.d.ts +111 -0
  282. package/lib/navigation/navigation.js +1 -0
  283. package/lib/navigation/navigation.less +210 -0
  284. package/lib/navigation/navigation.variable.css +277 -0
  285. package/lib/notify/index.d.ts +2 -0
  286. package/lib/notify/notify.css +49 -0
  287. package/lib/notify/notify.js +1 -0
  288. package/lib/notify/notify.less +58 -0
  289. package/lib/notify/notify.variable.css +142 -0
  290. package/lib/notify/notifyConstructor.d.ts +91 -0
  291. package/lib/pagination/index.d.ts +395 -0
  292. package/lib/pagination/pagination.css +179 -0
  293. package/lib/pagination/pagination.d.ts +220 -0
  294. package/lib/pagination/pagination.js +1 -0
  295. package/lib/pagination/pagination.less +201 -0
  296. package/lib/pagination/pagination.variable.css +272 -0
  297. package/lib/pagination/type.d.ts +6 -0
  298. package/lib/pagination/use-limit.d.ts +8 -0
  299. package/lib/pagination/use-list.d.ts +8 -0
  300. package/lib/pagination/use-small-list.d.ts +5 -0
  301. package/lib/pagination/use-total.d.ts +5 -0
  302. package/lib/popover/index.d.ts +287 -0
  303. package/lib/popover/popover.css +65 -0
  304. package/lib/popover/popover.d.ts +117 -0
  305. package/lib/popover/popover.js +1 -0
  306. package/lib/popover/popover.less +82 -0
  307. package/lib/popover/popover.variable.css +158 -0
  308. package/lib/popover/props.d.ts +77 -0
  309. package/lib/preset.d.ts +7 -0
  310. package/lib/process/index.d.ts +205 -0
  311. package/lib/process/process.css +138 -0
  312. package/lib/process/process.d.ts +131 -0
  313. package/lib/process/process.js +1 -0
  314. package/lib/process/process.less +178 -0
  315. package/lib/process/process.variable.css +231 -0
  316. package/lib/progress/circle.d.ts +6 -0
  317. package/lib/progress/index.d.ts +398 -0
  318. package/lib/progress/line.d.ts +6 -0
  319. package/lib/progress/progress.css +94 -0
  320. package/lib/progress/progress.d.ts +171 -0
  321. package/lib/progress/progress.js +1 -0
  322. package/lib/progress/progress.less +90 -0
  323. package/lib/progress/progress.variable.css +187 -0
  324. package/lib/radio/common.d.ts +13 -0
  325. package/lib/radio/index.d.ts +277 -0
  326. package/lib/radio/radio-button.d.ts +91 -0
  327. package/lib/radio/radio-group.d.ts +41 -0
  328. package/lib/radio/radio.css +138 -0
  329. package/lib/radio/radio.d.ts +87 -0
  330. package/lib/radio/radio.js +1 -0
  331. package/lib/radio/radio.less +173 -0
  332. package/lib/radio/radio.variable.css +231 -0
  333. package/lib/radio/type.d.ts +9 -0
  334. package/lib/rate/index.d.ts +113 -0
  335. package/lib/rate/rate.css +10 -0
  336. package/lib/rate/rate.d.ts +32 -0
  337. package/lib/rate/rate.js +1 -0
  338. package/lib/rate/rate.less +11 -0
  339. package/lib/rate/rate.variable.css +10 -0
  340. package/lib/rate/star.css +24 -0
  341. package/lib/rate/star.d.ts +74 -0
  342. package/lib/rate/star.less +29 -0
  343. package/lib/rate/star.variable.css +24 -0
  344. package/lib/resize-layout/index.d.ts +336 -0
  345. package/lib/resize-layout/resize-layout.css +189 -0
  346. package/lib/resize-layout/resize-layout.d.ts +127 -0
  347. package/lib/resize-layout/resize-layout.js +1 -0
  348. package/lib/resize-layout/resize-layout.less +233 -0
  349. package/lib/resize-layout/resize-layout.variable.css +282 -0
  350. package/lib/select/common.d.ts +33 -0
  351. package/lib/select/index.d.ts +1347 -0
  352. package/lib/select/option.d.ts +25 -0
  353. package/lib/select/optionGroup.d.ts +54 -0
  354. package/lib/select/select.css +325 -0
  355. package/lib/select/select.d.ts +395 -0
  356. package/lib/select/select.js +1 -0
  357. package/lib/select/select.less +324 -0
  358. package/lib/select/select.variable.css +418 -0
  359. package/lib/select/type.d.ts +31 -0
  360. package/lib/shared/helper.d.ts +92 -0
  361. package/lib/shared/index.d.ts +52 -0
  362. package/lib/shared/mask-manager.d.ts +76 -0
  363. package/lib/shared/pop-manager.d.ts +26 -0
  364. package/lib/shared/popover.d.ts +127 -0
  365. package/lib/shared/scrollbar-width.d.ts +1 -0
  366. package/lib/shared/shared.js +1 -0
  367. package/lib/shared/utils.d.ts +6 -0
  368. package/lib/shared/vue-types.d.ts +115 -0
  369. package/lib/shared/z-index-manager.d.ts +93 -0
  370. package/lib/sideslider/index.d.ts +206 -0
  371. package/lib/sideslider/sideslider.css +69 -0
  372. package/lib/sideslider/sideslider.d.ts +75 -0
  373. package/lib/sideslider/sideslider.js +1 -0
  374. package/lib/sideslider/sideslider.less +86 -0
  375. package/lib/sideslider/sideslider.variable.css +162 -0
  376. package/lib/slider/index.d.ts +27 -0
  377. package/lib/slider/slider-button.d.ts +80 -0
  378. package/lib/slider/slider.css +149 -0
  379. package/lib/slider/slider.d.ts +201 -0
  380. package/lib/slider/slider.js +1 -0
  381. package/lib/slider/slider.less +179 -0
  382. package/lib/slider/slider.variable.css +242 -0
  383. package/lib/steps/index.d.ts +250 -0
  384. package/lib/steps/steps.css +288 -0
  385. package/lib/steps/steps.d.ts +161 -0
  386. package/lib/steps/steps.js +1 -0
  387. package/lib/steps/steps.less +324 -0
  388. package/lib/steps/steps.variable.css +381 -0
  389. package/lib/styles/index.d.ts +47 -0
  390. package/lib/styles/mixins/animate.css +21 -0
  391. package/lib/styles/mixins/animate.less +27 -0
  392. package/lib/styles/mixins/animate.variable.css +21 -0
  393. package/lib/styles/mixins/ellipsis.less +8 -0
  394. package/lib/styles/mixins/mixins.css +21 -0
  395. package/lib/styles/mixins/mixins.less +3 -0
  396. package/lib/styles/mixins/mixins.variable.css +21 -0
  397. package/lib/styles/mixins/popper.css +43 -0
  398. package/lib/styles/mixins/popper.less +52 -0
  399. package/lib/styles/mixins/popper.variable.css +43 -0
  400. package/lib/styles/mixins/size.less +13 -0
  401. package/lib/styles/reset.css +273 -0
  402. package/lib/styles/reset.less +313 -0
  403. package/lib/styles/reset.variable.css +273 -0
  404. package/lib/styles/themes/themes.less +126 -0
  405. package/lib/swiper/index.d.ts +181 -0
  406. package/lib/swiper/swiper.css +91 -0
  407. package/lib/swiper/swiper.d.ts +65 -0
  408. package/lib/swiper/swiper.js +1 -0
  409. package/lib/swiper/swiper.less +107 -0
  410. package/lib/swiper/swiper.variable.css +91 -0
  411. package/lib/switcher/index.d.ts +286 -0
  412. package/lib/switcher/switcher.css +272 -0
  413. package/lib/switcher/switcher.d.ts +113 -0
  414. package/lib/switcher/switcher.js +1 -0
  415. package/lib/switcher/switcher.less +358 -0
  416. package/lib/switcher/switcher.variable.css +365 -0
  417. package/lib/tab/index.d.ts +443 -0
  418. package/lib/tab/props.d.ts +191 -0
  419. package/lib/tab/tab-nav.d.ts +165 -0
  420. package/lib/tab/tab-panel.d.ts +73 -0
  421. package/lib/tab/tab.css +148 -0
  422. package/lib/tab/tab.d.ts +140 -0
  423. package/lib/tab/tab.js +1 -0
  424. package/lib/tab/tab.less +222 -0
  425. package/lib/tab/tab.variable.css +241 -0
  426. package/lib/table/const.d.ts +4 -0
  427. package/lib/table/index.d.ts +302 -0
  428. package/lib/table/props.d.ts +117 -0
  429. package/lib/table/render.d.ts +83 -0
  430. package/lib/table/table.css +91 -0
  431. package/lib/table/table.d.ts +119 -0
  432. package/lib/table/table.js +1 -0
  433. package/lib/table/table.less +115 -0
  434. package/lib/table/table.variable.css +184 -0
  435. package/lib/table/utils.d.ts +69 -0
  436. package/lib/tag/index.d.ts +229 -0
  437. package/lib/tag/tag.css +97 -0
  438. package/lib/tag/tag.d.ts +84 -0
  439. package/lib/tag/tag.js +1 -0
  440. package/lib/tag/tag.less +113 -0
  441. package/lib/tag/tag.variable.css +190 -0
  442. package/lib/tag-input/common.d.ts +24 -0
  443. package/lib/tag-input/index.d.ts +2 -0
  444. package/lib/tag-input/list-tag-render.d.ts +47 -0
  445. package/lib/tag-input/tag-input.css +208 -0
  446. package/lib/tag-input/tag-input.d.ts +374 -0
  447. package/lib/tag-input/tag-input.js +1 -0
  448. package/lib/tag-input/tag-input.less +250 -0
  449. package/lib/tag-input/tag-input.variable.css +301 -0
  450. package/lib/tag-input/tag-props.d.ts +131 -0
  451. package/lib/tag-input/tag-render.d.ts +38 -0
  452. package/lib/timeline/index.d.ts +129 -0
  453. package/lib/timeline/timeline.css +235 -0
  454. package/lib/timeline/timeline.d.ts +81 -0
  455. package/lib/timeline/timeline.js +1 -0
  456. package/lib/timeline/timeline.less +239 -0
  457. package/lib/timeline/timeline.variable.css +328 -0
  458. package/lib/transfer/index.d.ts +351 -0
  459. package/lib/transfer/transfer.css +158 -0
  460. package/lib/transfer/transfer.d.ts +185 -0
  461. package/lib/transfer/transfer.js +1 -0
  462. package/lib/transfer/transfer.less +171 -0
  463. package/lib/transfer/transfer.variable.css +251 -0
  464. package/lib/tree/index.d.ts +287 -0
  465. package/lib/tree/props.d.ts +89 -0
  466. package/lib/tree/tree.css +50 -0
  467. package/lib/tree/tree.d.ts +111 -0
  468. package/lib/tree/tree.js +1 -0
  469. package/lib/tree/tree.less +63 -0
  470. package/lib/tree/tree.variable.css +143 -0
  471. package/lib/tree/util.d.ts +70 -0
  472. package/lib/use-form.d.ts +3 -0
  473. package/lib/use-message.d.ts +2 -0
  474. package/lib/virtual-render/index.d.ts +556 -0
  475. package/lib/virtual-render/props.d.ts +157 -0
  476. package/lib/virtual-render/v-virtual-render.d.ts +7 -0
  477. package/lib/virtual-render/virtual-render.css +33 -0
  478. package/lib/virtual-render/virtual-render.d.ts +244 -0
  479. package/lib/virtual-render/virtual-render.js +1 -0
  480. package/lib/virtual-render/virtual-render.less +43 -0
  481. package/lib/virtual-render/virtual-render.variable.css +33 -0
  482. package/package.json +12 -11
@@ -0,0 +1,294 @@
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;
@@ -0,0 +1 @@
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})()));