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

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 +15 -0
  2. package/dist/index.cjs.js +167 -167
  3. package/dist/index.esm.js +32433 -30994
  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 +130 -0
  8. package/lib/affix/affix.variable.css +262 -1
  9. package/lib/affix/index.js +7 -7
  10. package/lib/alert/alert.css +133 -3
  11. package/lib/alert/alert.d.ts +5 -12
  12. package/lib/alert/alert.variable.css +262 -1
  13. package/lib/alert/index.d.ts +11 -26
  14. package/lib/alert/index.js +6 -6
  15. package/lib/backtop/backtop.css +133 -3
  16. package/lib/backtop/backtop.d.ts +1 -1
  17. package/lib/backtop/backtop.variable.css +395 -4
  18. package/lib/backtop/index.d.ts +3 -3
  19. package/lib/backtop/index.js +6 -6
  20. package/lib/badge/badge.css +156 -26
  21. package/lib/badge/badge.variable.css +262 -1
  22. package/lib/badge/index.js +1 -1
  23. package/lib/breadcrumb/breadcrumb.css +135 -5
  24. package/lib/breadcrumb/breadcrumb.variable.css +397 -6
  25. package/lib/button/button.css +273 -143
  26. package/lib/button/button.d.ts +7 -7
  27. package/lib/button/button.variable.css +262 -1
  28. package/lib/button/index.d.ts +8 -8
  29. package/lib/button/index.js +6 -7
  30. package/lib/card/card.css +134 -4
  31. package/lib/card/card.variable.css +396 -5
  32. package/lib/cascader/cascader-panel.d.ts +1 -1
  33. package/lib/cascader/cascader.css +156 -26
  34. package/lib/cascader/cascader.d.ts +1 -1
  35. package/lib/cascader/cascader.less +4 -4
  36. package/lib/cascader/cascader.variable.css +418 -27
  37. package/lib/cascader/index.js +43 -42
  38. package/lib/cascader/interface.d.ts +1 -1
  39. package/lib/checkbox/checkbox-group.d.ts +0 -16
  40. package/lib/checkbox/checkbox.css +147 -9
  41. package/lib/checkbox/checkbox.d.ts +39 -7
  42. package/lib/checkbox/checkbox.less +12 -0
  43. package/lib/checkbox/checkbox.variable.css +270 -1
  44. package/lib/checkbox/index.d.ts +57 -22
  45. package/lib/checkbox/index.js +21 -8
  46. package/lib/checkbox/type.d.ts +1 -1
  47. package/lib/code-diff/code-diff.css +130 -0
  48. package/lib/code-diff/code-diff.variable.css +262 -1
  49. package/lib/code-diff/index.js +8 -8
  50. package/lib/collapse/collapse.css +142 -1
  51. package/lib/collapse/collapse.d.ts +11 -0
  52. package/lib/collapse/collapse.less +15 -1
  53. package/lib/collapse/collapse.variable.css +273 -1
  54. package/lib/collapse/index.d.ts +23 -0
  55. package/lib/collapse/index.js +11 -3
  56. package/lib/collapse/props.d.ts +8 -0
  57. package/lib/collapse/utils.d.ts +2 -2
  58. package/lib/collapse-transition/collapse-transition.css +130 -0
  59. package/lib/collapse-transition/collapse-transition.variable.css +262 -1
  60. package/lib/color-picker/color-picker.css +133 -3
  61. package/lib/color-picker/color-picker.d.ts +16 -0
  62. package/lib/color-picker/color-picker.less +3 -3
  63. package/lib/color-picker/color-picker.variable.css +265 -4
  64. package/lib/color-picker/index.d.ts +23 -0
  65. package/lib/color-picker/index.js +53 -46
  66. package/lib/components.d.ts +32 -31
  67. package/lib/components.js +31 -30
  68. package/lib/config-provider/config-provider.css +130 -0
  69. package/lib/config-provider/config-provider.variable.css +262 -1
  70. package/lib/config-provider/index.d.ts +1 -1
  71. package/lib/container/container.css +130 -0
  72. package/lib/container/container.variable.css +392 -1
  73. package/lib/container/index.js +6 -7
  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 +147 -17
  79. package/lib/date-picker/date-picker.d.ts +0 -10
  80. package/lib/date-picker/date-picker.variable.css +262 -1
  81. package/lib/date-picker/index.d.ts +0 -22
  82. package/lib/date-picker/index.js +346 -234
  83. package/lib/date-picker/interface.d.ts +9 -9
  84. package/lib/date-picker/panel/date-range.d.ts +6 -68
  85. package/lib/date-picker/panel/date.d.ts +1 -1
  86. package/lib/date-picker/panel/time-range.d.ts +1 -10
  87. package/lib/date-picker/panel/time.d.ts +2 -11
  88. package/lib/date-picker/props.d.ts +1 -5
  89. package/lib/date-picker/time-picker.d.ts +0 -9
  90. package/lib/date-picker/utils.d.ts +5 -1
  91. package/lib/dialog/dialog.css +269 -88
  92. package/lib/dialog/dialog.d.ts +74 -152
  93. package/lib/dialog/dialog.less +9 -76
  94. package/lib/dialog/dialog.variable.css +531 -89
  95. package/lib/dialog/index.d.ts +171 -352
  96. package/lib/dialog/index.js +200 -222
  97. package/lib/dialog/props.d.ts +25 -55
  98. package/lib/directives/index.d.ts +3 -3
  99. package/lib/directives/index.js +178 -172
  100. package/lib/directives/tooltips.d.ts +1 -1
  101. package/lib/dist.index.js +2 -4
  102. package/lib/divider/divider.css +133 -3
  103. package/lib/divider/divider.d.ts +5 -5
  104. package/lib/divider/divider.variable.css +262 -1
  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 +130 -0
  111. package/lib/dropdown/dropdown.d.ts +5 -5
  112. package/lib/dropdown/dropdown.variable.css +392 -1
  113. package/lib/dropdown/index.d.ts +13 -13
  114. package/lib/dropdown/index.js +7 -7
  115. package/lib/exception/exception.css +130 -0
  116. package/lib/exception/exception.d.ts +9 -9
  117. package/lib/exception/exception.variable.css +262 -1
  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 +134 -4
  122. package/lib/fixed-navbar/fixed-navbar.variable.css +262 -1
  123. package/lib/fixed-navbar/index.js +2 -2
  124. package/lib/form/form-item.d.ts +6 -18
  125. package/lib/form/form.css +130 -0
  126. package/lib/form/form.d.ts +2 -2
  127. package/lib/form/form.variable.css +262 -1
  128. package/lib/form/index.d.ts +6 -13
  129. package/lib/form/index.js +22 -21
  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 +130 -0
  134. package/lib/image/image-viewer.d.ts +1 -1
  135. package/lib/image/image-viewer.variable.css +262 -1
  136. package/lib/image/image.css +130 -0
  137. package/lib/image/image.variable.css +392 -1
  138. package/lib/image/index.js +20 -21
  139. package/lib/index.d.ts +9 -3
  140. package/lib/index.js +5 -29
  141. package/lib/info-box/index.d.ts +2 -2
  142. package/lib/info-box/index.js +326 -173
  143. package/lib/info-box/info-box.css +193 -7
  144. package/lib/info-box/info-box.d.ts +25 -23
  145. package/lib/info-box/info-box.less +76 -14
  146. package/lib/info-box/info-box.variable.css +325 -8
  147. package/lib/info-box/render-component.d.ts +4 -0
  148. package/lib/input/index.d.ts +15 -15
  149. package/lib/input/index.js +65 -517
  150. package/lib/input/input.css +225 -73
  151. package/lib/input/input.d.ts +15 -15
  152. package/lib/input/input.less +30 -1
  153. package/lib/input/input.variable.css +487 -74
  154. package/lib/link/index.d.ts +11 -11
  155. package/lib/link/index.js +3 -3
  156. package/lib/link/link.css +146 -16
  157. package/lib/link/link.d.ts +5 -5
  158. package/lib/link/link.variable.css +262 -1
  159. package/lib/loading/index.d.ts +4 -4
  160. package/lib/loading/index.js +6 -6
  161. package/lib/loading/loading.css +146 -16
  162. package/lib/loading/loading.d.ts +6 -6
  163. package/lib/loading/loading.variable.css +408 -17
  164. package/lib/locale/index.d.ts +1 -1
  165. package/lib/menu/index.js +0 -1
  166. package/lib/menu/menu.css +148 -18
  167. package/lib/menu/menu.variable.css +410 -19
  168. package/lib/menu/submenu.css +130 -0
  169. package/lib/menu/submenu.variable.css +262 -1
  170. package/lib/menu/utils.d.ts +3 -3
  171. package/lib/message/index.js +18 -18
  172. package/lib/message/message.css +153 -22
  173. package/lib/message/message.less +3 -2
  174. package/lib/message/message.variable.css +264 -2
  175. package/lib/message/messageConstructor.d.ts +11 -11
  176. package/lib/modal/hooks.d.ts +1 -1
  177. package/lib/modal/index.d.ts +68 -343
  178. package/lib/modal/index.js +265 -696
  179. package/lib/modal/mask.d.ts +6 -0
  180. package/lib/modal/modal.css +261 -32
  181. package/lib/modal/modal.d.ts +26 -131
  182. package/lib/modal/modal.less +83 -29
  183. package/lib/modal/modal.variable.css +523 -33
  184. package/lib/modal/props.mixin.d.ts +10 -51
  185. package/lib/navigation/index.js +20 -20
  186. package/lib/navigation/navigation.css +132 -2
  187. package/lib/navigation/navigation.d.ts +1 -1
  188. package/lib/navigation/navigation.variable.css +262 -1
  189. package/lib/notify/index.js +4 -4
  190. package/lib/notify/notify.css +137 -7
  191. package/lib/notify/notify.variable.css +262 -1
  192. package/lib/overflow-title/components/overflow-title.d.ts +9 -16
  193. package/lib/overflow-title/index.d.ts +19 -34
  194. package/lib/overflow-title/index.js +107 -64
  195. package/lib/overflow-title/props.d.ts +18 -21
  196. package/lib/pagination/index.d.ts +0 -19
  197. package/lib/pagination/index.js +61 -23
  198. package/lib/pagination/pagination.css +139 -9
  199. package/lib/pagination/pagination.d.ts +0 -13
  200. package/lib/pagination/pagination.less +14 -13
  201. package/lib/pagination/pagination.variable.css +270 -9
  202. package/lib/pagination/type.d.ts +1 -1
  203. package/lib/pagination/use-limit.d.ts +1 -1
  204. package/lib/pagination/use-total.d.ts +1 -1
  205. package/lib/plugin-popover/index.js +20 -21
  206. package/lib/pop-confirm/index.d.ts +11 -43
  207. package/lib/pop-confirm/index.js +27 -28
  208. package/lib/pop-confirm/pop-confirm.css +133 -1
  209. package/lib/pop-confirm/pop-confirm.d.ts +5 -19
  210. package/lib/pop-confirm/pop-confirm.less +3 -1
  211. package/lib/pop-confirm/pop-confirm.variable.css +265 -2
  212. package/lib/pop-confirm/props.d.ts +5 -11
  213. package/lib/popover/const.d.ts +3 -3
  214. package/lib/popover/index.d.ts +19 -19
  215. package/lib/popover/index.js +20 -21
  216. package/lib/popover/plugin-popover.d.ts +1 -1
  217. package/lib/popover/popover.css +130 -0
  218. package/lib/popover/popover.d.ts +7 -7
  219. package/lib/popover/popover.variable.css +262 -1
  220. package/lib/popover/props.d.ts +4 -4
  221. package/lib/preset.d.ts +0 -1
  222. package/lib/preset.js +0 -1
  223. package/lib/process/index.js +3 -3
  224. package/lib/process/process.css +143 -13
  225. package/lib/process/process.variable.css +262 -1
  226. package/lib/progress/index.d.ts +11 -11
  227. package/lib/progress/index.js +10 -11
  228. package/lib/progress/progress.css +134 -4
  229. package/lib/progress/progress.d.ts +7 -7
  230. package/lib/progress/progress.variable.css +396 -5
  231. package/lib/radio/index.d.ts +29 -0
  232. package/lib/radio/index.js +55 -26
  233. package/lib/radio/radio-button.d.ts +10 -0
  234. package/lib/radio/radio-group.d.ts +10 -0
  235. package/lib/radio/radio.css +172 -42
  236. package/lib/radio/radio.d.ts +10 -0
  237. package/lib/radio/radio.variable.css +262 -1
  238. package/lib/radio/type.d.ts +1 -1
  239. package/lib/rate/index.js +8 -8
  240. package/lib/rate/rate.css +157 -0
  241. package/lib/rate/rate.less +33 -0
  242. package/lib/rate/rate.variable.css +289 -1
  243. package/lib/resize-layout/index.d.ts +34 -11
  244. package/lib/resize-layout/index.js +33 -14
  245. package/lib/resize-layout/resize-layout.css +130 -0
  246. package/lib/resize-layout/resize-layout.d.ts +16 -5
  247. package/lib/resize-layout/resize-layout.variable.css +262 -1
  248. package/lib/scrollbar/css/scrollbar.css +239 -0
  249. package/lib/scrollbar/css/scrollbar.less +139 -0
  250. package/lib/scrollbar/css/scrollbar.variable.css +499 -0
  251. package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
  252. package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
  253. package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
  254. package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
  255. package/lib/scrollbar/handlers/touch.d.ts +4 -0
  256. package/lib/scrollbar/helper/class-names.d.ts +21 -0
  257. package/lib/scrollbar/helper/css.d.ts +3 -0
  258. package/lib/scrollbar/helper/dom.d.ts +4 -0
  259. package/lib/scrollbar/helper/event-manager.d.ts +20 -0
  260. package/lib/scrollbar/helper/util.d.ts +11 -0
  261. package/lib/scrollbar/index.d.ts +135 -0
  262. package/lib/scrollbar/index.js +1661 -0
  263. package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
  264. package/lib/scrollbar/update-geometry.d.ts +8 -0
  265. package/lib/search-select/index.d.ts +42 -0
  266. package/lib/search-select/index.js +33 -3
  267. package/lib/search-select/input.d.ts +11 -1
  268. package/lib/search-select/menu.d.ts +12 -0
  269. package/lib/search-select/search-select.css +163 -34
  270. package/lib/search-select/search-select.d.ts +14 -0
  271. package/lib/search-select/search-select.less +1 -1
  272. package/lib/search-select/search-select.variable.css +425 -35
  273. package/lib/search-select/selected.d.ts +23 -0
  274. package/lib/select/common.d.ts +4 -4
  275. package/lib/select/index.d.ts +107 -74
  276. package/lib/select/index.js +262 -183
  277. package/lib/select/option.d.ts +5 -6
  278. package/lib/select/select.css +176 -45
  279. package/lib/select/select.d.ts +40 -27
  280. package/lib/select/select.less +8 -6
  281. package/lib/select/select.variable.css +438 -46
  282. package/lib/select/selectTagInput.d.ts +7 -6
  283. package/lib/select/type.d.ts +10 -11
  284. package/lib/shared/frame-throttle.d.ts +15 -0
  285. package/lib/shared/index.d.ts +2 -2
  286. package/lib/shared/index.js +108 -89
  287. package/lib/shared/popover.d.ts +3 -3
  288. package/lib/shared/token.d.ts +1 -1
  289. package/lib/shared/vue-types.d.ts +46 -46
  290. package/lib/shared/z-index-manager.d.ts +6 -6
  291. package/lib/sideslider/index.d.ts +75 -217
  292. package/lib/sideslider/index.js +68 -42
  293. package/lib/sideslider/sideslider.css +152 -92
  294. package/lib/sideslider/sideslider.d.ts +35 -103
  295. package/lib/sideslider/sideslider.less +31 -112
  296. package/lib/sideslider/sideslider.variable.css +283 -92
  297. package/lib/slider/index.d.ts +19 -0
  298. package/lib/slider/index.js +64 -26
  299. package/lib/slider/slider.css +148 -4
  300. package/lib/slider/slider.d.ts +9 -0
  301. package/lib/slider/slider.less +15 -0
  302. package/lib/slider/slider.variable.css +276 -1
  303. package/lib/steps/index.d.ts +14 -29
  304. package/lib/steps/index.js +3 -4
  305. package/lib/steps/steps.css +168 -38
  306. package/lib/steps/steps.d.ts +8 -18
  307. package/lib/steps/steps.variable.css +262 -1
  308. package/lib/styles/index.d.ts +1 -1
  309. package/lib/styles/mixins/animate.css +130 -0
  310. package/lib/styles/mixins/animate.variable.css +262 -1
  311. package/lib/styles/mixins/mixins.css +130 -0
  312. package/lib/styles/mixins/mixins.variable.css +130 -0
  313. package/lib/styles/mixins/popper.css +130 -0
  314. package/lib/styles/mixins/popper.variable.css +262 -1
  315. package/lib/styles/mixins/scroll.css +130 -0
  316. package/lib/styles/mixins/scroll.variable.css +262 -1
  317. package/lib/styles/reset.css +130 -0
  318. package/lib/styles/reset.variable.css +262 -1
  319. package/lib/{rate/star.variable.css → styles/themes/themes.css} +2 -28
  320. package/lib/styles/themes/themes.less +299 -129
  321. package/lib/styles/themes/themes.variable.css +130 -0
  322. package/lib/swiper/index.js +5 -5
  323. package/lib/swiper/swiper.css +130 -0
  324. package/lib/swiper/swiper.variable.css +262 -1
  325. package/lib/switcher/index.js +2 -2
  326. package/lib/switcher/switcher.css +147 -17
  327. package/lib/switcher/switcher.d.ts +2 -2
  328. package/lib/switcher/switcher.variable.css +409 -18
  329. package/lib/tab/index.d.ts +44 -114
  330. package/lib/tab/index.js +47 -38
  331. package/lib/tab/props.d.ts +25 -50
  332. package/lib/tab/tab-nav.d.ts +24 -57
  333. package/lib/tab/tab-panel.d.ts +22 -0
  334. package/lib/tab/tab.css +211 -17
  335. package/lib/tab/tab.d.ts +10 -54
  336. package/lib/tab/tab.less +91 -4
  337. package/lib/tab/tab.variable.css +326 -1
  338. package/lib/table/components/ghost-body.d.ts +2 -0
  339. package/lib/table/components/table-cell.d.ts +25 -2
  340. package/lib/table/components/table-column.d.ts +20 -239
  341. package/lib/table/const.d.ts +26 -13
  342. package/lib/table/events.d.ts +16 -112
  343. package/lib/table/hooks/use-cell.d.ts +20 -0
  344. package/lib/table/hooks/use-column-resize.d.ts +7 -0
  345. package/lib/table/hooks/use-column-template.d.ts +5 -0
  346. package/lib/table/hooks/use-columns.d.ts +69 -0
  347. package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
  348. package/lib/table/hooks/use-fixed-column.d.ts +10 -0
  349. package/lib/table/hooks/use-head.d.ts +16 -0
  350. package/lib/table/hooks/use-layout.d.ts +25 -0
  351. package/lib/table/hooks/use-pagination.d.ts +16 -0
  352. package/lib/table/hooks/use-render.d.ts +21 -0
  353. package/lib/table/hooks/use-rows.d.ts +30 -0
  354. package/lib/table/hooks/use-settings.d.ts +136 -0
  355. package/lib/table/hooks/use-shift-key.d.ts +15 -0
  356. package/lib/table/index.d.ts +135 -738
  357. package/lib/table/index.js +21679 -3905
  358. package/lib/table/plugins/head-filter.css +139 -4
  359. package/lib/table/plugins/head-filter.d.ts +2 -1
  360. package/lib/table/plugins/head-filter.less +7 -3
  361. package/lib/table/plugins/head-filter.variable.css +271 -5
  362. package/lib/table/plugins/head-sort.css +130 -0
  363. package/lib/table/plugins/head-sort.variable.css +262 -1
  364. package/lib/table/plugins/settings.css +131 -0
  365. package/lib/table/plugins/settings.less +1 -0
  366. package/lib/table/plugins/settings.variable.css +263 -1
  367. package/lib/table/props.d.ts +135 -64
  368. package/lib/table/table.css +637 -303
  369. package/lib/table/table.d.ts +62 -185
  370. package/lib/table/table.less +265 -148
  371. package/lib/table/table.variable.css +907 -312
  372. package/lib/table/utils.d.ts +49 -21
  373. package/lib/table-column/index.d.ts +30 -579
  374. package/lib/table-column/index.js +17398 -317
  375. package/lib/tag/index.d.ts +11 -11
  376. package/lib/tag/index.js +2 -3
  377. package/lib/tag/tag.css +136 -6
  378. package/lib/tag/tag.d.ts +5 -5
  379. package/lib/tag/tag.less +1 -1
  380. package/lib/tag/tag.variable.css +263 -2
  381. package/lib/tag-input/common.d.ts +1 -1
  382. package/lib/tag-input/index.d.ts +8 -8
  383. package/lib/tag-input/index.js +37 -33
  384. package/lib/tag-input/tag-input.css +148 -18
  385. package/lib/tag-input/tag-input.d.ts +4 -4
  386. package/lib/tag-input/tag-input.variable.css +262 -1
  387. package/lib/tag-input/tag-props.d.ts +2 -2
  388. package/lib/time-picker/index.d.ts +0 -19
  389. package/lib/time-picker/time-picker.css +130 -0
  390. package/lib/time-picker/time-picker.variable.css +262 -1
  391. package/lib/timeline/index.js +2 -2
  392. package/lib/timeline/timeline.css +149 -19
  393. package/lib/timeline/timeline.variable.css +262 -1
  394. package/lib/transfer/const.d.ts +2 -2
  395. package/lib/transfer/index.js +19 -19
  396. package/lib/transfer/transfer.css +158 -28
  397. package/lib/transfer/transfer.less +3 -3
  398. package/lib/transfer/transfer.variable.css +271 -10
  399. package/lib/tree/constant.d.ts +24 -20
  400. package/lib/tree/index.d.ts +82 -24
  401. package/lib/tree/index.js +17660 -90
  402. package/lib/tree/props.d.ts +35 -10
  403. package/lib/tree/tree.css +256 -18
  404. package/lib/tree/tree.d.ts +34 -8
  405. package/lib/tree/tree.less +1 -1
  406. package/lib/tree/tree.variable.css +518 -19
  407. package/lib/tree/use-empty.d.ts +1 -1
  408. package/lib/tree/use-intersection-observer.d.ts +27 -0
  409. package/lib/tree/use-node-action.d.ts +10 -9
  410. package/lib/tree/use-node-async.d.ts +2 -1
  411. package/lib/tree/use-node-attribute.d.ts +47 -30
  412. package/lib/tree/use-search.d.ts +1 -1
  413. package/lib/tree/use-tree-init.d.ts +8 -5
  414. package/lib/tree/util.d.ts +21 -21
  415. package/lib/upload/index.d.ts +27 -4
  416. package/lib/upload/index.js +102 -51
  417. package/lib/upload/props.d.ts +7 -2
  418. package/lib/upload/upload.css +157 -27
  419. package/lib/upload/upload.d.ts +13 -2
  420. package/lib/upload/upload.type.d.ts +13 -7
  421. package/lib/upload/upload.variable.css +419 -28
  422. package/lib/upload/use-file-handler.d.ts +1 -1
  423. package/lib/virtual-render/index.d.ts +39 -46
  424. package/lib/virtual-render/index.js +17665 -130
  425. package/lib/virtual-render/props.d.ts +18 -9
  426. package/lib/virtual-render/use-fix-top.d.ts +3 -8
  427. package/lib/virtual-render/use-scrollbar.d.ts +11 -0
  428. package/lib/virtual-render/v-virtual-render.d.ts +9 -2
  429. package/lib/virtual-render/virtual-render.css +239 -9
  430. package/lib/virtual-render/virtual-render.d.ts +19 -22
  431. package/lib/virtual-render/virtual-render.less +1 -10
  432. package/lib/virtual-render/virtual-render.variable.css +501 -10
  433. package/lib/volar.components.d.ts +2 -0
  434. package/package.json +17 -55
  435. package/lib/rate/star.css +0 -27
  436. package/lib/rate/star.less +0 -34
  437. package/lib/shared/mask.d.ts +0 -11
  438. package/lib/table/plugins/col-group.d.ts +0 -38
  439. package/lib/table/plugins/settings.d.ts +0 -16
  440. package/lib/table/plugins/use-active-columns.d.ts +0 -16
  441. package/lib/table/plugins/use-column-resize.d.ts +0 -35
  442. package/lib/table/plugins/use-fixed-column.d.ts +0 -27
  443. package/lib/table/plugins/use-head-cell.d.ts +0 -7
  444. package/lib/table/plugins/use-pagination.d.ts +0 -21
  445. package/lib/table/use-attributes.d.ts +0 -61
  446. package/lib/table/use-column.d.ts +0 -276
  447. package/lib/table/use-common.d.ts +0 -1679
  448. package/lib/table/use-render.d.ts +0 -11
  449. /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
  450. /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
  451. /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
