bkui-vue 0.0.1-beta.4 → 0.0.1-beta.400

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 (715) hide show
  1. package/License.txt +14 -0
  2. package/README.md +31 -19
  3. package/dist/index.cjs.js +182 -0
  4. package/dist/index.esm.js +39613 -0
  5. package/dist/index.umd.js +182 -0
  6. package/dist/style.css +1 -2009
  7. package/dist/style.variable.css +1 -0
  8. package/lib/affix/affix.css +3 -0
  9. package/lib/affix/affix.d.ts +47 -0
  10. package/lib/affix/affix.less +5 -0
  11. package/lib/affix/affix.variable.css +123 -0
  12. package/lib/affix/index.d.ts +143 -0
  13. package/lib/affix/index.js +1 -0
  14. package/lib/alert/alert.css +9 -3
  15. package/lib/alert/alert.d.ts +27 -18
  16. package/lib/alert/alert.less +29 -20
  17. package/lib/alert/alert.variable.css +71 -6
  18. package/lib/alert/index.d.ts +180 -0
  19. package/lib/alert/index.js +1 -1
  20. package/lib/animate-number/animate-number.d.ts +12 -7
  21. package/lib/animate-number/index.d.ts +97 -0
  22. package/lib/animate-number/index.js +1 -1
  23. package/lib/backtop/backtop.css +8 -0
  24. package/lib/backtop/backtop.d.ts +27 -13
  25. package/lib/backtop/backtop.less +8 -0
  26. package/lib/backtop/backtop.variable.css +70 -3
  27. package/lib/backtop/index.d.ts +166 -0
  28. package/lib/backtop/index.js +1 -1
  29. package/lib/badge/badge.css +7 -10
  30. package/lib/badge/badge.d.ts +64 -22
  31. package/lib/badge/badge.less +9 -11
  32. package/lib/badge/badge.variable.css +69 -13
  33. package/lib/badge/index.d.ts +267 -0
  34. package/lib/badge/index.js +1 -1
  35. package/lib/breadcrumb/breadcrumb-item.d.ts +16 -10
  36. package/lib/breadcrumb/breadcrumb.css +61 -1
  37. package/lib/breadcrumb/breadcrumb.d.ts +37 -9
  38. package/lib/breadcrumb/breadcrumb.less +13 -2
  39. package/lib/breadcrumb/breadcrumb.variable.css +125 -6
  40. package/lib/breadcrumb/index.d.ts +196 -0
  41. package/lib/breadcrumb/index.js +1 -1
  42. package/lib/button/button-group.d.ts +4 -6
  43. package/lib/button/button.css +92 -45
  44. package/lib/button/button.d.ts +86 -37
  45. package/lib/button/button.less +91 -50
  46. package/lib/button/button.variable.css +154 -48
  47. package/lib/button/index.d.ts +256 -0
  48. package/lib/button/index.js +1 -1
  49. package/lib/card/card.css +96 -1
  50. package/lib/card/card.d.ts +74 -18
  51. package/lib/card/card.less +50 -2
  52. package/lib/card/card.variable.css +162 -8
  53. package/lib/card/index.d.ts +283 -0
  54. package/lib/card/index.js +1 -1
  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 +1 -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 +29 -9
  66. package/lib/checkbox/checkbox.css +46 -10
  67. package/lib/checkbox/checkbox.d.ts +60 -39
  68. package/lib/checkbox/checkbox.less +79 -31
  69. package/lib/checkbox/checkbox.variable.css +108 -13
  70. package/lib/checkbox/common.d.ts +4 -3
  71. package/lib/checkbox/index.d.ts +293 -0
  72. package/lib/checkbox/index.js +1 -1
  73. package/lib/checkbox/type.d.ts +9 -12
  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 +1 -0
  80. package/lib/collapse/collapse-panel.d.ts +78 -0
  81. package/lib/collapse/collapse.css +29 -5
  82. package/lib/collapse/collapse.d.ts +34 -43
  83. package/lib/collapse/collapse.less +55 -20
  84. package/lib/collapse/collapse.variable.css +149 -5
  85. package/lib/collapse/index.d.ts +273 -0
  86. package/lib/collapse/index.js +1 -1
  87. package/lib/collapse/props.d.ts +84 -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 +1 -0
  100. package/lib/color-picker/utils.d.ts +37 -0
  101. package/lib/components.d.ts +61 -0
  102. package/lib/components.js +1 -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 +1 -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 +1 -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 +144 -22
  131. package/lib/dialog/dialog.d.ts +279 -51
  132. package/lib/dialog/dialog.less +105 -32
  133. package/lib/dialog/dialog.variable.css +264 -22
  134. package/lib/dialog/index.d.ts +722 -0
  135. package/lib/dialog/index.js +1 -1
  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 +5 -0
  140. package/lib/directives/index.js +2 -15
  141. package/lib/directives/index.js.LICENSE.txt +14 -0
  142. package/lib/directives/tooltips.d.ts +18 -0
  143. package/lib/dist.index.js +1 -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 +1 -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 +1 -0
  159. package/lib/exception/exception.css +40 -14
  160. package/lib/exception/exception.d.ts +37 -15
  161. package/lib/exception/exception.less +59 -22
  162. package/lib/exception/exception.variable.css +102 -17
  163. package/lib/exception/index.d.ts +113 -0
  164. package/lib/exception/index.js +1 -1
  165. package/lib/exception/typings/index.d.ts +4 -0
  166. package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
  167. package/lib/fixed-navbar/fixed-navbar.variable.css +62 -3
  168. package/lib/fixed-navbar/index.d.ts +147 -0
  169. package/lib/fixed-navbar/index.js +1 -1
  170. package/lib/form/compose-form-item.d.ts +16 -0
  171. package/lib/form/form-item.d.ts +160 -0
  172. package/lib/form/form.css +137 -0
  173. package/lib/form/form.d.ts +88 -0
  174. package/lib/form/form.less +170 -0
  175. package/lib/form/form.variable.css +257 -0
  176. package/lib/form/index.d.ts +319 -0
  177. package/lib/form/index.js +1 -0
  178. package/lib/form/type.d.ts +22 -0
  179. package/lib/form/utils.d.ts +2 -0
  180. package/lib/form/validator.d.ts +9 -0
  181. package/lib/icon/angle-double-down-line.d.ts +4 -0
  182. package/lib/icon/angle-double-down-line.js +1 -0
  183. package/lib/icon/angle-double-left-line.d.ts +4 -0
  184. package/lib/icon/angle-double-left-line.js +1 -0
  185. package/lib/icon/angle-double-left.d.ts +4 -0
  186. package/lib/icon/angle-double-left.js +1 -0
  187. package/lib/icon/angle-double-right-line.d.ts +4 -0
  188. package/lib/icon/angle-double-right-line.js +1 -0
  189. package/lib/icon/angle-double-right.d.ts +4 -0
  190. package/lib/icon/angle-double-right.js +1 -0
  191. package/lib/icon/angle-double-up-line.d.ts +4 -0
  192. package/lib/icon/angle-double-up-line.js +1 -0
  193. package/lib/icon/angle-down-fill.d.ts +4 -0
  194. package/lib/icon/angle-down-fill.js +1 -0
  195. package/lib/icon/angle-down-line.d.ts +4 -0
  196. package/lib/icon/angle-down-line.js +1 -0
  197. package/lib/icon/angle-down.d.ts +4 -0
  198. package/lib/icon/angle-down.js +1 -0
  199. package/lib/icon/angle-left.d.ts +4 -0
  200. package/lib/icon/angle-left.js +1 -0
  201. package/lib/icon/angle-right.d.ts +4 -0
  202. package/lib/icon/angle-right.js +1 -0
  203. package/lib/icon/angle-up-fill.d.ts +4 -0
  204. package/lib/icon/angle-up-fill.js +1 -0
  205. package/lib/icon/angle-up.d.ts +4 -0
  206. package/lib/icon/angle-up.js +1 -0
  207. package/lib/icon/archive-fill.d.ts +4 -0
  208. package/lib/icon/archive-fill.js +1 -0
  209. package/lib/icon/arrows-left.d.ts +4 -0
  210. package/lib/icon/arrows-left.js +1 -0
  211. package/lib/icon/arrows-right.d.ts +4 -0
  212. package/lib/icon/arrows-right.js +1 -0
  213. package/lib/icon/audio-fill.d.ts +4 -0
  214. package/lib/icon/audio-fill.js +1 -0
  215. package/lib/icon/bk.d.ts +4 -0
  216. package/lib/icon/bk.js +1 -0
  217. package/lib/icon/circle.d.ts +4 -0
  218. package/lib/icon/circle.js +1 -0
  219. package/lib/icon/close-line.d.ts +4 -0
  220. package/lib/icon/close-line.js +1 -0
  221. package/lib/icon/close.d.ts +4 -0
  222. package/lib/icon/close.js +1 -0
  223. package/lib/icon/code.d.ts +4 -0
  224. package/lib/icon/code.js +1 -0
  225. package/lib/icon/cog-shape.d.ts +4 -0
  226. package/lib/icon/cog-shape.js +1 -0
  227. package/lib/icon/collapse-left.d.ts +4 -0
  228. package/lib/icon/collapse-left.js +1 -0
  229. package/lib/icon/copy.d.ts +4 -0
  230. package/lib/icon/copy.js +1 -0
  231. package/lib/icon/data-shape.d.ts +4 -0
  232. package/lib/icon/data-shape.js +1 -0
  233. package/lib/icon/del.d.ts +4 -0
  234. package/lib/icon/del.js +1 -0
  235. package/lib/icon/doc-fill.d.ts +4 -0
  236. package/lib/icon/doc-fill.js +1 -0
  237. package/lib/icon/done.d.ts +4 -0
  238. package/lib/icon/done.js +1 -0
  239. package/lib/icon/down-shape.d.ts +4 -0
  240. package/lib/icon/down-shape.js +1 -0
  241. package/lib/icon/down-small.d.ts +4 -0
  242. package/lib/icon/down-small.js +1 -0
  243. package/lib/icon/edit-line.d.ts +4 -0
  244. package/lib/icon/edit-line.js +1 -0
  245. package/lib/icon/ellipsis.d.ts +4 -0
  246. package/lib/icon/ellipsis.js +1 -0
  247. package/lib/icon/enlarge-line.d.ts +4 -0
  248. package/lib/icon/enlarge-line.js +1 -0
  249. package/lib/icon/error.d.ts +4 -0
  250. package/lib/icon/error.js +1 -0
  251. package/lib/icon/excel-fill.d.ts +4 -0
  252. package/lib/icon/excel-fill.js +1 -0
  253. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  254. package/lib/icon/exclamation-circle-shape.js +1 -0
  255. package/lib/icon/eye.d.ts +4 -0
  256. package/lib/icon/eye.js +1 -0
  257. package/lib/icon/filliscreen-line.d.ts +4 -0
  258. package/lib/icon/filliscreen-line.js +1 -0
  259. package/lib/icon/folder-open.d.ts +4 -0
  260. package/lib/icon/folder-open.js +1 -0
  261. package/lib/icon/folder-shape-open.d.ts +4 -0
  262. package/lib/icon/folder-shape-open.js +1 -0
  263. package/lib/icon/folder-shape.d.ts +4 -0
  264. package/lib/icon/folder-shape.js +1 -0
  265. package/lib/icon/folder.d.ts +4 -0
  266. package/lib/icon/folder.js +1 -0
  267. package/lib/icon/funnel.d.ts +4 -0
  268. package/lib/icon/funnel.js +1 -0
  269. package/lib/icon/help-document-fill.d.ts +4 -0
  270. package/lib/icon/help-document-fill.js +1 -0
  271. package/lib/icon/help-fill.d.ts +4 -0
  272. package/lib/icon/help-fill.js +1 -0
  273. package/lib/icon/help.d.ts +4 -0
  274. package/lib/icon/help.js +1 -0
  275. package/lib/icon/icon.d.ts +12 -0
  276. package/lib/icon/image-fill.d.ts +4 -0
  277. package/lib/icon/image-fill.js +1 -0
  278. package/lib/icon/img-error.d.ts +4 -0
  279. package/lib/icon/img-placehoulder.d.ts +4 -0
  280. package/lib/icon/img-placehoulder.js +1 -0
  281. package/lib/icon/index.d.ts +79 -0
  282. package/lib/icon/index.js +1 -15
  283. package/lib/icon/info-line.d.ts +4 -0
  284. package/lib/icon/info-line.js +1 -0
  285. package/lib/icon/info.d.ts +4 -0
  286. package/lib/icon/info.js +1 -0
  287. package/lib/icon/left-shape.d.ts +4 -0
  288. package/lib/icon/left-shape.js +1 -0
  289. package/lib/icon/left-turn-line.d.ts +4 -0
  290. package/lib/icon/left-turn-line.js +1 -0
  291. package/lib/icon/narrow-line.d.ts +4 -0
  292. package/lib/icon/narrow-line.js +1 -0
  293. package/lib/icon/original.d.ts +4 -0
  294. package/lib/icon/original.js +1 -0
  295. package/lib/icon/pdf-fill.d.ts +4 -0
  296. package/lib/icon/pdf-fill.js +1 -0
  297. package/lib/icon/play-shape.d.ts +4 -0
  298. package/lib/icon/play-shape.js +1 -0
  299. package/lib/icon/plus.d.ts +4 -0
  300. package/lib/icon/plus.js +1 -0
  301. package/lib/icon/ppt-fill.d.ts +4 -0
  302. package/lib/icon/ppt-fill.js +1 -0
  303. package/lib/icon/qq.d.ts +4 -0
  304. package/lib/icon/qq.js +1 -0
  305. package/lib/icon/right-shape.d.ts +4 -0
  306. package/lib/icon/right-shape.js +1 -0
  307. package/lib/icon/right-turn-line.d.ts +4 -0
  308. package/lib/icon/right-turn-line.js +1 -0
  309. package/lib/icon/search.d.ts +4 -0
  310. package/lib/icon/search.js +1 -0
  311. package/lib/icon/share.d.ts +4 -0
  312. package/lib/icon/share.js +1 -0
  313. package/lib/icon/spinner.d.ts +4 -0
  314. package/lib/icon/spinner.js +1 -0
  315. package/lib/icon/success.d.ts +4 -0
  316. package/lib/icon/success.js +1 -0
  317. package/lib/icon/switcher-loading.d.ts +4 -0
  318. package/lib/icon/switcher-loading.js +1 -0
  319. package/lib/icon/text-file.d.ts +4 -0
  320. package/lib/icon/text-file.js +1 -0
  321. package/lib/icon/text-fill.d.ts +4 -0
  322. package/lib/icon/text-fill.js +1 -0
  323. package/lib/icon/transfer.d.ts +4 -0
  324. package/lib/icon/transfer.js +1 -0
  325. package/lib/icon/tree-application-shape.d.ts +4 -0
  326. package/lib/icon/tree-application-shape.js +1 -0
  327. package/lib/icon/unfull-screen.d.ts +4 -0
  328. package/lib/icon/unfull-screen.js +1 -0
  329. package/lib/icon/unvisible.d.ts +4 -0
  330. package/lib/icon/unvisible.js +1 -0
  331. package/lib/icon/up-shape.d.ts +4 -0
  332. package/lib/icon/up-shape.js +1 -0
  333. package/lib/icon/upload.d.ts +4 -0
  334. package/lib/icon/upload.js +1 -0
  335. package/lib/icon/video-fill.d.ts +4 -0
  336. package/lib/icon/video-fill.js +1 -0
  337. package/lib/icon/warn.d.ts +4 -0
  338. package/lib/icon/warn.js +1 -0
  339. package/lib/icon/weixin.d.ts +4 -0
  340. package/lib/icon/weixin.js +1 -0
  341. package/lib/image/image-viewer.css +142 -0
  342. package/lib/image/image-viewer.d.ts +73 -0
  343. package/lib/image/image-viewer.less +168 -0
  344. package/lib/image/image-viewer.variable.css +142 -0
  345. package/lib/image/image.css +37 -0
  346. package/lib/image/image.d.ts +93 -0
  347. package/lib/image/image.less +44 -0
  348. package/lib/image/image.variable.css +37 -0
  349. package/lib/image/index.d.ts +246 -0
  350. package/lib/image/index.js +1 -0
  351. package/lib/image/props.d.ts +71 -0
  352. package/lib/index.d.ts +4 -0
  353. package/lib/index.js +1 -0
  354. package/lib/info-box/index.d.ts +6 -0
  355. package/lib/info-box/index.js +1 -0
  356. package/lib/info-box/info-box.css +37 -0
  357. package/lib/info-box/info-box.d.ts +26 -0
  358. package/lib/info-box/info-box.less +51 -0
  359. package/lib/info-box/info-box.variable.css +157 -0
  360. package/lib/input/index.d.ts +528 -0
  361. package/lib/input/index.js +1 -15
  362. package/lib/input/input.css +235 -16
  363. package/lib/input/input.d.ts +203 -51
  364. package/lib/input/input.less +183 -19
  365. package/lib/input/input.variable.css +319 -41
  366. package/lib/link/index.d.ts +172 -0
  367. package/lib/link/index.js +1 -1
  368. package/lib/link/link.css +12 -12
  369. package/lib/link/link.d.ts +30 -16
  370. package/lib/link/link.less +16 -14
  371. package/lib/link/link.variable.css +74 -15
  372. package/lib/loading/index.d.ts +257 -0
  373. package/lib/loading/index.js +1 -1
  374. package/lib/loading/loading.css +178 -98
  375. package/lib/loading/loading.d.ts +130 -23
  376. package/lib/loading/loading.less +85 -73
  377. package/lib/loading/loading.variable.css +248 -109
  378. package/lib/menu/index.d.ts +180 -0
  379. package/lib/menu/index.js +1 -0
  380. package/lib/menu/menu-group.d.ts +14 -0
  381. package/lib/menu/menu-item.d.ts +16 -0
  382. package/lib/menu/menu.css +233 -0
  383. package/lib/menu/menu.d.ts +55 -0
  384. package/lib/menu/menu.less +180 -0
  385. package/lib/menu/menu.variable.css +353 -0
  386. package/lib/menu/submenu.css +3 -0
  387. package/lib/menu/submenu.d.ts +22 -0
  388. package/lib/menu/submenu.less +5 -0
  389. package/lib/menu/submenu.variable.css +123 -0
  390. package/lib/menu/utils.d.ts +41 -0
  391. package/lib/message/index.d.ts +2 -0
  392. package/lib/message/index.js +1 -0
  393. package/lib/message/message.css +74 -0
  394. package/lib/message/message.less +87 -0
  395. package/lib/message/message.variable.css +194 -0
  396. package/lib/message/messageConstructor.d.ts +109 -0
  397. package/lib/modal/index.d.ts +592 -0
  398. package/lib/modal/index.js +1 -1
  399. package/lib/modal/modal.css +63 -1
  400. package/lib/modal/modal.d.ts +186 -24
  401. package/lib/modal/modal.less +39 -3
  402. package/lib/modal/modal.variable.css +183 -1
  403. package/lib/modal/props.mixin.d.ts +75 -10
  404. package/lib/navigation/index.d.ts +311 -0
  405. package/lib/navigation/index.js +1 -0
  406. package/lib/navigation/navigation-title.d.ts +25 -0
  407. package/lib/navigation/navigation.css +184 -0
  408. package/lib/navigation/navigation.d.ts +120 -0
  409. package/lib/navigation/navigation.less +210 -0
  410. package/lib/navigation/navigation.variable.css +304 -0
  411. package/lib/notify/index.d.ts +2 -0
  412. package/lib/notify/index.js +1 -0
  413. package/lib/notify/notify.css +69 -0
  414. package/lib/notify/notify.less +81 -0
  415. package/lib/notify/notify.variable.css +189 -0
  416. package/lib/notify/notifyConstructor.d.ts +132 -0
  417. package/lib/overflow-title/components/OverflowTitle.d.ts +38 -0
  418. package/lib/overflow-title/directive/overflowTitle.d.ts +3 -0
  419. package/lib/overflow-title/index.d.ts +129 -0
  420. package/lib/overflow-title/index.js +1 -0
  421. package/lib/overflow-title/overflow.css +11 -0
  422. package/lib/overflow-title/overflow.less +13 -0
  423. package/lib/overflow-title/overflow.variable.css +11 -0
  424. package/lib/overflow-title/props.d.ts +16 -0
  425. package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
  426. package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
  427. package/lib/pagination/index.d.ts +410 -0
  428. package/lib/pagination/index.js +1 -0
  429. package/lib/pagination/pagination.css +205 -0
  430. package/lib/pagination/pagination.d.ts +230 -0
  431. package/lib/pagination/pagination.less +230 -0
  432. package/lib/pagination/pagination.variable.css +325 -0
  433. package/lib/pagination/type.d.ts +6 -0
  434. package/lib/pagination/use-limit.d.ts +8 -0
  435. package/lib/pagination/use-list.d.ts +8 -0
  436. package/lib/pagination/use-small-list.d.ts +5 -0
  437. package/lib/pagination/use-total.d.ts +5 -0
  438. package/{changelog.config.js → lib/plugin-popover/index.d.ts} +2 -8
  439. package/lib/plugin-popover/index.js +1 -0
  440. package/lib/plugins/index.d.ts +1 -0
  441. package/lib/plugins/index.js +1 -0
  442. package/lib/popover/arrow.d.ts +2 -0
  443. package/lib/popover/const.d.ts +16 -0
  444. package/lib/popover/content.d.ts +32 -0
  445. package/lib/popover/index.d.ts +653 -0
  446. package/lib/popover/index.js +1 -1
  447. package/lib/popover/plugin-popover.d.ts +12 -0
  448. package/lib/popover/popover.css +12 -43
  449. package/lib/popover/popover.d.ts +234 -45
  450. package/lib/popover/popover.less +17 -53
  451. package/lib/popover/popover.variable.css +74 -46
  452. package/lib/popover/props.d.ts +146 -0
  453. package/lib/popover/reference.d.ts +2 -0
  454. package/lib/popover/root.d.ts +16 -0
  455. package/lib/popover/use-floating.d.ts +31 -0
  456. package/lib/popover/use-platform.d.ts +30 -0
  457. package/lib/popover/use-popover-init.d.ts +23 -0
  458. package/lib/popover/use-popper-id.d.ts +6 -0
  459. package/lib/popover/utils.d.ts +2 -0
  460. package/lib/popover2/index.d.ts +44 -0
  461. package/lib/popover2/index.js +1 -0
  462. package/lib/popover2/popover.d.ts +2 -0
  463. package/lib/preset.d.ts +7 -0
  464. package/lib/preset.js +1 -0
  465. package/lib/process/index.d.ts +205 -0
  466. package/lib/process/index.js +1 -0
  467. package/lib/process/process.css +151 -0
  468. package/lib/process/process.d.ts +131 -0
  469. package/lib/process/process.less +195 -0
  470. package/lib/process/process.variable.css +271 -0
  471. package/lib/progress/index.d.ts +398 -0
  472. package/lib/progress/index.js +1 -1
  473. package/lib/progress/progress.css +51 -3
  474. package/lib/progress/progress.d.ts +92 -39
  475. package/lib/progress/progress.less +0 -4
  476. package/lib/progress/progress.variable.css +117 -10
  477. package/lib/radio/common.d.ts +5 -5
  478. package/lib/radio/index.d.ts +288 -0
  479. package/lib/radio/index.js +1 -1
  480. package/lib/radio/radio-button.d.ts +30 -23
  481. package/lib/radio/radio-group.d.ts +27 -10
  482. package/lib/radio/radio.css +48 -41
  483. package/lib/radio/radio.d.ts +27 -17
  484. package/lib/radio/radio.less +177 -166
  485. package/lib/radio/radio.variable.css +114 -48
  486. package/lib/radio/type.d.ts +10 -5
  487. package/lib/rate/index.d.ts +136 -0
  488. package/lib/rate/index.js +1 -1
  489. package/lib/rate/rate.d.ts +25 -11
  490. package/lib/rate/star.d.ts +33 -16
  491. package/lib/resize-layout/index.d.ts +336 -0
  492. package/lib/resize-layout/index.js +1 -0
  493. package/lib/resize-layout/resize-layout.css +177 -0
  494. package/lib/resize-layout/resize-layout.d.ts +127 -0
  495. package/lib/resize-layout/resize-layout.less +217 -0
  496. package/lib/resize-layout/resize-layout.variable.css +297 -0
  497. package/lib/search-select/index.d.ts +823 -0
  498. package/lib/search-select/index.js +1 -0
  499. package/lib/search-select/input.d.ts +89 -0
  500. package/lib/search-select/menu.d.ts +83 -0
  501. package/lib/search-select/search-select.css +424 -0
  502. package/lib/search-select/search-select.d.ts +342 -0
  503. package/lib/search-select/search-select.less +380 -0
  504. package/lib/search-select/search-select.variable.css +544 -0
  505. package/lib/search-select/selected.d.ts +143 -0
  506. package/lib/search-select/utils.d.ts +88 -0
  507. package/lib/select/common.d.ts +20 -21
  508. package/lib/select/index.d.ts +2035 -0
  509. package/lib/select/index.js +1 -1
  510. package/lib/select/option.d.ts +22 -21
  511. package/lib/select/optionGroup.d.ts +54 -0
  512. package/lib/select/select.css +333 -34
  513. package/lib/select/select.d.ts +660 -189
  514. package/lib/select/select.less +398 -81
  515. package/lib/select/select.variable.css +395 -37
  516. package/lib/select/selectTagInput.d.ts +93 -0
  517. package/lib/select/type.d.ts +39 -0
  518. package/lib/shared/dom.d.ts +3 -0
  519. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +15 -1
  520. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  521. package/lib/shared/hooks/use-form.d.ts +2 -0
  522. package/lib/shared/index.d.ts +74 -0
  523. package/lib/shared/index.js +1 -1
  524. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +36 -3
  525. package/lib/shared/pop-manager.d.ts +38 -0
  526. package/lib/shared/popover.d.ts +131 -0
  527. package/lib/shared/token.d.ts +4 -0
  528. package/lib/shared/utils.d.ts +25 -0
  529. package/lib/shared/vue-types.d.ts +113 -14
  530. package/lib/shared/z-index-manager.d.ts +6 -1
  531. package/lib/sideslider/index.d.ts +477 -0
  532. package/lib/sideslider/index.js +1 -1
  533. package/lib/sideslider/sideslider.css +55 -10
  534. package/lib/sideslider/sideslider.d.ts +178 -29
  535. package/lib/sideslider/sideslider.less +72 -13
  536. package/lib/sideslider/sideslider.variable.css +117 -13
  537. package/lib/slider/index.d.ts +440 -0
  538. package/lib/slider/index.js +1 -0
  539. package/lib/slider/slider-button.d.ts +81 -0
  540. package/lib/slider/slider.css +149 -0
  541. package/lib/slider/slider.d.ts +201 -0
  542. package/lib/slider/slider.less +179 -0
  543. package/lib/slider/slider.variable.css +269 -0
  544. package/lib/steps/index.d.ts +250 -0
  545. package/lib/steps/index.js +1 -0
  546. package/lib/steps/steps.css +300 -0
  547. package/lib/steps/steps.d.ts +161 -0
  548. package/lib/steps/steps.less +345 -0
  549. package/lib/steps/steps.variable.css +420 -0
  550. package/lib/styles/index.d.ts +53 -0
  551. package/lib/styles/mixins/clearfix.css +8 -0
  552. package/lib/styles/mixins/clearfix.less +10 -0
  553. package/lib/styles/mixins/clearfix.variable.css +8 -0
  554. package/lib/styles/mixins/mixins.css +51 -0
  555. package/lib/styles/mixins/mixins.less +2 -0
  556. package/lib/styles/mixins/mixins.variable.css +51 -0
  557. package/lib/styles/mixins/popper.css +43 -0
  558. package/lib/styles/mixins/popper.less +53 -0
  559. package/lib/styles/mixins/popper.variable.css +163 -0
  560. package/lib/styles/mixins/scroll.css +17 -0
  561. package/lib/styles/mixins/scroll.less +22 -0
  562. package/lib/styles/mixins/scroll.variable.css +137 -0
  563. package/lib/styles/mixins/size.less +9 -0
  564. package/lib/styles/reset.css +309 -0
  565. package/lib/styles/reset.less +337 -0
  566. package/lib/styles/reset.variable.css +309 -0
  567. package/lib/styles/themes/themes.less +91 -5
  568. package/lib/swiper/index.d.ts +181 -0
  569. package/lib/swiper/index.js +1 -0
  570. package/lib/swiper/swiper.css +91 -0
  571. package/lib/swiper/swiper.d.ts +65 -0
  572. package/lib/swiper/swiper.less +107 -0
  573. package/lib/swiper/swiper.variable.css +91 -0
  574. package/lib/switcher/index.d.ts +298 -0
  575. package/lib/switcher/index.js +1 -1
  576. package/lib/switcher/switcher.css +200 -135
  577. package/lib/switcher/switcher.d.ts +60 -38
  578. package/lib/switcher/switcher.less +190 -155
  579. package/lib/switcher/switcher.variable.css +273 -149
  580. package/lib/tab/index.d.ts +439 -0
  581. package/lib/tab/index.js +1 -0
  582. package/lib/tab/props.d.ts +213 -0
  583. package/lib/tab/tab-nav.d.ts +169 -0
  584. package/lib/tab/tab-panel.d.ts +68 -0
  585. package/lib/tab/tab.css +223 -0
  586. package/lib/tab/tab.d.ts +139 -0
  587. package/lib/tab/tab.less +285 -0
  588. package/lib/tab/tab.variable.css +343 -0
  589. package/lib/table/components/index.d.ts +3 -0
  590. package/lib/table/components/table-cell.d.ts +38 -0
  591. package/lib/table/components/table-column.d.ts +137 -0
  592. package/lib/table/components/table-row.d.ts +2 -0
  593. package/lib/table/const.d.ts +122 -0
  594. package/lib/table/index.d.ts +1141 -0
  595. package/lib/table/index.js +1 -1
  596. package/lib/table/plugins/body-empty.d.ts +40 -0
  597. package/lib/table/plugins/col-group.d.ts +38 -0
  598. package/lib/table/plugins/common.d.ts +6 -0
  599. package/lib/table/plugins/head-filter.css +84 -0
  600. package/lib/table/plugins/head-filter.d.ts +26 -0
  601. package/lib/table/plugins/head-filter.less +110 -0
  602. package/lib/table/plugins/head-filter.variable.css +204 -0
  603. package/lib/table/plugins/head-sort.css +25 -0
  604. package/lib/table/plugins/head-sort.d.ts +22 -0
  605. package/lib/table/plugins/head-sort.less +31 -0
  606. package/lib/table/plugins/head-sort.variable.css +145 -0
  607. package/lib/table/plugins/index.d.ts +5 -0
  608. package/lib/table/plugins/settings.css +145 -0
  609. package/lib/table/plugins/settings.d.ts +37 -0
  610. package/lib/table/plugins/settings.less +179 -0
  611. package/lib/table/plugins/settings.variable.css +265 -0
  612. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  613. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  614. package/lib/table/plugins/use-fixed-column.d.ts +12 -0
  615. package/lib/table/plugins/use-pagination.d.ts +16 -0
  616. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  617. package/lib/table/props.d.ts +434 -0
  618. package/lib/table/render.d.ts +125 -0
  619. package/lib/table/table.css +1272 -0
  620. package/lib/table/table.d.ts +315 -32
  621. package/lib/table/table.less +361 -1
  622. package/lib/table/table.variable.css +1334 -3
  623. package/lib/table/use-column.d.ts +11 -0
  624. package/lib/table/use-common.d.ts +98 -0
  625. package/lib/table/utils.d.ts +129 -0
  626. package/lib/table-column/index.d.ts +325 -0
  627. package/lib/table-column/index.js +1 -0
  628. package/lib/tag/index.d.ts +229 -0
  629. package/lib/tag/index.js +1 -1
  630. package/lib/tag/tag.css +130 -0
  631. package/lib/tag/tag.d.ts +83 -53
  632. package/lib/tag/tag.less +146 -2
  633. package/lib/tag/tag.variable.css +192 -3
  634. package/lib/tag-input/common.d.ts +36 -0
  635. package/lib/tag-input/index.d.ts +1349 -0
  636. package/lib/tag-input/index.js +1 -0
  637. package/lib/tag-input/list-tag-render.d.ts +44 -0
  638. package/lib/tag-input/tag-input.css +205 -0
  639. package/lib/tag-input/tag-input.d.ts +619 -0
  640. package/lib/tag-input/tag-input.less +248 -0
  641. package/lib/tag-input/tag-input.variable.css +325 -0
  642. package/lib/tag-input/tag-props.d.ts +252 -0
  643. package/lib/tag-input/tag-render.d.ts +64 -0
  644. package/lib/time-picker/index.d.ts +904 -0
  645. package/lib/time-picker/index.js +1 -0
  646. package/lib/time-picker/time-picker.css +215 -0
  647. package/lib/time-picker/time-picker.less +260 -0
  648. package/lib/time-picker/time-picker.variable.css +335 -0
  649. package/lib/timeline/index.d.ts +129 -0
  650. package/lib/timeline/index.js +1 -0
  651. package/lib/timeline/timeline.css +242 -0
  652. package/lib/timeline/timeline.d.ts +81 -0
  653. package/lib/timeline/timeline.less +252 -0
  654. package/lib/timeline/timeline.variable.css +362 -0
  655. package/lib/transfer/const.d.ts +5 -0
  656. package/lib/transfer/index.d.ts +365 -0
  657. package/lib/transfer/index.js +1 -0
  658. package/lib/transfer/props.d.ts +54 -0
  659. package/lib/transfer/transfer.css +161 -0
  660. package/lib/transfer/transfer.d.ts +160 -0
  661. package/lib/transfer/transfer.less +151 -0
  662. package/lib/transfer/transfer.variable.css +281 -0
  663. package/lib/tree/constant.d.ts +62 -0
  664. package/lib/tree/index.d.ts +647 -0
  665. package/lib/tree/index.js +1 -0
  666. package/lib/tree/props.d.ts +213 -0
  667. package/lib/tree/tree.css +218 -0
  668. package/lib/tree/tree.d.ts +283 -0
  669. package/lib/tree/tree.less +114 -0
  670. package/lib/tree/tree.variable.css +338 -0
  671. package/lib/tree/use-empty.d.ts +6 -0
  672. package/lib/tree/use-node-action.d.ts +12 -0
  673. package/lib/tree/use-node-async.d.ts +5 -0
  674. package/lib/tree/use-node-attribute.d.ts +33 -0
  675. package/lib/tree/use-node-drag.d.ts +3 -0
  676. package/lib/tree/use-search.d.ts +11 -0
  677. package/lib/tree/use-tree-init.d.ts +15 -0
  678. package/lib/tree/util.d.ts +68 -0
  679. package/lib/upload/index.d.ts +566 -0
  680. package/lib/upload/index.js +1 -0
  681. package/lib/upload/props.d.ts +111 -0
  682. package/lib/upload/upload-list.d.ts +47 -0
  683. package/lib/upload/upload-trigger.d.ts +51 -0
  684. package/lib/upload/upload.css +427 -0
  685. package/lib/upload/upload.d.ts +246 -0
  686. package/lib/upload/upload.less +466 -0
  687. package/lib/upload/upload.type.d.ts +78 -0
  688. package/lib/upload/upload.variable.css +547 -0
  689. package/lib/upload/use-ajax-upload.d.ts +3 -0
  690. package/lib/upload/use-file-handler.d.ts +44 -0
  691. package/lib/use-message.d.ts +2 -0
  692. package/lib/virtual-render/index.d.ts +602 -0
  693. package/lib/virtual-render/index.js +1 -0
  694. package/lib/virtual-render/props.d.ts +172 -0
  695. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  696. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  697. package/lib/virtual-render/virtual-render.css +33 -0
  698. package/lib/virtual-render/virtual-render.d.ts +266 -0
  699. package/lib/virtual-render/virtual-render.less +22 -0
  700. package/lib/virtual-render/virtual-render.variable.css +153 -0
  701. package/lib/volar.components.d.ts +101 -0
  702. package/package.json +113 -83
  703. package/LICENSE.txt +0 -22
  704. package/dist/bkui-vue.cjs.js +0 -4887
  705. package/dist/bkui-vue.esm.js +0 -4883
  706. package/dist/bkui-vue.umd.js +0 -4890
  707. package/lib/checkbox-group/index.js +0 -1
  708. package/lib/radio-button/index.js +0 -1
  709. package/lib/radio-group/index.js +0 -1
  710. package/lib/shared/bk-pop-manager.d.ts +0 -19
  711. package/lib/shared/bk-popover.d.ts +0 -76
  712. package/lib/styles/index.js +0 -1
  713. package/lib/table/common.d.ts +0 -3
  714. package/lib/table/table-layout.d.ts +0 -14
  715. package/lib/table/type.d.ts +0 -12
