bkui-vue 2.0.1-beta.4 → 2.0.1-beta.41

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 (434) hide show
  1. package/dist/index.cjs.js +166 -166
  2. package/dist/index.esm.js +31881 -31675
  3. package/dist/index.umd.js +166 -166
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.css +130 -0
  7. package/lib/affix/affix.variable.css +262 -1
  8. package/lib/affix/index.js +7 -7
  9. package/lib/alert/alert.css +133 -3
  10. package/lib/alert/alert.d.ts +5 -12
  11. package/lib/alert/alert.variable.css +262 -1
  12. package/lib/alert/index.d.ts +11 -26
  13. package/lib/alert/index.js +0 -1
  14. package/lib/backtop/backtop.css +133 -3
  15. package/lib/backtop/backtop.d.ts +1 -1
  16. package/lib/backtop/backtop.variable.css +395 -4
  17. package/lib/backtop/index.d.ts +3 -3
  18. package/lib/backtop/index.js +6 -6
  19. package/lib/badge/badge.css +156 -26
  20. package/lib/badge/badge.variable.css +262 -1
  21. package/lib/badge/index.js +1 -1
  22. package/lib/breadcrumb/breadcrumb.css +135 -5
  23. package/lib/breadcrumb/breadcrumb.variable.css +397 -6
  24. package/lib/button/button.css +273 -143
  25. package/lib/button/button.d.ts +7 -7
  26. package/lib/button/button.variable.css +262 -1
  27. package/lib/button/index.d.ts +8 -8
  28. package/lib/button/index.js +6 -7
  29. package/lib/card/card.css +134 -4
  30. package/lib/card/card.variable.css +396 -5
  31. package/lib/cascader/cascader-panel.d.ts +1 -1
  32. package/lib/cascader/cascader.css +156 -26
  33. package/lib/cascader/cascader.d.ts +1 -1
  34. package/lib/cascader/cascader.less +4 -4
  35. package/lib/cascader/cascader.variable.css +418 -27
  36. package/lib/cascader/index.js +36 -37
  37. package/lib/cascader/interface.d.ts +1 -1
  38. package/lib/checkbox/checkbox-group.d.ts +0 -16
  39. package/lib/checkbox/checkbox.css +139 -9
  40. package/lib/checkbox/checkbox.d.ts +7 -7
  41. package/lib/checkbox/checkbox.variable.css +262 -1
  42. package/lib/checkbox/index.d.ts +11 -22
  43. package/lib/checkbox/index.js +14 -6
  44. package/lib/checkbox/type.d.ts +1 -1
  45. package/lib/code-diff/code-diff.css +130 -0
  46. package/lib/code-diff/code-diff.variable.css +262 -1
  47. package/lib/code-diff/index.js +8 -8
  48. package/lib/collapse/collapse.css +131 -1
  49. package/lib/collapse/collapse.variable.css +262 -1
  50. package/lib/collapse/index.js +2 -2
  51. package/lib/collapse/utils.d.ts +2 -2
  52. package/lib/collapse-transition/collapse-transition.css +130 -0
  53. package/lib/collapse-transition/collapse-transition.variable.css +262 -1
  54. package/lib/color-picker/color-picker.css +133 -3
  55. package/lib/color-picker/color-picker.less +3 -3
  56. package/lib/color-picker/color-picker.variable.css +265 -4
  57. package/lib/color-picker/index.js +45 -45
  58. package/lib/components.d.ts +32 -32
  59. package/lib/components.js +31 -31
  60. package/lib/config-provider/config-provider.css +130 -0
  61. package/lib/config-provider/config-provider.variable.css +262 -1
  62. package/lib/config-provider/index.d.ts +1 -1
  63. package/lib/container/container.css +130 -0
  64. package/lib/container/container.variable.css +392 -1
  65. package/lib/container/index.js +6 -7
  66. package/lib/date-picker/base/date-table.d.ts +1 -1
  67. package/lib/date-picker/base/month-table.d.ts +1 -1
  68. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  69. package/lib/date-picker/base/year-table.d.ts +1 -1
  70. package/lib/date-picker/date-picker.css +147 -17
  71. package/lib/date-picker/date-picker.d.ts +0 -10
  72. package/lib/date-picker/date-picker.variable.css +262 -1
  73. package/lib/date-picker/index.d.ts +0 -22
  74. package/lib/date-picker/index.js +248 -225
  75. package/lib/date-picker/interface.d.ts +9 -9
  76. package/lib/date-picker/panel/date-range.d.ts +5 -5
  77. package/lib/date-picker/panel/date.d.ts +1 -1
  78. package/lib/date-picker/panel/time-range.d.ts +1 -10
  79. package/lib/date-picker/panel/time.d.ts +1 -10
  80. package/lib/date-picker/props.d.ts +1 -5
  81. package/lib/date-picker/time-picker.d.ts +0 -9
  82. package/lib/date-picker/utils.d.ts +1 -1
  83. package/lib/dialog/dialog.css +138 -12
  84. package/lib/dialog/dialog.d.ts +36 -20
  85. package/lib/dialog/dialog.variable.css +400 -13
  86. package/lib/dialog/index.d.ts +78 -44
  87. package/lib/dialog/index.js +22 -22
  88. package/lib/dialog/props.d.ts +15 -8
  89. package/lib/directives/index.d.ts +3 -3
  90. package/lib/directives/index.js +166 -166
  91. package/lib/directives/tooltips.d.ts +1 -1
  92. package/lib/dist.index.js +2 -4
  93. package/lib/divider/divider.css +133 -3
  94. package/lib/divider/divider.d.ts +5 -5
  95. package/lib/divider/divider.variable.css +262 -1
  96. package/lib/divider/index.d.ts +11 -11
  97. package/lib/divider/index.js +2 -2
  98. package/lib/divider/props.d.ts +2 -2
  99. package/lib/dropdown/dropdown-item.d.ts +1 -1
  100. package/lib/dropdown/dropdown-menu.d.ts +1 -1
  101. package/lib/dropdown/dropdown.css +130 -0
  102. package/lib/dropdown/dropdown.d.ts +5 -5
  103. package/lib/dropdown/dropdown.variable.css +392 -1
  104. package/lib/dropdown/index.d.ts +13 -13
  105. package/lib/dropdown/index.js +7 -7
  106. package/lib/exception/exception.css +130 -0
  107. package/lib/exception/exception.d.ts +9 -9
  108. package/lib/exception/exception.variable.css +262 -1
  109. package/lib/exception/index.d.ts +11 -11
  110. package/lib/exception/index.js +10 -10
  111. package/lib/exception/typings/index.d.ts +1 -1
  112. package/lib/fixed-navbar/fixed-navbar.css +134 -4
  113. package/lib/fixed-navbar/fixed-navbar.variable.css +262 -1
  114. package/lib/fixed-navbar/index.js +2 -2
  115. package/lib/form/form-item.d.ts +0 -16
  116. package/lib/form/form.css +130 -0
  117. package/lib/form/form.d.ts +2 -2
  118. package/lib/form/form.variable.css +262 -1
  119. package/lib/form/index.d.ts +0 -11
  120. package/lib/form/index.js +14 -16
  121. package/lib/form/type.d.ts +2 -2
  122. package/lib/icon/index.d.ts +11 -11
  123. package/lib/icon/index.js +11 -11
  124. package/lib/image/image-viewer.css +130 -0
  125. package/lib/image/image-viewer.d.ts +1 -1
  126. package/lib/image/image-viewer.variable.css +262 -1
  127. package/lib/image/image.css +130 -0
  128. package/lib/image/image.variable.css +392 -1
  129. package/lib/image/index.js +20 -21
  130. package/lib/index.d.ts +9 -3
  131. package/lib/index.js +5 -29
  132. package/lib/info-box/index.js +16 -18
  133. package/lib/info-box/info-box.css +134 -4
  134. package/lib/info-box/info-box.d.ts +15 -15
  135. package/lib/info-box/info-box.variable.css +262 -1
  136. package/lib/input/index.d.ts +15 -15
  137. package/lib/input/index.js +16 -17
  138. package/lib/input/input.css +202 -72
  139. package/lib/input/input.d.ts +15 -15
  140. package/lib/input/input.variable.css +464 -73
  141. package/lib/link/index.d.ts +11 -11
  142. package/lib/link/index.js +3 -3
  143. package/lib/link/link.css +146 -16
  144. package/lib/link/link.d.ts +5 -5
  145. package/lib/link/link.variable.css +262 -1
  146. package/lib/loading/index.d.ts +4 -4
  147. package/lib/loading/index.js +6 -6
  148. package/lib/loading/loading.css +146 -16
  149. package/lib/loading/loading.d.ts +6 -6
  150. package/lib/loading/loading.variable.css +408 -17
  151. package/lib/locale/index.d.ts +1 -1
  152. package/lib/menu/index.js +0 -1
  153. package/lib/menu/menu.css +148 -18
  154. package/lib/menu/menu.variable.css +410 -19
  155. package/lib/menu/submenu.css +130 -0
  156. package/lib/menu/submenu.variable.css +262 -1
  157. package/lib/menu/utils.d.ts +3 -3
  158. package/lib/message/index.js +18 -18
  159. package/lib/message/message.css +151 -21
  160. package/lib/message/message.variable.css +262 -1
  161. package/lib/message/messageConstructor.d.ts +11 -11
  162. package/lib/modal/index.d.ts +49 -8
  163. package/lib/modal/index.js +46 -25
  164. package/lib/modal/modal.css +134 -8
  165. package/lib/modal/modal.d.ts +19 -3
  166. package/lib/modal/modal.less +0 -5
  167. package/lib/modal/modal.variable.css +396 -9
  168. package/lib/modal/props.mixin.d.ts +8 -1
  169. package/lib/navigation/index.js +20 -20
  170. package/lib/navigation/navigation.css +132 -2
  171. package/lib/navigation/navigation.d.ts +1 -1
  172. package/lib/navigation/navigation.variable.css +262 -1
  173. package/lib/notify/index.js +4 -4
  174. package/lib/notify/notify.css +137 -7
  175. package/lib/notify/notify.variable.css +262 -1
  176. package/lib/overflow-title/components/overflow-title.d.ts +9 -16
  177. package/lib/overflow-title/index.d.ts +19 -34
  178. package/lib/overflow-title/index.js +61 -12
  179. package/lib/overflow-title/props.d.ts +18 -21
  180. package/lib/pagination/index.d.ts +0 -19
  181. package/lib/pagination/index.js +44 -23
  182. package/lib/pagination/pagination.css +139 -9
  183. package/lib/pagination/pagination.d.ts +0 -13
  184. package/lib/pagination/pagination.less +14 -13
  185. package/lib/pagination/pagination.variable.css +270 -9
  186. package/lib/pagination/type.d.ts +1 -1
  187. package/lib/pagination/use-limit.d.ts +1 -1
  188. package/lib/pagination/use-total.d.ts +1 -1
  189. package/lib/plugin-popover/index.js +18 -20
  190. package/lib/pop-confirm/index.d.ts +11 -43
  191. package/lib/pop-confirm/index.js +27 -28
  192. package/lib/pop-confirm/pop-confirm.css +133 -1
  193. package/lib/pop-confirm/pop-confirm.d.ts +5 -19
  194. package/lib/pop-confirm/pop-confirm.less +3 -1
  195. package/lib/pop-confirm/pop-confirm.variable.css +265 -2
  196. package/lib/pop-confirm/props.d.ts +5 -11
  197. package/lib/popover/const.d.ts +3 -3
  198. package/lib/popover/index.d.ts +19 -19
  199. package/lib/popover/index.js +18 -20
  200. package/lib/popover/plugin-popover.d.ts +1 -1
  201. package/lib/popover/popover.css +130 -0
  202. package/lib/popover/popover.d.ts +7 -7
  203. package/lib/popover/popover.variable.css +262 -1
  204. package/lib/popover/props.d.ts +4 -4
  205. package/lib/preset.d.ts +0 -1
  206. package/lib/preset.js +0 -1
  207. package/lib/process/index.js +3 -3
  208. package/lib/process/process.css +143 -13
  209. package/lib/process/process.variable.css +262 -1
  210. package/lib/progress/index.d.ts +11 -11
  211. package/lib/progress/index.js +10 -11
  212. package/lib/progress/progress.css +134 -4
  213. package/lib/progress/progress.d.ts +7 -7
  214. package/lib/progress/progress.variable.css +396 -5
  215. package/lib/radio/index.d.ts +21 -21
  216. package/lib/radio/index.js +28 -17
  217. package/lib/radio/radio-button.d.ts +7 -7
  218. package/lib/radio/radio-group.d.ts +7 -7
  219. package/lib/radio/radio.css +172 -42
  220. package/lib/radio/radio.d.ts +7 -7
  221. package/lib/radio/radio.variable.css +262 -1
  222. package/lib/radio/type.d.ts +1 -1
  223. package/lib/rate/index.js +8 -8
  224. package/lib/rate/rate.css +157 -0
  225. package/lib/rate/rate.less +33 -0
  226. package/lib/rate/rate.variable.css +289 -1
  227. package/lib/resize-layout/index.d.ts +11 -11
  228. package/lib/resize-layout/index.js +7 -8
  229. package/lib/resize-layout/resize-layout.css +130 -0
  230. package/lib/resize-layout/resize-layout.d.ts +5 -5
  231. package/lib/resize-layout/resize-layout.variable.css +262 -1
  232. package/lib/scrollbar/css/scrollbar.css +239 -0
  233. package/lib/scrollbar/css/scrollbar.less +139 -0
  234. package/lib/scrollbar/css/scrollbar.variable.css +499 -0
  235. package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
  236. package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
  237. package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
  238. package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
  239. package/lib/scrollbar/handlers/touch.d.ts +4 -0
  240. package/lib/scrollbar/helper/class-names.d.ts +21 -0
  241. package/lib/scrollbar/helper/css.d.ts +3 -0
  242. package/lib/scrollbar/helper/dom.d.ts +4 -0
  243. package/lib/scrollbar/helper/event-manager.d.ts +20 -0
  244. package/lib/scrollbar/helper/util.d.ts +11 -0
  245. package/lib/scrollbar/index.d.ts +133 -13
  246. package/lib/scrollbar/index.js +1330 -18436
  247. package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
  248. package/lib/scrollbar/update-geometry.d.ts +8 -0
  249. package/lib/search-select/index.d.ts +28 -66
  250. package/lib/search-select/index.js +115 -120
  251. package/lib/search-select/input.d.ts +3 -3
  252. package/lib/search-select/menu.d.ts +1 -1
  253. package/lib/search-select/search-select.css +163 -33
  254. package/lib/search-select/search-select.d.ts +11 -37
  255. package/lib/search-select/search-select.variable.css +425 -34
  256. package/lib/search-select/selected.d.ts +8 -8
  257. package/lib/search-select/utils.d.ts +6 -6
  258. package/lib/select/common.d.ts +4 -4
  259. package/lib/select/index.d.ts +101 -74
  260. package/lib/select/index.js +225 -171
  261. package/lib/select/option.d.ts +5 -6
  262. package/lib/select/select.css +175 -43
  263. package/lib/select/select.d.ts +38 -27
  264. package/lib/select/select.less +7 -4
  265. package/lib/select/select.variable.css +437 -44
  266. package/lib/select/selectTagInput.d.ts +6 -6
  267. package/lib/select/type.d.ts +10 -11
  268. package/lib/shared/frame-throttle.d.ts +15 -0
  269. package/lib/shared/index.d.ts +2 -1
  270. package/lib/shared/index.js +110 -47
  271. package/lib/shared/popover.d.ts +3 -3
  272. package/lib/shared/token.d.ts +1 -1
  273. package/lib/shared/vue-types.d.ts +46 -46
  274. package/lib/shared/z-index-manager.d.ts +6 -6
  275. package/lib/sideslider/index.d.ts +41 -7
  276. package/lib/sideslider/index.js +12 -11
  277. package/lib/sideslider/sideslider.css +138 -9
  278. package/lib/sideslider/sideslider.d.ts +19 -3
  279. package/lib/sideslider/sideslider.less +7 -8
  280. package/lib/sideslider/sideslider.variable.css +269 -9
  281. package/lib/slider/index.js +21 -23
  282. package/lib/slider/slider.css +135 -5
  283. package/lib/slider/slider.variable.css +262 -1
  284. package/lib/steps/index.d.ts +14 -29
  285. package/lib/steps/index.js +3 -4
  286. package/lib/steps/steps.css +168 -38
  287. package/lib/steps/steps.d.ts +8 -18
  288. package/lib/steps/steps.variable.css +262 -1
  289. package/lib/styles/index.d.ts +1 -1
  290. package/lib/styles/mixins/animate.css +130 -0
  291. package/lib/styles/mixins/animate.variable.css +262 -1
  292. package/lib/styles/mixins/mixins.css +130 -0
  293. package/lib/styles/mixins/mixins.variable.css +130 -0
  294. package/lib/styles/mixins/popper.css +130 -0
  295. package/lib/styles/mixins/popper.variable.css +262 -1
  296. package/lib/styles/mixins/scroll.css +130 -0
  297. package/lib/styles/mixins/scroll.variable.css +262 -1
  298. package/lib/styles/reset.css +130 -0
  299. package/lib/styles/reset.variable.css +262 -1
  300. package/lib/{rate/star.variable.css → styles/themes/themes.css} +2 -28
  301. package/lib/styles/themes/themes.less +299 -129
  302. package/lib/{scrollbar/scrollbar.variable.css → styles/themes/themes.variable.css} +2 -76
  303. package/lib/swiper/index.js +5 -5
  304. package/lib/swiper/swiper.css +130 -0
  305. package/lib/swiper/swiper.variable.css +262 -1
  306. package/lib/switcher/index.js +2 -2
  307. package/lib/switcher/switcher.css +147 -17
  308. package/lib/switcher/switcher.d.ts +2 -2
  309. package/lib/switcher/switcher.variable.css +409 -18
  310. package/lib/tab/index.d.ts +22 -114
  311. package/lib/tab/index.js +16 -29
  312. package/lib/tab/props.d.ts +15 -50
  313. package/lib/tab/tab-nav.d.ts +12 -55
  314. package/lib/tab/tab.css +147 -17
  315. package/lib/tab/tab.d.ts +10 -54
  316. package/lib/tab/tab.variable.css +262 -1
  317. package/lib/table/components/ghost-body.d.ts +2 -0
  318. package/lib/table/components/table-cell.d.ts +22 -0
  319. package/lib/table/components/table-column.d.ts +25 -126
  320. package/lib/table/const.d.ts +22 -10
  321. package/lib/table/events.d.ts +16 -112
  322. package/lib/table/hooks/use-cell.d.ts +20 -0
  323. package/lib/table/hooks/use-column-resize.d.ts +7 -0
  324. package/lib/table/hooks/use-column-template.d.ts +5 -0
  325. package/lib/table/hooks/use-columns.d.ts +69 -0
  326. package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
  327. package/lib/table/hooks/use-fixed-column.d.ts +10 -0
  328. package/lib/table/hooks/use-head.d.ts +16 -0
  329. package/lib/table/hooks/use-layout.d.ts +24 -0
  330. package/lib/table/hooks/use-pagination.d.ts +16 -0
  331. package/lib/table/hooks/use-render.d.ts +23 -0
  332. package/lib/table/hooks/use-rows.d.ts +27 -0
  333. package/lib/table/hooks/use-settings.d.ts +130 -0
  334. package/lib/table/hooks/use-shift-key.d.ts +15 -0
  335. package/lib/table/index.d.ts +110 -634
  336. package/lib/table/index.js +3990 -3722
  337. package/lib/table/plugins/head-filter.css +130 -0
  338. package/lib/table/plugins/head-filter.d.ts +2 -1
  339. package/lib/table/plugins/head-filter.variable.css +262 -1
  340. package/lib/table/plugins/head-sort.css +130 -0
  341. package/lib/table/plugins/head-sort.variable.css +262 -1
  342. package/lib/table/plugins/settings.css +131 -0
  343. package/lib/table/plugins/settings.less +1 -0
  344. package/lib/table/plugins/settings.variable.css +263 -1
  345. package/lib/table/props.d.ts +114 -63
  346. package/lib/table/table.css +523 -330
  347. package/lib/table/table.d.ts +49 -185
  348. package/lib/table/table.less +156 -112
  349. package/lib/table/table.variable.css +785 -331
  350. package/lib/table/utils.d.ts +45 -19
  351. package/lib/table-column/index.d.ts +36 -289
  352. package/lib/table-column/index.js +17349 -45
  353. package/lib/tag/index.d.ts +11 -11
  354. package/lib/tag/index.js +2 -3
  355. package/lib/tag/tag.css +136 -6
  356. package/lib/tag/tag.d.ts +5 -5
  357. package/lib/tag/tag.less +1 -1
  358. package/lib/tag/tag.variable.css +263 -2
  359. package/lib/tag-input/common.d.ts +1 -1
  360. package/lib/tag-input/index.d.ts +8 -8
  361. package/lib/tag-input/index.js +30 -30
  362. package/lib/tag-input/tag-input.css +148 -18
  363. package/lib/tag-input/tag-input.d.ts +4 -4
  364. package/lib/tag-input/tag-input.variable.css +262 -1
  365. package/lib/tag-input/tag-props.d.ts +2 -2
  366. package/lib/time-picker/index.d.ts +0 -19
  367. package/lib/time-picker/time-picker.css +130 -0
  368. package/lib/time-picker/time-picker.variable.css +262 -1
  369. package/lib/timeline/index.js +2 -2
  370. package/lib/timeline/timeline.css +149 -19
  371. package/lib/timeline/timeline.variable.css +262 -1
  372. package/lib/transfer/const.d.ts +2 -2
  373. package/lib/transfer/index.js +19 -19
  374. package/lib/transfer/transfer.css +158 -28
  375. package/lib/transfer/transfer.less +3 -3
  376. package/lib/transfer/transfer.variable.css +271 -10
  377. package/lib/tree/constant.d.ts +22 -20
  378. package/lib/tree/index.d.ts +41 -27
  379. package/lib/tree/index.js +100 -59
  380. package/lib/tree/props.d.ts +18 -11
  381. package/lib/tree/tree.css +234 -78
  382. package/lib/tree/tree.d.ts +17 -17
  383. package/lib/tree/tree.less +1 -1
  384. package/lib/tree/tree.variable.css +496 -79
  385. package/lib/tree/use-empty.d.ts +1 -1
  386. package/lib/tree/use-node-action.d.ts +9 -8
  387. package/lib/tree/use-node-attribute.d.ts +42 -34
  388. package/lib/tree/use-search.d.ts +1 -1
  389. package/lib/tree/util.d.ts +1 -1
  390. package/lib/upload/index.d.ts +23 -0
  391. package/lib/upload/index.js +71 -41
  392. package/lib/upload/props.d.ts +6 -1
  393. package/lib/upload/upload.css +157 -27
  394. package/lib/upload/upload.d.ts +11 -0
  395. package/lib/upload/upload.type.d.ts +12 -6
  396. package/lib/upload/upload.variable.css +419 -28
  397. package/lib/upload/use-file-handler.d.ts +1 -1
  398. package/lib/virtual-render/index.d.ts +12 -46
  399. package/lib/virtual-render/index.js +17339 -125
  400. package/lib/virtual-render/props.d.ts +2 -9
  401. package/lib/virtual-render/use-fix-top.d.ts +1 -1
  402. package/lib/virtual-render/use-scrollbar.d.ts +3 -17
  403. package/lib/virtual-render/v-virtual-render.d.ts +1 -1
  404. package/lib/virtual-render/virtual-render.css +225 -69
  405. package/lib/virtual-render/virtual-render.d.ts +6 -22
  406. package/lib/virtual-render/virtual-render.less +2 -11
  407. package/lib/virtual-render/virtual-render.variable.css +487 -70
  408. package/lib/volar.components.d.ts +2 -0
  409. package/package.json +17 -55
  410. package/lib/rate/star.css +0 -27
  411. package/lib/rate/star.less +0 -34
  412. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
  413. package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
  414. package/lib/scrollbar/scrollbar-core/index.d.ts +0 -241
  415. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
  416. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
  417. package/lib/scrollbar/scrollbar.css +0 -75
  418. package/lib/scrollbar/scrollbar.less +0 -94
  419. package/lib/table/plugins/col-group.d.ts +0 -38
  420. package/lib/table/plugins/settings.d.ts +0 -16
  421. package/lib/table/plugins/use-active-columns.d.ts +0 -16
  422. package/lib/table/plugins/use-column-resize.d.ts +0 -35
  423. package/lib/table/plugins/use-column-template.d.ts +0 -7
  424. package/lib/table/plugins/use-fixed-column.d.ts +0 -27
  425. package/lib/table/plugins/use-head-cell.d.ts +0 -7
  426. package/lib/table/plugins/use-pagination.d.ts +0 -23
  427. package/lib/table/plugins/use-shift-key.d.ts +0 -11
  428. package/lib/table/use-attributes.d.ts +0 -62
  429. package/lib/table/use-column.d.ts +0 -275
  430. package/lib/table/use-common.d.ts +0 -1679
  431. package/lib/table/use-render.d.ts +0 -11
  432. /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
  433. /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
  434. /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