@@ -5,395 +5,10 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
6
6
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
7
7
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
8
- /******/ var __webpack_modules__ = ({
9
-
10
- /***/ 7609:
11
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
12
-
13
- var _typeof = (__webpack_require__(7425)["default"]);
14
- function _regeneratorRuntime() {
15
- "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
16
- module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
17
- return e;
18
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
19
- var t,
20
- e = {},
21
- r = Object.prototype,
22
- n = r.hasOwnProperty,
23
- o = Object.defineProperty || function (t, e, r) {
24
- t[e] = r.value;
25
- },
26
- i = "function" == typeof Symbol ? Symbol : {},
27
- a = i.iterator || "@@iterator",
28
- c = i.asyncIterator || "@@asyncIterator",
29
- u = i.toStringTag || "@@toStringTag";
30
- function define(t, e, r) {
31
- return Object.defineProperty(t, e, {
32
- value: r,
33
- enumerable: !0,
34
- configurable: !0,
35
- writable: !0
36
- }), t[e];
37
- }
38
- try {
39
- define({}, "");
40
- } catch (t) {
41
- define = function define(t, e, r) {
42
- return t[e] = r;
43
- };
44
- }
45
- function wrap(t, e, r, n) {
46
- var i = e && e.prototype instanceof Generator ? e : Generator,
47
- a = Object.create(i.prototype),
48
- c = new Context(n || []);
49
- return o(a, "_invoke", {
50
- value: makeInvokeMethod(t, r, c)
51
- }), a;
52
- }
53
- function tryCatch(t, e, r) {
54
- try {
55
- return {
56
- type: "normal",
57
- arg: t.call(e, r)
58
- };
59
- } catch (t) {
60
- return {
61
- type: "throw",
62
- arg: t
63
- };
64
- }
65
- }
66
- e.wrap = wrap;
67
- var h = "suspendedStart",
68
- l = "suspendedYield",
69
- f = "executing",
70
- s = "completed",
71
- y = {};
72
- function Generator() {}
73
- function GeneratorFunction() {}
74
- function GeneratorFunctionPrototype() {}
75
- var p = {};
76
- define(p, a, function () {
77
- return this;
78
- });
79
- var d = Object.getPrototypeOf,
80
- v = d && d(d(values([])));
81
- v && v !== r && n.call(v, a) && (p = v);
82
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
83
- function defineIteratorMethods(t) {
84
- ["next", "throw", "return"].forEach(function (e) {
85
- define(t, e, function (t) {
86
- return this._invoke(e, t);
87
- });
88
- });
89
- }
90
- function AsyncIterator(t, e) {
91
- function invoke(r, o, i, a) {
92
- var c = tryCatch(t[r], t, o);
93
- if ("throw" !== c.type) {
94
- var u = c.arg,
95
- h = u.value;
96
- return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
97
- invoke("next", t, i, a);
98
- }, function (t) {
99
- invoke("throw", t, i, a);
100
- }) : e.resolve(h).then(function (t) {
101
- u.value = t, i(u);
102
- }, function (t) {
103
- return invoke("throw", t, i, a);
104
- });
105
- }
106
- a(c.arg);
107
- }
108
- var r;
109
- o(this, "_invoke", {
110
- value: function value(t, n) {
111
- function callInvokeWithMethodAndArg() {
112
- return new e(function (e, r) {
113
- invoke(t, n, e, r);
114
- });
115
- }
116
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
117
- }
118
- });
119
- }
120
- function makeInvokeMethod(e, r, n) {
121
- var o = h;
122
- return function (i, a) {
123
- if (o === f) throw new Error("Generator is already running");
124
- if (o === s) {
125
- if ("throw" === i) throw a;
126
- return {
127
- value: t,
128
- done: !0
129
- };
130
- }
131
- for (n.method = i, n.arg = a;;) {
132
- var c = n.delegate;
133
- if (c) {
134
- var u = maybeInvokeDelegate(c, n);
135
- if (u) {
136
- if (u === y) continue;
137
- return u;
138
- }
139
- }
140
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
141
- if (o === h) throw o = s, n.arg;
142
- n.dispatchException(n.arg);
143
- } else "return" === n.method && n.abrupt("return", n.arg);
144
- o = f;
145
- var p = tryCatch(e, r, n);
146
- if ("normal" === p.type) {
147
- if (o = n.done ? s : l, p.arg === y) continue;
148
- return {
149
- value: p.arg,
150
- done: n.done
151
- };
152
- }
153
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
154
- }
155
- };
156
- }
157
- function maybeInvokeDelegate(e, r) {
158
- var n = r.method,
159
- o = e.iterator[n];
160
- if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
161
- var i = tryCatch(o, e.iterator, r.arg);
162
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
163
- var a = i.arg;
164
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
165
- }
166
- function pushTryEntry(t) {
167
- var e = {
168
- tryLoc: t[0]
169
- };
170
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
171
- }
172
- function resetTryEntry(t) {
173
- var e = t.completion || {};
174
- e.type = "normal", delete e.arg, t.completion = e;
175
- }
176
- function Context(t) {
177
- this.tryEntries = [{
178
- tryLoc: "root"
179
- }], t.forEach(pushTryEntry, this), this.reset(!0);
180
- }
181
- function values(e) {
182
- if (e || "" === e) {
183
- var r = e[a];
184
- if (r) return r.call(e);
185
- if ("function" == typeof e.next) return e;
186
- if (!isNaN(e.length)) {
187
- var o = -1,
188
- i = function next() {
189
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
190
- return next.value = t, next.done = !0, next;
191
- };
192
- return i.next = i;
193
- }
194
- }
195
- throw new TypeError(_typeof(e) + " is not iterable");
196
- }
197
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
198
- value: GeneratorFunctionPrototype,
199
- configurable: !0
200
- }), o(GeneratorFunctionPrototype, "constructor", {
201
- value: GeneratorFunction,
202
- configurable: !0
203
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
204
- var e = "function" == typeof t && t.constructor;
205
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
206
- }, e.mark = function (t) {
207
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
208
- }, e.awrap = function (t) {
209
- return {
210
- __await: t
211
- };
212
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
213
- return this;
214
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
215
- void 0 === i && (i = Promise);
216
- var a = new AsyncIterator(wrap(t, r, n, o), i);
217
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
218
- return t.done ? t.value : a.next();
219
- });
220
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
221
- return this;
222
- }), define(g, "toString", function () {
223
- return "[object Generator]";
224
- }), e.keys = function (t) {
225
- var e = Object(t),
226
- r = [];
227
- for (var n in e) r.push(n);
228
- return r.reverse(), function next() {
229
- for (; r.length;) {
230
- var t = r.pop();
231
- if (t in e) return next.value = t, next.done = !1, next;
232
- }
233
- return next.done = !0, next;
234
- };
235
- }, e.values = values, Context.prototype = {
236
- constructor: Context,
237
- reset: function reset(e) {
238
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
239
- },
240
- stop: function stop() {
241
- this.done = !0;
242
- var t = this.tryEntries[0].completion;
243
- if ("throw" === t.type) throw t.arg;
244
- return this.rval;
245
- },
246
- dispatchException: function dispatchException(e) {
247
- if (this.done) throw e;
248
- var r = this;
249
- function handle(n, o) {
250
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
251
- }
252
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
253
- var i = this.tryEntries[o],
254
- a = i.completion;
255
- if ("root" === i.tryLoc) return handle("end");
256
- if (i.tryLoc <= this.prev) {
257
- var c = n.call(i, "catchLoc"),
258
- u = n.call(i, "finallyLoc");
259
- if (c && u) {
260
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
261
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
262
- } else if (c) {
263
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
264
- } else {
265
- if (!u) throw new Error("try statement without catch or finally");
266
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
267
- }
268
- }
269
- }
270
- },
271
- abrupt: function abrupt(t, e) {
272
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
273
- var o = this.tryEntries[r];
274
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
275
- var i = o;
276
- break;
277
- }
278
- }
279
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
280
- var a = i ? i.completion : {};
281
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
282
- },
283
- complete: function complete(t, e) {
284
- if ("throw" === t.type) throw t.arg;
285
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
286
- },
287
- finish: function finish(t) {
288
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
289
- var r = this.tryEntries[e];
290
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
291
- }
292
- },
293
- "catch": function _catch(t) {
294
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
295
- var r = this.tryEntries[e];
296
- if (r.tryLoc === t) {
297
- var n = r.completion;
298
- if ("throw" === n.type) {
299
- var o = n.arg;
300
- resetTryEntry(r);
301
- }
302
- return o;
303
- }
304
- }
305
- throw new Error("illegal catch attempt");
306
- },
307
- delegateYield: function delegateYield(e, r, n) {
308
- return this.delegate = {
309
- iterator: values(e),
310
- resultName: r,
311
- nextLoc: n
312
- }, "next" === this.method && (this.arg = t), y;
313
- }
314
- }, e;
315
- }
316
- module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
317
-
318
- /***/ }),
319
-
320
- /***/ 7425:
321
- /***/ ((module) => {
322
-
323
- function _typeof(o) {
324
- "@babel/helpers - typeof";
325
-
326
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
327
- return typeof o;
328
- } : function (o) {
329
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
330
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
331
- }
332
- module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
333
-
334
- /***/ }),
335
-
336
- /***/ 2841:
337
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
338
-
339
- // TODO(Babel 8): Remove this file.
340
-
341
- var runtime = __webpack_require__(7609)();
342
- module.exports = runtime;
343
-
344
- // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
345
- try {
346
- regeneratorRuntime = runtime;
347
- } catch (accidentalStrictMode) {
348
- if (typeof globalThis === "object") {
349
- globalThis.regeneratorRuntime = runtime;
350
- } else {
351
- Function("r", "regeneratorRuntime = r")(runtime);
352
- }
353
- }
354
-
355
-
356
- /***/ })
357
-
358
- /******/ });
359
- /************************************************************************/
360
- /******/ // The module cache
361
- /******/ var __webpack_module_cache__ = {};
362
- /******/
363
- /******/ // The require function
364
- /******/ function __webpack_require__(moduleId) {
365
- /******/ // Check if module is in cache
366
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
367
- /******/ if (cachedModule !== undefined) {
368
- /******/ return cachedModule.exports;
369
- /******/ }
370
- /******/ // Create a new module (and put it into the cache)
371
- /******/ var module = __webpack_module_cache__[moduleId] = {
372
- /******/ // no module.id needed
373
- /******/ // no module.loaded needed
374
- /******/ exports: {}
375
- /******/ };
376
- /******/
377
- /******/ // Execute the module function
378
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
379
- /******/
380
- /******/ // Return the exports of the module
381
- /******/ return module.exports;
382
- /******/ }
8
+ /******/ // The require scope
9
+ /******/ var __webpack_require__ = {};
383
10
  /******/
