bkui-vue 0.0.1-beta.99 → 0.0.1

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 (665) hide show
  1. package/License.txt +14 -0
  2. package/dist/index.cjs.js +360 -36
  3. package/dist/index.esm.js +30153 -24448
  4. package/dist/index.umd.js +360 -36
  5. package/dist/locale/en.esm.js +2 -0
  6. package/dist/locale/en.esm.js.map +1 -0
  7. package/dist/locale/en.umd.js +2 -0
  8. package/dist/locale/en.umd.js.map +1 -0
  9. package/dist/locale/zh-cn.esm.js +2 -0
  10. package/dist/locale/zh-cn.esm.js.map +1 -0
  11. package/dist/locale/zh-cn.umd.js +2 -0
  12. package/dist/locale/zh-cn.umd.js.map +1 -0
  13. package/dist/style.css +1 -1
  14. package/dist/style.variable.css +1 -0
  15. package/lib/affix/affix.d.ts +2 -2
  16. package/lib/affix/affix.variable.css +29 -6
  17. package/lib/affix/index.d.ts +60 -36
  18. package/lib/alert/alert.css +4 -0
  19. package/lib/alert/alert.d.ts +11 -9
  20. package/lib/alert/alert.less +24 -19
  21. package/lib/alert/alert.variable.css +33 -6
  22. package/lib/alert/index.d.ts +82 -58
  23. package/lib/alert/index.js +1 -1
  24. package/lib/animate-number/animate-number.d.ts +2 -2
  25. package/lib/animate-number/index.d.ts +58 -25
  26. package/lib/backtop/backtop.css +8 -0
  27. package/lib/backtop/backtop.d.ts +4 -4
  28. package/lib/backtop/backtop.less +8 -0
  29. package/lib/backtop/backtop.variable.css +37 -6
  30. package/lib/backtop/index.d.ts +65 -47
  31. package/lib/backtop/index.js +1 -1
  32. package/lib/badge/badge.css +2 -5
  33. package/lib/badge/badge.d.ts +3 -3
  34. package/lib/badge/badge.less +4 -5
  35. package/lib/badge/badge.variable.css +31 -11
  36. package/lib/badge/index.d.ts +67 -64
  37. package/lib/badge/index.js +1 -1
  38. package/lib/breadcrumb/breadcrumb-item.d.ts +5 -3
  39. package/lib/breadcrumb/breadcrumb.css +43 -0
  40. package/lib/breadcrumb/breadcrumb.d.ts +2 -2
  41. package/lib/breadcrumb/breadcrumb.variable.css +77 -11
  42. package/lib/breadcrumb/index.d.ts +65 -41
  43. package/lib/breadcrumb/index.js +1 -1
  44. package/lib/button/button-group.d.ts +4 -4
  45. package/lib/button/button.css +21 -3
  46. package/lib/button/button.d.ts +46 -33
  47. package/lib/button/button.less +25 -5
  48. package/lib/button/button.variable.css +50 -9
  49. package/lib/button/index.d.ts +121 -96
  50. package/lib/button/index.js +1 -1
  51. package/lib/card/card.css +45 -2
  52. package/lib/card/card.d.ts +2 -1
  53. package/lib/card/card.less +2 -2
  54. package/lib/card/card.variable.css +78 -12
  55. package/lib/card/index.d.ts +66 -64
  56. package/lib/card/index.js +1 -1
  57. package/lib/cascader/cascader-panel.d.ts +60 -6
  58. package/lib/cascader/cascader.css +197 -11
  59. package/lib/cascader/cascader.d.ts +108 -25
  60. package/lib/cascader/cascader.less +148 -11
  61. package/lib/cascader/cascader.variable.css +234 -25
  62. package/lib/cascader/index.d.ts +378 -176
  63. package/lib/cascader/index.js +2 -1
  64. package/lib/cascader/index.js.LICENSE.txt +1 -0
  65. package/lib/cascader/interface.d.ts +8 -1
  66. package/lib/cascader/node.d.ts +9 -2
  67. package/lib/cascader/store.d.ts +13 -1
  68. package/lib/checkbox/checkbox-group.d.ts +18 -2
  69. package/lib/checkbox/checkbox.css +38 -11
  70. package/lib/checkbox/checkbox.d.ts +40 -18
  71. package/lib/checkbox/checkbox.less +68 -33
  72. package/lib/checkbox/checkbox.variable.css +67 -17
  73. package/lib/checkbox/common.d.ts +1 -0
  74. package/lib/checkbox/index.d.ts +133 -72
  75. package/lib/checkbox/index.js +1 -1
  76. package/lib/checkbox/type.d.ts +1 -1
  77. package/lib/code-diff/code-diff.css +27 -7
  78. package/lib/code-diff/code-diff.d.ts +7 -7
  79. package/lib/code-diff/code-diff.less +42 -7
  80. package/lib/code-diff/code-diff.variable.css +56 -13
  81. package/lib/code-diff/index.d.ts +30 -43
  82. package/lib/code-diff/index.js +1 -1
  83. package/lib/collapse/collapse-panel.d.ts +104 -0
  84. package/lib/collapse/collapse.css +58 -19
  85. package/lib/collapse/collapse.d.ts +59 -42
  86. package/lib/collapse/collapse.less +106 -46
  87. package/lib/collapse/collapse.variable.css +87 -25
  88. package/lib/collapse/index.d.ts +271 -46
  89. package/lib/collapse/index.js +1 -1
  90. package/lib/collapse/props.d.ts +131 -0
  91. package/lib/collapse-transition/collapse-transition.css +93 -0
  92. package/lib/collapse-transition/collapse-transition.d.ts +15 -0
  93. package/lib/collapse-transition/collapse-transition.less +111 -0
  94. package/lib/collapse-transition/collapse-transition.variable.css +215 -0
  95. package/lib/collapse-transition/index.d.ts +2 -0
  96. package/lib/collapse-transition/index.js +1 -0
  97. package/lib/color-picker/color-picker.css +275 -0
  98. package/lib/color-picker/color-picker.d.ts +144 -0
  99. package/lib/color-picker/color-picker.less +325 -0
  100. package/lib/color-picker/color-picker.variable.css +397 -0
  101. package/lib/color-picker/components/color-input.d.ts +42 -0
  102. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  103. package/lib/color-picker/components/input-container.d.ts +42 -0
  104. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  105. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  106. package/lib/color-picker/index.d.ts +255 -0
  107. package/lib/color-picker/index.js +1 -0
  108. package/lib/color-picker/utils.d.ts +37 -0
  109. package/lib/components.d.ts +13 -0
  110. package/lib/components.js +1 -1
  111. package/lib/config-provider/config-provider.css +0 -0
  112. package/lib/config-provider/config-provider.d.ts +402 -0
  113. package/lib/config-provider/config-provider.less +1 -0
  114. package/lib/{popover2/popover2.variable.css → config-provider/config-provider.variable.css} +29 -31
  115. package/lib/config-provider/index.d.ts +646 -0
  116. package/lib/config-provider/index.js +1 -0
  117. package/lib/config-provider/token.d.ts +128 -0
  118. package/lib/config-provider/use-global-config.d.ts +5 -0
  119. package/lib/config-provider/use-locale.d.ts +3 -0
  120. package/lib/config-provider/use-prefix.d.ts +9 -0
  121. package/lib/container/col.d.ts +3 -3
  122. package/lib/container/container.css +43 -0
  123. package/lib/container/container.d.ts +2 -2
  124. package/lib/container/container.less +4 -4
  125. package/lib/container/container.variable.css +72 -6
  126. package/lib/container/index.d.ts +30 -49
  127. package/lib/container/index.js +1 -1
  128. package/lib/container/interface.d.ts +7 -0
  129. package/lib/container/row.d.ts +2 -2
  130. package/lib/date-picker/base/confirm.d.ts +74 -0
  131. package/lib/date-picker/base/date-table.d.ts +96 -0
  132. package/lib/date-picker/base/month-table.d.ts +117 -0
  133. package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
  134. package/lib/date-picker/base/time-spinner.d.ts +170 -0
  135. package/lib/date-picker/base/year-table.d.ts +117 -0
  136. package/lib/date-picker/date-picker.css +30 -1
  137. package/lib/date-picker/date-picker.d.ts +55 -35
  138. package/lib/date-picker/date-picker.less +109 -74
  139. package/lib/date-picker/date-picker.variable.css +59 -7
  140. package/lib/date-picker/index.d.ts +198 -218
  141. package/lib/date-picker/index.js +1 -1
  142. package/lib/date-picker/interface.d.ts +20 -10
  143. package/lib/date-picker/panel/date-range.d.ts +345 -0
  144. package/lib/date-picker/panel/date.d.ts +206 -0
  145. package/lib/date-picker/panel/time-range.d.ts +495 -0
  146. package/lib/date-picker/panel/time.d.ts +451 -0
  147. package/lib/date-picker/props.d.ts +48 -5
  148. package/lib/date-picker/time-picker.d.ts +390 -0
  149. package/lib/date-picker/utils.d.ts +22 -2
  150. package/lib/dialog/dialog.css +94 -34
  151. package/lib/dialog/dialog.d.ts +57 -93
  152. package/lib/dialog/dialog.less +85 -43
  153. package/lib/dialog/dialog.variable.css +216 -34
  154. package/lib/dialog/index.d.ts +194 -334
  155. package/lib/dialog/index.js +2 -1
  156. package/lib/dialog/index.js.LICENSE.txt +1 -0
  157. package/lib/dialog/props.d.ts +122 -0
  158. package/lib/directives/ellipsis.d.ts +7 -0
  159. package/lib/directives/index.d.ts +2 -0
  160. package/lib/directives/index.js +1 -1
  161. package/lib/directives/tooltips.d.ts +2 -1
  162. package/lib/dist.index.js +1 -1
  163. package/lib/divider/divider.d.ts +17 -17
  164. package/lib/divider/divider.variable.css +29 -6
  165. package/lib/divider/index.d.ts +85 -61
  166. package/lib/divider/index.js +1 -1
  167. package/lib/divider/props.d.ts +6 -6
  168. package/lib/dropdown/dropdown-item.d.ts +1 -1
  169. package/lib/dropdown/dropdown-menu.d.ts +2 -2
  170. package/lib/dropdown/dropdown.css +34 -7
  171. package/lib/dropdown/dropdown.d.ts +46 -15
  172. package/lib/dropdown/dropdown.less +42 -36
  173. package/lib/dropdown/dropdown.variable.css +63 -13
  174. package/lib/dropdown/index.d.ts +136 -65
  175. package/lib/dropdown/index.js +1 -1
  176. package/lib/exception/exception.css +40 -14
  177. package/lib/exception/exception.d.ts +33 -13
  178. package/lib/exception/exception.less +59 -22
  179. package/lib/exception/exception.variable.css +69 -20
  180. package/lib/exception/index.d.ts +91 -43
  181. package/lib/exception/index.js +1 -1
  182. package/lib/exception/typings/index.d.ts +4 -0
  183. package/lib/fixed-navbar/fixed-navbar.d.ts +2 -2
  184. package/lib/fixed-navbar/fixed-navbar.variable.css +29 -6
  185. package/lib/fixed-navbar/index.d.ts +60 -36
  186. package/lib/form/compose-form-item.d.ts +4 -2
  187. package/lib/form/form-item.d.ts +15 -9
  188. package/lib/form/form.css +32 -8
  189. package/lib/form/form.d.ts +25 -7
  190. package/lib/form/form.less +85 -53
  191. package/lib/form/form.variable.css +61 -14
  192. package/lib/form/index.d.ts +109 -51
  193. package/lib/form/index.js +1 -1
  194. package/lib/form/type.d.ts +5 -4
  195. package/lib/form/utils.d.ts +2 -0
  196. package/lib/hooks.d.ts +1 -0
  197. package/lib/hooks.js +1 -0
  198. package/lib/icon/angle-double-down-line.js +1 -1
  199. package/lib/icon/angle-double-left-line.js +1 -1
  200. package/lib/icon/angle-double-left.js +1 -1
  201. package/lib/icon/angle-double-right-line.js +1 -1
  202. package/lib/icon/angle-double-right.js +1 -1
  203. package/lib/icon/angle-double-up-line.js +1 -1
  204. package/lib/icon/angle-down-fill.js +1 -1
  205. package/lib/icon/angle-down-line.js +1 -1
  206. package/lib/icon/angle-down.js +1 -1
  207. package/lib/icon/angle-left.js +1 -1
  208. package/lib/icon/angle-right.js +1 -1
  209. package/lib/icon/angle-up-fill.js +1 -1
  210. package/lib/icon/angle-up.js +1 -1
  211. package/lib/icon/archive-fill.js +1 -1
  212. package/lib/icon/arrows-left.js +1 -1
  213. package/lib/icon/arrows-right.js +1 -1
  214. package/lib/icon/audio-fill.js +1 -1
  215. package/lib/icon/bk.js +1 -1
  216. package/lib/icon/circle.js +1 -1
  217. package/lib/icon/close-line.js +1 -1
  218. package/lib/icon/close.js +1 -1
  219. package/lib/icon/code.js +1 -1
  220. package/lib/icon/cog-shape.js +1 -1
  221. package/lib/icon/collapse-left.js +1 -1
  222. package/lib/icon/copy-shape.d.ts +4 -0
  223. package/lib/icon/copy-shape.js +1 -0
  224. package/lib/icon/copy.js +1 -1
  225. package/lib/icon/data-shape.js +1 -1
  226. package/lib/icon/del.js +1 -1
  227. package/lib/icon/doc-fill.js +1 -1
  228. package/lib/icon/done.js +1 -1
  229. package/lib/icon/down-shape.js +1 -1
  230. package/lib/icon/down-small.js +1 -1
  231. package/lib/icon/edit-line.js +1 -1
  232. package/lib/icon/ellipsis.js +1 -1
  233. package/lib/icon/enlarge-line.d.ts +4 -0
  234. package/lib/icon/enlarge-line.js +1 -0
  235. package/lib/icon/error.js +1 -1
  236. package/lib/icon/excel-fill.js +1 -1
  237. package/lib/icon/exclamation-circle-shape.js +1 -1
  238. package/lib/icon/eye.js +1 -1
  239. package/lib/icon/filliscreen-line.d.ts +4 -0
  240. package/lib/icon/filliscreen-line.js +1 -0
  241. package/lib/icon/fix-line.d.ts +4 -0
  242. package/lib/icon/fix-line.js +1 -0
  243. package/lib/icon/fix-shape.d.ts +4 -0
  244. package/lib/icon/fix-shape.js +1 -0
  245. package/lib/icon/folder-open.js +1 -1
  246. package/lib/icon/folder-shape-open.js +1 -1
  247. package/lib/icon/folder-shape.js +1 -1
  248. package/lib/icon/folder.js +1 -1
  249. package/lib/icon/funnel.js +1 -0
  250. package/lib/icon/help-document-fill.js +1 -1
  251. package/lib/icon/help-fill.js +1 -1
  252. package/lib/icon/help.js +1 -1
  253. package/lib/icon/image-fill.js +1 -1
  254. package/lib/icon/img-error.d.ts +4 -0
  255. package/lib/icon/img-error.js +1 -0
  256. package/lib/icon/img-placehoulder.d.ts +4 -0
  257. package/lib/icon/img-placehoulder.js +1 -0
  258. package/lib/icon/index.d.ts +83 -69
  259. package/lib/icon/index.js +1 -1
  260. package/lib/icon/info-line.js +1 -1
  261. package/lib/icon/info.js +1 -1
  262. package/lib/icon/left-shape.js +1 -1
  263. package/lib/icon/left-turn-line.d.ts +4 -0
  264. package/lib/icon/left-turn-line.js +1 -0
  265. package/lib/icon/narrow-line.d.ts +4 -0
  266. package/lib/icon/narrow-line.js +1 -0
  267. package/lib/icon/original.d.ts +4 -0
  268. package/lib/icon/original.js +1 -0
  269. package/lib/icon/pdf-fill.js +1 -1
  270. package/lib/icon/play-shape.js +1 -1
  271. package/lib/icon/plus.js +1 -1
  272. package/lib/icon/ppt-fill.js +1 -1
  273. package/lib/icon/qq.js +1 -1
  274. package/lib/icon/right-shape.js +1 -1
  275. package/lib/icon/right-turn-line.d.ts +4 -0
  276. package/lib/icon/right-turn-line.js +1 -0
  277. package/lib/icon/search.js +1 -1
  278. package/lib/icon/share.js +1 -1
  279. package/lib/icon/spinner.js +1 -1
  280. package/lib/icon/success.js +1 -1
  281. package/lib/icon/switcher-loading.js +1 -1
  282. package/lib/icon/text-file.js +1 -1
  283. package/lib/icon/text-fill.js +1 -1
  284. package/lib/icon/transfer.d.ts +4 -0
  285. package/lib/icon/transfer.js +1 -0
  286. package/lib/icon/tree-application-shape.js +1 -1
  287. package/lib/icon/unfull-screen.d.ts +4 -0
  288. package/lib/icon/unfull-screen.js +1 -0
  289. package/lib/icon/unvisible.js +1 -1
  290. package/lib/icon/up-shape.js +1 -1
  291. package/lib/icon/upload.js +1 -1
  292. package/lib/icon/video-fill.js +1 -1
  293. package/lib/icon/warn.js +1 -1
  294. package/lib/icon/weixin-pro.d.ts +4 -0
  295. package/lib/icon/weixin-pro.js +1 -0
  296. package/lib/icon/weixin.js +1 -1
  297. package/lib/image/image-viewer.css +142 -0
  298. package/lib/image/image-viewer.d.ts +73 -0
  299. package/lib/image/image-viewer.less +168 -0
  300. package/lib/image/image-viewer.variable.css +142 -0
  301. package/lib/image/image.css +37 -0
  302. package/lib/image/image.d.ts +93 -0
  303. package/lib/image/image.less +44 -0
  304. package/lib/image/image.variable.css +37 -0
  305. package/lib/image/index.d.ts +252 -0
  306. package/lib/image/index.js +1 -0
  307. package/lib/image/props.d.ts +71 -0
  308. package/lib/index.d.ts +3 -0
  309. package/lib/index.js +1 -1
  310. package/lib/info-box/index.d.ts +7 -0
  311. package/lib/info-box/index.js +2 -0
  312. package/lib/info-box/index.js.LICENSE.txt +1 -0
  313. package/lib/info-box/info-box.css +37 -0
  314. package/lib/info-box/info-box.d.ts +29 -0
  315. package/lib/info-box/info-box.less +51 -0
  316. package/lib/info-box/info-box.variable.css +159 -0
  317. package/lib/input/index.d.ts +178 -228
  318. package/lib/input/index.js +1 -1
  319. package/lib/input/input.css +168 -23
  320. package/lib/input/input.d.ts +59 -37
  321. package/lib/input/input.less +104 -22
  322. package/lib/input/input.variable.css +228 -61
  323. package/lib/link/index.d.ts +80 -53
  324. package/lib/link/index.js +1 -1
  325. package/lib/link/link.css +12 -12
  326. package/lib/link/link.d.ts +10 -8
  327. package/lib/link/link.less +16 -14
  328. package/lib/link/link.variable.css +41 -18
  329. package/lib/loading/directive.d.ts +14 -0
  330. package/lib/loading/index.d.ts +160 -56
  331. package/lib/loading/index.js +1 -1
  332. package/lib/loading/loading.css +72 -29
  333. package/lib/loading/loading.d.ts +91 -15
  334. package/lib/loading/loading.less +21 -19
  335. package/lib/loading/loading.variable.css +117 -51
  336. package/lib/locale/index.d.ts +3 -0
  337. package/lib/locale/index.js +1 -0
  338. package/lib/locale/lang/en.d.ts +126 -0
  339. package/lib/locale/lang/zh-cn.d.ts +3 -0
  340. package/lib/menu/index.d.ts +75 -34
  341. package/lib/menu/index.js +1 -1
  342. package/lib/menu/menu-group.d.ts +2 -2
  343. package/lib/menu/menu-item.d.ts +5 -1
  344. package/lib/menu/menu.css +43 -0
  345. package/lib/menu/menu.d.ts +2 -2
  346. package/lib/menu/menu.variable.css +90 -24
  347. package/lib/menu/submenu.d.ts +5 -1
  348. package/lib/menu/submenu.variable.css +29 -6
  349. package/lib/menu/utils.d.ts +1 -1
  350. package/lib/message/index.js +2 -1
  351. package/lib/message/index.js.LICENSE.txt +6 -0
  352. package/lib/message/message.css +166 -2
  353. package/lib/message/message.less +222 -7
  354. package/lib/message/message.variable.css +195 -8
  355. package/lib/message/messageConstructor.d.ts +136 -27
  356. package/lib/modal/index.d.ts +201 -246
  357. package/lib/modal/index.js +1 -1
  358. package/lib/modal/modal.css +39 -6
  359. package/lib/modal/modal.d.ts +54 -61
  360. package/lib/modal/modal.less +8 -10
  361. package/lib/modal/modal.variable.css +161 -6
  362. package/lib/modal/props.mixin.d.ts +16 -23
  363. package/lib/navigation/index.d.ts +90 -68
  364. package/lib/navigation/index.js +1 -1
  365. package/lib/navigation/navigation-title.d.ts +6 -3
  366. package/lib/navigation/navigation.d.ts +12 -4
  367. package/lib/navigation/navigation.variable.css +29 -6
  368. package/lib/notify/index.js +1 -1
  369. package/lib/notify/notify.css +8 -4
  370. package/lib/notify/notify.less +18 -13
  371. package/lib/notify/notify.variable.css +37 -10
  372. package/lib/notify/notifyConstructor.d.ts +19 -21
  373. package/lib/overflow-title/components/overflow-title.d.ts +57 -0
  374. package/lib/overflow-title/directive/overflow-title.d.ts +3 -0
  375. package/lib/overflow-title/index.d.ts +195 -0
  376. package/lib/overflow-title/index.js +1 -0
  377. package/lib/overflow-title/overflow.css +11 -0
  378. package/lib/overflow-title/overflow.less +13 -0
  379. package/lib/overflow-title/overflow.variable.css +11 -0
  380. package/lib/overflow-title/props.d.ts +43 -0
  381. package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
  382. package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
  383. package/lib/pagination/index.d.ts +89 -90
  384. package/lib/pagination/index.js +1 -1
  385. package/lib/pagination/pagination.css +54 -28
  386. package/lib/pagination/pagination.d.ts +17 -6
  387. package/lib/pagination/pagination.less +59 -30
  388. package/lib/pagination/pagination.variable.css +83 -34
  389. package/lib/pagination/type.d.ts +1 -1
  390. package/lib/pagination/use-limit.d.ts +3 -1
  391. package/lib/pagination/use-total.d.ts +3 -1
  392. package/lib/plugin-popover/index.d.ts +27 -0
  393. package/lib/plugin-popover/index.js +1 -0
  394. package/lib/plugins/index.d.ts +1 -0
  395. package/lib/plugins/index.js +1 -0
  396. package/lib/pop-confirm/index.d.ts +249 -0
  397. package/lib/pop-confirm/index.js +1 -0
  398. package/lib/pop-confirm/pop-confirm.css +28 -0
  399. package/lib/pop-confirm/pop-confirm.d.ts +95 -0
  400. package/lib/pop-confirm/pop-confirm.less +34 -0
  401. package/lib/pop-confirm/pop-confirm.variable.css +150 -0
  402. package/lib/pop-confirm/props.d.ts +67 -0
  403. package/lib/popover/arrow.d.ts +2 -0
  404. package/lib/popover/const.d.ts +16 -0
  405. package/lib/popover/content.d.ts +43 -0
  406. package/lib/popover/index.d.ts +409 -173
  407. package/lib/popover/index.js +1 -1
  408. package/lib/popover/plugin-popover.d.ts +12 -0
  409. package/lib/popover/popover.css +10 -53
  410. package/lib/popover/popover.d.ts +189 -58
  411. package/lib/popover/popover.less +19 -68
  412. package/lib/popover/popover.variable.css +40 -60
  413. package/lib/popover/props.d.ts +90 -37
  414. package/lib/popover/reference.d.ts +2 -0
  415. package/lib/popover/root.d.ts +27 -0
  416. package/lib/popover/use-floating.d.ts +34 -0
  417. package/lib/popover/use-platform.d.ts +30 -0
  418. package/lib/popover/use-popover-init.d.ts +23 -0
  419. package/lib/popover/use-popper-id.d.ts +6 -0
  420. package/lib/popover/utils.d.ts +8 -0
  421. package/lib/popover2/index.d.ts +54 -393
  422. package/lib/popover2/index.js +1 -1
  423. package/lib/popover2/popover.d.ts +2 -0
  424. package/lib/preset.d.ts +264 -2
  425. package/lib/preset.js +1 -1
  426. package/lib/process/index.d.ts +69 -52
  427. package/lib/process/index.js +2 -1
  428. package/lib/process/index.js.LICENSE.txt +1 -0
  429. package/lib/process/process.css +22 -0
  430. package/lib/process/process.d.ts +5 -4
  431. package/lib/process/process.less +36 -8
  432. package/lib/process/process.variable.css +51 -6
  433. package/lib/progress/index.d.ts +100 -121
  434. package/lib/progress/index.js +1 -1
  435. package/lib/progress/progress.css +43 -0
  436. package/lib/progress/progress.d.ts +17 -15
  437. package/lib/progress/progress.less +8 -8
  438. package/lib/progress/progress.variable.css +76 -10
  439. package/lib/radio/index.d.ts +116 -58
  440. package/lib/radio/index.js +1 -1
  441. package/lib/radio/radio-button.d.ts +12 -9
  442. package/lib/radio/radio-group.d.ts +36 -5
  443. package/lib/radio/radio.css +133 -62
  444. package/lib/radio/radio.d.ts +9 -5
  445. package/lib/radio/radio.less +262 -173
  446. package/lib/radio/radio.variable.css +166 -72
  447. package/lib/radio/type.d.ts +1 -1
  448. package/lib/rate/index.d.ts +78 -28
  449. package/lib/rate/index.js +1 -1
  450. package/lib/rate/rate.d.ts +14 -3
  451. package/lib/rate/star.d.ts +1 -1
  452. package/lib/resize-layout/index.d.ts +82 -80
  453. package/lib/resize-layout/index.js +1 -1
  454. package/lib/resize-layout/resize-layout.css +6 -15
  455. package/lib/resize-layout/resize-layout.d.ts +10 -9
  456. package/lib/resize-layout/resize-layout.less +32 -41
  457. package/lib/resize-layout/resize-layout.variable.css +35 -21
  458. package/lib/search-select/index.d.ts +892 -0
  459. package/lib/search-select/index.js +2 -0
  460. package/lib/search-select/index.js.LICENSE.txt +1 -0
  461. package/lib/search-select/input.d.ts +101 -0
  462. package/lib/search-select/menu.d.ts +77 -0
  463. package/lib/search-select/search-select.css +427 -0
  464. package/lib/search-select/search-select.d.ts +361 -0
  465. package/lib/search-select/search-select.less +384 -0
  466. package/lib/search-select/search-select.variable.css +549 -0
  467. package/lib/search-select/selected.d.ts +155 -0
  468. package/lib/search-select/utils.d.ts +88 -0
  469. package/lib/select/common.d.ts +4 -11
  470. package/lib/select/index.d.ts +1471 -918
  471. package/lib/select/index.js +2 -1
  472. package/lib/select/index.js.LICENSE.txt +1 -0
  473. package/lib/select/option.d.ts +17 -6
  474. package/lib/select/optionGroup.d.ts +2 -2
  475. package/lib/select/select.css +211 -140
  476. package/lib/select/select.d.ts +654 -205
  477. package/lib/select/select.less +331 -189
  478. package/lib/select/select.variable.css +240 -146
  479. package/lib/select/selectTagInput.d.ts +38 -15
  480. package/lib/select/type.d.ts +20 -14
  481. package/lib/shared/dom.d.ts +3 -0
  482. package/lib/shared/helper.d.ts +9 -0
  483. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  484. package/lib/shared/hooks/use-form.d.ts +2 -0
  485. package/lib/shared/index.d.ts +16 -12
  486. package/lib/shared/index.js +1 -1
  487. package/lib/shared/mask-manager.d.ts +18 -5
  488. package/lib/shared/pop-manager.d.ts +13 -3
  489. package/lib/shared/popover.d.ts +1 -1
  490. package/lib/shared/token.d.ts +1 -1
  491. package/lib/shared/utils.d.ts +19 -0
  492. package/lib/shared/vue-types.d.ts +116 -13
  493. package/lib/sideslider/index.d.ts +158 -252
  494. package/lib/sideslider/index.js +2 -1
  495. package/lib/sideslider/index.js.LICENSE.txt +1 -0
  496. package/lib/sideslider/sideslider.css +10 -8
  497. package/lib/sideslider/sideslider.d.ts +46 -71
  498. package/lib/sideslider/sideslider.less +19 -17
  499. package/lib/sideslider/sideslider.variable.css +39 -14
  500. package/lib/slider/index.d.ts +82 -112
  501. package/lib/slider/index.js +2 -1
  502. package/lib/slider/index.js.LICENSE.txt +1 -0
  503. package/lib/slider/slider-button.d.ts +3 -2
  504. package/lib/slider/slider.d.ts +6 -6
  505. package/lib/slider/slider.variable.css +29 -6
  506. package/lib/steps/index.d.ts +105 -96
  507. package/lib/steps/index.js +2 -1
  508. package/lib/steps/index.js.LICENSE.txt +1 -0
  509. package/lib/steps/steps.css +1 -0
  510. package/lib/steps/steps.d.ts +35 -34
  511. package/lib/steps/steps.less +63 -62
  512. package/lib/steps/steps.variable.css +30 -6
  513. package/lib/styles/index.d.ts +6 -2
  514. package/lib/styles/mixins/mixins.css +43 -0
  515. package/lib/styles/mixins/mixins.less +1 -0
  516. package/lib/styles/mixins/mixins.variable.css +43 -0
  517. package/lib/styles/mixins/popper.css +1 -1
  518. package/lib/styles/mixins/popper.less +12 -11
  519. package/lib/styles/mixins/popper.variable.css +123 -1
  520. package/lib/styles/mixins/scroll.css +17 -0
  521. package/lib/styles/mixins/scroll.less +22 -0
  522. package/lib/styles/mixins/scroll.variable.css +139 -0
  523. package/lib/styles/reset.css +36 -0
  524. package/lib/styles/reset.less +26 -2
  525. package/lib/styles/reset.variable.css +36 -0
  526. package/lib/styles/themes/themes.less +37 -6
  527. package/lib/swiper/index.d.ts +60 -44
  528. package/lib/swiper/index.js +1 -1
  529. package/lib/swiper/swiper.d.ts +1 -1
  530. package/lib/swiper/swiper.less +15 -13
  531. package/lib/swiper/swiper.variable.css +122 -0
  532. package/lib/switcher/index.d.ts +94 -87
  533. package/lib/switcher/index.js +1 -1
  534. package/lib/switcher/switcher.css +44 -1
  535. package/lib/switcher/switcher.d.ts +17 -11
  536. package/lib/switcher/switcher.less +29 -52
  537. package/lib/switcher/switcher.variable.css +90 -24
  538. package/lib/tab/index.d.ts +163 -124
  539. package/lib/tab/index.js +1 -1
  540. package/lib/tab/props.d.ts +92 -43
  541. package/lib/tab/tab-nav.d.ts +46 -14
  542. package/lib/tab/tab-panel.d.ts +16 -9
  543. package/lib/tab/tab.css +135 -58
  544. package/lib/tab/tab.d.ts +42 -20
  545. package/lib/tab/tab.less +164 -77
  546. package/lib/tab/tab.variable.css +164 -64
  547. package/lib/table/cache.d.ts +6 -0
  548. package/lib/table/components/index.d.ts +3 -0
  549. package/lib/table/components/table-cell.d.ts +51 -0
  550. package/lib/table/components/table-column.d.ts +305 -0
  551. package/lib/table/components/table-row.d.ts +2 -0
  552. package/lib/table/const.d.ts +94 -6
  553. package/lib/table/index.d.ts +697 -169
  554. package/lib/table/index.js +1 -1
  555. package/lib/table/plugins/body-empty.d.ts +36 -0
  556. package/lib/table/plugins/col-group.d.ts +38 -0
  557. package/lib/table/plugins/common.d.ts +6 -0
  558. package/lib/table/plugins/head-filter.css +30 -14
  559. package/lib/table/plugins/head-filter.d.ts +26 -0
  560. package/lib/table/plugins/head-filter.less +79 -52
  561. package/lib/table/plugins/head-filter.variable.css +59 -20
  562. package/lib/table/plugins/head-sort.css +7 -3
  563. package/lib/table/plugins/head-sort.d.ts +29 -0
  564. package/lib/table/plugins/head-sort.less +8 -4
  565. package/lib/table/plugins/head-sort.variable.css +36 -9
  566. package/lib/table/plugins/index.d.ts +5 -0
  567. package/lib/table/plugins/settings.css +43 -6
  568. package/lib/table/plugins/settings.d.ts +37 -0
  569. package/lib/table/plugins/settings.less +52 -7
  570. package/lib/table/plugins/settings.variable.css +72 -12
  571. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  572. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  573. package/lib/table/plugins/use-fixed-column.d.ts +26 -0
  574. package/lib/table/plugins/use-pagination.d.ts +16 -0
  575. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  576. package/lib/table/props.d.ts +271 -23
  577. package/lib/table/render.d.ts +32 -12
  578. package/lib/table/table.css +961 -69
  579. package/lib/table/table.d.ts +170 -27
  580. package/lib/table/table.less +195 -69
  581. package/lib/table/table.variable.css +990 -75
  582. package/lib/table/use-column.d.ts +12 -0
  583. package/lib/table/use-common.d.ts +71 -11
  584. package/lib/table/utils.d.ts +33 -7
  585. package/lib/table-column/index.d.ts +797 -0
  586. package/lib/table-column/index.js +1 -0
  587. package/lib/tag/index.d.ts +89 -68
  588. package/lib/tag/index.js +1 -1
  589. package/lib/tag/tag.css +46 -13
  590. package/lib/tag/tag.d.ts +17 -12
  591. package/lib/tag/tag.less +58 -21
  592. package/lib/tag/tag.variable.css +75 -19
  593. package/lib/tag-input/common.d.ts +13 -1
  594. package/lib/tag-input/index.d.ts +570 -269
  595. package/lib/tag-input/index.js +1 -1
  596. package/lib/tag-input/list-tag-render.d.ts +2 -5
  597. package/lib/tag-input/tag-input.css +23 -27
  598. package/lib/tag-input/tag-input.d.ts +304 -45
  599. package/lib/tag-input/tag-input.less +103 -106
  600. package/lib/tag-input/tag-input.variable.css +52 -33
  601. package/lib/tag-input/tag-props.d.ts +142 -8
  602. package/lib/tag-input/tag-render.d.ts +31 -5
  603. package/lib/time-picker/index.d.ts +833 -0
  604. package/lib/time-picker/index.js +1 -0
  605. package/lib/time-picker/time-picker.css +215 -0
  606. package/lib/time-picker/time-picker.less +260 -0
  607. package/lib/time-picker/time-picker.variable.css +337 -0
  608. package/lib/timeline/index.d.ts +64 -32
  609. package/lib/timeline/index.js +1 -1
  610. package/lib/timeline/timeline.css +11 -4
  611. package/lib/timeline/timeline.d.ts +4 -3
  612. package/lib/timeline/timeline.less +48 -36
  613. package/lib/timeline/timeline.variable.css +40 -10
  614. package/lib/transfer/index.d.ts +152 -81
  615. package/lib/transfer/index.js +1 -1
  616. package/lib/transfer/props.d.ts +5 -0
  617. package/lib/transfer/transfer.css +121 -41
  618. package/lib/transfer/transfer.d.ts +35 -3
  619. package/lib/transfer/transfer.less +103 -46
  620. package/lib/transfer/transfer.variable.css +155 -52
  621. package/lib/tree/constant.d.ts +22 -2
  622. package/lib/tree/index.d.ts +236 -141
  623. package/lib/tree/index.js +1 -1
  624. package/lib/tree/props.d.ts +68 -12
  625. package/lib/tree/tree.css +176 -7
  626. package/lib/tree/tree.d.ts +91 -20
  627. package/lib/tree/tree.less +49 -1
  628. package/lib/tree/tree.variable.css +205 -13
  629. package/lib/tree/use-empty.d.ts +1 -1
  630. package/lib/tree/use-node-action.d.ts +3 -2
  631. package/lib/tree/use-node-attribute.d.ts +11 -0
  632. package/lib/tree/use-node-drag.d.ts +1 -1
  633. package/lib/tree/use-search.d.ts +1 -1
  634. package/lib/tree/util.d.ts +2 -0
  635. package/lib/upload/index.d.ts +508 -1
  636. package/lib/upload/index.js +2 -1
  637. package/lib/upload/index.js.LICENSE.txt +1 -0
  638. package/lib/upload/props.d.ts +0 -2
  639. package/lib/upload/upload-list.d.ts +3 -2
  640. package/lib/upload/upload-trigger.d.ts +1 -4
  641. package/lib/upload/upload.css +58 -5
  642. package/lib/upload/upload.d.ts +10 -16
  643. package/lib/upload/upload.less +19 -8
  644. package/lib/upload/upload.type.d.ts +12 -12
  645. package/lib/upload/upload.variable.css +113 -37
  646. package/lib/upload/use-file-handler.d.ts +2 -25
  647. package/lib/virtual-render/index.d.ts +100 -150
  648. package/lib/virtual-render/index.js +1 -1
  649. package/lib/virtual-render/props.d.ts +15 -1
  650. package/lib/virtual-render/virtual-render.css +17 -17
  651. package/lib/virtual-render/virtual-render.d.ts +39 -4
  652. package/lib/virtual-render/virtual-render.less +2 -23
  653. package/lib/virtual-render/virtual-render.variable.css +139 -17
  654. package/lib/volar.components.d.ts +102 -0
  655. package/package.json +47 -41
  656. package/LICENSE.txt +0 -22
  657. package/lib/popover2/arrow.d.ts +0 -2
  658. package/lib/popover2/content.d.ts +0 -24
  659. package/lib/popover2/popover2.css +0 -25
  660. package/lib/popover2/popover2.d.ts +0 -180
  661. package/lib/popover2/popover2.less +0 -35
  662. package/lib/popover2/props.d.ts +0 -92
  663. package/lib/popover2/reference.d.ts +0 -2
  664. package/lib/popover2/use-floating.d.ts +0 -15
  665. package/lib/popover2/use-popper-id.d.ts +0 -5
