bkui-vue 0.0.1-beta.35 → 0.0.1-beta.350

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 (652) hide show
  1. package/dist/index.cjs.js +179 -0
  2. package/dist/index.esm.js +38650 -0
  3. package/dist/index.umd.js +179 -0
  4. package/dist/style.css +1 -5865
  5. package/dist/style.variable.css +1 -0
  6. package/lib/affix/affix.css +360 -0
  7. package/lib/affix/affix.d.ts +47 -0
  8. package/lib/affix/affix.less +5 -0
  9. package/lib/affix/affix.variable.css +836 -0
  10. package/lib/affix/index.d.ts +143 -0
  11. package/lib/affix/index.js +1 -0
  12. package/lib/alert/alert.css +369 -6
  13. package/lib/alert/alert.d.ts +5 -5
  14. package/lib/alert/alert.less +29 -20
  15. package/lib/alert/alert.variable.css +753 -7
  16. package/lib/alert/index.d.ts +11 -11
  17. package/lib/alert/index.js +1 -0
  18. package/lib/animate-number/animate-number.d.ts +1 -1
  19. package/lib/animate-number/index.d.ts +4 -4
  20. package/lib/animate-number/{animate-number.js → index.js} +1 -1
  21. package/lib/backtop/backtop.css +367 -2
  22. package/lib/backtop/backtop.d.ts +1 -1
  23. package/lib/backtop/backtop.less +8 -0
  24. package/lib/backtop/backtop.variable.css +752 -4
  25. package/lib/backtop/index.d.ts +4 -4
  26. package/lib/backtop/index.js +1 -0
  27. package/lib/badge/badge.css +388 -31
  28. package/lib/badge/badge.d.ts +28 -7
  29. package/lib/badge/badge.less +5 -6
  30. package/lib/badge/badge.variable.css +749 -9
  31. package/lib/badge/index.d.ts +68 -18
  32. package/lib/badge/index.js +1 -0
  33. package/lib/breadcrumb/breadcrumb.css +413 -5
  34. package/lib/breadcrumb/breadcrumb.variable.css +795 -4
  35. package/lib/breadcrumb/index.js +1 -0
  36. package/lib/button/button-group.d.ts +2 -2
  37. package/lib/button/button.css +534 -139
  38. package/lib/button/button.d.ts +44 -24
  39. package/lib/button/button.less +74 -41
  40. package/lib/button/button.variable.css +831 -53
  41. package/lib/button/index.d.ts +70 -40
  42. package/lib/button/index.js +1 -0
  43. package/lib/card/card.css +457 -5
  44. package/lib/card/card.d.ts +47 -6
  45. package/lib/card/card.less +50 -2
  46. package/lib/card/card.variable.css +840 -5
  47. package/lib/card/index.d.ts +113 -17
  48. package/lib/card/index.js +1 -0
  49. package/lib/cascader/cascader-panel.d.ts +100 -0
  50. package/lib/cascader/cascader.css +530 -0
  51. package/lib/cascader/cascader.d.ts +303 -0
  52. package/lib/cascader/cascader.less +196 -0
  53. package/lib/cascader/cascader.variable.css +1006 -0
  54. package/lib/cascader/index.d.ts +868 -0
  55. package/lib/cascader/index.js +1 -0
  56. package/lib/cascader/interface.d.ts +51 -0
  57. package/lib/cascader/node.d.ts +31 -0
  58. package/lib/cascader/store.d.ts +23 -0
  59. package/lib/checkbox/checkbox-group.d.ts +16 -0
  60. package/lib/checkbox/checkbox.css +408 -15
  61. package/lib/checkbox/checkbox.d.ts +20 -24
  62. package/lib/checkbox/checkbox.less +79 -31
  63. package/lib/checkbox/checkbox.variable.css +790 -14
  64. package/lib/checkbox/common.d.ts +4 -3
  65. package/lib/checkbox/index.d.ts +47 -38
  66. package/lib/checkbox/index.js +1 -0
  67. package/lib/checkbox/type.d.ts +2 -6
  68. package/lib/code-diff/code-diff.css +384 -7
  69. package/lib/code-diff/code-diff.d.ts +1 -1
  70. package/lib/code-diff/code-diff.less +42 -7
  71. package/lib/code-diff/code-diff.variable.css +771 -11
  72. package/lib/code-diff/index.js +1 -0
  73. package/lib/collapse/collapse-panel.d.ts +67 -0
  74. package/lib/collapse/collapse.css +385 -12
  75. package/lib/collapse/collapse.d.ts +11 -52
  76. package/lib/collapse/collapse.less +54 -29
  77. package/lib/collapse/collapse.variable.css +861 -12
  78. package/lib/collapse/index.d.ts +108 -16
  79. package/lib/collapse/index.js +1 -0
  80. package/lib/collapse/props.d.ts +79 -0
  81. package/lib/collapse/utils.d.ts +11 -0
  82. package/lib/color-picker/color-picker.css +632 -0
  83. package/lib/color-picker/color-picker.d.ts +144 -0
  84. package/lib/color-picker/color-picker.less +325 -0
  85. package/lib/color-picker/color-picker.variable.css +1108 -0
  86. package/lib/color-picker/components/color-input.d.ts +42 -0
  87. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  88. package/lib/color-picker/components/input-container.d.ts +42 -0
  89. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  90. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  91. package/lib/color-picker/index.d.ts +254 -0
  92. package/lib/color-picker/index.js +1 -0
  93. package/lib/color-picker/utils.d.ts +37 -0
  94. package/lib/components.d.ts +25 -8
  95. package/lib/components.js +1 -0
  96. package/lib/container/col.d.ts +51 -0
  97. package/lib/container/container.css +448 -0
  98. package/lib/container/container.d.ts +83 -0
  99. package/lib/container/container.less +20 -0
  100. package/lib/container/container.variable.css +924 -0
  101. package/lib/container/index.d.ts +223 -0
  102. package/lib/container/index.js +1 -0
  103. package/lib/container/row.d.ts +4 -0
  104. package/lib/date-picker/base/confirm.d.ts +74 -0
  105. package/lib/date-picker/base/date-table.d.ts +102 -0
  106. package/lib/date-picker/base/picker-dropdown.d.ts +73 -0
  107. package/lib/date-picker/base/time-spinner.d.ts +153 -0
  108. package/lib/date-picker/date-picker.css +402 -18
  109. package/lib/date-picker/date-picker.d.ts +49 -20
  110. package/lib/date-picker/date-picker.less +33 -1
  111. package/lib/date-picker/date-picker.variable.css +772 -5
  112. package/lib/date-picker/index.d.ts +121 -54
  113. package/lib/date-picker/index.js +1 -0
  114. package/lib/date-picker/interface.d.ts +11 -1
  115. package/lib/date-picker/panel/date-range.d.ts +309 -0
  116. package/lib/date-picker/panel/date.d.ts +206 -0
  117. package/lib/date-picker/panel/time-range.d.ts +489 -0
  118. package/lib/date-picker/panel/time.d.ts +448 -0
  119. package/lib/date-picker/props.d.ts +55 -5
  120. package/lib/date-picker/time-picker.d.ts +381 -0
  121. package/lib/date-picker/utils.d.ts +22 -2
  122. package/lib/dialog/dialog.css +144 -22
  123. package/lib/dialog/dialog.d.ts +256 -58
  124. package/lib/dialog/dialog.less +97 -23
  125. package/lib/dialog/dialog.variable.css +144 -22
  126. package/lib/dialog/index.d.ts +562 -126
  127. package/lib/dialog/index.js +1 -0
  128. package/lib/dialog/props.d.ts +130 -0
  129. package/lib/directives/ellipsis.d.ts +7 -0
  130. package/lib/directives/index.d.ts +1 -0
  131. package/lib/directives/index.js +2 -0
  132. package/lib/directives/{directives.js.LICENSE.txt → index.js.LICENSE.txt} +0 -0
  133. package/lib/directives/tooltips.d.ts +1 -1
  134. package/lib/dist.index.js +1 -0
  135. package/lib/divider/divider.css +360 -3
  136. package/lib/divider/divider.d.ts +15 -15
  137. package/lib/divider/divider.variable.css +744 -4
  138. package/lib/divider/index.d.ts +34 -34
  139. package/lib/divider/index.js +1 -0
  140. package/lib/divider/props.d.ts +6 -6
  141. package/lib/dropdown/dropdown.css +370 -7
  142. package/lib/dropdown/dropdown.d.ts +44 -13
  143. package/lib/dropdown/dropdown.less +47 -34
  144. package/lib/dropdown/dropdown.variable.css +757 -11
  145. package/lib/dropdown/index.d.ts +93 -32
  146. package/lib/dropdown/index.js +1 -0
  147. package/lib/exception/exception.css +397 -14
  148. package/lib/exception/exception.d.ts +18 -11
  149. package/lib/exception/exception.less +59 -22
  150. package/lib/exception/exception.variable.css +784 -18
  151. package/lib/exception/index.d.ts +41 -26
  152. package/lib/exception/index.js +1 -0
  153. package/lib/exception/typings/index.d.ts +4 -0
  154. package/lib/fixed-navbar/fixed-navbar.css +361 -4
  155. package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
  156. package/lib/fixed-navbar/fixed-navbar.variable.css +744 -4
  157. package/lib/fixed-navbar/index.d.ts +40 -5
  158. package/lib/fixed-navbar/{fixed-navbar.js → index.js} +1 -1
  159. package/lib/form/compose-form-item.d.ts +16 -0
  160. package/lib/form/form-item.d.ts +30 -8
  161. package/lib/form/form.css +461 -15
  162. package/lib/form/form.d.ts +28 -11
  163. package/lib/form/form.less +152 -45
  164. package/lib/form/form.variable.css +937 -15
  165. package/lib/form/index.d.ts +99 -32
  166. package/lib/form/index.js +1 -0
  167. package/lib/form/type.d.ts +8 -7
  168. package/lib/form/utils.d.ts +2 -0
  169. package/lib/form/validator.d.ts +1 -0
  170. package/lib/icon/angle-double-down-line.js +1 -1
  171. package/lib/icon/angle-double-left-line.js +1 -1
  172. package/lib/icon/angle-double-left.js +1 -1
  173. package/lib/icon/angle-double-right-line.js +1 -1
  174. package/lib/icon/angle-double-right.js +1 -1
  175. package/lib/icon/angle-double-up-line.js +1 -1
  176. package/lib/icon/angle-down-fill.js +1 -1
  177. package/lib/icon/angle-down-line.js +1 -1
  178. package/lib/icon/angle-down.js +1 -1
  179. package/lib/icon/angle-left.js +1 -1
  180. package/lib/icon/angle-right.js +1 -1
  181. package/lib/icon/angle-up-fill.js +1 -1
  182. package/lib/icon/angle-up.js +1 -1
  183. package/lib/icon/archive-fill.d.ts +4 -0
  184. package/lib/icon/archive-fill.js +1 -0
  185. package/lib/icon/arrows-left.js +1 -1
  186. package/lib/icon/arrows-right.js +1 -1
  187. package/lib/icon/audio-fill.d.ts +4 -0
  188. package/lib/icon/audio-fill.js +1 -0
  189. package/lib/icon/bk.js +1 -1
  190. package/lib/icon/circle.js +1 -1
  191. package/lib/icon/close-line.d.ts +4 -0
  192. package/lib/icon/close-line.js +1 -0
  193. package/lib/icon/close.js +1 -1
  194. package/lib/icon/code.js +1 -1
  195. package/lib/icon/cog-shape.js +1 -1
  196. package/lib/icon/collapse-left.js +1 -1
  197. package/lib/icon/copy.js +1 -1
  198. package/lib/icon/data-shape.d.ts +4 -0
  199. package/lib/icon/data-shape.js +1 -0
  200. package/lib/icon/del.d.ts +4 -0
  201. package/lib/icon/del.js +1 -0
  202. package/lib/icon/doc-fill.d.ts +4 -0
  203. package/lib/icon/doc-fill.js +1 -0
  204. package/lib/icon/done.js +1 -1
  205. package/lib/icon/down-shape.js +1 -1
  206. package/lib/icon/down-small.js +1 -1
  207. package/lib/icon/edit-line.d.ts +4 -0
  208. package/lib/icon/edit-line.js +1 -0
  209. package/lib/icon/ellipsis.js +1 -1
  210. package/lib/icon/enlarge-line.d.ts +4 -0
  211. package/lib/icon/enlarge-line.js +1 -0
  212. package/lib/icon/error.js +1 -1
  213. package/lib/icon/excel-fill.d.ts +4 -0
  214. package/lib/icon/excel-fill.js +1 -0
  215. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  216. package/lib/icon/exclamation-circle-shape.js +1 -0
  217. package/lib/icon/eye.js +1 -1
  218. package/lib/icon/filliscreen-line.d.ts +4 -0
  219. package/lib/icon/filliscreen-line.js +1 -0
  220. package/lib/icon/folder-open.js +1 -1
  221. package/lib/icon/folder-shape-open.js +1 -1
  222. package/lib/icon/folder-shape.js +1 -1
  223. package/lib/icon/folder.js +1 -1
  224. package/lib/icon/funnel.d.ts +4 -0
  225. package/lib/icon/funnel.js +1 -0
  226. package/lib/icon/help-document-fill.js +1 -1
  227. package/lib/icon/help-fill.js +1 -1
  228. package/lib/icon/help.js +1 -1
  229. package/lib/icon/image-fill.d.ts +4 -0
  230. package/lib/icon/img-error.d.ts +4 -0
  231. package/lib/icon/img-error.js +1 -0
  232. package/lib/icon/img-placehoulder.d.ts +4 -0
  233. package/lib/icon/img-placehoulder.js +1 -0
  234. package/lib/icon/index.d.ts +27 -1
  235. package/lib/icon/index.js +1 -0
  236. package/lib/icon/info-line.js +1 -1
  237. package/lib/icon/info.js +1 -1
  238. package/lib/icon/left-shape.js +1 -1
  239. package/lib/icon/left-turn-line.d.ts +4 -0
  240. package/lib/icon/left-turn-line.js +1 -0
  241. package/lib/icon/narrow-line.d.ts +4 -0
  242. package/lib/icon/narrow-line.js +1 -0
  243. package/lib/icon/original.d.ts +4 -0
  244. package/lib/icon/original.js +1 -0
  245. package/lib/icon/pdf-fill.d.ts +4 -0
  246. package/lib/icon/pdf-fill.js +1 -0
  247. package/lib/icon/play-shape.js +1 -1
  248. package/lib/icon/plus.js +1 -1
  249. package/lib/icon/ppt-fill.d.ts +4 -0
  250. package/lib/icon/ppt-fill.js +1 -0
  251. package/lib/icon/qq.js +1 -1
  252. package/lib/icon/right-shape.js +1 -1
  253. package/lib/icon/right-turn-line.d.ts +4 -0
  254. package/lib/icon/right-turn-line.js +1 -0
  255. package/lib/icon/search.js +1 -1
  256. package/lib/icon/share.js +1 -1
  257. package/lib/icon/spinner.js +1 -1
  258. package/lib/icon/success.js +1 -1
  259. package/lib/icon/switcher-loading.js +1 -1
  260. package/lib/icon/text-file.js +1 -1
  261. package/lib/icon/text-fill.d.ts +4 -0
  262. package/lib/icon/text-fill.js +1 -0
  263. package/lib/icon/transfer.d.ts +4 -0
  264. package/lib/icon/transfer.js +1 -0
  265. package/lib/icon/tree-application-shape.js +1 -1
  266. package/lib/icon/unfull-screen.d.ts +4 -0
  267. package/lib/icon/unfull-screen.js +1 -0
  268. package/lib/icon/unvisible.js +1 -1
  269. package/lib/icon/up-shape.js +1 -1
  270. package/lib/icon/upload.d.ts +4 -0
  271. package/lib/icon/upload.js +1 -0
  272. package/lib/icon/video-fill.d.ts +4 -0
  273. package/lib/icon/video-fill.js +1 -0
  274. package/lib/icon/warn.js +1 -1
  275. package/lib/icon/weixin.js +1 -1
  276. package/lib/image/image-viewer.css +142 -0
  277. package/lib/image/image-viewer.d.ts +73 -0
  278. package/lib/image/image-viewer.less +168 -0
  279. package/lib/image/image-viewer.variable.css +142 -0
  280. package/lib/image/image.css +37 -0
  281. package/lib/image/image.d.ts +93 -0
  282. package/lib/image/image.less +44 -0
  283. package/lib/image/image.variable.css +37 -0
  284. package/lib/image/index.d.ts +246 -0
  285. package/lib/image/index.js +1 -0
  286. package/lib/image/props.d.ts +71 -0
  287. package/lib/index.d.ts +1 -1
  288. package/lib/index.js +1 -0
  289. package/lib/info-box/index.d.ts +6 -0
  290. package/lib/info-box/index.js +1 -0
  291. package/lib/info-box/info-box.css +37 -0
  292. package/lib/info-box/info-box.d.ts +26 -0
  293. package/lib/info-box/info-box.less +50 -0
  294. package/lib/info-box/info-box.variable.css +37 -0
  295. package/lib/input/index.d.ts +183 -72
  296. package/lib/input/index.js +1 -0
  297. package/lib/input/input.css +600 -41
  298. package/lib/input/input.d.ts +125 -25
  299. package/lib/input/input.less +158 -17
  300. package/lib/input/input.variable.css +960 -18
  301. package/lib/link/index.d.ts +15 -15
  302. package/lib/link/index.js +1 -0
  303. package/lib/link/link.css +381 -24
  304. package/lib/link/link.d.ts +6 -6
  305. package/lib/link/link.less +16 -14
  306. package/lib/link/link.variable.css +756 -16
  307. package/lib/loading/index.d.ts +112 -19
  308. package/lib/loading/index.js +1 -0
  309. package/lib/loading/loading.css +450 -50
  310. package/lib/loading/loading.d.ts +78 -12
  311. package/lib/loading/loading.less +17 -22
  312. package/lib/loading/loading.variable.css +821 -38
  313. package/lib/menu/index.d.ts +16 -24
  314. package/lib/menu/index.js +1 -0
  315. package/lib/menu/menu.css +426 -18
  316. package/lib/menu/menu.d.ts +7 -16
  317. package/lib/menu/menu.variable.css +795 -4
  318. package/lib/menu/submenu.css +357 -0
  319. package/lib/menu/submenu.variable.css +744 -4
  320. package/lib/message/index.js +1 -0
  321. package/lib/message/message.css +397 -19
  322. package/lib/message/message.less +28 -3
  323. package/lib/message/message.variable.css +769 -8
  324. package/lib/message/messageConstructor.d.ts +47 -11
  325. package/lib/modal/index.d.ts +456 -78
  326. package/lib/modal/index.js +1 -0
  327. package/lib/modal/modal.css +63 -1
  328. package/lib/modal/modal.d.ts +174 -30
  329. package/lib/modal/modal.less +36 -1
  330. package/lib/modal/modal.variable.css +63 -1
  331. package/lib/modal/props.mixin.d.ts +74 -13
  332. package/lib/navigation/index.d.ts +310 -1
  333. package/lib/navigation/index.js +1 -0
  334. package/lib/navigation/navigation.css +360 -3
  335. package/lib/navigation/navigation.d.ts +10 -1
  336. package/lib/navigation/navigation.less +1 -1
  337. package/lib/navigation/navigation.variable.css +745 -5
  338. package/lib/notify/index.js +1 -0
  339. package/lib/notify/notify.css +386 -9
  340. package/lib/notify/notify.less +27 -4
  341. package/lib/notify/notify.variable.css +768 -8
  342. package/lib/notify/notifyConstructor.d.ts +56 -12
  343. package/lib/pagination/index.d.ts +35 -20
  344. package/lib/pagination/index.js +1 -0
  345. package/lib/pagination/pagination.css +412 -29
  346. package/lib/pagination/pagination.d.ts +18 -8
  347. package/lib/pagination/pagination.less +59 -30
  348. package/lib/pagination/pagination.variable.css +798 -32
  349. package/lib/plugin-popover/index.d.ts +27 -0
  350. package/lib/plugin-popover/index.js +1 -0
  351. package/lib/plugins/index.d.ts +1 -0
  352. package/lib/plugins/index.js +1 -0
  353. package/lib/popover/arrow.d.ts +2 -0
  354. package/lib/popover/const.d.ts +16 -0
  355. package/lib/popover/content.d.ts +24 -0
  356. package/lib/popover/index.d.ts +430 -97
  357. package/lib/popover/index.js +1 -0
  358. package/lib/popover/plugin-popover.d.ts +12 -0
  359. package/lib/popover/popover.css +364 -47
  360. package/lib/popover/popover.d.ts +188 -43
  361. package/lib/popover/popover.less +19 -66
  362. package/lib/popover/popover.variable.css +751 -51
  363. package/lib/popover/props.d.ts +91 -31
  364. package/lib/popover/reference.d.ts +2 -0
  365. package/lib/popover/root.d.ts +16 -0
  366. package/lib/popover/use-floating.d.ts +34 -0
  367. package/lib/popover/use-platform.d.ts +30 -0
  368. package/lib/popover/use-popover-init.d.ts +22 -0
  369. package/lib/popover/use-popper-id.d.ts +6 -0
  370. package/lib/popover/utils.d.ts +2 -0
  371. package/lib/popover2/index.d.ts +44 -0
  372. package/lib/popover2/index.js +1 -0
  373. package/lib/popover2/popover.d.ts +2 -0
  374. package/lib/preset.js +1 -0
  375. package/lib/process/index.d.ts +9 -9
  376. package/lib/process/index.js +1 -0
  377. package/lib/process/process.css +381 -11
  378. package/lib/process/process.d.ts +2 -2
  379. package/lib/process/process.less +17 -0
  380. package/lib/process/process.variable.css +757 -4
  381. package/lib/progress/index.d.ts +25 -25
  382. package/lib/progress/index.js +1 -0
  383. package/lib/progress/progress.css +412 -4
  384. package/lib/progress/progress.d.ts +10 -10
  385. package/lib/progress/progress.variable.css +795 -4
  386. package/lib/radio/common.d.ts +5 -5
  387. package/lib/radio/index.d.ts +29 -18
  388. package/lib/radio/index.js +1 -0
  389. package/lib/radio/radio-button.d.ts +7 -8
  390. package/lib/radio/radio-group.d.ts +16 -0
  391. package/lib/radio/radio.css +418 -60
  392. package/lib/radio/radio.d.ts +4 -4
  393. package/lib/radio/radio.less +177 -173
  394. package/lib/radio/radio.variable.css +795 -54
  395. package/lib/radio/type.d.ts +9 -4
  396. package/lib/rate/index.d.ts +28 -5
  397. package/lib/rate/index.js +1 -0
  398. package/lib/rate/rate.d.ts +13 -2
  399. package/lib/rate/star.d.ts +1 -1
  400. package/lib/resize-layout/index.d.ts +18 -18
  401. package/lib/resize-layout/index.js +1 -0
  402. package/lib/resize-layout/resize-layout.css +360 -15
  403. package/lib/resize-layout/resize-layout.d.ts +7 -7
  404. package/lib/resize-layout/resize-layout.less +3 -19
  405. package/lib/resize-layout/resize-layout.variable.css +747 -19
  406. package/lib/search-select/index.d.ts +794 -0
  407. package/lib/search-select/index.js +1 -0
  408. package/lib/search-select/input.d.ts +87 -0
  409. package/lib/search-select/menu.d.ts +83 -0
  410. package/lib/search-select/search-select.css +781 -0
  411. package/lib/search-select/search-select.d.ts +324 -0
  412. package/lib/search-select/search-select.less +380 -0
  413. package/lib/search-select/search-select.variable.css +1257 -0
  414. package/lib/search-select/selected.d.ts +139 -0
  415. package/lib/search-select/utils.d.ts +84 -0
  416. package/lib/select/common.d.ts +5 -12
  417. package/lib/select/index.d.ts +1243 -592
  418. package/lib/select/index.js +1 -0
  419. package/lib/select/option.d.ts +16 -4
  420. package/lib/select/optionGroup.d.ts +1 -1
  421. package/lib/select/select.css +553 -121
  422. package/lib/select/select.d.ts +470 -129
  423. package/lib/select/select.less +317 -197
  424. package/lib/select/select.variable.css +931 -116
  425. package/lib/select/selectTagInput.d.ts +93 -0
  426. package/lib/select/type.d.ts +21 -13
  427. package/lib/shared/dom.d.ts +3 -0
  428. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  429. package/lib/shared/hooks/use-form.d.ts +2 -0
  430. package/lib/shared/index.d.ts +23 -0
  431. package/lib/shared/index.js +1 -0
  432. package/lib/shared/mask-manager.d.ts +6 -2
  433. package/lib/shared/pop-manager.d.ts +16 -4
  434. package/lib/shared/popover.d.ts +6 -2
  435. package/lib/shared/token.d.ts +4 -0
  436. package/lib/shared/utils.d.ts +19 -0
  437. package/lib/shared/vue-types.d.ts +98 -8
  438. package/lib/sideslider/index.d.ts +343 -72
  439. package/lib/sideslider/index.js +1 -0
  440. package/lib/sideslider/sideslider.css +413 -11
  441. package/lib/sideslider/sideslider.d.ts +160 -32
  442. package/lib/sideslider/sideslider.less +72 -13
  443. package/lib/sideslider/sideslider.variable.css +799 -14
  444. package/lib/slider/index.d.ts +414 -1
  445. package/lib/slider/index.js +1 -0
  446. package/lib/slider/slider-button.d.ts +2 -1
  447. package/lib/slider/slider.css +361 -4
  448. package/lib/slider/slider.d.ts +4 -4
  449. package/lib/slider/slider.variable.css +744 -4
  450. package/lib/steps/index.d.ts +52 -52
  451. package/lib/steps/index.js +1 -0
  452. package/lib/steps/steps.css +405 -36
  453. package/lib/steps/steps.d.ts +32 -32
  454. package/lib/steps/steps.less +24 -3
  455. package/lib/steps/steps.variable.css +759 -7
  456. package/lib/styles/index.d.ts +7 -1
  457. package/lib/styles/mixins/clearfix.less +10 -0
  458. package/lib/styles/mixins/clearfix.variable.css +8 -0
  459. package/lib/styles/mixins/mixins.css +51 -0
  460. package/lib/styles/mixins/mixins.less +2 -0
  461. package/lib/styles/mixins/mixins.variable.css +51 -0
  462. package/lib/styles/mixins/scroll.css +374 -0
  463. package/lib/styles/mixins/scroll.less +22 -0
  464. package/lib/styles/mixins/scroll.variable.css +850 -0
  465. package/lib/styles/reset.css +36 -0
  466. package/lib/styles/reset.less +26 -0
  467. package/lib/styles/reset.variable.css +36 -0
  468. package/lib/styles/themes/themes.css +357 -0
  469. package/lib/styles/themes/themes.less +622 -90
  470. package/lib/styles/themes/themes.variable.css +357 -0
  471. package/lib/swiper/index.js +1 -0
  472. package/lib/switcher/index.d.ts +42 -30
  473. package/lib/switcher/index.js +1 -0
  474. package/lib/switcher/switcher.css +431 -23
  475. package/lib/switcher/switcher.d.ts +19 -13
  476. package/lib/switcher/switcher.less +5 -26
  477. package/lib/switcher/switcher.variable.css +801 -10
  478. package/lib/tab/index.d.ts +53 -61
  479. package/lib/tab/index.js +1 -0
  480. package/lib/tab/props.d.ts +12 -11
  481. package/lib/tab/tab-nav.d.ts +17 -13
  482. package/lib/tab/tab-panel.d.ts +5 -10
  483. package/lib/tab/tab.css +401 -21
  484. package/lib/tab/tab.d.ts +19 -20
  485. package/lib/tab/tab.less +55 -46
  486. package/lib/tab/tab.variable.css +768 -5
  487. package/lib/table/components/index.d.ts +3 -0
  488. package/lib/table/components/table-cell.d.ts +38 -0
  489. package/lib/table/components/table-column.d.ts +137 -0
  490. package/lib/table/components/table-row.d.ts +2 -0
  491. package/lib/table/const.d.ts +109 -1
  492. package/lib/table/index.d.ts +841 -41
  493. package/lib/table/index.js +1 -0
  494. package/lib/table/plugins/body-empty.d.ts +40 -0
  495. package/lib/table/plugins/col-group.d.ts +38 -0
  496. package/lib/table/plugins/common.d.ts +6 -0
  497. package/lib/table/plugins/head-filter.css +429 -0
  498. package/lib/table/plugins/head-filter.d.ts +26 -0
  499. package/lib/table/plugins/head-filter.less +93 -0
  500. package/lib/table/plugins/head-filter.variable.css +905 -0
  501. package/lib/table/plugins/head-sort.css +382 -0
  502. package/lib/table/plugins/head-sort.d.ts +22 -0
  503. package/lib/table/plugins/head-sort.less +31 -0
  504. package/lib/table/plugins/head-sort.variable.css +858 -0
  505. package/lib/table/plugins/index.d.ts +5 -0
  506. package/lib/table/plugins/settings.css +502 -0
  507. package/lib/table/plugins/settings.d.ts +37 -0
  508. package/lib/table/plugins/settings.less +179 -0
  509. package/lib/table/plugins/settings.variable.css +978 -0
  510. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  511. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  512. package/lib/table/plugins/use-fixed-column.d.ts +12 -0
  513. package/lib/table/plugins/use-pagination.d.ts +16 -0
  514. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  515. package/lib/table/props.d.ts +308 -8
  516. package/lib/table/render.d.ts +43 -3
  517. package/lib/table/table.css +1547 -29
  518. package/lib/table/table.d.ts +231 -17
  519. package/lib/table/table.less +259 -25
  520. package/lib/table/table.variable.css +2348 -90
  521. package/lib/table/use-column.d.ts +11 -0
  522. package/lib/table/use-common.d.ts +97 -0
  523. package/lib/table/utils.d.ts +65 -9
  524. package/lib/table-column/index.d.ts +325 -0
  525. package/lib/table-column/index.js +1 -0
  526. package/lib/tag/index.d.ts +29 -29
  527. package/lib/tag/index.js +1 -0
  528. package/lib/tag/tag.css +408 -18
  529. package/lib/tag/tag.d.ts +12 -12
  530. package/lib/tag/tag.less +46 -10
  531. package/lib/tag/tag.variable.css +790 -17
  532. package/lib/tag-input/common.d.ts +13 -1
  533. package/lib/tag-input/index.d.ts +1320 -1
  534. package/lib/tag-input/index.js +1 -0
  535. package/lib/tag-input/list-tag-render.d.ts +0 -3
  536. package/lib/tag-input/tag-input.css +398 -44
  537. package/lib/tag-input/tag-input.d.ts +259 -41
  538. package/lib/tag-input/tag-input.less +102 -104
  539. package/lib/tag-input/tag-input.variable.css +767 -30
  540. package/lib/tag-input/tag-props.d.ts +122 -7
  541. package/lib/tag-input/tag-render.d.ts +30 -4
  542. package/lib/time-picker/index.d.ts +904 -0
  543. package/lib/time-picker/index.js +1 -0
  544. package/lib/time-picker/time-picker.css +572 -0
  545. package/lib/time-picker/time-picker.less +260 -0
  546. package/lib/time-picker/time-picker.variable.css +1048 -0
  547. package/lib/timeline/index.d.ts +6 -6
  548. package/lib/timeline/index.js +1 -0
  549. package/lib/timeline/timeline.css +392 -28
  550. package/lib/timeline/timeline.d.ts +1 -1
  551. package/lib/timeline/timeline.less +22 -9
  552. package/lib/timeline/timeline.variable.css +760 -13
  553. package/lib/transfer/const.d.ts +5 -0
  554. package/lib/transfer/index.d.ts +164 -150
  555. package/lib/transfer/index.js +1 -0
  556. package/lib/transfer/props.d.ts +54 -0
  557. package/lib/transfer/transfer.css +451 -91
  558. package/lib/transfer/transfer.d.ts +70 -95
  559. package/lib/transfer/transfer.less +93 -113
  560. package/lib/transfer/transfer.variable.css +838 -95
  561. package/lib/tree/constant.d.ts +62 -0
  562. package/lib/tree/index.d.ts +417 -57
  563. package/lib/tree/index.js +1 -0
  564. package/lib/tree/props.d.ts +124 -0
  565. package/lib/tree/tree.css +534 -9
  566. package/lib/tree/tree.d.ts +190 -18
  567. package/lib/tree/tree.less +54 -3
  568. package/lib/tree/tree.variable.css +1278 -13
  569. package/lib/tree/use-empty.d.ts +6 -0
  570. package/lib/tree/use-node-action.d.ts +12 -0
  571. package/lib/tree/use-node-async.d.ts +5 -0
  572. package/lib/tree/use-node-attribute.d.ts +33 -0
  573. package/lib/tree/use-node-drag.d.ts +3 -0
  574. package/lib/tree/use-search.d.ts +11 -0
  575. package/lib/tree/use-tree-init.d.ts +15 -0
  576. package/lib/tree/util.d.ts +4 -6
  577. package/lib/upload/index.d.ts +566 -0
  578. package/lib/upload/index.js +1 -0
  579. package/lib/upload/props.d.ts +111 -0
  580. package/lib/upload/upload-list.d.ts +47 -0
  581. package/lib/upload/upload-trigger.d.ts +51 -0
  582. package/lib/upload/upload.css +782 -0
  583. package/lib/upload/upload.d.ts +246 -0
  584. package/lib/upload/upload.less +464 -0
  585. package/lib/upload/upload.type.d.ts +78 -0
  586. package/lib/upload/upload.variable.css +1258 -0
  587. package/lib/upload/use-ajax-upload.d.ts +3 -0
  588. package/lib/upload/use-file-handler.d.ts +44 -0
  589. package/lib/virtual-render/index.d.ts +27 -4
  590. package/lib/virtual-render/index.js +1 -0
  591. package/lib/virtual-render/props.d.ts +10 -0
  592. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  593. package/lib/virtual-render/v-virtual-render.d.ts +0 -1
  594. package/lib/virtual-render/virtual-render.css +374 -24
  595. package/lib/virtual-render/virtual-render.d.ts +12 -1
  596. package/lib/virtual-render/virtual-render.less +2 -31
  597. package/lib/virtual-render/virtual-render.variable.css +1207 -24
  598. package/lib/volar.components.d.ts +101 -0
  599. package/package.json +61 -42
  600. package/README_EN.md +0 -93
  601. package/dist/bkui-vue.cjs.js +0 -20339
  602. package/dist/bkui-vue.esm.js +0 -20282
  603. package/dist/bkui-vue.umd.js +0 -20342
  604. package/lib/alert/alert.js +0 -1
  605. package/lib/backtop/backtop.js +0 -1
  606. package/lib/badge/badge.js +0 -1
  607. package/lib/breadcrumb/breadcrumb.js +0 -1
  608. package/lib/button/button.js +0 -1
  609. package/lib/card/card.js +0 -1
  610. package/lib/checkbox/checkbox.js +0 -1
  611. package/lib/code-diff/code-diff.js +0 -1
  612. package/lib/collapse/collapse.js +0 -1
  613. package/lib/date-picker/date-picker.js +0 -1
  614. package/lib/dialog/dialog.js +0 -1
  615. package/lib/directives/directives.js +0 -2
  616. package/lib/divider/divider.js +0 -1
  617. package/lib/dropdown/dropdown.js +0 -1
  618. package/lib/exception/exception.js +0 -1
  619. package/lib/form/common.d.ts +0 -3
  620. package/lib/form/form.js +0 -1
  621. package/lib/icon/icon.js +0 -1
  622. package/lib/input/input.js +0 -1
  623. package/lib/link/link.js +0 -1
  624. package/lib/loading/loading.js +0 -1
  625. package/lib/menu/menu.js +0 -1
  626. package/lib/message/message.js +0 -1
  627. package/lib/modal/modal.js +0 -1
  628. package/lib/navigation/navigation.js +0 -1
  629. package/lib/notify/notify.js +0 -1
  630. package/lib/pagination/pagination.js +0 -1
  631. package/lib/popover/popover.js +0 -1
  632. package/lib/process/process.js +0 -1
  633. package/lib/progress/progress.js +0 -1
  634. package/lib/radio/radio.js +0 -1
  635. package/lib/rate/rate.js +0 -1
  636. package/lib/resize-layout/resize-layout.js +0 -1
  637. package/lib/select/select.js +0 -1
  638. package/lib/shared/shared.js +0 -1
  639. package/lib/sideslider/sideslider.js +0 -1
  640. package/lib/slider/slider.js +0 -1
  641. package/lib/steps/steps.js +0 -1
  642. package/lib/swiper/swiper.js +0 -1
  643. package/lib/switcher/switcher.js +0 -1
  644. package/lib/tab/tab.js +0 -1
  645. package/lib/table/table.js +0 -1
  646. package/lib/tag/tag.js +0 -1
  647. package/lib/tag-input/tag-input.js +0 -1
  648. package/lib/timeline/timeline.js +0 -1
  649. package/lib/transfer/transfer.js +0 -1
  650. package/lib/tree/tree.js +0 -1
  651. package/lib/use-form.d.ts +0 -3
  652. package/lib/virtual-render/virtual-render.js +0 -1