384
11
  /************************************************************************/
385
- /******/ /* webpack/runtime/compat get default export */
386
- /******/ (() => {
387
- /******/ // getDefaultExport function for compatibility with non-harmony modules
388
- /******/ __webpack_require__.n = (module) => {
389
- /******/ var getter = module && module.__esModule ?
390
- /******/ () => (module['default']) :
391
- /******/ () => (module);
392
- /******/ __webpack_require__.d(getter, { a: getter });
393
- /******/ return getter;
394
- /******/ };
395
- /******/ })();
396
- /******/
397
12
  /******/ /* webpack/runtime/define property getters */
398
13
  /******/ (() => {
399
14
  /******/ // define getter functions for harmony exports
@@ -413,8 +28,6 @@ try {
413
28
  /******/
414
29
  /************************************************************************/
415
30
  var __webpack_exports__ = {};
416
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
417
- (() => {
418
31
 
419
32
  // EXPORTS
420
33
  __webpack_require__.d(__webpack_exports__, {
@@ -485,37 +98,6 @@ function _nonIterableRest() {
485
98
  function _slicedToArray(arr, i) {
486
99
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
487
100
  }
488
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
489
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
490
- try {
491
- var info = gen[key](arg);
492
- var value = info.value;
493
- } catch (error) {
494
- reject(error);
495
- return;
496
- }
497
- if (info.done) {
498
- resolve(value);
499
- } else {
500
- Promise.resolve(value).then(_next, _throw);
501
- }
502
- }
503
- function _asyncToGenerator(fn) {
504
- return function () {
505
- var self = this,
506
- args = arguments;
507
- return new Promise(function (resolve, reject) {
508
- var gen = fn.apply(self, args);
509
- function _next(value) {
510
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
511
- }
512
- function _throw(err) {
513
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
514
- }
515
- _next(undefined);
516
- });
517
- };
518
- }
519
101
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
520
102
  function _objectWithoutPropertiesLoose(source, excluded) {
521
103
  if (source == null) return {};
@@ -594,10 +176,7 @@ function _defineProperty(obj, key, value) {
594
176
  ;// CONCATENATED MODULE: external "vue"
595
177
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
596
178
  var external_vue_y = x => () => x
597
- 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, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
598
- // EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
599
- var regenerator = __webpack_require__(2841);
600
- var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
179
+ 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, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
601
180
  ;// CONCATENATED MODULE: external "../config-provider"
602
181
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
603
182
  var config_provider_y = x => () => x
@@ -638,7 +217,7 @@ const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE
638
217
  */
639
218
  var hiddenTextarea = undefined;
640
219
  // ${isFirefox() ? '' : 'overflow:hidden !important;'}
641
- var HIDDEN_STYLE = "\n height:0 !important;\n visibility:hidden !important;\n \n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n";
220
+ var HIDDEN_STYLE = "\n height:0 !important;\n visibility:hidden !important;\n\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n";
642
221
  var CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
643
222
  function calculateNodeStyling(targetElement) {
644
223
  var style = window.getComputedStyle(targetElement);
@@ -703,11 +282,9 @@ function calcTextareaHeight(targetElement) {
703
282
 
704
283
 
705
284
 
706
-
707
285
  var _excluded = ["class", "style"];
708
286
  var _inputEmitEventsType;
709
287
 
710
-
711
288
  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; }
712
289
  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; }
713
290
  /*
@@ -776,24 +353,26 @@ var inputType = {
776
353
  };
777
354
  var EVENTS;
778
355
  (function (EVENTS) {
779
- EVENTS["UPDATE"] = "update:modelValue";
780
- EVENTS["FOCUS"] = "focus";
781
356
  EVENTS["BLUR"] = "blur";
782
357
  EVENTS["CHANGE"] = "change";
783
358
  EVENTS["CLEAR"] = "clear";
359
+ EVENTS["COMPOSITIONEND"] = "compositionend";
360
+ EVENTS["COMPOSITIONSTART"] = "compositionstart";
361
+ EVENTS["COMPOSITIONUPDATE"] = "compositionupdate";
362
+ EVENTS["ENTER"] = "enter";
363
+ EVENTS["FOCUS"] = "focus";
784
364
  EVENTS["INPUT"] = "input";
785
- EVENTS["KEYPRESS"] = "keypress";
786
365
  EVENTS["KEYDOWN"] = "keydown";
366
+ EVENTS["KEYPRESS"] = "keypress";
787
367
  EVENTS["KEYUP"] = "keyup";
788
- EVENTS["ENTER"] = "enter";
789
368
  EVENTS["PASTE"] = "paste";
790
- EVENTS["COMPOSITIONSTART"] = "compositionstart";
791
- EVENTS["COMPOSITIONUPDATE"] = "compositionupdate";
792
- EVENTS["COMPOSITIONEND"] = "compositionend";
369
+ EVENTS["UPDATE"] = "update:modelValue";
793
370
  })(EVENTS || (EVENTS = {}));
371
+ /* eslint-disable-next-line */
794
372
  function EventFunction(_value, _evt) {
795
373
  return true;
796
374
  }
375
+ /* eslint-disable-next-line */
797
376
  function PastEventFunction(_value, _e) {
798
377
  return true;
799
378
  }
@@ -808,7 +387,6 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
808
387
  return true;
809
388
  }), EVENTS.INPUT, EventFunction), EVENTS.KEYPRESS, EventFunction), EVENTS.KEYDOWN, EventFunction), EVENTS.KEYUP, EventFunction), EVENTS.ENTER, EventFunction), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_inputEmitEventsType, EVENTS.PASTE, PastEventFunction), EVENTS.COMPOSITIONSTART, CompositionEventFunction), EVENTS.COMPOSITIONUPDATE, CompositionEventFunction), EVENTS.COMPOSITIONEND, CompositionEventFunction));
