bkui-vue 0.0.1-beta.6 → 0.0.1-beta.62

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 (561) hide show
  1. package/README.md +31 -19
  2. package/dist/index.cjs.js +57 -0
  3. package/dist/index.esm.js +22762 -0
  4. package/dist/index.umd.js +57 -0
  5. package/dist/style.css +1 -2009
  6. package/lib/affix/affix.css +3 -0
  7. package/lib/affix/affix.d.ts +47 -0
  8. package/lib/affix/affix.less +5 -0
  9. package/lib/affix/affix.variable.css +102 -0
  10. package/lib/affix/index.d.ts +143 -0
  11. package/lib/affix/index.js +1 -0
  12. package/lib/alert/alert.d.ts +24 -15
  13. package/lib/alert/alert.variable.css +38 -0
  14. package/lib/alert/index.d.ts +180 -0
  15. package/lib/alert/index.js +1 -1
  16. package/lib/animate-number/animate-number.d.ts +12 -7
  17. package/lib/animate-number/index.d.ts +97 -0
  18. package/lib/animate-number/index.js +1 -1
  19. package/lib/backtop/backtop.d.ts +27 -13
  20. package/lib/backtop/backtop.variable.css +38 -0
  21. package/lib/backtop/index.d.ts +166 -0
  22. package/lib/backtop/index.js +1 -1
  23. package/lib/badge/badge.css +5 -5
  24. package/lib/badge/badge.d.ts +64 -22
  25. package/lib/badge/badge.less +5 -6
  26. package/lib/badge/badge.variable.css +43 -5
  27. package/lib/badge/index.d.ts +267 -0
  28. package/lib/badge/index.js +1 -1
  29. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  30. package/lib/breadcrumb/breadcrumb.css +18 -1
  31. package/lib/breadcrumb/breadcrumb.d.ts +37 -9
  32. package/lib/breadcrumb/breadcrumb.less +13 -2
  33. package/lib/breadcrumb/breadcrumb.variable.css +56 -1
  34. package/lib/breadcrumb/index.d.ts +194 -0
  35. package/lib/breadcrumb/index.js +1 -1
  36. package/lib/button/button-group.d.ts +3 -5
  37. package/lib/button/button.css +43 -22
  38. package/lib/button/button.d.ts +66 -30
  39. package/lib/button/button.less +49 -32
  40. package/lib/button/button.variable.css +81 -22
  41. package/lib/button/index.d.ts +237 -0
  42. package/lib/button/index.js +1 -1
  43. package/lib/card/card.css +53 -1
  44. package/lib/card/card.d.ts +74 -18
  45. package/lib/card/card.less +50 -2
  46. package/lib/card/card.variable.css +91 -1
  47. package/lib/card/index.d.ts +283 -0
  48. package/lib/card/index.js +1 -1
  49. package/lib/cascader/cascader-panel.d.ts +48 -0
  50. package/lib/cascader/cascader.css +130 -0
  51. package/lib/cascader/cascader.d.ts +271 -0
  52. package/lib/cascader/cascader.less +146 -0
  53. package/lib/cascader/cascader.variable.css +229 -0
  54. package/lib/cascader/index.d.ts +721 -0
  55. package/lib/cascader/index.js +1 -0
  56. package/lib/cascader/interface.d.ts +44 -0
  57. package/lib/cascader/node.d.ts +24 -0
  58. package/lib/cascader/store.d.ts +15 -0
  59. package/lib/checkbox/checkbox-group.d.ts +13 -9
  60. package/lib/checkbox/checkbox.css +12 -0
  61. package/lib/checkbox/checkbox.d.ts +33 -30
  62. package/lib/checkbox/checkbox.less +17 -0
  63. package/lib/checkbox/checkbox.variable.css +50 -0
  64. package/lib/checkbox/common.d.ts +3 -3
  65. package/lib/checkbox/index.d.ts +253 -0
  66. package/lib/checkbox/index.js +1 -1
  67. package/lib/checkbox/type.d.ts +9 -12
  68. package/lib/code-diff/code-diff.css +186 -0
  69. package/lib/code-diff/code-diff.d.ts +80 -0
  70. package/lib/code-diff/code-diff.less +238 -0
  71. package/lib/code-diff/code-diff.variable.css +285 -0
  72. package/lib/code-diff/index.d.ts +154 -0
  73. package/lib/code-diff/index.js +1 -0
  74. package/lib/collapse/collapse.css +8 -0
  75. package/lib/collapse/collapse.d.ts +50 -18
  76. package/lib/collapse/collapse.less +10 -0
  77. package/lib/collapse/collapse.variable.css +8 -0
  78. package/lib/collapse/index.d.ts +166 -0
  79. package/lib/collapse/index.js +1 -1
  80. package/lib/components.d.ts +45 -0
  81. package/lib/components.js +1 -0
  82. package/lib/container/col.d.ts +51 -0
  83. package/lib/container/container.css +48 -0
  84. package/lib/container/container.d.ts +83 -0
  85. package/lib/container/container.less +20 -0
  86. package/lib/container/container.variable.css +147 -0
  87. package/lib/container/index.d.ts +223 -0
  88. package/lib/container/index.js +1 -0
  89. package/lib/container/row.d.ts +4 -0
  90. package/lib/date-picker/date-picker.css +408 -0
  91. package/lib/date-picker/date-picker.d.ts +301 -0
  92. package/lib/date-picker/date-picker.less +527 -0
  93. package/lib/date-picker/date-picker.variable.css +507 -0
  94. package/lib/date-picker/fecha.d.ts +6 -0
  95. package/lib/date-picker/index.d.ts +728 -0
  96. package/lib/date-picker/index.js +1 -0
  97. package/lib/date-picker/interface.d.ts +22 -0
  98. package/lib/date-picker/props.d.ts +114 -0
  99. package/lib/date-picker/utils.d.ts +97 -0
  100. package/lib/dialog/dialog.css +49 -0
  101. package/lib/dialog/dialog.d.ts +294 -52
  102. package/lib/dialog/dialog.less +16 -0
  103. package/lib/dialog/dialog.variable.css +49 -0
  104. package/lib/dialog/index.d.ts +749 -0
  105. package/lib/dialog/index.js +1 -1
  106. package/lib/directives/clickoutside.d.ts +3 -0
  107. package/lib/directives/index.d.ts +3 -0
  108. package/lib/directives/index.js +2 -15
  109. package/lib/directives/index.js.LICENSE.txt +14 -0
  110. package/lib/directives/tooltips.d.ts +17 -0
  111. package/lib/dist.index.js +1 -0
  112. package/lib/divider/divider.css +38 -0
  113. package/lib/divider/divider.d.ts +48 -0
  114. package/lib/divider/divider.less +53 -0
  115. package/lib/divider/divider.variable.css +137 -0
  116. package/lib/divider/index.d.ts +142 -0
  117. package/lib/divider/index.js +1 -0
  118. package/lib/divider/props.d.ts +21 -0
  119. package/lib/dropdown/dropdown-item.d.ts +19 -0
  120. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  121. package/lib/dropdown/dropdown.css +47 -0
  122. package/lib/dropdown/dropdown.d.ts +63 -0
  123. package/lib/dropdown/dropdown.less +59 -0
  124. package/lib/dropdown/dropdown.variable.css +146 -0
  125. package/lib/dropdown/index.d.ts +200 -0
  126. package/lib/dropdown/index.js +1 -0
  127. package/lib/exception/exception.d.ts +11 -9
  128. package/lib/exception/exception.variable.css +38 -0
  129. package/lib/exception/index.d.ts +96 -0
  130. package/lib/exception/index.js +1 -1
  131. package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
  132. package/lib/fixed-navbar/fixed-navbar.variable.css +38 -0
  133. package/lib/fixed-navbar/index.d.ts +147 -0
  134. package/lib/fixed-navbar/index.js +1 -1
  135. package/lib/form/common.d.ts +3 -0
  136. package/lib/form/compose-form-item.d.ts +16 -0
  137. package/lib/form/form-item.d.ts +145 -0
  138. package/lib/form/form.css +117 -0
  139. package/lib/form/form.d.ts +67 -0
  140. package/lib/form/form.less +145 -0
  141. package/lib/form/form.variable.css +216 -0
  142. package/lib/form/index.d.ts +273 -0
  143. package/lib/form/index.js +1 -0
  144. package/lib/form/type.d.ts +21 -0
  145. package/lib/form/validator.d.ts +8 -0
  146. package/lib/icon/angle-double-down-line.d.ts +4 -0
  147. package/lib/icon/angle-double-down-line.js +1 -0
  148. package/lib/icon/angle-double-left-line.d.ts +4 -0
  149. package/lib/icon/angle-double-left-line.js +1 -0
  150. package/lib/icon/angle-double-left.d.ts +4 -0
  151. package/lib/icon/angle-double-left.js +1 -0
  152. package/lib/icon/angle-double-right-line.d.ts +4 -0
  153. package/lib/icon/angle-double-right-line.js +1 -0
  154. package/lib/icon/angle-double-right.d.ts +4 -0
  155. package/lib/icon/angle-double-right.js +1 -0
  156. package/lib/icon/angle-double-up-line.d.ts +4 -0
  157. package/lib/icon/angle-double-up-line.js +1 -0
  158. package/lib/icon/angle-down-fill.d.ts +4 -0
  159. package/lib/icon/angle-down-fill.js +1 -0
  160. package/lib/icon/angle-down-line.d.ts +4 -0
  161. package/lib/icon/angle-down-line.js +1 -0
  162. package/lib/icon/angle-down.d.ts +4 -0
  163. package/lib/icon/angle-down.js +1 -0
  164. package/lib/icon/angle-left.d.ts +4 -0
  165. package/lib/icon/angle-left.js +1 -0
  166. package/lib/icon/angle-right.d.ts +4 -0
  167. package/lib/icon/angle-right.js +1 -0
  168. package/lib/icon/angle-up-fill.d.ts +4 -0
  169. package/lib/icon/angle-up-fill.js +1 -0
  170. package/lib/icon/angle-up.d.ts +4 -0
  171. package/lib/icon/angle-up.js +1 -0
  172. package/lib/icon/archive-fill.d.ts +4 -0
  173. package/lib/icon/archive-fill.js +1 -0
  174. package/lib/icon/arrows-left.d.ts +4 -0
  175. package/lib/icon/arrows-left.js +1 -0
  176. package/lib/icon/arrows-right.d.ts +4 -0
  177. package/lib/icon/arrows-right.js +1 -0
  178. package/lib/icon/audio-fill.d.ts +4 -0
  179. package/lib/icon/audio-fill.js +1 -0
  180. package/lib/icon/bk.d.ts +4 -0
  181. package/lib/icon/bk.js +1 -0
  182. package/lib/icon/circle.d.ts +4 -0
  183. package/lib/icon/circle.js +1 -0
  184. package/lib/icon/close-line.d.ts +4 -0
  185. package/lib/icon/close-line.js +1 -0
  186. package/lib/icon/close.d.ts +4 -0
  187. package/lib/icon/close.js +1 -0
  188. package/lib/icon/code.d.ts +4 -0
  189. package/lib/icon/code.js +1 -0
  190. package/lib/icon/cog-shape.d.ts +4 -0
  191. package/lib/icon/cog-shape.js +1 -0
  192. package/lib/icon/collapse-left.d.ts +4 -0
  193. package/lib/icon/collapse-left.js +1 -0
  194. package/lib/icon/copy.d.ts +4 -0
  195. package/lib/icon/copy.js +1 -0
  196. package/lib/icon/data-shape.d.ts +4 -0
  197. package/lib/icon/data-shape.js +1 -0
  198. package/lib/icon/del.d.ts +4 -0
  199. package/lib/icon/del.js +1 -0
  200. package/lib/icon/doc-fill.d.ts +4 -0
  201. package/lib/icon/doc-fill.js +1 -0
  202. package/lib/icon/done.d.ts +4 -0
  203. package/lib/icon/done.js +1 -0
  204. package/lib/icon/down-shape.d.ts +4 -0
  205. package/lib/icon/down-shape.js +1 -0
  206. package/lib/icon/down-small.d.ts +4 -0
  207. package/lib/icon/down-small.js +1 -0
  208. package/lib/icon/edit-line.d.ts +4 -0
  209. package/lib/icon/edit-line.js +1 -0
  210. package/lib/icon/ellipsis.d.ts +4 -0
  211. package/lib/icon/ellipsis.js +1 -0
  212. package/lib/icon/error.d.ts +4 -0
  213. package/lib/icon/error.js +1 -0
  214. package/lib/icon/excel-fill.d.ts +4 -0
  215. package/lib/icon/excel-fill.js +1 -0
  216. package/lib/icon/eye.d.ts +4 -0
  217. package/lib/icon/eye.js +1 -0
  218. package/lib/icon/folder-open.d.ts +4 -0
  219. package/lib/icon/folder-open.js +1 -0
  220. package/lib/icon/folder-shape-open.d.ts +4 -0
  221. package/lib/icon/folder-shape-open.js +1 -0
  222. package/lib/icon/folder-shape.d.ts +4 -0
  223. package/lib/icon/folder-shape.js +1 -0
  224. package/lib/icon/folder.d.ts +4 -0
  225. package/lib/icon/folder.js +1 -0
  226. package/lib/icon/funnel.d.ts +4 -0
  227. package/lib/icon/help-document-fill.d.ts +4 -0
  228. package/lib/icon/help-document-fill.js +1 -0
  229. package/lib/icon/help-fill.d.ts +4 -0
  230. package/lib/icon/help-fill.js +1 -0
  231. package/lib/icon/help.d.ts +4 -0
  232. package/lib/icon/help.js +1 -0
  233. package/lib/icon/icon.d.ts +12 -0
  234. package/lib/icon/image-fill.d.ts +4 -0
  235. package/lib/icon/image-fill.js +1 -0
  236. package/lib/icon/index.d.ts +68 -0
  237. package/lib/icon/index.js +1 -15
  238. package/lib/icon/info-line.d.ts +4 -0
  239. package/lib/icon/info-line.js +1 -0
  240. package/lib/icon/info.d.ts +4 -0
  241. package/lib/icon/info.js +1 -0
  242. package/lib/icon/left-shape.d.ts +4 -0
  243. package/lib/icon/left-shape.js +1 -0
  244. package/lib/icon/pdf-fill.d.ts +4 -0
  245. package/lib/icon/pdf-fill.js +1 -0
  246. package/lib/icon/play-shape.d.ts +4 -0
  247. package/lib/icon/play-shape.js +1 -0
  248. package/lib/icon/plus.d.ts +4 -0
  249. package/lib/icon/plus.js +1 -0
  250. package/lib/icon/ppt-fill.d.ts +4 -0
  251. package/lib/icon/ppt-fill.js +1 -0
  252. package/lib/icon/qq.d.ts +4 -0
  253. package/lib/icon/qq.js +1 -0
  254. package/lib/icon/right-shape.d.ts +4 -0
  255. package/lib/icon/right-shape.js +1 -0
  256. package/lib/icon/search.d.ts +4 -0
  257. package/lib/icon/search.js +1 -0
  258. package/lib/icon/share.d.ts +4 -0
  259. package/lib/icon/share.js +1 -0
  260. package/lib/icon/spinner.d.ts +4 -0
  261. package/lib/icon/spinner.js +1 -0
  262. package/lib/icon/success.d.ts +4 -0
  263. package/lib/icon/success.js +1 -0
  264. package/lib/icon/switcher-loading.d.ts +4 -0
  265. package/lib/icon/switcher-loading.js +1 -0
  266. package/lib/icon/text-file.d.ts +4 -0
  267. package/lib/icon/text-file.js +1 -0
  268. package/lib/icon/text-fill.d.ts +4 -0
  269. package/lib/icon/text-fill.js +1 -0
  270. package/lib/icon/tree-application-shape.d.ts +4 -0
  271. package/lib/icon/tree-application-shape.js +1 -0
  272. package/lib/icon/unvisible.d.ts +4 -0
  273. package/lib/icon/unvisible.js +1 -0
  274. package/lib/icon/up-shape.d.ts +4 -0
  275. package/lib/icon/up-shape.js +1 -0
  276. package/lib/icon/upload.d.ts +4 -0
  277. package/lib/icon/upload.js +1 -0
  278. package/lib/icon/video-fill.d.ts +4 -0
  279. package/lib/icon/video-fill.js +1 -0
  280. package/lib/icon/warn.d.ts +4 -0
  281. package/lib/icon/warn.js +1 -0
  282. package/lib/icon/weixin.d.ts +4 -0
  283. package/lib/icon/weixin.js +1 -0
  284. package/lib/index.d.ts +3 -0
  285. package/lib/index.js +1 -0
  286. package/lib/input/index.d.ts +451 -0
  287. package/lib/input/index.js +1 -15
  288. package/lib/input/input.css +78 -4
  289. package/lib/input/input.d.ts +120 -45
  290. package/lib/input/input.less +89 -8
  291. package/lib/input/input.variable.css +117 -4
  292. package/lib/link/index.d.ts +164 -0
  293. package/lib/link/index.js +1 -1
  294. package/lib/link/link.d.ts +25 -13
  295. package/lib/link/link.variable.css +38 -0
  296. package/lib/loading/index.d.ts +172 -0
  297. package/lib/loading/index.js +1 -1
  298. package/lib/loading/loading.css +118 -73
  299. package/lib/loading/loading.d.ts +67 -20
  300. package/lib/loading/loading.less +75 -58
  301. package/lib/loading/loading.variable.css +156 -73
  302. package/lib/menu/index.d.ts +188 -0
  303. package/lib/menu/index.js +1 -0
  304. package/lib/menu/menu-group.d.ts +14 -0
  305. package/lib/menu/menu-item.d.ts +16 -0
  306. package/lib/menu/menu.css +190 -0
  307. package/lib/menu/menu.d.ts +64 -0
  308. package/lib/menu/menu.less +180 -0
  309. package/lib/menu/menu.variable.css +289 -0
  310. package/lib/menu/submenu.css +3 -0
  311. package/lib/menu/submenu.d.ts +22 -0
  312. package/lib/menu/submenu.less +5 -0
  313. package/lib/menu/submenu.variable.css +102 -0
  314. package/lib/menu/utils.d.ts +41 -0
  315. package/lib/message/index.d.ts +2 -0
  316. package/lib/message/index.js +1 -0
  317. package/lib/message/message.css +62 -0
  318. package/lib/message/message.less +72 -0
  319. package/lib/message/message.variable.css +161 -0
  320. package/lib/message/messageConstructor.d.ts +106 -0
  321. package/lib/modal/index.d.ts +627 -0
  322. package/lib/modal/index.js +1 -1
  323. package/lib/modal/modal.css +30 -1
  324. package/lib/modal/modal.d.ts +204 -24
  325. package/lib/modal/modal.less +39 -1
  326. package/lib/modal/modal.variable.css +30 -1
  327. package/lib/modal/props.mixin.d.ts +87 -10
  328. package/lib/navigation/index.d.ts +292 -0
  329. package/lib/navigation/index.js +1 -0
  330. package/lib/navigation/navigation-title.d.ts +25 -0
  331. package/lib/navigation/navigation.css +184 -0
  332. package/lib/navigation/navigation.d.ts +111 -0
  333. package/lib/navigation/navigation.less +210 -0
  334. package/lib/navigation/navigation.variable.css +283 -0
  335. package/lib/notify/index.d.ts +2 -0
  336. package/lib/notify/index.js +1 -0
  337. package/lib/notify/notify.css +65 -0
  338. package/lib/notify/notify.less +76 -0
  339. package/lib/notify/notify.variable.css +164 -0
  340. package/lib/notify/notifyConstructor.d.ts +135 -0
  341. package/lib/pagination/index.d.ts +395 -0
  342. package/lib/pagination/index.js +1 -0
  343. package/lib/pagination/pagination.css +179 -0
  344. package/lib/pagination/pagination.d.ts +220 -0
  345. package/lib/pagination/pagination.less +201 -0
  346. package/lib/pagination/pagination.variable.css +278 -0
  347. package/lib/pagination/type.d.ts +6 -0
  348. package/lib/pagination/use-limit.d.ts +8 -0
  349. package/lib/pagination/use-list.d.ts +8 -0
  350. package/lib/pagination/use-small-list.d.ts +5 -0
  351. package/lib/pagination/use-total.d.ts +5 -0
  352. package/lib/popover/index.d.ts +364 -0
  353. package/lib/popover/index.js +1 -1
  354. package/lib/popover/popover.css +26 -14
  355. package/lib/popover/popover.d.ts +111 -45
  356. package/lib/popover/popover.less +59 -46
  357. package/lib/popover/popover.variable.css +64 -14
  358. package/lib/popover/props.d.ts +99 -0
  359. package/lib/preset.d.ts +7 -0
  360. package/lib/preset.js +1 -0
  361. package/lib/process/index.d.ts +205 -0
  362. package/lib/process/index.js +1 -0
  363. package/lib/process/process.css +138 -0
  364. package/lib/process/process.d.ts +131 -0
  365. package/lib/process/process.less +178 -0
  366. package/lib/process/process.variable.css +237 -0
  367. package/lib/progress/index.d.ts +398 -0
  368. package/lib/progress/index.js +1 -1
  369. package/lib/progress/progress.css +8 -3
  370. package/lib/progress/progress.d.ts +88 -35
  371. package/lib/progress/progress.less +0 -4
  372. package/lib/progress/progress.variable.css +46 -3
  373. package/lib/radio/common.d.ts +5 -5
  374. package/lib/radio/index.d.ts +278 -0
  375. package/lib/radio/index.js +1 -1
  376. package/lib/radio/radio-button.d.ts +29 -20
  377. package/lib/radio/radio-group.d.ts +11 -10
  378. package/lib/radio/radio.css +8 -2
  379. package/lib/radio/radio.d.ts +27 -17
  380. package/lib/radio/radio.less +9 -2
  381. package/lib/radio/radio.variable.css +46 -2
  382. package/lib/radio/type.d.ts +10 -5
  383. package/lib/rate/index.d.ts +113 -0
  384. package/lib/rate/index.js +1 -1
  385. package/lib/rate/rate.d.ts +13 -10
  386. package/lib/rate/star.d.ts +33 -16
  387. package/lib/resize-layout/index.d.ts +336 -0
  388. package/lib/resize-layout/index.js +1 -0
  389. package/lib/resize-layout/resize-layout.css +189 -0
  390. package/lib/resize-layout/resize-layout.d.ts +127 -0
  391. package/lib/resize-layout/resize-layout.less +233 -0
  392. package/lib/resize-layout/resize-layout.variable.css +288 -0
  393. package/lib/select/common.d.ts +23 -17
  394. package/lib/select/index.d.ts +1377 -0
  395. package/lib/select/index.js +1 -1
  396. package/lib/select/option.d.ts +12 -19
  397. package/lib/select/optionGroup.d.ts +54 -0
  398. package/lib/select/select.css +248 -17
  399. package/lib/select/select.d.ts +282 -156
  400. package/lib/select/select.less +251 -46
  401. package/lib/select/select.variable.css +286 -17
  402. package/lib/select/type.d.ts +31 -0
  403. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
  404. package/lib/shared/index.d.ts +70 -0
  405. package/lib/shared/index.js +1 -1
  406. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
  407. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
  408. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +60 -6
  409. package/lib/shared/utils.d.ts +6 -0
  410. package/lib/shared/vue-types.d.ts +8 -7
  411. package/lib/shared/z-index-manager.d.ts +6 -1
  412. package/lib/sideslider/index.d.ts +531 -0
  413. package/lib/sideslider/index.js +1 -1
  414. package/lib/sideslider/sideslider.css +48 -3
  415. package/lib/sideslider/sideslider.d.ts +205 -30
  416. package/lib/sideslider/sideslider.less +65 -6
  417. package/lib/sideslider/sideslider.variable.css +86 -3
  418. package/lib/slider/index.d.ts +440 -0
  419. package/lib/slider/index.js +1 -0
  420. package/lib/slider/slider-button.d.ts +80 -0
  421. package/lib/slider/slider.css +149 -0
  422. package/lib/slider/slider.d.ts +201 -0
  423. package/lib/slider/slider.less +179 -0
  424. package/lib/slider/slider.variable.css +248 -0
  425. package/lib/steps/index.d.ts +250 -0
  426. package/lib/steps/index.js +1 -0
  427. package/lib/steps/steps.css +288 -0
  428. package/lib/steps/steps.d.ts +161 -0
  429. package/lib/steps/steps.less +324 -0
  430. package/lib/steps/steps.variable.css +387 -0
  431. package/lib/styles/index.d.ts +51 -0
  432. package/lib/styles/mixins/clearfix.css +8 -0
  433. package/lib/styles/mixins/clearfix.less +10 -0
  434. package/lib/styles/mixins/clearfix.variable.css +8 -0
  435. package/lib/styles/mixins/mixins.css +8 -0
  436. package/lib/styles/mixins/mixins.less +1 -0
  437. package/lib/styles/mixins/mixins.variable.css +8 -0
  438. package/lib/styles/mixins/popper.css +43 -0
  439. package/lib/styles/mixins/popper.less +52 -0
  440. package/lib/styles/mixins/popper.variable.css +43 -0
  441. package/lib/styles/mixins/size.less +9 -0
  442. package/lib/styles/reset.css +273 -0
  443. package/lib/styles/reset.less +313 -0
  444. package/lib/styles/reset.variable.css +273 -0
  445. package/lib/styles/themes/themes.less +60 -2
  446. package/lib/swiper/index.d.ts +181 -0
  447. package/lib/swiper/index.js +1 -0
  448. package/lib/swiper/swiper.css +91 -0
  449. package/lib/swiper/swiper.d.ts +65 -0
  450. package/lib/swiper/swiper.less +107 -0
  451. package/lib/swiper/swiper.variable.css +91 -0
  452. package/lib/switcher/index.d.ts +286 -0
  453. package/lib/switcher/index.js +1 -1
  454. package/lib/switcher/switcher.css +157 -135
  455. package/lib/switcher/switcher.d.ts +48 -32
  456. package/lib/switcher/switcher.less +211 -153
  457. package/lib/switcher/switcher.variable.css +195 -135
  458. package/lib/tab/index.d.ts +443 -0
  459. package/lib/tab/index.js +1 -0
  460. package/lib/tab/props.d.ts +191 -0
  461. package/lib/tab/tab-nav.d.ts +165 -0
  462. package/lib/tab/tab-panel.d.ts +73 -0
  463. package/lib/tab/tab.css +148 -0
  464. package/lib/tab/tab.d.ts +140 -0
  465. package/lib/tab/tab.less +222 -0
  466. package/lib/tab/tab.variable.css +247 -0
  467. package/lib/table/const.d.ts +4 -0
  468. package/lib/table/index.d.ts +359 -0
  469. package/lib/table/index.js +1 -1
  470. package/lib/table/plugins/head-filter.css +68 -0
  471. package/lib/table/plugins/head-filter.less +83 -0
  472. package/lib/table/plugins/head-filter.variable.css +167 -0
  473. package/lib/table/plugins/head-sort.css +22 -0
  474. package/lib/table/plugins/head-sort.less +28 -0
  475. package/lib/table/plugins/head-sort.variable.css +121 -0
  476. package/lib/table/plugins/settings.css +110 -0
  477. package/lib/table/plugins/settings.less +136 -0
  478. package/lib/table/plugins/settings.variable.css +209 -0
  479. package/lib/table/props.d.ts +188 -0
  480. package/lib/table/render.d.ts +121 -0
  481. package/lib/table/table.css +373 -0
  482. package/lib/table/table.d.ts +114 -36
  483. package/lib/table/table.less +210 -1
  484. package/lib/table/table.variable.css +411 -0
  485. package/lib/table/use-common.d.ts +22 -0
  486. package/lib/table/utils.d.ts +93 -0
  487. package/lib/tag/index.d.ts +229 -0
  488. package/lib/tag/index.js +1 -1
  489. package/lib/tag/tag.css +97 -0
  490. package/lib/tag/tag.d.ts +83 -53
  491. package/lib/tag/tag.less +110 -2
  492. package/lib/tag/tag.variable.css +135 -0
  493. package/lib/tag-input/common.d.ts +24 -0
  494. package/lib/tag-input/index.d.ts +894 -0
  495. package/lib/tag-input/index.js +1 -0
  496. package/lib/tag-input/list-tag-render.d.ts +47 -0
  497. package/lib/tag-input/tag-input.css +208 -0
  498. package/lib/tag-input/tag-input.d.ts +374 -0
  499. package/lib/tag-input/tag-input.less +250 -0
  500. package/lib/tag-input/tag-input.variable.css +307 -0
  501. package/lib/tag-input/tag-props.d.ts +131 -0
  502. package/lib/tag-input/tag-render.d.ts +38 -0
  503. package/lib/timeline/index.d.ts +129 -0
  504. package/lib/timeline/index.js +1 -0
  505. package/lib/timeline/timeline.css +235 -0
  506. package/lib/timeline/timeline.d.ts +81 -0
  507. package/lib/timeline/timeline.less +239 -0
  508. package/lib/timeline/timeline.variable.css +334 -0
  509. package/lib/transfer/index.d.ts +351 -0
  510. package/lib/transfer/index.js +1 -0
  511. package/lib/transfer/transfer.css +158 -0
  512. package/lib/transfer/transfer.d.ts +185 -0
  513. package/lib/transfer/transfer.less +171 -0
  514. package/lib/transfer/transfer.variable.css +257 -0
  515. package/lib/tree/index.d.ts +304 -0
  516. package/lib/tree/index.js +1 -0
  517. package/lib/tree/props.d.ts +118 -0
  518. package/lib/tree/tree.css +52 -0
  519. package/lib/tree/tree.d.ts +126 -0
  520. package/lib/tree/tree.less +65 -0
  521. package/lib/tree/tree.variable.css +151 -0
  522. package/lib/tree/use-async.d.ts +5 -0
  523. package/lib/tree/use-empty.d.ts +6 -0
  524. package/lib/tree/use-node-action.d.ts +7 -0
  525. package/lib/tree/use-node-attribute.d.ts +14 -0
  526. package/lib/tree/use-search.d.ts +11 -0
  527. package/lib/tree/util.d.ts +87 -0
  528. package/lib/upload/index.d.ts +2 -0
  529. package/lib/upload/index.js +1 -0
  530. package/lib/upload/props.d.ts +113 -0
  531. package/lib/upload/upload-list.d.ts +46 -0
  532. package/lib/upload/upload-trigger.d.ts +54 -0
  533. package/lib/upload/upload.css +374 -0
  534. package/lib/upload/upload.d.ts +252 -0
  535. package/lib/upload/upload.less +455 -0
  536. package/lib/upload/upload.type.d.ts +78 -0
  537. package/lib/upload/upload.variable.css +473 -0
  538. package/lib/upload/use-ajax-upload.d.ts +3 -0
  539. package/lib/upload/use-file-handler.d.ts +44 -0
  540. package/lib/use-form.d.ts +3 -0
  541. package/lib/use-message.d.ts +2 -0
  542. package/lib/virtual-render/index.d.ts +579 -0
  543. package/lib/virtual-render/index.js +1 -0
  544. package/lib/virtual-render/props.d.ts +167 -0
  545. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  546. package/lib/virtual-render/v-virtual-render.d.ts +7 -0
  547. package/lib/virtual-render/virtual-render.css +33 -0
  548. package/lib/virtual-render/virtual-render.d.ts +255 -0
  549. package/lib/virtual-render/virtual-render.less +43 -0
  550. package/lib/virtual-render/virtual-render.variable.css +33 -0
  551. package/package.json +108 -79
  552. package/dist/bkui-vue.cjs.js +0 -4887
  553. package/dist/bkui-vue.esm.js +0 -4883
  554. package/dist/bkui-vue.umd.js +0 -4890
  555. package/lib/checkbox-group/index.js +0 -1
  556. package/lib/radio-button/index.js +0 -1
  557. package/lib/radio-group/index.js +0 -1
  558. package/lib/styles/index.js +0 -1
  559. package/lib/table/common.d.ts +0 -3
  560. package/lib/table/table-layout.d.ts +0 -14
  561. package/lib/table/type.d.ts +0 -12