@@ -481,6 +481,18 @@ function _defineProperty(obj, key, value) {
481
481
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
482
482
  var external_vue_y = x => () => x
483
483
  const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
484
+ ;// CONCATENATED MODULE: external "../config-provider"
485
+ var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
486
+ var config_provider_y = x => () => x
487
+ const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
488
+ ;// CONCATENATED MODULE: external "../directives"
489
+ var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
490
+ var directives_y = x => () => x
491
+ const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
492
+ ;// CONCATENATED MODULE: external "../icon"
493
+ var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
494
+ var icon_y = x => () => x
495
+ const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["ExclamationCircleShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ExclamationCircleShape, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search });
484
496
  ;// CONCATENATED MODULE: ../../node_modules/resize-detector/esm/index.js
485
497
  var raf = null;
486
498
  function requestAnimationFrame (callback) {
@@ -797,18 +809,6 @@ function resetTriggers (elem) {
797
809
 
798
810
 
799
811
 
800
- ;// CONCATENATED MODULE: external "../config-provider"
801
- var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
802
- var config_provider_y = x => () => x
803
- const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
804
- ;// CONCATENATED MODULE: external "../directives"
805
- var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
806
- var directives_y = x => () => x
807
- const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
808
- ;// CONCATENATED MODULE: external "../icon"
809
- var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
810
- var icon_y = x => () => x
811
- const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["ExclamationCircleShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ExclamationCircleShape, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search });
812
812
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
813
813
  function _arrayWithHoles(arr) {
814
814
  if (Array.isArray(arr)) return arr;
@@ -1014,27 +1014,27 @@ function _createClass(Constructor, protoProps, staticProps) {
1014
1014
  var ValueBehavior;
1015
1015
  (function (ValueBehavior) {
1016
1016
  ValueBehavior["ALL"] = "all";
1017
- ValueBehavior["NEEDKEY"] = "need-key";
1017
+ ValueBehavior["NEED_KEY"] = "need-key";
1018
1018
  })(ValueBehavior || (ValueBehavior = {}));
1019
1019
  var DeleteBehavior;
1020
1020
  (function (DeleteBehavior) {
1021
1021
  DeleteBehavior["CHAR"] = "delete-char";
1022
1022
  DeleteBehavior["VALUE"] = "delete-value";
1023
1023
  })(DeleteBehavior || (DeleteBehavior = {}));
1024
- var SEARCH_SLECT_PROVIDER_KEY = Symbol('SEARCH_SLECT_PROVIDER_KEY');
1024
+ var SEARCH_SELECT_PROVIDER_KEY = Symbol('SEARCH_SELECT_PROVIDER_KEY');
1025
1025
  var useSearchSelectProvider = function useSearchSelectProvider(data) {
1026
- (0,external_vue_namespaceObject.provide)(SEARCH_SLECT_PROVIDER_KEY, data);
1026
+ (0,external_vue_namespaceObject.provide)(SEARCH_SELECT_PROVIDER_KEY, data);
1027
1027
  };
1028
1028
  var useSearchSelectInject = function useSearchSelectInject() {
1029
- return (0,external_vue_namespaceObject.inject)(SEARCH_SLECT_PROVIDER_KEY);
1029
+ return (0,external_vue_namespaceObject.inject)(SEARCH_SELECT_PROVIDER_KEY);
1030
1030
  };
1031
1031
  var SearchInputMode;
1032
1032
  (function (SearchInputMode) {
1033
1033
  SearchInputMode["DEFAULT"] = "default";
1034
1034
  SearchInputMode["EDIT"] = "edit";
1035
1035
  })(SearchInputMode || (SearchInputMode = {}));
1036
- var ValueSplitRegex = /(\||,|、|\/|\r\n|\n)/gm;
1037
- var ValueSplitTestRegex = /^(\||,|、|\/|\r\n|\n)$/;
1036
+ var ValueSplitRegex = /(\||,|、|\r\n|\n)/gm;
1037
+ var ValueSplitTestRegex = /^(\||,|、|\r\n|\n)$/;
1038
1038
  var SearchLogical;
1039
1039
  (function (SearchLogical) {
1040
1040
  SearchLogical["AND"] = "&";
@@ -1045,7 +1045,7 @@ var SelectedItem = /*#__PURE__*/function () {
1045
1045
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
1046
1046
  _classCallCheck(this, SelectedItem);
1047
1047
  _defineProperty(this, "values", []);
1048
- _defineProperty(this, "nameRenderkey", (0,shared_namespaceObject.random)(4));
1048
+ _defineProperty(this, "nameRenderKey", (0,shared_namespaceObject.random)(4));
1049
1049
  this.searchItem = searchItem;
1050
1050
  this.type = type;
1051
1051
  this.id = searchItem.id;
@@ -1121,7 +1121,7 @@ var SelectedItem = /*#__PURE__*/function () {
1121
1121
  }, {
1122
1122
  key: "addValue",
1123
1123
  value: function addValue(item) {
1124
- this.nameRenderkey = (0,shared_namespaceObject.random)(4);
1124
+ this.nameRenderKey = (0,shared_namespaceObject.random)(4);
1125
1125
  if (this.multiple) {
1126
1126
  var index = this.values.findIndex(function (val) {
1127
1127
  return val.id === item.id;
@@ -1409,9 +1409,9 @@ var SelectedItem = /*#__PURE__*/function () {
1409
1409
  "class": "menu-content"
1410
1410
  }, [(_this$list = this.list) === null || _this$list === void 0 ? void 0 : _this$list.map(function (item) {
1411
1411
  return (0,external_vue_namespaceObject.createVNode)("li", {
1412
- "class": "menu-item ".concat(item.disabled ? 'is-disabled' : '', " ").concat(_this.hoverId === item.id && !item.disabled ? 'is-hover' : ''),
1413
- "key": item.id,
1414
1412
  "id": item.id,
1413
+ "key": item.id,
1414
+ "class": "menu-item ".concat(item.disabled ? 'is-disabled' : '', " ").concat(_this.hoverId === item.id && !item.disabled ? 'is-hover' : ''),
1415
1415
  "tabindex": "-1",
1416
1416
  "onClick": function onClick() {
1417
1417
  return !item.disabled && _this.handleClick(item);
@@ -1421,8 +1421,8 @@ var SelectedItem = /*#__PURE__*/function () {
1421
1421
  return _this.handleSelectedChange(e, item);
1422
1422
  }
1423
1423
  }, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
1424
- "modelValue": _this.selected.includes(item.id),
1425
- "class": "is-selected"
1424
+ "class": "is-selected",
1425
+ "modelValue": _this.selected.includes(item.id)
1426
1426
  }, null)]), _this.getSearchNode(item)])]);
1427
1427
  })]);
1428
1428
  var getListMenu = function getListMenu() {
@@ -1434,17 +1434,17 @@ var SelectedItem = /*#__PURE__*/function () {
1434
1434
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
1435
1435
  "class": "menu-condition-title"
1436
1436
  }, [_this.t.logical]), (0,external_vue_namespaceObject.createVNode)(radio_namespaceObject["default"], {
1437
+ "label": "|",
1437
1438
  "modelValue": _this.logical,
1438
- "onChange": _this.handleLogicalChange,
1439
- "label": "|"
1439
+ "onChange": _this.handleLogicalChange
1440
1440
  }, {
1441
1441
  "default": function _default() {
1442
1442
  return [_this.t.or, (0,external_vue_namespaceObject.createTextVNode)(" |")];
1443
1443
  }
1444
1444
  }), (0,external_vue_namespaceObject.createVNode)(radio_namespaceObject["default"], {
1445
+ "label": "&",
1445
1446
  "modelValue": _this.logical,
1446
- "onChange": _this.handleLogicalChange,
1447
- "label": "&"
1447
+ "onChange": _this.handleLogicalChange
1448
1448
  }, {
1449
1449
  "default": function _default() {
1450
1450
  return [_this.t.and, (0,external_vue_namespaceObject.createTextVNode)(" &")];
@@ -1527,7 +1527,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1527
1527
  return [];
1528
1528
  }
1529
1529
  },
1530
- defautUsingItem: Object,
1530
+ defaultUsingItem: Object,
1531
1531
  mode: {
1532
1532
  type: String,
1533
1533
  "default": SearchInputMode.DEFAULT
@@ -1550,7 +1550,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1550
1550
  var showNoSelectValueError = (0,external_vue_namespaceObject.ref)(false);
1551
1551
  var isFocus = (0,external_vue_namespaceObject.ref)(false);
1552
1552
  var showPopover = (0,external_vue_namespaceObject.ref)(false);
1553
- var usingItem = (0,external_vue_namespaceObject.ref)(props.defautUsingItem);
1553
+ var usingItem = (0,external_vue_namespaceObject.ref)(props.defaultUsingItem);
1554
1554
  var menuHoverId = (0,external_vue_namespaceObject.ref)('');
1555
1555
  var loading = (0,external_vue_namespaceObject.ref)(false);
1556
1556
  var debounceSetMenuList = (0,shared_namespaceObject.debounce)(300, setMenuList);
@@ -1562,7 +1562,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1562
1562
  editKey = _useSearchSelectInjec.editKey,
1563
1563
  onValidate = _useSearchSelectInjec.onValidate,
1564
1564
  searchData = _useSearchSelectInjec.searchData;
1565
- var valueLoagic = (0,external_vue_namespaceObject.computed)(function () {
1565
+ var valueLogic = (0,external_vue_namespaceObject.computed)(function () {
1566
1566
  var _usingItem$value;
1567
1567
  return ((_usingItem$value = usingItem.value) === null || _usingItem$value === void 0 ? void 0 : _usingItem$value.logical) || SearchLogical.OR;
1568
1568
  });
@@ -1588,7 +1588,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1588
1588
  if (shouldBindEvent) {
1589
1589
  if (!isBindEvent) {
1590
1590
  var _menuList$value$find;
1591
- menuHoverId.value = props.valueBehavior === ValueBehavior.NEEDKEY ? ((_menuList$value$find = menuList.value.find(function (item) {
1591
+ menuHoverId.value = props.valueBehavior === ValueBehavior.NEED_KEY ? ((_menuList$value$find = menuList.value.find(function (item) {
1592
1592
  return !item.disabled;
1593
1593
  })) === null || _menuList$value$find === void 0 ? void 0 : _menuList$value$find.id) || '' : '';
1594
1594
  isBindEvent = true;
@@ -1597,7 +1597,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1597
1597
  } else {
1598
1598
  document.removeEventListener('keydown', handleDocumentKeydown);
1599
1599
  isBindEvent = false;
1600
- if (props.valueBehavior !== ValueBehavior.NEEDKEY) {
1600
+ if (props.valueBehavior !== ValueBehavior.NEED_KEY) {
1601
1601
  menuHoverId.value = '';
1602
1602
  }
1603
1603
  }
@@ -1678,7 +1678,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1678
1678
  var selection = window.getSelection();
1679
1679
  range.selectNodeContents(nodeList.at(-1));
1680
1680
  selection === null || selection === void 0 || selection.removeAllRanges();
1681
- selection.addRange(range); // 注意这里会触发focu事件
1681
+ selection.addRange(range); // 注意这里会触发focus事件
1682
1682
  setInputFocus(true, false);
1683
1683
  return;
1684
1684
  }
@@ -1689,7 +1689,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1689
1689
  event.preventDefault();
1690
1690
  var formattedText = event.clipboardData.getData('text').trim();
1691
1691
  if (!usingItem.value) {
1692
- var formateItem = str2SeletedItem(formattedText);
1692
+ var formateItem = str2SelectedItem(formattedText);
1693
1693
  if (formateItem) {
1694
1694
  usingItem.value = formateItem;
1695
1695
  setInputFocus(true, true);
@@ -1697,7 +1697,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1697
1697
  }
1698
1698
  keyword.value = formattedText.split(ValueSplitRegex).filter(function (v) {
1699
1699
  return v.trim() && !ValueSplitTestRegex.test(v);
1700
- }).join(" ".concat(valueLoagic.value, " "));
1700
+ }).join(" ".concat(valueLogic.value, " "));
1701
1701
  inputRef.value.innerText = keyword.value;
1702
1702
  setInputFocus();
1703
1703
  debounceSetMenuList();
@@ -1720,7 +1720,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1720
1720
  switch (event.code) {
1721
1721
  case 'Enter':
1722
1722
  case 'NumpadEnter':
1723
- if (props.valueBehavior === ValueBehavior.NEEDKEY && menuList.value.some(function (item) {
1723
+ if (props.valueBehavior === ValueBehavior.NEED_KEY && menuList.value.some(function (item) {
1724
1724
  return item.id === menuHoverId.value;
1725
1725
  })) return;
1726
1726
  handleKeyEnter(event).then(function (v) {
@@ -1755,7 +1755,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1755
1755
  _context.next = 9;
1756
1756
  break;
1757
1757
  }
1758
- if (!(!keyword.value || props.valueBehavior === ValueBehavior.NEEDKEY)) {
1758
+ if (!(!keyword.value || props.valueBehavior === ValueBehavior.NEED_KEY)) {
1759
1759
  _context.next = 6;
1760
1760
  break;
1761
1761
  }
@@ -1810,6 +1810,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1810
1810
  // 删除已选择项
1811
1811
  if (!usingItem.value && !keyword.value) {
1812
1812
  emit('delete');
1813
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
1813
1814
  setTimeout(setMenuList, 16);
1814
1815
  return;
1815
1816
  }
@@ -1857,7 +1858,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1857
1858
  id: (_item$realId = item.realId) !== null && _item$realId !== void 0 ? _item$realId : item.id
1858
1859
  }), type);
1859
1860
  selectedItem.addValues(item.value.name, false);
1860
- if (!(props.valueBehavior === ValueBehavior.NEEDKEY && menuHoverId.value)) {
1861
+ if (!(props.valueBehavior === ValueBehavior.NEED_KEY && menuHoverId.value)) {
1861
1862
  _context2.next = 8;
1862
1863
  break;
1863
1864
  }
@@ -1900,7 +1901,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1900
1901
  setSelectedItem();
1901
1902
  }
1902
1903
  showPopover.value = isCondition || !!usingItem.value.children.length;
1903
- setInputFocus(props.valueBehavior === ValueBehavior.NEEDKEY && !!menuHoverId.value);
1904
+ setInputFocus(props.valueBehavior === ValueBehavior.NEED_KEY && !!menuHoverId.value);
1904
1905
  return _context2.abrupt("return");
1905
1906
  case 27:
1906
1907
  if (usingItem.value) {
@@ -1919,7 +1920,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1919
1920
  if (!usingItem.value.multiple) {
1920
1921
  setSelectedItem();
1921
1922
  }
1922
- if (props.valueBehavior === ValueBehavior.NEEDKEY && (_usingItem$value12 = usingItem.value) !== null && _usingItem$value12 !== void 0 && _usingItem$value12.multiple) {
1923
+ if (props.valueBehavior === ValueBehavior.NEED_KEY && (_usingItem$value12 = usingItem.value) !== null && _usingItem$value12 !== void 0 && _usingItem$value12.multiple) {
1923
1924
  setInputFocus();
1924
1925
  }
1925
1926
  case 34:
@@ -1930,7 +1931,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1930
1931
  }));
1931
1932
  return _handleSelectItem.apply(this, arguments);
1932
1933
  }
1933
- function handleSelectCondtionItem(item) {
1934
+ function handleSelectConditionItem(item) {
1934
1935
  handleSelectItem(item, 'condition');
1935
1936
  }
1936
1937
  function handleMenuFooterClick(item) {
@@ -2118,7 +2119,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2118
2119
  }
2119
2120
  case 10:
2120
2121
  menuList.value = list;
2121
- if (props.valueBehavior === ValueBehavior.NEEDKEY) {
2122
+ if (props.valueBehavior === ValueBehavior.NEED_KEY) {
2122
2123
  hoverItem = list.find(function (item) {
2123
2124
  return !item.disabled;
2124
2125
  });
@@ -2145,7 +2146,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2145
2146
  return regenerator_default().wrap(function _callee6$(_context6) {
2146
2147
  while (1) switch (_context6.prev = _context6.next) {
2147
2148
  case 0:
2148
- formatItem = str2SeletedItem(keyword.value);
2149
+ formatItem = str2SelectedItem(keyword.value);
2149
2150
  valueList = (formatItem === null || formatItem === void 0 ? void 0 : formatItem.values) || [{
2150
2151
  id: keyword.value,
2151
2152
  name: keyword.value
@@ -2183,7 +2184,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2183
2184
  case 0:
2184
2185
  valueList = [];
2185
2186
  if (usingItem.value.isSpecialType()) {
2186
- formatItem = str2SeletedItem(keyword.value);
2187
+ formatItem = str2SelectedItem(keyword.value);
2187
2188
  if (formatItem) {
2188
2189
  usingItem.value = formatItem;
2189
2190
  valueList = formatItem.values;
@@ -2229,9 +2230,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2229
2230
  selection.addRange(range);
2230
2231
  }
2231
2232
  function setInputFocus() {
2232
- var refleshMenuList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
2233
+ var refreshMenuList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
2233
2234
  var needCursorToEnd = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
2234
- if (refleshMenuList) {
2235
+ if (refreshMenuList) {
2236
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
2235
2237
  setTimeout(setMenuList, 16);
2236
2238
  }
2237
2239
  isFocus.value = true;
@@ -2258,7 +2260,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2258
2260
  return inputRef.value.innerText = '';
2259
2261
  });
2260
2262
  }
2261
- function str2SeletedItem(str) {
2263
+ function str2SelectedItem(str) {
2262
2264
  var _str$split = str.split(':'),
2263
2265
  _str$split2 = _slicedToArray(_str$split, 2),
2264
2266
  key = _str$split2[0],
@@ -2360,7 +2362,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2360
2362
  handleLogicalChange: handleLogicalChange,
2361
2363
  handleInputKeyup: handleInputKeyup,
2362
2364
  handleSelectItem: handleSelectItem,
2363
- handleSelectCondtionItem: handleSelectCondtionItem,
2365
+ handleSelectConditionItem: handleSelectConditionItem,
2364
2366
  handleMenuFooterClick: handleMenuFooterClick,
2365
2367
  resolveClassName: resolveClassName,
2366
2368
  inputFocusForWrapper: inputFocusForWrapper,
@@ -2397,32 +2399,32 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2397
2399
  "data-placeholder": !inputInnerHtml && !_this.keyword ? _this.placeholder : '',
2398
2400
  "data-tips": placeholder || '',
2399
2401
  "spellcheck": "false",
2400
- "onPaste": _this.handleInputPaste,
2401
2402
  "onFocus": _this.handleInputFocus,
2402
2403
  "onInput": _this.handleInputChange,
2403
- "onKeydown": _this.handleInputKeyup
2404
+ "onKeydown": _this.handleInputKeyup,
2405
+ "onPaste": _this.handleInputPaste
2404
2406
  }, [((_this$usingItem = _this.usingItem) === null || _this$usingItem === void 0 ? void 0 : _this$usingItem.name) && (!_this.usingItem.isSpecialType() ? (0,external_vue_namespaceObject.createVNode)("span", {
2407
+ "key": _this.usingItem.nameRenderKey,
2408
+ "style": {
2409
+ color: '#979BA5'
2410
+ },
2411
+ "contenteditable": false,
2405
2412
  "data-key": _this.usingItem.name,
2406
2413
  "data-type": _this.usingItem.type,
2407
- "key": _this.usingItem.nameRenderkey,
2408
2414
  "onMousedown": function onMousedown(e) {
2409
2415
  return e.preventDefault();
2410
- },
2411
- "contenteditable": false,
2412
- "style": {
2413
- color: '#979BA5'
2414
2416
  }
2415
2417
  }, [_this.usingItem.name, (0,external_vue_namespaceObject.createTextVNode)(":\xA0")]) : (0,external_vue_namespaceObject.createVNode)("span", {
2418
+ "key": _this.usingItem.nameRenderKey,
2416
2419
  "data-key": _this.usingItem.name,
2417
- "data-type": _this.usingItem.type,
2418
- "key": _this.usingItem.nameRenderkey
2420
+ "data-type": _this.usingItem.type
2419
2421
  }, [_this.usingItem.name])), (_this$usingItem2 = _this.usingItem) === null || _this$usingItem2 === void 0 || (_this$usingItem2 = _this$usingItem2.values) === null || _this$usingItem2 === void 0 ? void 0 : _this$usingItem2.map(function (item, index) {
2420
2422
  return (0,external_vue_namespaceObject.createVNode)("span", {
2421
2423
  "key": index,
2422
- "data-key": item.name,
2423
- "data-type": "value",
2424
2424
  "data-id": item.id,
2425
- "data-index": index
2425
+ "data-index": index,
2426
+ "data-key": item.name,
2427
+ "data-type": "value"
2426
2428
  }, [item.name, index < _this.usingItem.values.length - 1 ? " ".concat(_this.usingItem.logical, " ") : '']);
2427
2429
  })]), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), _this.handleClickOutside]]);
2428
2430
  };
@@ -2450,29 +2452,29 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2450
2452
  "ref": "popoverRef",
2451
2453
  "class": _this.resolveClassName('search-select-popover')
2452
2454
  }, [(0,external_vue_namespaceObject.createVNode)(menu, {
2453
- "list": _this.menuList,
2455
+ "conditions": showCondition ? _this.conditions : [],
2456
+ "hoverId": _this.menuHoverId,
2454
2457
  "keyword": _this.keyword,
2458
+ "list": _this.menuList,
2459
+ "logical": (_this$usingItem4 = _this.usingItem) === null || _this$usingItem4 === void 0 ? void 0 : _this$usingItem4.logical,
2455
2460
  "multiple": !!multiple,
2456
- "hoverId": _this.menuHoverId,
2457
2461
  "selected": (values === null || values === void 0 ? void 0 : values.map(function (item) {
2458
2462
  return item.id;
2459
2463
  })) || [],
2460
- "conditions": showCondition ? _this.conditions : [],
2461
- "logical": (_this$usingItem4 = _this.usingItem) === null || _this$usingItem4 === void 0 ? void 0 : _this$usingItem4.logical,
2462
2464
  "showLogical": (_this$usingItem5 = _this.usingItem) === null || _this$usingItem5 === void 0 ? void 0 : _this$usingItem5.showLogical,
2463
- "onUpdate:logical": _this.handleLogicalChange,
2465
+ "onFooterClick": _this.handleMenuFooterClick,
2466
+ "onSelectCondition": _this.handleSelectConditionItem,
2464
2467
  "onSelectItem": _this.handleSelectItem,
2465
- "onSelectCondition": _this.handleSelectCondtionItem,
2466
- "onFooterClick": _this.handleMenuFooterClick
2468
+ "onUpdate:logical": _this.handleLogicalChange
2467
2469
  }, null)]) : undefined;
2468
2470
  };
2469
2471
  return (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], {
2470
- "trigger": "manual",
2471
- "theme": "light",
2472
- "placement": "bottom-start",
2473
2472
  "arrow": false,
2474
2473
  "disableOutsideClick": true,
2475
- "isShow": showPopover
2474
+ "isShow": showPopover,
2475
+ "placement": "bottom-start",
2476
+ "theme": "light",
2477
+ "trigger": "manual"
2476
2478
  }, {
2477
2479
  "default": inputContent,
2478
2480
  content: popoverContent
@@ -2551,7 +2553,7 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2551
2553
  function handleDeleteSelected(index) {
2552
2554
  emit('delete', index);
2553
2555
  }
2554
- function handleEditSeleted(e, item, index) {
2556
+ function handleEditSelected(e, item, index) {
2555
2557
  e.preventDefault();
2556
2558
  e.stopPropagation();
2557
2559
  onEditClick(item, index);
@@ -2576,7 +2578,7 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2576
2578
  var _selectedInputRef$val;
2577
2579
  return !((_selectedInputRef$val = selectedInputRef.value) !== null && _selectedInputRef$val !== void 0 && _selectedInputRef$val.contains(target));
2578
2580
  }
2579
- function copySeletedItem(item) {
2581
+ function copySelectedItem(item) {
2580
2582
  var newItem = new SelectedItem(item.searchItem, item.type);
2581
2583
  newItem.values = item.values.slice();
2582
2584
  newItem.logical = item.logical || SearchLogical.OR;
@@ -2586,9 +2588,9 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2586
2588
  inputRef: inputRef,
2587
2589
  selectedInputRef: selectedInputRef,
2588
2590
  editKey: editKey,
2589
- copySeletedItem: copySeletedItem,
2591
+ copySelectedItem: copySelectedItem,
2590
2592
  handleDeleteSelected: handleDeleteSelected,
2591
- handleEditSeleted: handleEditSeleted,
2593
+ handleEditSelected: handleEditSelected,
2592
2594
  handleInputOutside: handleInputOutside,
2593
2595
  handleAddSelected: handleAddSelected,
2594
2596
  handleInputFocus: handleInputFocus
@@ -2598,19 +2600,19 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2598
2600
  var _this = this;
2599
2601
  var contentComponent = function contentComponent(item, index) {
2600
2602
  return _this.editKey === "".concat(item.id, "_").concat(index) ? (0,external_vue_namespaceObject.createVNode)("div", {
2601
- "class": "selected-input",
2602
2603
  "key": _this.editKey.toString(),
2603
- "ref": "selectedInputRef"
2604
+ "ref": "selectedInputRef",
2605
+ "class": "selected-input"
2604
2606
  }, [(0,external_vue_namespaceObject.createVNode)(input, {
2605
- "ref": "inputRef",
2606
2607
  "key": _this.editKey.toString(),
2607
- "mode": SearchInputMode.EDIT,
2608
- "data": _this.data,
2609
- "showCondition": false,
2610
- "conditions": _this.conditions,
2611
- "defautUsingItem": _this.copySeletedItem(item),
2608
+ "ref": "inputRef",
2612
2609
  "clickOutside": _this.handleInputOutside,
2610
+ "conditions": _this.conditions,
2611
+ "data": _this.data,
2612
+ "defaultUsingItem": _this.copySelectedItem(item),
2613
2613
  "getMenuList": _this.getMenuList,
2614
+ "mode": SearchInputMode.EDIT,
2615
+ "showCondition": false,
2614
2616
  "validateValues": _this.validateValues,
2615
2617
  "valueBehavior": _this.valueBehavior,
2616
2618
  "onAdd": function onAdd(v) {
@@ -2618,12 +2620,12 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2618
2620
  },
2619
2621
  "onFocus": _this.handleInputFocus
2620
2622
  }, selected_objectSpread({}, _this.$slots))]) : (0,external_vue_namespaceObject.createVNode)("li", {
2621
- "class": "search-container-selected ".concat(!(_this.overflowIndex >= 0 ? index < _this.overflowIndex : index >= 0) ? 'hidden-selected' : ''),
2622
- "key": "".concat(item.id, "_").concat(index)
2623
+ "key": "".concat(item.id, "_").concat(index),
2624
+ "class": "search-container-selected ".concat(!(_this.overflowIndex >= 0 ? index < _this.overflowIndex : index >= 0) ? 'hidden-selected' : '')
2623
2625
  }, [(0,external_vue_namespaceObject.createVNode)("span", {
2624
2626
  "class": "selected-name",
2625
2627
  "onClick": function onClick(e) {
2626
- return _this.handleEditSeleted(e, item, index);
2628
+ return _this.handleEditSelected(e, item, index);
2627
2629
  }
2628
2630
  }, [item.inputInnerText]), (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
2629
2631
  "class": "selected-clear",
@@ -2679,7 +2681,8 @@ function search_select_objectSpread(e) { for (var r = 1; r < arguments.length; r
2679
2681
 
2680
2682
 
2681
2683
  var INPUT_PADDING_WIDTH = 40;
2682
- var SELETED_MARGING_RIGHT = 6;
2684
+ var SELECTED_MARGIN_RIGHT = 6;
2685
+ var INPUT_MIN_HEIGHT = 26;
2683
2686
  var SearchSelectProps = {
2684
2687
  data: {
2685
2688
  type: Array,
@@ -2693,18 +2696,10 @@ var SearchSelectProps = {
2693
2696
  return [];
2694
2697
  }
2695
2698
  },
2696
- shrink: {
2697
- type: Boolean,
2698
- "default": true
2699
- },
2700
2699
  maxHeight: {
2701
2700
  type: Number,
2702
2701
  "default": 120
2703
2702
  },
2704
- minHeight: {
2705
- type: Number,
2706
- "default": 26
2707
- },
2708
2703
  conditions: {
2709
2704
  type: Array,
2710
2705
  "default": function _default() {
@@ -2726,7 +2721,7 @@ var SearchSelectProps = {
2726
2721
  type: String,
2727
2722
  "default": ValueBehavior.ALL,
2728
2723
  validator: function validator(v) {
2729
- return [ValueBehavior.ALL, ValueBehavior.NEEDKEY].includes(v);
2724
+ return [ValueBehavior.ALL, ValueBehavior.NEED_KEY].includes(v);
2730
2725
  }
2731
2726
  }
2732
2727
  // deleteBehavior: {
@@ -2800,13 +2795,13 @@ var SearchSelectProps = {
2800
2795
  }
2801
2796
  var list = [];
2802
2797
  v.forEach(function (item) {
2803
- var seleted = selectedList.value.find(function (set) {
2798
+ var selected = selectedList.value.find(function (set) {
2804
2799
  return set.id === item.id && set.name === item.name;
2805
2800
  });
2806
- if ((seleted === null || seleted === void 0 ? void 0 : seleted.toValueKey()) === JSON.stringify(item)) {
2807
- seleted.values = item.values || [];
2808
- seleted.logical = item.logical || SearchLogical.OR;
2809
- list.push(seleted);
2801
+ if ((selected === null || selected === void 0 ? void 0 : selected.toValueKey()) === JSON.stringify(item)) {
2802
+ selected.values = item.values || [];
2803
+ selected.logical = item.logical || SearchLogical.OR;
2804
+ list.push(selected);
2810
2805
  } else {
2811
2806
  var _item$values;
2812
2807
  var searchItem = props.data.find(function (set) {
@@ -2883,18 +2878,18 @@ var SearchSelectProps = {
2883
2878
  return;
2884
2879
  }
2885
2880
  var inputEl = wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container')));
2886
- var maxWidth = wrapRef.value.querySelector('.search-container').clientWidth - SELETED_MARGING_RIGHT - 2;
2881
+ var maxWidth = wrapRef.value.querySelector('.search-container').clientWidth - SELECTED_MARGIN_RIGHT - 2;
2887
2882
  var tagList = inputEl.querySelectorAll('.search-container-selected:not(.overflow-selected)');
2888
2883
  var width = 0;
2889
2884
  var index = 0;
2890
2885
  var i = 0;
2891
2886
  while (index === 0 && width <= maxWidth - INPUT_PADDING_WIDTH && i <= tagList.length - 1) {
2892
2887
  var el = tagList[i];
2893
- if (el.clientHeight > props.minHeight) {
2888
+ if (el.clientHeight > INPUT_MIN_HEIGHT) {
2894
2889
  overflowIndex.value = i;
2895
2890
  return;
2896
2891
  }
2897
- width += el ? el.clientWidth + SELETED_MARGING_RIGHT : 0;
2892
+ width += el ? el.clientWidth + SELECTED_MARGIN_RIGHT : 0;
2898
2893
  if (width >= maxWidth - INPUT_PADDING_WIDTH) {
2899
2894
  index = i;
2900
2895
  }
@@ -2980,7 +2975,7 @@ var SearchSelectProps = {
2980
2975
  var _this = this,
2981
2976
  _this$$slots$prepend,
2982
2977
  _this$$slots2;
2983
- var maxHeight = "".concat(!this.shrink || this.isFocus ? this.maxHeight : this.minHeight, "px");
2978
+ var maxHeight = "".concat(this.isFocus ? this.maxHeight : INPUT_MIN_HEIGHT, "px");
2984
2979
  var showCondition = !!this.selectedList.length && this.selectedList.slice(-1)[0].type !== 'condition';
2985
2980
  var menuSlots = Object.assign({}, this.$slots.menu ? {
2986
2981
  menu: function menu(data) {
@@ -2990,24 +2985,24 @@ var SearchSelectProps = {
2990
2985
  } : {});
2991
2986
  // render
2992
2987
  return (0,external_vue_namespaceObject.createVNode)("div", {
2993
- "class": this.resolveClassName('search-select'),
2994
- "ref": "wrapRef"
2988
+ "ref": "wrapRef",
2989
+ "class": this.resolveClassName('search-select')
2995
2990
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
2996
2991
  "class": _defineProperty(_defineProperty({}, this.resolveClassName('search-select-container'), true), 'is-focus', this.isFocus),
2997
2992
  "onClick": this.handleWrapClick
2998
2993
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
2999
2994
  "class": "search-prefix"
3000
2995
  }, [(_this$$slots$prepend = (_this$$slots2 = this.$slots).prepend) === null || _this$$slots$prepend === void 0 ? void 0 : _this$$slots$prepend.call(_this$$slots2)]), (0,external_vue_namespaceObject.createVNode)("div", {
3001
- "class": "search-container",
3002
2996
  "style": {
3003
2997
  maxHeight: maxHeight
3004
- }
2998
+ },
2999
+ "class": "search-container"
3005
3000
  }, [(0,external_vue_namespaceObject.createVNode)(selected, {
3006
- "data": this.copyData,
3007
3001
  "conditions": this.localConditions,
3008
- "selectedList": this.selectedList,
3009
- "overflowIndex": this.overflowIndex,
3002
+ "data": this.copyData,
3010
3003
  "getMenuList": this.getMenuList,
3004
+ "overflowIndex": this.overflowIndex,
3005
+ "selectedList": this.selectedList,
3011
3006
  "validateValues": this.validateValues,
3012
3007
  "valueBehavior": this.valueBehavior,
3013
3008
  "onDelete": this.handleDeleteSelected,
@@ -3016,13 +3011,13 @@ var SearchSelectProps = {
3016
3011
  "class": "search-container-input"
3017
3012
  }, [(0,external_vue_namespaceObject.createVNode)(input, {
3018
3013
  "ref": "inputRef",
3019
- "data": this.copyData,
3020
- "showInputBefore": !this.selectedList.length,
3021
- "showCondition": showCondition,
3022
- "conditions": this.localConditions,
3023
- "placeholder": this.placeholder || this.t.pleaseSelect,
3024
3014
  "clickOutside": this.handleInputOutside,
3015
+ "conditions": this.localConditions,
3016
+ "data": this.copyData,
3025
3017
  "getMenuList": this.getMenuList,
3018
+ "placeholder": this.placeholder || this.t.pleaseSelect,
3019
+ "showCondition": showCondition,
3020
+ "showInputBefore": !this.selectedList.length,
3026
3021
  "validateValues": this.validateValues,
3027
3022
  "valueBehavior": this.valueBehavior,
3028
3023
  "onAdd": this.handleAddSelected,
@@ -3035,8 +3030,8 @@ var SearchSelectProps = {
3035
3030
  "class": "search-clear",
3036
3031
  "onClick": this.handleClearAll
3037
3032
  }, null), this.$slots.append ? this.$slots.append() : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, {
3038
- "onClick": this.handleClickSearch,
3039
- "class": "search-nextfix-icon ".concat(this.isFocus ? 'is-focus' : '')
3033
+ "class": "search-nextfix-icon ".concat(this.isFocus ? 'is-focus' : ''),
3034
+ "onClick": this.handleClickSearch
3040
3035
  }, null)])]), !!this.validateStr.length && (0,external_vue_namespaceObject.createVNode)("div", {
3041
3036
  "class": this.resolveClassName('search-select-tips')
3042
3037
  }, [this.$slots.validate ? this.$slots.validate() : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.ExclamationCircleShape, {
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
13
13
  type: PropType<ICommonItem[]>;
14
14
  default: () => any[];
15
15
  };
16
- defautUsingItem: PropType<SelectedItem>;
16
+ defaultUsingItem: PropType<SelectedItem>;
17
17
  mode: {
18
18
  type: PropType<SearchInputMode>;
19
19
  default: SearchInputMode;
@@ -59,7 +59,7 @@ declare const _default: import("vue").DefineComponent<{
59
59
  handleLogicalChange: (logical: SearchLogical) => void;
60
60
  handleInputKeyup: (event: KeyboardEvent) => void;
61
61
  handleSelectItem: (item: ICommonItem, type?: SearchItemType) => Promise<void>;
62
- handleSelectCondtionItem: (item: ICommonItem) => void;
62
+ handleSelectConditionItem: (item: ICommonItem) => void;
63
63
  handleMenuFooterClick: (item: IMenuFooterItem) => void;
64
64
  resolveClassName: (cls: string) => string;
65
65
  inputFocusForWrapper: () => void;
@@ -90,7 +90,7 @@ declare const _default: import("vue").DefineComponent<{
90
90
  type: PropType<ICommonItem[]>;
91
91
  default: () => any[];
92
92
  };
93
- defautUsingItem: PropType<SelectedItem>;
93
+ defaultUsingItem: PropType<SelectedItem>;
94
94
  mode: {
95
95
  type: PropType<SearchInputMode>;
96
96
  default: SearchInputMode;