810
389
  /* harmony default export */ const input = ((0,external_vue_namespaceObject.defineComponent)({
811
- // eslint-disable-next-line vue/no-reserved-component-names
812
390
  name: 'Input',
813
391
  directives: {
814
392
  bkTooltips: directives_namespaceObject.bkTooltips
@@ -841,39 +419,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
841
419
  return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(inputClsPrefix.value, "--").concat(props.size), !!props.size), "resizable", props.resize), 'is-focused', isFocused.value), 'is-readonly', props.readonly && !props.selectReadonly), 'is-disabled', props.disabled), 'is-simplicity', props.behavior === 'simplicity'), "".concat(ctx.attrs["class"]), !!ctx.attrs["class"]), inputClsPrefix.value);
842
420
  });
843
421
  var isOverflow = (0,external_vue_namespaceObject.ref)(false);
844
- var textareaCalcStyle = (0,external_vue_namespaceObject.ref)({});
845
- var resizeTextarea = function resizeTextarea() {
846
- if (!isTextArea.value) return;
847
- if (props.autosize) {
848
- var _props$autosize, _props$autosize2;
849
- var minRows = (_props$autosize = props.autosize) === null || _props$autosize === void 0 ? void 0 : _props$autosize.minRows;
850
- var maxRows = (_props$autosize2 = props.autosize) === null || _props$autosize2 === void 0 ? void 0 : _props$autosize2.maxRows;
851
- var textareaStyle = calcTextareaHeight(inputRef.value, minRows, maxRows);
852
- textareaCalcStyle.value = _objectSpread({
853
- overflowY: 'hidden'
854
- }, textareaStyle);
855
- (0,external_vue_namespaceObject.nextTick)(function () {
856
- textareaCalcStyle.value = textareaStyle;
857
- });
858
- } else {
859
- textareaCalcStyle.value = {
860
- minHeight: calcTextareaHeight(inputRef.value).minHeight
861
- };
862
- }
863
- };
864
- var createOnceInitResize = function createOnceInitResize(resizeTextarea) {
865
- var isInit = false;
866
- return function () {
867
- var _inputRef$value;
868
- if (isInit || !props.autosize) return;
869
- var isElHidden = ((_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.offsetParent) === null;
870
- if (!isElHidden) {
871
- resizeTextarea();
872
- isInit = true;
873
- }
874
- };
875
- };
876
- var onceInitSizeTextarea = createOnceInitResize(resizeTextarea);
422
+ var textareaCalcStyle = (0,external_vue_namespaceObject.ref)();
877
423
  var suffixCls = getCls('suffix-icon');
878
424
  var suffixIconMap = {
879
425
  search: function search() {
@@ -881,8 +427,8 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
881
427
  },
882
428
  password: function password() {
883
429
  return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Unvisible, {
884
- "onClick": handleVisibleChange,
885
- "class": suffixCls
430
+ "class": suffixCls,
431
+ "onClick": handleVisibleChange
886
432
  }, null);
887
433
  }
888
434
  };