@@ -0,0 +1 @@
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("vue-types"),require("../virtual-render"),require("../loading"),require("../checkbox"),require("../icon"),require("../pagination"),require("../directives"),require("lodash"),require("../exception"),require("../popover"),require("../icon/"),require("../button"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types","../virtual-render","../loading","../checkbox","../icon","../pagination","../directives","lodash","../exception","../popover","../icon/","../button"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("vue-types"),require("../virtual-render"),require("../loading"),require("../checkbox"),require("../icon"),require("../pagination"),require("../directives"),require("lodash"),require("../exception"),require("../popover"),require("../icon/"),require("../button")):t(e["../shared"],e.vue,e["vue-types"],e["../virtual-render"],e["../loading"],e["../checkbox"],e["../icon"],e["../pagination"],e["../directives"],e.lodash,e["../exception"],e["../popover"],e["../icon/"],e["../button"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n,o,r,i,l,a,c,u,s,d,p,f)=>(()=>{var v={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,c=0;e.exports=function(e,t,n){var u=t&&n||0,s=t||[],d=(e=e||{}).node||o,p=void 0!==e.clockseq?e.clockseq:r;if(null==d||null==p){var f=i();null==d&&(d=o=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=r=16383&(f[6]<<8|f[7]))}var v=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:c+1,y=v-a+(h-c)/1e4;if(y<0&&void 0===e.clockseq&&(p=p+1&16383),(y<0||v>a)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=v,c=h,r=p;var g=(1e4*(268435455&(v+=122192928e5))+h)%4294967296;s[u++]=g>>>24&255,s[u++]=g>>>16&255,s[u++]=g>>>8&255,s[u++]=255&g;var m=v/4294967296*1e4&268435455;s[u++]=m>>>8&255,s[u++]=255&m,s[u++]=m>>>24&15|16,s[u++]=m>>>16&255,s[u++]=p>>>8|128,s[u++]=255&p;for(var b=0;b<6;++b)s[u+b]=d[b];return t||l(s)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4976:e=>{"use strict";e.exports=f},5800:e=>{"use strict";e.exports=i},4061:e=>{"use strict";e.exports=c},9911:e=>{"use strict";e.exports=s},6870:e=>{"use strict";e.exports=l},7685:e=>{"use strict";e.exports=p},4870:e=>{"use strict";e.exports=r},5801:e=>{"use strict";e.exports=a},5537:e=>{"use strict";e.exports=d},4212:t=>{"use strict";t.exports=e},3511:e=>{"use strict";e.exports=o},467:e=>{"use strict";e.exports=u},748:e=>{"use strict";e.exports=t},210:e=>{"use strict";e.exports=n}},h={};function y(e){var t=h[e];if(void 0!==t)return t.exports;var n=h[e]={exports:{}};return v[e](n,n.exports,y),n.exports}y.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return y.d(t,{a:t}),t},y.d=(e,t)=>{for(var n in t)y.o(t,n)&&!y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},y.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var g={};return(()=>{"use strict";y.r(g),y.d(g,{BkColumn:()=>ot,default:()=>nt});var e,t,n,o=y(4212),r=y(748);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.NONE="none",e.ROW="row",e.COL="col",e.OUTER="outer",e.HORIZONTAL="horizontal"}(t||(t={})),function(e){e.HIGHLIGHT="highlight",e.AUTO="auto"}(n||(n={}));var l,a,c=[n.AUTO,n.HIGHLIGHT],u=[t.NONE,t.ROW,t.COL,t.OUTER,t.HORIZONTAL];!function(e){e.ON_SORT_BY_CLICK="onSortByClick",e.ON_FILTER_CLICK="onFilterClick",e.ON_SETTING_CHANGE="onSettingChange",e.ON_ROW_EXPAND_CLICK="onRowExpandClick",e.ON_ROW_CHECK="onRowCheck"}(l||(l={})),function(e){e.COLUMN_PICK="columnPick",e.COLUMN_SORT="columnSort",e.COLUMN_FILTER="columnFilter",e.COLUMN_FILTER_SAVE="colFilterSave",e.ROW_CLICK="rowClick",e.ROW_DBL_CLICK="rowDblclick",e.ROW_EXPAND_CLICK="rowExpand",e.PAGE_LIMIT_CHANGE="pageLimitChange",e.PAGE_VALUE_CHANGE="pageValueChange",e.SETTING_CHANGE="settingChange",e.SCROLL_BOTTOM="scrollBottom",e.ROW_SELECT="select",e.ROW_SELECT_ALL="selectAll",e.ROW_SELECT_CHANGE="selectionChange"}(a||(a={}));var s,d=function(){return!0},p=(i(e={},a.COLUMN_PICK,d),i(e,a.COLUMN_FILTER,d),i(e,a.COLUMN_SORT,d),i(e,a.COLUMN_FILTER_SAVE,d),i(e,a.ROW_CLICK,d),i(e,a.ROW_DBL_CLICK,d),i(e,a.ROW_EXPAND_CLICK,d),i(e,a.ROW_SELECT,d),i(e,a.ROW_SELECT_ALL,d),i(e,a.ROW_SELECT_CHANGE,d),i(e,a.PAGE_LIMIT_CHANGE,d),i(e,a.PAGE_VALUE_CHANGE,d),i(e,a.SETTING_CHANGE,d),i(e,a.SCROLL_BOTTOM,d),e),f="__$table_row_index",v="__$uuid",h="__row_expand",m="__row_selection",b="__row_selection_all",T="__row_selection_indeterminate",C="__row_source_data",_="__row_skip_config",w="__col_$uuid",O="__col_source_data",P=42,x={large:78,medium:60,small:42},N=[{value:"small",label:"小",height:x.small},{value:"medium",label:"中",height:x.medium},{value:"large",label:"大",height:x.large}],S="InitColumns";!function(e){e.ASC="asc",e.DESC="desc",e.NULL="null",e.CUSTOM="custom"}(s||(s={}));var E,k,L=[s.ASC,s.DESC,s.NULL,s.CUSTOM],A=y(210);!function(e){e.CURRENT="current",e.ALL="all"}(E||(E={})),function(e){e.STATIC="static",e.AUTO="auto"}(k||(k={}));var R,V=(0,A.toType)("showOverflowTooltipMode",{default:k.AUTO});!function(e){e.SELECTION="selection",e.INDEX="index",e.EXPAND="expand",e.NONE="none"}(R||(R={}));var j,H=(0,A.toType)("columnType",{default:R.NONE});!function(e){e.FULL="full",e.FUZZY="fuzzy"}(j||(j={}));var I,F=(0,A.toType)("full",{default:j.FULL});!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(I||(I={}));var W,U=(0,A.toType)("columnSize",{default:I.SMALL});!function(e){e.LEFT="left",e.RIGHT="right"}(W||(W={}));var M,z=(0,A.toType)("columnSize",{}),D=(0,A.toType)("sortScope",{}).def(E.CURRENT);!function(e){e.MULTI="multi",e.SINGLE="single",e.DISABLED="disabled"}(M||(M={}));var K={label:o.PropTypes.oneOfType([o.PropTypes.func.def((function(){return""})),o.PropTypes.string.def("")]),field:o.PropTypes.oneOfType([o.PropTypes.func.def((function(){return""})),o.PropTypes.string.def("")]),render:o.PropTypes.oneOfType([o.PropTypes.func.def((function(){return""})),o.PropTypes.string.def("")]),width:o.PropTypes.oneOfType([o.PropTypes.number.def(void 0),o.PropTypes.string.def("auto")]),minWidth:o.PropTypes.oneOfType([o.PropTypes.number.def(void 0),o.PropTypes.string.def("auto")]).def(80),columnKey:o.PropTypes.string.def(""),showOverflowTooltip:o.PropTypes.oneOfType([o.PropTypes.bool,o.PropTypes.shape({content:o.PropTypes.string.def(""),disabled:o.PropTypes.bool.def(!1),watchCellResize:o.PropTypes.bool.def(!0),mode:V})]).def(void 0),type:H,resizable:o.PropTypes.bool.def(!0),fixed:o.PropTypes.oneOfType([o.PropTypes.bool,z]).def(!1),sort:o.PropTypes.oneOfType([o.PropTypes.shape({sortFn:o.PropTypes.func.def(void 0),sortScope:D,value:o.PropTypes.string.def(s.NULL)}),o.PropTypes.bool,o.PropTypes.string]).def(!1),filter:o.PropTypes.oneOfType([o.PropTypes.shape({list:o.PropTypes.arrayOf(o.PropTypes.any).def([]),filterFn:o.PropTypes.func.def(void 0),match:F,filterScope:D,btnSave:o.PropTypes.oneOfType([o.PropTypes.bool,o.PropTypes.string]).def("确定"),btnReset:o.PropTypes.oneOfType([o.PropTypes.bool,o.PropTypes.string]).def("重置")}),o.PropTypes.bool,o.PropTypes.string]).def(!1),colspan:o.PropTypes.oneOfType([o.PropTypes.func.def((function(){return 1})),o.PropTypes.number.def(1)]),rowspan:o.PropTypes.oneOfType([o.PropTypes.func.def((function(){return 1})),o.PropTypes.number.def(1)])},G={data:o.PropTypes.arrayOf(o.PropTypes.any).def([]),columns:o.PropTypes.arrayOf(o.PropTypes.shape(K)).def([]),activeColumn:o.PropTypes.oneOfType([o.PropTypes.number.def(-1),o.PropTypes.arrayOf(o.PropTypes.number.def(-1))]),columnPick:(0,A.toType)("columnPick",{}).def(M.DISABLED),height:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.string]).def("auto"),minHeight:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.string]).def(84),maxHeight:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.string]).def("auto"),rowHeight:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.func]).def(P),headHeight:o.PropTypes.number.def(P),showHead:o.PropTypes.bool.def(!0),thead:o.PropTypes.shape({height:o.PropTypes.number.def(P),isShow:o.PropTypes.bool.def(!0),cellFn:o.PropTypes.func.def(void 0)}),virtualEnabled:o.PropTypes.bool.def(!1),border:o.PropTypes.oneOfType([o.PropTypes.arrayOf((0,A.toType)("boderType",{})),o.PropTypes.string]).def([t.ROW]),pagination:o.PropTypes.oneOfType([o.PropTypes.bool.def(!1),o.PropTypes.object.def({})]).def(!1),remotePagination:o.PropTypes.bool.def(!1),emptyText:o.PropTypes.string.def("暂无数据"),settings:o.PropTypes.oneOfType([o.PropTypes.shape({fields:o.PropTypes.arrayOf(o.PropTypes.shape({label:o.PropTypes.string,field:o.PropTypes.string,disabled:o.PropTypes.bool})),checked:o.PropTypes.arrayOf(o.PropTypes.string),limit:o.PropTypes.number.def(0),size:U,sizeList:o.PropTypes.shape([]),showLineHeight:o.PropTypes.bool.def(!0)}),o.PropTypes.bool]).def(!1),rowClass:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.object,o.PropTypes.func]).def({}),rowStyle:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.object,o.PropTypes.func]).def({}),cellStyle:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.object,o.PropTypes.func]).def({}),cellClass:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.object,o.PropTypes.func]).def({}),scrollLoading:o.PropTypes.oneOfType([o.PropTypes.object,o.PropTypes.bool]).def(void 0),reserveExpand:o.PropTypes.bool.def(!1),selectionKey:o.PropTypes.string.def(""),isSelectedFn:o.PropTypes.func.def(void 0),rowKey:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.func]).def(f),showOverflowTooltip:o.PropTypes.oneOfType([o.PropTypes.bool,o.PropTypes.shape({content:o.PropTypes.string.def(""),disabled:o.PropTypes.bool.def(!1),watchCellResize:o.PropTypes.bool.def(!0),mode:V})]).def(!1),asyncData:o.PropTypes.bool.def(!1),rowHover:o.PropTypes.oneOf(c).def(n.HIGHLIGHT),defaultSort:o.PropTypes.shape({}).def({}),isRowSelectEnable:o.PropTypes.oneOfType([o.PropTypes.func.def((function(){return!0})),o.PropTypes.bool.def(!0)]).def(!0)};const $=(0,r.defineComponent)({name:"TableColumn",props:Object.assign(Object.assign({},K),{prop:o.PropTypes.oneOfType([o.PropTypes.func.def((function(){return""})),o.PropTypes.string.def("")])}),setup:function(e,t){var n=t.slots,o=(0,r.inject)(S,(function(e){}),!1);return(0,r.onMounted)((function(){var t=(0,r.reactive)(Object.assign(Object.assign({},e),{field:e.prop||e.field}));o(t),t.render=n.default?function(e){var t;return null===(t=n.default)||void 0===t?void 0:t.call(n,e)}:void 0})),function(){var e;return(0,r.createVNode)(r.Fragment,null,[null===(e=n.default)||void 0===e?void 0:e.call(n,{data:""})])}}});var q=y(3511),B=y.n(q);function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Y(e,t){if(e){if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function Z(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e){return J="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},J(e)}var Q=function(e,t){if(e){if("object"===J(e)){var n=Object.prototype.hasOwnProperty.call(e,"current")?e.current:e.value;return/\d+/.test(n)||(n=1),Object.assign(Object.assign(Object.assign({},t),e),{current:n})}return t}return{}};const ee=function(e,t){var n=(0,r.ref)(0),o=(0,r.ref)(0),i=(0,r.reactive)({count:0,limit:10,current:1,align:"right",layout:["total","limit","list"]});i=Q(e.pagination,i);var l=(0,r.ref)(null),a=(0,r.reactive)([]),c=function(e,t){"function"==typeof t&&e.sort(t)},u=function(r,i,l){var u,s=t.slice();(null!==(u=null==l?void 0:l.sort)&&void 0!==u?u:{}).sortScope===E.ALL&&c(s,i),a.splice.apply(a,[0,a.length].concat(Z(s.slice(n.value,o.value)))),function(t,n){if("function"==typeof n){var o=t.filter((function(t,o){return n(t,o,e.data)}));t.splice.apply(t,[0,t.length].concat(Z(o)))}}(a,r),c(a,i)};return{pageData:a,localPagination:l,resolvePageData:u,watchEffectFn:function(t,r,a){i=Q(e.pagination,i),e.pagination&&(l.value=e.remotePagination?i:Object.assign(Object.assign({},i),{count:e.data.length})),function(){if(!e.pagination||e.remotePagination)return n.value=0,void(o.value=e.data.length);n.value=(i.current-1)*i.limit,o.value=i.current*i.limit}(),u(t,r,a)}}};var te=y(4870),ne=y.n(te);function oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function re(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ie(e,t,n){return t&&re(e.prototype,t),n&&re(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var le=y(8022),ae=y(5800),ce=y.n(ae),ue=y(6870),se=y(5801),de=y.n(se),pe=y(4061),fe=y(467),ve=void 0,he=function e(t,n,o){var r;return"string"==typeof n?Object.prototype.hasOwnProperty.call(t,n)?"function"==typeof t[n]?(r=t[n]).call.apply(r,[ve].concat(Z(o))):t[n]:void 0:Array.isArray(n)?n.map((function(n){return e(t,n,o)})).filter((function(e){return void 0!==e})).at(0):void 0},ye=function(e){return/^\d+$/.test("".concat(e))?[parseInt("".concat(e),10)]:[]},ge=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"100%",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o="";return o=/^auto|null|undefined$/gi.test("".concat(e))?t:/^\d+\.?\d+$/.test("".concat(e))?"".concat(e,"px"):e,n&&(o="calc(".concat(o," - ").concat(n,")")),o},me=function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["resizeWidth","calcWidth","width"];return null!==(n=null!==(t=e[o[0]])&&void 0!==t?t:e[o[1]])&&void 0!==n?n:e[o[2]]},be=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:80,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=e.getBoundingClientRect()||{},i=r.width,l=i-o,a=l,c=[],u=function(e,t){var n=e.minWidth,o=void 0===n?void 0:n;if(void 0===o)return t;var r=t;return/^\d+\.?\d*$/.test("".concat(o))&&(r=Number(o)),/^\d+\.?\d*%$/.test("".concat(o))&&(r=Number(o)*l/100),/^\d+\.?\d*px$/i.test("".concat(o))&&(r=Number("".concat(o).replace(/px/i,""))),r},s=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=u(e,t),r=t<o?o:t;Object.assign(e,{calcWidth:r}),n&&(a-=r)<0&&(a=0)};if(t.forEach((function(e,t){if(!e.isHidden){var o=String(me(e,["resizeWidth","width"])),r=!0;if(/^\d+\.?\d*(px)?$/.test(o)){var i=Number(o.replace("px",""));s(e,i),r=!1}if(/^\d+\.?\d*%$/.test(o)){var l=n;if(a>0){var u=Number(o.replace("%",""));l=a*u/100}s(e,l),r=!1}r&&c.push(t)}})),c.length>0){var d=n;a>0&&c.forEach((function(e,n){d=a/(c.length-n),s(t[e],d,!1);var o=t[e].calcWidth;a-=o}))}},Te=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=(0,fe.throttle)((function(){"function"==typeof t&&t()}),n),i=new ResizeObserver((function(){r()}));return o&&"function"==typeof t&&t(),{start:function(){i.observe(e)},stop:function(){i.disconnect(),i.unobserve(e)}}},Ce=function(e){var t=e.showHead,n=e.headHeight,o=e.thead,r=void 0===o?{}:o;return Object.assign({},{isShow:t,height:n},Object.assign({},r))},_e=function(e,t,n){return"index"===n.type?e.__$table_row_index+1:(0,fe.get)(e,t)},we=function e(t,n){return Array.isArray(t)?t:"string"==typeof t||"object"===J(t)?[t]:"function"==typeof t?e(Reflect.apply(t,ve,n),n):[]},Oe=function(e,t,n){return"string"==typeof t.rowKey?t.rowKey===f?"__ROW_INDEX_".concat(n):(0,fe.get)(e,t.rowKey):"function"==typeof t.rowKey?Reflect.apply(t.rowKey,ve,[e]):(0,le.v4)()},Pe=function(e,t,n){var o;return o=t,e.some((function(e){return e.field===he(o,["field","type"],[o])}))&&n.length&&!n.includes(he(t,["field","type"],[t]))},xe=function(e,t,n,o,r){return"function"==typeof e[r]?Reflect.apply(e[r],ve,[{column:e,colIndex:t,row:n,rowIndex:o}]):"number"==typeof e[r]?e[r]:1},Ne=function(e,t,n,o){return{colspan:xe(e,t,n,o,"colspan"),rowspan:xe(e,t,n,o,"rowspan")}},Se=function(e,t){var n,o,r=e.field,i=function(t){return _e(t,r,e)},l="function"==typeof(null===(n=e.sort)||void 0===n?void 0:n.sortFn)?null===(o=e.sort)||void 0===o?void 0:o.sortFn:function(e,t){var n=i(e)||"",o=i(t)||"";return"number"==typeof n&&"number"==typeof o?n-o:String.prototype.localeCompare.call(n,o)};return t===s.NULL?function(){return!0}:function(e,n){return l(e,n)*(t===s.DESC?-1:1)}},Ee=function(e){var t,n=(i(t={},s.NULL,0),i(t,s.ASC,1),i(t,s.DESC,2),t);return void 0===e?s.NULL:Object.keys(n)[(n[e]+1)%3]},ke=function(e){return"string"==typeof e?{value:e}:"boolean"==typeof e&&e?{value:s.NULL}:"object"===J(e)&&null!==e?J(e.sortFn)?Object.assign({value:"custom"},e):e:null},Le=function(e,t){var n=t.row,o=t.index,r=t.isCheckAll;return"boolean"==typeof e.isRowSelectEnable?!1!==e.isRowSelectEnable:"function"!=typeof e.isRowSelectEnable||e.isRowSelectEnable({row:n,index:o,isCheckAll:r})};const Ae=(0,r.defineComponent)({name:"TableCell",props:{column:o.PropTypes.any.def({}),row:o.PropTypes.any.def({}),parentSetting:o.PropTypes.oneOfType([o.PropTypes.bool,o.PropTypes.shape({content:o.PropTypes.string.def(""),disabled:o.PropTypes.bool.def(!1),watchCellResize:o.PropTypes.bool.def(!0),mode:V})]).def(void 0),title:o.PropTypes.string.def(void 0)},setup:function(e,t){var n=t.slots,i=(0,r.ref)(),l=(0,r.ref)(!1),a=(/boolean|object/.test(J(e.column.showOverflowTooltip))&&null!==e.column.showOverflowTooltip?e.column:{showOverflowTooltip:e.parentSetting}).showOverflowTooltip,c=void 0!==a&&a,u=null,s=null,d=function(){var t=!0,n=i.value.innerText,o="auto";return"boolean"==typeof c&&(t=!c),"object"===J(c)&&(t=c.disabled,"function"==typeof c.content&&(n=c.content(e.column,e.row)),n=c.content||i.value.innerText,o=c.mode||"auto"),{disabled:t,content:n,mode:o}},p=function(){if(i.value&&!/selection|index|expand/.test(e.column.type)&&(0,o.isElement)(i.value)){var t=d(),n=t.content,a=t.mode;if("auto"===a){var c=function(e,t){function n(e,t){return window.getComputedStyle(e,null).getPropertyValue(t)}return function e(t,n){var o=(e.canvas||(e.canvas=document.createElement("canvas"))).getContext("2d");return o.font=n,o.measureText(t).width}(t||(null==e?void 0:e.innerHTML),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,t=n(e,"font-weight")||"normal",o=n(e,"font-size")||"16px",r=n(e,"font-family")||"Times New Roman";return"".concat(t," ").concat(o," ").concat(r)}(e))}(i.value,n),u=i.value.clientWidth,p=window.getComputedStyle(i.value),f=u-["padding-left","padding-right"].reduce((function(e,t){return e+Number(p.getPropertyValue(t).replace("px",""))}),0);l.value=c>f}if("static"===a&&(l.value=!0),l.value){var v=(0,r.ref)(d());null===s&&(s=(0,pe.bkEllipsisInstance)(i.value,v))}else null==s||s.destroyInstance(i.value),s=null}};return(0,r.onMounted)((function(){var t;d().disabled||(p(),!1!==(null===(t=e.column.showOverflowTooltip)||void 0===t?void 0:t.watchCellResize)&&(u=Te(i.value,(function(){p()}),60,!0)).start())})),(0,r.onBeforeUnmount)((function(){null==u||u.stop(),null==s||s.destroyInstance(i.value)})),function(){var t;return(0,r.createVNode)("div",{class:["cell",e.column.type],ref:i,title:e.title},[null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),Re=(0,r.defineComponent)({name:"TableRow",render:function(){var e,t;return(0,r.createVNode)(r.Fragment,null,[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}});var Ve=y(9911),je=y.n(Ve);const He=(0,r.defineComponent)({name:"BodyEmpty",props:{list:o.PropTypes.array.def([]),filterList:o.PropTypes.array.def([]),emptyText:o.PropTypes.string.def("暂无数据")},emits:["change"],setup:function(e){var t=(0,r.computed)((function(){return 0===e.list.length?"empty":"search-empty"}));return function(){return(0,r.createVNode)(je(),{scene:"part",type:t.value,description:e.emptyText},null)}}});var Ie=y(5537),Fe=y.n(Ie);const We=(0,r.defineComponent)({name:"HeadFilter",props:{column:o.PropTypes.any.def({}),height:o.PropTypes.number.def(P)},emits:["change","filterSave"],setup:function(e,t){var n=t.emit,l=e.column,a=(0,r.reactive)({isOpen:!1,checked:[]}),c=(0,r.computed)((function(){var t;return(0,o.classes)((i(t={},(0,o.resolveClassName)("table-head-action"),!0),i(t,"column-filter",!0),i(t,"--row-height","".concat(e.height,"px")),i(t,"active",a.checked.length),i(t,"opened",a.isOpen),t))})),u=(0,o.classes)(i({},(0,o.resolveClassName)("table-head-filter"),!0)),s=function(e){a.isOpen=e},d="light ".concat((0,o.resolveClassName)("table-head-filter")),p=(0,r.computed)((function(){var e=l.filter.list;return(void 0===e?[]:e).map((function(e){return Object.assign(Object.assign({},e),{checked:a.checked.includes(e.value)})}))})),f="function"==typeof l.filter.filterFn?function(t,n,o,r){return l.filter.filterFn(t,n,e.column,o,r)}:function(e,t){return!e.length||function(e,t){var n=l.filter.match,o=_e(t,he(l,"field",[l,t]),l);return"full"===n&&e.includes(o),e.some((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ig";return new RegExp("".concat(e).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),t)}(e,"img").test(o)}))}(e,t)},v=function(){h(!0),n("filterSave",Z(a.checked)),a.isOpen=!1},h=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=g(b,"确定"),r=o.disabled;if(r||t){if("custom"===e.column.filter)return n("change",Z(a.checked),null),void(a.isOpen=!1);n("change",Z(a.checked),f)}},y=function(){a.checked.length&&(a.checked.splice(0,a.checked.length),a.isOpen=!1,(0,r.nextTick)((function(){return n("change",a.checked,f)})))},g=function(e,t){return{disabled:"disabled"===e||!1===e,text:"string"==typeof e?e:t}},m=l.filter,b=m.btnSave,T=m.btnReset,C=function(){var e=g(T,"重置"),t=e.disabled,n=e.text;return t?"":(0,r.createVNode)("span",{class:["btn-filter-reset",a.checked.length?"":"disable"],onClick:y},[n])};return function(){return(0,r.createVNode)(Fe(),(0,r.mergeProps)({trigger:"click",isShow:a.isOpen,placement:"bottom-start",arrow:!1,offset:0},{theme:d},{onAfterShow:function(){return s(!0)},onAfterHidden:function(){return s(!1)}}),{default:function(){return(0,r.createVNode)(ue.Funnel,{class:c.value},null)},content:function(){var e,t,n,o,i;return(0,r.createVNode)("div",{class:u},[(0,r.createVNode)(ae.BkCheckboxGroup,{class:"content-list",modelValue:a.checked,"onUpdate:modelValue":function(e){return a.checked=e},onChange:function(){return h(!1)}},(i=e=p.value.map((function(e){return(0,r.createVNode)("div",{class:"list-item"},[(0,r.createVNode)(ce(),{label:e.value},{default:function(){return[e.text]}})])})),"function"==typeof i||"[object Object]"===Object.prototype.toString.call(i)&&!(0,r.isVNode)(i)?e:{default:function(){return[e]}})),(0,r.createVNode)("div",{class:"content-footer"},[(t=g(b,"确定"),n=t.disabled,o=t.text,n?(0,r.createVNode)("span",{class:"btn-filter-save disabled"},[o]):(0,r.createVNode)("span",{class:"btn-filter-save",onClick:v},[o])),(0,r.createVNode)("span",{class:"btn-filter-split"},null),C()])])}})}}});var Ue=y(7685);const Me=(0,r.defineComponent)({name:"HeadSort",props:{column:o.PropTypes.any.def({}),defaultSort:o.PropTypes.oneOf(L).def(s.NULL)},emits:["change"],setup:function(e,t){var n,i,l=t.emit,a=(null===(i=null===(n=e.column)||void 0===n?void 0:n.sort)||void 0===i?void 0:i.value)||e.defaultSort||s.NULL,c=(0,r.ref)(a);(0,r.watch)((function(){return[e.defaultSort]}),(function(e){var t,n,o=(t=e,n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(t,n)||Y(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];c.value=o}));var u=function(t,n){t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault();var o=n;n===s.NULL&&(o=Ee(n)),c.value===n&&(o=s.NULL);var r=ke(e.column.sort);if("custom"!==(null==r?void 0:r.value)){var i=Se(e.column,o);l("change",i,o)}else l("change",null==r?void 0:r.sortFn,o)};return function(){return(0,r.createVNode)("span",{class:(0,o.resolveClassName)("head-cell-sort"),onClick:function(e){return u(e,s.NULL)}},[(0,r.createVNode)(Ue.AngleDownFill,{class:["sort-action","sort-asc",c.value===s.ASC?"active":""],onClick:function(e){return u(e,s.ASC)}},null),(0,r.createVNode)(Ue.AngleUpFill,{class:["sort-action","sort-desc",c.value===s.DESC?"active":""],onClick:function(e){return u(e,s.DESC)}},null)])}}});var ze=ie((function e(t,n){oe(this,e),this.props=null,this.ctx=null,this.props=t,this.ctx=n})),De=y(4976),Ke=y.n(De);function Ge(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,r.isVNode)(e)}const $e=(0,r.defineComponent)({name:"Settings",props:{settings:o.PropTypes.oneOfType([o.PropTypes.shape({fields:o.PropTypes.arrayOf(o.PropTypes.shape({label:o.PropTypes.string,field:o.PropTypes.string,disabled:o.PropTypes.bool})),checked:o.PropTypes.arrayOf(o.PropTypes.string),limit:o.PropTypes.number.def(0),size:U.def(I.SMALL),sizeList:o.PropTypes.shape([]),showLineHeight:o.PropTypes.bool.def(!0)}),o.PropTypes.bool]).def(!1),columns:o.PropTypes.array.def([]),rowHeight:o.PropTypes.number.def(P)},emits:["change"],setup:function(e,t){var n=t.emit,i=N,l=function(e,t){return he(e,["field","type"],[e,t])},a=(0,r.ref)(!1),c=(0,r.ref)(!1),u="boolean"==typeof e.settings?(0,r.ref)({fields:e.columns.map((function(e){return Object.assign(Object.assign({},e),{field:e.field||e.type})})),checked:[],limit:0,size:"small",sizeList:i,showLineHeight:!0}):(0,r.ref)(e.settings),s=(0,r.ref)(u.value.size||"small"),d=(0,r.ref)(e.rowHeight),p=(0,r.ref)(u.value.checked||[]),f=(0,o.resolveClassName)("table-settings"),v="light ".concat(f),h={checkAll:a.value,activeSize:s.value,activeHeight:d.value,checkedFields:u.value.checked||[]},y=function(){Object.assign(h,{checkAll:a.value,activeSize:s.value,activeHeight:d.value,checkedFields:p.value}),n("change",{checked:p.value,size:s.value,height:d.value}),c.value=!1},g=function(){a.value=h.checkAll,s.value=h.activeSize,d.value=h.activeHeight,p.value=h.checkedFields,c.value=!1},m=function(){c.value=!0},b=function(t){t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),a.value=!a.value;var n=u.value.fields||e.columns||[],o=n.filter((function(e,t){return e.disabled&&p.value.includes(l(e,t))})).map((function(e,t){return l(e,t)}));if(a.value){var r,i=n.filter((function(e){return!e.disabled})).map((function(e,t){return l(e,t)}));(r=p.value).splice.apply(r,[0,p.value.length].concat(Z(i),Z(o)))}else{var c;(c=p.value).splice.apply(c,[0,p.value.length].concat(Z(o)))}},T=(0,r.computed)((function(){var e;return(null!==(e=u.value.limit)&&void 0!==e?e:0)>0})),C=u.value.sizeList||i,_=(0,r.computed)((function(){return T.value&&(u.value.limit?u.value.limit:0)<=p.value.length})),w=function(e,t){return e.disabled||_.value&&!p.value.includes(l(e,t))},O=function(e){return{"line-size":!0,"is-medium":"medium"===s.value,active:e.value===s.value}},P={marginRight:"12px"},x=(0,r.computed)((function(){return u.value.fields||e.columns||[]})),S=(0,r.computed)((function(){return p.value.length>0&&!x.value.every((function(e,t){return p.value.includes(he(e,"field",[e,t]))}))})),E=(0,r.computed)((function(){return"boolean"!=typeof u.value.showLineHeight||u.value.showLineHeight}));return(0,r.watch)((function(){return[p.value]}),(function(){p.value.length||(a.value=!1),p.value.length&&x.value.every((function(e,t){return p.value.includes(l(e,t))}))&&(a.value=!0)}),{immediate:!0,deep:!0}),(0,r.watch)((function(){return[e.settings.checked]}),(function(){var e;(e=p.value).splice.apply(e,[0,p.value.length].concat(Z(u.value.checked)))}),{immediate:!0,deep:!0}),function(){return e.settings?(0,r.createVNode)(Fe(),(0,r.mergeProps)({trigger:"manual",isShow:c.value,placement:"bottom-end",arrow:!0},{theme:v}),{default:function(){return(0,r.createVNode)("span",{class:"table-head-settings",onClick:m},[(0,r.createVNode)(Ue.CogShape,{style:"color: #c4c6cc;"},null)])},content:function(){var e;return(0,r.createVNode)("div",{class:"setting-content"},[(0,r.createVNode)("div",{class:"setting-head"},[(0,r.createVNode)("span",{class:"head-title"},[(0,r.createTextVNode)("表格设置")]),(0,r.createVNode)(Ue.CloseLine,{class:"icon-close-action",onClick:g},null)]),(0,r.createVNode)("div",{class:"setting-body"},[(0,r.createVNode)("div",{class:"setting-body-title"},[(0,r.createVNode)("div",null,[(0,r.createVNode)("span",{class:"field-setting-label"},[(0,r.createTextVNode)("字段显示设置")]),T.value?(0,r.createVNode)("span",{class:"limit"},[(0,r.createTextVNode)("(最多"),u.value.limit,(0,r.createTextVNode)("项)")]):""]),T.value?"":(0,r.createVNode)("span",{class:"check-all",onClick:b},[(0,r.createVNode)(ce(),{label:"全选",indeterminate:Boolean(S.value),modelValue:p.value.length>0},{default:function(){return[(0,r.createTextVNode)("全选")]}})])]),(0,r.createVNode)(ae.BkCheckboxGroup,{class:"setting-body-fields",modelValue:p.value,"onUpdate:modelValue":function(e){return p.value=e}},Ge(e=x.value.map((function(e,t){var n;return(0,r.createVNode)("div",{class:"field-item"},[(0,r.createVNode)(ce(),{checked:p.value.includes(l(e,t)),label:l(e,t),disabled:w(e,t)},Ge(n=he(e,"label",[e,t]))?n:{default:function(){return[n]}})])})))?e:{default:function(){return[e]}}),E.value?(0,r.createVNode)("div",{class:"setting-body-line-height"},[(0,r.createTextVNode)("表格行高:"),C.map((function(e){return(0,r.createVNode)("span",{class:O(e),onClick:function(){return function(e){s.value=e.value,d.value=e.height}(e)}},[e.label])}))]):""]),(0,r.createVNode)("div",{class:"setting-footer"},[(0,r.createVNode)(Ke(),{theme:"primary",style:P,onClick:y},{default:function(){return[(0,r.createTextVNode)("确定")]}}),(0,r.createVNode)(Ke(),{style:P,onClick:g},{default:function(){return[(0,r.createTextVNode)("取消")]}})])])}}):""}}}),qe=function(e,t,n){var l=(0,r.computed)((function(){return e.pagination&&e.data.length?P:0})),a=function(e,t,n){return{column_fixed:!!e.fixed,column_fixed_left:"right"!==e.fixed,column_fixed_right:"right"===e.fixed,shadow:"right"===e.fixed?t<n:t>0}},c=function(e){return"right"===e.fixed?"right":"left"},u={left:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t.filter((function(e){return e.fixed&&"right"!==e.fixed})).reduce((function(t,n,o){return e&&0===o?t:t+me(n)}),0)},right:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t.filter((function(e){return"right"===e.fixed})).reduce((function(t,n,o){return e&&0===o?t:t+me(n)}),n?6:0)}},s=function(e){return{width:"".concat(u[e](!1),"px"),bottom:"".concat(l.value,"px")}},d={left:!1,right:!1},p=(0,r.computed)((function(){return t.filter((function(e){return!e.isHidden&&e.fixed})).map((function(e){var t=c(e),n=d[t];return d[t]=!0,{isExist:n,colPos:t,column:e}}))}));return{renderFixedColumns:function(e,t){return p.value.map((function(n){var o=n.isExist,i=n.colPos,l=n.column;return o?"":(0,r.createVNode)("div",{class:a(l,e,t),style:s(i)},null)}))},fixedWrapperClass:(0,o.resolveClassName)("table-fixed"),resolveFixedColumnStyle:function(e){if(!e.fixed)return{};var n={left:0,right:0},o=c(e);return n[o]=function(e,n){for(var o=n.__col_$uuid,r="right"===e?-1:1,i=t.length,l="right"===e?i*r:1,a=0;;){l+=-1*r;var u=Math.abs(l),s=t[u],d=c(s),p=s.__col_$uuid;if(d===e&&o!==p&&(a+=me(s)),0===l||o===p)break}return a}(o,e),i({},o,"".concat(n[o],"px"))}}};function Be(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,r.isVNode)(e)}var Xe=function(){function e(t,n,o,r){var l=this;oe(this,e),this.getRowHeight=function(e,t){var n=l.setting,o=n.size;return null!=n.height?he(l.setting,"height",["tbody",e,t,o]):he(l.props,"rowHeight",["tbody",e,t])},this.getColumnClass=function(e,t){var n;return i(n={},"".concat(l.uuid,"-column-").concat(t),!0),i(n,"column_fixed",!!e.fixed),i(n,"column_fixed_left",!!e.fixed),i(n,"column_fixed_right","right"===e.fixed),n},this.getHeadColumnClass=function(e,t){return Object.assign(Object.assign({},l.getColumnClass(e,t)),{active:l.isColActive(t)})},this.props=t,this.context=n,this.reactiveProp=o,this.colgroups=r,this.plugins=new ze(t,n),this.uuid=(0,le.v4)(),this.events=new Map}return ie(e,[{key:"propActiveCols",get:function(){return this.reactiveProp.activeColumns}},{key:"renderTableHeadSchema",value:function(){var e=this,t=Ce(this.props).isShow;return void 0===t||t?[this.props.settings?(0,r.createVNode)($e,{class:"table-head-settings",settings:this.reactiveProp.settings,columns:this.colgroups,rowHeight:this.props.rowHeight,onChange:function(t){var n,o=t.checked,r=void 0===o?[]:o,i=t.size,a=t.height;e.reactiveProp.setting.size=i,e.reactiveProp.setting.height=a;var c=(null===(n=e.props.settings)||void 0===n?void 0:n.fields)||[];r.length&&e.colgroups.forEach((function(e){e.isHidden=Pe(c,e,r)})),e.emitEvent(l.ON_SETTING_CHANGE,[t])}},null):"",(0,r.createVNode)("table",{cellpadding:0,cellspacing:0},[this.renderColGroup(),this.renderHeader()])]:null}},{key:"renderTableBodySchema",value:function(e){var t,n,o;return e.length?(0,r.createVNode)("table",{cellpadding:0,cellspacing:0,"data-table-uuid":this.uuid},[this.renderColGroup(),this.renderTBody(e)]):null!==(o=null===(n=(t=this.context.slots).empty)||void 0===n?void 0:n.call(t))&&void 0!==o?o:(0,r.createVNode)(He,{filterList:e,list:this.props.data,emptyText:this.props.emptyText},null)}},{key:"renderTableFooter",value:function(e){var t=this;return(0,r.createVNode)(de(),(0,r.mergeProps)(e,{modelValue:e.current,onLimitChange:function(e){return t.handlePageLimitChange(e)},onChange:function(e){return t.handlePageChange(e)}}),null)}},{key:"on",value:function(e,t){return this.events.has(e)||this.events.set(e,[]),this.events.get(e).push(t),this}},{key:"destroy",value:function(){this.events.clear(),this.events=null}},{key:"emitEvent",value:function(e,t){var n=this;this.events.has(e)&&this.events.get(e).forEach((function(e){"function"==typeof e&&Reflect.apply(e,n,t)}))}},{key:"handlePageLimitChange",value:function(e){Object.assign(this.props.pagination,{limit:e}),this.context.emit(a.PAGE_LIMIT_CHANGE,e)}},{key:"handlePageChange",value:function(e){Object.assign(this.props.pagination,{current:e,value:e}),this.context.emit(a.PAGE_VALUE_CHANGE,e)}},{key:"setColumnActive",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.propActiveCols.find((function(t){return t.index===e}));Object.assign(n,{active:!n.active}),t&&this.propActiveCols.filter((function(t){return t.index!==e&&t.active})).forEach((function(e){Object.assign(e,{active:!1})}))}},{key:"handleColumnHeadClick",value:function(e,t){if("disabled"!==this.props.columnPick&&(this.setColumnActive(e,"single"===this.props.columnPick),this.context.emit(a.COLUMN_PICK,this.propActiveCols)),t.sort&&!t.filter){var n=he(t,["field","type"],[t,e]),o=Ee(this.reactiveProp.defaultSort[n]);Object.assign(this.reactiveProp.defaultSort,i({},n,o));var r=Se(t,o);this.emitEvent(l.ON_SORT_BY_CLICK,[{sortFn:r,column:t,index:e,type:o}])}}},{key:"getSortCell",value:function(e,t){var n=this,o=he(e,["field","type"],[e,t]),a=this.reactiveProp.defaultSort[o];return(0,r.createVNode)(Me,{column:e,defaultSort:a,onChange:function(r,a){Object.assign(n.reactiveProp.defaultSort,i({},o,a)),n.emitEvent(l.ON_SORT_BY_CLICK,[{sortFn:r,column:e,index:t,type:a}])}},null)}},{key:"getFilterCell",value:function(e,t){var n=this;return(0,r.createVNode)(We,{column:e,height:this.props.headHeight,onChange:function(o,r){n.emitEvent(l.ON_FILTER_CLICK,[{filterFn:function(e,t){return r(o,e,t)},checked:o,column:e,index:t}])},onFilterSave:function(t){n.context.emit(a.COLUMN_FILTER_SAVE,{column:e,values:t})}},null)}},{key:"renderHeader",value:function(){var e=this,t=Ce(this.props),n=t.cellFn,o={"--row-height":"".concat(he(t,"height",["thead"]),"px")},l=function(t,o){if("selection"===t.type){var l=e.reactiveProp.rowActions.get(b);return e.renderCheckboxColumn(i({},m,!!l),0,!0)}var a=[];t.sort&&a.push(e.getSortCell(t,o)),t.filter&&a.push(e.getFilterCell(t,o));var c=function(e,t){return"function"==typeof n?n(e,t):he(e,"label",[e,t])}(t,o);a.unshift(c);var u="string"==typeof c?c:void 0;return(0,r.createVNode)(Ae,{title:u},Be(a)?a:{default:function(){return[a]}})},a=qe(this.props,this.colgroups).resolveFixedColumnStyle;return(0,r.createVNode)("thead",{style:o},[(0,r.createVNode)(Re,null,{default:function(){return[(0,r.createVNode)("tr",null,[e.filterColgroups.map((function(t,n){return(0,r.createVNode)("th",(0,r.mergeProps)({colspan:1,rowspan:1,class:e.getHeadColumnClass(t,n),style:a(t),onClick:function(){return e.handleColumnHeadClick(n,t)}},(o=t,Array.from(o.listeners.keys()).reduce((function(t,n){var r=n.split("_").slice(-1)[0];return Object.assign(t,i({},r,(function(t){o.listeners.get(n).forEach((function(n){return Reflect.apply(n,e,[t,o,e])}))})))}),{}))),[l(t,n)]);var o}))])]}})])}},{key:"renderTBody",value:function(e){var t=this,n=qe(this.props,this.colgroups).resolveFixedColumnStyle,o=e.length;return(0,r.createVNode)("tbody",null,[e.map((function(i,l){var a=[].concat(Z(we(t.props.rowStyle,[i,l,t])),[{"--row-height":"".concat(t.getRowHeight(i,l),"px")}]),c=[].concat(Z(we(t.props.rowClass,[i,l,t])),["hover-".concat(t.props.rowHover)]),u=i.__$uuid;return[(0,r.createVNode)(Re,{key:u},{default:function(){return[(0,r.createVNode)("tr",{style:a,class:c,onClick:function(n){return t.handleRowClick(n,i,l,e)},onDblclick:function(n){return t.handleRowDblClick(n,i,l,e)}},[t.filterColgroups.map((function(a,c){var u,s,d=[n(a)].concat(Z(we(t.props.cellStyle,[a,c,i,l,t]))),p={"expand-cell":"expand"===a.type},f="__CELL_".concat(l,"_").concat(c),v=Ne(a,c,i,l),h=v.colspan,y=v.rowspan,g=a.__col_$uuid,m=null!==(s=null===(u=i.__row_skip_config)||void 0===u?void 0:u[g])&&void 0!==s?s:{},b=m.skipRow,T=void 0!==b&&b,C=m.skipCol;if(!(T||void 0!==C&&C)){var _,w=[t.getColumnClass(a,c)].concat(Z(we(t.props.cellClass,[a,c,i,l,t])),[{"expand-row":i.__row_expand,"is-last":l+y>=o}]);return(0,r.createVNode)("td",{class:w,style:d,key:f,colspan:h,rowspan:y},[(0,r.createVNode)(Ae,{class:p,column:a,row:i,parentSetting:t.props.showOverflowTooltip},Be(_=t.renderCell(i,a,l,e))?_:{default:function(){return[_]}})])}return null}))])]}}),t.renderExpandRow(i,c)]}))])}},{key:"renderExpandRow",value:function(e,t){var n,o,i,l=this;if(e.__row_expand){var a=[].concat(Z(t),[{row_expend:!0}]),c="".concat(e.__$uuid,"_expand");return(0,r.createVNode)(Re,{key:c},{default:function(){return[(0,r.createVNode)("tr",{class:a},[(0,r.createVNode)("td",{colspan:l.filterColgroups.length,rowspan:1},[null!==(i=null===(o=(n=l.context.slots).expandRow)||void 0===o?void 0:o.call(n,e.__row_source_data))&&void 0!==i?i:(0,r.createVNode)("div",{class:"expand-cell-ctx"},[(0,r.createTextVNode)("Expand Row")])])])]}})}}},{key:"handleRowClick",value:function(e,t,n,o){this.context.emit(a.ROW_CLICK,e,t,n,o,this)}},{key:"handleRowDblClick",value:function(e,t,n,o){this.context.emit(a.ROW_DBL_CLICK,e,t,n,o,this)}},{key:"getExpandCell",value:function(e){return e.__row_expand?(0,r.createVNode)(ue.DownShape,null,null):(0,r.createVNode)(ue.RightShape,null,null)}},{key:"handleRowExpandClick",value:function(e,t,n,o,r){this.emitEvent(l.ON_ROW_EXPAND_CLICK,[{row:e,column:t,index:n,rows:o,e:r}])}},{key:"renderCellCallbackFn",value:function(e,t,n,o){var r=_e(e,he(t,"field",[t,e]),t),i=this.props.data[e.__$table_row_index];return t.render({cell:r,data:i,row:e,column:t,index:n,rows:o})}},{key:"renderCheckboxColumn",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=function(r){n.emitEvent(l.ON_ROW_CHECK,[{row:e,index:t,isAll:o,value:r}])},a=o&&!!this.reactiveProp.rowActions.get(T),c=Le(this.props,{row:e,index:t,isCheckAll:o});return(0,r.createVNode)(ce(),{onChange:i,disabled:!c,modelValue:e.__row_selection,indeterminate:a},null)}},{key:"renderExpandColumn",value:function(e,t,n,o){var i,l,a,c=this;return(0,r.createVNode)("span",{class:"expand-btn-action",onClick:function(r){return c.handleRowExpandClick(e,t,n,o,r)}},["function"==typeof t.render?c.renderCellCallbackFn(e,t,n,o):null!==(a=null===(l=(i=c.context.slots).expandCell)||void 0===l?void 0:l.call(i,{row:e,column:t,index:n,rows:o}))&&void 0!==a?a:c.getExpandCell(e)])}},{key:"renderCell",value:function(e,t,n,o){var r,i,l,a=this,c={expand:function(e,t,n,o){return a.renderExpandColumn(e,t,n,o)},selection:function(e,t,n,o){return a.renderCheckboxColumn(e,n)}};return null!==(i=null===(r=c[t.type])||void 0===r?void 0:r.call(c,e,t,n,o))&&void 0!==i?i:(l=_e(e,he(t,"field",[t,e]),t),"function"==typeof t.render?a.renderCellCallbackFn(e,t,n,o):l)}},{key:"isColActive",value:function(e){return"disabled"!==this.props.columnPick&&this.propActiveCols.some((function(t){return t.index===e&&t.active}))}},{key:"renderColGroup",value:function(){var e=this;return(0,r.createVNode)("colgroup",null,[(this.filterColgroups||[]).map((function(t,n){var i,l=(0,o.classes)({active:e.isColActive(n)}),a="".concat((i=me(t),ge(i,"auto"))).replace(/px$/i,"");return(0,r.createVNode)("col",{class:l,width:a},null)}))])}},{key:"filterColgroups",get:function(){return this.colgroups.filter((function(e){return!e.isHidden}))}},{key:"setting",get:function(){return this.reactiveProp.setting}}]),e}();const Ye=function(e,t){return{initColumns:function(e){(Array.isArray(e)?e:[e]).forEach((function(e){if(!t.find((function(t){return t.label===e.label&&t.field===e.field}))){var n=(0,r.unref)(e);t.push(n)}}))},getColumns:function(){var n;return(null==t?void 0:t.length)?t:(null===(n=e.columns)||void 0===n?void 0:n.length)?e.columns:[]}}};var Ze=function(e){return"disabled"!==e.columnPick?"multi"===e.columnPick?Array.isArray(e.activeColumn)?e.activeColumn:ye(e.activeColumn):Array.isArray(e.activeColumn)?ye(e.activeColumn[0]):ye(e.activeColumn):[]};var Je=void 0,Qe=function(e,n,l,a,c){var s,d=Ye(e,n).getColumns,p=(0,r.ref)(200),f=(0,r.ref)(void 0),v=(0,r.computed)((function(){return e.pagination&&e.data.length})),h=(0,r.computed)((function(){var t,n,r;return(0,o.classes)((i(t={},(0,o.resolveClassName)("table"),!0),i(t,"has-footer",v.value),i(t,"has-scroll-y",f.value||e.virtualEnabled),t),(r=["row"],"string"==typeof(n=e.border)&&r.push(n),Array.isArray(n)&&r.push.apply(r,Z(n.filter((function(e){return u.includes(e)})))),Z(new Set(r)).map((function(e){return"bordered-".concat(e)})).join(" ")))})),y=(0,o.classes)((i(s={},(0,o.resolveClassName)("table-head"),!0),i(s,"has-settings",!!e.settings),s)),g=Ce(e),m=(0,r.computed)((function(){return{"--row-height":"".concat(he(g,"height",["thead"]),"px"),"--scroll-head-left":"-".concat(a.scrollTranslateX,"px"),"--scroll-left":"".concat(a.scrollTranslateX,"px")}})),b=i({},(0,o.resolveClassName)("table-body"),!0),T=(0,r.computed)((function(){var t;return(0,o.classes)((i(t={},(0,o.resolveClassName)("table-footer"),!0),i(t,"is-hidden",!e.pagination||!e.data.length),t))})),C=function(){var e=d();if(e.every((function(e){return/^\d+\.?\d*(px)?$/gi.test("".concat(e.width))}))){var t=e.reduce((function(e,t){return e+Number("".concat(t.width).replace(/px/gi,""))}),0),n=f.value?6:0;return"".concat(t+n,"px")}return"100%"},_=(0,r.computed)((function(){return{minHeight:ge(e.minHeight,"auto"),width:C(),maxWidth:"100%"}})),w=function(e,t){var n=String(e);return/^\d+\.?\d*$/.test(n)?Number(n):/^\d+\.?\d*px$/gi.test(n)?Number(n.replace("px","")):/^\d+\.?\d*%$/gi.test(n)&&"number"==typeof t?t*Number(n.replace("%",""))/100:t},O=(0,r.reactive)({display:"","min-height":"",height:"",maxHeight:""});(0,r.onMounted)((function(){x(null==l?void 0:l.value)}));var x=function(t){if(t){var n=t.parentElement.getBoundingClientRect().height;p.value=n,function(){var t=w(e.height,p.value),n=e.showHead?w(e.headHeight,P):0,o=w(e.minHeight,p.value),r=e.pagination&&e.data.length?P:0,i=t-n-r,l="auto"!==e.height&&"".concat(i,"px"),a=o-n-r,u=w(e.maxHeight,void 0),s="number"==typeof u&&"".concat(u-n-r,"px");Object.assign(O,{display:!!(null==c?void 0:c.length)&&"block","min-height":"".concat(a,"px"),height:l,maxHeight:s})}(),N(t)}},N=function(t){var n=e.virtualEnabled?".".concat((0,o.resolveClassName)("virtual-section")):".".concat((0,o.resolveClassName)("table-body-content")),r=t.querySelector(".bk-table-body");f.value=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e){var o=e.querySelector(t);if(o)return o.offsetHeight>e.offsetHeight-n}return!1}(r,n,0)};return{tableClass:h,headClass:y,contentClass:b,footerClass:T,wrapperStyle:_,contentStyle:O,headStyle:m,resetTableHeight:x,updateBorderClass:N,getColumnsWidthOffsetWidth:function(){var n=0;return f.value&&(n+=6),e.border.includes(t.OUTER)&&!e.border.includes(t.NONE)&&(n+=2),n},hasFooter:v,hasScrollY:f}},et=function(e,t){var n,o,l=(0,r.reactive)([]),a=Ye(e,t).getColumns,c=function(e){if(/^\d+/.test("".concat(e.minWidth)))return e.minWidth;var t=80;return e.sort&&(t+=18),e.filter&&(t+=28),t},u=function(){var t,n,o=(null===(t=e.settings)||void 0===t?void 0:t.checked)||[],r=(null===(n=e.settings)||void 0===n?void 0:n.fields)||[];l.splice.apply(l,[0,l.length].concat(Z(a().map((function(e){var t;return Object.assign(Object.assign({},e),(i(t={calcWidth:null,resizeWidth:null,minWidth:c(e),listeners:new Map,isHidden:Pe(r,e,o)},w,(0,le.v4)()),i(t,O,e),t))})))))},s=function(e){var t,n,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l="HeadColumnResize";!function(e){e.MOUSE_MOVE="onMousemove",e.MOUSE_OUT="onMouseout",e.MOUSE_DOWN="onMousedown"}(n||(n={}));var a=!1,c=!1,u=!1,s=0,d=null,p=0,f=(0,r.ref)(-1e3),v=function e(t){var n;c=!1,u=!1,document.body.style.cursor="";var o=t.clientX-s,r=(null!==(n=d.resizeWidth)&&void 0!==n?n:d.calcWidth)+o,i=Number(d.minWidth);d.resizeWidth=r>i?r:i,document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",y),s=0,f.value=-1e3,d=null,t.target.closest("table").querySelectorAll("th").forEach((function(e){return e.style.setProperty("user-select","inherit")}))},h=function(e){return(0,fe.throttle)((function(){var t,n=e.clientX-s,o=(null!==(t=d.resizeWidth)&&void 0!==t?t:d.calcWidth)+n;Number(d.minWidth)<o&&(f.value=e.clientX-s+p)}),60)},y=function(e){document.body.style.setProperty("cursor",""),h(e)()},g=(i(t={},n.MOUSE_DOWN,(function(e,t){if(a){c=!0,document.body.style.setProperty("cursor","col-resize"),d=t,s=e.clientX;var n=e.target.closest("table");p=s-n.getBoundingClientRect().left,document.addEventListener("mouseup",v),document.addEventListener("mousemove",y)}})),i(t,n.MOUSE_MOVE,(function(e,t){c&&!u&&(u=!0);var n=e.target.closest("th");if(u&&n.style.setProperty("user-select","none"),!u){if(!n)return;var o=n.getBoundingClientRect();o.width>12&&o.right-e.pageX<8?(a=!0,n.style.setProperty("cursor","col-resize")):(n.style.setProperty("cursor",""),a=!1)}})),i(t,n.MOUSE_OUT,(function(e,t){var n=e.target;u||n.style.setProperty("cursor","")})),t),m=function(e){return"".concat(l,"_").concat(e)},b=function(){e.forEach((function(e){!1!==e.resizable&&Object.keys(g).forEach((function(t){var n=m(t);e.listeners.has(n)||e.listeners.set(n,[]),e.listeners.get(n).push(g[t])}))}))},T=function(){e.forEach((function(e){Object.keys(g).forEach((function(t){var n=m(t);if(e.listeners.has(n)){var o=e.listeners.get(n);o.splice(0,o.length)}}))}))};o&&b();var C=(0,r.computed)((function(){return{position:"absolute",top:0,bottom:0,left:0,width:"1px","background-color":"#ebeef5"}}));return{registerResizeEvent:b,resetResizeEvents:T,dragOffsetX:f,dragOffsetXStyle:C}}(l,!0),d=s.dragOffsetXStyle,p=s.dragOffsetX,y=s.resetResizeEvents,g=s.registerResizeEvent,P=function(e,t){var n=(0,r.reactive)([]),o=Ye(e,t).getColumns;if("disabled"===e.columnPick)return{activeColumns:n};var i=(0,r.reactive)(Ze(e));return(0,r.watchEffect)((function(){n=o().map((function(e,t){return{index:t,active:i.some((function(e){return e===t})),_column:e}}));var t=Ze(e);n.forEach((function(e,n){Object.assign(e,{active:t.some((function(e){return e===n}))})}))})),{activeColumns:n}}(e,t).activeColumns;(0,r.watch)((function(){return[e.settings]}),(function(){var t;((null===(t=e.settings)||void 0===t?void 0:t.checked)||[]).length&&u()})),(0,r.watch)((function(){return[e.columns,t]}),(function(){u(),y(),g()}),{immediate:!0,deep:!0});var N=e.columns.reduce((function(e,t,n){var o=he(t,["field","type"],[t,n]),r=ke(t.sort);return r?Object.assign(Object.assign({},e||{}),i({},o,null==r?void 0:r.value)):e}),null),S=(0,r.reactive)({rowActions:new Map,scrollTranslateY:0,scrollTranslateX:0,pos:{bottom:1},activeColumns:P,settings:e.settings,setting:{size:null===(n=e.settings)||void 0===n?void 0:n.size,height:x[null===(o=e.settings)||void 0===o?void 0:o.size]},defaultSort:N||e.defaultSort}),E=function(e){var t;return!!S.rowActions.has(e)&&(null===(t=S.rowActions.get(e))||void 0===t?void 0:t.isExpand)},k=function(){return S.rowActions.has(b)?S.rowActions.get(b):!!e.selectionKey&&I.every((function(e){return j(e)}))},L=function(e){var t=e.__$uuid,n=(S.rowActions.get(t)||{}).isSelected;return void 0!==n&&n},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,t=!1,n=!1;I.forEach((function(o){var r=e(o);t||r||(t=!0),!n&&r&&(n=!0)})),S.rowActions.set(T,n&&t)},R=function(){e.columns.some((function(e){return"selection"===e.type}))&&A((function(e){return j(e)}))},V=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n="boolean"==typeof t?t:!k();S.rowActions.set(b,n),S.rowActions.set(T,!1),I.forEach((function(t,o){var r;if(Le(e,{row:t,index:o,isCheckAll:!1})){var i=t.__$uuid,l=Object.assign({},null!==(r=S.rowActions.get(i))&&void 0!==r?r:{},{isSelected:n});S.rowActions.set(i,l)}})),A(),W(n),M(null,t,!0)},j=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return L(e)};return"function"==typeof e.isSelectedFn?Reflect.apply(e.isSelectedFn,Je,[{row:t,data:e.data}]):"string"==typeof e.selectionKey&&e.selectionKey.length?(0,fe.get)(t,e.selectionKey):n(t)},H=function(t,n,o){return j(t,(function(){var r,i=void 0===n?t.__$uuid:n;return!(!Le(e,{row:t,index:o,isCheckAll:!1})||!k())||!!S.rowActions.has(i)&&(null===(r=S.rowActions.get(i))||void 0===r?void 0:r.isSelected)}))},I=(0,r.reactive)([]),F=(0,r.computed)((function(){return l.some((function(e){return"function"==typeof e.rowspan||/^\d$/.test("".concat(e.rowspan))||"function"==typeof e.colspan||/^\d$/.test("".concat(e.colspan))}))})),W=function(t){var n=null,o={};I.forEach((function(r,l){var a,c=r.__$uuid,u=F.value?U(r,c,l,o,n):{},s=Le(e,{row:r,index:l,isCheckAll:!1});Object.assign(r,(i(a={},h,E(r.__$uuid)),i(a,m,function(e,t,n,o){var r=H(n,n.__$uuid,o);return e&&"boolean"==typeof t?t:r}(s,t,r,l)),i(a,_,u),a)),n=r.__$uuid})),"boolean"!=typeof t&&R()},U=function(e,t,n,o,r){var a,c=0,u=null!==(a=o[r])&&void 0!==a?a:{};return o[t]||(o[t]={}),l.forEach((function(r,l){var a,s,d=Ne(r,l,e,n),p=d.colspan,f=d.rowspan,v=r.__col_$uuid,h=null!==(s=null===(a=u[v])||void 0===a?void 0:a.skipRowLen)&&void 0!==s?s:0,y=i({},v,{skipRowLen:0,skipRow:!1,skipCol:!1,skipColLen:0});c>0&&(y[v].skipColLen=c,y[v].skipCol=!0,c-=1),h>1?(y[v].skipRowLen=h-1,y[v].skipRow=!0):f>1&&(y[v].skipRowLen=f,y[v].skipRow=!1),p>1&&(y[v].skipColLen=p,c=p-1),Object.assign(o[t],Object.assign({},y))})),o[t]},M=function(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.asyncData&&e.rowKey)if(o)e.data.forEach((function(t){(0,fe.has)(t,e.selectionKey)&&(0,fe.set)(t,e.selectionKey,!!n)}));else if((0,fe.has)(t,e.selectionKey)){var r=e.data.find((function(n){return(0,fe.get)(n,e.rowKey)===(0,fe.get)(t,e.rowKey)}));(0,fe.set)(r,e.selectionKey,!!n)}},z=qe(e,l,!1),D=z.renderFixedColumns,K=z.fixedWrapperClass;return{colgroups:l,dragOffsetXStyle:d,dragOffsetX:p,reactiveSchema:S,indexData:I,fixedWrapperClass:K,initIndexData:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=null,o={};I.splice.apply(I,[0,I.length].concat(Z(e.data.map((function(r,l){var a,c=Oe(r,e,l),u=F.value?U(r,c,l,o,n):{};return n=c,Object.assign(Object.assign({},r),(i(a={},f,l),i(a,v,c),i(a,h,!!t&&E(c)),i(a,m,H(r,c,l)),i(a,C,Object.assign({},r)),i(a,_,u),a))}))))),R()},updateIndexData:W,renderFixedColumns:D,setRowExpand:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=e.__$uuid,r="boolean"==typeof n?n:!E(o);S.rowActions.set(o,Object.assign({},null!==(t=S.rowActions.get(o))&&void 0!==t?t:{},{isExpand:r})),W()},updateColGroups:u,clearSelection:function(){V(!1)},toggleAllSelection:V,toggleRowSelection:function(e,t){var n,o=e.__$uuid;if(o){var r="boolean"==typeof t?t:!H(e,o),i=Object.assign({},null!==(n=S.rowActions.get(o))&&void 0!==n?n:{},{isSelected:r});S.rowActions.set(o,i),t||S.rowActions.set(b,!1),A(),W(),M(e,t,!1)}},getSelection:function(){return I.filter((function(e){return H(e)}))},clearSort:function(){Array.isArray(S.defaultSort)&&S.defaultSort.splice(0),S.defaultSort=N||e.defaultSort}}};const tt=(0,r.defineComponent)({name:"Table",props:G,emits:p,setup:function(e,t){var n=null,c=null,u=null,s=null,d=(0,r.reactive)([]),p=Ye(e,d).initColumns;(0,r.provide)(S,p);var f=(0,r.ref)(),v=(0,r.ref)(),h=(0,r.ref)(0),y=et(e,d),g=y.colgroups,m=y.dragOffsetXStyle,b=y.dragOffsetX,T=y.reactiveSchema,C=y.indexData,_=y.renderFixedColumns,w=y.setRowExpand,O=y.initIndexData,P=y.fixedWrapperClass,x=y.clearSelection,N=y.toggleAllSelection,E=y.toggleRowSelection,k=y.getSelection,L=y.clearSort,A=ee(e,C),R=A.pageData,V=A.localPagination,j=A.resolvePageData,H=A.watchEffectFn,I=Qe(e,d,f,T,R),F=I.tableClass,W=I.headClass,U=I.contentClass,M=I.footerClass,z=I.wrapperStyle,D=I.contentStyle,K=I.headStyle,G=I.updateBorderClass,$=I.resetTableHeight,q=I.getColumnsWidthOffsetWidth,X=I.hasFooter,Y=new Xe(e,t,T,g),Z=function(){var e=f.value.querySelector(".bk-table-body-content"),t=e.querySelector("table");if(t){var n=t.scrollWidth,o=e.clientWidth;h.value=n-o}};(0,r.watch)((function(){return[e.data,e.pagination,e.height,e.maxHeight,e.minHeight]}),(function(){O(e.reserveExpand),H(u,n,c),(0,r.nextTick)((function(){$(f.value),G(f.value)}))}),{immediate:!0,deep:!0}),(0,r.watchEffect)((function(){if((null==f?void 0:f.value)instanceof HTMLElement){var e=q();be(f.value,g,20,e),Z()}})),Y.on(l.ON_SORT_BY_CLICK,(function(e){var o,i,l=e.sortFn,s=e.column,d=e.index,p=e.type;"function"==typeof l&&(j(u,n=l,c=s),null===(i=null===(o=v.value)||void 0===o?void 0:o.reset)||void 0===i||i.call(o)),t.emit(a.COLUMN_SORT,{column:(0,r.unref)(s.__col_source_data),index:d,type:p})})).on(l.ON_FILTER_CLICK,(function(e){var o,i,l=e.filterFn,s=e.checked,d=e.column,p=e.index;"function"==typeof l&&(j(u=l,n,c),null===(i=null===(o=v.value)||void 0===o?void 0:o.reset)||void 0===i||i.call(o)),t.emit(a.COLUMN_FILTER,{checked:s,column:(0,r.unref)(d.__col_source_data),index:p})})).on(l.ON_SETTING_CHANGE,(function(e){var n=e.checked,o=void 0===n?[]:n,i=e.size,l=e.height;(0,r.nextTick)((function(){var e,n;G(f.value);var r=q();o.length&&be(f.value,g,80,r),null===(n=null===(e=v.value)||void 0===e?void 0:e.reset)||void 0===n||n.call(e),t.emit(a.SETTING_CHANGE,{checked:o,size:i,height:l})}))})).on(l.ON_ROW_EXPAND_CLICK,(function(e){var n=e.row,o=e.column,i=e.index,l=e.rows,c=e.e;t.emit(a.ROW_EXPAND_CLICK,{row:(0,r.unref)(n.__row_source_data),column:(0,r.unref)(o.__col_source_data),index:i,rows:l,e:c}),w(n,!n.__row_expand)})).on(l.ON_ROW_CHECK,(function(n){var o=n.row,i=n.isAll,l=n.index,c=n.value;i?(N(c),t.emit(a.ROW_SELECT_ALL,{checked:c,data:e.data})):(E(o,c),t.emit(a.ROW_SELECT,{row:(0,r.unref)(o.__row_source_data),index:l,checked:c,data:e.data})),t.emit(a.ROW_SELECT_CHANGE,{row:(0,r.unref)(o.__row_source_data),isAll:i,index:l,checked:c,data:e.data})}));var Q=function(e){var n,r=null!==(n=T.pos.bottom)&&void 0!==n?n:0,i=e[1],l=i.translateX,c=i.translateY,u=i.pos,s=void 0===u?{}:u;T.scrollTranslateY=c,T.scrollTranslateX=l,T.pos=s;var d=s.bottom;d<=2&&r>d&&(0,o.debounce)(60,(function(){t.emit(a.SCROLL_BOTTOM,Object.assign(Object.assign({},s),{translateX:l,translateY:c}))}),!0)(),Z()};(0,r.onMounted)((function(){(s=Te(f.value,(function(){"100%"!==e.height&&"auto"!==e.height||$(f.value),G(f.value);var t=q();be(f.value,g,20,t)}),60,!0)).start()})),(0,r.onBeforeUnmount)((function(){s.stop(),s=null,Y.destroy()})),t.expose({setRowExpand:w,clearSelection:x,toggleAllSelection:N,toggleRowSelection:E,getSelection:k,clearSort:L});var oe=(0,r.computed)((function(){return Object.assign(Object.assign({},U),{"__is-empty":!R.length})})),re=(0,r.computed)((function(){var t;return i(t={},(0,o.resolveClassName)("table-body-content"),!0),i(t,"with-virtual-render",e.virtualEnabled),t})),ie={column_drag_line:!0,"offset-x":!0},le=(0,r.computed)((function(){return Object.assign(Object.assign({},m.value),{left:"".concat(b.value-T.scrollTranslateX,"px")})})),ae={"scroll-loading":!0,_bottom:!0},ce=(0,r.computed)((function(){var t;return i(t={},(0,o.resolveClassName)("fixed-bottom-border"),!0),i(t,"_is-empty",!e.data.length),t})),ue={zIndex:-1,width:0,height:0,display:"none"},se=function(e,t){var n=(0,r.toRef)(e,"scrollLoading"),o=(0,r.computed)((function(){return null!==n.value&&("boolean"==typeof n.value&&n.value||"object"===J(n.value))}));return{renderScrollLoading:function(){var e,i,l;if(o.value){var a="boolean"==typeof n.value?{loading:!!n.value,inline:!0,title:"",size:te.BkLoadingSize.Normal,mode:te.BkLoadingMode.Default,indicator:null}:n.value,c=a.loading,u=a.size,s=a.mode,d=a.title,p=a.inline,f=a.indicator;return null!==(l=null===(i=(e=t.slots).fixedBottom)||void 0===i?void 0:i.call(e))&&void 0!==l?l:(0,r.createVNode)(ne(),{loading:c,size:u,mode:s,title:d,inline:p,indicator:f},null)}}}}(e,t).renderScrollLoading,de=(0,r.computed)((function(){return e.virtualEnabled?{}:{scrollXName:"",scrollYName:""}}));return function(){var n,o;return(0,r.createVNode)("div",{class:F.value,style:z.value,ref:f},[(0,r.createVNode)("div",{class:W,style:K.value},[Y.renderTableHeadSchema()]),(0,r.createVNode)(B(),(0,r.mergeProps)({ref:v,lineHeight:Y.getRowHeight,class:oe.value,style:D,list:R},de.value,{contentClassName:re.value,onContentScroll:Q,throttleDelay:0,scrollEvent:!0,enabled:e.virtualEnabled}),{default:function(t){return Y.renderTableBodySchema(t.data||e.data)},afterSection:function(){return(0,r.createVNode)("div",{class:ce.value},null)}}),(0,r.createVNode)("div",{class:P},[_(T.scrollTranslateX,h.value),(0,r.createVNode)("div",{class:ie,style:le.value},null),(0,r.createVNode)("div",{class:ae},[se()])]),(0,r.createVNode)("div",{class:M.value},[X.value&&Y.renderTableFooter(V.value)]),(0,r.createVNode)("div",{style:ue},[null===(o=(n=t.slots).default)||void 0===o?void 0:o.call(n)])])}}}),nt=(0,o.withInstall)(tt);var ot=(0,o.withInstall)($)})(),g})()));
@@ -0,0 +1,40 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
3
+ default: () => unknown[];
4
+ } & {
5
+ default: () => unknown[];
6
+ };
7
+ filterList: import("vue-types").VueTypeValidableDef<unknown[]> & {
8
+ default: () => unknown[];
9
+ } & {
10
+ default: () => unknown[];
11
+ };
12
+ emptyText: import("vue-types").VueTypeValidableDef<string> & {
13
+ default: string;
14
+ } & {
15
+ default: string;
16
+ };
17
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
19
+ default: () => unknown[];
20
+ } & {
21
+ default: () => unknown[];
22
+ };
23
+ filterList: import("vue-types").VueTypeValidableDef<unknown[]> & {
24
+ default: () => unknown[];
25
+ } & {
26
+ default: () => unknown[];
27
+ };
28
+ emptyText: import("vue-types").VueTypeValidableDef<string> & {
29
+ default: string;
30
+ } & {
31
+ default: string;
32
+ };
33
+ }>> & {
34
+ onChange?: (...args: any[]) => any;
35
+ }, {
36
+ list: unknown[];
37
+ filterList: unknown[];
38
+ emptyText: string;
39
+ }>;
40
+ export default _default;
@@ -0,0 +1,38 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ colgroups: import("vue-types").VueTypeValidableDef<unknown[]> & {
3
+ default: () => unknown[];
4
+ } & {
5
+ default: () => unknown[];
6
+ };
7
+ columnPick: import("vue-types").VueTypeValidableDef<string> & {
8
+ default: string;
9
+ } & {
10
+ default: string;
11
+ };
12
+ propActiveCols: import("vue-types").VueTypeValidableDef<unknown[]> & {
13
+ default: () => unknown[];
14
+ } & {
15
+ default: () => unknown[];
16
+ };
17
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ colgroups: import("vue-types").VueTypeValidableDef<unknown[]> & {
19
+ default: () => unknown[];
20
+ } & {
21
+ default: () => unknown[];
22
+ };
23
+ columnPick: import("vue-types").VueTypeValidableDef<string> & {
24
+ default: string;
25
+ } & {
26
+ default: string;
27
+ };
28
+ propActiveCols: import("vue-types").VueTypeValidableDef<unknown[]> & {
29
+ default: () => unknown[];
30
+ } & {
31
+ default: () => unknown[];
32
+ };
33
+ }>>, {
34
+ columnPick: string;
35
+ colgroups: unknown[];
36
+ propActiveCols: unknown[];
37
+ }>;
38
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /** 排序方式 */
2
+ export declare const enum SortType {
3
+ ASC = "asc",
4
+ DESC = "desc",
5
+ NULL = "null"
6
+ }