@@ -0,0 +1 @@
1
+ !function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("../shared"),require("vue"),require("../virtual-render"),require("vue-types"),require("../exception"),require("../checkbox"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../virtual-render","vue-types","../exception","../checkbox","../icon"],n);else{var t="object"==typeof exports?n(require("../shared"),require("vue"),require("../virtual-render"),require("vue-types"),require("../exception"),require("../checkbox"),require("../icon")):n(e["../shared"],e.vue,e["../virtual-render"],e["vue-types"],e["../exception"],e["../checkbox"],e["../icon"]);for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,((e,n,t,r,o,i,a)=>(()=>{var l={8022:(e,n,t)=>{var r=t(4481),o=t(6426),i=o;i.v1=r,i.v4=o,e.exports=i},8725:e=>{for(var n=[],t=0;t<256;++t)n[t]=(t+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},9157:e=>{var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var t=new Uint8Array(16);e.exports=function(){return n(t),t}}else{var r=new Array(16);e.exports=function(){for(var e,n=0;n<16;n++)0==(3&n)&&(e=4294967296*Math.random()),r[n]=e>>>((3&n)<<3)&255;return r}}},4481:(e,n,t)=>{var r,o,i=t(9157),a=t(8725),l=0,u=0;e.exports=function(e,n,t){var c=n&&t||0,s=n||[],d=(e=e||{}).node||r,f=void 0!==e.clockseq?e.clockseq:o;if(null==d||null==f){var p=i();null==d&&(d=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=o=16383&(p[6]<<8|p[7]))}var v=void 0!==e.msecs?e.msecs:(new Date).getTime(),y=void 0!==e.nsecs?e.nsecs:u+1,N=v-l+(y-u)/1e4;if(N<0&&void 0===e.clockseq&&(f=f+1&16383),(N<0||v>l)&&void 0===e.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=v,u=y,o=f;var _=(1e4*(268435455&(v+=122192928e5))+y)%4294967296;s[c++]=_>>>24&255,s[c++]=_>>>16&255,s[c++]=_>>>8&255,s[c++]=255&_;var h=v/4294967296*1e4&268435455;s[c++]=h>>>8&255,s[c++]=255&h,s[c++]=h>>>24&15|16,s[c++]=h>>>16&255,s[c++]=f>>>8|128,s[c++]=255&f;for(var I=0;I<6;++I)s[c+I]=d[I];return n||a(s)}},6426:(e,n,t)=>{var r=t(9157),o=t(8725);e.exports=function(e,n,t){var i=n&&t||0;"string"==typeof e&&(n="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,n)for(var l=0;l<16;++l)n[i+l]=a[l];return n||o(a)}},5800:e=>{"use strict";e.exports=i},9911:e=>{"use strict";e.exports=o},6870:e=>{"use strict";e.exports=a},4212:n=>{"use strict";n.exports=e},3511:e=>{"use strict";e.exports=t},748:e=>{"use strict";e.exports=n},210:e=>{"use strict";e.exports=r}},u={};function c(e){var n=u[e];if(void 0!==n)return n.exports;var t=u[e]={exports:{}};return l[e](t,t.exports,c),t.exports}c.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return c.d(n,{a:n}),n},c.d=(e,n)=>{for(var t in n)c.o(n,t)&&!c.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},c.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";c.r(s),c.d(s,{default:()=>X});var e,n,t,r=c(4212),o=c(748),i=c(3511),a=c.n(i);function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}!function(e){e.NODE_CLICK="nodeClick",e.NODE_COLLAPSE="nodeCollapse",e.NODE_EXPAND="nodeExpand",e.NODE_CHECKED="nodeChecked",e.NODE_DRAG_START="nodeDragStart",e.NODE_DRAG_OVER="nodeDragOver",e.NODE_DRAG_LEAVE="nodeDragLeave",e.NODE_DROP="nodeDrop"}(t||(t={}));var u,d=function(){return!0},f=(l(e={},t.NODE_CLICK,d),l(e,t.NODE_COLLAPSE,d),l(e,t.NODE_EXPAND,d),l(e,t.NODE_CHECKED,d),l(e,t.NODE_DRAG_START,d),l(e,t.NODE_DRAG_OVER,d),l(e,t.NODE_DRAG_LEAVE,d),l(e,t.NODE_DROP,d),e);!function(e){e.DEPTH="__depth",e.INDEX="__index",e.UUID="__uuid",e.PARENT_ID="__parent_id",e.HAS_CHILD="__has_child",e.PATH="__path",e.IS_ROOT="__is_root",e.ORDER="__order",e.IS_OPEN="__is_open",e.IS_CHECKED="__is_checked",e.IS_SELECTED="__is_selected",e.IS_ASYNC_INIT="__is_async_init",e.IS_MATCH="__is_match",e.IS_NULL="__IS_NULL",e.IS_CACHED="__is_cached",e.IS_ASYNC="__is_async",e.IS_LOADING="__is_loading",e.TREE_NODE_ATTR="__attr__"}(u||(u={}));var p,v=(l(n={},u.IS_OPEN,"isOpen"),l(n,u.IS_SELECTED,"selected"),l(n,u.IS_MATCH,"isMatch"),l(n,u.HAS_CHILD,"hasChild"),l(n,u.IS_CHECKED,"checked"),l(n,u.IS_ASYNC,"async"),l(n,u.IS_LOADING,"loading"),l(n,u.IS_ROOT,"isRoot"),n);!function(e){e.CLICK="click",e.SELECTED="selected",e.EXPAND="expand",e.COLLAPSE="collapse"}(p||(p={}));var y,N,_,h=c(210);!function(e){e.ONCE="once",e.EVERY="every"}(y||(y={})),function(e){e.FUZZY="fuzzy",e.FULL="full"}(N||(N={})),function(e){e.TREE="tree",e.LIST="list"}(_||(_={}));var I={data:r.PropTypes.arrayOf(r.PropTypes.any).def([]),label:r.PropTypes.oneOfType([r.PropTypes.func.def(void 0),r.PropTypes.string.def("label")]),nodeKey:r.PropTypes.string.def(void 0),children:r.PropTypes.string.def("children"),indent:r.PropTypes.number.def(18),lineHeight:r.PropTypes.number.def(32),levelLine:r.PropTypes.oneOfType([r.PropTypes.bool.def(!1),r.PropTypes.func.def(void 0),r.PropTypes.string.def("1px dashed #c3cdd7")]).def(!1),virtualRender:r.PropTypes.bool.def(!1),prefixIcon:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){})),r.PropTypes.bool.def(!1)]).def(!0),async:r.PropTypes.shape({callback:r.PropTypes.func.def(void 0),cache:r.PropTypes.bool.def(!0),deepAutoOpen:(0,h.toType)("columnType",{}).def(y.ONCE)}),offsetLeft:r.PropTypes.number.def(5),search:r.PropTypes.oneOfType([r.PropTypes.shape({value:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string,r.PropTypes.bool]).def(""),match:r.PropTypes.oneOfType([(0,h.toType)("TreeSearchMatchType",{}).def(N.FUZZY),r.PropTypes.func]),resultType:(0,h.toType)("treeSearchResultType",{}).def(_.TREE),openResultNode:r.PropTypes.bool}),r.PropTypes.string,r.PropTypes.number,r.PropTypes.bool]).def(void 0),emptyText:r.PropTypes.string.def("没有数据"),draggable:r.PropTypes.bool.def(!1),disableDrag:r.PropTypes.func.def(null),disableDrop:r.PropTypes.func.def(null),dragSort:r.PropTypes.bool.def(!1),selectable:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.func]).def(!0),disabledFolderSelectable:r.PropTypes.bool.def(!1),showCheckbox:r.PropTypes.bool.def(!1),showNodeTypeIcon:r.PropTypes.bool.def(!0),selected:r.PropTypes.oneOfType([r.PropTypes.string,null,r.PropTypes.number,r.PropTypes.object]).def(null),autoCheckChildren:r.PropTypes.bool.def(!0),autoOpenParentNode:r.PropTypes.bool.def(!0),expandAll:r.PropTypes.bool.def(!1),nodeContentAction:r.PropTypes.oneOfType([r.PropTypes.arrayOf((0,h.toType)("nodeContentActionType",{}).def(p.CLICK)),r.PropTypes.func.def((function(){return["selected"]}))]).def(["selected","expand","click"])},E=c(9911),S=c.n(E);function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}var g=c(5800),T=c.n(g),A=c(6870);const C=function(e,n){var t=function(n){return e.schema.get(n)},r=function(e,n){var r;return null===(r=t(e[u.UUID]))||void 0===r?void 0:r[n]},o=function(n,r,o){e.schema.set(n[u.UUID],Object.assign(Object.assign({},t(n[u.UUID])),l({},r,o)))},i=function(e){return r(e,u.PATH)},a=function(e){return r(e,u.UUID)},c=function(e){return r(e,u.IS_ROOT)},s=function(e){return r(e,u.IS_OPEN)},d=function(e){return r(e,u.HAS_CHILD)},f=function(e){return r(e,u.IS_MATCH)},p=function(e){return r(e,u.IS_CHECKED)},y=function(e){return r(e,u.PARENT_ID)},N=function(e){return r(l({},u.UUID,e),u.PARENT_ID)},_=function(e){var n;return"object"===D(e)?s(e):"string"==typeof e&&(null===(n=t(e))||void 0===n?void 0:n[u.IS_OPEN])},h=function(e){return e.split("-").reduce((function(e,t){var r=Number(t);return Array.isArray(e)?e[r]:e[n.children][r]}),n.data)},I=function(e){return h(i(l({},u.UUID,e)))},E=function(e){var n;return l(n={},v[u.IS_LOADING],r(e,u.IS_LOADING)),l(n,v[u.HAS_CHILD],d(e)),l(n,v[u.IS_MATCH],f(e)),l(n,v[u.IS_CHECKED],p(e)),l(n,v[u.IS_OPEN],s(e)),l(n,v[u.IS_ROOT],c(e)),l(n,"fullPath",r(e,u.PATH)),l(n,"uuid",a(e)),l(n,"parentId",r(e,u.PARENT_ID)),n};return{getSchemaVal:t,getNodeAttr:r,getNodeId:a,getNodeParentId:y,getNodeParentIdById:N,getParentNodeData:function(e){return c(l({},u.UUID,e))?l({},n.children,n.data):I(N(e))},getParentNode:function(e){return t(y(e))},setNodeAttr:o,getNodePath:i,isRootNode:c,isNodeOpened:s,hasChildNode:d,isItemOpen:_,isNodeChecked:p,isNodeMatched:f,isNodeLoading:function(e){return r(e,u.IS_LOADING)},checkNodeIsOpen:function(e){return c(e)||function(e){return _(r(e,u.PARENT_ID))}(e)},getSourceNodeByPath:h,getSourceNodeByUID:I,deleteNodeSchema:function(n){return e.schema.delete(n)},resolveScopedSlotParam:E,setTreeNodeLoading:function(e,n){o(e,u.IS_LOADING,n)},extendNodeAttr:function(e){return Object.assign(Object.assign({},e),l({},u.TREE_NODE_ATTR,E(e)))},getChildNodes:function(n){var t=e.schema;return Array.prototype.filter.call(Array.from(t.keys()),(function(e){return t.get(e)[u.PARENT_ID]===n[u.UUID]}))}}};function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function O(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return m(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var b=void 0,P="1px dashed #c3cdd7",L=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=e[n];return"boolean"==typeof a?a?r:o:U(t,e,n,i)},U=function(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=n[t];if("string"==typeof o)return"object"===D(e)&&null!==e?(Object.prototype.hasOwnProperty.call(e,o)||console.error("cannot find node label with key ".concat(o)),e[o]):o;if("function"==typeof o){var i=o.apply(b,[e].concat(O(r)));return"string"==typeof i?i:void console.error("props label with function return value is not string, please check and return string")}},x=function(e,n){return U(e,n,"label")},R=function(e,n){return e.get(n)||{}},k=function(e,n,t){var r;return null===(r=R(e,n))||void 0===r?void 0:r[t]},H=function(e,n){return{"--level-line":L(n,"levelLine",e,P,null,["tree"]),"--lineHeight":"".concat(n.lineHeight,"px"),"--indent":"".concat(n.indent,"px"),"--offset-left":"".concat(n.offsetLeft,"px")}},w=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.schema,o=k(r,e[u.UUID],u.DEPTH);return Object.assign({"--depth":o},"function"==typeof n.levelLine?{"--level-line":L(n,"levelLine",e,P,null,["node"])}:{})},j=function(e,n,t){var r=R(n,e[u.UUID])||{};return{"is-root":r.__is_root,"bk-tree-node":!0,"is-open":r.__is_open,"is-virtual-render":t.virtualRender,"level-line":t.levelLine}},V=function(e,n){var t=R(n,e[u.UUID])||{};return l({"is-checked":t.__is_checked,"is-selected":t.__is_selected,"node-folder":e.is_folder,"node-leaf":e.is_leaf},(0,r.resolveClassName)("node-row"),!0)},M=function(e){return null==e?{__IS_NULL:!0}:"string"==typeof e||"number"==typeof e||"symbol"===D(e)?l({},u.UUID,e):(Object.prototype.hasOwnProperty.call(e,u.UUID)||console.error("setNodeAction Error: node id cannot found"),e)};const K=function(e,n){var t=C(n,e),r=t.setNodeAttr,o=t.getNodePath,i=t.getNodeAttr,a=t.resolveScopedSlotParam,c=t.setTreeNodeLoading,s=function(n,t){if("object"===D(n)&&null!==n){r(t,u.IS_OPEN,!0);var i=Array.isArray(n)?n:[n];return function(e,n,t,r,o){!function(e,n,t,r){var o=e.split("-").reduce((function(e,n){var r=Number(n);return Array.isArray(e)?e[r]:e[t][r]}),n);Object.assign(o,r||{})}(e,n,t,l({},r,o))}(o(t),e.data,e.children,e.children,i),Promise.resolve(n)}return Promise.resolve(n)},d=function(n){var t=e.async||{},o=t.callback,l=void 0===o?null:o,d=t.cache,f=void 0===d||d;if("function"==typeof l&&i(n,u.IS_ASYNC)){if(r(n,u.IS_ASYNC_INIT,!0),!i(n,u.IS_CACHED)){r(n,u.IS_CACHED,f);var p=a(n),v=l(n,(function(e){return s(e,n)}),p);if("object"===D(v)&&null!==v)return c(n,!0),v instanceof Promise?Promise.resolve(v.then((function(e){return s(e,n)})).catch((function(e){return console.error("load remote data error:",e)})).finally((function(){c(n,!1),r(n,u.IS_CACHED,!0)}))):(s(v,n),c(n,!1),Promise.resolve(!0))}return Promise.resolve(!0)}return Promise.resolve(!0)};return{asyncNodeClick:d,deepAutoOpen:function e(){var t=n.data.filter((function(e){return i(e,u.IS_ASYNC)&&e[v[u.IS_OPEN]]&&!i(e,u.IS_ASYNC_INIT)}));t.length&&Promise.all(t.map((function(e){return d(e)}))).then((function(){e()})).catch((function(e){console.warn(e)}))}}},G=function(e,n,i,a,c,s){var d=e.selected,f=C(i,e),p=f.setNodeAttr,v=f.getNodePath,y=f.getSchemaVal,N=f.getNodeAttr,_=f.getNodeId,h=f.getChildNodes,I=f.isRootNode,E=f.hasChildNode,S=f.isItemOpen,g=f.isNodeOpened,m=f.isNodeLoading,O=f.isNodeChecked,b=f.getParentNode,P=f.resolveScopedSlotParam,L=f.extendNodeAttr,U=s.registerNextLoop,R=K(e,i),k=R.asyncNodeClick,H=R.deepAutoOpen,G=function(e){if("string"==typeof e)return e;if("object"===D(e)&&null!==e){if(e.__v_isVNode)return e;var n=e.node,t=e.className,r=e.text,i=e.style;return(0,o.h)(n,{class:t,style:i},r)}return null},q=function(t){if(n.slots.nodeAction)return n.slots.nodeAction(L(t));var i=null;return m(t)?function(e){var t,r,i;return(null!==(i=null===(r=(t=n.slots).nodeLoading)||void 0===r?void 0:r.call(t,L(e)))&&void 0!==i?i:m(e))?(0,o.createVNode)(A.Spinner,null,null):""}(t):"function"==typeof e.prefixIcon&&"default"!==(i=e.prefixIcon(L(t),"node_action"))?G(i):("default"===i||"boolean"==typeof e.prefixIcon&&e.prefixIcon)&&(E(t)||t.async||!e.autoCheckChildren)?S(t)?(0,o.createVNode)(A.DownShape,{class:(0,r.resolveClassName)("node-prefix")},null):(0,o.createVNode)(A.RightShape,{class:(0,r.resolveClassName)("node-prefix")},null):null},Y=function(t){if(!e.showNodeTypeIcon)return null;if(n.slots.nodeType)return n.slots.nodeType(L(t));var i=null;return"function"==typeof e.prefixIcon&&"default"!==(i=e.prefixIcon(L(t),"node_type"))?G(i):"default"===i||"boolean"==typeof e.prefixIcon&&e.prefixIcon?I(t)||E(t)?function(e){return S(e)?(0,o.createVNode)(A.FolderShapeOpen,{class:[(0,r.resolveClassName)("tree-icon"),(0,r.resolveClassName)("node-prefix")]},null):(0,o.createVNode)(A.Folder,{class:[(0,r.resolveClassName)("tree-icon"),(0,r.resolveClassName)("node-prefix")]},null)}(t):(0,o.createVNode)(A.TextFile,{class:[(0,r.resolveClassName)("tree-icon"),(0,r.resolveClassName)("node-prefix")]},null):null},F=function e(n,t){var r=b(n);r&&(p(r,u.IS_CHECKED,t),I(r)||e(r,t))},X=function e(n,t,r){h(n).forEach((function(n){p(l({},u.UUID,n),t,r),e(l({},u.UUID,n),t,r)}))},z=function(e,r){p(e,u.IS_CHECKED,!!r),X(e,u.IS_CHECKED,!!r),F(e,r),n.emit(t.NODE_CHECKED,c.value.filter((function(e){return O(e)})).map((function(e){return e[u.UUID]})))},J=function(e){return O(e)&&!c.value.filter((function(n){var t;return null===(t=v(n))||void 0===t?void 0:t.startsWith(v(e))})).every((function(e){return O(e)}))},B=function(e){return O(e)||c.value.filter((function(n){var t;return null===(t=v(n))||void 0===t?void 0:t.startsWith(v(e))})).some((function(e){return O(e)}))},W=function(n){return e.showCheckbox?(0,o.createVNode)(T(),{size:"small",modelValue:B(n),indeterminate:J(n),onChange:function(e){return z(n,e)}},null):null},Z=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=null===r?!S(e):!!r;if(a||X(e,u.IS_OPEN,a),p(e,u.IS_OPEN,a),i){var l=S(e)?t.NODE_EXPAND:t.NODE_COLLAPSE;n.emit(l,e,P(e),y(e[u.UUID]),o)}},$=function(e,n,t){Array.isArray(e)?e.forEach((function(e){return p(M(e),n,t)})):p(M(e),n,t)},Q=function e(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=M(n);if(!o[u.IS_NULL])if(r)if(t){if($(o,u.IS_OPEN,!0),!I(o)){var i=N(o,u.PARENT_ID);e(i,!0,!0)}}else Z(o,!1,null,!1);else $(o,u.IS_OPEN,t)},ee=function(e,n){g(e)?Z(e,!1,n):k(e).finally((function(){N(e,u.IS_LOADING)?U("setNodeOpenedAfterLoading",{type:"once",fn:function(){return Z(e,!0,n)}}):Z(e,!0,n)}))},ne=function n(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Array.isArray(t)?t:[t];if(a.length){var c=M(a[0]);c[u.IS_NULL]||(!e.selectable||"function"==typeof e.selectable&&!e.selectable(t)||e.disabledFolderSelectable&&!0===(null==t?void 0:t.is_folder)?console.warn("props.selectable is false or undefined, please set selectable with true"):(null!=d&&p(l({},u.UUID,d),u.IS_SELECTED,!r),e.selected&&e.selected!==d&&p(l({},u.UUID,e.selected),u.IS_SELECTED,!r),p(c,u.IS_SELECTED,r),d=_(c),i&&1===a.length&&Q(c,!0,!0),N(c,u.IS_ASYNC)&&k(c).then((function(){(0,o.nextTick)((function(){a.shift(),n(a,r,i)}))}))))}},te=function(n){if(!e.levelLine)return null;var t=N(n,u.DEPTH)+1;return new Array(t).fill("").map((function(e,n){return n})).filter((function(e){return function(e,n){if(I(n))return!1;var t=v(n),r="".concat(t).split("-").slice(0,e+1);if(r.join("-")===t)return!0;var o=r.pop(),i=parseInt(o,10);r.push("".concat(i+1));var a=r.join("-");return c.value.some((function(e){return e[u.PATH]===a}))}(e,n)})).filter((function(e){return e>0})).map((function(e){return(0,o.createVNode)("span",{class:"node-virtual-line",style:(n=t-e,{"--depth":n})},null);var n}))};return{renderTreeNode:function(a){var l,c,s,d,f;return(0,o.createVNode)("div",{"data-tree-node":_(a),key:_(a),class:V(a,i.schema)},[(0,o.createVNode)("div",{class:j(a,i.schema,e),style:w(a,e,i),onClick:function(r){return function(r,o){var i,a=(i=r,"function"==typeof e.nodeContentAction?Reflect.apply(e.nodeContentAction,void 0,[{node:i}]):"string"==typeof e.nodeContentAction?[e.nodeContentAction]:Array.isArray(e.nodeContentAction)?e.nodeContentAction:["selected","expand","click"]);if(a.includes("selected")&&ne(r,!0,!1),a.includes("expand")&&(g(r)||ee(r,o)),a.includes("collapse")&&g(r)&&ee(r,o),a.includes("click")){var l=t.NODE_CLICK;n.emit(l,r,P(r),y(r[u.UUID]),o)}}(a,r)}},[(0,o.createVNode)("div",{class:[(0,r.resolveClassName)("node-action")],onClick:function(e){return function(e,n){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),ee(n,e)}(e,a)}},[q(a)]),(0,o.createVNode)("div",{class:(0,r.resolveClassName)("node-content")},[[W(a),Y(a)],(0,o.createVNode)("span",{class:(0,r.resolveClassName)("node-text")},[null!==(s=null===(c=(l=n.slots).node)||void 0===c?void 0:c.call(l,L(a)))&&void 0!==s?s:[x(a,e)]]),null===(f=(d=n.slots).nodeAppend)||void 0===f?void 0:f.call(d,L(a))]),te(a)])])},handleTreeNodeClick:ee,deepAutoOpen:H,asyncNodeClick:k,setNodeAction:$,setNodeOpened:Z,setSelect:ne,setOpen:Q}};var q=c(8022),Y=void 0;const F=(0,o.defineComponent)({name:"Tree",props:I,emits:f,setup:function(e,n){var i=function(e){var n,t=function(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=e.data,i=e.children,a=[],c=[],s=0,d=new Map;function f(e,n,t,r){if(null!=e&&d.has(e)&&![u.UUID,u.PARENT_ID].includes(n)){var o=d.get(e);Object.prototype.hasOwnProperty.call(o,n)&&"function"==typeof r&&Reflect.apply(r,self,[o,n,t])&&(Object.assign(o,l({},n,t)),f(o[u.PARENT_ID],n,t,r))}}function p(n){var t=null;return"string"==typeof e.nodeKey&&(t=n[e.nodeKey]||(0,q.v4)()),t||n[u.UUID]||(0,q.v4)()}var y=(l(n={},u.IS_OPEN,(function(){return!!e.expandAll})),l(n,u.IS_CHECKED,(function(){return!1})),l(n,u.IS_MATCH,(function(){return!0})),l(n,u.IS_SELECTED,(function(n){return e.selected===n})),l(n,u.IS_CACHED,(function(){return!1})),l(n,u.IS_ASYNC,(function(){return null})),l(n,u.IS_LOADING,(function(){return!1})),n);function N(e,n,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=o;void 0===o&&"function"==typeof y[t]&&(i=y[t](e,n));var a=v[t];if(Object.prototype.hasOwnProperty.call(n,a))return n[a];var l=(r||[]).find((function(n){return n[u.UUID]===e})),c=void 0;return l&&(c=l[t]),null==c&&(c=i),c}function _(n,t){return!!e.selectable&&N(n,t,u.IS_SELECTED,e.selected===n)}function h(e,n,t){var r,o=N(e,n,u.IS_OPEN),i=!d.has(t)||(null===(r=d.get(t))||void 0===r?void 0:r[u.IS_OPEN]);return o&&i}function I(e){return!e[u.IS_OPEN]}function E(n){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,v=n.length,y=0;y<v;y++){var S=n[y];if(Array.isArray(S))E(S,t,r,o);else if("object"===D(S)&&null!==S){var g,T,A=null!==o?"".concat(o,"-").concat(y):"".concat(y),C="".concat(p(S)),m=!!(S[i]||[]).length,O=N(C,S,u.IS_OPEN);e.autoOpenParentNode?O&&f(r,u.IS_OPEN,!0,I):O=h(C,S,r),Object.assign(S,l({},u.UUID,C));var b=e.showCheckbox&&N(C,S,u.IS_CHECKED);b&&a.push(C),d.set(C,(l(g={},u.DEPTH,t),l(g,u.INDEX,y),l(g,u.UUID,C),l(g,u.PARENT_ID,r),l(g,u.HAS_CHILD,m),l(g,u.PATH,A),l(g,u.IS_ROOT,null===r),l(g,u.ORDER,s),l(g,u.IS_SELECTED,_(C,S)),l(g,u.IS_MATCH,N(C,S,u.IS_MATCH)),l(g,u.IS_OPEN,O),l(g,u.IS_CHECKED,b),l(g,u.IS_CACHED,N(C,S,u.IS_CACHED)),l(g,u.IS_ASYNC,N(C,S,u.IS_ASYNC)),l(g,u.IS_LOADING,N(C,S,u.IS_LOADING)),l(g,i,null),g)),s+=1,c.push(Object.assign(Object.assign({},JSON.parse(JSON.stringify(S,(function(n,t){return n===e.children?null:t})))),(l(T={},u.IS_OPEN,O),l(T,i,null),T))),Object.prototype.hasOwnProperty.call(S,i)&&E(S[i]||[],t+1,C,A)}}}return E(t||o),e.showCheckbox&&(null==a||a.forEach((function(e){Array.from(d.values()).filter((function(n){var t;return null===(t=n[u.PATH])||void 0===t?void 0:t.startsWith(d.get(e)[u.PATH])})).forEach((function(e){return Object.assign(e,l({},u.IS_CHECKED,!0))})),f(e,u.IS_CHECKED,!0,(function(){return!0}))}))),[c,d]},r=t(e),i=new Map,a=[],c=[],s=(0,o.reactive)({data:r[0],schema:r[1],levelLineSchema:{}}),d=(0,o.computed)((function(){return Array.from(s.schema.values())})),f=K(e,s),p=f.asyncNodeClick,y=f.deepAutoOpen,N=function(e,n){(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&i.has(e)&&i.delete(e),i.set(e,n)},_=function(e){var n,t=function(e){return"function"==typeof e?{type:"loop",fn:e}:"object"===D(e)&&"string"==typeof e.type&&"function"==typeof e.fn?e:(console.error("loop event error",e),null)}(e);return null!==t&&Reflect.apply(t.fn,Y,[]),null!==(n=null==t?void 0:t.type)&&void 0!==n?n:"once"};return(0,o.watch)((function(){return[e.data]}),(function(n){var r,o,a=t(e,n,d.value);s.data=a[0],s.schema=a[1],(null===(r=e.async)||void 0===r?void 0:r.callback)&&"every"===(null===(o=e.async)||void 0===o?void 0:o.deepAutoOpen)&&y(),Array.from(i.keys()).forEach((function(e){var n=i.get(e);if(Array.isArray(n)){var t=[];n.forEach((function(e,n){"once"===_(e)&&t.unshift(n)})),t.length&&t.forEach((function(e){return n.splice(e,1)})),0===n.length&&i.delete(e)}else"once"===_(n)&&i.delete(e)}))}),{deep:!0}),e.selectable&&(0,o.onMounted)((function(){(0,o.watch)((function(){return e.selected}),(function(e){c.length=0,a.forEach((function(n){Reflect.apply(n,Y,[e]),c.push((function(){return Reflect.apply(n,Y,[e])}))})),N("afterSelectWatch",c)}),{immediate:!0})})),(null===(n=e.async)||void 0===n?void 0:n.callback)&&y(),{flatData:s,schemaValues:d,asyncNodeClick:p,deepAutoOpen:y,afterDataUpdate:function(e){N("afterDataUpdate",e)},registerNextLoop:N,onSelected:function(e){a.push(e)}}}(e),c=i.flatData,s=i.schemaValues,d=i.onSelected,f=i.registerNextLoop,p=C(c,e),y=p.setNodeAttr,N=p.checkNodeIsOpen,_=p.getNodeAttr,h=p.getNodePath,I=p.isRootNode,E=p.isNodeOpened,g=p.isNodeChecked,T=p.isNodeMatched,A=p.hasChildNode,m=function(e){var n,t=(0,o.toRef)(e,"search"),r=null!==(n=e.search)&&void 0!==n?n:{},i=r.openResultNode,a=void 0!==i&&i,l=r.resultType,u=void 0===l?"tree":l,c=function(e){return["string","number","boolean"].includes(D(e))},s=function(e,n){return e===n},d=function(e,n){return new RegExp("".concat(e),"i").test("".concat(n))},f=function(e,n){return Reflect.apply(e,void 0,n)},p=void 0===t.value||!1===t.value,v=(0,o.computed)((function(){return!1!==t.value&&(c(t.value)?"".concat(t.value).length>0:"object"===D(t.value))}));return{searchFn:function(e,n){if(p)return!0;if(c(t.value))return f(d,[t.value,e,n]);var r=t.value,o=r.value,i=void 0===o?"":o,a=r.match,l=void 0===a?"fuzzy":a,u="function"==typeof l?l:"fuzzy"===l?d:s;return 0==="".concat(i).length||f(u,[i,e,n])},refSearch:t,isSearchActive:v,isSearchDisabled:p,openResultNode:a,resultType:u,isTreeUI:"tree"===u}}(e),O=m.searchFn,b=m.isSearchActive,P=m.refSearch,L=m.openResultNode,U=m.isTreeUI;m.isSearchDisabled||(0,o.watch)([P],(function(){c.data.forEach((function(n){var t=O(x(n,e),n);y(n,u.IS_MATCH,t),L&&F(n,!0,!0)}))}));var R=(0,o.computed)((function(){return c.data.filter((function(e){return N(e)&&function(e){return!b.value||(_(e,u.IS_MATCH)||!!U&&s.value.some((function(n){var t;return(null===(t=n[u.PATH])||void 0===t?void 0:t.startsWith(h(e)))&&n[u.IS_MATCH]})))}(e)}))})),k=G(e,n,c,0,s,{registerNextLoop:f}),w=k.renderTreeNode,j=k.handleTreeNodeClick,V=k.setNodeOpened,F=k.setOpen,X=k.setNodeAction,z=k.setSelect,J=k.asyncNodeClick;d((function(n){z(n,!0,e.autoOpenParentNode)})),n.expose({handleTreeNodeClick:j,isNodeChecked:g,isRootNode:I,isNodeOpened:E,isNodeMatched:T,hasChildNode:A,setOpen:F,setChecked:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];X(M(e),u.IS_CHECKED,n)},setNodeAction:X,setNodeOpened:V,setSelect:z,asyncNodeClick:J,getData:function(){return c}});var B=(0,o.ref)(),W=function(e,n){var t=n.slots;return{renderEmpty:function(n){var r,i;return(0,o.createVNode)(S(),{scene:"part",type:n},{default:function(){return[null!==(i=null===(r=t.default)||void 0===r?void 0:r.call(t))&&void 0!==i?i:e.emptyText]}})}}}(e,n),Z=W.renderEmpty;return function(e,n,r,i){var a=C(i,e),c=a.getSourceNodeByUID,s=a.getNodeParentIdById,d=a.getParentNodeData,f=a.getNodeAttr,p=a.getNodePath,v=a.isRootNode,y=(0,o.computed)((function(){return"function"==typeof e.disableDrag})),N=(0,o.computed)((function(){return"function"==typeof e.disableDrop})),_=function(e){return e.target.closest("[data-tree-node]")},h=function(e){var n,t=null===(n=null==e?void 0:e.dataset)||void 0===n?void 0:n.treeNode;return c(t)},I=function e(n){_(n).removeEventListener("mouseup",e)},E=function(n){var t=_(n),r=h(t);!1===r.draggable||y.value&&e.disableDrag(r)?t.classList.add("bk-tree-drag-disabled"):(t.setAttribute("draggable","true"),t.addEventListener("mouseup",I))},S=function(r){r.preventDefault();var o=_(r),i=h(o);if(n.emit(t.NODE_DRAG_OVER,r,o,i),N.value&&(null==e?void 0:e.disableDrop(i)))return r.dataTransfer.effectAllowed="move",r.dataTransfer.dropEffect="none",void o.classList.add("bk-tree-drop-disabled");o.classList.add("bk-tree-drop-active");var a=r.dataTransfer.getData("node-id"),l=o.getAttribute("data-tree-node"),u=T(a,l)?"move":"none";r.dataTransfer.effectAllowed=u,r.dataTransfer.dropEffect=u},D=function(e){e.dataTransfer.effectAllowed="move",e.dataTransfer.dropEffect="move";var r=_(e);e.dataTransfer.setData("text/plain",""),e.dataTransfer.setData("node-id",r.getAttribute("data-tree-node")),n.emit(t.NODE_DRAG_START,e,r)},g=function(r){r.preventDefault(),r.stopPropagation();var o=_(r);o.classList.remove("bk-tree-drop-active","bk-tree-drop-disabled");var i=h(o);if(!N.value||!e.disableDrop(i)){var a=r.dataTransfer.getData("node-id"),l=o.getAttribute("data-tree-node");Reflect.apply(e.dragSort?A:m,void 0,[a,l]),n.emit(t.NODE_DROP,r,o,i)}},T=function(e,n){var t=p(l({},u.UUID,e)),r=p(l({},u.UUID,n));return s(e)===s(n)||-1===t.indexOf(r)&&-1===r.indexOf(t)},A=function(n,t){if(T(n,t)){var r=JSON.parse(JSON.stringify(c(n))),o=JSON.parse(JSON.stringify(c(t))),i=d(n),a=d(t),s=f(l({},u.UUID,n),u.INDEX),p=f(l({},u.UUID,t),u.INDEX);null==i||i[e.children].splice(s,1,o),null==a||a[e.children].splice(p,1,r)}},m=function(n,t){var r=c(n),o=c(t),i=null;if(v(l({},u.UUID,n)))i=e.data;else{var a=s(n);if(null!=a){i=c(a);var d=f(l({},u.UUID,n),u.INDEX);null==i||i[e.children].splice(d,1)}}o[e.children]||(o[e.children]=[]),o[e.children].unshift(r)},O=function(e){e.preventDefault();var r=_(e);r.classList.remove("bk-tree-drop-active","bk-tree-drop-disabled"),n.emit(t.NODE_DRAG_LEAVE,e,r)};(0,o.onMounted)((function(){if(e.draggable&&r.value){var n=r.value.$el;n.addEventListener("mousedown",E),n.addEventListener("dragstart",D),n.addEventListener("dragover",S),n.addEventListener("dragleave",O),n.addEventListener("drop",g)}})),(0,o.onUnmounted)((function(){if(e.draggable&&r.value){var n=r.value.$el;n.removeEventListener("mousedown",E),n.removeEventListener("dragstart",D),n.removeEventListener("dragover",S),n.removeEventListener("dragleave",O),n.removeEventListener("drop",g)}}))}(e,n,B,c),function(){return(0,o.createVNode)(a(),{class:(0,r.resolveClassName)("tree"),style:H(null,e),list:R.value,lineHeight:e.lineHeight,enabled:e.virtualRender,contentClassName:(0,r.resolveClassName)("container"),throttleDelay:0,ref:B},{default:function(e){return function(e){if(e.length)return e.map(w);var n=b.value?"search-empty":"empty";return Z(n)}(e.data||[])}})}}}),X=(0,r.withInstall)(F)})(),s})()));
@@ -0,0 +1,213 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ /**
3
+ * Tree Prop: prefixIcon function
4
+ * @param {} isRoot 是否为分跟节点
5
+ * @param {} hasChild 是否有孩子节点
6
+ * @param {} isOpen 当前节点是否展开
7
+ * @param {} renderType 当前渲染类型(action: 用来标识当前节点状态,展开 | 收起, node_type:节点类型,文件、文件夹)
8
+ * @param {} item 当前节点数据
9
+ */
10
+ export declare type IPrefixIcon = (isRoot: boolean, hasChild: boolean, isOpen: boolean, renderType: string, item: any) => any;
11
+ export declare const treeProps: {
12
+ /**
13
+ * 渲染列表
14
+ */
15
+ data: import("vue-types").VueTypeDef<any[]> & {
16
+ default: () => any[];
17
+ };
18
+ /**
19
+ * 指定节点标签为节点对象的某个属性值
20
+ */
21
+ label: import("vue-types").VueTypeDef<any>;
22
+ /**
23
+ * 每个树节点用来作为唯一标识的属性,此标识应该是唯一的
24
+ * 如果设置系统会默认自动生成唯一id
25
+ */
26
+ nodeKey: import("vue-types").VueTypeValidableDef<string> & {
27
+ default: string;
28
+ } & {
29
+ default: string;
30
+ };
31
+ /**
32
+ * 子节点 Key, 用于读取子节点
33
+ * 默认 children
34
+ */
35
+ children: import("vue-types").VueTypeValidableDef<string> & {
36
+ default: string;
37
+ } & {
38
+ default: string;
39
+ };
40
+ /**
41
+ * 相邻级节点间的水平缩进,单位为像素
42
+ */
43
+ indent: import("vue-types").VueTypeValidableDef<number> & {
44
+ default: number;
45
+ } & {
46
+ default: number;
47
+ };
48
+ /**
49
+ * 设置行高
50
+ */
51
+ lineHeight: import("vue-types").VueTypeValidableDef<number> & {
52
+ default: number;
53
+ } & {
54
+ default: number;
55
+ };
56
+ /**
57
+ * 设置层级连线
58
+ */
59
+ levelLine: import("vue-types").VueTypeDef<any> & {
60
+ default: any;
61
+ };
62
+ /**
63
+ * 是否开启虚拟滚动
64
+ * 默认虚拟滚动是开启的,数据量大的情况下有利于性能优化,可以通过设置 virtualRender = false 关闭虚拟滚动
65
+ */
66
+ virtualRender: import("vue-types").VueTypeValidableDef<boolean> & {
67
+ default: boolean;
68
+ } & {
69
+ default: boolean;
70
+ };
71
+ /**
72
+ * 当前节点标识图标
73
+ * 默认 true
74
+ */
75
+ prefixIcon: import("vue-types").VueTypeDef<any> & {
76
+ default: any;
77
+ };
78
+ /**
79
+ * 异步加载节点数据配置
80
+ * @param callback 请求数据回调函数,函数返回 Promise
81
+ * @param cache 是否缓存请求结果,默认为True,只有在第一次才会发起请求,若设置为false则每次都会发起请求
82
+ */
83
+ async: import("vue-types").VueTypeShape<AsyncOption>;
84
+ /**
85
+ * 每个节点偏移左侧距离
86
+ */
87
+ offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
88
+ default: number;
89
+ } & {
90
+ default: number;
91
+ };
92
+ /**
93
+ * 搜索配置
94
+ * 可以为一个配置项 SearchOption
95
+ * 或者直接为一个字符串,如果直接为字符串则模糊匹配此值
96
+ */
97
+ search: import("vue-types").VueTypeDef<string | number | boolean | SearchOption> & {
98
+ default: string | number | boolean | (() => SearchOption);
99
+ };
100
+ emptyText: import("vue-types").VueTypeValidableDef<string> & {
101
+ default: string;
102
+ } & {
103
+ default: string;
104
+ };
105
+ draggable: import("vue-types").VueTypeValidableDef<boolean> & {
106
+ default: boolean;
107
+ } & {
108
+ default: boolean;
109
+ };
110
+ disableDrag: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
111
+ default: (...args: any[]) => any;
112
+ } & {
113
+ default: (...args: any[]) => any;
114
+ };
115
+ disableDrop: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
116
+ default: (...args: any[]) => any;
117
+ } & {
118
+ default: (...args: any[]) => any;
119
+ };
120
+ /**
121
+ * 节点拖拽时可交换位置(开启拖拽可交换位置后将不支持改变层级)
122
+ */
123
+ dragSort: import("vue-types").VueTypeValidableDef<boolean> & {
124
+ default: boolean;
125
+ } & {
126
+ default: boolean;
127
+ };
128
+ /**
129
+ * 节点是否可以选中
130
+ */
131
+ selectable: import("vue-types").VueTypeDef<any> & {
132
+ default: any;
133
+ };
134
+ disabledFolderSelectable: import("vue-types").VueTypeValidableDef<boolean> & {
135
+ default: boolean;
136
+ } & {
137
+ default: boolean;
138
+ };
139
+ /**
140
+ * 是否支持多选
141
+ */
142
+ showCheckbox: import("vue-types").VueTypeValidableDef<boolean> & {
143
+ default: boolean;
144
+ } & {
145
+ default: boolean;
146
+ };
147
+ /**
148
+ * 是否显示节点类型Icon
149
+ */
150
+ showNodeTypeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
151
+ default: boolean;
152
+ } & {
153
+ default: boolean;
154
+ };
155
+ /**
156
+ * 默认选中的节点id,selectable为false时无效
157
+ */
158
+ selected: import("vue-types").VueTypeDef<string | number | {
159
+ [key: string]: any;
160
+ }> & {
161
+ default: string | number | (() => {
162
+ [key: string]: any;
163
+ });
164
+ };
165
+ /**
166
+ * 是否自动检查当前节点是否有子节点
167
+ * 节点前面的展开收起Icon会根据判定值做改变
168
+ * 如果需要自已控制,请设置为false
169
+ */
170
+ autoCheckChildren: import("vue-types").VueTypeValidableDef<boolean> & {
171
+ default: boolean;
172
+ } & {
173
+ default: boolean;
174
+ };
175
+ /**
176
+ * 如果设置了某一个叶子节点状态为展开,是否自动展开所有父级节点
177
+ * 默认为true,如果设置为false,则每层状态需要自己控制
178
+ */
179
+ autoOpenParentNode: import("vue-types").VueTypeValidableDef<boolean> & {
180
+ default: boolean;
181
+ } & {
182
+ default: boolean;
183
+ };
184
+ /**
185
+ * 默认是否展开所有节点
186
+ */
187
+ expandAll: import("vue-types").VueTypeValidableDef<boolean> & {
188
+ default: boolean;
189
+ } & {
190
+ default: boolean;
191
+ };
192
+ /**
193
+ * 节点内容点击行为
194
+ * 此处配置每个节点除了展开\收起箭头之外的内容块时的行为
195
+ * 默认为 ['selected', 'expand', 'click'],点击内容块为选中当前节点
196
+ */
197
+ nodeContentAction: import("vue-types").VueTypeDef<any> & {
198
+ default: any;
199
+ };
200
+ };
201
+ declare type AsyncOption = {
202
+ callback: (item: any, cb: any) => Promise<any>;
203
+ cache: Boolean;
204
+ deepAutoOpen?: string;
205
+ };
206
+ export declare type SearchOption = {
207
+ value: string | number | boolean;
208
+ match: string | Function;
209
+ resultType: string;
210
+ openResultNode: boolean;
211
+ };
212
+ export declare type TreePropTypes = Readonly<ExtractPropTypes<typeof treeProps>>;
213
+ export {};
@@ -0,0 +1,218 @@
1
+ .bk-F-scroll-x {
2
+ overflow-x: auto;
3
+ scrollbar-color: #a0a0a0 transparent;
4
+ scrollbar-width: thin;
5
+ }
6
+ .bk-F-scroll-x::-webkit-scrollbar {
7
+ height: 6px;
8
+ }
9
+ .bk-F-scroll-y {
10
+ overflow-y: auto;
11
+ }
12
+ .bk-F-scroll-y::-webkit-scrollbar {
13
+ width: 4px;
14
+ }
15
+ .bk-F-scroll-y::-webkit-scrollbar-thumb {
16
+ border-radius: 4px;
17
+ }
18
+ .bk-virtual-render {
19
+ position: relative;
20
+ }
21
+ .bk-virtual-render .bk-virtual-content,
22
+ .bk-virtual-render.bk-virtual-content {
23
+ position: absolute;
24
+ top: 0;
25
+ bottom: 0;
26
+ left: 0;
27
+ width: 100%;
28
+ height: 100%;
29
+ }
30
+ .bk-virtual-render .bk-virtual-section {
31
+ width: 1px;
32
+ background: transparent;
33
+ }
34
+ .bk-checkbox-group {
35
+ display: inline-flex;
36
+ letter-spacing: normal;
37
+ }
38
+ .bk-checkbox {
39
+ display: inline-flex;
40
+ justify-self: center;
41
+ align-items: center;
42
+ font-size: 14px;
43
+ letter-spacing: normal;
44
+ color: #63656e;
45
+ cursor: pointer;
46
+ user-select: none;
47
+ }
48
+ .bk-checkbox ~ .bk-checkbox {
49
+ margin-left: 30px;
50
+ }
51
+ .bk-checkbox.is-checked .bk-checkbox-input {
52
+ background: #3a84ff;
53
+ border-color: #3a84ff;
54
+ transition: all 0.1s;
55
+ }
56
+ .bk-checkbox.is-checked .bk-checkbox-input.small::after {
57
+ width: 3px;
58
+ height: 6px;
59
+ }
60
+ .bk-checkbox.is-checked .bk-checkbox-input::after {
61
+ position: absolute;
62
+ top: 50%;
63
+ left: 50%;
64
+ width: 4px;
65
+ height: 8px;
66
+ border: 2px solid #fff;
67
+ border-top: 0;
68
+ border-left: 0;
69
+ content: '';
70
+ transform: translate(-50%, -60%) scaleY(1) rotate(45deg);
71
+ transform-origin: center;
72
+ }
73
+ .bk-checkbox.is-indeterminated .bk-checkbox-input {
74
+ background: #3a84ff;
75
+ border-color: #3a84ff;
76
+ transition: all 0.1s;
77
+ }
78
+ .bk-checkbox.is-indeterminated .bk-checkbox-input.small::after {
79
+ width: 6px;
80
+ height: 2px;
81
+ }
82
+ .bk-checkbox.is-indeterminated .bk-checkbox-input::after {
83
+ position: absolute;
84
+ top: 50%;
85
+ left: 50%;
86
+ width: 8px;
87
+ height: 2px;
88
+ background: #fff;
89
+ border: none;
90
+ border-radius: 2px;
91
+ content: '';
92
+ transform: translate(-50%, -50%);
93
+ }
94
+ .bk-checkbox.is-disabled {
95
+ color: #c4c6cc;
96
+ cursor: not-allowed;
97
+ }
98
+ .bk-checkbox.is-disabled .bk-checkbox-input {
99
+ background: #fafbfd;
100
+ border-color: #dcdee5;
101
+ }
102
+ .bk-checkbox.is-disabled .bk-checkbox-input::after {
103
+ background: #dcdee5;
104
+ }
105
+ .bk-checkbox.is-disabled.is-checked .bk-checkbox-input {
106
+ background: #dcdee5;
107
+ }
108
+ .bk-checkbox-input {
109
+ position: relative;
110
+ display: inline-block;
111
+ width: 16px;
112
+ height: 16px;
113
+ vertical-align: middle;
114
+ border: 1px solid #979ba5;
115
+ border-radius: 2px;
116
+ }
117
+ .bk-checkbox-input.small {
118
+ width: 14px;
119
+ height: 14px;
120
+ }
121
+ .bk-checkbox-original {
122
+ position: absolute;
123
+ top: 0;
124
+ left: 0;
125
+ z-index: -1;
126
+ width: 0;
127
+ height: 0;
128
+ }
129
+ .bk-checkbox-label {
130
+ display: inline-block;
131
+ margin-left: 5px;
132
+ vertical-align: middle;
133
+ }
134
+ .bk-tree {
135
+ font-size: 14px;
136
+ }
137
+ .bk-tree .bk-node-row {
138
+ padding-left: calc(var(--offset-left));
139
+ }
140
+ .bk-tree .bk-node-row.is-selected {
141
+ background-color: #ebf2ff;
142
+ }
143
+ .bk-tree-node {
144
+ position: relative;
145
+ display: flex;
146
+ height: var(--lineHeight);
147
+ padding-left: 0;
148
+ line-height: var(--lineHeight);
149
+ cursor: pointer;
150
+ align-items: center;
151
+ }
152
+ .bk-tree-node:not(.is-root) {
153
+ margin-left: calc(var(--depth)*var(--indent));
154
+ }
155
+ .bk-tree-node:not(.is-root).level-line::before {
156
+ position: absolute;
157
+ top: calc(50% + 1px);
158
+ left: calc(0px - var(--indent) + 6px);
159
+ z-index: 1;
160
+ width: calc(var(--indent) - 6px);
161
+ height: 0;
162
+ pointer-events: none;
163
+ border-bottom: var(--level-line);
164
+ content: '';
165
+ }
166
+ .bk-tree-node.is-open .bk-node-action {
167
+ color: #63656e;
168
+ }
169
+ .bk-tree-node .node-virtual-line {
170
+ position: absolute;
171
+ top: -12px;
172
+ bottom: 50%;
173
+ left: calc(var(--depth) * var(--indent) * -1 + 6px);
174
+ display: inline-block;
175
+ width: 0;
176
+ border-left: var(--level-line);
177
+ }
178
+ .bk-tree-node .bk-node-prefix {
179
+ display: flex;
180
+ width: 14px;
181
+ height: 14px;
182
+ align-items: center;
183
+ justify-content: center;
184
+ }
185
+ .bk-tree-node .bk-node-action {
186
+ margin-right: 6px;
187
+ color: #979ba5;
188
+ }
189
+ .bk-tree-node .bk-tree-icon {
190
+ margin: 0 6px 0 4px;
191
+ }
192
+ .bk-tree-node .bk-node-content {
193
+ display: flex;
194
+ flex: 1;
195
+ align-items: center;
196
+ min-width: 0;
197
+ }
198
+ .bk-tree-node .bk-node-content .bk-checkbox {
199
+ margin: 0;
200
+ }
201
+ .bk-tree-node .bk-node-content .bk-checkbox .bk-checkbox-input {
202
+ margin: 0;
203
+ }
204
+ .bk-tree-node .bk-node-content .bk-node-text {
205
+ flex: 1;
206
+ overflow: hidden;
207
+ text-overflow: ellipsis;
208
+ white-space: nowrap;
209
+ }
210
+ .bk-tree-drop-active {
211
+ background: #f5f7fa;
212
+ }
213
+ .bk-tree-drop-disabled {
214
+ background: #ffd5d5;
215
+ }
216
+ .bk-tree-drop-disabled .bk-tree-node {
217
+ cursor: no-drop;
218
+ }