@@ -948,13 +494,14 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
948
494
  });
949
495
  });
950
496
  var tooltips = (0,external_vue_namespaceObject.computed)(function () {
497
+ var _props$modelValue2;
951
498
  if (showMaxLimit.value && ceilMaxLength.value - modelValueLength.value === 0) {
952
499
  return {
953
500
  content: t.value.maxlengthLimitTips
954
501
  };
955
502
  }
956
503
  return props.showOverflowTooltips && isOverflow.value && props.modelValue ? {
957
- content: props.modelValue,
504
+ content: (_props$modelValue2 = props.modelValue) === null || _props$modelValue2 === void 0 ? void 0 : _props$modelValue2.toString(),
958
505
  sameWidth: true
959
506
  } : {
960
507
  disabled: true
@@ -963,26 +510,11 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
963
510
  var showMaxLimit = (0,external_vue_namespaceObject.computed)(function () {
964
511
  return typeof props.maxlength === 'number' || typeof props.maxcharacter === 'number';
965
512
  });
966
- var resizeObserver = new ResizeObserver(function () {
967
- onceInitSizeTextarea();
968
- setOverflow();
969
- });
970
513
  (0,external_vue_namespaceObject.watch)(function () {
971
514
  return props.type;
972
- }, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
973
- return regenerator_default().wrap(function _callee$(_context) {
974
- while (1) switch (_context.prev = _context.next) {
975
- case 0:
976
- _context.next = 2;
977
- return (0,external_vue_namespaceObject.nextTick)();
978
- case 2:
979
- resizeTextarea();
980
- case 3:
981
- case "end":
982
- return _context.stop();
983
- }
984
- }, _callee);
985
- })));
515
+ }, function () {
516
+ (0,external_vue_namespaceObject.nextTick)(onResize);
517
+ });
986
518
  (0,external_vue_namespaceObject.watch)(function () {
987
519
  return props.modelValue;
988
520
  }, function (val) {
@@ -993,26 +525,16 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
993
525
  innerInputValue.value = {
994
526
  value: val
995
527
  };
996
- (0,external_vue_namespaceObject.nextTick)(function () {
997
- return resizeTextarea();
998
- });
999
- setOverflow();
528
+ (0,external_vue_namespaceObject.nextTick)(onResize);
1000
529
  });
