bkui-vue 2.0.1-beta.70 → 2.0.1-beta.70.search.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (451) hide show
  1. package/README.md +0 -15
  2. package/dist/index.cjs.js +167 -167
  3. package/dist/index.esm.js +30199 -31633
  4. package/dist/index.umd.js +167 -167
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -1
  7. package/lib/affix/affix.css +0 -130
  8. package/lib/affix/affix.variable.css +1 -262
  9. package/lib/affix/index.js +7 -7
  10. package/lib/alert/alert.css +3 -133
  11. package/lib/alert/alert.d.ts +12 -5
  12. package/lib/alert/alert.variable.css +1 -262
  13. package/lib/alert/index.d.ts +26 -11
  14. package/lib/alert/index.js +6 -6
  15. package/lib/backtop/backtop.css +3 -133
  16. package/lib/backtop/backtop.d.ts +1 -1
  17. package/lib/backtop/backtop.variable.css +4 -395
  18. package/lib/backtop/index.d.ts +3 -3
  19. package/lib/backtop/index.js +6 -6
  20. package/lib/badge/badge.css +26 -156
  21. package/lib/badge/badge.variable.css +1 -262
  22. package/lib/badge/index.js +1 -1
  23. package/lib/breadcrumb/breadcrumb.css +5 -135
  24. package/lib/breadcrumb/breadcrumb.variable.css +6 -397
  25. package/lib/button/button.css +143 -273
  26. package/lib/button/button.d.ts +7 -7
  27. package/lib/button/button.variable.css +1 -262
  28. package/lib/button/index.d.ts +8 -8
  29. package/lib/button/index.js +7 -6
  30. package/lib/card/card.css +4 -134
  31. package/lib/card/card.variable.css +5 -396
  32. package/lib/cascader/cascader-panel.d.ts +1 -1
  33. package/lib/cascader/cascader.css +26 -156
  34. package/lib/cascader/cascader.d.ts +1 -1
  35. package/lib/cascader/cascader.less +4 -4
  36. package/lib/cascader/cascader.variable.css +27 -418
  37. package/lib/cascader/index.js +42 -43
  38. package/lib/cascader/interface.d.ts +1 -1
  39. package/lib/checkbox/checkbox-group.d.ts +16 -0
  40. package/lib/checkbox/checkbox.css +9 -147
  41. package/lib/checkbox/checkbox.d.ts +7 -39
  42. package/lib/checkbox/checkbox.less +0 -12
  43. package/lib/checkbox/checkbox.variable.css +1 -270
  44. package/lib/checkbox/index.d.ts +22 -57
  45. package/lib/checkbox/index.js +8 -21
  46. package/lib/checkbox/type.d.ts +1 -1
  47. package/lib/code-diff/code-diff.css +0 -130
  48. package/lib/code-diff/code-diff.variable.css +1 -262
  49. package/lib/code-diff/index.js +8 -8
  50. package/lib/collapse/collapse.css +1 -142
  51. package/lib/collapse/collapse.d.ts +0 -11
  52. package/lib/collapse/collapse.less +1 -15
  53. package/lib/collapse/collapse.variable.css +1 -273
  54. package/lib/collapse/index.d.ts +0 -23
  55. package/lib/collapse/index.js +3 -11
  56. package/lib/collapse/props.d.ts +0 -8
  57. package/lib/collapse/utils.d.ts +2 -2
  58. package/lib/collapse-transition/collapse-transition.css +0 -130
  59. package/lib/collapse-transition/collapse-transition.variable.css +1 -262
  60. package/lib/color-picker/color-picker.css +3 -133
  61. package/lib/color-picker/color-picker.d.ts +0 -16
  62. package/lib/color-picker/color-picker.less +3 -3
  63. package/lib/color-picker/color-picker.variable.css +4 -265
  64. package/lib/color-picker/index.d.ts +0 -23
  65. package/lib/color-picker/index.js +46 -53
  66. package/lib/components.d.ts +31 -32
  67. package/lib/components.js +30 -31
  68. package/lib/config-provider/config-provider.css +0 -130
  69. package/lib/config-provider/config-provider.variable.css +1 -262
  70. package/lib/config-provider/index.d.ts +1 -1
  71. package/lib/container/container.css +0 -130
  72. package/lib/container/container.variable.css +1 -392
  73. package/lib/container/index.js +7 -6
  74. package/lib/date-picker/base/date-table.d.ts +1 -1
  75. package/lib/date-picker/base/month-table.d.ts +1 -1
  76. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  77. package/lib/date-picker/base/year-table.d.ts +3 -3
  78. package/lib/date-picker/date-picker.css +17 -147
  79. package/lib/date-picker/date-picker.d.ts +10 -0
  80. package/lib/date-picker/date-picker.variable.css +1 -262
  81. package/lib/date-picker/index.d.ts +22 -0
  82. package/lib/date-picker/index.js +234 -346
  83. package/lib/date-picker/interface.d.ts +9 -9
  84. package/lib/date-picker/panel/date-range.d.ts +68 -6
  85. package/lib/date-picker/panel/date.d.ts +1 -1
  86. package/lib/date-picker/panel/time-range.d.ts +10 -1
  87. package/lib/date-picker/panel/time.d.ts +11 -2
  88. package/lib/date-picker/props.d.ts +5 -1
  89. package/lib/date-picker/time-picker.d.ts +9 -0
  90. package/lib/date-picker/utils.d.ts +1 -5
  91. package/lib/dialog/dialog.css +88 -269
  92. package/lib/dialog/dialog.d.ts +152 -74
  93. package/lib/dialog/dialog.less +76 -9
  94. package/lib/dialog/dialog.variable.css +89 -531
  95. package/lib/dialog/index.d.ts +352 -171
  96. package/lib/dialog/index.js +222 -200
  97. package/lib/dialog/props.d.ts +55 -25
  98. package/lib/directives/index.d.ts +3 -3
  99. package/lib/directives/index.js +172 -178
  100. package/lib/directives/tooltips.d.ts +1 -1
  101. package/lib/dist.index.js +4 -2
  102. package/lib/divider/divider.css +3 -133
  103. package/lib/divider/divider.d.ts +5 -5
  104. package/lib/divider/divider.variable.css +1 -262
  105. package/lib/divider/index.d.ts +11 -11
  106. package/lib/divider/index.js +2 -2
  107. package/lib/divider/props.d.ts +2 -2
  108. package/lib/dropdown/dropdown-item.d.ts +1 -1
  109. package/lib/dropdown/dropdown-menu.d.ts +1 -1
  110. package/lib/dropdown/dropdown.css +0 -130
  111. package/lib/dropdown/dropdown.d.ts +5 -5
  112. package/lib/dropdown/dropdown.variable.css +1 -392
  113. package/lib/dropdown/index.d.ts +13 -13
  114. package/lib/dropdown/index.js +7 -7
  115. package/lib/exception/exception.css +0 -130
  116. package/lib/exception/exception.d.ts +9 -9
  117. package/lib/exception/exception.variable.css +1 -262
  118. package/lib/exception/index.d.ts +11 -11
  119. package/lib/exception/index.js +10 -10
  120. package/lib/exception/typings/index.d.ts +1 -1
  121. package/lib/fixed-navbar/fixed-navbar.css +4 -134
  122. package/lib/fixed-navbar/fixed-navbar.variable.css +1 -262
  123. package/lib/fixed-navbar/index.js +2 -2
  124. package/lib/form/form-item.d.ts +18 -6
  125. package/lib/form/form.css +0 -130
  126. package/lib/form/form.d.ts +2 -2
  127. package/lib/form/form.variable.css +1 -262
  128. package/lib/form/index.d.ts +13 -6
  129. package/lib/form/index.js +21 -22
  130. package/lib/form/type.d.ts +2 -2
  131. package/lib/icon/index.d.ts +11 -11
  132. package/lib/icon/index.js +11 -11
  133. package/lib/image/image-viewer.css +0 -130
  134. package/lib/image/image-viewer.d.ts +1 -1
  135. package/lib/image/image-viewer.variable.css +1 -262
  136. package/lib/image/image.css +0 -130
  137. package/lib/image/image.variable.css +1 -392
  138. package/lib/image/index.js +21 -20
  139. package/lib/index.d.ts +3 -9
  140. package/lib/index.js +29 -5
  141. package/lib/info-box/index.d.ts +2 -2
  142. package/lib/info-box/index.js +173 -326
  143. package/lib/info-box/info-box.css +7 -193
  144. package/lib/info-box/info-box.d.ts +23 -25
  145. package/lib/info-box/info-box.less +14 -76
  146. package/lib/info-box/info-box.variable.css +8 -325
  147. package/lib/input/index.d.ts +15 -15
  148. package/lib/input/index.js +517 -65
  149. package/lib/input/input.css +73 -225
  150. package/lib/input/input.d.ts +15 -15
  151. package/lib/input/input.less +1 -30
  152. package/lib/input/input.variable.css +74 -487
  153. package/lib/link/index.d.ts +11 -11
  154. package/lib/link/index.js +3 -3
  155. package/lib/link/link.css +16 -146
  156. package/lib/link/link.d.ts +5 -5
  157. package/lib/link/link.variable.css +1 -262
  158. package/lib/loading/index.d.ts +4 -4
  159. package/lib/loading/index.js +6 -6
  160. package/lib/loading/loading.css +16 -146
  161. package/lib/loading/loading.d.ts +6 -6
  162. package/lib/loading/loading.variable.css +17 -408
  163. package/lib/locale/index.d.ts +1 -1
  164. package/lib/menu/index.js +1 -0
  165. package/lib/menu/menu.css +18 -148
  166. package/lib/menu/menu.variable.css +19 -410
  167. package/lib/menu/submenu.css +0 -130
  168. package/lib/menu/submenu.variable.css +1 -262
  169. package/lib/menu/utils.d.ts +3 -3
  170. package/lib/message/index.js +18 -18
  171. package/lib/message/message.css +22 -153
  172. package/lib/message/message.less +2 -3
  173. package/lib/message/message.variable.css +2 -264
  174. package/lib/message/messageConstructor.d.ts +11 -11
  175. package/lib/modal/hooks.d.ts +1 -1
  176. package/lib/modal/index.d.ts +343 -68
  177. package/lib/modal/index.js +696 -265
  178. package/lib/modal/modal.css +32 -261
  179. package/lib/modal/modal.d.ts +131 -26
  180. package/lib/modal/modal.less +29 -83
  181. package/lib/modal/modal.variable.css +33 -523
  182. package/lib/modal/props.mixin.d.ts +51 -10
  183. package/lib/navigation/index.js +20 -20
  184. package/lib/navigation/navigation.css +2 -132
  185. package/lib/navigation/navigation.d.ts +1 -1
  186. package/lib/navigation/navigation.variable.css +1 -262
  187. package/lib/notify/index.js +4 -4
  188. package/lib/notify/notify.css +7 -137
  189. package/lib/notify/notify.variable.css +1 -262
  190. package/lib/overflow-title/components/overflow-title.d.ts +16 -9
  191. package/lib/overflow-title/index.d.ts +34 -19
  192. package/lib/overflow-title/index.js +64 -107
  193. package/lib/overflow-title/props.d.ts +21 -18
  194. package/lib/pagination/index.d.ts +19 -0
  195. package/lib/pagination/index.js +23 -61
  196. package/lib/pagination/pagination.css +9 -139
  197. package/lib/pagination/pagination.d.ts +13 -0
  198. package/lib/pagination/pagination.less +13 -14
  199. package/lib/pagination/pagination.variable.css +9 -270
  200. package/lib/pagination/type.d.ts +1 -1
  201. package/lib/pagination/use-limit.d.ts +1 -1
  202. package/lib/pagination/use-total.d.ts +1 -1
  203. package/lib/plugin-popover/index.js +21 -20
  204. package/lib/pop-confirm/index.d.ts +43 -11
  205. package/lib/pop-confirm/index.js +28 -27
  206. package/lib/pop-confirm/pop-confirm.css +1 -133
  207. package/lib/pop-confirm/pop-confirm.d.ts +19 -5
  208. package/lib/pop-confirm/pop-confirm.less +1 -3
  209. package/lib/pop-confirm/pop-confirm.variable.css +2 -265
  210. package/lib/pop-confirm/props.d.ts +11 -5
  211. package/lib/popover/const.d.ts +3 -3
  212. package/lib/popover/index.d.ts +19 -19
  213. package/lib/popover/index.js +21 -20
  214. package/lib/popover/plugin-popover.d.ts +1 -1
  215. package/lib/popover/popover.css +0 -130
  216. package/lib/popover/popover.d.ts +7 -7
  217. package/lib/popover/popover.variable.css +1 -262
  218. package/lib/popover/props.d.ts +4 -4
  219. package/lib/preset.d.ts +1 -0
  220. package/lib/preset.js +1 -0
  221. package/lib/process/index.js +3 -3
  222. package/lib/process/process.css +13 -143
  223. package/lib/process/process.variable.css +1 -262
  224. package/lib/progress/index.d.ts +11 -11
  225. package/lib/progress/index.js +11 -10
  226. package/lib/progress/progress.css +4 -134
  227. package/lib/progress/progress.d.ts +7 -7
  228. package/lib/progress/progress.variable.css +5 -396
  229. package/lib/radio/index.d.ts +0 -29
  230. package/lib/radio/index.js +26 -55
  231. package/lib/radio/radio-button.d.ts +0 -10
  232. package/lib/radio/radio-group.d.ts +0 -10
  233. package/lib/radio/radio.css +42 -172
  234. package/lib/radio/radio.d.ts +0 -10
  235. package/lib/radio/radio.variable.css +1 -262
  236. package/lib/radio/type.d.ts +1 -1
  237. package/lib/rate/index.js +8 -8
  238. package/lib/rate/rate.css +0 -157
  239. package/lib/rate/rate.less +0 -33
  240. package/lib/rate/rate.variable.css +1 -289
  241. package/lib/rate/star.css +27 -0
  242. package/lib/rate/star.less +34 -0
  243. package/lib/{styles/themes/themes.variable.css → rate/star.variable.css} +28 -2
  244. package/lib/resize-layout/index.d.ts +11 -34
  245. package/lib/resize-layout/index.js +14 -33
  246. package/lib/resize-layout/resize-layout.css +0 -130
  247. package/lib/resize-layout/resize-layout.d.ts +5 -16
  248. package/lib/resize-layout/resize-layout.variable.css +1 -262
  249. package/lib/search-select/index.d.ts +18 -48
  250. package/lib/search-select/index.js +171 -120
  251. package/lib/search-select/input.d.ts +1 -10
  252. package/lib/search-select/menu.d.ts +0 -12
  253. package/lib/search-select/search-select.css +34 -163
  254. package/lib/search-select/search-select.d.ts +4 -18
  255. package/lib/search-select/search-select.less +1 -1
  256. package/lib/search-select/search-select.variable.css +35 -425
  257. package/lib/search-select/selected.d.ts +0 -23
  258. package/lib/select/common.d.ts +4 -4
  259. package/lib/select/index.d.ts +74 -107
  260. package/lib/select/index.js +183 -262
  261. package/lib/select/option.d.ts +6 -5
  262. package/lib/select/select.css +45 -176
  263. package/lib/select/select.d.ts +27 -40
  264. package/lib/select/select.less +6 -8
  265. package/lib/select/select.variable.css +46 -438
  266. package/lib/select/selectTagInput.d.ts +6 -7
  267. package/lib/select/type.d.ts +11 -10
  268. package/lib/shared/index.d.ts +2 -2
  269. package/lib/shared/index.js +89 -108
  270. package/lib/shared/mask.d.ts +11 -0
  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 +217 -75
  276. package/lib/sideslider/index.js +42 -68
  277. package/lib/sideslider/sideslider.css +92 -152
  278. package/lib/sideslider/sideslider.d.ts +103 -35
  279. package/lib/sideslider/sideslider.less +112 -31
  280. package/lib/sideslider/sideslider.variable.css +92 -283
  281. package/lib/slider/index.d.ts +0 -19
  282. package/lib/slider/index.js +26 -64
  283. package/lib/slider/slider.css +4 -148
  284. package/lib/slider/slider.d.ts +0 -9
  285. package/lib/slider/slider.less +0 -15
  286. package/lib/slider/slider.variable.css +1 -276
  287. package/lib/steps/index.d.ts +29 -14
  288. package/lib/steps/index.js +4 -3
  289. package/lib/steps/steps.css +38 -168
  290. package/lib/steps/steps.d.ts +18 -8
  291. package/lib/steps/steps.variable.css +1 -262
  292. package/lib/styles/index.d.ts +1 -1
  293. package/lib/styles/mixins/animate.css +0 -130
  294. package/lib/styles/mixins/animate.variable.css +1 -262
  295. package/lib/styles/mixins/mixins.css +0 -130
  296. package/lib/styles/mixins/mixins.variable.css +0 -130
  297. package/lib/styles/mixins/popper.css +0 -130
  298. package/lib/styles/mixins/popper.variable.css +1 -262
  299. package/lib/styles/mixins/scroll.css +0 -130
  300. package/lib/styles/mixins/scroll.variable.css +1 -262
  301. package/lib/styles/reset.css +0 -130
  302. package/lib/styles/reset.variable.css +1 -262
  303. package/lib/styles/themes/themes.less +129 -299
  304. package/lib/swiper/index.js +5 -5
  305. package/lib/swiper/swiper.css +0 -130
  306. package/lib/swiper/swiper.variable.css +1 -262
  307. package/lib/switcher/index.js +2 -2
  308. package/lib/switcher/switcher.css +17 -147
  309. package/lib/switcher/switcher.d.ts +2 -2
  310. package/lib/switcher/switcher.variable.css +18 -409
  311. package/lib/tab/index.d.ts +114 -44
  312. package/lib/tab/index.js +38 -47
  313. package/lib/tab/props.d.ts +50 -25
  314. package/lib/tab/tab-nav.d.ts +57 -24
  315. package/lib/tab/tab-panel.d.ts +0 -22
  316. package/lib/tab/tab.css +17 -211
  317. package/lib/tab/tab.d.ts +54 -10
  318. package/lib/tab/tab.less +4 -91
  319. package/lib/tab/tab.variable.css +1 -326
  320. package/lib/table/components/table-cell.d.ts +2 -25
  321. package/lib/table/components/table-column.d.ts +239 -20
  322. package/lib/table/const.d.ts +13 -26
  323. package/lib/table/events.d.ts +112 -16
  324. package/lib/table/index.d.ts +738 -135
  325. package/lib/table/index.js +5781 -23555
  326. package/lib/table/plugins/col-group.d.ts +38 -0
  327. package/lib/table/plugins/head-filter.css +4 -139
  328. package/lib/table/plugins/head-filter.d.ts +1 -2
  329. package/lib/table/plugins/head-filter.less +3 -7
  330. package/lib/table/plugins/head-filter.variable.css +5 -271
  331. package/lib/table/plugins/head-sort.css +0 -130
  332. package/lib/table/plugins/head-sort.variable.css +1 -262
  333. package/lib/table/plugins/settings.css +0 -131
  334. package/lib/table/plugins/settings.d.ts +16 -0
  335. package/lib/table/plugins/settings.less +0 -1
  336. package/lib/table/plugins/settings.variable.css +1 -263
  337. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  338. package/lib/table/plugins/use-column-resize.d.ts +35 -0
  339. package/lib/table/{hooks → plugins}/use-draggable.d.ts +2 -2
  340. package/lib/table/plugins/use-fixed-column.d.ts +27 -0
  341. package/lib/table/plugins/use-head-cell.d.ts +7 -0
  342. package/lib/table/plugins/use-pagination.d.ts +21 -0
  343. package/lib/table/props.d.ts +64 -135
  344. package/lib/table/table.css +303 -638
  345. package/lib/table/table.d.ts +185 -62
  346. package/lib/table/table.less +148 -266
  347. package/lib/table/table.variable.css +312 -908
  348. package/lib/table/use-attributes.d.ts +61 -0
  349. package/lib/table/use-column.d.ts +276 -0
  350. package/lib/table/use-common.d.ts +1679 -0
  351. package/lib/table/use-render.d.ts +11 -0
  352. package/lib/table/utils.d.ts +21 -49
  353. package/lib/table-column/index.d.ts +579 -30
  354. package/lib/table-column/index.js +317 -17398
  355. package/lib/tag/index.d.ts +11 -11
  356. package/lib/tag/index.js +3 -2
  357. package/lib/tag/tag.css +6 -136
  358. package/lib/tag/tag.d.ts +5 -5
  359. package/lib/tag/tag.less +1 -1
  360. package/lib/tag/tag.variable.css +2 -263
  361. package/lib/tag-input/common.d.ts +1 -1
  362. package/lib/tag-input/index.d.ts +8 -8
  363. package/lib/tag-input/index.js +33 -37
  364. package/lib/tag-input/tag-input.css +18 -148
  365. package/lib/tag-input/tag-input.d.ts +4 -4
  366. package/lib/tag-input/tag-input.variable.css +1 -262
  367. package/lib/tag-input/tag-props.d.ts +2 -2
  368. package/lib/time-picker/index.d.ts +19 -0
  369. package/lib/time-picker/time-picker.css +0 -130
  370. package/lib/time-picker/time-picker.variable.css +1 -262
  371. package/lib/timeline/index.js +2 -2
  372. package/lib/timeline/timeline.css +19 -149
  373. package/lib/timeline/timeline.variable.css +1 -262
  374. package/lib/transfer/const.d.ts +2 -2
  375. package/lib/transfer/index.js +19 -19
  376. package/lib/transfer/transfer.css +28 -158
  377. package/lib/transfer/transfer.less +3 -3
  378. package/lib/transfer/transfer.variable.css +10 -271
  379. package/lib/tree/constant.d.ts +20 -24
  380. package/lib/tree/index.d.ts +24 -82
  381. package/lib/tree/index.js +90 -17660
  382. package/lib/tree/props.d.ts +10 -35
  383. package/lib/tree/tree.css +18 -256
  384. package/lib/tree/tree.d.ts +8 -34
  385. package/lib/tree/tree.less +1 -1
  386. package/lib/tree/tree.variable.css +19 -518
  387. package/lib/tree/use-empty.d.ts +1 -1
  388. package/lib/tree/use-node-action.d.ts +9 -10
  389. package/lib/tree/use-node-async.d.ts +1 -2
  390. package/lib/tree/use-node-attribute.d.ts +30 -47
  391. package/lib/tree/use-search.d.ts +1 -1
  392. package/lib/tree/use-tree-init.d.ts +5 -8
  393. package/lib/tree/util.d.ts +21 -21
  394. package/lib/upload/index.d.ts +4 -27
  395. package/lib/upload/index.js +51 -102
  396. package/lib/upload/props.d.ts +2 -7
  397. package/lib/upload/upload.css +27 -157
  398. package/lib/upload/upload.d.ts +2 -13
  399. package/lib/upload/upload.type.d.ts +7 -13
  400. package/lib/upload/upload.variable.css +28 -419
  401. package/lib/upload/use-file-handler.d.ts +1 -1
  402. package/lib/virtual-render/index.d.ts +46 -39
  403. package/lib/virtual-render/index.js +130 -17665
  404. package/lib/virtual-render/props.d.ts +9 -18
  405. package/lib/virtual-render/use-fix-top.d.ts +8 -3
  406. package/lib/virtual-render/v-virtual-render.d.ts +2 -9
  407. package/lib/virtual-render/virtual-render.css +9 -239
  408. package/lib/virtual-render/virtual-render.d.ts +22 -19
  409. package/lib/virtual-render/virtual-render.less +10 -1
  410. package/lib/virtual-render/virtual-render.variable.css +10 -501
  411. package/lib/volar.components.d.ts +0 -2
  412. package/package.json +55 -17
  413. package/lib/info-box/render-component.d.ts +0 -4
  414. package/lib/modal/mask.d.ts +0 -6
  415. package/lib/scrollbar/css/scrollbar.css +0 -239
  416. package/lib/scrollbar/css/scrollbar.less +0 -139
  417. package/lib/scrollbar/css/scrollbar.variable.css +0 -499
  418. package/lib/scrollbar/handlers/click-rail.d.ts +0 -2
  419. package/lib/scrollbar/handlers/drag-thumb.d.ts +0 -1
  420. package/lib/scrollbar/handlers/keyboard.d.ts +0 -2
  421. package/lib/scrollbar/handlers/mouse-wheel.d.ts +0 -2
  422. package/lib/scrollbar/handlers/touch.d.ts +0 -4
  423. package/lib/scrollbar/helper/class-names.d.ts +0 -21
  424. package/lib/scrollbar/helper/css.d.ts +0 -3
  425. package/lib/scrollbar/helper/dom.d.ts +0 -4
  426. package/lib/scrollbar/helper/event-manager.d.ts +0 -20
  427. package/lib/scrollbar/helper/util.d.ts +0 -11
  428. package/lib/scrollbar/index.d.ts +0 -135
  429. package/lib/scrollbar/index.js +0 -1661
  430. package/lib/scrollbar/process-scroll-diff.d.ts +0 -1
  431. package/lib/scrollbar/update-geometry.d.ts +0 -8
  432. package/lib/shared/frame-throttle.d.ts +0 -15
  433. package/lib/styles/themes/themes.css +0 -130
  434. package/lib/table/components/ghost-body.d.ts +0 -2
  435. package/lib/table/hooks/use-cell.d.ts +0 -20
  436. package/lib/table/hooks/use-column-resize.d.ts +0 -7
  437. package/lib/table/hooks/use-column-template.d.ts +0 -5
  438. package/lib/table/hooks/use-columns.d.ts +0 -69
  439. package/lib/table/hooks/use-fixed-column.d.ts +0 -10
  440. package/lib/table/hooks/use-head.d.ts +0 -16
  441. package/lib/table/hooks/use-layout.d.ts +0 -25
  442. package/lib/table/hooks/use-pagination.d.ts +0 -16
  443. package/lib/table/hooks/use-render.d.ts +0 -21
  444. package/lib/table/hooks/use-rows.d.ts +0 -30
  445. package/lib/table/hooks/use-settings.d.ts +0 -136
  446. package/lib/table/hooks/use-shift-key.d.ts +0 -15
  447. package/lib/tree/use-intersection-observer.d.ts +0 -27
  448. package/lib/virtual-render/use-scrollbar.d.ts +0 -11
  449. /package/lib/table/{components → plugins}/body-empty.d.ts +0 -0
  450. /package/lib/table/{hooks → plugins}/use-observer-resize.d.ts +0 -0
  451. /package/lib/table/{hooks → plugins}/use-scroll-loading.d.ts +0 -0
