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

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 (718) hide show
  1. package/License.txt +14 -0
  2. package/dist/index.cjs.js +161 -36
  3. package/dist/index.esm.js +32306 -13036
  4. package/dist/index.umd.js +161 -36
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -0
  7. package/lib/affix/affix.css +3 -0
  8. package/lib/affix/affix.d.ts +47 -0
  9. package/lib/affix/affix.less +5 -0
  10. package/lib/affix/affix.variable.css +123 -0
  11. package/lib/affix/index.d.ts +143 -0
  12. package/lib/affix/index.js +285 -0
  13. package/lib/alert/alert.css +81 -0
  14. package/lib/alert/alert.d.ts +62 -0
  15. package/lib/alert/alert.less +119 -0
  16. package/lib/alert/alert.variable.css +201 -0
  17. package/lib/alert/index.d.ts +180 -0
  18. package/lib/alert/index.js +183 -0
  19. package/lib/animate-number/animate-number.d.ts +27 -0
  20. package/lib/animate-number/index.d.ts +97 -0
  21. package/lib/animate-number/index.js +162 -0
  22. package/lib/backtop/backtop.css +50 -0
  23. package/lib/backtop/backtop.d.ts +60 -0
  24. package/lib/backtop/backtop.less +26 -0
  25. package/lib/backtop/backtop.variable.css +170 -0
  26. package/lib/backtop/index.d.ts +166 -0
  27. package/lib/backtop/index.js +188 -0
  28. package/lib/badge/badge.css +120 -0
  29. package/lib/badge/badge.d.ts +112 -0
  30. package/lib/badge/badge.less +135 -0
  31. package/lib/badge/badge.variable.css +240 -0
  32. package/lib/badge/index.d.ts +267 -0
  33. package/lib/badge/index.js +210 -0
  34. package/lib/breadcrumb/breadcrumb-item.d.ts +38 -0
  35. package/lib/breadcrumb/breadcrumb.css +119 -0
  36. package/lib/breadcrumb/breadcrumb.d.ts +54 -0
  37. package/lib/breadcrumb/breadcrumb.less +65 -0
  38. package/lib/breadcrumb/breadcrumb.variable.css +239 -0
  39. package/lib/breadcrumb/index.d.ts +196 -0
  40. package/lib/breadcrumb/index.js +263 -0
  41. package/lib/breadcrumb/props.d.ts +4 -0
  42. package/lib/button/button-group.d.ts +6 -0
  43. package/lib/button/button.css +300 -0
  44. package/lib/button/button.d.ts +163 -0
  45. package/lib/button/button.less +225 -0
  46. package/lib/button/button.variable.css +420 -0
  47. package/lib/button/index.d.ts +256 -0
  48. package/lib/button/index.js +292 -0
  49. package/lib/card/card.css +158 -0
  50. package/lib/card/card.d.ts +110 -0
  51. package/lib/card/card.less +92 -0
  52. package/lib/card/card.variable.css +278 -0
  53. package/lib/card/index.d.ts +283 -0
  54. package/lib/card/index.js +241 -0
  55. package/lib/cascader/cascader-panel.d.ts +100 -0
  56. package/lib/cascader/cascader.css +173 -0
  57. package/lib/cascader/cascader.d.ts +303 -0
  58. package/lib/cascader/cascader.less +196 -0
  59. package/lib/cascader/cascader.variable.css +293 -0
  60. package/lib/cascader/index.d.ts +868 -0
  61. package/lib/cascader/index.js +2094 -0
  62. package/lib/cascader/interface.d.ts +51 -0
  63. package/lib/cascader/node.d.ts +31 -0
  64. package/lib/cascader/store.d.ts +23 -0
  65. package/lib/checkbox/checkbox-group.d.ts +64 -0
  66. package/lib/checkbox/checkbox.css +100 -0
  67. package/lib/checkbox/checkbox.d.ts +126 -0
  68. package/lib/checkbox/checkbox.less +128 -0
  69. package/lib/checkbox/checkbox.variable.css +220 -0
  70. package/lib/checkbox/common.d.ts +14 -0
  71. package/lib/checkbox/index.d.ts +293 -0
  72. package/lib/checkbox/index.js +509 -0
  73. package/lib/checkbox/type.d.ts +15 -0
  74. package/lib/code-diff/code-diff.css +206 -0
  75. package/lib/code-diff/code-diff.d.ts +80 -0
  76. package/lib/code-diff/code-diff.less +273 -0
  77. package/lib/code-diff/code-diff.variable.css +326 -0
  78. package/lib/code-diff/index.d.ts +154 -0
  79. package/lib/code-diff/index.js +5478 -0
  80. package/lib/collapse/collapse-panel.d.ts +67 -0
  81. package/lib/collapse/collapse.css +46 -0
  82. package/lib/collapse/collapse.d.ts +65 -0
  83. package/lib/collapse/collapse.less +62 -0
  84. package/lib/collapse/collapse.variable.css +166 -0
  85. package/lib/collapse/index.d.ts +258 -0
  86. package/lib/collapse/index.js +632 -0
  87. package/lib/collapse/props.d.ts +79 -0
  88. package/lib/collapse/utils.d.ts +11 -0
  89. package/lib/color-picker/color-picker.css +275 -0
  90. package/lib/color-picker/color-picker.d.ts +144 -0
  91. package/lib/color-picker/color-picker.less +325 -0
  92. package/lib/color-picker/color-picker.variable.css +395 -0
  93. package/lib/color-picker/components/color-input.d.ts +42 -0
  94. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  95. package/lib/color-picker/components/input-container.d.ts +42 -0
  96. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  97. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  98. package/lib/color-picker/index.d.ts +254 -0
  99. package/lib/color-picker/index.js +2764 -0
  100. package/lib/color-picker/utils.d.ts +37 -0
  101. package/lib/components.d.ts +59 -0
  102. package/lib/components.js +522 -0
  103. package/lib/container/col.d.ts +51 -0
  104. package/lib/container/container.css +91 -0
  105. package/lib/container/container.d.ts +83 -0
  106. package/lib/container/container.less +20 -0
  107. package/lib/container/container.variable.css +211 -0
  108. package/lib/container/index.d.ts +223 -0
  109. package/lib/container/index.js +308 -0
  110. package/lib/container/row.d.ts +4 -0
  111. package/lib/date-picker/base/confirm.d.ts +74 -0
  112. package/lib/date-picker/base/date-table.d.ts +96 -0
  113. package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
  114. package/lib/date-picker/base/time-spinner.d.ts +151 -0
  115. package/lib/date-picker/date-picker.css +434 -0
  116. package/lib/date-picker/date-picker.d.ts +323 -0
  117. package/lib/date-picker/date-picker.less +558 -0
  118. package/lib/date-picker/date-picker.variable.css +554 -0
  119. package/lib/date-picker/fecha.d.ts +6 -0
  120. package/lib/date-picker/index.d.ts +780 -0
  121. package/lib/date-picker/index.js +5500 -0
  122. package/lib/date-picker/interface.d.ts +32 -0
  123. package/lib/date-picker/panel/date-range.d.ts +309 -0
  124. package/lib/date-picker/panel/date.d.ts +206 -0
  125. package/lib/date-picker/panel/time-range.d.ts +489 -0
  126. package/lib/date-picker/panel/time.d.ts +448 -0
  127. package/lib/date-picker/props.d.ts +161 -0
  128. package/lib/date-picker/time-picker.d.ts +381 -0
  129. package/lib/date-picker/utils.d.ts +117 -0
  130. package/lib/dialog/dialog.css +190 -0
  131. package/lib/dialog/dialog.d.ts +311 -0
  132. package/lib/dialog/dialog.less +153 -0
  133. package/lib/dialog/dialog.variable.css +310 -0
  134. package/lib/dialog/index.d.ts +722 -0
  135. package/lib/dialog/index.js +455 -0
  136. package/lib/dialog/props.d.ts +130 -0
  137. package/lib/directives/clickoutside.d.ts +3 -0
  138. package/lib/directives/ellipsis.d.ts +7 -0
  139. package/lib/directives/index.d.ts +4 -0
  140. package/lib/directives/index.js +1374 -0
  141. package/lib/directives/mousewheel.d.ts +3 -0
  142. package/lib/directives/tooltips.d.ts +18 -0
  143. package/lib/dist.index.js +81 -0
  144. package/lib/divider/divider.css +38 -0
  145. package/lib/divider/divider.d.ts +48 -0
  146. package/lib/divider/divider.less +53 -0
  147. package/lib/divider/divider.variable.css +158 -0
  148. package/lib/divider/index.d.ts +142 -0
  149. package/lib/divider/index.js +444 -0
  150. package/lib/divider/props.d.ts +21 -0
  151. package/lib/dropdown/dropdown-item.d.ts +19 -0
  152. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  153. package/lib/dropdown/dropdown.css +49 -0
  154. package/lib/dropdown/dropdown.d.ts +93 -0
  155. package/lib/dropdown/dropdown.less +67 -0
  156. package/lib/dropdown/dropdown.variable.css +169 -0
  157. package/lib/dropdown/index.d.ts +256 -0
  158. package/lib/dropdown/index.js +332 -0
  159. package/lib/exception/exception.css +58 -0
  160. package/lib/exception/exception.d.ts +33 -0
  161. package/lib/exception/exception.less +76 -0
  162. package/lib/exception/exception.variable.css +178 -0
  163. package/lib/exception/index.d.ts +111 -0
  164. package/lib/exception/index.js +357 -0
  165. package/lib/exception/typings/index.d.ts +4 -0
  166. package/lib/fixed-navbar/fixed-navbar.css +42 -0
  167. package/lib/fixed-navbar/fixed-navbar.d.ts +48 -0
  168. package/lib/fixed-navbar/fixed-navbar.less +53 -0
  169. package/lib/fixed-navbar/fixed-navbar.variable.css +162 -0
  170. package/lib/fixed-navbar/index.d.ts +147 -0
  171. package/lib/fixed-navbar/index.js +150 -0
  172. package/lib/form/compose-form-item.d.ts +16 -0
  173. package/lib/form/form-item.d.ts +160 -0
  174. package/lib/form/form.css +137 -0
  175. package/lib/form/form.d.ts +88 -0
  176. package/lib/form/form.less +170 -0
  177. package/lib/form/form.variable.css +257 -0
  178. package/lib/form/index.d.ts +319 -0
  179. package/lib/form/index.js +900 -0
  180. package/lib/form/type.d.ts +22 -0
  181. package/lib/form/utils.d.ts +2 -0
  182. package/lib/form/validator.d.ts +9 -0
  183. package/lib/icon/angle-double-down-line.d.ts +4 -0
  184. package/lib/icon/angle-double-down-line.js +366 -0
  185. package/lib/icon/angle-double-left-line.d.ts +4 -0
  186. package/lib/icon/angle-double-left-line.js +366 -0
  187. package/lib/icon/angle-double-left.d.ts +4 -0
  188. package/lib/icon/angle-double-left.js +366 -0
  189. package/lib/icon/angle-double-right-line.d.ts +4 -0
  190. package/lib/icon/angle-double-right-line.js +366 -0
  191. package/lib/icon/angle-double-right.d.ts +4 -0
  192. package/lib/icon/angle-double-right.js +366 -0
  193. package/lib/icon/angle-double-up-line.d.ts +4 -0
  194. package/lib/icon/angle-double-up-line.js +366 -0
  195. package/lib/icon/angle-down-fill.d.ts +4 -0
  196. package/lib/icon/angle-down-fill.js +366 -0
  197. package/lib/icon/angle-down-line.d.ts +4 -0
  198. package/lib/icon/angle-down-line.js +366 -0
  199. package/lib/icon/angle-down.d.ts +4 -0
  200. package/lib/icon/angle-down.js +366 -0
  201. package/lib/icon/angle-left.d.ts +4 -0
  202. package/lib/icon/angle-left.js +366 -0
  203. package/lib/icon/angle-right.d.ts +4 -0
  204. package/lib/icon/angle-right.js +366 -0
  205. package/lib/icon/angle-up-fill.d.ts +4 -0
  206. package/lib/icon/angle-up-fill.js +366 -0
  207. package/lib/icon/angle-up.d.ts +4 -0
  208. package/lib/icon/angle-up.js +366 -0
  209. package/lib/icon/archive-fill.d.ts +4 -0
  210. package/lib/icon/archive-fill.js +366 -0
  211. package/lib/icon/arrows-left.d.ts +4 -0
  212. package/lib/icon/arrows-left.js +366 -0
  213. package/lib/icon/arrows-right.d.ts +4 -0
  214. package/lib/icon/arrows-right.js +366 -0
  215. package/lib/icon/audio-fill.d.ts +4 -0
  216. package/lib/icon/audio-fill.js +366 -0
  217. package/lib/icon/bk.d.ts +4 -0
  218. package/lib/icon/bk.js +366 -0
  219. package/lib/icon/circle.d.ts +4 -0
  220. package/lib/icon/circle.js +366 -0
  221. package/lib/icon/close-line.d.ts +4 -0
  222. package/lib/icon/close-line.js +366 -0
  223. package/lib/icon/close.d.ts +4 -0
  224. package/lib/icon/close.js +366 -0
  225. package/lib/icon/code.d.ts +4 -0
  226. package/lib/icon/code.js +366 -0
  227. package/lib/icon/cog-shape.d.ts +4 -0
  228. package/lib/icon/cog-shape.js +366 -0
  229. package/lib/icon/collapse-left.d.ts +4 -0
  230. package/lib/icon/collapse-left.js +366 -0
  231. package/lib/icon/copy.d.ts +4 -0
  232. package/lib/icon/copy.js +366 -0
  233. package/lib/icon/data-shape.d.ts +4 -0
  234. package/lib/icon/data-shape.js +366 -0
  235. package/lib/icon/del.d.ts +4 -0
  236. package/lib/icon/del.js +366 -0
  237. package/lib/icon/doc-fill.d.ts +4 -0
  238. package/lib/icon/doc-fill.js +366 -0
  239. package/lib/icon/done.d.ts +4 -0
  240. package/lib/icon/done.js +366 -0
  241. package/lib/icon/down-shape.d.ts +4 -0
  242. package/lib/icon/down-shape.js +366 -0
  243. package/lib/icon/down-small.d.ts +4 -0
  244. package/lib/icon/down-small.js +366 -0
  245. package/lib/icon/edit-line.d.ts +4 -0
  246. package/lib/icon/edit-line.js +366 -0
  247. package/lib/icon/ellipsis.d.ts +4 -0
  248. package/lib/icon/ellipsis.js +366 -0
  249. package/lib/icon/enlarge-line.d.ts +4 -0
  250. package/lib/icon/enlarge-line.js +366 -0
  251. package/lib/icon/error.d.ts +4 -0
  252. package/lib/icon/error.js +366 -0
  253. package/lib/icon/excel-fill.d.ts +4 -0
  254. package/lib/icon/excel-fill.js +366 -0
  255. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  256. package/lib/icon/exclamation-circle-shape.js +366 -0
  257. package/lib/icon/eye.d.ts +4 -0
  258. package/lib/icon/eye.js +366 -0
  259. package/lib/icon/filliscreen-line.d.ts +4 -0
  260. package/lib/icon/filliscreen-line.js +366 -0
  261. package/lib/icon/folder-open.d.ts +4 -0
  262. package/lib/icon/folder-open.js +366 -0
  263. package/lib/icon/folder-shape-open.d.ts +4 -0
  264. package/lib/icon/folder-shape-open.js +366 -0
  265. package/lib/icon/folder-shape.d.ts +4 -0
  266. package/lib/icon/folder-shape.js +366 -0
  267. package/lib/icon/folder.d.ts +4 -0
  268. package/lib/icon/folder.js +366 -0
  269. package/lib/icon/funnel.d.ts +4 -0
  270. package/lib/icon/funnel.js +366 -0
  271. package/lib/icon/help-document-fill.d.ts +4 -0
  272. package/lib/icon/help-document-fill.js +366 -0
  273. package/lib/icon/help-fill.d.ts +4 -0
  274. package/lib/icon/help-fill.js +366 -0
  275. package/lib/icon/help.d.ts +4 -0
  276. package/lib/icon/help.js +366 -0
  277. package/lib/icon/icon.d.ts +12 -0
  278. package/lib/icon/image-fill.d.ts +4 -0
  279. package/lib/icon/image-fill.js +366 -0
  280. package/lib/icon/img-error.d.ts +4 -0
  281. package/lib/icon/img-placehoulder.d.ts +4 -0
  282. package/lib/icon/img-placehoulder.js +412 -0
  283. package/lib/icon/index.d.ts +79 -0
  284. package/lib/icon/index.js +2287 -0
  285. package/lib/icon/info-line.d.ts +4 -0
  286. package/lib/icon/info-line.js +412 -0
  287. package/lib/icon/info.d.ts +4 -0
  288. package/lib/icon/info.js +412 -0
  289. package/lib/icon/left-shape.d.ts +4 -0
  290. package/lib/icon/left-shape.js +412 -0
  291. package/lib/icon/left-turn-line.d.ts +4 -0
  292. package/lib/icon/left-turn-line.js +412 -0
  293. package/lib/icon/narrow-line.d.ts +4 -0
  294. package/lib/icon/narrow-line.js +412 -0
  295. package/lib/icon/original.d.ts +4 -0
  296. package/lib/icon/original.js +412 -0
  297. package/lib/icon/pdf-fill.d.ts +4 -0
  298. package/lib/icon/pdf-fill.js +412 -0
  299. package/lib/icon/play-shape.d.ts +4 -0
  300. package/lib/icon/play-shape.js +412 -0
  301. package/lib/icon/plus.d.ts +4 -0
  302. package/lib/icon/plus.js +412 -0
  303. package/lib/icon/ppt-fill.d.ts +4 -0
  304. package/lib/icon/ppt-fill.js +412 -0
  305. package/lib/icon/qq.d.ts +4 -0
  306. package/lib/icon/qq.js +412 -0
  307. package/lib/icon/right-shape.d.ts +4 -0
  308. package/lib/icon/right-shape.js +412 -0
  309. package/lib/icon/right-turn-line.d.ts +4 -0
  310. package/lib/icon/right-turn-line.js +412 -0
  311. package/lib/icon/search.d.ts +4 -0
  312. package/lib/icon/search.js +412 -0
  313. package/lib/icon/share.d.ts +4 -0
  314. package/lib/icon/share.js +412 -0
  315. package/lib/icon/spinner.d.ts +4 -0
  316. package/lib/icon/spinner.js +412 -0
  317. package/lib/icon/success.d.ts +4 -0
  318. package/lib/icon/success.js +412 -0
  319. package/lib/icon/switcher-loading.d.ts +4 -0
  320. package/lib/icon/switcher-loading.js +412 -0
  321. package/lib/icon/text-file.d.ts +4 -0
  322. package/lib/icon/text-file.js +412 -0
  323. package/lib/icon/text-fill.d.ts +4 -0
  324. package/lib/icon/text-fill.js +412 -0
  325. package/lib/icon/transfer.d.ts +4 -0
  326. package/lib/icon/transfer.js +412 -0
  327. package/lib/icon/tree-application-shape.d.ts +4 -0
  328. package/lib/icon/tree-application-shape.js +412 -0
  329. package/lib/icon/unfull-screen.d.ts +4 -0
  330. package/lib/icon/unfull-screen.js +412 -0
  331. package/lib/icon/unvisible.d.ts +4 -0
  332. package/lib/icon/unvisible.js +412 -0
  333. package/lib/icon/up-shape.d.ts +4 -0
  334. package/lib/icon/up-shape.js +412 -0
  335. package/lib/icon/upload.d.ts +4 -0
  336. package/lib/icon/upload.js +412 -0
  337. package/lib/icon/video-fill.d.ts +4 -0
  338. package/lib/icon/video-fill.js +412 -0
  339. package/lib/icon/warn.d.ts +4 -0
  340. package/lib/icon/warn.js +412 -0
  341. package/lib/icon/weixin.d.ts +4 -0
  342. package/lib/icon/weixin.js +412 -0
  343. package/lib/image/image-viewer.css +142 -0
  344. package/lib/image/image-viewer.d.ts +73 -0
  345. package/lib/image/image-viewer.less +168 -0
  346. package/lib/image/image-viewer.variable.css +142 -0
  347. package/lib/image/image.css +37 -0
  348. package/lib/image/image.d.ts +93 -0
  349. package/lib/image/image.less +44 -0
  350. package/lib/image/image.variable.css +37 -0
  351. package/lib/image/index.d.ts +246 -0
  352. package/lib/image/index.js +824 -0
  353. package/lib/image/props.d.ts +71 -0
  354. package/lib/index.d.ts +4 -0
  355. package/lib/index.js +85 -0
  356. package/lib/info-box/index.d.ts +6 -0
  357. package/lib/info-box/index.js +1730 -0
  358. package/lib/info-box/info-box.css +37 -0
  359. package/lib/info-box/info-box.d.ts +26 -0
  360. package/lib/info-box/info-box.less +51 -0
  361. package/lib/info-box/info-box.variable.css +157 -0
  362. package/lib/input/index.d.ts +528 -0
  363. package/lib/input/index.js +778 -0
  364. package/lib/input/input.css +351 -0
  365. package/lib/input/input.d.ts +337 -0
  366. package/lib/input/input.less +306 -0
  367. package/lib/input/input.variable.css +471 -0
  368. package/lib/link/index.d.ts +172 -0
  369. package/lib/link/index.js +158 -0
  370. package/lib/link/link.css +55 -0
  371. package/lib/link/link.d.ts +60 -0
  372. package/lib/link/link.less +76 -0
  373. package/lib/link/link.variable.css +175 -0
  374. package/lib/loading/index.d.ts +257 -0
  375. package/lib/loading/index.js +249 -0
  376. package/lib/loading/loading.css +305 -0
  377. package/lib/loading/loading.d.ts +160 -0
  378. package/lib/loading/loading.less +193 -0
  379. package/lib/loading/loading.variable.css +425 -0
  380. package/lib/menu/index.d.ts +180 -0
  381. package/lib/menu/index.js +732 -0
  382. package/lib/menu/menu-group.d.ts +14 -0
  383. package/lib/menu/menu-item.d.ts +16 -0
  384. package/lib/menu/menu.css +233 -0
  385. package/lib/menu/menu.d.ts +55 -0
  386. package/lib/menu/menu.less +180 -0
  387. package/lib/menu/menu.variable.css +353 -0
  388. package/lib/menu/submenu.css +3 -0
  389. package/lib/menu/submenu.d.ts +22 -0
  390. package/lib/menu/submenu.less +5 -0
  391. package/lib/menu/submenu.variable.css +123 -0
  392. package/lib/menu/utils.d.ts +41 -0
  393. package/lib/message/index.d.ts +2 -0
  394. package/lib/message/index.js +329 -0
  395. package/lib/message/message.css +74 -0
  396. package/lib/message/message.less +87 -0
  397. package/lib/message/message.variable.css +194 -0
  398. package/lib/message/messageConstructor.d.ts +109 -0
  399. package/lib/modal/index.d.ts +592 -0
  400. package/lib/modal/index.js +329 -0
  401. package/lib/modal/modal.css +73 -0
  402. package/lib/modal/modal.d.ts +209 -0
  403. package/lib/modal/modal.less +48 -0
  404. package/lib/modal/modal.variable.css +193 -0
  405. package/lib/modal/props.mixin.d.ts +87 -0
  406. package/lib/navigation/index.d.ts +311 -0
  407. package/lib/navigation/index.js +363 -0
  408. package/lib/navigation/navigation-title.d.ts +25 -0
  409. package/lib/navigation/navigation.css +184 -0
  410. package/lib/navigation/navigation.d.ts +120 -0
  411. package/lib/navigation/navigation.less +210 -0
  412. package/lib/navigation/navigation.variable.css +304 -0
  413. package/lib/notify/index.d.ts +2 -0
  414. package/lib/notify/index.js +358 -0
  415. package/lib/notify/notify.css +69 -0
  416. package/lib/notify/notify.less +81 -0
  417. package/lib/notify/notify.variable.css +189 -0
  418. package/lib/notify/notifyConstructor.d.ts +132 -0
  419. package/lib/overflow-title/components/OverflowTitle.d.ts +38 -0
  420. package/lib/overflow-title/directive/overflowTitle.d.ts +3 -0
  421. package/lib/overflow-title/index.d.ts +129 -0
  422. package/lib/overflow-title/index.js +476 -0
  423. package/lib/overflow-title/overflow.css +11 -0
  424. package/lib/overflow-title/overflow.less +13 -0
  425. package/lib/overflow-title/overflow.variable.css +11 -0
  426. package/lib/overflow-title/props.d.ts +16 -0
  427. package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
  428. package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
  429. package/lib/pagination/index.d.ts +410 -0
  430. package/lib/pagination/index.js +937 -0
  431. package/lib/pagination/pagination.css +205 -0
  432. package/lib/pagination/pagination.d.ts +230 -0
  433. package/lib/pagination/pagination.less +230 -0
  434. package/lib/pagination/pagination.variable.css +325 -0
  435. package/lib/pagination/type.d.ts +6 -0
  436. package/lib/pagination/use-limit.d.ts +8 -0
  437. package/lib/pagination/use-list.d.ts +8 -0
  438. package/lib/pagination/use-small-list.d.ts +5 -0
  439. package/lib/pagination/use-total.d.ts +5 -0
  440. package/lib/plugin-popover/index.d.ts +27 -0
  441. package/lib/plugin-popover/index.js +2400 -0
  442. package/lib/plugins/index.d.ts +1 -0
  443. package/lib/plugins/index.js +63 -0
  444. package/lib/popover/arrow.d.ts +2 -0
  445. package/lib/popover/const.d.ts +16 -0
  446. package/lib/popover/content.d.ts +32 -0
  447. package/lib/popover/index.d.ts +653 -0
  448. package/lib/popover/index.js +2408 -0
  449. package/lib/popover/plugin-popover.d.ts +12 -0
  450. package/lib/popover/popover.css +25 -0
  451. package/lib/popover/popover.d.ts +277 -0
  452. package/lib/popover/popover.less +35 -0
  453. package/lib/popover/popover.variable.css +145 -0
  454. package/lib/popover/props.d.ts +146 -0
  455. package/lib/popover/reference.d.ts +2 -0
  456. package/lib/popover/root.d.ts +16 -0
  457. package/lib/popover/use-floating.d.ts +34 -0
  458. package/lib/popover/use-platform.d.ts +30 -0
  459. package/lib/popover/use-popover-init.d.ts +23 -0
  460. package/lib/popover/use-popper-id.d.ts +6 -0
  461. package/lib/popover/utils.d.ts +2 -0
  462. package/lib/popover2/index.d.ts +44 -0
  463. package/lib/popover2/index.js +108 -0
  464. package/lib/popover2/popover.d.ts +2 -0
  465. package/lib/preset.d.ts +7 -0
  466. package/lib/preset.js +62 -0
  467. package/lib/process/index.d.ts +205 -0
  468. package/lib/process/index.js +1375 -0
  469. package/lib/process/process.css +151 -0
  470. package/lib/process/process.d.ts +131 -0
  471. package/lib/process/process.less +195 -0
  472. package/lib/process/process.variable.css +271 -0
  473. package/lib/progress/circle.d.ts +6 -0
  474. package/lib/progress/index.d.ts +398 -0
  475. package/lib/progress/index.js +415 -0
  476. package/lib/progress/line.d.ts +6 -0
  477. package/lib/progress/progress.css +145 -0
  478. package/lib/progress/progress.d.ts +171 -0
  479. package/lib/progress/progress.less +90 -0
  480. package/lib/progress/progress.variable.css +265 -0
  481. package/lib/radio/common.d.ts +13 -0
  482. package/lib/radio/index.d.ts +288 -0
  483. package/lib/radio/index.js +588 -0
  484. package/lib/radio/radio-button.d.ts +90 -0
  485. package/lib/radio/radio-group.d.ts +57 -0
  486. package/lib/radio/radio.css +139 -0
  487. package/lib/radio/radio.d.ts +87 -0
  488. package/lib/radio/radio.less +177 -0
  489. package/lib/radio/radio.variable.css +259 -0
  490. package/lib/radio/type.d.ts +14 -0
  491. package/lib/rate/index.d.ts +136 -0
  492. package/lib/rate/index.js +294 -0
  493. package/lib/rate/rate.css +10 -0
  494. package/lib/rate/rate.d.ts +43 -0
  495. package/lib/rate/rate.less +11 -0
  496. package/lib/rate/rate.variable.css +10 -0
  497. package/lib/rate/star.css +24 -0
  498. package/lib/rate/star.d.ts +74 -0
  499. package/lib/rate/star.less +29 -0
  500. package/lib/rate/star.variable.css +24 -0
  501. package/lib/resize-layout/index.d.ts +336 -0
  502. package/lib/resize-layout/index.js +427 -0
  503. package/lib/resize-layout/resize-layout.css +177 -0
  504. package/lib/resize-layout/resize-layout.d.ts +127 -0
  505. package/lib/resize-layout/resize-layout.less +217 -0
  506. package/lib/resize-layout/resize-layout.variable.css +297 -0
  507. package/lib/search-select/index.d.ts +823 -0
  508. package/lib/search-select/index.js +3336 -0
  509. package/lib/search-select/input.d.ts +89 -0
  510. package/lib/search-select/menu.d.ts +83 -0
  511. package/lib/search-select/search-select.css +424 -0
  512. package/lib/search-select/search-select.d.ts +342 -0
  513. package/lib/search-select/search-select.less +380 -0
  514. package/lib/search-select/search-select.variable.css +544 -0
  515. package/lib/search-select/selected.d.ts +143 -0
  516. package/lib/search-select/utils.d.ts +88 -0
  517. package/lib/select/common.d.ts +26 -0
  518. package/lib/select/index.d.ts +2039 -0
  519. package/lib/select/index.js +2740 -0
  520. package/lib/select/option.d.ts +37 -0
  521. package/lib/select/optionGroup.d.ts +54 -0
  522. package/lib/select/select.css +399 -0
  523. package/lib/select/select.d.ts +753 -0
  524. package/lib/select/select.less +443 -0
  525. package/lib/select/select.variable.css +519 -0
  526. package/lib/select/selectTagInput.d.ts +93 -0
  527. package/lib/select/type.d.ts +39 -0
  528. package/lib/shared/dom.d.ts +3 -0
  529. package/lib/shared/helper.d.ts +101 -0
  530. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  531. package/lib/shared/hooks/use-form.d.ts +2 -0
  532. package/lib/shared/index.d.ts +74 -0
  533. package/lib/shared/index.js +2838 -0
  534. package/lib/shared/mask-manager.d.ts +80 -0
  535. package/lib/shared/pop-manager.d.ts +38 -0
  536. package/lib/shared/popover.d.ts +131 -0
  537. package/lib/shared/scrollbar-width.d.ts +1 -0
  538. package/lib/shared/token.d.ts +4 -0
  539. package/lib/shared/utils.d.ts +25 -0
  540. package/lib/shared/vue-types.d.ts +213 -0
  541. package/lib/shared/z-index-manager.d.ts +93 -0
  542. package/lib/sideslider/index.d.ts +477 -0
  543. package/lib/sideslider/index.js +1313 -0
  544. package/lib/sideslider/sideslider.css +114 -0
  545. package/lib/sideslider/sideslider.d.ts +203 -0
  546. package/lib/sideslider/sideslider.less +145 -0
  547. package/lib/sideslider/sideslider.variable.css +234 -0
  548. package/lib/slider/index.d.ts +440 -0
  549. package/lib/slider/index.js +2011 -0
  550. package/lib/slider/slider-button.d.ts +81 -0
  551. package/lib/slider/slider.css +149 -0
  552. package/lib/slider/slider.d.ts +201 -0
  553. package/lib/slider/slider.less +179 -0
  554. package/lib/slider/slider.variable.css +269 -0
  555. package/lib/steps/index.d.ts +250 -0
  556. package/lib/steps/index.js +1457 -0
  557. package/lib/steps/steps.css +300 -0
  558. package/lib/steps/steps.d.ts +161 -0
  559. package/lib/steps/steps.less +345 -0
  560. package/lib/steps/steps.variable.css +420 -0
  561. package/lib/styles/index.d.ts +53 -0
  562. package/lib/styles/mixins/animate.css +21 -0
  563. package/lib/styles/mixins/animate.less +27 -0
  564. package/lib/styles/mixins/animate.variable.css +21 -0
  565. package/lib/styles/mixins/clearfix.css +8 -0
  566. package/lib/styles/mixins/clearfix.less +10 -0
  567. package/lib/styles/mixins/clearfix.variable.css +8 -0
  568. package/lib/styles/mixins/ellipsis.less +8 -0
  569. package/lib/styles/mixins/mixins.css +72 -0
  570. package/lib/styles/mixins/mixins.less +5 -0
  571. package/lib/styles/mixins/mixins.variable.css +72 -0
  572. package/lib/styles/mixins/popper.css +43 -0
  573. package/lib/styles/mixins/popper.less +53 -0
  574. package/lib/styles/mixins/popper.variable.css +163 -0
  575. package/lib/styles/mixins/scroll.css +17 -0
  576. package/lib/styles/mixins/scroll.less +22 -0
  577. package/lib/styles/mixins/scroll.variable.css +137 -0
  578. package/lib/styles/mixins/size.less +13 -0
  579. package/lib/styles/reset.css +309 -0
  580. package/lib/styles/reset.less +337 -0
  581. package/lib/styles/reset.variable.css +309 -0
  582. package/lib/styles/themes/themes.less +162 -0
  583. package/lib/swiper/index.d.ts +181 -0
  584. package/lib/swiper/index.js +310 -0
  585. package/lib/swiper/swiper.css +91 -0
  586. package/lib/swiper/swiper.d.ts +65 -0
  587. package/lib/swiper/swiper.less +107 -0
  588. package/lib/swiper/swiper.variable.css +91 -0
  589. package/lib/switcher/index.d.ts +298 -0
  590. package/lib/switcher/index.js +240 -0
  591. package/lib/switcher/switcher.css +323 -0
  592. package/lib/switcher/switcher.d.ts +119 -0
  593. package/lib/switcher/switcher.less +337 -0
  594. package/lib/switcher/switcher.variable.css +443 -0
  595. package/lib/tab/index.d.ts +435 -0
  596. package/lib/tab/index.js +849 -0
  597. package/lib/tab/props.d.ts +207 -0
  598. package/lib/tab/tab-nav.d.ts +169 -0
  599. package/lib/tab/tab-panel.d.ts +68 -0
  600. package/lib/tab/tab.css +223 -0
  601. package/lib/tab/tab.d.ts +139 -0
  602. package/lib/tab/tab.less +285 -0
  603. package/lib/tab/tab.variable.css +343 -0
  604. package/lib/table/components/index.d.ts +3 -0
  605. package/lib/table/components/table-cell.d.ts +38 -0
  606. package/lib/table/components/table-column.d.ts +137 -0
  607. package/lib/table/components/table-row.d.ts +2 -0
  608. package/lib/table/const.d.ts +122 -0
  609. package/lib/table/index.d.ts +1141 -0
  610. package/lib/table/index.js +6520 -0
  611. package/lib/table/plugins/body-empty.d.ts +40 -0
  612. package/lib/table/plugins/col-group.d.ts +38 -0
  613. package/lib/table/plugins/common.d.ts +6 -0
  614. package/lib/table/plugins/head-filter.css +84 -0
  615. package/lib/table/plugins/head-filter.d.ts +26 -0
  616. package/lib/table/plugins/head-filter.less +110 -0
  617. package/lib/table/plugins/head-filter.variable.css +204 -0
  618. package/lib/table/plugins/head-sort.css +25 -0
  619. package/lib/table/plugins/head-sort.d.ts +22 -0
  620. package/lib/table/plugins/head-sort.less +31 -0
  621. package/lib/table/plugins/head-sort.variable.css +145 -0
  622. package/lib/table/plugins/index.d.ts +5 -0
  623. package/lib/table/plugins/settings.css +145 -0
  624. package/lib/table/plugins/settings.d.ts +37 -0
  625. package/lib/table/plugins/settings.less +179 -0
  626. package/lib/table/plugins/settings.variable.css +265 -0
  627. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  628. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  629. package/lib/table/plugins/use-fixed-column.d.ts +12 -0
  630. package/lib/table/plugins/use-pagination.d.ts +16 -0
  631. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  632. package/lib/table/props.d.ts +434 -0
  633. package/lib/table/render.d.ts +125 -0
  634. package/lib/table/table.css +1272 -0
  635. package/lib/table/table.d.ts +350 -0
  636. package/lib/table/table.less +365 -0
  637. package/lib/table/table.variable.css +1392 -0
  638. package/lib/table/use-column.d.ts +11 -0
  639. package/lib/table/use-common.d.ts +98 -0
  640. package/lib/table/utils.d.ts +129 -0
  641. package/lib/table-column/index.d.ts +325 -0
  642. package/lib/table-column/index.js +669 -0
  643. package/lib/tag/index.d.ts +229 -0
  644. package/lib/tag/index.js +206 -0
  645. package/lib/tag/tag.css +130 -0
  646. package/lib/tag/tag.d.ts +84 -0
  647. package/lib/tag/tag.less +149 -0
  648. package/lib/tag/tag.variable.css +250 -0
  649. package/lib/tag-input/common.d.ts +36 -0
  650. package/lib/tag-input/index.d.ts +1349 -0
  651. package/lib/tag-input/index.js +1795 -0
  652. package/lib/tag-input/list-tag-render.d.ts +44 -0
  653. package/lib/tag-input/tag-input.css +205 -0
  654. package/lib/tag-input/tag-input.d.ts +631 -0
  655. package/lib/tag-input/tag-input.less +248 -0
  656. package/lib/tag-input/tag-input.variable.css +325 -0
  657. package/lib/tag-input/tag-props.d.ts +252 -0
  658. package/lib/tag-input/tag-render.d.ts +64 -0
  659. package/lib/time-picker/index.d.ts +904 -0
  660. package/lib/time-picker/index.js +71 -0
  661. package/lib/time-picker/time-picker.css +215 -0
  662. package/lib/time-picker/time-picker.less +260 -0
  663. package/lib/time-picker/time-picker.variable.css +335 -0
  664. package/lib/timeline/index.d.ts +129 -0
  665. package/lib/timeline/index.js +251 -0
  666. package/lib/timeline/timeline.css +242 -0
  667. package/lib/timeline/timeline.d.ts +81 -0
  668. package/lib/timeline/timeline.less +252 -0
  669. package/lib/timeline/timeline.variable.css +362 -0
  670. package/lib/transfer/const.d.ts +5 -0
  671. package/lib/transfer/index.d.ts +365 -0
  672. package/lib/transfer/index.js +573 -0
  673. package/lib/transfer/props.d.ts +54 -0
  674. package/lib/transfer/transfer.css +161 -0
  675. package/lib/transfer/transfer.d.ts +160 -0
  676. package/lib/transfer/transfer.less +151 -0
  677. package/lib/transfer/transfer.variable.css +281 -0
  678. package/lib/tree/constant.d.ts +62 -0
  679. package/lib/tree/index.d.ts +647 -0
  680. package/lib/tree/index.js +2840 -0
  681. package/lib/tree/props.d.ts +213 -0
  682. package/lib/tree/tree.css +218 -0
  683. package/lib/tree/tree.d.ts +283 -0
  684. package/lib/tree/tree.less +114 -0
  685. package/lib/tree/tree.variable.css +338 -0
  686. package/lib/tree/use-empty.d.ts +6 -0
  687. package/lib/tree/use-node-action.d.ts +12 -0
  688. package/lib/tree/use-node-async.d.ts +5 -0
  689. package/lib/tree/use-node-attribute.d.ts +33 -0
  690. package/lib/tree/use-node-drag.d.ts +3 -0
  691. package/lib/tree/use-search.d.ts +11 -0
  692. package/lib/tree/use-tree-init.d.ts +15 -0
  693. package/lib/tree/util.d.ts +68 -0
  694. package/lib/upload/index.d.ts +566 -0
  695. package/lib/upload/index.js +3681 -0
  696. package/lib/upload/props.d.ts +111 -0
  697. package/lib/upload/upload-list.d.ts +47 -0
  698. package/lib/upload/upload-trigger.d.ts +51 -0
  699. package/lib/upload/upload.css +425 -0
  700. package/lib/upload/upload.d.ts +246 -0
  701. package/lib/upload/upload.less +464 -0
  702. package/lib/upload/upload.type.d.ts +78 -0
  703. package/lib/upload/upload.variable.css +545 -0
  704. package/lib/upload/use-ajax-upload.d.ts +3 -0
  705. package/lib/upload/use-file-handler.d.ts +44 -0
  706. package/lib/use-message.d.ts +2 -0
  707. package/lib/virtual-render/index.d.ts +602 -0
  708. package/lib/virtual-render/index.js +757 -0
  709. package/lib/virtual-render/props.d.ts +172 -0
  710. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  711. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  712. package/lib/virtual-render/virtual-render.css +33 -0
  713. package/lib/virtual-render/virtual-render.d.ts +266 -0
  714. package/lib/virtual-render/virtual-render.less +22 -0
  715. package/lib/virtual-render/virtual-render.variable.css +153 -0
  716. package/lib/volar.components.d.ts +101 -0
  717. package/package.json +58 -28
  718. package/LICENSE.txt +0 -22