@@ -0,0 +1,42 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ declare const colorPickerProps: {
3
+ colorObj: import("vue-types").VueTypeValidableDef<{
4
+ [key: string]: any;
5
+ }> & {
6
+ default: () => {
7
+ [key: string]: any;
8
+ };
9
+ } & {
10
+ required: true;
11
+ };
12
+ };
13
+ export type ColorPickerPropTypes = ExtractPropTypes<typeof colorPickerProps>;
14
+ declare const _default: import("vue").DefineComponent<{
15
+ colorObj: import("vue-types").VueTypeValidableDef<{
16
+ [key: string]: any;
17
+ }> & {
18
+ default: () => {
19
+ [key: string]: any;
20
+ };
21
+ } & {
22
+ required: true;
23
+ };
24
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "tab")[], "change" | "tab", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
25
+ colorObj: import("vue-types").VueTypeValidableDef<{
26
+ [key: string]: any;
27
+ }> & {
28
+ default: () => {
29
+ [key: string]: any;
30
+ };
31
+ } & {
32
+ required: true;
33
+ };
34
+ }>> & {
35
+ onChange?: (...args: any[]) => any;
36
+ onTab?: (...args: any[]) => any;
37
+ }, {
38
+ colorObj: {
39
+ [key: string]: any;
40
+ };
41
+ }, {}>;
42
+ export default _default;
@@ -0,0 +1,41 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ declare const colorPickerProps: {
3
+ colorObj: import("vue-types").VueTypeValidableDef<{
4
+ [key: string]: any;
5
+ }> & {
6
+ default: () => {
7
+ [key: string]: any;
8
+ };
9
+ } & {
10
+ required: true;
11
+ };
12
+ };
13
+ export type ColorPickerPropTypes = ExtractPropTypes<typeof colorPickerProps>;
14
+ declare const _default: import("vue").DefineComponent<{
15
+ colorObj: import("vue-types").VueTypeValidableDef<{
16
+ [key: string]: any;
17
+ }> & {
18
+ default: () => {
19
+ [key: string]: any;
20
+ };
21
+ } & {
22
+ required: true;
23
+ };
24
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
25
+ colorObj: import("vue-types").VueTypeValidableDef<{
26
+ [key: string]: any;
27
+ }> & {
28
+ default: () => {
29
+ [key: string]: any;
30
+ };
31
+ } & {
32
+ required: true;
33
+ };
34
+ }>> & {
35
+ onChange?: (...args: any[]) => any;
36
+ }, {
37
+ colorObj: {
38
+ [key: string]: any;
39
+ };
40
+ }, {}>;
41
+ export default _default;
@@ -0,0 +1,42 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ declare const inputContainerProps: {
3
+ info: import("vue-types").VueTypeValidableDef<{
4
+ [key: string]: any;
5
+ }> & {
6
+ default: () => {
7
+ [key: string]: any;
8
+ };
9
+ } & {
10
+ required: true;
11
+ };
12
+ };
13
+ export type InputContainerProps = ExtractPropTypes<typeof inputContainerProps>;
14
+ declare const _default: import("vue").DefineComponent<{
15
+ info: import("vue-types").VueTypeValidableDef<{
16
+ [key: string]: any;
17
+ }> & {
18
+ default: () => {
19
+ [key: string]: any;
20
+ };
21
+ } & {
22
+ required: true;
23
+ };
24
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "tab")[], "input" | "tab", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
25
+ info: import("vue-types").VueTypeValidableDef<{
26
+ [key: string]: any;
27
+ }> & {
28
+ default: () => {
29
+ [key: string]: any;
30
+ };
31
+ } & {
32
+ required: true;
33
+ };
34
+ }>> & {
35
+ onInput?: (...args: any[]) => any;
36
+ onTab?: (...args: any[]) => any;
37
+ }, {
38
+ info: {
39
+ [key: string]: any;
40
+ };
41
+ }, {}>;
42
+ export default _default;
@@ -0,0 +1,51 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ declare const colorPickerProps: {
3
+ colorObj: import("vue-types").VueTypeValidableDef<{
4
+ [key: string]: any;
5
+ }> & {
6
+ default: () => {
7
+ [key: string]: any;
8
+ };
9
+ } & {
10
+ required: true;
11
+ };
12
+ recommend: import("vue-types").VueTypeDef<boolean | unknown[]> & {
13
+ required: true;
14
+ };
15
+ };
16
+ export type ColorPickerPropTypes = ExtractPropTypes<typeof colorPickerProps>;
17
+ declare const _default: import("vue").DefineComponent<{
18
+ colorObj: import("vue-types").VueTypeValidableDef<{
19
+ [key: string]: any;
20
+ }> & {
21
+ default: () => {
22
+ [key: string]: any;
23
+ };
24
+ } & {
25
+ required: true;
26
+ };
27
+ recommend: import("vue-types").VueTypeDef<boolean | unknown[]> & {
28
+ required: true;
29
+ };
30
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "tab")[], "change" | "tab", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
31
+ colorObj: import("vue-types").VueTypeValidableDef<{
32
+ [key: string]: any;
33
+ }> & {
34
+ default: () => {
35
+ [key: string]: any;
36
+ };
37
+ } & {
38
+ required: true;
39
+ };
40
+ recommend: import("vue-types").VueTypeDef<boolean | unknown[]> & {
41
+ required: true;
42
+ };
43
+ }>> & {
44
+ onChange?: (...args: any[]) => any;
45
+ onTab?: (...args: any[]) => any;
46
+ }, {
47
+ colorObj: {
48
+ [key: string]: any;
49
+ };
50
+ }, {}>;
51
+ export default _default;
@@ -0,0 +1,41 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ declare const colorPickerProps: {
3
+ colorObj: import("vue-types").VueTypeValidableDef<{
4
+ [key: string]: any;
5
+ }> & {
6
+ default: () => {
7
+ [key: string]: any;
8
+ };
9
+ } & {
10
+ required: true;
11
+ };
12
+ };
13
+ export type ColorPickerPropTypes = ExtractPropTypes<typeof colorPickerProps>;
14
+ declare const _default: import("vue").DefineComponent<{
15
+ colorObj: import("vue-types").VueTypeValidableDef<{
16
+ [key: string]: any;
17
+ }> & {
18
+ default: () => {
19
+ [key: string]: any;
20
+ };
21
+ } & {
22
+ required: true;
23
+ };
24
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
25
+ colorObj: import("vue-types").VueTypeValidableDef<{
26
+ [key: string]: any;
27
+ }> & {
28
+ default: () => {
29
+ [key: string]: any;
30
+ };
31
+ } & {
32
+ required: true;
33
+ };
34
+ }>> & {
35
+ onChange?: (...args: any[]) => any;
36
+ }, {
37
+ colorObj: {
38
+ [key: string]: any;
39
+ };
40
+ }, {}>;
41
+ export default _default;
@@ -0,0 +1,255 @@
1
+ declare const BkColorPicker: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: {
6
+ transfer?: boolean;
7
+ extCls?: string;
8
+ disabled?: boolean;
9
+ size?: "" | "small" | "large";
10
+ readonly?: boolean;
11
+ modelValue?: string;
12
+ withValidate?: boolean;
13
+ recommend?: boolean | unknown[];
14
+ showValue?: boolean;
15
+ class?: unknown;
16
+ style?: unknown;
17
+ onChange?: (...args: any[]) => any;
18
+ key?: string | number | symbol;
19
+ ref?: import("vue").VNodeRef;
20
+ ref_for?: boolean;
21
+ ref_key?: string;
22
+ onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
23
+ [key: string]: any;
24
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
25
+ [key: string]: any;
26
+ }>) => void)[];
27
+ onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
28
+ [key: string]: any;
29
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
30
+ [key: string]: any;
31
+ }>) => void)[];
32
+ onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
33
+ [key: string]: any;
34
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
35
+ [key: string]: any;
36
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
37
+ [key: string]: any;
38
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
39
+ [key: string]: any;
40
+ }>) => void)[];
41
+ onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
42
+ [key: string]: any;
43
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
44
+ [key: string]: any;
45
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
+ [key: string]: any;
47
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
+ [key: string]: any;
49
+ }>) => void)[];
50
+ onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
51
+ [key: string]: any;
52
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
53
+ [key: string]: any;
54
+ }>) => void)[];
55
+ onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
56
+ [key: string]: any;
57
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
58
+ [key: string]: any;
59
+ }>) => void)[];
60
+ "onUpdate:modelValue"?: (...args: any[]) => any;
61
+ };
62
+ $attrs: {
63
+ [x: string]: unknown;
64
+ };
65
+ $refs: {
66
+ [x: string]: unknown;
67
+ };
68
+ $slots: Readonly<{
69
+ [name: string]: import("vue").Slot<any>;
70
+ }>;
71
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
72
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
73
+ $emit: (event: "change" | "update:modelValue", ...args: any[]) => void;
74
+ $el: any;
75
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
76
+ modelValue: import("vue-types").VueTypeValidableDef<string> & {
77
+ default: string;
78
+ } & {
79
+ default: string;
80
+ };
81
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
82
+ default: boolean;
83
+ } & {
84
+ default: boolean;
85
+ };
86
+ readonly: import("vue-types").VueTypeValidableDef<boolean> & {
87
+ default: boolean;
88
+ } & {
89
+ default: boolean;
90
+ };
91
+ transfer: import("vue-types").VueTypeValidableDef<boolean> & {
92
+ default: boolean;
93
+ } & {
94
+ default: boolean;
95
+ };
96
+ size: import("vue-types").VueTypeDef<"" | "small" | "large"> & {
97
+ default: "" | "small" | "large";
98
+ };
99
+ showValue: import("vue-types").VueTypeValidableDef<boolean> & {
100
+ default: boolean;
101
+ } & {
102
+ default: boolean;
103
+ };
104
+ recommend: import("vue-types").VueTypeDef<boolean | unknown[]> & {
105
+ default: boolean | (() => unknown[]);
106
+ };
107
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
108
+ default: string;
109
+ } & {
110
+ default: string;
111
+ };
112
+ withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
113
+ default: boolean;
114
+ } & {
115
+ default: boolean;
116
+ };
117
+ }>> & {
118
+ onChange?: (...args: any[]) => any;
119
+ "onUpdate:modelValue"?: (...args: any[]) => any;
120
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], string, {
121
+ transfer: boolean;
122
+ extCls: string;
123
+ disabled: boolean;
124
+ size: "" | "small" | "large";
125
+ readonly: boolean;
126
+ modelValue: string;
127
+ withValidate: boolean;
128
+ recommend: boolean | unknown[];
129
+ showValue: boolean;
130
+ }, {}, string, {}> & {
131
+ beforeCreate?: (() => void) | (() => void)[];
132
+ created?: (() => void) | (() => void)[];
133
+ beforeMount?: (() => void) | (() => void)[];
134
+ mounted?: (() => void) | (() => void)[];
135
+ beforeUpdate?: (() => void) | (() => void)[];
136
+ updated?: (() => void) | (() => void)[];
137
+ activated?: (() => void) | (() => void)[];
138
+ deactivated?: (() => void) | (() => void)[];
139
+ beforeDestroy?: (() => void) | (() => void)[];
140
+ beforeUnmount?: (() => void) | (() => void)[];
141
+ destroyed?: (() => void) | (() => void)[];
142
+ unmounted?: (() => void) | (() => void)[];
143
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
144
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
145
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
146
+ };
147
+ $forceUpdate: () => void;
148
+ $nextTick: typeof import("vue").nextTick;
149
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
150
+ } & Readonly<import("vue").ExtractPropTypes<{
151
+ modelValue: import("vue-types").VueTypeValidableDef<string> & {
152
+ default: string;
153
+ } & {
154
+ default: string;
155
+ };
156
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
157
+ default: boolean;
158
+ } & {
159
+ default: boolean;
160
+ };
161
+ readonly: import("vue-types").VueTypeValidableDef<boolean> & {
162
+ default: boolean;
163
+ } & {
164
+ default: boolean;
165
+ };
166
+ transfer: import("vue-types").VueTypeValidableDef<boolean> & {
167
+ default: boolean;
168
+ } & {
169
+ default: boolean;
170
+ };
171
+ size: import("vue-types").VueTypeDef<"" | "small" | "large"> & {
172
+ default: "" | "small" | "large";
173
+ };
174
+ showValue: import("vue-types").VueTypeValidableDef<boolean> & {
175
+ default: boolean;
176
+ } & {
177
+ default: boolean;
178
+ };
179
+ recommend: import("vue-types").VueTypeDef<boolean | unknown[]> & {
180
+ default: boolean | (() => unknown[]);
181
+ };
182
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
183
+ default: string;
184
+ } & {
185
+ default: string;
186
+ };
187
+ withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
188
+ default: boolean;
189
+ } & {
190
+ default: boolean;
191
+ };
192
+ }>> & {
193
+ onChange?: (...args: any[]) => any;
194
+ "onUpdate:modelValue"?: (...args: any[]) => any;
195
+ } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
196
+ __isFragment?: never;
197
+ __isTeleport?: never;
198
+ __isSuspense?: never;
199
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
200
+ modelValue: import("vue-types").VueTypeValidableDef<string> & {
201
+ default: string;
202
+ } & {
203
+ default: string;
204
+ };
205
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
206
+ default: boolean;
207
+ } & {
208
+ default: boolean;
209
+ };
210
+ readonly: import("vue-types").VueTypeValidableDef<boolean> & {
211
+ default: boolean;
212
+ } & {
213
+ default: boolean;
214
+ };
215
+ transfer: import("vue-types").VueTypeValidableDef<boolean> & {
216
+ default: boolean;
217
+ } & {
218
+ default: boolean;
219
+ };
220
+ size: import("vue-types").VueTypeDef<"" | "small" | "large"> & {
221
+ default: "" | "small" | "large";
222
+ };
223
+ showValue: import("vue-types").VueTypeValidableDef<boolean> & {
224
+ default: boolean;
225
+ } & {
226
+ default: boolean;
227
+ };
228
+ recommend: import("vue-types").VueTypeDef<boolean | unknown[]> & {
229
+ default: boolean | (() => unknown[]);
230
+ };
231
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
232
+ default: string;
233
+ } & {
234
+ default: string;
235
+ };
236
+ withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
237
+ default: boolean;
238
+ } & {
239
+ default: boolean;
240
+ };
241
+ }>> & {
242
+ onChange?: (...args: any[]) => any;
243
+ "onUpdate:modelValue"?: (...args: any[]) => any;
244
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", {
245
+ transfer: boolean;
246
+ extCls: string;
247
+ disabled: boolean;
248
+ size: "" | "small" | "large";
249
+ readonly: boolean;
250
+ modelValue: string;
251
+ withValidate: boolean;
252
+ recommend: boolean | unknown[];
253
+ showValue: boolean;
254
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
255
+ export default BkColorPicker;
@@ -0,0 +1 @@
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("vue-types"),require("../config-provider"),require("../directives"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types","../config-provider","../directives","../icon"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("vue-types"),require("../config-provider"),require("../directives"),require("../icon")):t(e["../shared"],e.vue,e["vue-types"],e["../config-provider"],e["../directives"],e["../icon"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n,o,a)=>(()=>{"use strict";var i={2717:e=>{e.exports=n},4061:e=>{e.exports=o},6870:e=>{e.exports=a},4212:t=>{t.exports=e},748:e=>{e.exports=t},210:e=>{e.exports=r}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return i[e](r,r.exports,u),r.exports}u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{u.r(l),u.d(l,{default:()=>fe});var e=u(4212);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var n=u(748);function o(e){return o="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},o(e)}var a=/^\s+/,i=/\s+$/;function c(e,t){if(t=t||{},(e=e||"")instanceof c)return e;if(!(this instanceof c))return new c(e,t);var r=function(e){var t,r,n,c={r:0,g:0,b:0},u=1,l=null,s=null,f=null,d=!1,h=!1;return"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").toLowerCase();var t,r=!1;if(S[e])e=S[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=L.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=L.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=L.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=L.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=L.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=L.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=L.hex8.exec(e))?{r:C(t[1]),g:C(t[2]),b:C(t[3]),a:F(t[4]),format:r?"name":"hex8"}:(t=L.hex6.exec(e))?{r:C(t[1]),g:C(t[2]),b:C(t[3]),format:r?"name":"hex"}:(t=L.hex4.exec(e))?{r:C(t[1]+""+t[1]),g:C(t[2]+""+t[2]),b:C(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:r?"name":"hex8"}:!!(t=L.hex3.exec(e))&&{r:C(t[1]+""+t[1]),g:C(t[2]+""+t[2]),b:C(t[3]+""+t[3]),format:r?"name":"hex"}}(e)),"object"==o(e)&&(E(e.r)&&E(e.g)&&E(e.b)?(t=e.r,r=e.g,n=e.b,c={r:255*V(t,255),g:255*V(r,255),b:255*V(n,255)},d=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):E(e.h)&&E(e.s)&&E(e.v)?(l=R(e.s),s=R(e.v),c=function(e,t,r){e=6*V(e,360),t=V(t,100),r=V(r,100);var n=Math.floor(e),o=e-n,a=r*(1-t),i=r*(1-o*t),c=r*(1-(1-o)*t),u=n%6;return{r:255*[r,i,a,a,c,r][u],g:255*[c,r,r,i,a,a][u],b:255*[a,a,c,r,r,i][u]}}(e.h,l,s),d=!0,h="hsv"):E(e.h)&&E(e.s)&&E(e.l)&&(l=R(e.s),f=R(e.l),c=function(e,t,r){var n,o,a;function i(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=V(e,360),t=V(t,100),r=V(r,100),0===t)n=o=a=r;else{var c=r<.5?r*(1+t):r+t-r*t,u=2*r-c;n=i(u,c,e+1/3),o=i(u,c,e),a=i(u,c,e-1/3)}return{r:255*n,g:255*o,b:255*a}}(e.h,l,f),d=!0,h="hsl"),e.hasOwnProperty("a")&&(u=e.a)),u=j(u),{ok:d,format:e.format||h,r:Math.min(255,Math.max(c.r,0)),g:Math.min(255,Math.max(c.g,0)),b:Math.min(255,Math.max(c.b,0)),a:u}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}function s(e,t,r){e=V(e,255),t=V(t,255),r=V(r,255);var n,o,a=Math.max(e,t,r),i=Math.min(e,t,r),c=(a+i)/2;if(a==i)n=o=0;else{var u=a-i;switch(o=c>.5?u/(2-a-i):u/(a+i),a){case e:n=(t-r)/u+(t<r?6:0);break;case t:n=(r-e)/u+2;break;case r:n=(e-t)/u+4}n/=6}return{h:n,s:o,l:c}}function f(e,t,r){e=V(e,255),t=V(t,255),r=V(r,255);var n,o,a=Math.max(e,t,r),i=Math.min(e,t,r),c=a,u=a-i;if(o=0===a?0:u/a,a==i)n=0;else{switch(a){case e:n=(t-r)/u+(t<r?6:0);break;case t:n=(r-e)/u+2;break;case r:n=(e-t)/u+4}n/=6}return{h:n,s:o,v:c}}function d(e,t,r,n){var o=[P(Math.round(e).toString(16)),P(Math.round(t).toString(16)),P(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function h(e,t,r,n){return[P(T(n)),P(Math.round(e).toString(16)),P(Math.round(t).toString(16)),P(Math.round(r).toString(16))].join("")}function p(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.s-=t/100,r.s=O(r.s),c(r)}function v(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.s+=t/100,r.s=O(r.s),c(r)}function g(e){return c(e).desaturate(100)}function b(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.l+=t/100,r.l=O(r.l),c(r)}function m(e,t){t=0===t?0:t||10;var r=c(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-t/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-t/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-t/100*255))),c(r)}function y(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.l-=t/100,r.l=O(r.l),c(r)}function k(e,t){var r=c(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,c(r)}function w(e){var t=c(e).toHsl();return t.h=(t.h+180)%360,c(t)}function x(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=c(e).toHsl(),n=[c(e)],o=360/t,a=1;a<t;a++)n.push(c({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function _(e){var t=c(e).toHsl(),r=t.h;return[c(e),c({h:(r+72)%360,s:t.s,l:t.l}),c({h:(r+216)%360,s:t.s,l:t.l})]}function M(e,t,r){t=t||6,r=r||30;var n=c(e).toHsl(),o=360/r,a=[c(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(c(n));return a}function A(e,t){t=t||6;for(var r=c(e).toHsv(),n=r.h,o=r.s,a=r.v,i=[],u=1/t;t--;)i.push(c({h:n,s:o,v:a})),a=(a+u)%1;return i}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=j(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=s(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=s(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return d(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,o){var a=[P(Math.round(e).toString(16)),P(Math.round(t).toString(16)),P(Math.round(r).toString(16)),P(T(n))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*V(this._r,255))+"%",g:Math.round(100*V(this._g,255))+"%",b:Math.round(100*V(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*V(this._r,255))+"%, "+Math.round(100*V(this._g,255))+"%, "+Math.round(100*V(this._b,255))+"%)":"rgba("+Math.round(100*V(this._r,255))+"%, "+Math.round(100*V(this._g,255))+"%, "+Math.round(100*V(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(N[d(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+h(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var o=c(e);r="#"+h(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(_,arguments)},triad:function(){return this._applyCombination(x,[3])},tetrad:function(){return this._applyCombination(x,[4])}},c.fromRatio=function(e,t){if("object"==o(e)){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:R(e[n]));e=r}return c(e,t)},c.equals=function(e,t){return!(!e||!t)&&c(e).toRgbString()==c(t).toRgbString()},c.random=function(){return c.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},c.mix=function(e,t,r){r=0===r?0:r||50;var n=c(e).toRgb(),o=c(t).toRgb(),a=r/100;return c({r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a})},c.readability=function(e,t){var r=c(e),n=c(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},c.isReadable=function(e,t,r){var n,o,a,i,u,l=c.readability(e,t);switch(o=!1,(a=r,"AA"!==(i=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(u=(a.size||"small").toLowerCase())&&"large"!==u&&(u="small"),n={level:i,size:u}).level+n.size){case"AAsmall":case"AAAlarge":o=l>=4.5;break;case"AAlarge":o=l>=3;break;case"AAAsmall":o=l>=7}return o},c.mostReadable=function(e,t,r){var n,o,a,i,u=null,l=0;o=(r=r||{}).includeFallbackColors,a=r.level,i=r.size;for(var s=0;s<t.length;s++)(n=c.readability(e,t[s]))>l&&(l=n,u=c(t[s]));return c.isReadable(e,u,{level:a,size:i})||!o?u:(r.includeFallbackColors=!1,c.mostReadable(e,["#fff","#000"],r))};var S=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=c.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(S);function j(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function V(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function O(e){return Math.min(1,Math.max(0,e))}function C(e){return parseInt(e,16)}function P(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function T(e){return Math.round(255*parseFloat(e)).toString(16)}function F(e){return C(e)/255}var H,q,D,L=(q="[\\s|\\(]+("+(H="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",D="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+q),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+q),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+q),hsva:new RegExp("hsva"+D),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function E(e){return!!L.CSS_UNIT.exec(e)}var I=u(210),B=u(2717),U=u(4061),z=u(6870),K={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 W=(0,n.defineComponent)({props:K,emits:["changeVisible"],setup:function(t,r){var o=r.emit,a=Object.create(null),i=(0,n.ref)(null);(0,n.onMounted)((function(){u()})),(0,n.onBeforeUnmount)((function(){c()}));var c=function(){if(a&&0!==Object.keys(a).length){var e=a;e.isShow&&e.hide(),e.destroy(),a=null,o("changeVisible",!1)}},u=function(){a&&0!==Object.keys(a).length?(0,n.nextTick)((function(){a.update()})):(0,n.nextTick)((function(){a=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]}}]})}))},l=(0,n.computed)((function(){var r={};return t.appendToBody&&(r["z-index"]=1060+e.bkZIndexManager.getModalNextIndex()),r})),s=(0,n.reactive)({styles:l});return Object.assign(Object.assign({},(0,n.toRefs)(s)),{refContentRef:i,forceUpdate:function(){var e;a&&(null===(e=null==a?void 0:a.forceUpdate)||void 0===e||e.call(a))},updateDropdown:u,destoryDropdown:c})},render:function(){var t,r,o;return(0,n.createVNode)("div",{ref:"refContentRef",class:[(0,e.resolveClassName)("date-picker-dropdown"),this.className,this.extPopoverCls],style:this.styles,onClick:this.onClick},[null!==(o=null===(r=(t=this.$slots).default)||void 0===r?void 0:r.call(t))&&void 0!==o?o:""])}});var X={info:e.PropTypes.object.isRequired};const $=(0,n.defineComponent)({props:X,emits:["tab","input"],setup:function(t,r){var o=r.emit,a=function(e){"a"===t.info.key&&o("tab",e)},i=function(e){var r=t.info.key,n=e.target.value;o("input",r,n)},c=(0,B.usePrefix)().resolveClassName,u=(0,n.computed)((function(){return(0,e.classes)({error:t.info.error},"".concat(c("color-picker-input-value")))}));return function(){return(0,n.createVNode)("div",{class:"".concat(c("color-picker-input-part"))},[(0,n.createVNode)("input",{type:"HEX"===t.info.name?"text":"number",class:u.value,value:t.info.value,onKeydown:a,onInput:i},null),(0,n.createVNode)("span",{class:"".concat(c("color-picker-input-text"))},[t.info.name])])}}});var G={colorObj:e.PropTypes.object.isRequired};const Y=(0,n.defineComponent)({name:"ColorPicker",props:G,emits:["change","tab"],setup:function(e,t){var r=t.emit,o=(0,n.reactive)({key:"hex",name:"HEX",value:e.colorObj.hex,error:!1}),a=(0,n.reactive)({key:"r",name:"R",value:e.colorObj.rgba.r.toString(),error:!1}),i=(0,n.reactive)({key:"g",name:"G",value:e.colorObj.rgba.g.toString(),error:!1}),u=(0,n.reactive)({key:"b",name:"B",value:e.colorObj.rgba.b.toString(),error:!1}),l=(0,n.reactive)({key:"a",name:"Alpha",value:e.colorObj.rgba.a.toString(),error:!1});(0,n.watch)((function(){return e.colorObj}),(function(e){c(e.hex).toString()!==c(o.value).toString()&&(o.value=e.hex),a.value=e.rgba.r.toString(),i.value=e.rgba.g.toString(),u.value=e.rgba.b.toString(),l.value=e.rgba.a.toString(),d()}),{deep:!0});var s=function(e){r("tab",e)},f=function(e,t){if({r:a,g:i,b:u,a:l,hex:o}[e].value=t,d()){var n="hex"===e?o.value:"rgba(".concat(a.value,", ").concat(i.value,", ").concat(u.value,", ").concat(l.value,")");r("change",n)}},d=function(){var e=!0;!o.value.startsWith("#")||4!==o.value.length&&7!==o.value.length||o.value.slice(1).match(/[^0-9a-fA-F]/)?(o.error=!0,e=!1):o.error=!1,""!==l.value&&l.value>=0&&l.value<=1?l.error=!1:(l.error=!0,e=!1);for(var t=0,r=[a,i,u];t<r.length;t++){var n=r[t],c=n.value;""!==c&&c>=0&&c<=255?n.error=!1:(n.error=!0,e=!1)}return e},h=(0,B.usePrefix)().resolveClassName;return function(){return(0,n.createVNode)("div",{class:"".concat(h("color-picker-input"))},[(0,n.createVNode)("div",{class:"".concat(h("color-picker-input-hex"))},[(0,n.createVNode)($,{info:o,onInput:f},null)]),(0,n.createVNode)("div",{class:"".concat(h("color-picker-input-rgba"))},[(0,n.createVNode)($,{info:a,onInput:f},null),(0,n.createVNode)($,{info:i,onInput:f},null),(0,n.createVNode)($,{info:u,onInput:f},null),(0,n.createVNode)($,{info:l,onInput:f,onTab:s},null)])])}}});var J=function(e){var t=e;""===e&&(t="#FFFFFF");var r=c(e),n=r.toHsl(),o=r.toHsv();return 0===n.s&&(n.h=t.h||0,o.h=t.h||0),o.v<.0164&&(o.h=t.h||0,o.s=t.s||0),n.l<.01&&(n.h=t.h||0,n.s=t.s||0),{hsl:n,hsv:o,hex:r.toHexString().toUpperCase(),rgba:r.toRgb()}},Z=function(e,t,r){return e<t?t:e>r?r:e},Q=function(e,t){return e.touches?e.touches[0][t]:0},ee=function(e){var t=e.r,r=e.g,n=e.b,o=e.a;return"rgba(".concat([t,r,n,o].join(","),")")},te={colorObj:e.PropTypes.object.isRequired};const re=(0,n.defineComponent)({name:"ColorPicker",props:te,emits:["change"],setup:function(e,t){var r=t.emit,o=(0,n.ref)(null),a=(0,n.computed)((function(){return{left:"".concat(e.colorObj.hsv.h/360*100,"%")}})),i=function(t){var r=o.value.clientWidth,n=e.colorObj.hsv.h/360*r;switch(t.code){case"ArrowLeft":t.preventDefault(),n=Z(n-2,0,r);break;case"ArrowRight":t.preventDefault(),n=Z(n+2,0,r);break;case"ArrowUp":t.preventDefault(),n=Z(n-10,0,r);break;case"ArrowDown":t.preventDefault(),n=Z(n+10,0,r);break;default:return}u(null,n)},c=function e(){window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",e)},u=function(e,t){var r=o.value.clientWidth,n=void 0!==t?t:l(e);s(n/r)},l=function(e){var t=o.value.getBoundingClientRect().left+window.pageXOffset,r=e.pageX||Q(e,"PageX");return Z(r-t,0,o.value.clientWidth)},s=function(t){var n=e.colorObj.hsl,o=n.h,a=n.s,i=n.l,c=n.a,u=360*t;o!==u&&r("change",{h:u,s:a,l:i,a:c})},f=(0,B.usePrefix)().resolveClassName;return function(){return(0,n.createVNode)("div",{ref:o,tabindex:"0",class:"".concat(f("color-picker-hue")),onKeydown:i,onMousedown:function(e){e.stopPropagation(),e.preventDefault(),function(e){o.value.focus(),u(e),window.addEventListener("mousemove",u,{passive:!0}),window.addEventListener("mouseup",c)}(e)}},[(0,n.createVNode)("div",{class:"".concat(f("color-picker-hue-pointer")),style:a.value},[(0,n.createVNode)("div",{class:"".concat(f("color-picker-hue-rectangle"))},null)])])}}});var ne={colorObj:e.PropTypes.object.isRequired,recommend:e.PropTypes.oneOfType([e.PropTypes.array.def((function(){return[]})),e.PropTypes.bool.def(!0)]).isRequired};const oe=(0,n.defineComponent)({props:ne,emits:["change","tab"],setup:function(t,o){var a=o.emit,i=(0,n.ref)(!1),u=(0,n.ref)(-1),l=(0,n.ref)(null);(0,n.watch)((function(){return t.colorObj}),(function(){u.value=-1,l.value=null}),{deep:!0});var s=(0,n.computed)((function(){return v(t.recommend)})),f=(0,B.usePrefix)().resolveClassName,d=function(t,n){var o;return(0,e.classes)((r(o={},"".concat(f("color-picker-empty")),""===t),r(o,"".concat(f("color-picker-recommend-selected-color")),i.value&&u.value===n),o),"".concat(f("color-picker-recommend-color")))},h=function(e){if("Tab"===e.code)a("tab",e);else{var t=0,r=s.value.length-1;switch(e.code){case"ArrowLeft":e.preventDefault(),t=Z(u.value-1,0,r);break;case"ArrowRight":e.preventDefault(),t=Z(u.value+1,0,r);break;case"ArrowUp":e.preventDefault(),t=Z(u.value-10,0,r);break;case"ArrowDown":e.preventDefault(),t=Z(u.value+10,0,r);break;default:return}p(t)}},p=function(e){var t=s.value[e];a("change",t),(0,n.nextTick)((function(){u.value=e,l.value=t}))},v=function(e){return!0===e?["","#ff4500","#ff8c00","#ffd700","#90ee90","#ddffff","#00ced1","#3a84ff","#a933f5","#db7093","#000000","#494949","#9B9B9B","#ffffff"]:Array.isArray(e)?e.map((function(e){return c(e).isValid()?e:""})):void 0};return function(){return(0,n.createVNode)("div",{tabindex:"0",class:"".concat(f("color-picker-recommend")," "),onFocus:function(){return i.value=!0},onBlur:function(){return i.value=!1},onKeydown:h},[s.value.map((function(e,t){return(0,n.createVNode)("div",{style:"background: ".concat(e||"#fff"),class:d(e,t),onClick:function(){return p(t)}},[u.value===t?(0,n.createVNode)("div",{class:"".concat(f("color-picker-pointer"))},[(0,n.createVNode)("div",{class:"".concat(f("color-picker-circle"))},null)]):void 0])}))])}}});var ae={colorObj:e.PropTypes.object.isRequired};const ie=(0,n.defineComponent)({props:ae,emits:["change"],setup:function(e,t){var r=t.emit,o=(0,n.ref)(null),a=(0,n.computed)((function(){return{background:"hsl(".concat(e.colorObj.hsv.h,", 100%, 50%)")}})),i=(0,n.computed)((function(){return{top:"".concat(100*(1-e.colorObj.hsv.v),"%"),left:"".concat(100*e.colorObj.hsv.s,"%")}})),c=function e(){window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",e)},u=function(t){var r=o.value,n=r.clientWidth,a=r.clientHeight,i=e.colorObj.hsv.s*n,c=(1-e.colorObj.hsv.v)*a;switch(t.code){case"ArrowLeft":t.preventDefault(),i=Z(i-10,0,n);break;case"ArrowRight":t.preventDefault(),i=Z(i+10,0,n);break;case"ArrowUp":t.preventDefault(),c=Z(c-10,0,a);break;case"ArrowDown":t.preventDefault(),c=Z(c+10,0,a);break;default:return}l(null,i,c)},l=function(t,r,n){var a=o.value,i=a.clientWidth,c=a.clientHeight,u=(void 0!==r?r:s(t))/i,l=1-(void 0!==n?n:f(t))/c;d(e.colorObj.hsv.h,u,l,e.colorObj.hsv.a)},s=function(e){var t=o.value.getBoundingClientRect().left+window.pageXOffset,r=e.pageX||Q(e,"PageX");return Z(r-t,0,o.value.clientWidth)},f=function(e){var t=o.value.getBoundingClientRect().top+window.pageYOffset,r=e.pageY||Q(e,"PageY");return Z(r-t,0,o.value.clientHeight)},d=function(e,t,n,o){r("change",{h:e,s:t,v:n,a:o})},h=(0,B.usePrefix)().resolveClassName;return function(){return(0,n.createVNode)("div",{ref:o,tabindex:"0",class:"".concat(h("color-picker-saturation")),style:a.value,onKeydown:u,onMousedown:function(e){e.stopPropagation(),function(e){o.value.focus(),l(e),window.addEventListener("mousemove",l,{passive:!0}),window.addEventListener("mouseup",c)}(e)}},[(0,n.createVNode)("div",{class:"".concat(h("color-picker-saturation-white"))},null),(0,n.createVNode)("div",{class:"".concat(h("color-picker-saturation-black"))},null),(0,n.createVNode)("div",{class:"".concat(h("color-picker-pointer")),style:i.value},[(0,n.createVNode)("div",{class:"".concat(h("color-picker-circle"))},null)])])}}});var ce;!function(e){e.UNKNOWN="",e.SMALL="small",e.LARGE="large"}(ce||(ce={}));var ue={modelValue:e.PropTypes.string.def(""),disabled:e.PropTypes.bool.def(!1),readonly:e.PropTypes.bool.def(!1),transfer:e.PropTypes.bool.def(!1),size:(0,I.toType)("colorPickSize",{}).def(ce.UNKNOWN),showValue:e.PropTypes.bool.def(!0),recommend:e.PropTypes.oneOfType([e.PropTypes.array.def((function(){return[]})),e.PropTypes.bool.def(!0)]).def(!0),extCls:e.PropTypes.string.def(""),withValidate:e.PropTypes.bool.def(!0)},le=J("#FFFFFF");const se=(0,n.defineComponent)({name:"ColorPicker",directives:{clickoutside:U.clickoutside},props:ue,emits:["update:modelValue","change"],setup:function(t,o){var a=o.emit,i=(0,e.useFormItem)(),u=(0,n.ref)(!1),l=(0,n.ref)(""),s=(0,n.reactive)(JSON.parse(JSON.stringify(le))),f=(0,n.ref)(null),d=(0,n.ref)(null),h=(0,n.ref)(null),p=(0,B.usePrefix)().resolveClassName,v=(0,n.computed)((function(){var n;return(0,e.classes)((r(n={},"".concat(p("color-picker-".concat(t.size))),t.size),r(n,"".concat(p("color-picker-show-dropdown")),u.value),r(n,"".concat(p("color-picker-show-value")),t.showValue),r(n,"".concat(p("color-picker-disabled")),t.disabled||t.readonly),n),"".concat(p("color-picker")," ").concat(t.extCls))})),g=(0,n.computed)((function(){return Boolean(!0===t.recommend||Array.isArray(t.recommend)&&t.recommend.length)}));(0,n.onBeforeMount)((function(){M({isCreated:!0})})),(0,n.watch)((function(){return t.modelValue}),(function(){var e;M(),t.withValidate&&(null===(e=null==i?void 0:i.validate)||void 0===e||e.call(i,"change"))}));var b=function(e){"Enter"===e.code||"NumpadEnter"===e.code?y():"Escape"===e.code&&_()},m=function(e){t.transfer&&b(e)},y=function(){t.disabled||t.readonly||(u.value?_():x())},k=function(e){g.value||(e.preventDefault(),d.value.$el.focus())},w=function(e){e.preventDefault(),d.value.$el.focus()},x=function(){var e;u.value=!0,null===(e=f.value)||void 0===e||e.updateDropdown(),setTimeout((function(){f.value.$el.querySelector(".".concat(p("color-picker-input-hex")," .").concat(p("color-picker-input-value"))).select()}),100)},_=function(){var e;u.value&&((0,n.nextTick)((function(){return h.value.focus()})),u.value=!1,null===(e=f.value)||void 0===e||e.destoryDropdown(),M())},M=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).isCreated,r=void 0!==e&&e;if(""!==t.modelValue){var n=J(t.modelValue),o=1===n.rgba.a?n.hex:ee(n.rgba);if(o!==l.value){var i=c(t.modelValue).isValid();r?i?(l.value=o.toLowerCase()===t.modelValue.toLowerCase()?t.modelValue:o,Object.assign(s,n)):(Object.assign(s,le),a("change","")):i?o.toLowerCase()!==l.value.toLowerCase()&&(Object.assign(s,n),l.value=o):(l.value="",Object.assign(s,le))}}else""!==l.value&&(l.value="",Object.assign(s,le),a("update:modelValue",l.value))},A=function(e){if(""===e)return l.value="",Object.assign(s,le),a("update:modelValue",""),void a("change","");var t=J(e),r=1===t.rgba.a?t.hex:ee(t.rgba);l.value=r,Object.assign(s,t),a("update:modelValue",l.value),a("change",r)},S=function(){u.value=!1};return function(){return(0,n.withDirectives)((0,n.createVNode)("div",{ref:h,tabindex:"0",class:v.value,onKeydown:b,onClick:y},[(0,n.createVNode)("div",{class:"".concat(p("color-picker-color"))},[(0,n.createVNode)("span",{class:"".concat(p("color-picker-color-square")," ").concat(!l.value&&"".concat(p("color-picker-empty"))),style:"background: ".concat(l.value||"#FFF")},null)]),t.showValue?(0,n.createVNode)("div",{class:"".concat(p("color-picker-text"))},[(0,n.createVNode)("span",null,[l.value])]):void 0,(0,n.createVNode)("div",{class:"".concat(p("color-picker-icon"))},[(0,n.createVNode)(z.AngleUp,{class:"icon-angle-down"},null)]),(0,n.createVNode)(n.Transition,{name:"bk-fade-down-transition"},{default:function(){return[(0,n.withDirectives)((0,n.createVNode)(W,{ref:f,triggerRef:h.value},{default:function(){return[(0,n.createVNode)("div",{class:"".concat(p("color-dropdown-container"))},[(0,n.createVNode)("div",{class:"".concat(p("color-picker-dropdown")),onClick:function(e){e.stopPropagation()},onMousedown:function(e){e.stopPropagation()},onKeydown:m},[(0,n.createVNode)(ie,{ref:d,colorObj:s,onChange:A},null),(0,n.createVNode)(re,{colorObj:s,onChange:A},null),(0,n.createVNode)(Y,{colorObj:s,onTab:k,onChange:A},null),g.value?(0,n.createVNode)("div",{class:"".concat(p("color-picker-recommend-container"))},[(0,n.createVNode)(oe,{colorObj:s,recommend:t.recommend,onTab:w,onChange:A},null)]):void 0])])]}}),[[n.vShow,u.value]])]}})]),[[(0,n.resolveDirective)("clickoutside"),S]])}}}),fe=(0,e.withInstall)(se)})(),l})()));
@@ -0,0 +1,37 @@
1
+ /**
2
+ * 根据饱和度面板、色值面板或普通色值标准化颜色信息
3
+ * @param {String|Object} colorParam - 色值信息
4
+ * @param {String} colorParam.h - 色相
5
+ * @param {String} colorParam.s - 饱和度
6
+ * @param {String} [colorParam.l] - 亮度
7
+ * @param {String} [colorParam.v] - 明度
8
+ * @param {String} colorParam.a - 透明度
9
+ * @returns {Object} - 转化后的色值对象
10
+ */
11
+ export declare const formatColor: (colorParam: any) => {
12
+ hsl: any;
13
+ hsv: any;
14
+ hex: any;
15
+ rgba: any;
16
+ };
17
+ /**
18
+ * 返回指定闭区间数值
19
+ * @param {Number} value
20
+ * @param {Number} min
21
+ * @param {Number} max
22
+ * @returns {Number}
23
+ */
24
+ export declare const clamp: (value: number, min: number, max: number) => number;
25
+ /**
26
+ * 移动端获取事件位置
27
+ * @param {Object} e
28
+ * @param {String} prop
29
+ * @returns {Number}
30
+ */
31
+ export declare const getTouches: (e: any, prop: string) => any;
32
+ /**
33
+ * 转化 rgba 色值字符串
34
+ * @param {Object} rgba
35
+ * @returns {String}
36
+ */
37
+ export declare const toRGBAString: (rgba: any) => string;
@@ -7,6 +7,7 @@ export { default as Breadcrumb } from './breadcrumb';
7
7
  export { default as Button } from './button';
8
8
  export { default as Card } from './card';
9
9
  export { default as Checkbox } from './checkbox';
10
+ export type { CollapseProps, CollapsePanelProps } from './collapse';
10
11
  export { default as Collapse } from './collapse';
11
12
  export { default as Dialog } from './dialog';
12
13
  export { default as Exception } from './exception';
@@ -25,12 +26,15 @@ export { default as Select } from './select';
25
26
  export { default as Sideslider } from './sideslider';
26
27
  export { default as Steps } from './steps';
27
28
  export { default as Switcher } from './switcher';
29
+ export type { TableSettings, TableIColumn, TableProps, TableColumnProps } from './table';
28
30
  export { default as Table } from './table';
29
31
  export { default as Tag } from './tag';
30
32
  export { default as TagInput } from './tag-input';
31
33
  export { default as Divider } from './divider';
34
+ export type { TabProps, TabPanelProps } from './tab';
32
35
  export { default as Tab } from './tab';
33
36
  export { default as Message } from './message';
37
+ export { default as InfoBox } from './info-box';
34
38
  export { default as Notify } from './notify';
35
39
  export { default as Menu } from './menu';
36
40
  export { default as Navigation } from './navigation';
@@ -48,3 +52,12 @@ export { default as Slider } from './slider';
48
52
  export { default as ResizeLayout } from './resize-layout';
49
53
  export { default as TimeLine } from './timeline';
50
54
  export { default as Process } from './process';
55
+ export { default as Upload } from './upload';
56
+ export { default as CodeDiff } from './code-diff';
57
+ export { default as ColorPicker } from './color-picker';
58
+ export { default as TimePicker } from './time-picker';
59
+ export { default as SearchSelect } from './search-select';
60
+ export { default as OverflowTitle } from './overflow-title';
61
+ export { default as $bkPopover } from './plugin-popover';
62
+ export { default as ConfigProvider } from './config-provider';
63
+ export { default as PopConfirm } from './pop-confirm';