@@ -0,0 +1 @@
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../directives"),require("../icon"),require("js-calendar"),require("date-fns"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives","../icon","js-calendar","date-fns"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives"),require("../icon"),require("js-calendar"),require("date-fns")):t(e["../shared"],e.vue,e["../directives"],e["../icon"],e["js-calendar"],e["date-fns"]);for(var a in n)("object"==typeof exports?exports:e)[a]=n[a]}}(self,((e,t,n,a,r,i)=>(()=>{"use strict";var o={4061:e=>{e.exports=n},6870:e=>{e.exports=a},4212:t=>{t.exports=e},7876:e=>{e.exports=i},7926:e=>{e.exports=r},748:e=>{e.exports=t}},l={};function c(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return o[e](n,n.exports,c),n.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{c.r(u),c.d(u,{default:()=>ie});var e=c(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function n(e,n){if(e){if("string"==typeof e)return t(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?t(e,n):void 0}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return i}}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||n(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=c(748),l=c(4061),s={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 d=(0,o.defineComponent)({props:s,emits:["changeVisible"],setup:function(t,n){var a=n.emit,r=Object.create(null),i=(0,o.ref)(null);(0,o.onMounted)((function(){c()})),(0,o.onBeforeUnmount)((function(){l()}));var l=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,i.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:i,updateDropdown:c,destoryDropdown:l})},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 f=c(6870),p={showTime:{type:Boolean,required:!0},isTime:{type:Boolean,default:!1},timeDisabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0}};const h=(0,o.defineComponent)({props:p,emits:["pick-clear","pick-success","pick-toggle-time"],setup:function(e,t){var n=t.emit,a=(0,o.computed)((function(){return{time:e.isTime?"选择日期":"选择时间",clear:"清除",ok:"确定"}})),i=(0,o.ref)(null);return{labels:a,handleClear:function(){n("pick-clear")},handleSuccess:function(){n("pick-success")},handleToggleTime:function(){e.timeDisabled||n("pick-toggle-time")},handleTab:function(e){var t=r(i.value.children)[e.shiftKey?"shift":"pop"]();document.activeElement===t&&(e.preventDefault(),e.stopPropagation())}}},render:function(){return(0,o.createVNode)("div",{class:"bk-picker-confirm",ref:"elRef",onKeydown:this.handleTab},[this.showTime?(0,o.createVNode)("a",{href:"javascript: void(0);",class:"bk-picker-confirm-time",disabled:this.timeDisabled,onClick:this.handleToggleTime},[this.labels.time]):"",this.clearable?(0,o.createVNode)("a",{href:"javascript: void(0);",onClick:this.handleClear,onKeydown:this.handleClear},[this.labels.clear]):"",(0,o.createVNode)("a",{href:"javascript: void(0);",class:"confirm",onClick:this.handleSuccess,onKeydown_enter:this.handleSuccess},[this.labels.ok])])}});function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=c(7926),g=c.n(y),b=c(7876),v={},k=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,D=/\d\d?/,w=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,S=function(){};function V(e,t){for(var n=[],a=0,r=e.length;a<r;a++)n.push(e[a].substr(0,t));return n}function M(e){return function(t,n,a){var r=a[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(t.month=r)}}function P(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=String(e);n.length<t;)n="0".concat(n);return n}var N=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],T=["January","February","March","April","May","June","July","August","September","October","November","December"],C=V(T,3),x=V(N,3);v.i18n={dayNamesShort:x,dayNames:N,monthNamesShort:C,monthNames:T,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10)*e%10]}};var F={D:function(e){return e.getDay()},DD:function(e){return P(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return P(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return P(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return String(e.getFullYear()).substr(2)},yyyy:function(e){return e.getFullYear()},h:function(e){return e.getHours()%12||12},hh:function(e){return P(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return P(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return P(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return P(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return P(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return P(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+P(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},O={d:[D,function(e,t){e.day=t}],M:[D,function(e,t){e.month=t-1}],yy:[D,function(e,t){var n=new Date,a=+"".concat(n.getFullYear()).substr(0,2);e.year="".concat(t>68?a-1:a).concat(t)}],h:[D,function(e,t){e.hour=t}],m:[D,function(e,t){e.minute=t}],s:[D,function(e,t){e.second=t}],yyyy:[/\d{4}/,function(e,t){e.year=t}],S:[/\d/,function(e,t){e.millisecond=100*t}],SS:[/\d{2}/,function(e,t){e.millisecond=10*t}],SSS:[/\d{3}/,function(e,t){e.millisecond=t}],D:[D,S],ddd:[w,S],MMM:[w,M("monthNamesShort")],MMMM:[w,M("monthNames")],a:[w,function(e,t,n){var a=t.toLowerCase();a===n.amPm[0]?e.isPm=!1:a===n.amPm[1]&&(e.isPm=!0)}],ZZ:[/[\\+\\-]\d\d:?\d\d/,function(e,t){var n,a="".concat(t).match(/([\\+\\-]|\d\d)/gi);a&&(n=60*a[1]+parseInt(a[2],10),e.timezoneOffset="+"===a[0]?n:-n)}]};O.DD=O.D,O.dddd=O.ddd,O.Do=O.dd=O.d,O.mm=O.m,O.hh=O.H=O.HH=O.h,O.MM=O.M,O.ss=O.s,O.A=O.a,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(k,(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,i={};if(t.replace(k,(function(t){if(O[t]){var n=O[t],o=e.search(n[0]);~o?e.replace(n[0],(function(t){return n[1](i,t,a),e=e.substr(o+t.length),t})):r=!1}return O[t]?"":t.slice(1,t.length-1)})),!r)return!1;var o,l=new Date;return!0===i.isPm&&null!==i.hour&&12!=+i.hour?i.hour=+i.hour+12:!1===i.isPm&&12==+i.hour&&(i.hour=0),null!==i.timezoneOffset&&void 0!==i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,o=new Date(Date.UTC(i.year||l.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):o=new Date(i.year||l.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),o};const L=v;var H=" - ",A=function(e,t){var n=(0,b.toDate)(new Date(e));return!n||isNaN(n.getTime())?"":(0,b.format)(n,t||"yyyy-MM-dd")},j=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],a=e[1];if(n&&a)return A(n,t)+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[]},R={default:{formatter:function(e){return e?"".concat(e):""},parser:function(e){return void 0===e||""===e?null:e}},date:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return 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:j,parser:B},datetimerange:{formatter:j,parser:B},timerange:{formatter:j,parser:B},time:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return 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]},I={date:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",datetimerange:"yyyy-MM-dd HH:mm:ss"},Y=function(e,t,n,r){var i=t.includes("range"),o=(R[t]||R.default).parser,l=r||I[t],c=R.multiple.parser,u=e;if(!e||"time"!==t||e instanceof Date)if(n&&e)u=c(e,l);else if(i)if(e)if("string"==typeof e)u=o(e,l);else if("timerange"===t)u=o(e,l).map((function(e){return e||""}));else{var s=a(e,2),d=s[0],f=s[1];d instanceof Date&&f instanceof Date?u=e.map((function(e){return new Date(e)})):"string"==typeof d&&"string"==typeof f?u=o(e.join(H),l):d&&f||(u=[null,null])}else u=[null,null];else"string"==typeof e&&0!==t.indexOf("time")&&(u=o(e,l)||null);else u=o(e,l);return i||n?u||[]:[u]},q=function(e,t,n,a){var r=I[t];return n?(0,R.multiple.formatter)(e,a||r):(0,(R[t]||R.default).formatter)(e,a||r)},E=Symbol("date-picker");function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return["bk-picker-panel-icon-btn","bk-date-picker-".concat(e,"-btn"),"bk-date-picker-".concat(e,"-btn-arrow").concat(t)]}var K,J,Z=function(e,t){var n,a=new Date(e),r=a.getMonth()+t,i=(n=a.getFullYear(),new Date(n,r+1,0).getDate());return i<a.getDate()&&a.setDate(i),a.setMonth(r),a},$=(K={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()}},J=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(J,(function(t){return K[t](n,e)}))})),type:-1!==t.indexOf("yy")?"year":"month"}}))}}),_=function(e){var t=new Date(e);return t.setHours(0,0,0,0),t.getTime()},W=function(e,t,n){if(!t||!n)return!1;var r=a([t,n].sort(),2),i=r[0],o=r[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 n=t.emit,r=(0,o.computed)((function(){return new(g().Generator)({onlyDays:!0,weekStart:0})})),i=(0,o.computed)((function(){var e=["日","一","二","三","四","五","六"];return e.splice(0,7).concat(e.splice(0,0))})),l=(0,o.computed)((function(){return"range"===e.selectionMode&&e.rangeState.selecting?[e.rangeState.from]:e.modelValue}));return{headerDays:i,cells:(0,o.computed)((function(){var t=e.tableDate.getFullYear(),n=e.tableDate.getMonth(),i=_(new Date),o=l.value.filter(Boolean).map(_),c=a(l.value.map(_),2),u=c[0],s=c[1],d=e.rangeState.from&&_(e.rangeState.from),f=e.rangeState.to&&_(e.rangeState.to),p="range"===e.selectionMode,h="function"==typeof e.disableDate&&e.disableDate;return r.value(t,n,(function(e){e.date instanceof Date&&e.date.setTime(e.date.getTime()+6e4*e.date.getTimezoneOffset());var t=e.date&&_(e.date),a=e.date&&n===e.date.getMonth();return Object.assign(Object.assign({},e),{type:t===i?"today":e.type,selected:a&&o.includes(t),disabled:e.date&&h&&h(new Date(t)),range:a&&p&&W(t,d,f),start:a&&p&&t===u,end:a&&p&&t===s})})).cells.slice(0)})),getCellCls:function(e){var t;return["bk-date-picker-cells-cell",(t={},m(t,"bk-date-picker-cells-cell-selected",e.selected||e.start||e.end),m(t,"bk-date-picker-cells-cell-disabled",e.disabled),m(t,"bk-date-picker-cells-cell-today","today"===e.type),m(t,"bk-date-picker-cells-cell-prev-month","prevMonth"===e.type),m(t,"bk-date-picker-cells-cell-next-month","nextMonth"===e.type),m(t,"bk-date-picker-cells-cell-week-label","weekLabel"===e.type),m(t,"bk-date-picker-cells-cell-range",e.range&&!e.start&&!e.end),t)]},handleClick:function(e){if(!e.disabled&&"weekLabel"!==e.type){var t=new Date(_(e.date));n("pick",t),n("pick-click")}},handleMouseMove:function(t){if(e.rangeState.selecting&&!t.disabled){var a=t.date;n("changeRange",a)}}}},render:function(){var e=this;return(0,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},confirm:{type:Boolean,default:!1},showTime:{type:Boolean,default:!1}};const ee=(0,o.defineComponent)({props:X,emits:["pick","pick-success","pick-clear"],setup:function(e,t){var n=this,a=t.emit,r=function(e){return e.match(/^time/)?"time-picker":"".concat(e,"-table")},i=e.modelValue.slice().sort(),l=(0,o.reactive)({currentView:e.selectionMode||"date",pickerTable:r(e.selectionMode),dates:i,panelDate:e.startDate||i[0]||new Date}),c=function(){setTimeout((function(){l.currentView=e.selectionMode}),500)},u=function(e){l.panelDate=e,"year-table"===l.pickerTable?l.pickerTable="month-table":l.pickerTable=r(l.currentView)},s=function(t,n){var r;r="year"===e.selectionMode?new Date(t.getFullYear(),0,1):"month"===e.selectionMode?new Date(l.panelDate.getFullYear(),t.getMonth(),1):new Date(t),l.dates=[r],a("pick",r,!1,n||e.selectionMode)},d=function(){c(),a("pick-success")},f=(0,o.ref)(null),p=(0,o.ref)(null),h=(0,o.computed)((function(){return l.pickerTable==="".concat(l.currentView,"-table")?s:u})),m=(0,o.computed)((function(){var e=l.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(){l.pickerTable=r(t)}),n}))}})),y=(0,o.computed)((function(){return"year"===m.value.labels[0].type||"date"===l.currentView})),g=(0,o.computed)((function(){return"year"===m.value.labels[1].type||"date"===l.currentView})),b=(0,o.computed)((function(){return"time"===l.currentView}));return Object.assign(Object.assign({},(0,o.toRefs)(l)),{panelPickerHandlers:h,datePanelLabel:m,showLabelFirst:y,showLabelSecond:g,handleShortcutClick:function(t){t.value&&a("pick",t.value(),!1,void 0,t),t.onClick&&t.onClick(n),e.shortcutClose&&d()},changeYear:function(t){"year"===e.selectionMode||"year-table"===l.pickerTable?l.panelDate=new Date(l.panelDate.getFullYear()+10*t,0,1):l.panelDate=Z(l.panelDate,12*t)},changeMonth:function(e){l.panelDate=Z(l.panelDate,e)},reset:function(){l.currentView=e.selectionMode,l.pickerTable=r(l.currentView)},isTime:b,onToggleVisibility:function(e){var t,n;e&&(null===(t=null==f?void 0:f.value)||void 0===t||t.updateScroll(),null===(n=null==p?void 0:p.value)||void 0===n||n.updateScroll())},handleToggleTime:function(){l.currentView="time"===l.currentView?"date":"time"},handlePickSuccess:d,handlePickClear:function(){c(),a("pick-clear")}})},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:U("prev","-double"),onClick:function(){return e.changeYear(-1)}},[(0,o.createVNode)(f.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?(0,o.withDirectives)((0,o.createVNode)("span",{class:U("prev"),onClick:function(){return e.changeMonth(-1)}},[(0,o.createVNode)(f.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:U("next","-double"),onClick:function(){return e.changeYear(1)}},[(0,o.createVNode)(f.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?(0,o.withDirectives)((0,o.createVNode)("span",{class:U("next"),onClick:function(){return e.changeMonth(1)}},[(0,o.createVNode)(f.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:""]),this.confirm?(0,o.createVNode)(h,{clearable:this.clearable,showTime:this.showTime,isTime:this.isTime,"onPick-toggle-time":this.handleToggleTime,"onPick-clear":this.handlePickClear,"onPick-success":this.handlePickSuccess},null):""])])}});var te={modelValue:{type:[Date,String,Number,Array]},type:{type:String,default:"date",validator:function(e){return!(["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0&&(console.error("type property is not valid: '".concat(e,"'")),1))}},shortcuts:{type:Array,default:function(){return[]}},clearable:{type:Boolean,default:!0},splitPanels:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},showTime:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator:function(e){return!(["year","month","date","time"].indexOf(e)<0&&(console.error("selectionMode property is not valid: '".concat(e,"'")),1))}},startDate:{type:Date},upToNow:{type:Boolean,default:!1},disableDate:Function,focusedDate:{type:Date,required:!0},confirm:{type:Boolean,default:!1}};const ne=(0,o.defineComponent)({props:te,emits:["pick"],setup:function(e,t){var n=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}()})),i=a(r,2),l=i[0],c=i[1],u=e.startDate?e.startDate:l,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:l&&!c},upToNowEnable:!1,dates:e.modelValue}),d=function(e,t){return e&&t?e.getTime()-t.getTime():0},f=(0,o.ref)(null),p=(0,o.ref)(null),h=function t(n,a,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=new Date(s["".concat(n,"PanelDate")]);if(o["set".concat(a)](o["get".concat(a)]()+r),s["".concat(n,"PanelDate")]=o,i)if(e.splitPanels){var l="left"===n?"right":"left";"left"===n&&s.leftPanelDate>=s.rightPanelDate&&t(l,a,1),"right"===n&&s.rightPanelDate<=s.leftPanelDate&&t(l,a,-1)}else{var c="left"===n?"right":"left",u=s["".concat(c,"PanelDate")],d=new Date(u);if("Month"===a){var f=new Date(d.getFullYear(),d.getMonth()+r+1,0).getDate();d.setDate(Math.min(f,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"},g=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}))}},b=function(t,r){if(console.warn("handleRangePick"),s.rangeState.selecting||"time"===s.currentView){if("time"===s.currentView)s.dates=t;else{var i=a([s.rangeState.from,t].sort(d),2),o=i[0],l=i[1],c="upToNow"===r?new Date:new Date(new Date(new Date(l.setHours(23)).setMinutes(59)).setSeconds(59));s.dates=[o,c],s.rangeState={from:o,to:c,selecting:!1}}!function(t,a){n("pick",s.dates,!1,a||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 k=(0,o.computed)((function(){return"time"===s.currentView})),D=(0,o.computed)((function(){return g("left")})),w=(0,o.computed)((function(){return g("right")})),S=(0,o.computed)((function(){return s.leftPickerTable.split("-").shift()})),V=(0,o.computed)((function(){return s.rightPickerTable.split("-").shift()})),M=(0,o.computed)((function(){return"year"===D.value.labels[0].type||"date"===s.currentView})),P=(0,o.computed)((function(){return"year"===D.value.labels[1].type||"date"===s.currentView})),N=(0,o.computed)((function(){return"year"===w.value.labels[0].type||"date"===s.currentView})),T=(0,o.computed)((function(){return"year"===w.value.labels[1].type||"date"===s.currentView})),C=(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:C.value.left?v.bind("left"):b,right:C.value.right?v.bind("right"):b}}));return Object.assign(Object.assign({},(0,o.toRefs)(s)),{isTime:k,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:D,rightDatePanelLabel:w,leftDatePanelView:S,rightDatePanelView:V,leftShowLabelFirst:M,leftShowLabelSecond:P,rightShowLabelFirst:N,rightShowLabelSecond:T,preSelecting:C,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==f?void 0:f.value)||void 0===t||t.updateScroll(),null===(n=null==p?void 0:p.value)||void 0===n||n.updateScroll())},handleRangePick:b,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:U("prev","-double"),onClick:function(){return e.prevYear("left")}},[(0,o.createVNode)(f.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.leftPickerTable?(0,o.withDirectives)((0,o.createVNode)("span",{class:U("prev"),onClick:function(){return e.prevMonth("left")}},[(0,o.createVNode)(f.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:U("next","-double"),onClick:function(){return e.nextYear("left")}},[(0,o.createVNode)(f.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels||"date-table"===this.leftPickerTable?(0,o.withDirectives)((0,o.createVNode)("span",{class:U("next"),onClick:function(){return e.nextMonth("left")}},[(0,o.createVNode)(f.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:U("prev","-double"),onClick:function(){return e.prevYear("right")}},[(0,o.createVNode)(f.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels&&"date-table"===this.rightPickerTable?(0,o.withDirectives)((0,o.createVNode)("span",{class:U("prev","-double"),onClick:function(){return e.prevMonth("right")}},[(0,o.createVNode)(f.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:U("next","-double"),onClick:function(){return e.nextYear("right")}},[(0,o.createVNode)(f.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.rightPickerTable?(0,o.withDirectives)((0,o.createVNode)("span",{class:U("next"),onClick:function(){return e.nextMonth("right")}},[(0,o.createVNode)(f.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]},value:{type:[Date,String,Number,Array]},options:{type:Object,default:function(){return{}}},fontSize:{type:String,default:"normal"},upToNow:{type:Boolean,default:!1},useShortcutText:{type:Boolean,default:!1},shortcutSelectedIndex:{type:Number,default:-1},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:l.clickoutside},props:ae,emits:["open-change","input","change","update:modelValue","clear","shortcut-change","pick-success"],slots:["header"],setup:function(e,t){var n=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:Y(e.modelValue,e.type,e.multiple,e.format),d=null;-1!==e.shortcutSelectedIndex&&(d=e.shortcuts[e.shortcutSelectedIndex]||null)&&(s=d.value());var f=(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:p});function p(e){var t=e;return e.match(/^date/)&&(t="date"),f.selectionMode=["year","month","date","time"].indexOf(t)>-1&&t,f.selectionMode}var h=(0,o.computed)((function(){if(e.multiple)return f.internalValue.slice();var t=e.type.includes("range"),n=f.internalValue.map((function(e){return e instanceof Date?new Date(e):e||""}));return e.type.match(/^time/)&&(n=n.map((function(t){return q(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?q(h.value,e.type,e.multiple,e.format):Array.isArray(h.value)?h.value.map((function(t){return q(t,e.type,e.multiple,e.format)})):q(h.value,e.type,e.multiple,e.format)})),y=(0,o.computed)((function(){return"daterange"===e.type||"datetimerange"===e.type?"DateRangePanel":"DatePanel"})),g=(0,o.computed)((function(){return null===e.open?f.visible:e.open})),b=(0,o.computed)((function(){return q(f.internalValue,e.type,e.multiple,e.format)})),v=(0,o.computed)((function(){var t;return(null===(t=f.shortcut)||void 0===t?void 0:t.text)&&e.useShortcutText?f.shortcut.text:b.value})),k=(0,o.computed)((function(){return!!n.trigger||"datetime"===e.type||"datetimerange"===e.type||e.multiple})),D=(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})),S=(0,o.computed)((function(){var t;return!(!(null===(t=f.shortcut)||void 0===t?void 0:t.text)||!e.useShortcutText)||!e.editable||e.readonly})),V=(0,o.computed)((function(){return!!n.footer})),M=(0,o.computed)((function(){return"RangeTimePickerPanel"===y.value&&e.allowCrossDay})),P=(0,o.ref)(null);(0,o.watch)((function(){return f.visible}),(function(e){var t,n;!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){f.internalValue=Y(t,e.type,e.multiple,e.format)})),(0,o.watch)((function(){return e.open}),(function(e){f.visible=!0===e})),(0,o.watch)((function(){return e.type}),(function(e){p(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"),f.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&&(f.visible=e.open),(0,o.provide)(E,{props:e,focus:function(){var e;null===(e=null==P?void 0:P.value)||void 0===e||e.focus()}})}));var T=(0,o.ref)(null),C=function(e){var t;if(f.disableCloseUnderTransfer)return f.disableCloseUnderTransfer=!1,!1;if(e&&"mousedown"===e.type&&f.visible)return e.preventDefault(),void e.stopPropagation();if(f.visible){var n=null===(t=null==T?void 0:T.value)||void 0===t?void 0:t.$el;if(e&&n&&n.contains(e.target))return;return f.visible=!1,null==e||e.preventDefault(),void(null==e||e.stopPropagation())}f.isFocused=!1,f.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==T?void 0:T.value)||void 0===e||e.reset()},O=function(){var e;f.visible=!1,console.error("onPickSuccess"),(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)(f)),{panel:y,publicStringValue:m,opened:g,visualValue:b,displayValue:v,isConfirm:k,fontSizeCls:D,longWidthCls:w,localReadonly:S,hasFooter:V,allowCrossDayProp:M,pickerDropdownRef:N,inputRef:P,triggerRef:L,pickerPanelRef:T,handleClose:C,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==b?void 0:b.value)&&(f.showClose=!0)},handleInputMouseleave:function(e){var t;(null===(t=e.toElement)||void 0===t?void 0:t.classList.contains("clear-action"))||(f.showClose=!1)},handleFocus:function(t){e.readonly||(f.isFocused=!0,t&&"focus"===t.type||e.disabled||(f.visible=!0))},handleBlur:function(t){var n;f.internalFocus?f.internalFocus=!1:f.visible?t.preventDefault():(f.isFocused=!1,p(e.type),f.internalValue=f.internalValue.slice(),F(),null===(n=null==T?void 0:T.value)||void 0===n||n.onToggleVisibility(!1))},handleKeydown:function(e){var t=e.keyCode;if(9===t&&f.visible)if(e.stopPropagation(),e.preventDefault(),k.value){var n=N.value.$el.querySelectorAll(".bk-picker-confirm > *");f.internalFocus=!0,r(n)[e.shiftKey?"pop":"shift"]().focus()}else C();var a=[37,38,39,40];f.visible||!a.includes(t)?(27===t&&f.visible&&(e.stopPropagation(),C()),a.includes(t)&&f.focusedTime.active&&e.preventDefault()):f.visible=!0},handleInputChange:function(t){var n,a=e.type.includes("range")||e.multiple,r=b.value,i=t.target.value,o=Y(i,e.type,e.multiple,e.format),l=a?o:o[0],c=null===(n=e.disableDate)||void 0===n?void 0:n.call(e,l),u=o.reduce((function(e,t){return e&&t instanceof Date}),!0);i!==r&&!c&&u?(x(e.type),f.internalValue=o):f.forceInputRerender=f.forceInputRerender+1},handleClear:function(){f.visible=!1,f.internalValue=f.internalValue.map((function(){return null})),l("clear"),x(e.type),F(),f.showClose=!1,f.shortcut=null,setTimeout((function(){return p(e.type)}),500)},handleTransferClick:function(){e.appendToBody&&(f.disableCloseUnderTransfer=!0)},onPick:function(t){var n=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=f.internalValue.findIndex((function(e){return e&&e.getTime()===u})),d=[].concat(r(f.internalValue),[c]).filter(Boolean),h=d.map((function(e){return e.getTime()})).filter((function(e,t,n){return n.indexOf(e)===t&&t!==s}));f.internalValue=h.map((function(e){return new Date(e)}))}else c=Y(t,e.type,e.multiple,e.format),f.internalValue=Array.isArray(c)?c:[c];if(f.internalValue[0]){var m=a(f.internalValue,1),y=m[0];f.focusedDate=y}f.focusedTime=Object.assign(Object.assign({},f.focusedTime),{time:f.internalValue.map(z)}),k.value||(p(e.type),f.visible=n),"upToNow"===i&&"daterange"===e.type&&O(),f.shortcut=o,x(i);var g=e.shortcuts.findIndex((function(e){return e===f.shortcut}));l("shortcut-change",f.shortcut,g)},onPickSuccess:O})},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).trigger)||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)(d,{class:[a.appendToBody?"bk-date-picker-transfer":""],ref:"pickerDropdownRef",triggerRef:a.triggerRef,placement:a.placement,extPopoverCls:a.extPopoverCls,appendToBody:a.appendToBody,onClick:a.handleTransferClick},{default:function(){return["DateRangePanel"===a.panel?(0,o.createVNode)(ne,{ref:"pickerPanelRef",type:a.type,confirm:a.isConfirm,shortcuts:a.shortcuts,modelValue:a.internalValue,selectionMode:a.selectionMode,startDate:a.startDate,disableDate:a.disableDate,focusedDate:a.focusedDate,onPick:a.onPick,"onPick-success":a.onPickSuccess},null):(0,o.createVNode)(ee,{ref:"pickerPanelRef",clearable:a.clearable,showTime:"datetime"===a.type||"datetimerange"===a.type,confirm:a.isConfirm,shortcuts:a.shortcuts,multiple:a.multiple,shortcutClose:a.shortcutClose,selectionMode:a.selectionMode,modelValue:a.internalValue,startDate:a.startDate,disableDate:a.disableDate,focusedDate:a.focusedDate,onPick:a.onPick,"onPick-clear":a.handleClear,"onPick-success":a.onPickSuccess},null)]}}),[[o.vShow,a.opened]])]}})]}})]),[[(0,o.resolveDirective)("clickoutside"),this.handleClose]])}}),ie=(0,e.withInstall)(re)})(),u})()));
@@ -0,0 +1,22 @@
1
+ import type { ComputedPlacement } from '@popperjs/core';
2
+ import type { DatePickerProps } from './props';
3
+ export declare type DatePickerPlacementType = ComputedPlacement;
4
+ export declare type DatePickerTypeType = 'year' | 'month' | 'date' | 'daterange' | 'datetime' | 'datetimerange';
5
+ export declare type TimePickerTypeType = 'time' | 'timerange';
6
+ export declare type PickerTypeType = DatePickerTypeType | TimePickerTypeType;
7
+ export interface IDatePickerShortcut {
8
+ text: string;
9
+ value?: () => Date[];
10
+ onClick?: (picker: any) => void;
11
+ }
12
+ export declare type DatePickerShortcutsType = IDatePickerShortcut[];
13
+ declare type ValueType = Date | string | number;
14
+ export declare type DatePickerValueType = ValueType | [ValueType, ValueType];
15
+ export declare type DisableDateType = (date: number | Date) => boolean;
16
+ export interface IDatePickerCtx {
17
+ props: DatePickerProps;
18
+ focus: () => void;
19
+ }
20
+ export declare type DatePickerPanelType = 'DateRangePanel' | 'DatePanel' | 'RangeTimePickerPanel' | 'TimePickerPanel';
21
+ export declare type SelectionModeType = 'year' | 'month' | 'date' | 'time';
22
+ export {};
@@ -0,0 +1,114 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ import { PropType } from 'vue';
3
+ import type { DatePickerShortcutsType, DatePickerValueType, DisableDateType, PickerTypeType } from './interface';
4
+ export declare const datePickerProps: {
5
+ readonly type: {
6
+ readonly type: PropType<PickerTypeType>;
7
+ readonly default: "date";
8
+ readonly validator: (value: any) => boolean;
9
+ };
10
+ readonly extPopoverCls: {
11
+ readonly type: StringConstructor;
12
+ readonly default: "";
13
+ };
14
+ readonly format: StringConstructor;
15
+ readonly readonly: {
16
+ readonly type: BooleanConstructor;
17
+ readonly default: false;
18
+ };
19
+ readonly disabled: {
20
+ readonly type: BooleanConstructor;
21
+ readonly default: false;
22
+ };
23
+ readonly editable: {
24
+ readonly type: BooleanConstructor;
25
+ readonly default: true;
26
+ };
27
+ readonly clearable: {
28
+ readonly type: BooleanConstructor;
29
+ readonly default: true;
30
+ };
31
+ readonly open: {
32
+ readonly type: BooleanConstructor;
33
+ readonly default: any;
34
+ };
35
+ readonly multiple: {
36
+ readonly type: BooleanConstructor;
37
+ readonly default: false;
38
+ };
39
+ readonly timePickerOptions: {
40
+ readonly type: PropType<Record<string, any>>;
41
+ readonly default: () => {};
42
+ };
43
+ readonly splitPanels: {
44
+ readonly type: BooleanConstructor;
45
+ readonly default: true;
46
+ };
47
+ readonly startDate: DateConstructor;
48
+ readonly placeholder: {
49
+ readonly type: StringConstructor;
50
+ readonly default: "";
51
+ };
52
+ readonly placement: {
53
+ readonly type: PropType<import("@popperjs/core").ComputedPlacement>;
54
+ readonly default: "bottom-start";
55
+ readonly validator: (value: any) => boolean;
56
+ };
57
+ readonly transfer: {
58
+ readonly type: BooleanConstructor;
59
+ readonly default: false;
60
+ };
61
+ readonly appendToBody: {
62
+ readonly type: BooleanConstructor;
63
+ readonly default: false;
64
+ };
65
+ readonly shortcuts: {
66
+ readonly type: PropType<DatePickerShortcutsType>;
67
+ readonly default: () => any[];
68
+ };
69
+ readonly shortcutClose: {
70
+ readonly type: BooleanConstructor;
71
+ readonly default: false;
72
+ };
73
+ readonly modelValue: {
74
+ readonly type: PropType<DatePickerValueType>;
75
+ };
76
+ readonly value: {
77
+ readonly type: PropType<DatePickerValueType>;
78
+ };
79
+ readonly options: {
80
+ readonly type: ObjectConstructor;
81
+ readonly default: () => {};
82
+ };
83
+ readonly fontSize: {
84
+ readonly type: PropType<"large" | "normal" | "medium">;
85
+ readonly default: "normal";
86
+ };
87
+ readonly upToNow: {
88
+ readonly type: BooleanConstructor;
89
+ readonly default: false;
90
+ };
91
+ readonly useShortcutText: {
92
+ readonly type: BooleanConstructor;
93
+ readonly default: false;
94
+ };
95
+ readonly shortcutSelectedIndex: {
96
+ readonly type: NumberConstructor;
97
+ readonly default: -1;
98
+ };
99
+ readonly footerSlotCls: {
100
+ readonly type: StringConstructor;
101
+ readonly default: "";
102
+ };
103
+ readonly allowCrossDay: {
104
+ readonly type: BooleanConstructor;
105
+ readonly default: false;
106
+ };
107
+ readonly behavior: {
108
+ readonly type: PropType<"normal" | "simplicity">;
109
+ readonly default: "normal";
110
+ readonly validator: (v: any) => boolean;
111
+ };
112
+ readonly disableDate: PropType<DisableDateType>;
113
+ };
114
+ export declare type DatePickerProps = Readonly<ExtractPropTypes<typeof datePickerProps>>;
@@ -0,0 +1,97 @@
1
+ import type { InjectionKey } from 'vue';
2
+ import type { IDatePickerCtx, PickerTypeType } from './interface';
3
+ export declare const RANGE_SEPARATOR = " - ";
4
+ export declare const typeValueResolver: {
5
+ default: {
6
+ formatter(value: any): string;
7
+ parser(text: any): any;
8
+ };
9
+ date: {
10
+ formatter: (value: any, format: any) => string;
11
+ parser: (text: any, format: any) => any;
12
+ };
13
+ datetime: {
14
+ formatter: (value: any, format: any) => string;
15
+ parser: (text: any, format: any) => any;
16
+ };
17
+ daterange: {
18
+ formatter: (value: any, format: any) => string;
19
+ parser: (text: any, format: any) => any[];
20
+ };
21
+ datetimerange: {
22
+ formatter: (value: any, format: any) => string;
23
+ parser: (text: any, format: any) => any[];
24
+ };
25
+ timerange: {
26
+ formatter: (value: any, format: any) => string;
27
+ parser: (text: any, format: any) => any[];
28
+ };
29
+ time: {
30
+ formatter: (value: any, format: any) => string;
31
+ parser: (text: any, format: any) => any;
32
+ };
33
+ month: {
34
+ formatter: (value: any, format: any) => string;
35
+ parser: (text: any, format: any) => any;
36
+ };
37
+ year: {
38
+ formatter: (value: any, format: any) => string;
39
+ parser: (text: any, format: any) => any;
40
+ };
41
+ multiple: {
42
+ formatter(value: any, format: any): any;
43
+ parser(v: any, format: any): any;
44
+ };
45
+ number: {
46
+ formatter(value: any): string;
47
+ parser(text: any): number;
48
+ };
49
+ };
50
+ /**
51
+ * 设置时间,当天的零点时间
52
+ *
53
+ * @return {Date} date 对象
54
+ */
55
+ export declare const initTime: () => Date;
56
+ /**
57
+ * 判断数组中的每个值是否为空
58
+ * 0, '', null, undefined 均判断为空
59
+ *
60
+ * @param {Array} arr 待判断的数组
61
+ *
62
+ * @return {boolean} 判断结果
63
+ */
64
+ export declare const isAllEmptyArr: (arr: any[]) => boolean;
65
+ export declare const keyValueMapper: {
66
+ 40: string;
67
+ 39: string;
68
+ 38: string;
69
+ 37: string;
70
+ };
71
+ export declare const mapPossibleValues: (key: string, horizontal: number, vertical: number) => number;
72
+ export declare const extractTime: (date: Date) => number[];
73
+ export declare const DEFAULT_FORMATS: Record<PickerTypeType, string>;
74
+ export declare const parseDate: (val: any, type: any, multiple: any, format: any) => any;
75
+ export declare const formatDate: (val: any, type: any, multiple: any, format: any) => any;
76
+ export declare const datePickerKey: InjectionKey<IDatePickerCtx>;
77
+ /**
78
+ * 寻找子组件
79
+ *
80
+ * @param {Object} context 上下文
81
+ * @param {string} componentName 要找的组件类型名称
82
+ *
83
+ * @return {Array} 组件集合
84
+ */
85
+ export declare function findChildComponents(context: any, componentName: any): any;
86
+ export declare function iconBtnCls(direction: any, type?: string): string[];
87
+ export declare const getDayCountOfMonth: (year: any, month: any) => number;
88
+ export declare const siblingMonth: (src: any, diff: any) => Date;
89
+ export declare const formatDateLabels: (locale: any, format: any, date: any) => {
90
+ separator: any;
91
+ labels: {
92
+ label: any;
93
+ type: string;
94
+ }[];
95
+ };
96
+ export declare const clearHours: (time: any) => number;
97
+ export declare const isInRange: (time: any, a: any, b: any) => boolean;
@@ -1,3 +1,43 @@
1
+ .bk-modal-wrapper {
2
+ position: absolute;
3
+ top: 50%;
4
+ left: 50%;
5
+ transform: translate(-50%, -50%);
6
+ }
7
+ .bk-modal-wrapper .bk-modal-outside {
8
+ position: fixed;
9
+ top: 0;
10
+ right: 0;
11
+ bottom: 0;
12
+ left: 0;
13
+ }
14
+ .bk-modal-wrapper.bk-model-fullscreen {
15
+ width: 100%;
16
+ height: 100%;
17
+ background: #fff;
18
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
19
+ }
20
+ .bk-modal-wrapper.normal {
21
+ width: 480px;
22
+ height: 240px;
23
+ }
24
+ .bk-modal-wrapper.small {
25
+ width: 400px;
26
+ height: 200px;
27
+ }
28
+ .bk-modal-wrapper.medium {
29
+ width: 640px;
30
+ height: 400px;
31
+ }
32
+ .bk-modal-wrapper.large {
33
+ width: 960px;
34
+ height: 720px;
35
+ }
36
+ .bk-modal-wrapper .bk-modal-body {
37
+ height: 100%;
38
+ background: #fff;
39
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
40
+ }
1
41
  .bk-modal-wrapper.bk-dialog-wrapper {
2
42
  position: relative;
3
43
  }
@@ -33,6 +73,15 @@
33
73
  justify-content: center;
34
74
  align-items: center;
35
75
  }
76
+ .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-tool .close-icon {
77
+ display: none;
78
+ }
79
+ .bk-modal-wrapper.bk-dialog-wrapper .move {
80
+ cursor: move;
81
+ }
82
+ .bk-modal-wrapper.bk-dialog-wrapper .content-dragging {
83
+ user-select: none;
84
+ }
36
85
  .bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-header {
37
86
  padding: 24px;
38
87
  font-size: 20px;