@@ -0,0 +1,2764 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__ from "../directives";
5
+ import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
6
+ /******/ var __webpack_modules__ = ({
7
+
8
+ /***/ 8621:
9
+ /***/ ((module, exports, __webpack_require__) => {
10
+
11
+ var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.2
12
+ // https://github.com/bgrins/TinyColor
13
+ // Brian Grinstead, MIT License
14
+
15
+ (function(Math) {
16
+
17
+ var trimLeft = /^\s+/,
18
+ trimRight = /\s+$/,
19
+ tinyCounter = 0,
20
+ mathRound = Math.round,
21
+ mathMin = Math.min,
22
+ mathMax = Math.max,
23
+ mathRandom = Math.random;
24
+
25
+ function tinycolor (color, opts) {
26
+
27
+ color = (color) ? color : '';
28
+ opts = opts || { };
29
+
30
+ // If input is already a tinycolor, return itself
31
+ if (color instanceof tinycolor) {
32
+ return color;
33
+ }
34
+ // If we are called as a function, call using new instead
35
+ if (!(this instanceof tinycolor)) {
36
+ return new tinycolor(color, opts);
37
+ }
38
+
39
+ var rgb = inputToRGB(color);
40
+ this._originalInput = color,
41
+ this._r = rgb.r,
42
+ this._g = rgb.g,
43
+ this._b = rgb.b,
44
+ this._a = rgb.a,
45
+ this._roundA = mathRound(100*this._a) / 100,
46
+ this._format = opts.format || rgb.format;
47
+ this._gradientType = opts.gradientType;
48
+
49
+ // Don't let the range of [0,255] come back in [0,1].
50
+ // Potentially lose a little bit of precision here, but will fix issues where
51
+ // .5 gets interpreted as half of the total, instead of half of 1
52
+ // If it was supposed to be 128, this was already taken care of by `inputToRgb`
53
+ if (this._r < 1) { this._r = mathRound(this._r); }
54
+ if (this._g < 1) { this._g = mathRound(this._g); }
55
+ if (this._b < 1) { this._b = mathRound(this._b); }
56
+
57
+ this._ok = rgb.ok;
58
+ this._tc_id = tinyCounter++;
59
+ }
60
+
61
+ tinycolor.prototype = {
62
+ isDark: function() {
63
+ return this.getBrightness() < 128;
64
+ },
65
+ isLight: function() {
66
+ return !this.isDark();
67
+ },
68
+ isValid: function() {
69
+ return this._ok;
70
+ },
71
+ getOriginalInput: function() {
72
+ return this._originalInput;
73
+ },
74
+ getFormat: function() {
75
+ return this._format;
76
+ },
77
+ getAlpha: function() {
78
+ return this._a;
79
+ },
80
+ getBrightness: function() {
81
+ //http://www.w3.org/TR/AERT#color-contrast
82
+ var rgb = this.toRgb();
83
+ return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;
84
+ },
85
+ getLuminance: function() {
86
+ //http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
87
+ var rgb = this.toRgb();
88
+ var RsRGB, GsRGB, BsRGB, R, G, B;
89
+ RsRGB = rgb.r/255;
90
+ GsRGB = rgb.g/255;
91
+ BsRGB = rgb.b/255;
92
+
93
+ if (RsRGB <= 0.03928) {R = RsRGB / 12.92;} else {R = Math.pow(((RsRGB + 0.055) / 1.055), 2.4);}
94
+ if (GsRGB <= 0.03928) {G = GsRGB / 12.92;} else {G = Math.pow(((GsRGB + 0.055) / 1.055), 2.4);}
95
+ if (BsRGB <= 0.03928) {B = BsRGB / 12.92;} else {B = Math.pow(((BsRGB + 0.055) / 1.055), 2.4);}
96
+ return (0.2126 * R) + (0.7152 * G) + (0.0722 * B);
97
+ },
98
+ setAlpha: function(value) {
99
+ this._a = boundAlpha(value);
100
+ this._roundA = mathRound(100*this._a) / 100;
101
+ return this;
102
+ },
103
+ toHsv: function() {
104
+ var hsv = rgbToHsv(this._r, this._g, this._b);
105
+ return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a };
106
+ },
107
+ toHsvString: function() {
108
+ var hsv = rgbToHsv(this._r, this._g, this._b);
109
+ var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100);
110
+ return (this._a == 1) ?
111
+ "hsv(" + h + ", " + s + "%, " + v + "%)" :
112
+ "hsva(" + h + ", " + s + "%, " + v + "%, "+ this._roundA + ")";
113
+ },
114
+ toHsl: function() {
115
+ var hsl = rgbToHsl(this._r, this._g, this._b);
116
+ return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a };
117
+ },
118
+ toHslString: function() {
119
+ var hsl = rgbToHsl(this._r, this._g, this._b);
120
+ var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100);
121
+ return (this._a == 1) ?
122
+ "hsl(" + h + ", " + s + "%, " + l + "%)" :
123
+ "hsla(" + h + ", " + s + "%, " + l + "%, "+ this._roundA + ")";
124
+ },
125
+ toHex: function(allow3Char) {
126
+ return rgbToHex(this._r, this._g, this._b, allow3Char);
127
+ },
128
+ toHexString: function(allow3Char) {
129
+ return '#' + this.toHex(allow3Char);
130
+ },
131
+ toHex8: function(allow4Char) {
132
+ return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char);
133
+ },
134
+ toHex8String: function(allow4Char) {
135
+ return '#' + this.toHex8(allow4Char);
136
+ },
137
+ toRgb: function() {
138
+ return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a };
139
+ },
140
+ toRgbString: function() {
141
+ return (this._a == 1) ?
142
+ "rgb(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ")" :
143
+ "rgba(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ", " + this._roundA + ")";
144
+ },
145
+ toPercentageRgb: function() {
146
+ return { r: mathRound(bound01(this._r, 255) * 100) + "%", g: mathRound(bound01(this._g, 255) * 100) + "%", b: mathRound(bound01(this._b, 255) * 100) + "%", a: this._a };
147
+ },
148
+ toPercentageRgbString: function() {
149
+ return (this._a == 1) ?
150
+ "rgb(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%)" :
151
+ "rgba(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")";
152
+ },
153
+ toName: function() {
154
+ if (this._a === 0) {
155
+ return "transparent";
156
+ }
157
+
158
+ if (this._a < 1) {
159
+ return false;
160
+ }
161
+
162
+ return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false;
163
+ },
164
+ toFilter: function(secondColor) {
165
+ var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a);
166
+ var secondHex8String = hex8String;
167
+ var gradientType = this._gradientType ? "GradientType = 1, " : "";
168
+
169
+ if (secondColor) {
170
+ var s = tinycolor(secondColor);
171
+ secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a);
172
+ }
173
+
174
+ return "progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")";
175
+ },
176
+ toString: function(format) {
177
+ var formatSet = !!format;
178
+ format = format || this._format;
179
+
180
+ var formattedString = false;
181
+ var hasAlpha = this._a < 1 && this._a >= 0;
182
+ var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name");
183
+
184
+ if (needsAlphaFormat) {
185
+ // Special case for "transparent", all other non-alpha formats
186
+ // will return rgba when there is transparency.
187
+ if (format === "name" && this._a === 0) {
188
+ return this.toName();
189
+ }
190
+ return this.toRgbString();
191
+ }
192
+ if (format === "rgb") {
193
+ formattedString = this.toRgbString();
194
+ }
195
+ if (format === "prgb") {
196
+ formattedString = this.toPercentageRgbString();
197
+ }
198
+ if (format === "hex" || format === "hex6") {
199
+ formattedString = this.toHexString();
200
+ }
201
+ if (format === "hex3") {
202
+ formattedString = this.toHexString(true);
203
+ }
204
+ if (format === "hex4") {
205
+ formattedString = this.toHex8String(true);
206
+ }
207
+ if (format === "hex8") {
208
+ formattedString = this.toHex8String();
209
+ }
210
+ if (format === "name") {
211
+ formattedString = this.toName();
212
+ }
213
+ if (format === "hsl") {
214
+ formattedString = this.toHslString();
215
+ }
216
+ if (format === "hsv") {
217
+ formattedString = this.toHsvString();
218
+ }
219
+
220
+ return formattedString || this.toHexString();
221
+ },
222
+ clone: function() {
223
+ return tinycolor(this.toString());
224
+ },
225
+
226
+ _applyModification: function(fn, args) {
227
+ var color = fn.apply(null, [this].concat([].slice.call(args)));
228
+ this._r = color._r;
229
+ this._g = color._g;
230
+ this._b = color._b;
231
+ this.setAlpha(color._a);
232
+ return this;
233
+ },
234
+ lighten: function() {
235
+ return this._applyModification(lighten, arguments);
236
+ },
237
+ brighten: function() {
238
+ return this._applyModification(brighten, arguments);
239
+ },
240
+ darken: function() {
241
+ return this._applyModification(darken, arguments);
242
+ },
243
+ desaturate: function() {
244
+ return this._applyModification(desaturate, arguments);
245
+ },
246
+ saturate: function() {
247
+ return this._applyModification(saturate, arguments);
248
+ },
249
+ greyscale: function() {
250
+ return this._applyModification(greyscale, arguments);
251
+ },
252
+ spin: function() {
253
+ return this._applyModification(spin, arguments);
254
+ },
255
+
256
+ _applyCombination: function(fn, args) {
257
+ return fn.apply(null, [this].concat([].slice.call(args)));
258
+ },
259
+ analogous: function() {
260
+ return this._applyCombination(analogous, arguments);
261
+ },
262
+ complement: function() {
263
+ return this._applyCombination(complement, arguments);
264
+ },
265
+ monochromatic: function() {
266
+ return this._applyCombination(monochromatic, arguments);
267
+ },
268
+ splitcomplement: function() {
269
+ return this._applyCombination(splitcomplement, arguments);
270
+ },
271
+ triad: function() {
272
+ return this._applyCombination(triad, arguments);
273
+ },
274
+ tetrad: function() {
275
+ return this._applyCombination(tetrad, arguments);
276
+ }
277
+ };
278
+
279
+ // If input is an object, force 1 into "1.0" to handle ratios properly
280
+ // String input requires "1.0" as input, so 1 will be treated as 1
281
+ tinycolor.fromRatio = function(color, opts) {
282
+ if (typeof color == "object") {
283
+ var newColor = {};
284
+ for (var i in color) {
285
+ if (color.hasOwnProperty(i)) {
286
+ if (i === "a") {
287
+ newColor[i] = color[i];
288
+ }
289
+ else {
290
+ newColor[i] = convertToPercentage(color[i]);
291
+ }
292
+ }
293
+ }
294
+ color = newColor;
295
+ }
296
+
297
+ return tinycolor(color, opts);
298
+ };
299
+
300
+ // Given a string or object, convert that input to RGB
301
+ // Possible string inputs:
302
+ //
303
+ // "red"
304
+ // "#f00" or "f00"
305
+ // "#ff0000" or "ff0000"
306
+ // "#ff000000" or "ff000000"
307
+ // "rgb 255 0 0" or "rgb (255, 0, 0)"
308
+ // "rgb 1.0 0 0" or "rgb (1, 0, 0)"
309
+ // "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
310
+ // "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
311
+ // "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
312
+ // "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
313
+ // "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
314
+ //
315
+ function inputToRGB(color) {
316
+
317
+ var rgb = { r: 0, g: 0, b: 0 };
318
+ var a = 1;
319
+ var s = null;
320
+ var v = null;
321
+ var l = null;
322
+ var ok = false;
323
+ var format = false;
324
+
325
+ if (typeof color == "string") {
326
+ color = stringInputToObject(color);
327
+ }
328
+
329
+ if (typeof color == "object") {
330
+ if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
331
+ rgb = rgbToRgb(color.r, color.g, color.b);
332
+ ok = true;
333
+ format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
334
+ }
335
+ else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
336
+ s = convertToPercentage(color.s);
337
+ v = convertToPercentage(color.v);
338
+ rgb = hsvToRgb(color.h, s, v);
339
+ ok = true;
340
+ format = "hsv";
341
+ }
342
+ else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
343
+ s = convertToPercentage(color.s);
344
+ l = convertToPercentage(color.l);
345
+ rgb = hslToRgb(color.h, s, l);
346
+ ok = true;
347
+ format = "hsl";
348
+ }
349
+
350
+ if (color.hasOwnProperty("a")) {
351
+ a = color.a;
352
+ }
353
+ }
354
+
355
+ a = boundAlpha(a);
356
+
357
+ return {
358
+ ok: ok,
359
+ format: color.format || format,
360
+ r: mathMin(255, mathMax(rgb.r, 0)),
361
+ g: mathMin(255, mathMax(rgb.g, 0)),
362
+ b: mathMin(255, mathMax(rgb.b, 0)),
363
+ a: a
364
+ };
365
+ }
366
+
367
+
368
+ // Conversion Functions
369
+ // --------------------
370
+
371
+ // `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:
372
+ // <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>
373
+
374
+ // `rgbToRgb`
375
+ // Handle bounds / percentage checking to conform to CSS color spec
376
+ // <http://www.w3.org/TR/css3-color/>
377
+ // *Assumes:* r, g, b in [0, 255] or [0, 1]
378
+ // *Returns:* { r, g, b } in [0, 255]
379
+ function rgbToRgb(r, g, b){
380
+ return {
381
+ r: bound01(r, 255) * 255,
382
+ g: bound01(g, 255) * 255,
383
+ b: bound01(b, 255) * 255
384
+ };
385
+ }
386
+
387
+ // `rgbToHsl`
388
+ // Converts an RGB color value to HSL.
389
+ // *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]
390
+ // *Returns:* { h, s, l } in [0,1]
391
+ function rgbToHsl(r, g, b) {
392
+
393
+ r = bound01(r, 255);
394
+ g = bound01(g, 255);
395
+ b = bound01(b, 255);
396
+
397
+ var max = mathMax(r, g, b), min = mathMin(r, g, b);
398
+ var h, s, l = (max + min) / 2;
399
+
400
+ if(max == min) {
401
+ h = s = 0; // achromatic
402
+ }
403
+ else {
404
+ var d = max - min;
405
+ s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
406
+ switch(max) {
407
+ case r: h = (g - b) / d + (g < b ? 6 : 0); break;
408
+ case g: h = (b - r) / d + 2; break;
409
+ case b: h = (r - g) / d + 4; break;
410
+ }
411
+
412
+ h /= 6;
413
+ }
414
+
415
+ return { h: h, s: s, l: l };
416
+ }
417
+
418
+ // `hslToRgb`
419
+ // Converts an HSL color value to RGB.
420
+ // *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
421
+ // *Returns:* { r, g, b } in the set [0, 255]
422
+ function hslToRgb(h, s, l) {
423
+ var r, g, b;
424
+
425
+ h = bound01(h, 360);
426
+ s = bound01(s, 100);
427
+ l = bound01(l, 100);
428
+
429
+ function hue2rgb(p, q, t) {
430
+ if(t < 0) t += 1;
431
+ if(t > 1) t -= 1;
432
+ if(t < 1/6) return p + (q - p) * 6 * t;
433
+ if(t < 1/2) return q;
434
+ if(t < 2/3) return p + (q - p) * (2/3 - t) * 6;
435
+ return p;
436
+ }
437
+
438
+ if(s === 0) {
439
+ r = g = b = l; // achromatic
440
+ }
441
+ else {
442
+ var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
443
+ var p = 2 * l - q;
444
+ r = hue2rgb(p, q, h + 1/3);
445
+ g = hue2rgb(p, q, h);
446
+ b = hue2rgb(p, q, h - 1/3);
447
+ }
448
+
449
+ return { r: r * 255, g: g * 255, b: b * 255 };
450
+ }
451
+
452
+ // `rgbToHsv`
453
+ // Converts an RGB color value to HSV
454
+ // *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
455
+ // *Returns:* { h, s, v } in [0,1]
456
+ function rgbToHsv(r, g, b) {
457
+
458
+ r = bound01(r, 255);
459
+ g = bound01(g, 255);
460
+ b = bound01(b, 255);
461
+
462
+ var max = mathMax(r, g, b), min = mathMin(r, g, b);
463
+ var h, s, v = max;
464
+
465
+ var d = max - min;
466
+ s = max === 0 ? 0 : d / max;
467
+
468
+ if(max == min) {
469
+ h = 0; // achromatic
470
+ }
471
+ else {
472
+ switch(max) {
473
+ case r: h = (g - b) / d + (g < b ? 6 : 0); break;
474
+ case g: h = (b - r) / d + 2; break;
475
+ case b: h = (r - g) / d + 4; break;
476
+ }
477
+ h /= 6;
478
+ }
479
+ return { h: h, s: s, v: v };
480
+ }
481
+
482
+ // `hsvToRgb`
483
+ // Converts an HSV color value to RGB.
484
+ // *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
485
+ // *Returns:* { r, g, b } in the set [0, 255]
486
+ function hsvToRgb(h, s, v) {
487
+
488
+ h = bound01(h, 360) * 6;
489
+ s = bound01(s, 100);
490
+ v = bound01(v, 100);
491
+
492
+ var i = Math.floor(h),
493
+ f = h - i,
494
+ p = v * (1 - s),
495
+ q = v * (1 - f * s),
496
+ t = v * (1 - (1 - f) * s),
497
+ mod = i % 6,
498
+ r = [v, q, p, p, t, v][mod],
499
+ g = [t, v, v, q, p, p][mod],
500
+ b = [p, p, t, v, v, q][mod];
501
+
502
+ return { r: r * 255, g: g * 255, b: b * 255 };
503
+ }
504
+
505
+ // `rgbToHex`
506
+ // Converts an RGB color to hex
507
+ // Assumes r, g, and b are contained in the set [0, 255]
508
+ // Returns a 3 or 6 character hex
509
+ function rgbToHex(r, g, b, allow3Char) {
510
+
511
+ var hex = [
512
+ pad2(mathRound(r).toString(16)),
513
+ pad2(mathRound(g).toString(16)),
514
+ pad2(mathRound(b).toString(16))
515
+ ];
516
+
517
+ // Return a 3 character hex if possible
518
+ if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) {
519
+ return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
520
+ }
521
+
522
+ return hex.join("");
523
+ }
524
+
525
+ // `rgbaToHex`
526
+ // Converts an RGBA color plus alpha transparency to hex
527
+ // Assumes r, g, b are contained in the set [0, 255] and
528
+ // a in [0, 1]. Returns a 4 or 8 character rgba hex
529
+ function rgbaToHex(r, g, b, a, allow4Char) {
530
+
531
+ var hex = [
532
+ pad2(mathRound(r).toString(16)),
533
+ pad2(mathRound(g).toString(16)),
534
+ pad2(mathRound(b).toString(16)),
535
+ pad2(convertDecimalToHex(a))
536
+ ];
537
+
538
+ // Return a 4 character hex if possible
539
+ if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) {
540
+ return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);
541
+ }
542
+
543
+ return hex.join("");
544
+ }
545
+
546
+ // `rgbaToArgbHex`
547
+ // Converts an RGBA color to an ARGB Hex8 string
548
+ // Rarely used, but required for "toFilter()"
549
+ function rgbaToArgbHex(r, g, b, a) {
550
+
551
+ var hex = [
552
+ pad2(convertDecimalToHex(a)),
553
+ pad2(mathRound(r).toString(16)),
554
+ pad2(mathRound(g).toString(16)),
555
+ pad2(mathRound(b).toString(16))
556
+ ];
557
+
558
+ return hex.join("");
559
+ }
560
+
561
+ // `equals`
562
+ // Can be called with any tinycolor input
563
+ tinycolor.equals = function (color1, color2) {
564
+ if (!color1 || !color2) { return false; }
565
+ return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString();
566
+ };
567
+
568
+ tinycolor.random = function() {
569
+ return tinycolor.fromRatio({
570
+ r: mathRandom(),
571
+ g: mathRandom(),
572
+ b: mathRandom()
573
+ });
574
+ };
575
+
576
+
577
+ // Modification Functions
578
+ // ----------------------
579
+ // Thanks to less.js for some of the basics here
580
+ // <https://github.com/cloudhead/less.js/blob/master/lib/less/functions.js>
581
+
582
+ function desaturate(color, amount) {
583
+ amount = (amount === 0) ? 0 : (amount || 10);
584
+ var hsl = tinycolor(color).toHsl();
585
+ hsl.s -= amount / 100;
586
+ hsl.s = clamp01(hsl.s);
587
+ return tinycolor(hsl);
588
+ }
589
+
590
+ function saturate(color, amount) {
591
+ amount = (amount === 0) ? 0 : (amount || 10);
592
+ var hsl = tinycolor(color).toHsl();
593
+ hsl.s += amount / 100;
594
+ hsl.s = clamp01(hsl.s);
595
+ return tinycolor(hsl);
596
+ }
597
+
598
+ function greyscale(color) {
599
+ return tinycolor(color).desaturate(100);
600
+ }
601
+
602
+ function lighten (color, amount) {
603
+ amount = (amount === 0) ? 0 : (amount || 10);
604
+ var hsl = tinycolor(color).toHsl();
605
+ hsl.l += amount / 100;
606
+ hsl.l = clamp01(hsl.l);
607
+ return tinycolor(hsl);
608
+ }
609
+
610
+ function brighten(color, amount) {
611
+ amount = (amount === 0) ? 0 : (amount || 10);
612
+ var rgb = tinycolor(color).toRgb();
613
+ rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * - (amount / 100))));
614
+ rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * - (amount / 100))));
615
+ rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * - (amount / 100))));
616
+ return tinycolor(rgb);
617
+ }
618
+
619
+ function darken (color, amount) {
620
+ amount = (amount === 0) ? 0 : (amount || 10);
621
+ var hsl = tinycolor(color).toHsl();
622
+ hsl.l -= amount / 100;
623
+ hsl.l = clamp01(hsl.l);
624
+ return tinycolor(hsl);
625
+ }
626
+
627
+ // Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
628
+ // Values outside of this range will be wrapped into this range.
629
+ function spin(color, amount) {
630
+ var hsl = tinycolor(color).toHsl();
631
+ var hue = (hsl.h + amount) % 360;
632
+ hsl.h = hue < 0 ? 360 + hue : hue;
633
+ return tinycolor(hsl);
634
+ }
635
+
636
+ // Combination Functions
637
+ // ---------------------
638
+ // Thanks to jQuery xColor for some of the ideas behind these
639
+ // <https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js>
640
+
641
+ function complement(color) {
642
+ var hsl = tinycolor(color).toHsl();
643
+ hsl.h = (hsl.h + 180) % 360;
644
+ return tinycolor(hsl);
645
+ }
646
+
647
+ function triad(color) {
648
+ var hsl = tinycolor(color).toHsl();
649
+ var h = hsl.h;
650
+ return [
651
+ tinycolor(color),
652
+ tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }),
653
+ tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l })
654
+ ];
655
+ }
656
+
657
+ function tetrad(color) {
658
+ var hsl = tinycolor(color).toHsl();
659
+ var h = hsl.h;
660
+ return [
661
+ tinycolor(color),
662
+ tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }),
663
+ tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }),
664
+ tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l })
665
+ ];
666
+ }
667
+
668
+ function splitcomplement(color) {
669
+ var hsl = tinycolor(color).toHsl();
670
+ var h = hsl.h;
671
+ return [
672
+ tinycolor(color),
673
+ tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l}),
674
+ tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l})
675
+ ];
676
+ }
677
+
678
+ function analogous(color, results, slices) {
679
+ results = results || 6;
680
+ slices = slices || 30;
681
+
682
+ var hsl = tinycolor(color).toHsl();
683
+ var part = 360 / slices;
684
+ var ret = [tinycolor(color)];
685
+
686
+ for (hsl.h = ((hsl.h - (part * results >> 1)) + 720) % 360; --results; ) {
687
+ hsl.h = (hsl.h + part) % 360;
688
+ ret.push(tinycolor(hsl));
689
+ }
690
+ return ret;
691
+ }
692
+
693
+ function monochromatic(color, results) {
694
+ results = results || 6;
695
+ var hsv = tinycolor(color).toHsv();
696
+ var h = hsv.h, s = hsv.s, v = hsv.v;
697
+ var ret = [];
698
+ var modification = 1 / results;
699
+
700
+ while (results--) {
701
+ ret.push(tinycolor({ h: h, s: s, v: v}));
702
+ v = (v + modification) % 1;
703
+ }
704
+
705
+ return ret;
706
+ }
707
+
708
+ // Utility Functions
709
+ // ---------------------
710
+
711
+ tinycolor.mix = function(color1, color2, amount) {
712
+ amount = (amount === 0) ? 0 : (amount || 50);
713
+
714
+ var rgb1 = tinycolor(color1).toRgb();
715
+ var rgb2 = tinycolor(color2).toRgb();
716
+
717
+ var p = amount / 100;
718
+
719
+ var rgba = {
720
+ r: ((rgb2.r - rgb1.r) * p) + rgb1.r,
721
+ g: ((rgb2.g - rgb1.g) * p) + rgb1.g,
722
+ b: ((rgb2.b - rgb1.b) * p) + rgb1.b,
723
+ a: ((rgb2.a - rgb1.a) * p) + rgb1.a
724
+ };
725
+
726
+ return tinycolor(rgba);
727
+ };
728
+
729
+
730
+ // Readability Functions
731
+ // ---------------------
732
+ // <http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef (WCAG Version 2)
733
+
734
+ // `contrast`
735
+ // Analyze the 2 colors and returns the color contrast defined by (WCAG Version 2)
736
+ tinycolor.readability = function(color1, color2) {
737
+ var c1 = tinycolor(color1);
738
+ var c2 = tinycolor(color2);
739
+ return (Math.max(c1.getLuminance(),c2.getLuminance())+0.05) / (Math.min(c1.getLuminance(),c2.getLuminance())+0.05);
740
+ };
741
+
742
+ // `isReadable`
743
+ // Ensure that foreground and background color combinations meet WCAG2 guidelines.
744
+ // The third argument is an optional Object.
745
+ // the 'level' property states 'AA' or 'AAA' - if missing or invalid, it defaults to 'AA';
746
+ // the 'size' property states 'large' or 'small' - if missing or invalid, it defaults to 'small'.
747
+ // If the entire object is absent, isReadable defaults to {level:"AA",size:"small"}.
748
+
749
+ // *Example*
750
+ // tinycolor.isReadable("#000", "#111") => false
751
+ // tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false
752
+ tinycolor.isReadable = function(color1, color2, wcag2) {
753
+ var readability = tinycolor.readability(color1, color2);
754
+ var wcag2Parms, out;
755
+
756
+ out = false;
757
+
758
+ wcag2Parms = validateWCAG2Parms(wcag2);
759
+ switch (wcag2Parms.level + wcag2Parms.size) {
760
+ case "AAsmall":
761
+ case "AAAlarge":
762
+ out = readability >= 4.5;
763
+ break;
764
+ case "AAlarge":
765
+ out = readability >= 3;
766
+ break;
767
+ case "AAAsmall":
768
+ out = readability >= 7;
769
+ break;
770
+ }
771
+ return out;
772
+
773
+ };
774
+
775
+ // `mostReadable`
776
+ // Given a base color and a list of possible foreground or background
777
+ // colors for that base, returns the most readable color.
778
+ // Optionally returns Black or White if the most readable color is unreadable.
779
+ // *Example*
780
+ // tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255"
781
+ // tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString(); // "#ffffff"
782
+ // tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3"
783
+ // tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff"
784
+ tinycolor.mostReadable = function(baseColor, colorList, args) {
785
+ var bestColor = null;
786
+ var bestScore = 0;
787
+ var readability;
788
+ var includeFallbackColors, level, size ;
789
+ args = args || {};
790
+ includeFallbackColors = args.includeFallbackColors ;
791
+ level = args.level;
792
+ size = args.size;
793
+
794
+ for (var i= 0; i < colorList.length ; i++) {
795
+ readability = tinycolor.readability(baseColor, colorList[i]);
796
+ if (readability > bestScore) {
797
+ bestScore = readability;
798
+ bestColor = tinycolor(colorList[i]);
799
+ }
800
+ }
801
+
802
+ if (tinycolor.isReadable(baseColor, bestColor, {"level":level,"size":size}) || !includeFallbackColors) {
803
+ return bestColor;
804
+ }
805
+ else {
806
+ args.includeFallbackColors=false;
807
+ return tinycolor.mostReadable(baseColor,["#fff", "#000"],args);
808
+ }
809
+ };
810
+
811
+
812
+ // Big List of Colors
813
+ // ------------------
814
+ // <http://www.w3.org/TR/css3-color/#svg-color>
815
+ var names = tinycolor.names = {
816
+ aliceblue: "f0f8ff",
817
+ antiquewhite: "faebd7",
818
+ aqua: "0ff",
819
+ aquamarine: "7fffd4",
820
+ azure: "f0ffff",
821
+ beige: "f5f5dc",
822
+ bisque: "ffe4c4",
823
+ black: "000",
824
+ blanchedalmond: "ffebcd",
825
+ blue: "00f",
826
+ blueviolet: "8a2be2",
827
+ brown: "a52a2a",
828
+ burlywood: "deb887",
829
+ burntsienna: "ea7e5d",
830
+ cadetblue: "5f9ea0",
831
+ chartreuse: "7fff00",
832
+ chocolate: "d2691e",
833
+ coral: "ff7f50",
834
+ cornflowerblue: "6495ed",
835
+ cornsilk: "fff8dc",
836
+ crimson: "dc143c",
837
+ cyan: "0ff",
838
+ darkblue: "00008b",
839
+ darkcyan: "008b8b",
840
+ darkgoldenrod: "b8860b",
841
+ darkgray: "a9a9a9",
842
+ darkgreen: "006400",
843
+ darkgrey: "a9a9a9",
844
+ darkkhaki: "bdb76b",
845
+ darkmagenta: "8b008b",
846
+ darkolivegreen: "556b2f",
847
+ darkorange: "ff8c00",
848
+ darkorchid: "9932cc",
849
+ darkred: "8b0000",
850
+ darksalmon: "e9967a",
851
+ darkseagreen: "8fbc8f",
852
+ darkslateblue: "483d8b",
853
+ darkslategray: "2f4f4f",
854
+ darkslategrey: "2f4f4f",
855
+ darkturquoise: "00ced1",
856
+ darkviolet: "9400d3",
857
+ deeppink: "ff1493",
858
+ deepskyblue: "00bfff",
859
+ dimgray: "696969",
860
+ dimgrey: "696969",
861
+ dodgerblue: "1e90ff",
862
+ firebrick: "b22222",
863
+ floralwhite: "fffaf0",
864
+ forestgreen: "228b22",
865
+ fuchsia: "f0f",
866
+ gainsboro: "dcdcdc",
867
+ ghostwhite: "f8f8ff",
868
+ gold: "ffd700",
869
+ goldenrod: "daa520",
870
+ gray: "808080",
871
+ green: "008000",
872
+ greenyellow: "adff2f",
873
+ grey: "808080",
874
+ honeydew: "f0fff0",
875
+ hotpink: "ff69b4",
876
+ indianred: "cd5c5c",
877
+ indigo: "4b0082",
878
+ ivory: "fffff0",
879
+ khaki: "f0e68c",
880
+ lavender: "e6e6fa",
881
+ lavenderblush: "fff0f5",
882
+ lawngreen: "7cfc00",
883
+ lemonchiffon: "fffacd",
884
+ lightblue: "add8e6",
885
+ lightcoral: "f08080",
886
+ lightcyan: "e0ffff",
887
+ lightgoldenrodyellow: "fafad2",
888
+ lightgray: "d3d3d3",
889
+ lightgreen: "90ee90",
890
+ lightgrey: "d3d3d3",
891
+ lightpink: "ffb6c1",
892
+ lightsalmon: "ffa07a",
893
+ lightseagreen: "20b2aa",
894
+ lightskyblue: "87cefa",
895
+ lightslategray: "789",
896
+ lightslategrey: "789",
897
+ lightsteelblue: "b0c4de",
898
+ lightyellow: "ffffe0",
899
+ lime: "0f0",
900
+ limegreen: "32cd32",
901
+ linen: "faf0e6",
902
+ magenta: "f0f",
903
+ maroon: "800000",
904
+ mediumaquamarine: "66cdaa",
905
+ mediumblue: "0000cd",
906
+ mediumorchid: "ba55d3",
907
+ mediumpurple: "9370db",
908
+ mediumseagreen: "3cb371",
909
+ mediumslateblue: "7b68ee",
910
+ mediumspringgreen: "00fa9a",
911
+ mediumturquoise: "48d1cc",
912
+ mediumvioletred: "c71585",
913
+ midnightblue: "191970",
914
+ mintcream: "f5fffa",
915
+ mistyrose: "ffe4e1",
916
+ moccasin: "ffe4b5",
917
+ navajowhite: "ffdead",
918
+ navy: "000080",
919
+ oldlace: "fdf5e6",
920
+ olive: "808000",
921
+ olivedrab: "6b8e23",
922
+ orange: "ffa500",
923
+ orangered: "ff4500",
924
+ orchid: "da70d6",
925
+ palegoldenrod: "eee8aa",
926
+ palegreen: "98fb98",
927
+ paleturquoise: "afeeee",
928
+ palevioletred: "db7093",
929
+ papayawhip: "ffefd5",
930
+ peachpuff: "ffdab9",
931
+ peru: "cd853f",
932
+ pink: "ffc0cb",
933
+ plum: "dda0dd",
934
+ powderblue: "b0e0e6",
935
+ purple: "800080",
936
+ rebeccapurple: "663399",
937
+ red: "f00",
938
+ rosybrown: "bc8f8f",
939
+ royalblue: "4169e1",
940
+ saddlebrown: "8b4513",
941
+ salmon: "fa8072",
942
+ sandybrown: "f4a460",
943
+ seagreen: "2e8b57",
944
+ seashell: "fff5ee",
945
+ sienna: "a0522d",
946
+ silver: "c0c0c0",
947
+ skyblue: "87ceeb",
948
+ slateblue: "6a5acd",
949
+ slategray: "708090",
950
+ slategrey: "708090",
951
+ snow: "fffafa",
952
+ springgreen: "00ff7f",
953
+ steelblue: "4682b4",
954
+ tan: "d2b48c",
955
+ teal: "008080",
956
+ thistle: "d8bfd8",
957
+ tomato: "ff6347",
958
+ turquoise: "40e0d0",
959
+ violet: "ee82ee",
960
+ wheat: "f5deb3",
961
+ white: "fff",
962
+ whitesmoke: "f5f5f5",
963
+ yellow: "ff0",
964
+ yellowgreen: "9acd32"
965
+ };
966
+
967
+ // Make it easy to access colors via `hexNames[hex]`
968
+ var hexNames = tinycolor.hexNames = flip(names);
969
+
970
+
971
+ // Utilities
972
+ // ---------
973
+
974
+ // `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }`
975
+ function flip(o) {
976
+ var flipped = { };
977
+ for (var i in o) {
978
+ if (o.hasOwnProperty(i)) {
979
+ flipped[o[i]] = i;
980
+ }
981
+ }
982
+ return flipped;
983
+ }
984
+
985
+ // Return a valid alpha value [0,1] with all invalid values being set to 1
986
+ function boundAlpha(a) {
987
+ a = parseFloat(a);
988
+
989
+ if (isNaN(a) || a < 0 || a > 1) {
990
+ a = 1;
991
+ }
992
+
993
+ return a;
994
+ }
995
+
996
+ // Take input from [0, n] and return it as [0, 1]
997
+ function bound01(n, max) {
998
+ if (isOnePointZero(n)) { n = "100%"; }
999
+
1000
+ var processPercent = isPercentage(n);
1001
+ n = mathMin(max, mathMax(0, parseFloat(n)));
1002
+
1003
+ // Automatically convert percentage into number
1004
+ if (processPercent) {
1005
+ n = parseInt(n * max, 10) / 100;
1006
+ }
1007
+
1008
+ // Handle floating point rounding errors
1009
+ if ((Math.abs(n - max) < 0.000001)) {
1010
+ return 1;
1011
+ }
1012
+
1013
+ // Convert into [0, 1] range if it isn't already
1014
+ return (n % max) / parseFloat(max);
1015
+ }
1016
+
1017
+ // Force a number between 0 and 1
1018
+ function clamp01(val) {
1019
+ return mathMin(1, mathMax(0, val));
1020
+ }
1021
+
1022
+ // Parse a base-16 hex value into a base-10 integer
1023
+ function parseIntFromHex(val) {
1024
+ return parseInt(val, 16);
1025
+ }
1026
+
1027
+ // Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
1028
+ // <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
1029
+ function isOnePointZero(n) {
1030
+ return typeof n == "string" && n.indexOf('.') != -1 && parseFloat(n) === 1;
1031
+ }
1032
+
1033
+ // Check to see if string passed in is a percentage
1034
+ function isPercentage(n) {
1035
+ return typeof n === "string" && n.indexOf('%') != -1;
1036
+ }
1037
+
1038
+ // Force a hex value to have 2 characters
1039
+ function pad2(c) {
1040
+ return c.length == 1 ? '0' + c : '' + c;
1041
+ }
1042
+
1043
+ // Replace a decimal with it's percentage value
1044
+ function convertToPercentage(n) {
1045
+ if (n <= 1) {
1046
+ n = (n * 100) + "%";
1047
+ }
1048
+
1049
+ return n;
1050
+ }
1051
+
1052
+ // Converts a decimal to a hex value
1053
+ function convertDecimalToHex(d) {
1054
+ return Math.round(parseFloat(d) * 255).toString(16);
1055
+ }
1056
+ // Converts a hex value to a decimal
1057
+ function convertHexToDecimal(h) {
1058
+ return (parseIntFromHex(h) / 255);
1059
+ }
1060
+
1061
+ var matchers = (function() {
1062
+
1063
+ // <http://www.w3.org/TR/css3-values/#integers>
1064
+ var CSS_INTEGER = "[-\\+]?\\d+%?";
1065
+
1066
+ // <http://www.w3.org/TR/css3-values/#number-value>
1067
+ var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
1068
+
1069
+ // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
1070
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
1071
+
1072
+ // Actual matching.
1073
+ // Parentheses and commas are optional, but not required.
1074
+ // Whitespace can take the place of commas or opening paren
1075
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
1076
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
1077
+
1078
+ return {
1079
+ CSS_UNIT: new RegExp(CSS_UNIT),
1080
+ rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
1081
+ rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
1082
+ hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
1083
+ hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
1084
+ hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
1085
+ hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
1086
+ hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
1087
+ hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
1088
+ hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
1089
+ hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
1090
+ };
1091
+ })();
1092
+
1093
+ // `isValidCSSUnit`
1094
+ // Take in a single string / number and check to see if it looks like a CSS unit
1095
+ // (see `matchers` above for definition).
1096
+ function isValidCSSUnit(color) {
1097
+ return !!matchers.CSS_UNIT.exec(color);
1098
+ }
1099
+
1100
+ // `stringInputToObject`
1101
+ // Permissive string parsing. Take in a number of formats, and output an object
1102
+ // based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
1103
+ function stringInputToObject(color) {
1104
+
1105
+ color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase();
1106
+ var named = false;
1107
+ if (names[color]) {
1108
+ color = names[color];
1109
+ named = true;
1110
+ }
1111
+ else if (color == 'transparent') {
1112
+ return { r: 0, g: 0, b: 0, a: 0, format: "name" };
1113
+ }
1114
+
1115
+ // Try to match string input using regular expressions.
1116
+ // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
1117
+ // Just return an object and let the conversion functions handle that.
1118
+ // This way the result will be the same whether the tinycolor is initialized with string or object.
1119
+ var match;
1120
+ if ((match = matchers.rgb.exec(color))) {
1121
+ return { r: match[1], g: match[2], b: match[3] };
1122
+ }
1123
+ if ((match = matchers.rgba.exec(color))) {
1124
+ return { r: match[1], g: match[2], b: match[3], a: match[4] };
1125
+ }
1126
+ if ((match = matchers.hsl.exec(color))) {
1127
+ return { h: match[1], s: match[2], l: match[3] };
1128
+ }
1129
+ if ((match = matchers.hsla.exec(color))) {
1130
+ return { h: match[1], s: match[2], l: match[3], a: match[4] };
1131
+ }
1132
+ if ((match = matchers.hsv.exec(color))) {
1133
+ return { h: match[1], s: match[2], v: match[3] };
1134
+ }
1135
+ if ((match = matchers.hsva.exec(color))) {
1136
+ return { h: match[1], s: match[2], v: match[3], a: match[4] };
1137
+ }
1138
+ if ((match = matchers.hex8.exec(color))) {
1139
+ return {
1140
+ r: parseIntFromHex(match[1]),
1141
+ g: parseIntFromHex(match[2]),
1142
+ b: parseIntFromHex(match[3]),
1143
+ a: convertHexToDecimal(match[4]),
1144
+ format: named ? "name" : "hex8"
1145
+ };
1146
+ }
1147
+ if ((match = matchers.hex6.exec(color))) {
1148
+ return {
1149
+ r: parseIntFromHex(match[1]),
1150
+ g: parseIntFromHex(match[2]),
1151
+ b: parseIntFromHex(match[3]),
1152
+ format: named ? "name" : "hex"
1153
+ };
1154
+ }
1155
+ if ((match = matchers.hex4.exec(color))) {
1156
+ return {
1157
+ r: parseIntFromHex(match[1] + '' + match[1]),
1158
+ g: parseIntFromHex(match[2] + '' + match[2]),
1159
+ b: parseIntFromHex(match[3] + '' + match[3]),
1160
+ a: convertHexToDecimal(match[4] + '' + match[4]),
1161
+ format: named ? "name" : "hex8"
1162
+ };
1163
+ }
1164
+ if ((match = matchers.hex3.exec(color))) {
1165
+ return {
1166
+ r: parseIntFromHex(match[1] + '' + match[1]),
1167
+ g: parseIntFromHex(match[2] + '' + match[2]),
1168
+ b: parseIntFromHex(match[3] + '' + match[3]),
1169
+ format: named ? "name" : "hex"
1170
+ };
1171
+ }
1172
+
1173
+ return false;
1174
+ }
1175
+
1176
+ function validateWCAG2Parms(parms) {
1177
+ // return valid WCAG2 parms for isReadable.
1178
+ // If input parms are invalid, return {"level":"AA", "size":"small"}
1179
+ var level, size;
1180
+ parms = parms || {"level":"AA", "size":"small"};
1181
+ level = (parms.level || "AA").toUpperCase();
1182
+ size = (parms.size || "small").toLowerCase();
1183
+ if (level !== "AA" && level !== "AAA") {
1184
+ level = "AA";
1185
+ }
1186
+ if (size !== "small" && size !== "large") {
1187
+ size = "small";
1188
+ }
1189
+ return {"level":level, "size":size};
1190
+ }
1191
+
1192
+ // Node: Export function
1193
+ if ( true && module.exports) {
1194
+ module.exports = tinycolor;
1195
+ }
1196
+ // AMD/requirejs: Define the module
1197
+ else if (true) {
1198
+ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {return tinycolor;}).call(exports, __webpack_require__, exports, module),
1199
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
1200
+ }
1201
+ // Browser: Expose to window
1202
+ else {}
1203
+
1204
+ })(Math);
1205
+
1206
+
1207
+ /***/ })
1208
+
1209
+ /******/ });
1210
+ /************************************************************************/
1211
+ /******/ // The module cache
1212
+ /******/ var __webpack_module_cache__ = {};
1213
+ /******/
1214
+ /******/ // The require function
1215
+ /******/ function __webpack_require__(moduleId) {
1216
+ /******/ // Check if module is in cache
1217
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1218
+ /******/ if (cachedModule !== undefined) {
1219
+ /******/ return cachedModule.exports;
1220
+ /******/ }
1221
+ /******/ // Create a new module (and put it into the cache)
1222
+ /******/ var module = __webpack_module_cache__[moduleId] = {
1223
+ /******/ // no module.id needed
1224
+ /******/ // no module.loaded needed
1225
+ /******/ exports: {}
1226
+ /******/ };
1227
+ /******/
1228
+ /******/ // Execute the module function
1229
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
1230
+ /******/
1231
+ /******/ // Return the exports of the module
1232
+ /******/ return module.exports;
1233
+ /******/ }
1234
+ /******/
1235
+ /************************************************************************/
1236
+ /******/ /* webpack/runtime/compat get default export */
1237
+ /******/ (() => {
1238
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
1239
+ /******/ __webpack_require__.n = (module) => {
1240
+ /******/ var getter = module && module.__esModule ?
1241
+ /******/ () => (module['default']) :
1242
+ /******/ () => (module);
1243
+ /******/ __webpack_require__.d(getter, { a: getter });
1244
+ /******/ return getter;
1245
+ /******/ };
1246
+ /******/ })();
1247
+ /******/
1248
+ /******/ /* webpack/runtime/define property getters */
1249
+ /******/ (() => {
1250
+ /******/ // define getter functions for harmony exports
1251
+ /******/ __webpack_require__.d = (exports, definition) => {
1252
+ /******/ for(var key in definition) {
1253
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1254
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1255
+ /******/ }
1256
+ /******/ }
1257
+ /******/ };
1258
+ /******/ })();
1259
+ /******/
1260
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
1261
+ /******/ (() => {
1262
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
1263
+ /******/ })();
1264
+ /******/
1265
+ /************************************************************************/
1266
+ var __webpack_exports__ = {};
1267
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
1268
+ (() => {
1269
+
1270
+ // EXPORTS
1271
+ __webpack_require__.d(__webpack_exports__, {
1272
+ "Z": () => (/* binding */ src)
1273
+ });
1274
+
1275
+ ;// CONCATENATED MODULE: external "../shared"
1276
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1277
+ var y = x => () => x
1278
+ const external_shared_namespaceObject = x({ ["BKPopover"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.BKPopover, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.bkZIndexManager, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.resolveClassName, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
1279
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
1280
+ function _defineProperty(obj, key, value) {
1281
+ if (key in obj) {
1282
+ Object.defineProperty(obj, key, {
1283
+ value: value,
1284
+ enumerable: true,
1285
+ configurable: true,
1286
+ writable: true
1287
+ });
1288
+ } else {
1289
+ obj[key] = value;
1290
+ }
1291
+
1292
+ return obj;
1293
+ }
1294
+ ;// CONCATENATED MODULE: external "vue"
1295
+ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1296
+ var external_vue_y = x => () => x
1297
+ const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeMount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeMount, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
1298
+ // EXTERNAL MODULE: ../../node_modules/tinycolor2/tinycolor.js
1299
+ var tinycolor = __webpack_require__(8621);
1300
+ var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor);
1301
+ ;// CONCATENATED MODULE: external "vue-types"
1302
+ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1303
+ var external_vue_types_y = x => () => x
1304
+ const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
1305
+ ;// CONCATENATED MODULE: external "../directives"
1306
+ var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1307
+ var external_directives_y = x => () => x
1308
+ const external_directives_namespaceObject = external_directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__.clickoutside });
1309
+ ;// CONCATENATED MODULE: external "../icon"
1310
+ var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1311
+ var external_icon_y = x => () => x
1312
+ const external_icon_namespaceObject = external_icon_x({ ["AngleUp"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.AngleUp });
1313
+ ;// CONCATENATED MODULE: ../../packages/date-picker/src/base/picker-dropdown.tsx
1314
+
1315
+
1316
+ /*
1317
+ * Tencent is pleased to support the open source community by making
1318
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1319
+ *
1320
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1321
+ *
1322
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1323
+ *
1324
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1325
+ *
1326
+ * ---------------------------------------------------
1327
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1328
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1329
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1330
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1331
+ *
1332
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1333
+ * the Software.
1334
+ *
1335
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1336
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1337
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1338
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1339
+ * IN THE SOFTWARE.
1340
+ */
1341
+
1342
+
1343
+ var pickerDropdownProps = {
1344
+ placement: {
1345
+ type: String,
1346
+ "default": 'bottom-start',
1347
+ validator: function validator(value) {
1348
+ var validList = ['top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'left', 'left-start', 'left-end', 'right', 'right-start', 'right-end'];
1349
+
1350
+ if (validList.indexOf(value) < 0) {
1351
+ console.error("placement property is not valid: '".concat(value, "'"));
1352
+ return false;
1353
+ }
1354
+
1355
+ return true;
1356
+ }
1357
+ },
1358
+ className: {
1359
+ type: String
1360
+ },
1361
+ extPopoverCls: {
1362
+ type: String
1363
+ },
1364
+ appendToBody: {
1365
+ type: Boolean
1366
+ },
1367
+ triggerRef: {
1368
+ type: Object
1369
+ },
1370
+ onClick: Function
1371
+ };
1372
+ /* harmony default export */ const picker_dropdown = ((0,external_vue_namespaceObject.defineComponent)({
1373
+ props: pickerDropdownProps,
1374
+ emits: ['changeVisible'],
1375
+ setup: function setup(props, _ref) {
1376
+ var emit = _ref.emit;
1377
+ var popoverInstance = Object.create(null);
1378
+ var refContentRef = (0,external_vue_namespaceObject.ref)(null);
1379
+ (0,external_vue_namespaceObject.onMounted)(function () {
1380
+ updateDropdown();
1381
+ });
1382
+ (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
1383
+ destoryDropdown();
1384
+ }); // const resetTransformOrigin = (state) => {
1385
+ // if (popoverInstance && Object.keys(popoverInstance).length !== 0) {
1386
+ // const dataPopperPlacement = state.attributes.popper['data-popper-placement'] as string;
1387
+ // const arr = dataPopperPlacement.split('-');
1388
+ // const placementStart = arr[0];
1389
+ // const placementEnd = arr[1];
1390
+ // const leftOrRight = dataPopperPlacement === 'left' || dataPopperPlacement === 'right';
1391
+ // if (!leftOrRight) {
1392
+ // state.styles.popper.transformOrigin = placementStart === 'bottom'
1393
+ // || (placementStart !== 'top' && placementEnd === 'start')
1394
+ // ? 'center top'
1395
+ // : 'center bottom';
1396
+ // }
1397
+ // }
1398
+ // };
1399
+
1400
+ var forceUpdate = function forceUpdate() {
1401
+ var _a;
1402
+
1403
+ if (popoverInstance) {
1404
+ (_a = popoverInstance === null || popoverInstance === void 0 ? void 0 : popoverInstance.forceUpdate) === null || _a === void 0 ? void 0 : _a.call(popoverInstance);
1405
+ }
1406
+ };
1407
+
1408
+ var destoryDropdown = function destoryDropdown() {
1409
+ if (popoverInstance && Object.keys(popoverInstance).length !== 0) {
1410
+ var instance = popoverInstance;
1411
+ instance.isShow && instance.hide();
1412
+ instance.destroy();
1413
+ popoverInstance = null;
1414
+ emit('changeVisible', false);
1415
+ }
1416
+ }; // const transforms = {
1417
+ // top: 'bottom center',
1418
+ // 'top-start': 'bottom left',
1419
+ // 'top-end': 'bottom right',
1420
+ // bottom: 'top center',
1421
+ // 'bottom-start': 'top left',
1422
+ // 'bottom-end': 'top right',
1423
+ // left: 'right center',
1424
+ // 'left-start': 'right top',
1425
+ // 'left-end': 'right bottom',
1426
+ // right: 'left center',
1427
+ // 'right-start': 'left top',
1428
+ // 'right-end': 'left bottom',
1429
+ // };
1430
+ // const toTransformOrigin = (placement: Placement) => transforms[placement];
1431
+ // const toVar = (value: string, fallback?: string) => ({
1432
+ // var: value,
1433
+ // varRef: fallback ? `var(${value}, ${fallback})` : `var(${value})`,
1434
+ // });
1435
+ // const cssVars = {
1436
+ // arrowShadowColor: toVar('--popper-arrow-shadow-color'),
1437
+ // arrowSize: toVar('--popper-arrow-size', '8px'),
1438
+ // arrowSizeHalf: toVar('--popper-arrow-size-half'),
1439
+ // arrowBg: toVar('--popper-arrow-bg'),
1440
+ // transformOrigin: toVar('--popper-transform-origin'),
1441
+ // arrowOffset: toVar('--popper-arrow-offset'),
1442
+ // } as const;
1443
+ // const setTransformOrigin = (state: State) => {
1444
+ // state.elements.popper.style.setProperty(
1445
+ // cssVars.transformOrigin.var,
1446
+ // toTransformOrigin(state.placement),
1447
+ // );
1448
+ // };
1449
+ // const transformOrigin: Modifier<'transformOrigin', any> = {
1450
+ // name: 'transformOrigin',
1451
+ // enabled: true,
1452
+ // phase: 'write',
1453
+ // fn: ({ state }) => {
1454
+ // setTransformOrigin(state);
1455
+ // },
1456
+ // effect: ({ state }) => () => {
1457
+ // setTransformOrigin(state);
1458
+ // },
1459
+ // };
1460
+ // const matchWidth: Modifier<'matchWidth', any> = {
1461
+ // name: 'matchWidth',
1462
+ // enabled: true,
1463
+ // phase: 'beforeWrite',
1464
+ // requires: ['computeStyles'],
1465
+ // fn: ({ state }) => {
1466
+ // state.styles.popper.width = `${state.rects.reference.width + 1}px`;
1467
+ // },
1468
+ // effect: ({ state }) => () => {
1469
+ // const reference = state.elements.reference as HTMLElement;
1470
+ // state.elements.popper.style.width = `${reference.offsetWidth}px`;
1471
+ // },
1472
+ // };
1473
+
1474
+
1475
+ var updateDropdown = function updateDropdown() {
1476
+ if (popoverInstance && Object.keys(popoverInstance).length !== 0) {
1477
+ (0,external_vue_namespaceObject.nextTick)(function () {
1478
+ popoverInstance.update();
1479
+ });
1480
+ } else {
1481
+ (0,external_vue_namespaceObject.nextTick)(function () {
1482
+ popoverInstance = new external_shared_namespaceObject.BKPopover(props.triggerRef, refContentRef.value, {
1483
+ placement: props.placement,
1484
+ trigger: 'manual',
1485
+ modifiers: [// matchWidth,
1486
+ // transformOrigin,
1487
+ {
1488
+ name: 'computeStyles',
1489
+ options: {
1490
+ adaptive: false,
1491
+ gpuAcceleration: false
1492
+ }
1493
+ }, {
1494
+ name: 'offset',
1495
+ options: {
1496
+ offset: [0, 4]
1497
+ }
1498
+ } // {
1499
+ // name: 'preventOverflow',
1500
+ // options: {
1501
+ // // boundariesElement: 'window',
1502
+ // padding: {
1503
+ // top: 2,
1504
+ // bottom: 2,
1505
+ // left: 5,
1506
+ // right: 5,
1507
+ // },
1508
+ // },
1509
+ // },
1510
+ // {
1511
+ // name: 'flip',
1512
+ // options: {
1513
+ // padding: 5,
1514
+ // rootBoundary: 'document',
1515
+ // },
1516
+ // },
1517
+ // {
1518
+ // name: 'onUpdate',
1519
+ // enabled: true,
1520
+ // phase: 'afterWrite',
1521
+ // fn({ state }) {
1522
+ // resetTransformOrigin(state);
1523
+ // },
1524
+ // },
1525
+ ] // onFirstUpdate: () => {
1526
+ // resetTransformOrigin(popoverInstance.instance.state);
1527
+ // },
1528
+
1529
+ }); // popoverInstance.update();
1530
+ });
1531
+ }
1532
+ };
1533
+
1534
+ var styles = (0,external_vue_namespaceObject.computed)(function () {
1535
+ var style = {};
1536
+
1537
+ if (props.appendToBody) {
1538
+ style['z-index'] = 1060 + external_shared_namespaceObject.bkZIndexManager.getModalNextIndex();
1539
+ }
1540
+
1541
+ return style;
1542
+ });
1543
+ var state = (0,external_vue_namespaceObject.reactive)({
1544
+ styles: styles
1545
+ });
1546
+ return Object.assign(Object.assign({}, (0,external_vue_namespaceObject.toRefs)(state)), {
1547
+ refContentRef: refContentRef,
1548
+ forceUpdate: forceUpdate,
1549
+ updateDropdown: updateDropdown,
1550
+ destoryDropdown: destoryDropdown
1551
+ });
1552
+ },
1553
+ render: function render() {
1554
+ var _a, _b, _c;
1555
+
1556
+ return (0,external_vue_namespaceObject.createVNode)("div", {
1557
+ "ref": "refContentRef",
1558
+ "class": [(0,external_shared_namespaceObject.resolveClassName)('date-picker-dropdown'), this.className, this.extPopoverCls],
1559
+ "style": this.styles,
1560
+ "onClick": this.onClick
1561
+ }, [(_c = (_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : '']);
1562
+ }
1563
+ }));
1564
+ ;// CONCATENATED MODULE: ../../packages/color-picker/src/components/input-container.tsx
1565
+
1566
+
1567
+ /*
1568
+ * Tencent is pleased to support the open source community by making
1569
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1570
+ *
1571
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1572
+ *
1573
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1574
+ *
1575
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1576
+ *
1577
+ * ---------------------------------------------------
1578
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1579
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1580
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1581
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1582
+ *
1583
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1584
+ * the Software.
1585
+ *
1586
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1587
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1588
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1589
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1590
+ * IN THE SOFTWARE.
1591
+ */
1592
+
1593
+
1594
+ var inputContainerProps = {
1595
+ info: external_shared_namespaceObject.PropTypes.object.isRequired
1596
+ };
1597
+ /* harmony default export */ const input_container = ((0,external_vue_namespaceObject.defineComponent)({
1598
+ props: inputContainerProps,
1599
+ emits: ['tab', 'input'],
1600
+ setup: function setup(props, _ref) {
1601
+ var emit = _ref.emit;
1602
+
1603
+ var handleTab = function handleTab(e) {
1604
+ if (props.info.key === 'a') {
1605
+ emit('tab', e);
1606
+ }
1607
+ };
1608
+
1609
+ var handleInput = function handleInput(e) {
1610
+ var key = props.info.key;
1611
+ var value = e.target.value;
1612
+ emit('input', key, value);
1613
+ };
1614
+
1615
+ var colorPickerCls = (0,external_vue_namespaceObject.computed)(function () {
1616
+ return (0,external_shared_namespaceObject.classes)({
1617
+ error: props.info.error
1618
+ }, 'bk-color-picker-input-value');
1619
+ });
1620
+ return function () {
1621
+ return (0,external_vue_namespaceObject.createVNode)("div", {
1622
+ "class": "bk-color-picker-input-part"
1623
+ }, [(0,external_vue_namespaceObject.createVNode)("input", {
1624
+ "type": props.info.name === 'HEX' ? 'text' : 'number',
1625
+ "class": colorPickerCls.value,
1626
+ "value": props.info.value,
1627
+ "onKeydown": handleTab,
1628
+ "onInput": handleInput
1629
+ }, null), (0,external_vue_namespaceObject.createVNode)("span", {
1630
+ "class": "bk-color-picker-input-text"
1631
+ }, [props.info.name])]);
1632
+ };
1633
+ }
1634
+ }));
1635
+ ;// CONCATENATED MODULE: ../../packages/color-picker/src/components/color-input.tsx
1636
+
1637
+
1638
+ /*
1639
+ * Tencent is pleased to support the open source community by making
1640
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1641
+ *
1642
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1643
+ *
1644
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1645
+ *
1646
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1647
+ *
1648
+ * ---------------------------------------------------
1649
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1650
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1651
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1652
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1653
+ *
1654
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1655
+ * the Software.
1656
+ *
1657
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1658
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1659
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1660
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1661
+ * IN THE SOFTWARE.
1662
+ */
1663
+
1664
+
1665
+
1666
+
1667
+ var colorPickerProps = {
1668
+ colorObj: external_shared_namespaceObject.PropTypes.object.isRequired
1669
+ };
1670
+ /* harmony default export */ const color_input = ((0,external_vue_namespaceObject.defineComponent)({
1671
+ name: 'ColorPicker',
1672
+ props: colorPickerProps,
1673
+ emits: ['change', 'tab'],
1674
+ setup: function setup(props, _ref) {
1675
+ var emit = _ref.emit;
1676
+ var hex = (0,external_vue_namespaceObject.reactive)({
1677
+ key: 'hex',
1678
+ name: 'HEX',
1679
+ value: props.colorObj.hex,
1680
+ error: false
1681
+ });
1682
+ var r = (0,external_vue_namespaceObject.reactive)({
1683
+ key: 'r',
1684
+ name: 'R',
1685
+ value: props.colorObj.rgba.r.toString(),
1686
+ error: false
1687
+ });
1688
+ var g = (0,external_vue_namespaceObject.reactive)({
1689
+ key: 'g',
1690
+ name: 'G',
1691
+ value: props.colorObj.rgba.g.toString(),
1692
+ error: false
1693
+ });
1694
+ var b = (0,external_vue_namespaceObject.reactive)({
1695
+ key: 'b',
1696
+ name: 'B',
1697
+ value: props.colorObj.rgba.b.toString(),
1698
+ error: false
1699
+ });
1700
+ var a = (0,external_vue_namespaceObject.reactive)({
1701
+ key: 'a',
1702
+ name: 'Alpha',
1703
+ value: props.colorObj.rgba.a.toString(),
1704
+ error: false
1705
+ });
1706
+ (0,external_vue_namespaceObject.watch)(function () {
1707
+ return props.colorObj;
1708
+ }, function (val) {
1709
+ if (tinycolor_default()(val.hex).toString() !== tinycolor_default()(hex.value).toString()) {
1710
+ // 只有 hex 代表的颜色不同才同步,像这种手动输入了 #fEF 等价于 #ffeeff 就不同步
1711
+ hex.value = val.hex;
1712
+ }
1713
+
1714
+ r.value = val.rgba.r.toString();
1715
+ g.value = val.rgba.g.toString();
1716
+ b.value = val.rgba.b.toString();
1717
+ a.value = val.rgba.a.toString(); // 每次变化时校验以更新存在的错误
1718
+
1719
+ validate();
1720
+ }, {
1721
+ deep: true
1722
+ }); // 最后的 alpha 表单 tab 事件
1723
+
1724
+ var handleAlphaTab = function handleAlphaTab(e) {
1725
+ emit('tab', e);
1726
+ };
1727
+ /**
1728
+ * 处理手动输入颜色
1729
+ * @param {String} key
1730
+ * @param {String} value
1731
+ */
1732
+
1733
+
1734
+ var handleInput = function handleInput(key, value) {
1735
+ var colorList = {
1736
+ r: r,
1737
+ g: g,
1738
+ b: b,
1739
+ a: a,
1740
+ hex: hex
1741
+ };
1742
+ colorList[key].value = value;
1743
+
1744
+ if (validate()) {
1745
+ var colorStr = key === 'hex' ? hex.value : "rgba(".concat(r.value, ", ").concat(g.value, ", ").concat(b.value, ", ").concat(a.value, ")");
1746
+ emit('change', colorStr);
1747
+ }
1748
+ }; // 判断表单输入值是否合法
1749
+
1750
+
1751
+ var validate = function validate() {
1752
+ var result = true; // hex
1753
+
1754
+ if (hex.value.startsWith('#') && (hex.value.length === 4 || hex.value.length === 7) && !hex.value.slice(1).match(/[^0-9a-fA-F]/)) {
1755
+ hex.error = false;
1756
+ } else {
1757
+ hex.error = true;
1758
+ result = false;
1759
+ } // a
1760
+
1761
+
1762
+ if (a.value !== '' && a.value >= 0 && a.value <= 1) {
1763
+ a.error = false;
1764
+ } else {
1765
+ a.error = true;
1766
+ result = false;
1767
+ } // r g b
1768
+
1769
+
1770
+ for (var _i = 0, _arr = [r, g, b]; _i < _arr.length; _i++) {
1771
+ var colorInfo = _arr[_i];
1772
+ var value = colorInfo.value;
1773
+
1774
+ if (value !== '' && value >= 0 && value <= 255) {
1775
+ colorInfo.error = false;
1776
+ } else {
1777
+ colorInfo.error = true;
1778
+ result = false;
1779
+ }
1780
+ }
1781
+
1782
+ return result;
1783
+ };
1784
+
1785
+ return function () {
1786
+ return (0,external_vue_namespaceObject.createVNode)("div", {
1787
+ "class": "bk-color-picker-input"
1788
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
1789
+ "class": "bk-color-picker-input-hex"
1790
+ }, [(0,external_vue_namespaceObject.createVNode)(input_container, {
1791
+ "info": hex,
1792
+ "onInput": handleInput
1793
+ }, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
1794
+ "class": "bk-color-picker-input-rgba"
1795
+ }, [(0,external_vue_namespaceObject.createVNode)(input_container, {
1796
+ "info": r,
1797
+ "onInput": handleInput
1798
+ }, null), (0,external_vue_namespaceObject.createVNode)(input_container, {
1799
+ "info": g,
1800
+ "onInput": handleInput
1801
+ }, null), (0,external_vue_namespaceObject.createVNode)(input_container, {
1802
+ "info": b,
1803
+ "onInput": handleInput
1804
+ }, null), (0,external_vue_namespaceObject.createVNode)(input_container, {
1805
+ "info": a,
1806
+ "onInput": handleInput,
1807
+ "onTab": handleAlphaTab
1808
+ }, null)])]);
1809
+ };
1810
+ }
1811
+ }));
1812
+ ;// CONCATENATED MODULE: ../../packages/color-picker/src/utils.ts
1813
+ /*
1814
+ * Tencent is pleased to support the open source community by making
1815
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1816
+ *
1817
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1818
+ *
1819
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1820
+ *
1821
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1822
+ *
1823
+ * ---------------------------------------------------
1824
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1825
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1826
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1827
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1828
+ *
1829
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1830
+ * the Software.
1831
+ *
1832
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1833
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1834
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1835
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1836
+ * IN THE SOFTWARE.
1837
+ */
1838
+
1839
+ /**
1840
+ * 根据饱和度面板、色值面板或普通色值标准化颜色信息
1841
+ * @param {String|Object} colorParam - 色值信息
1842
+ * @param {String} colorParam.h - 色相
1843
+ * @param {String} colorParam.s - 饱和度
1844
+ * @param {String} [colorParam.l] - 亮度
1845
+ * @param {String} [colorParam.v] - 明度
1846
+ * @param {String} colorParam.a - 透明度
1847
+ * @returns {Object} - 转化后的色值对象
1848
+ */
1849
+
1850
+ var formatColor = function formatColor(colorParam) {
1851
+ var colorValue = colorParam;
1852
+
1853
+ if (colorParam === '') {
1854
+ colorValue = '#FFFFFF';
1855
+ } // 如果参数不合法会返回黑色#000相关信息
1856
+
1857
+
1858
+ var tinyColor = tinycolor_default()(colorParam);
1859
+ var hsl = tinyColor.toHsl();
1860
+ var hsv = tinyColor.toHsv(); // 因为饱和度为0时,颜色不受色相值影响,色相会置零,但是这里需要在面板中保存色相值
1861
+
1862
+ if (hsl.s === 0) {
1863
+ hsl.h = colorValue.h || 0;
1864
+ hsv.h = colorValue.h || 0;
1865
+ } // when the hsv.v is less than 0.0164 (base on test)
1866
+ // because of possible loss of precision
1867
+ // the result of hue and saturation would be miscalculated
1868
+
1869
+
1870
+ if (hsv.v < 0.0164) {
1871
+ hsv.h = colorValue.h || 0;
1872
+ hsv.s = colorValue.s || 0;
1873
+ }
1874
+
1875
+ if (hsl.l < 0.01) {
1876
+ hsl.h = colorValue.h || 0;
1877
+ hsl.s = colorValue.s || 0;
1878
+ }
1879
+
1880
+ return {
1881
+ hsl: hsl,
1882
+ hsv: hsv,
1883
+ hex: tinyColor.toHexString().toUpperCase(),
1884
+ rgba: tinyColor.toRgb()
1885
+ };
1886
+ };
1887
+ /**
1888
+ * 返回指定闭区间数值
1889
+ * @param {Number} value
1890
+ * @param {Number} min
1891
+ * @param {Number} max
1892
+ * @returns {Number}
1893
+ */
1894
+
1895
+ var clamp = function clamp(value, min, max) {
1896
+ if (value < min) {
1897
+ return min;
1898
+ }
1899
+
1900
+ if (value > max) {
1901
+ return max;
1902
+ }
1903
+
1904
+ return value;
1905
+ };
1906
+ /**
1907
+ * 移动端获取事件位置
1908
+ * @param {Object} e
1909
+ * @param {String} prop
1910
+ * @returns {Number}
1911
+ */
1912
+
1913
+ var getTouches = function getTouches(e, prop) {
1914
+ return e.touches ? e.touches[0][prop] : 0;
1915
+ };
1916
+ /**
1917
+ * 转化 rgba 色值字符串
1918
+ * @param {Object} rgba
1919
+ * @returns {String}
1920
+ */
1921
+
1922
+ var toRGBAString = function toRGBAString(rgba) {
1923
+ var r = rgba.r,
1924
+ g = rgba.g,
1925
+ b = rgba.b,
1926
+ a = rgba.a;
1927
+ return "rgba(".concat([r, g, b, a].join(','), ")");
1928
+ };
1929
+ ;// CONCATENATED MODULE: ../../packages/color-picker/src/components/hue-slider.tsx
1930
+
1931
+
1932
+ /*
1933
+ * Tencent is pleased to support the open source community by making
1934
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1935
+ *
1936
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1937
+ *
1938
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1939
+ *
1940
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1941
+ *
1942
+ * ---------------------------------------------------
1943
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1944
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1945
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1946
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1947
+ *
1948
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1949
+ * the Software.
1950
+ *
1951
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1952
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1953
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1954
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1955
+ * IN THE SOFTWARE.
1956
+ */
1957
+
1958
+
1959
+
1960
+ var hue_slider_colorPickerProps = {
1961
+ colorObj: external_shared_namespaceObject.PropTypes.object.isRequired
1962
+ };
1963
+ /* harmony default export */ const hue_slider = ((0,external_vue_namespaceObject.defineComponent)({
1964
+ name: 'ColorPicker',
1965
+ props: hue_slider_colorPickerProps,
1966
+ emits: ['change'],
1967
+ setup: function setup(props, _ref) {
1968
+ var emit = _ref.emit;
1969
+ var containerRef = (0,external_vue_namespaceObject.ref)(null);
1970
+ var pointerStyle = (0,external_vue_namespaceObject.computed)(function () {
1971
+ return {
1972
+ left: "".concat(props.colorObj.hsv.h / 360 * 100, "%")
1973
+ };
1974
+ });
1975
+
1976
+ var handleArrowKeydown = function handleArrowKeydown(e) {
1977
+ var clientWidth = containerRef.value.clientWidth;
1978
+ var left = props.colorObj.hsv.h / 360 * clientWidth;
1979
+ var step = 2;
1980
+ var hugeStep = 10;
1981
+
1982
+ switch (e.code) {
1983
+ case 'ArrowLeft':
1984
+ e.preventDefault();
1985
+ left = clamp(left - step, 0, clientWidth);
1986
+ break;
1987
+
1988
+ case 'ArrowRight':
1989
+ e.preventDefault();
1990
+ left = clamp(left + step, 0, clientWidth);
1991
+ break;
1992
+
1993
+ case 'ArrowUp':
1994
+ e.preventDefault();
1995
+ left = clamp(left - hugeStep, 0, clientWidth);
1996
+ break;
1997
+
1998
+ case 'ArrowDown':
1999
+ e.preventDefault();
2000
+ left = clamp(left + hugeStep, 0, clientWidth);
2001
+ break;
2002
+
2003
+ default:
2004
+ return;
2005
+ }
2006
+
2007
+ handlePointChange(null, left);
2008
+ };
2009
+
2010
+ var handleMouseDown = function handleMouseDown(e) {
2011
+ containerRef.value.focus();
2012
+ handlePointChange(e);
2013
+ window.addEventListener('mousemove', handlePointChange, {
2014
+ passive: true
2015
+ });
2016
+ window.addEventListener('mouseup', handleMouseUp);
2017
+ };
2018
+
2019
+ var handleMouseUp = function handleMouseUp() {
2020
+ window.removeEventListener('mousemove', handlePointChange);
2021
+ window.removeEventListener('mouseup', handleMouseUp);
2022
+ };
2023
+ /**
2024
+ * 色相面板变化
2025
+ * @param {MouseEvent|null} e - 鼠标滑动事件
2026
+ * @param {Number} [appointedLeft] - 键盘事件对应坐标,如果有就优先使用
2027
+ */
2028
+
2029
+
2030
+ var handlePointChange = function handlePointChange(e, appointedLeft) {
2031
+ var clientWidth = containerRef.value.clientWidth;
2032
+ var left = appointedLeft !== undefined ? appointedLeft : getLeft(e);
2033
+ changeColor(left / clientWidth);
2034
+ };
2035
+
2036
+ var getLeft = function getLeft(e) {
2037
+ var xOffset = containerRef.value.getBoundingClientRect().left + window.pageXOffset;
2038
+ var pageX = e.pageX || getTouches(e, 'PageX');
2039
+ return clamp(pageX - xOffset, 0, containerRef.value.clientWidth);
2040
+ };
2041
+
2042
+ var changeColor = function changeColor(ratio) {
2043
+ var _props$colorObj$hsl = props.colorObj.hsl,
2044
+ h = _props$colorObj$hsl.h,
2045
+ s = _props$colorObj$hsl.s,
2046
+ l = _props$colorObj$hsl.l,
2047
+ a = _props$colorObj$hsl.a;
2048
+ var newHue = ratio * 360;
2049
+
2050
+ if (h !== newHue) {
2051
+ emit('change', {
2052
+ h: newHue,
2053
+ s: s,
2054
+ l: l,
2055
+ a: a
2056
+ });
2057
+ }
2058
+ };
2059
+
2060
+ return function () {
2061
+ return (0,external_vue_namespaceObject.createVNode)("div", {
2062
+ "ref": containerRef,
2063
+ "tabindex": "0",
2064
+ "class": "bk-color-picker-hue",
2065
+ "onKeydown": handleArrowKeydown,
2066
+ "onMousedown": function onMousedown(e) {
2067
+ e.stopPropagation();
2068
+ e.preventDefault();
2069
+ handleMouseDown(e);
2070
+ }
2071
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
2072
+ "class": "bk-color-picker-hue-pointer",
2073
+ "style": pointerStyle.value
2074
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
2075
+ "class": "bk-color-picker-hue-rectangle"
2076
+ }, null)])]);
2077
+ };
2078
+ }
2079
+ }));
2080
+ ;// CONCATENATED MODULE: ../../packages/color-picker/src/components/recommend-colors.tsx
2081
+
2082
+
2083
+ /*
2084
+ * Tencent is pleased to support the open source community by making
2085
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2086
+ *
2087
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2088
+ *
2089
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2090
+ *
2091
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2092
+ *
2093
+ * ---------------------------------------------------
2094
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2095
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2096
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2097
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2098
+ *
2099
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2100
+ * the Software.
2101
+ *
2102
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2103
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2104
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2105
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2106
+ * IN THE SOFTWARE.
2107
+ */
2108
+
2109
+
2110
+
2111
+
2112
+ var recommend_colors_colorPickerProps = {
2113
+ colorObj: external_shared_namespaceObject.PropTypes.object.isRequired,
2114
+ recommend: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.array.def(function () {
2115
+ return [];
2116
+ }), external_shared_namespaceObject.PropTypes.bool.def(true)]).isRequired
2117
+ };
2118
+ /* harmony default export */ const recommend_colors = ((0,external_vue_namespaceObject.defineComponent)({
2119
+ props: recommend_colors_colorPickerProps,
2120
+ emits: ['change', 'tab'],
2121
+ setup: function setup(props, _ref) {
2122
+ var emit = _ref.emit;
2123
+ var isFocused = (0,external_vue_namespaceObject.ref)(false);
2124
+ var selectedIndex = (0,external_vue_namespaceObject.ref)(-1);
2125
+ var selectedColor = (0,external_vue_namespaceObject.ref)(null);
2126
+ (0,external_vue_namespaceObject.watch)(function () {
2127
+ return props.colorObj;
2128
+ }, function () {
2129
+ // 每次在外部修改颜色后预设面板都会取消预设选择的样式,即便预设和当前色一样
2130
+ // 预设里面修改颜色会在 $nextTick 恢复状态
2131
+ selectedIndex.value = -1;
2132
+ selectedColor.value = null;
2133
+ }, {
2134
+ deep: true
2135
+ });
2136
+ var colors = (0,external_vue_namespaceObject.computed)(function () {
2137
+ return getColorsFromRecommend(props.recommend);
2138
+ });
2139
+
2140
+ var getColorClass = function getColorClass(color, index) {
2141
+ return (0,external_shared_namespaceObject.classes)({
2142
+ 'bk-color-picker-empty': color === '',
2143
+ 'bk-color-picker-recommend-selected-color': isFocused.value && selectedIndex.value === index
2144
+ }, 'bk-color-picker-recommend-color');
2145
+ };
2146
+
2147
+ var handleKeydown = function handleKeydown(e) {
2148
+ if (e.code === 'Tab') {
2149
+ emit('tab', e);
2150
+ } else {
2151
+ var index = 0;
2152
+ var rowNum = 10; // 每行展示的颜色块个数,和样式相关联
2153
+
2154
+ var max = colors.value.length - 1;
2155
+
2156
+ switch (e.code) {
2157
+ case 'ArrowLeft':
2158
+ e.preventDefault();
2159
+ index = clamp(selectedIndex.value - 1, 0, max);
2160
+ break;
2161
+
2162
+ case 'ArrowRight':
2163
+ e.preventDefault();
2164
+ index = clamp(selectedIndex.value + 1, 0, max);
2165
+ break;
2166
+
2167
+ case 'ArrowUp':
2168
+ e.preventDefault();
2169
+ index = clamp(selectedIndex.value - rowNum, 0, max);
2170
+ break;
2171
+
2172
+ case 'ArrowDown':
2173
+ e.preventDefault();
2174
+ index = clamp(selectedIndex.value + rowNum, 0, max);
2175
+ break;
2176
+
2177
+ default:
2178
+ return;
2179
+ }
2180
+
2181
+ selectColor(index);
2182
+ }
2183
+ };
2184
+
2185
+ var selectColor = function selectColor(index) {
2186
+ var color = colors.value[index];
2187
+ emit('change', color); // 预设里面修改颜色不重置状态(恢复状态)
2188
+
2189
+ (0,external_vue_namespaceObject.nextTick)(function () {
2190
+ selectedIndex.value = index;
2191
+ selectedColor.value = color;
2192
+ });
2193
+ };
2194
+ /**
2195
+ * 校验、处理预设值
2196
+ * @param {Boolean|String[]} recommend
2197
+ * @returns {String[]}
2198
+ */
2199
+
2200
+
2201
+ var getColorsFromRecommend = function getColorsFromRecommend(recommend) {
2202
+ if (recommend === true) {
2203
+ return ['', '#ff4500', '#ff8c00', '#ffd700', '#90ee90', '#ddffff', '#00ced1', '#3a84ff', '#a933f5', '#db7093', '#000000', '#494949', '#9B9B9B', '#ffffff'];
2204
+ }
2205
+
2206
+ if (Array.isArray(recommend)) {
2207
+ // 如果预设值是无效的,这里按空字符串处理以显示提示用户,应该输入正确的色值
2208
+ return recommend.map(function (color) {
2209
+ return tinycolor_default()(color).isValid() ? color : '';
2210
+ });
2211
+ }
2212
+ };
2213
+
2214
+ return function () {
2215
+ return (0,external_vue_namespaceObject.createVNode)("div", {
2216
+ "tabindex": "0",
2217
+ "class": "bk-color-picker-recommend",
2218
+ "onFocus": function onFocus() {
2219
+ return isFocused.value = true;
2220
+ },
2221
+ "onBlur": function onBlur() {
2222
+ return isFocused.value = false;
2223
+ },
2224
+ "onKeydown": handleKeydown
2225
+ }, [colors.value.map(function (color, index) {
2226
+ return (0,external_vue_namespaceObject.createVNode)("div", {
2227
+ "style": "background: ".concat(color || '#fff'),
2228
+ "class": getColorClass(color, index),
2229
+ "onClick": function onClick() {
2230
+ return selectColor(index);
2231
+ }
2232
+ }, [selectedIndex.value === index ? (0,external_vue_namespaceObject.createVNode)("div", {
2233
+ "class": "bk-color-picker-pointer"
2234
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
2235
+ "class": "bk-color-picker-circle"
2236
+ }, null)]) : undefined]);
2237
+ })]);
2238
+ };
2239
+ }
2240
+ }));
2241
+ ;// CONCATENATED MODULE: ../../packages/color-picker/src/components/saturation-panel.tsx
2242
+
2243
+
2244
+ /*
2245
+ * Tencent is pleased to support the open source community by making
2246
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2247
+ *
2248
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2249
+ *
2250
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2251
+ *
2252
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2253
+ *
2254
+ * ---------------------------------------------------
2255
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2256
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2257
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2258
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2259
+ *
2260
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2261
+ * the Software.
2262
+ *
2263
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2264
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2265
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2266
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2267
+ * IN THE SOFTWARE.
2268
+ */
2269
+
2270
+
2271
+
2272
+ var saturation_panel_colorPickerProps = {
2273
+ colorObj: external_shared_namespaceObject.PropTypes.object.isRequired
2274
+ };
2275
+ /* harmony default export */ const saturation_panel = ((0,external_vue_namespaceObject.defineComponent)({
2276
+ props: saturation_panel_colorPickerProps,
2277
+ emits: ['change'],
2278
+ setup: function setup(props, _ref) {
2279
+ var emit = _ref.emit;
2280
+ var containerRef = (0,external_vue_namespaceObject.ref)(null);
2281
+ var backgroundStyle = (0,external_vue_namespaceObject.computed)(function () {
2282
+ return {
2283
+ background: "hsl(".concat(props.colorObj.hsv.h, ", 100%, 50%)")
2284
+ };
2285
+ });
2286
+ var pointerStyle = (0,external_vue_namespaceObject.computed)(function () {
2287
+ return {
2288
+ top: "".concat((1 - props.colorObj.hsv.v) * 100, "%"),
2289
+ left: "".concat(props.colorObj.hsv.s * 100, "%")
2290
+ };
2291
+ });
2292
+
2293
+ var handleMouseDown = function handleMouseDown(e) {
2294
+ containerRef.value.focus();
2295
+ handlePointChange(e);
2296
+ window.addEventListener('mousemove', handlePointChange, {
2297
+ passive: true
2298
+ });
2299
+ window.addEventListener('mouseup', handleMouseUp);
2300
+ };
2301
+
2302
+ var handleMouseUp = function handleMouseUp() {
2303
+ window.removeEventListener('mousemove', handlePointChange);
2304
+ window.removeEventListener('mouseup', handleMouseUp);
2305
+ };
2306
+
2307
+ var handleArrowKeydown = function handleArrowKeydown(e) {
2308
+ var _containerRef$value = containerRef.value,
2309
+ clientWidth = _containerRef$value.clientWidth,
2310
+ clientHeight = _containerRef$value.clientHeight;
2311
+ var left = props.colorObj.hsv.s * clientWidth;
2312
+ var top = (1 - props.colorObj.hsv.v) * clientHeight;
2313
+ var step = 10;
2314
+
2315
+ switch (e.code) {
2316
+ case 'ArrowLeft':
2317
+ e.preventDefault();
2318
+ left = clamp(left - step, 0, clientWidth);
2319
+ break;
2320
+
2321
+ case 'ArrowRight':
2322
+ e.preventDefault();
2323
+ left = clamp(left + step, 0, clientWidth);
2324
+ break;
2325
+
2326
+ case 'ArrowUp':
2327
+ e.preventDefault();
2328
+ top = clamp(top - step, 0, clientHeight);
2329
+ break;
2330
+
2331
+ case 'ArrowDown':
2332
+ e.preventDefault();
2333
+ top = clamp(top + step, 0, clientHeight);
2334
+ break;
2335
+
2336
+ default:
2337
+ return;
2338
+ }
2339
+
2340
+ handlePointChange(null, left, top);
2341
+ };
2342
+ /**
2343
+ * 饱和度面板变化
2344
+ * @param {MouseEvent|null} e - 鼠标滑动事件
2345
+ * @param {Number} [appointedLeft] - 键盘事件对应坐标,如果有就优先使用
2346
+ * @param {Number} [appointedTop] - 键盘事件对应坐标,如果有就优先使用
2347
+ */
2348
+
2349
+
2350
+ var handlePointChange = function handlePointChange(e, appointedLeft, appointedTop) {
2351
+ var _containerRef$value2 = containerRef.value,
2352
+ clientWidth = _containerRef$value2.clientWidth,
2353
+ clientHeight = _containerRef$value2.clientHeight;
2354
+ var left = appointedLeft !== undefined ? appointedLeft : getLeft(e);
2355
+ var top = appointedTop !== undefined ? appointedTop : getTop(e);
2356
+ var saturation = left / clientWidth;
2357
+ var bright = 1 - top / clientHeight;
2358
+ changeColor(props.colorObj.hsv.h, saturation, bright, props.colorObj.hsv.a);
2359
+ };
2360
+
2361
+ var getLeft = function getLeft(e) {
2362
+ var xOffset = containerRef.value.getBoundingClientRect().left + window.pageXOffset;
2363
+ var pageX = e.pageX || getTouches(e, 'PageX');
2364
+ return clamp(pageX - xOffset, 0, containerRef.value.clientWidth);
2365
+ };
2366
+
2367
+ var getTop = function getTop(e) {
2368
+ var yOffset = containerRef.value.getBoundingClientRect().top + window.pageYOffset;
2369
+ var pageY = e.pageY || getTouches(e, 'PageY');
2370
+ return clamp(pageY - yOffset, 0, containerRef.value.clientHeight);
2371
+ };
2372
+
2373
+ var changeColor = function changeColor(h, s, v, a) {
2374
+ emit('change', {
2375
+ h: h,
2376
+ s: s,
2377
+ v: v,
2378
+ a: a
2379
+ });
2380
+ };
2381
+
2382
+ return function () {
2383
+ return (0,external_vue_namespaceObject.createVNode)("div", {
2384
+ "ref": containerRef,
2385
+ "tabindex": "0",
2386
+ "class": "bk-color-picker-saturation",
2387
+ "style": backgroundStyle.value,
2388
+ "onKeydown": handleArrowKeydown,
2389
+ "onMousedown": function onMousedown(e) {
2390
+ e.stopPropagation();
2391
+ handleMouseDown(e);
2392
+ }
2393
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
2394
+ "class": "bk-color-picker-saturation-white"
2395
+ }, null), (0,external_vue_namespaceObject.createVNode)("div", {
2396
+ "class": "bk-color-picker-saturation-black"
2397
+ }, null), (0,external_vue_namespaceObject.createVNode)("div", {
2398
+ "class": "bk-color-picker-pointer",
2399
+ "style": pointerStyle.value
2400
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
2401
+ "class": "bk-color-picker-circle"
2402
+ }, null)])]);
2403
+ };
2404
+ }
2405
+ }));
2406
+ ;// CONCATENATED MODULE: ../../packages/color-picker/src/color-picker.tsx
2407
+
2408
+
2409
+
2410
+ /*
2411
+ * Tencent is pleased to support the open source community by making
2412
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2413
+ *
2414
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2415
+ *
2416
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2417
+ *
2418
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2419
+ *
2420
+ * ---------------------------------------------------
2421
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2422
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2423
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2424
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2425
+ *
2426
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2427
+ * the Software.
2428
+ *
2429
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2430
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2431
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2432
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2433
+ * IN THE SOFTWARE.
2434
+ */
2435
+
2436
+
2437
+
2438
+
2439
+
2440
+
2441
+
2442
+
2443
+
2444
+
2445
+
2446
+
2447
+ var ColorPickSizeEnum;
2448
+
2449
+ (function (ColorPickSizeEnum) {
2450
+ ColorPickSizeEnum["UNKNOWN"] = "";
2451
+ ColorPickSizeEnum["SMALL"] = "small";
2452
+ ColorPickSizeEnum["LARGE"] = "large";
2453
+ })(ColorPickSizeEnum || (ColorPickSizeEnum = {}));
2454
+
2455
+ var color_picker_colorPickerProps = {
2456
+ modelValue: external_shared_namespaceObject.PropTypes.string.def(''),
2457
+ disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
2458
+ readonly: external_shared_namespaceObject.PropTypes.bool.def(false),
2459
+ transfer: external_shared_namespaceObject.PropTypes.bool.def(false),
2460
+ size: (0,external_vue_types_namespaceObject.toType)('colorPickSize', {}).def(ColorPickSizeEnum.UNKNOWN),
2461
+ showValue: external_shared_namespaceObject.PropTypes.bool.def(true),
2462
+ // true 展示组件内置预设值
2463
+ // false 不展示预设值
2464
+ // 数组 自定义预设值
2465
+ recommend: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.array.def(function () {
2466
+ return [];
2467
+ }), external_shared_namespaceObject.PropTypes.bool.def(true)]).def(true),
2468
+ extCls: external_shared_namespaceObject.PropTypes.string.def(''),
2469
+ withValidate: external_shared_namespaceObject.PropTypes.bool.def(true)
2470
+ };
2471
+ var whiteColorObj = formatColor('#FFFFFF');
2472
+ /* harmony default export */ const color_picker = ((0,external_vue_namespaceObject.defineComponent)({
2473
+ name: 'ColorPicker',
2474
+ directives: {
2475
+ clickoutside: external_directives_namespaceObject.clickoutside
2476
+ },
2477
+ props: color_picker_colorPickerProps,
2478
+ emits: ['update:modelValue', 'change'],
2479
+ setup: function setup(props, _ref) {
2480
+ var emit = _ref.emit;
2481
+ var formItem = (0,external_shared_namespaceObject.useFormItem)();
2482
+ var showDropdown = (0,external_vue_namespaceObject.ref)(false); // 当前颜色的色值,如果为空字符串显示:默认白色背景 + 中间一个叉
2483
+
2484
+ var colorStr = (0,external_vue_namespaceObject.ref)(''); // 储存当前颜色的相关信息
2485
+
2486
+ var colorObj = (0,external_vue_namespaceObject.reactive)(JSON.parse(JSON.stringify(whiteColorObj)));
2487
+ var dropRef = (0,external_vue_namespaceObject.ref)(null);
2488
+ var saturationPanelRef = (0,external_vue_namespaceObject.ref)(null);
2489
+ var referenceRef = (0,external_vue_namespaceObject.ref)(null);
2490
+ var colorPickerCls = (0,external_vue_namespaceObject.computed)(function () {
2491
+ var _classes;
2492
+
2493
+ return (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "bk-color-picker-".concat(props.size), props.size), _defineProperty(_classes, 'bk-color-picker-show-dropdown', showDropdown.value), _defineProperty(_classes, 'bk-color-picker-show-value', props.showValue), _defineProperty(_classes, 'bk-color-picker-disabled', props.disabled || props.readonly), _classes), "bk-color-picker ".concat(props.extCls));
2494
+ }); // 是否渲染预设值
2495
+
2496
+ var isRenderRecommend = (0,external_vue_namespaceObject.computed)(function () {
2497
+ return Boolean(props.recommend === true || Array.isArray(props.recommend) && props.recommend.length);
2498
+ });
2499
+ (0,external_vue_namespaceObject.onBeforeMount)(function () {
2500
+ // 1. 组件初始化时,如果计算的色值和传入的值不一样,显示计算的色值
2501
+ changeColorFromProps({
2502
+ isCreated: true
2503
+ });
2504
+ });
2505
+ (0,external_vue_namespaceObject.watch)(function () {
2506
+ return props.modelValue;
2507
+ }, function () {
2508
+ var _a; // 2. 如果组件绑定值被外部修改,自动根据绑定至更新组件色值
2509
+
2510
+
2511
+ changeColorFromProps();
2512
+
2513
+ if (props.withValidate) {
2514
+ (_a = formItem === null || formItem === void 0 ? void 0 : formItem.validate) === null || _a === void 0 ? void 0 : _a.call(formItem, 'change');
2515
+ }
2516
+ });
2517
+
2518
+ var handleTriggerKeydown = function handleTriggerKeydown(e) {
2519
+ if (e.code === 'Enter' || e.code === 'NumpadEnter') {
2520
+ toggleDropdown();
2521
+ } else if (e.code === 'Escape') {
2522
+ closeDropdown();
2523
+ }
2524
+ };
2525
+
2526
+ var handleDropdownKeydown = function handleDropdownKeydown(e) {
2527
+ if (props.transfer) {
2528
+ handleTriggerKeydown(e);
2529
+ }
2530
+ };
2531
+
2532
+ var toggleDropdown = function toggleDropdown() {
2533
+ if (props.disabled || props.readonly) {
2534
+ return;
2535
+ }
2536
+
2537
+ showDropdown.value ? closeDropdown() : openDropdown();
2538
+ }; // 如果未开启预设则此 tab 事件为颜色选择器最后一个表单 tab 事件,重新聚焦于饱和度面板
2539
+
2540
+
2541
+ var handleTabInput = function handleTabInput(e) {
2542
+ if (!isRenderRecommend.value) {
2543
+ e.preventDefault();
2544
+ saturationPanelRef.value.$el.focus();
2545
+ }
2546
+ }; // 颜色选择器最后一个表单 tab 事件,重新聚焦于饱和度面板
2547
+
2548
+
2549
+ var handleTabRecommend = function handleTabRecommend(e) {
2550
+ e.preventDefault();
2551
+ saturationPanelRef.value.$el.focus();
2552
+ };
2553
+
2554
+ var openDropdown = function openDropdown() {
2555
+ var _a;
2556
+
2557
+ showDropdown.value = true;
2558
+ (_a = dropRef.value) === null || _a === void 0 ? void 0 : _a.updateDropdown(); // 展开后默认聚焦于 HEX 输入框,setTimeout 等 transfer 出现
2559
+
2560
+ setTimeout(function () {
2561
+ var hexInput = dropRef.value.$el.querySelector('.bk-color-picker-input-hex .bk-color-picker-input-value');
2562
+ hexInput.select();
2563
+ }, 100);
2564
+ };
2565
+
2566
+ var closeDropdown = function closeDropdown() {
2567
+ var _a;
2568
+
2569
+ if (showDropdown.value) {
2570
+ (0,external_vue_namespaceObject.nextTick)(function () {
2571
+ return referenceRef.value.focus();
2572
+ });
2573
+ showDropdown.value = false;
2574
+ (_a = dropRef.value) === null || _a === void 0 ? void 0 : _a.destoryDropdown(); // 3. 关闭组件时如果绑定值与组件内部选择的值不一致(比如既没有使用 v-model 也没有监听 change 事件)显示绑定值
2575
+
2576
+ changeColorFromProps();
2577
+ }
2578
+ };
2579
+ /**
2580
+ * created 时、props.value 变化时、每次关闭组件时调用
2581
+ * @param {Object} option
2582
+ * @param {Boolean} [option.isCreated = false] - 是否是实例创建完成后的第一次调用
2583
+ */
2584
+
2585
+
2586
+ var changeColorFromProps = function changeColorFromProps() {
2587
+ var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
2588
+ _ref2$isCreated = _ref2.isCreated,
2589
+ isCreated = _ref2$isCreated === void 0 ? false : _ref2$isCreated;
2590
+
2591
+ // 空字符串为默认值且合法
2592
+ if (props.modelValue === '') {
2593
+ // 颜色选择器有色值,用户手动修改为空字符串;或用户关闭组件时绑定的value为空字符串(没有使用组件传递的值)
2594
+ if (colorStr.value !== '') {
2595
+ colorStr.value = '';
2596
+ Object.assign(colorObj, whiteColorObj);
2597
+ emit('update:modelValue', colorStr.value);
2598
+ }
2599
+
2600
+ return;
2601
+ } // 根据 props 计算色值
2602
+
2603
+
2604
+ var propsColorObj = formatColor(props.modelValue);
2605
+ var propsColorStr = propsColorObj.rgba.a === 1 ? propsColorObj.hex : toRGBAString(propsColorObj.rgba); // 根据 props 计算的色值和组件内部色值不一致,有几种情况
2606
+
2607
+ if (propsColorStr !== colorStr.value) {
2608
+ // 传入的值是否是合法的色值
2609
+ var isValid = tinycolor_default()(props.modelValue).isValid(); // 实例挂载之前
2610
+
2611
+ if (isCreated) {
2612
+ // 传入了非法的色值,按空字符串处理并触发 change 事件
2613
+ if (!isValid) {
2614
+ Object.assign(colorObj, whiteColorObj);
2615
+ emit('change', '');
2616
+ } else {
2617
+ // 到了这里,说明传入的色值已经计算出来了,是合法的,但可能存在格式上的偏差,如用户传入 #fff 计算得 #FFFFFF
2618
+ colorStr.value = propsColorStr.toLowerCase() === props.modelValue.toLowerCase() ? props.modelValue // 如果只是大小写不一致,显示用户传入的字符
2619
+ : propsColorStr; // 其它格式上的不一致,以本组件计算值为准
2620
+
2621
+ Object.assign(colorObj, propsColorObj);
2622
+ }
2623
+ } else {
2624
+ // 实例挂载之后
2625
+ // 用户在实例挂载之后在组件外面修改色值 组件内部只是跟着 props 变化色值 并不触发 change 事件
2626
+ if (!isValid) {
2627
+ colorStr.value = '';
2628
+ Object.assign(colorObj, whiteColorObj);
2629
+ } else if (propsColorStr.toLowerCase() !== colorStr.value.toLowerCase()) {
2630
+ // 如果只是外部传入的值和当前组件显示的的值大小写不一致,不作处理
2631
+ // 比如 this.value === '#ffffff',计算值为 '#FFFFFF',不进行下面的处理直接显示 '#ffffff'
2632
+ // 反之显示内部计算值:
2633
+ Object.assign(colorObj, propsColorObj);
2634
+ colorStr.value = propsColorStr;
2635
+ }
2636
+ }
2637
+ }
2638
+ };
2639
+ /**
2640
+ * 组件内部选择颜色处理
2641
+ * @param {String|Object} val - hex,rgba,hsla,hsva
2642
+ */
2643
+
2644
+
2645
+ var handleColorChange = function handleColorChange(val) {
2646
+ // 组件内拿到的色值都是合法的,空字符串特殊处理
2647
+ if (val === '') {
2648
+ colorStr.value = '';
2649
+ Object.assign(colorObj, whiteColorObj);
2650
+ emit('update:modelValue', '');
2651
+ emit('change', '');
2652
+ return;
2653
+ }
2654
+
2655
+ var handleColorObj = formatColor(val);
2656
+ var handleColorStr = handleColorObj.rgba.a === 1 ? handleColorObj.hex : toRGBAString(handleColorObj.rgba);
2657
+ colorStr.value = handleColorStr;
2658
+ Object.assign(colorObj, handleColorObj);
2659
+ emit('update:modelValue', colorStr.value);
2660
+ emit('change', handleColorStr);
2661
+ };
2662
+
2663
+ var hideDropDown = function hideDropDown() {
2664
+ showDropdown.value = false;
2665
+ };
2666
+
2667
+ return function () {
2668
+ return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
2669
+ "ref": referenceRef,
2670
+ "tabindex": "0",
2671
+ "class": colorPickerCls.value,
2672
+ "onKeydown": handleTriggerKeydown,
2673
+ "onClick": toggleDropdown
2674
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
2675
+ "class": "bk-color-picker-color"
2676
+ }, [(0,external_vue_namespaceObject.createVNode)("span", {
2677
+ "class": "bk-color-picker-color-square ".concat(!colorStr.value && 'bk-color-picker-empty'),
2678
+ "style": "background: ".concat(colorStr.value || '#FFF')
2679
+ }, null)]), props.showValue ? (0,external_vue_namespaceObject.createVNode)("div", {
2680
+ "class": "bk-color-picker-text"
2681
+ }, [(0,external_vue_namespaceObject.createVNode)("span", null, [colorStr.value])]) : undefined, (0,external_vue_namespaceObject.createVNode)("div", {
2682
+ "class": "bk-color-picker-icon"
2683
+ }, [(0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleUp, {
2684
+ "class": "icon-angle-down"
2685
+ }, null)]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
2686
+ "name": "bk-fade-down-transition"
2687
+ }, {
2688
+ "default": function _default() {
2689
+ return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(picker_dropdown, {
2690
+ "ref": dropRef,
2691
+ "triggerRef": referenceRef.value
2692
+ }, {
2693
+ "default": function _default() {
2694
+ return [(0,external_vue_namespaceObject.createVNode)("div", {
2695
+ "class": "bk-color-dropdown-container"
2696
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
2697
+ "class": "bk-color-picker-dropdown",
2698
+ "onClick": function onClick(e) {
2699
+ e.stopPropagation();
2700
+ },
2701
+ "onMousedown": function onMousedown(e) {
2702
+ e.stopPropagation();
2703
+ },
2704
+ "onKeydown": handleDropdownKeydown
2705
+ }, [(0,external_vue_namespaceObject.createVNode)(saturation_panel, {
2706
+ "ref": saturationPanelRef,
2707
+ "colorObj": colorObj,
2708
+ "onChange": handleColorChange
2709
+ }, null), (0,external_vue_namespaceObject.createVNode)(hue_slider, {
2710
+ "colorObj": colorObj,
2711
+ "onChange": handleColorChange
2712
+ }, null), (0,external_vue_namespaceObject.createVNode)(color_input, {
2713
+ "colorObj": colorObj,
2714
+ "onTab": handleTabInput,
2715
+ "onChange": handleColorChange
2716
+ }, null), isRenderRecommend.value ? (0,external_vue_namespaceObject.createVNode)("div", {
2717
+ "class": "bk-color-picker-recommend-container"
2718
+ }, [(0,external_vue_namespaceObject.createVNode)(recommend_colors, {
2719
+ "colorObj": colorObj,
2720
+ "recommend": props.recommend,
2721
+ "onTab": handleTabRecommend,
2722
+ "onChange": handleColorChange
2723
+ }, null)]) : undefined])])];
2724
+ }
2725
+ }), [[external_vue_namespaceObject.vShow, showDropdown.value]])];
2726
+ }
2727
+ })]), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), hideDropDown]]);
2728
+ };
2729
+ }
2730
+ }));
2731
+ ;// CONCATENATED MODULE: ../../packages/color-picker/src/index.ts
2732
+ /*
2733
+ * Tencent is pleased to support the open source community by making
2734
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2735
+ *
2736
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2737
+ *
2738
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2739
+ *
2740
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2741
+ *
2742
+ * ---------------------------------------------------
2743
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2744
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2745
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2746
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2747
+ *
2748
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2749
+ * the Software.
2750
+ *
2751
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2752
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2753
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2754
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2755
+ * IN THE SOFTWARE.
2756
+ */
2757
+
2758
+
2759
+ var BkColorPicker = (0,external_shared_namespaceObject.withInstall)(color_picker);
2760
+ /* harmony default export */ const src = (BkColorPicker);
2761
+ })();
2762
+
2763
+ var __webpack_exports__default = __webpack_exports__.Z;
2764
+ export { __webpack_exports__default as default };