1001
530
  (0,external_vue_namespaceObject.onMounted)(function () {
1002
- setOverflow();
1003
- resizeObserver.observe(inputRef.value);
1004
- (0,external_vue_namespaceObject.nextTick)(function () {
1005
- return resizeTextarea();
1006
- });
531
+ (0,external_vue_namespaceObject.nextTick)(onResize);
1007
532
  // Hack: 修复autofocus属性失效问题 原生autofocus属性只在页面加载时生效
1008
533
  if (Object.prototype.hasOwnProperty.call(ctx.attrs, 'autofocus')) {
1009
- var _inputRef$value2, _inputRef$value2$focu;
1010
- (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || (_inputRef$value2$focu = _inputRef$value2.focus) === null || _inputRef$value2$focu === void 0 || _inputRef$value2$focu.call(_inputRef$value2);
534
+ var _inputRef$value, _inputRef$value$focus;
535
+ (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || (_inputRef$value$focus = _inputRef$value.focus) === null || _inputRef$value$focus === void 0 || _inputRef$value$focus.call(_inputRef$value);
1011
536
  }
1012
537
  });
1013
- (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
1014
- resizeObserver.disconnect();
1015
- });
1016
538
  ctx.expose({
1017
539
  focus: function focus() {
1018
540
  inputRef.value.focus();
@@ -1023,6 +545,31 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
1023
545
  },
1024
546
  clear: clear
1025
547
  });
548
+ function onResize() {
549
+ autoResizeTextarea();
550
+ setOverflow();
551
+ }
552
+ function autoResizeTextarea() {
553
+ var _inputRef$value2;
554
+ var isElHidden = ((_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.offsetParent) === null;
555
+ if (!isTextArea.value || isElHidden || props.resize) return;
556
+ if (props.autosize) {
557
+ var _props$autosize, _props$autosize2;
558
+ var minRows = (_props$autosize = props.autosize) === null || _props$autosize === void 0 ? void 0 : _props$autosize.minRows;
559
+ var maxRows = (_props$autosize2 = props.autosize) === null || _props$autosize2 === void 0 ? void 0 : _props$autosize2.maxRows;
560
+ var textareaStyle = calcTextareaHeight(inputRef.value, minRows, maxRows);
561
+ textareaCalcStyle.value = _objectSpread({
562
+ overflowY: 'hidden'
563
+ }, textareaStyle);
564
+ (0,external_vue_namespaceObject.nextTick)(function () {
565
+ textareaCalcStyle.value = textareaStyle;
566
+ });
567
+ } else {
568
+ textareaCalcStyle.value = {
569
+ minHeight: calcTextareaHeight(inputRef.value).minHeight
570
+ };
571
+ }
572
+ }
1026
573
  function detectOverflow() {
1027
574
  var _inputRef$value3, _inputRef$value4;
1028
575
  return ((_inputRef$value3 = inputRef.value) === null || _inputRef$value3 === void 0 ? void 0 : _inputRef$value3.scrollWidth) > ((_inputRef$value4 = inputRef.value) === null || _inputRef$value4 === void 0 ? void 0 : _inputRef$value4.clientWidth) + 2;
@@ -1101,20 +648,23 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
1101
648
  isCNInput.value = false;
1102
649
  handleInput(e);
1103
650
  }
651
+ function isNum(num) {
652
+ return typeof num === 'number' && !Number.isNaN(num);
653
+ }
1104
654
  function handleNumber(modelValue, step) {
1105
655
  var INC = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
1106
656
  var numStep = Number(step);
657
+ var factor = isNum(numStep) ? numStep : 1;
1107
658
  var precision = Number.isInteger(props.precision) ? props.precision : 0;
1108
659
  var val = Number(modelValue);
1109
- var factor = Number.isInteger(numStep) ? numStep : 1;
1110
660
  if (Number.isNaN(val)) {
1111
- return Number.isInteger(props.min) ? props.min : 0;
661
+ return isNum(props.min) ? props.min : 0;
1112
662
  }
1113
663
  var newVal = val + (INC ? factor : -1 * factor);
1114
- if (Number.isInteger(props.max)) {
664
+ if (isNum(props.max)) {
1115
665
  newVal = Math.min(newVal, props.max);
1116
666
  }
1117
- if (Number.isInteger(props.min)) {
667
+ if (isNum(props.min)) {
1118
668
  newVal = Math.max(newVal, props.min);
1119
669
  }
1120
670
  return +newVal.toFixed(precision);
@@ -1160,8 +710,8 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
1160
710
  return function () {
1161
711
  var _ctx$slots$prefix, _ctx$slots, _ctx$slots$prefix2, _ctx$slots$suffix, _ctx$slots2, _ctx$slots2$suffix;
1162
712
  return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
1163
- "class": inputCls.value,
1164
- "style": style
713
+ "style": style,
714
+ "class": inputCls.value
1165
715
  }, [(_ctx$slots$prefix = (_ctx$slots = ctx.slots) === null || _ctx$slots === void 0 || (_ctx$slots$prefix2 = _ctx$slots.prefix) === null || _ctx$slots$prefix2 === void 0 ? void 0 : _ctx$slots$prefix2.call(_ctx$slots)) !== null && _ctx$slots$prefix !== void 0 ? _ctx$slots$prefix : props.prefix && (0,external_vue_namespaceObject.createVNode)("div", {
1166
716
  "class": getCls('prefix-area')
1167
717
  }, [(0,external_vue_namespaceObject.createVNode)("span", {
@@ -1170,18 +720,18 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
1170
720
  "ref": inputRef,
1171
721
  "spellcheck": false
1172
722
  }, inputAttrs, eventListener, bindProps.value, {
1173
- "rows": props.rows,
1174
- "style": textareaCalcStyle.value
723
+ "style": textareaCalcStyle.value,
724
+ "rows": props.rows
1175
725
  }, innerInputValue.value), null) : (0,external_vue_namespaceObject.createVNode)("input", (0,external_vue_namespaceObject.mergeProps)({
1176
726
  "spellcheck": false
1177
727
  }, inputAttrs, {
1178
728
  "ref": inputRef,
1179
729
  "class": "".concat(inputClsPrefix.value, "--text"),
1180
- "type": pwdVisible.value && props.type === 'password' ? 'text' : props.type,
1181
- "step": props.step,
1182
730
  "max": props.max,
1183
- "min": props.min
1184
- }, eventListener, bindProps.value, innerInputValue.value), null), !isTextArea.value && props.clearable && !!props.modelValue && (0,external_vue_namespaceObject.createVNode)("span", {
731
+ "min": props.min,
732
+ "step": props.step,
733
+ "type": pwdVisible.value && props.type === 'password' ? 'text' : props.type
734
+ }, eventListener, bindProps.value, innerInputValue.value), null), props.clearable && !!props.modelValue && (0,external_vue_namespaceObject.createVNode)("span", {
1185
735
  "class": clearCls.value,
1186
736
  "onClick": clear
1187
737
  }, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, null, null)]), suffixIcon.value, showMaxLimit.value && (props.showWordLimit || isTextArea.value) && (0,external_vue_namespaceObject.createVNode)("p", {
@@ -1232,7 +782,5 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
1232
782
 
1233
783
  var BkInput = (0,shared_namespaceObject.withInstall)(input);
1234
784
  /* harmony default export */ const src = (BkInput);
1235
- })();
1236
-
1237
785
  var __webpack_exports__default = __webpack_exports__["default"];
1238
786
  export { __webpack_exports__default as default };