@@ -493,7 +493,7 @@ const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBP
493
493
  var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
494
494
  var icon_y = x => () => x
495
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 });
496
- ;// CONCATENATED MODULE: ../../node_modules/resize-detector/esm/index.js
496
+ ;// CONCATENATED MODULE: ../../node_modules/@blueking/fork-resize-detector/esm/index.js
497
497
  var raf = null;
498
498
  function requestAnimationFrame (callback) {
499
499
  if (!raf) {
@@ -559,7 +559,7 @@ function getComputedStyle (elem, prop, pseudo) {
559
559
  }
560
560
 
561
561
  function getRenderInfo (elem) {
562
- if (!document.documentElement.contains(elem)) {
562
+ if (!elem || !document.documentElement.contains(elem)) {
563
563
  return {
564
564
  detached: true,
565
565
  rendered: false
@@ -567,7 +567,7 @@ function getRenderInfo (elem) {
567
567
  }
568
568
 
569
569
  var current = elem;
570
- while (current !== document) {
570
+ while (current && current !== document) {
571
571
  if (getComputedStyle(current, 'display') === 'none') {
572
572
  return {
573
573
  detached: false,
@@ -1308,12 +1308,6 @@ var SelectedItem = /*#__PURE__*/function () {
1308
1308
  logical: {
1309
1309
  type: String,
1310
1310
  "default": SearchLogical.OR
1311
- },
1312
- maxHeight: {
1313
- type: Number,
1314
- "default": function _default() {
1315
- return 392;
1316
- }
1317
1311
  }
1318
1312
  },
1319
1313
  emits: ['selectItem', 'selectCondition', 'footerClick', 'update:logical'],
@@ -1335,11 +1329,6 @@ var SelectedItem = /*#__PURE__*/function () {
1335
1329
  }
1336
1330
  return props.footerBtns;
1337
1331
  });
1338
- var resolveContentStyles = (0,external_vue_namespaceObject.computed)(function () {
1339
- return {
1340
- maxHeight: "".concat(props.maxHeight, "px")
1341
- };
1342
- });
1343
1332
  // events
1344
1333
  function handleClick(item) {
1345
1334
  emit('selectItem', item);
@@ -1409,7 +1398,6 @@ var SelectedItem = /*#__PURE__*/function () {
1409
1398
  getSearchNode: getSearchNode,
1410
1399
  localFooterBtns: localFooterBtns,
1411
1400
  resolveClassName: resolveClassName,
1412
- resolveContentStyles: resolveContentStyles,
1413
1401
  t: t
1414
1402
  };
1415
1403
  },
@@ -1464,7 +1452,6 @@ var SelectedItem = /*#__PURE__*/function () {
1464
1452
  })])]);
1465
1453
  };
1466
1454
  return (0,external_vue_namespaceObject.createVNode)("div", {
1467
- "style": this.resolveContentStyles,
1468
1455
  "class": this.resolveClassName('search-select-menu')
1469
1456
  }, [!!((_this$conditions = this.conditions) !== null && _this$conditions !== void 0 && _this$conditions.length) && (0,external_vue_namespaceObject.createVNode)("ul", {
1470
1457
  "class": "menu-header"
@@ -1484,6 +1471,9 @@ var SelectedItem = /*#__PURE__*/function () {
1484
1471
 
1485
1472
 
1486
1473
 
1474
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = input_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
1475
+ function input_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return input_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return input_arrayLikeToArray(o, minLen); }
1476
+ function input_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
1487
1477
 
1488
1478
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1489
1479
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -1520,6 +1510,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1520
1510
 
1521
1511
 
1522
1512
 
1513
+
1523
1514
  /* harmony default export */ const input = ((0,external_vue_namespaceObject.defineComponent)({
1524
1515
  name: 'SearchSelectInput',
1525
1516
  directives: {
@@ -1545,12 +1536,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1545
1536
  type: String,
1546
1537
  "default": SearchInputMode.DEFAULT
1547
1538
  },
1548
- maxHeight: {
1549
- type: Number,
1550
- "default": function _default() {
1551
- return 392;
1552
- }
1553
- },
1554
1539
  getMenuList: Function,
1555
1540
  validateValues: Function,
1556
1541
  valueBehavior: String
@@ -2074,7 +2059,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2074
2059
  function _setMenuList() {
2075
2060
  _setMenuList = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5() {
2076
2061
  var _props$data, _usingItem$value$sear, _usingItem$value$valu;
2077
- var list, _usingItem$value14, _keyword$value3, hoverItem;
2062
+ var list, _usingItem$value14, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
2078
2063
  return regenerator_default().wrap(function _callee5$(_context5) {
2079
2064
  while (1) switch (_context5.prev = _context5.next) {
2080
2065
  case 0:
@@ -2099,51 +2084,79 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2099
2084
  list = props.data.filter(function (item) {
2100
2085
  return !item.isSelected;
2101
2086
  }).slice();
2102
- } else props.data.filter(function (item) {
2103
- return !item.isSelected;
2104
- }).forEach(function (item) {
2105
- var isMatched = item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase());
2106
- if (isMatched) {
2107
- var _item$children, _list;
2108
- list.push(item);
2109
- var filterList = [];
2110
- (_item$children = item.children) === null || _item$children === void 0 || _item$children.forEach(function (child) {
2111
- filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2112
- realId: item.id,
2113
- id: (0,shared_namespaceObject.random)(10),
2114
- value: child
2115
- }));
2116
- });
2117
- !filterList.length && !item.onlyRecommendChildren && filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2118
- realId: item.id,
2119
- id: (0,shared_namespaceObject.random)(10),
2120
- value: {
2121
- id: keyword.value,
2122
- name: keyword.value
2123
- }
2124
- }));
2125
- (_list = list).push.apply(_list, filterList);
2126
- } else {
2127
- var _item$children2, _list2;
2128
- var _filterList = [];
2129
- (_item$children2 = item.children) === null || _item$children2 === void 0 || _item$children2.forEach(function (child) {
2130
- if (child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
2131
- _filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2132
- realId: item.id,
2133
- id: (0,shared_namespaceObject.random)(10),
2134
- value: child
2135
- }));
2136
- }
2137
- });
2138
- !_filterList.length && !item.onlyRecommendChildren && _filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2139
- value: {
2140
- id: keyword.value,
2141
- name: keyword.value
2087
+ } else {
2088
+ _iterator = _createForOfIteratorHelper(props.data.filter(function (item) {
2089
+ return !item.isSelected;
2090
+ }));
2091
+ try {
2092
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
2093
+ item = _step.value;
2094
+ isMatched = item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase());
2095
+ if (isMatched) {
2096
+ list.push(item);
2097
+ filterList = [];
2098
+ _iterator2 = _createForOfIteratorHelper(item.children || []);
2099
+ try {
2100
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2101
+ child = _step2.value;
2102
+ filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2103
+ realId: item.id,
2104
+ id: (0,shared_namespaceObject.random)(10),
2105
+ value: child
2106
+ }));
2107
+ }
2108
+ } catch (err) {
2109
+ _iterator2.e(err);
2110
+ } finally {
2111
+ _iterator2.f();
2112
+ }
2113
+ if (!filterList.length && !item.onlyRecommendChildren) {
2114
+ filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2115
+ realId: item.id,
2116
+ id: (0,shared_namespaceObject.random)(10),
2117
+ value: {
2118
+ id: keyword.value,
2119
+ name: keyword.value
2120
+ }
2121
+ }));
2122
+ }
2123
+ (_list = list).push.apply(_list, filterList);
2124
+ } else {
2125
+ _filterList = [];
2126
+ _iterator3 = _createForOfIteratorHelper(item.children || []);
2127
+ try {
2128
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
2129
+ _child = _step3.value;
2130
+ if (_child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
2131
+ _filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2132
+ realId: item.id,
2133
+ id: (0,shared_namespaceObject.random)(10),
2134
+ value: _child
2135
+ }));
2136
+ }
2137
+ }
2138
+ } catch (err) {
2139
+ _iterator3.e(err);
2140
+ } finally {
2141
+ _iterator3.f();
2142
+ }
2143
+ if (!_filterList.length && !item.onlyRecommendChildren) {
2144
+ _filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2145
+ value: {
2146
+ id: keyword.value,
2147
+ name: keyword.value
2148
+ }
2149
+ }));
2150
+ }
2151
+ (_list2 = list).push.apply(_list2, _filterList);
2142
2152
  }
2143
- }));
2144
- (_list2 = list).push.apply(_list2, _filterList);
2153
+ }
2154
+ } catch (err) {
2155
+ _iterator.e(err);
2156
+ } finally {
2157
+ _iterator.f();
2145
2158
  }
2146
- });
2159
+ }
2147
2160
  } else if (usingItem.value.type === 'condition') {
2148
2161
  list = props.conditions;
2149
2162
  } else if (!((_usingItem$value$valu = usingItem.value.values) !== null && _usingItem$value$valu !== void 0 && _usingItem$value$valu.length) || usingItem.value.multiple || props.mode === SearchInputMode.EDIT) {
@@ -2498,7 +2511,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2498
2511
  "keyword": _this.keyword,
2499
2512
  "list": _this.menuList,
2500
2513
  "logical": (_this$usingItem4 = _this.usingItem) === null || _this$usingItem4 === void 0 ? void 0 : _this$usingItem4.logical,
2501
- "maxHeight": _this.maxHeight,
2502
2514
  "multiple": !!multiple,
2503
2515
  "selected": (values === null || values === void 0 ? void 0 : values.map(function (item) {
2504
2516
  return item.id;
@@ -2572,12 +2584,6 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2572
2584
  type: Number,
2573
2585
  "default": -1
2574
2586
  },
2575
- maxHeight: {
2576
- type: Number,
2577
- "default": function _default() {
2578
- return 392;
2579
- }
2580
- },
2581
2587
  conditions: {
2582
2588
  type: Array,
2583
2589
  "default": function _default() {
@@ -2659,7 +2665,6 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2659
2665
  "data": _this.data,
2660
2666
  "defaultUsingItem": _this.copySelectedItem(item),
2661
2667
  "getMenuList": _this.getMenuList,
2662
- "maxHeight": _this.maxHeight,
2663
2668
  "mode": SearchInputMode.EDIT,
2664
2669
  "showCondition": false,
2665
2670
  "validateValues": _this.validateValues,
@@ -2695,6 +2700,9 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
2695
2700
 
2696
2701
  function search_select_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2697
2702
  function search_select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? search_select_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : search_select_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2703
+ function search_select_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = search_select_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
2704
+ function search_select_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return search_select_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return search_select_arrayLikeToArray(o, minLen); }
2705
+ function search_select_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
2698
2706
  /*
2699
2707
  * Tencent is pleased to support the open source community by making
2700
2708
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -2732,7 +2740,6 @@ function search_select_objectSpread(e) { for (var r = 1; r < arguments.length; r
2732
2740
  var INPUT_PADDING_WIDTH = 40;
2733
2741
  var SELECTED_MARGIN_RIGHT = 6;
2734
2742
  var INPUT_MIN_HEIGHT = 26;
2735
- var MENU_ITEM_MIN_HEIGHT = 32;
2736
2743
  var SearchSelectProps = {
2737
2744
  data: {
2738
2745
  type: Array,
@@ -2748,8 +2755,7 @@ var SearchSelectProps = {
2748
2755
  },
2749
2756
  maxHeight: {
2750
2757
  type: Number,
2751
- // 默认展示12条,加上列表8px的padding
2752
- "default": MENU_ITEM_MIN_HEIGHT * 12 + 8
2758
+ "default": 120
2753
2759
  },
2754
2760
  conditions: {
2755
2761
  type: Array,
@@ -2822,13 +2828,24 @@ var SearchSelectProps = {
2822
2828
  (0,external_vue_namespaceObject.watch)(function () {
2823
2829
  return props.data;
2824
2830
  }, function () {
2825
- var _copyData$value;
2826
2831
  copyData.value = JSON.parse(JSON.stringify(props.data));
2827
- (_copyData$value = copyData.value) === null || _copyData$value === void 0 || _copyData$value.forEach(function (item) {
2828
- item.isSelected = props.uniqueSelect && !!props.modelValue.some(function (set) {
2829
- return set.id === item.id;
2830
- });
2831
- });
2832
+ var _iterator = search_select_createForOfIteratorHelper(copyData.value || []),
2833
+ _step;
2834
+ try {
2835
+ var _loop = function _loop() {
2836
+ var item = _step.value;
2837
+ item.isSelected = props.uniqueSelect && props.modelValue.some(function (set) {
2838
+ return set.id === item.id;
2839
+ });
2840
+ };
2841
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
2842
+ _loop();
2843
+ }
2844
+ } catch (err) {
2845
+ _iterator.e(err);
2846
+ } finally {
2847
+ _iterator.f();
2848
+ }
2832
2849
  }, {
2833
2850
  immediate: true
2834
2851
  });
@@ -2837,50 +2854,84 @@ var SearchSelectProps = {
2837
2854
  return props.modelValue;
2838
2855
  }, function (v) {
2839
2856
  if (!(v !== null && v !== void 0 && v.length)) {
2840
- var _copyData$value2;
2841
2857
  selectedList.value = [];
2842
- (_copyData$value2 = copyData.value) === null || _copyData$value2 === void 0 || _copyData$value2.forEach(function (item) {
2843
- item.isSelected = false;
2844
- });
2858
+ var _iterator2 = search_select_createForOfIteratorHelper(copyData.value || []),
2859
+ _step2;
2860
+ try {
2861
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2862
+ var item = _step2.value;
2863
+ item.isSelected = false;
2864
+ }
2865
+ } catch (err) {
2866
+ _iterator2.e(err);
2867
+ } finally {
2868
+ _iterator2.f();
2869
+ }
2845
2870
  return;
2846
2871
  }
2847
2872
  var list = [];
2848
- v.forEach(function (item) {
2849
- var selected = selectedList.value.find(function (set) {
2850
- return set.id === item.id && set.name === item.name;
2851
- });
2852
- if ((selected === null || selected === void 0 ? void 0 : selected.toValueKey()) === JSON.stringify(item)) {
2853
- selected.values = item.values || [];
2854
- selected.logical = item.logical || SearchLogical.OR;
2855
- list.push(selected);
2856
- } else {
2857
- var _item$values;
2858
- var searchItem = props.data.find(function (set) {
2859
- return set.id === item.id;
2873
+ var _iterator3 = search_select_createForOfIteratorHelper(v),
2874
+ _step3;
2875
+ try {
2876
+ var _loop2 = function _loop2() {
2877
+ var item = _step3.value;
2878
+ var selected = selectedList.value.find(function (set) {
2879
+ return set.id === item.id && set.name === item.name;
2860
2880
  });
2861
- var searchType = 'default';
2862
- if (!searchItem) {
2863
- searchItem = props.conditions.find(function (set) {
2881
+ if ((selected === null || selected === void 0 ? void 0 : selected.toValueKey()) === JSON.stringify(item)) {
2882
+ selected.values = item.values || [];
2883
+ selected.logical = item.logical || SearchLogical.OR;
2884
+ list.push(selected);
2885
+ } else {
2886
+ var _item$values;
2887
+ var searchItem = props.data.find(function (set) {
2864
2888
  return set.id === item.id;
2865
2889
  });
2866
- searchItem && (searchType = 'condition');
2867
- }
2868
- if (!searchItem && !((_item$values = item.values) !== null && _item$values !== void 0 && _item$values.length)) {
2869
- searchType = 'text';
2890
+ var searchType = 'default';
2891
+ if (!searchItem) {
2892
+ searchItem = props.conditions.find(function (set) {
2893
+ return set.id === item.id;
2894
+ });
2895
+ if (searchItem) {
2896
+ searchType = 'condition';
2897
+ }
2898
+ }
2899
+ if (!searchItem && !((_item$values = item.values) !== null && _item$values !== void 0 && _item$values.length)) {
2900
+ searchType = 'text';
2901
+ }
2902
+ var newSelected = new SelectedItem(searchItem || item, searchType);
2903
+ newSelected.values = item.values || [];
2904
+ newSelected.logical = item.logical || SearchLogical.OR;
2905
+ list.push(newSelected);
2870
2906
  }
2871
- var newSelected = new SelectedItem(searchItem || item, searchType);
2872
- newSelected.values = item.values || [];
2873
- newSelected.logical = item.logical || SearchLogical.OR;
2874
- list.push(newSelected);
2907
+ };
2908
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
2909
+ _loop2();
2875
2910
  }
2876
- });
2911
+ } catch (err) {
2912
+ _iterator3.e(err);
2913
+ } finally {
2914
+ _iterator3.f();
2915
+ }
2877
2916
  selectedList.value = list;
2878
2917
  copyData.value = JSON.parse(JSON.stringify(props.data || []));
2879
- copyData.value.forEach(function (item) {
2880
- item.isSelected = props.uniqueSelect && !!list.some(function (set) {
2881
- return set.id === item.id;
2882
- });
2883
- });
2918
+ var _iterator4 = search_select_createForOfIteratorHelper(copyData.value),
2919
+ _step4;
2920
+ try {
2921
+ var _loop3 = function _loop3() {
2922
+ var item = _step4.value;
2923
+ item.isSelected = props.uniqueSelect && !!list.some(function (set) {
2924
+ return set.id === item.id;
2925
+ });
2926
+ };
2927
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
2928
+ _loop3();
2929
+ }
2930
+ } catch (err) {
2931
+ _iterator4.e(err);
2932
+ } finally {
2933
+ _iterator4.f();
2934
+ }
2884
2935
  }, {
2885
2936
  immediate: true,
2886
2937
  deep: true
@@ -2985,7 +3036,9 @@ var SearchSelectProps = {
2985
3036
  }));
2986
3037
  }
2987
3038
  function handleInputFocus(v) {
2988
- v && (overflowIndex.value = -1);
3039
+ if (v) {
3040
+ overflowIndex.value = -1;
3041
+ }
2989
3042
  if (v === false) {
2990
3043
  var _wrapRef$value$queryS;
2991
3044
  (_wrapRef$value$queryS = wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container')))) === null || _wrapRef$value$queryS === void 0 || _wrapRef$value$queryS.scrollTo(0, 0);
@@ -3046,14 +3099,13 @@ var SearchSelectProps = {
3046
3099
  "class": "search-prefix"
3047
3100
  }, [(_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", {
3048
3101
  "style": {
3049
- 'max-height': "".concat(maxHeight, "px")
3102
+ maxHeight: maxHeight
3050
3103
  },
3051
3104
  "class": "search-container"
3052
3105
  }, [(0,external_vue_namespaceObject.createVNode)(selected, {
3053
3106
  "conditions": this.localConditions,
3054
3107
  "data": this.copyData,
3055
3108
  "getMenuList": this.getMenuList,
3056
- "maxHeight": this.maxHeight,
3057
3109
  "overflowIndex": this.overflowIndex,
3058
3110
  "selectedList": this.selectedList,
3059
3111
  "validateValues": this.validateValues,
@@ -3068,7 +3120,6 @@ var SearchSelectProps = {
3068
3120
  "conditions": this.localConditions,
3069
3121
  "data": this.copyData,
3070
3122
  "getMenuList": this.getMenuList,
3071
- "maxHeight": this.maxHeight,
3072
3123
  "placeholder": this.placeholder || this.t.pleaseSelect,
3073
3124
  "showCondition": showCondition,
3074
3125
  "showInputBefore": !this.selectedList.length,
@@ -1,5 +1,5 @@
1
- import { PropType, Ref, SlotsType } from 'vue';
2
1
  import { GetMenuListFunc, ICommonItem, IMenuFooterItem, ISearchItem, MenuSlotParams, SearchInputMode, SearchItemType, SearchLogical, SelectedItem, ValidateValuesFunc, ValueBehavior } from './utils';
2
+ import type { PropType, Ref, SlotsType } from 'vue';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  data: {
5
5
  type: PropType<ISearchItem[]>;
@@ -18,10 +18,6 @@ declare const _default: import("vue").DefineComponent<{
18
18
  type: PropType<SearchInputMode>;
19
19
  default: SearchInputMode;
20
20
  };
21
- maxHeight: {
22
- type: NumberConstructor;
23
- default: () => number;
24
- };
25
21
  getMenuList: PropType<GetMenuListFunc>;
26
22
  validateValues: PropType<ValidateValuesFunc>;
27
23
  valueBehavior: PropType<ValueBehavior>;
@@ -100,10 +96,6 @@ declare const _default: import("vue").DefineComponent<{
100
96
  type: PropType<SearchInputMode>;
101
97
  default: SearchInputMode;
102
98
  };
103
- maxHeight: {
104
- type: NumberConstructor;
105
- default: () => number;
106
- };
107
99
  getMenuList: PropType<GetMenuListFunc>;
108
100
  validateValues: PropType<ValidateValuesFunc>;
109
101
  valueBehavior: PropType<ValueBehavior>;
@@ -113,7 +105,6 @@ declare const _default: import("vue").DefineComponent<{
113
105
  onAdd?: (...args: any[]) => any;
114
106
  onSelectKey?: (...args: any[]) => any;
115
107
  }, {
116
- maxHeight: number;
117
108
  mode: SearchInputMode;
118
109
  conditions: ICommonItem[];
119
110
  showInputBefore: boolean;
@@ -32,10 +32,6 @@ declare const _default: import("vue").DefineComponent<{
32
32
  type: PropType<SearchLogical>;
33
33
  default: SearchLogical;
34
34
  };
35
- maxHeight: {
36
- type: NumberConstructor;
37
- default: () => number;
38
- };
39
35
  }, {
40
36
  handleClick: (item: ICommonItem) => void;
41
37
  handleClickCondition: (item: ICommonItem) => void;
@@ -54,9 +50,6 @@ declare const _default: import("vue").DefineComponent<{
54
50
  disabled: boolean;
55
51
  })[]>;
56
52
  resolveClassName: (cls: string) => string;
57
- resolveContentStyles: import("vue").ComputedRef<{
58
- maxHeight: string;
59
- }>;
60
53
  t: import("vue").ComputedRef<{
61
54
  pleaseSelect: string;
62
55
  loading: string;
@@ -99,17 +92,12 @@ declare const _default: import("vue").DefineComponent<{
99
92
  type: PropType<SearchLogical>;
100
93
  default: SearchLogical;
101
94
  };
102
- maxHeight: {
103
- type: NumberConstructor;
104
- default: () => number;
105
- };
106
95
  }>> & {
107
96
  onSelectItem?: (...args: any[]) => any;
108
97
  onSelectCondition?: (...args: any[]) => any;
109
98
  onFooterClick?: (...args: any[]) => any;
110
99
  "onUpdate:logical"?: (...args: any[]) => any;
111
100
  }, {
112
- maxHeight: number;
113
101
  multiple: boolean;
114
102
  selected: string[];
115
103
  logical: SearchLogical;