bkui-vue 0.0.2-beta.8 → 0.0.2-beta.80

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 (395) hide show
  1. package/dist/index.cjs.js +70 -62
  2. package/dist/index.esm.js +15668 -15161
  3. package/dist/index.umd.js +73 -65
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/affix/affix.d.ts +1 -1
  15. package/lib/affix/index.d.ts +4 -4
  16. package/lib/affix/index.js +1 -1
  17. package/lib/alert/alert.css +7 -0
  18. package/lib/alert/alert.d.ts +5 -5
  19. package/lib/alert/alert.less +16 -6
  20. package/lib/alert/alert.variable.css +7 -0
  21. package/lib/alert/index.d.ts +10 -10
  22. package/lib/alert/index.js +1 -1
  23. package/lib/animate-number/index.d.ts +1 -1
  24. package/lib/animate-number/index.js +1 -1
  25. package/lib/backtop/backtop.css +8 -8
  26. package/lib/backtop/backtop.less +3 -1
  27. package/lib/backtop/backtop.variable.css +11 -11
  28. package/lib/backtop/index.d.ts +1 -1
  29. package/lib/backtop/index.js +1 -1
  30. package/lib/badge/badge.d.ts +2 -2
  31. package/lib/badge/index.d.ts +7 -7
  32. package/lib/badge/index.js +1 -1
  33. package/lib/breadcrumb/breadcrumb.css +4 -4
  34. package/lib/breadcrumb/breadcrumb.variable.css +4 -4
  35. package/lib/breadcrumb/index.d.ts +2 -2
  36. package/lib/breadcrumb/index.js +1 -1
  37. package/lib/button/button.css +20 -0
  38. package/lib/button/button.less +105 -94
  39. package/lib/button/button.variable.css +20 -0
  40. package/lib/button/index.d.ts +2 -2
  41. package/lib/button/index.js +1 -1
  42. package/lib/card/card.css +4 -4
  43. package/lib/card/card.d.ts +1 -1
  44. package/lib/card/card.variable.css +4 -4
  45. package/lib/card/index.d.ts +4 -4
  46. package/lib/card/index.js +1 -1
  47. package/lib/cascader/cascader.css +4 -4
  48. package/lib/cascader/cascader.d.ts +1 -0
  49. package/lib/cascader/cascader.variable.css +4 -4
  50. package/lib/cascader/index.d.ts +5 -2
  51. package/lib/cascader/index.js +1 -1
  52. package/lib/cascader/interface.d.ts +1 -1
  53. package/lib/checkbox/checkbox-group.d.ts +6 -3
  54. package/lib/checkbox/checkbox.d.ts +4 -4
  55. package/lib/checkbox/index.d.ts +22 -19
  56. package/lib/checkbox/index.js +1 -1
  57. package/lib/code-diff/index.d.ts +1 -1
  58. package/lib/code-diff/index.js +1 -1
  59. package/lib/collapse/index.d.ts +2 -2
  60. package/lib/collapse/index.js +1 -1
  61. package/lib/collapse-transition/index.d.ts +128 -2
  62. package/lib/collapse-transition/index.js +1 -1
  63. package/lib/color-picker/color-picker.d.ts +16 -0
  64. package/lib/color-picker/components/recommend-colors.d.ts +16 -0
  65. package/lib/color-picker/index.d.ts +19 -1
  66. package/lib/color-picker/index.js +1 -1
  67. package/lib/components.d.ts +1 -1
  68. package/lib/components.js +1 -1
  69. package/lib/config-provider/config-provider.d.ts +3 -0
  70. package/lib/config-provider/index.d.ts +5 -1
  71. package/lib/config-provider/index.js +1 -1
  72. package/lib/config-provider/token.d.ts +1 -0
  73. package/lib/config-provider/use-global-config.d.ts +2 -0
  74. package/lib/config-provider/use-prefix.d.ts +2 -0
  75. package/lib/container/container.css +4 -4
  76. package/lib/container/container.variable.css +4 -4
  77. package/lib/container/index.d.ts +2 -2
  78. package/lib/container/index.js +1 -1
  79. package/lib/date-picker/date-picker.d.ts +4 -2
  80. package/lib/date-picker/index.d.ts +15 -8
  81. package/lib/date-picker/index.js +1 -1
  82. package/lib/date-picker/panel/date-range.d.ts +2 -1
  83. package/lib/date-picker/time-picker.d.ts +1 -1
  84. package/lib/dialog/dialog.css +2 -0
  85. package/lib/dialog/dialog.variable.css +2 -0
  86. package/lib/dialog/index.d.ts +1 -1
  87. package/lib/dialog/index.js +1 -1
  88. package/lib/directives/index.js +1 -1
  89. package/lib/directives/tooltips.d.ts +3 -2
  90. package/lib/dist.index.js +1 -1
  91. package/lib/divider/index.d.ts +1 -1
  92. package/lib/divider/index.js +1 -1
  93. package/lib/dropdown/dropdown.css +1 -0
  94. package/lib/dropdown/dropdown.d.ts +1 -1
  95. package/lib/dropdown/dropdown.variable.css +1 -0
  96. package/lib/dropdown/index.d.ts +7 -7
  97. package/lib/dropdown/index.js +1 -1
  98. package/lib/exception/index.d.ts +2 -2
  99. package/lib/exception/index.js +1 -1
  100. package/lib/fixed-navbar/index.d.ts +1 -1
  101. package/lib/fixed-navbar/index.js +1 -1
  102. package/lib/form/index.d.ts +3 -3
  103. package/lib/form/index.js +1 -1
  104. package/lib/hooks.d.ts +1 -1
  105. package/lib/hooks.js +1 -1
  106. package/lib/icon/angle-double-down-line.js +1 -1
  107. package/lib/icon/angle-double-left-line.js +1 -1
  108. package/lib/icon/angle-double-left.js +1 -1
  109. package/lib/icon/angle-double-right-line.js +1 -1
  110. package/lib/icon/angle-double-right.js +1 -1
  111. package/lib/icon/angle-double-up-line.js +1 -1
  112. package/lib/icon/angle-down-fill.js +1 -1
  113. package/lib/icon/angle-down-line.js +1 -1
  114. package/lib/icon/angle-down.js +1 -1
  115. package/lib/icon/angle-left.js +1 -1
  116. package/lib/icon/angle-right.js +1 -1
  117. package/lib/icon/angle-up-fill.js +1 -1
  118. package/lib/icon/angle-up.js +1 -1
  119. package/lib/icon/archive-fill.js +1 -1
  120. package/lib/icon/arrows-left.js +1 -1
  121. package/lib/icon/arrows-right.js +1 -1
  122. package/lib/icon/assistant.d.ts +4 -0
  123. package/lib/icon/assistant.js +1 -0
  124. package/lib/icon/audio-fill.js +1 -1
  125. package/lib/icon/bk.js +1 -1
  126. package/lib/icon/circle.js +1 -1
  127. package/lib/icon/close-line.js +1 -1
  128. package/lib/icon/close.js +1 -1
  129. package/lib/icon/code.js +1 -1
  130. package/lib/icon/cog-shape.js +1 -1
  131. package/lib/icon/collapse-left.js +1 -1
  132. package/lib/icon/copy-shape.js +1 -1
  133. package/lib/icon/copy.js +1 -1
  134. package/lib/icon/data-shape.js +1 -1
  135. package/lib/icon/del.js +1 -1
  136. package/lib/icon/doc-fill.js +1 -1
  137. package/lib/icon/done.js +1 -1
  138. package/lib/icon/down-shape.js +1 -1
  139. package/lib/icon/down-small.js +1 -1
  140. package/lib/icon/edit-line.js +1 -1
  141. package/lib/icon/ellipsis.js +1 -1
  142. package/lib/icon/enlarge-line.js +1 -1
  143. package/lib/icon/error.js +1 -1
  144. package/lib/icon/excel-fill.js +1 -1
  145. package/lib/icon/exclamation-circle-shape.js +1 -1
  146. package/lib/icon/eye.js +1 -1
  147. package/lib/icon/filliscreen-line.js +1 -1
  148. package/lib/icon/fix-line.js +1 -1
  149. package/lib/icon/fix-shape.js +1 -1
  150. package/lib/icon/folder-open.js +1 -1
  151. package/lib/icon/folder-shape-open.js +1 -1
  152. package/lib/icon/folder-shape.js +1 -1
  153. package/lib/icon/folder.js +1 -1
  154. package/lib/icon/funnel.js +1 -1
  155. package/lib/icon/help-document-fill.js +1 -1
  156. package/lib/icon/help-fill.js +1 -1
  157. package/lib/icon/help.js +1 -1
  158. package/lib/icon/image-fill.js +1 -1
  159. package/lib/icon/img-error.js +1 -1
  160. package/lib/icon/img-placehoulder.js +1 -1
  161. package/lib/icon/index.d.ts +1 -0
  162. package/lib/icon/index.js +1 -1
  163. package/lib/icon/info-line.js +1 -1
  164. package/lib/icon/info.js +1 -1
  165. package/lib/icon/left-shape.js +1 -1
  166. package/lib/icon/left-turn-line.js +1 -1
  167. package/lib/icon/narrow-line.js +1 -1
  168. package/lib/icon/original.js +1 -1
  169. package/lib/icon/pdf-fill.js +1 -1
  170. package/lib/icon/play-shape.js +1 -1
  171. package/lib/icon/plus.js +1 -1
  172. package/lib/icon/ppt-fill.js +1 -1
  173. package/lib/icon/qq.js +1 -1
  174. package/lib/icon/right-shape.js +1 -1
  175. package/lib/icon/right-turn-line.js +1 -1
  176. package/lib/icon/search.js +1 -1
  177. package/lib/icon/share.js +1 -1
  178. package/lib/icon/spinner.js +1 -1
  179. package/lib/icon/success.js +1 -1
  180. package/lib/icon/switcher-loading.js +1 -1
  181. package/lib/icon/text-file.js +1 -1
  182. package/lib/icon/text-fill.js +1 -1
  183. package/lib/icon/transfer.js +1 -1
  184. package/lib/icon/tree-application-shape.js +1 -1
  185. package/lib/icon/unfull-screen.js +1 -1
  186. package/lib/icon/unvisible.js +1 -1
  187. package/lib/icon/up-shape.js +1 -1
  188. package/lib/icon/upload.js +1 -1
  189. package/lib/icon/video-fill.js +1 -1
  190. package/lib/icon/warn.js +1 -1
  191. package/lib/icon/weixin-pro.js +1 -1
  192. package/lib/icon/weixin.js +1 -1
  193. package/lib/image/index.d.ts +1 -1
  194. package/lib/image/index.js +1 -1
  195. package/lib/index.js +1 -1
  196. package/lib/info-box/index.js +1 -1
  197. package/lib/info-box/info-box.css +2 -0
  198. package/lib/info-box/info-box.less +2 -1
  199. package/lib/info-box/info-box.variable.css +2 -0
  200. package/lib/input/index.d.ts +146 -50
  201. package/lib/input/index.js +2 -1
  202. package/lib/input/index.js.LICENSE.txt +1 -0
  203. package/lib/input/input.css +38 -10
  204. package/lib/input/input.d.ts +100 -11
  205. package/lib/input/input.less +53 -14
  206. package/lib/input/input.variable.css +38 -10
  207. package/lib/input/util.d.ts +6 -0
  208. package/lib/link/index.d.ts +4 -4
  209. package/lib/link/index.js +1 -1
  210. package/lib/link/link.d.ts +1 -1
  211. package/lib/loading/index.d.ts +2 -2
  212. package/lib/loading/index.js +1 -1
  213. package/lib/loading/loading.css +4 -4
  214. package/lib/loading/loading.variable.css +4 -4
  215. package/lib/locale/index.js +1 -1
  216. package/lib/locale/lang/en.d.ts +1 -0
  217. package/lib/menu/index.d.ts +2 -2
  218. package/lib/menu/index.js +1 -1
  219. package/lib/menu/menu.css +4 -4
  220. package/lib/menu/menu.variable.css +4 -4
  221. package/lib/message/index.js +1 -1
  222. package/lib/message/message.css +33 -9
  223. package/lib/message/message.less +78 -54
  224. package/lib/message/message.variable.css +33 -9
  225. package/lib/message/messageConstructor.d.ts +30 -8
  226. package/lib/modal/index.d.ts +2 -2
  227. package/lib/modal/index.js +1 -1
  228. package/lib/modal/modal.css +2 -0
  229. package/lib/modal/modal.variable.css +2 -0
  230. package/lib/navigation/index.d.ts +4 -1
  231. package/lib/navigation/index.js +1 -1
  232. package/lib/navigation/navigation.d.ts +1 -0
  233. package/lib/notify/index.js +1 -1
  234. package/lib/notify/notifyConstructor.d.ts +1 -1
  235. package/lib/overflow-title/components/overflow-title.d.ts +257 -1
  236. package/lib/overflow-title/index.d.ts +387 -2
  237. package/lib/overflow-title/index.js +1 -1
  238. package/lib/overflow-title/props.d.ts +129 -0
  239. package/lib/pagination/index.d.ts +2 -2
  240. package/lib/pagination/index.js +1 -1
  241. package/lib/plugin-popover/index.js +1 -1
  242. package/lib/plugins/index.js +1 -1
  243. package/lib/pop-confirm/index.d.ts +1 -1
  244. package/lib/pop-confirm/index.js +1 -1
  245. package/lib/popover/const.d.ts +22 -9
  246. package/lib/popover/content.d.ts +33 -0
  247. package/lib/popover/index.d.ts +154 -61
  248. package/lib/popover/index.js +1 -1
  249. package/lib/popover/popover.css +1 -0
  250. package/lib/popover/popover.d.ts +64 -23
  251. package/lib/popover/popover.less +3 -2
  252. package/lib/popover/popover.variable.css +1 -0
  253. package/lib/popover/props.d.ts +29 -4
  254. package/lib/popover/use-floating.d.ts +2 -2
  255. package/lib/popover/use-popover-init.d.ts +2 -1
  256. package/lib/popover2/index.d.ts +1 -1
  257. package/lib/popover2/index.js +1 -1
  258. package/lib/preset.d.ts +2 -0
  259. package/lib/preset.js +1 -1
  260. package/lib/process/index.d.ts +1 -1
  261. package/lib/process/index.js +1 -1
  262. package/lib/progress/index.d.ts +1 -1
  263. package/lib/progress/index.js +1 -1
  264. package/lib/progress/progress.css +4 -4
  265. package/lib/progress/progress.variable.css +4 -4
  266. package/lib/radio/index.d.ts +23 -23
  267. package/lib/radio/index.js +1 -1
  268. package/lib/radio/radio-button.d.ts +4 -4
  269. package/lib/radio/radio-group.d.ts +4 -4
  270. package/lib/radio/radio.d.ts +4 -4
  271. package/lib/rate/index.d.ts +8 -4
  272. package/lib/rate/index.js +1 -1
  273. package/lib/rate/rate.d.ts +2 -1
  274. package/lib/resize-layout/index.d.ts +4 -4
  275. package/lib/resize-layout/index.js +1 -1
  276. package/lib/resize-layout/resize-layout.css +12 -0
  277. package/lib/resize-layout/resize-layout.d.ts +1 -1
  278. package/lib/resize-layout/resize-layout.less +12 -0
  279. package/lib/resize-layout/resize-layout.variable.css +12 -0
  280. package/lib/search-select/index.d.ts +62 -29
  281. package/lib/search-select/index.js +1 -1
  282. package/lib/search-select/input.d.ts +5 -1
  283. package/lib/search-select/menu.d.ts +33 -2
  284. package/lib/search-select/search-select.css +37 -17
  285. package/lib/search-select/search-select.d.ts +23 -20
  286. package/lib/search-select/search-select.less +34 -11
  287. package/lib/search-select/search-select.variable.css +37 -17
  288. package/lib/search-select/selected.d.ts +5 -1
  289. package/lib/search-select/utils.d.ts +13 -5
  290. package/lib/select/common.d.ts +1 -0
  291. package/lib/select/index.d.ts +203 -84
  292. package/lib/select/index.js +1 -1
  293. package/lib/select/option.d.ts +11 -0
  294. package/lib/select/select.css +13 -5
  295. package/lib/select/select.d.ts +86 -37
  296. package/lib/select/select.less +11 -1
  297. package/lib/select/select.variable.css +37 -29
  298. package/lib/select/selectTagInput.d.ts +8 -5
  299. package/lib/shared/helper.d.ts +1 -1
  300. package/lib/shared/index.js +1 -1
  301. package/lib/shared/mask-manager.d.ts +3 -4
  302. package/lib/shared/pop-manager.d.ts +6 -2
  303. package/lib/shared/popover.d.ts +2 -2
  304. package/lib/shared/vue-types.d.ts +3 -2
  305. package/lib/sideslider/index.d.ts +1 -1
  306. package/lib/sideslider/index.js +1 -1
  307. package/lib/slider/index.d.ts +1 -1
  308. package/lib/slider/index.js +1 -1
  309. package/lib/steps/index.d.ts +1 -1
  310. package/lib/steps/index.js +1 -1
  311. package/lib/styles/mixins/animate.css +4 -4
  312. package/lib/styles/mixins/animate.less +10 -6
  313. package/lib/styles/mixins/animate.variable.css +126 -4
  314. package/lib/styles/mixins/mixins.css +4 -4
  315. package/lib/styles/mixins/mixins.variable.css +4 -4
  316. package/lib/styles/mixins/popper.less +6 -5
  317. package/lib/swiper/index.d.ts +1 -1
  318. package/lib/swiper/index.js +1 -1
  319. package/lib/swiper/swiper.css +0 -6
  320. package/lib/swiper/swiper.less +0 -8
  321. package/lib/swiper/swiper.variable.css +0 -6
  322. package/lib/switcher/index.d.ts +30 -16
  323. package/lib/switcher/index.js +1 -1
  324. package/lib/switcher/switcher.css +4 -4
  325. package/lib/switcher/switcher.d.ts +74 -5
  326. package/lib/switcher/switcher.variable.css +4 -4
  327. package/lib/tab/index.d.ts +3 -3
  328. package/lib/tab/index.js +1 -1
  329. package/lib/tab/tab-nav.d.ts +12 -2
  330. package/lib/tab/tab-panel.d.ts +1 -1
  331. package/lib/table/components/table-cell.d.ts +22 -15
  332. package/lib/table/components/table-column.d.ts +155 -219
  333. package/lib/table/const.d.ts +40 -56
  334. package/lib/table/events.d.ts +180 -0
  335. package/lib/table/index.d.ts +747 -440
  336. package/lib/table/index.js +1 -1
  337. package/lib/table/plugins/head-filter.css +3 -0
  338. package/lib/table/plugins/head-filter.d.ts +3 -7
  339. package/lib/table/plugins/head-filter.less +3 -0
  340. package/lib/table/plugins/head-filter.variable.css +3 -0
  341. package/lib/table/plugins/head-sort.d.ts +3 -7
  342. package/lib/table/plugins/settings.d.ts +12 -26
  343. package/lib/table/plugins/use-column-resize.d.ts +30 -10
  344. package/lib/table/plugins/use-fixed-column.d.ts +10 -9
  345. package/lib/table/plugins/use-pagination.d.ts +7 -4
  346. package/lib/table/props.d.ts +220 -181
  347. package/lib/table/render.d.ts +12 -20
  348. package/lib/table/table.css +89 -6
  349. package/lib/table/table.d.ts +227 -104
  350. package/lib/table/table.less +79 -9
  351. package/lib/table/table.variable.css +89 -6
  352. package/lib/table/use-attributes.d.ts +55 -0
  353. package/lib/table/use-column.d.ts +177 -3
  354. package/lib/table/use-common.d.ts +1609 -76
  355. package/lib/table/use-render.d.ts +11 -0
  356. package/lib/table/utils.d.ts +30 -28
  357. package/lib/table-column/index.d.ts +240 -527
  358. package/lib/table-column/index.js +1 -1
  359. package/lib/tag/index.d.ts +10 -10
  360. package/lib/tag/index.js +1 -1
  361. package/lib/tag/tag.d.ts +5 -5
  362. package/lib/tag-input/index.d.ts +49 -13
  363. package/lib/tag-input/index.js +1 -1
  364. package/lib/tag-input/tag-input.css +9 -1
  365. package/lib/tag-input/tag-input.d.ts +46 -10
  366. package/lib/tag-input/tag-input.less +13 -4
  367. package/lib/tag-input/tag-input.variable.css +9 -1
  368. package/lib/tag-input/tag-props.d.ts +16 -4
  369. package/lib/time-picker/index.d.ts +4 -4
  370. package/lib/time-picker/index.js +1 -1
  371. package/lib/timeline/index.d.ts +1 -1
  372. package/lib/timeline/index.js +1 -1
  373. package/lib/transfer/index.d.ts +1 -1
  374. package/lib/transfer/index.js +1 -1
  375. package/lib/tree/constant.d.ts +2 -2
  376. package/lib/tree/index.d.ts +49 -7
  377. package/lib/tree/index.js +1 -1
  378. package/lib/tree/props.d.ts +16 -2
  379. package/lib/tree/tree.d.ts +27 -2
  380. package/lib/tree/use-node-action.d.ts +5 -3
  381. package/lib/tree/use-node-attribute.d.ts +17 -8
  382. package/lib/tree/use-search.d.ts +2 -2
  383. package/lib/tree/use-tree-init.d.ts +1 -2
  384. package/lib/tree/util.d.ts +8 -3
  385. package/lib/upload/index.d.ts +1 -1
  386. package/lib/upload/index.js +1 -1
  387. package/lib/upload/upload.css +4 -4
  388. package/lib/upload/upload.variable.css +4 -4
  389. package/lib/virtual-render/index.d.ts +43 -1
  390. package/lib/virtual-render/index.js +1 -1
  391. package/lib/virtual-render/props.d.ts +15 -0
  392. package/lib/virtual-render/v-virtual-render.d.ts +19 -1
  393. package/lib/virtual-render/virtual-render.d.ts +25 -0
  394. package/lib/volar.components.d.ts +24 -24
  395. package/package.json +17 -16
@@ -5,6 +5,7 @@ declare const BkInput: {
5
5
  $props: {
6
6
  type?: string;
7
7
  prefix?: string;
8
+ resize?: boolean;
8
9
  disabled?: boolean;
9
10
  placeholder?: string;
10
11
  step?: number;
@@ -17,6 +18,7 @@ declare const BkInput: {
17
18
  prefixIcon?: string;
18
19
  suffixIcon?: string;
19
20
  suffix?: string;
21
+ maxcharacter?: number;
20
22
  showWordLimit?: boolean;
21
23
  showControl?: boolean;
22
24
  showClearOnlyHover?: boolean;
@@ -24,21 +26,25 @@ declare const BkInput: {
24
26
  rows?: number;
25
27
  selectReadonly?: boolean;
26
28
  withValidate?: boolean;
29
+ overMaxLengthLimit?: boolean;
30
+ showOverflowTooltips?: boolean;
31
+ autosize?: Boolean | import("./input").InputAutoSize;
32
+ stopPropagation?: boolean;
27
33
  class?: unknown;
28
34
  style?: unknown;
29
- onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
35
+ onPaste?: (_value: any, _e: ClipboardEvent) => any;
30
36
  onCompositionend?: (evt: CompositionEvent) => any;
31
37
  onCompositionstart?: (evt: CompositionEvent) => any;
32
38
  onCompositionupdate?: (evt: CompositionEvent) => any;
33
39
  onFocus?: (evt: FocusEvent) => any;
34
40
  onBlur?: (evt: FocusEvent) => any;
35
- onChange?: (_value: any, _evt?: KeyboardEvent) => any;
36
- onInput?: (_value: any, _evt?: KeyboardEvent) => any;
37
- onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
38
- onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
39
- onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
40
- key?: string | number | symbol;
41
+ onChange?: (_value: any, _evt: KeyboardEvent) => any;
42
+ onInput?: (_value: any, _evt: KeyboardEvent) => any;
43
+ onKeydown?: (_value: any, _evt: KeyboardEvent) => any;
44
+ onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
45
+ onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
41
46
  ref?: import("vue").VNodeRef;
47
+ key?: string | number | symbol;
42
48
  ref_for?: boolean;
43
49
  ref_key?: string;
44
50
  onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -82,8 +88,8 @@ declare const BkInput: {
82
88
  readonly size?: "default" | "small" | "large";
83
89
  readonly modelValue?: string | number;
84
90
  onClear?: () => any;
85
- "onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
86
- onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
91
+ "onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
92
+ onEnter?: (_value: any, _evt: KeyboardEvent) => any;
87
93
  };
88
94
  $attrs: {
89
95
  [x: string]: unknown;
@@ -96,7 +102,7 @@ declare const BkInput: {
96
102
  }>;
97
103
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
98
104
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
99
- $emit: ((event: import("./input").EVENTS.UPDATE, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.FOCUS, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.BLUR, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.CHANGE, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.CLEAR) => void) & ((event: import("./input").EVENTS.INPUT, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYPRESS, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYDOWN, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYUP, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.ENTER, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.PASTE, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONSTART, evt: CompositionEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONUPDATE, evt: CompositionEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONEND, evt: CompositionEvent) => void);
105
+ $emit: ((event: import("./input").EVENTS.UPDATE, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.FOCUS, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.BLUR, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.CHANGE, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.CLEAR) => void) & ((event: import("./input").EVENTS.INPUT, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYPRESS, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYDOWN, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYUP, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.ENTER, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.PASTE, _value: any, _e: ClipboardEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONSTART, evt: CompositionEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONUPDATE, evt: CompositionEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONEND, evt: CompositionEvent) => void);
100
106
  $el: any;
101
107
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
102
108
  type: import("vue-types").VueTypeValidableDef<string> & {
@@ -142,6 +148,9 @@ declare const BkInput: {
142
148
  maxlength: import("vue-types").VueTypeDef<number> & {
143
149
  default: number;
144
150
  };
151
+ maxcharacter: import("vue-types").VueTypeDef<number> & {
152
+ default: number;
153
+ };
145
154
  behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
146
155
  default: "normal" | "simplicity";
147
156
  };
@@ -180,39 +189,63 @@ declare const BkInput: {
180
189
  } & {
181
190
  default: boolean;
182
191
  };
192
+ overMaxLengthLimit: import("vue-types").VueTypeValidableDef<boolean> & {
193
+ default: boolean;
194
+ } & {
195
+ default: boolean;
196
+ };
197
+ showOverflowTooltips: import("vue-types").VueTypeValidableDef<boolean> & {
198
+ default: boolean;
199
+ } & {
200
+ default: boolean;
201
+ };
202
+ resize: import("vue-types").VueTypeValidableDef<boolean> & {
203
+ default: boolean;
204
+ } & {
205
+ default: boolean;
206
+ };
207
+ autosize: import("vue-types").VueTypeDef<Boolean | import("./input").InputAutoSize> & {
208
+ default: (() => Boolean) | (() => import("./input").InputAutoSize);
209
+ };
210
+ stopPropagation: import("vue-types").VueTypeValidableDef<boolean> & {
211
+ default: boolean;
212
+ } & {
213
+ default: boolean;
214
+ };
183
215
  }>> & {
184
- onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
216
+ onPaste?: (_value: any, _e: ClipboardEvent) => any;
185
217
  onCompositionend?: (evt: CompositionEvent) => any;
186
218
  onCompositionstart?: (evt: CompositionEvent) => any;
187
219
  onCompositionupdate?: (evt: CompositionEvent) => any;
188
220
  onFocus?: (evt: FocusEvent) => any;
189
221
  onBlur?: (evt: FocusEvent) => any;
190
- onChange?: (_value: any, _evt?: KeyboardEvent) => any;
191
- onInput?: (_value: any, _evt?: KeyboardEvent) => any;
192
- onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
193
- onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
194
- onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
222
+ onChange?: (_value: any, _evt: KeyboardEvent) => any;
223
+ onInput?: (_value: any, _evt: KeyboardEvent) => any;
224
+ onKeydown?: (_value: any, _evt: KeyboardEvent) => any;
225
+ onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
226
+ onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
195
227
  onClear?: () => any;
196
- "onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
197
- onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
228
+ "onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
229
+ onEnter?: (_value: any, _evt: KeyboardEvent) => any;
198
230
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
199
- "update:modelValue": (_value: any, _evt?: KeyboardEvent) => any;
231
+ "update:modelValue": (_value: any, _evt: KeyboardEvent) => any;
200
232
  focus: (evt: FocusEvent) => FocusEvent;
201
233
  blur: (evt: FocusEvent) => FocusEvent;
202
- change: (_value: any, _evt?: KeyboardEvent) => any;
234
+ change: (_value: any, _evt: KeyboardEvent) => any;
203
235
  clear: () => boolean;
204
- input: (_value: any, _evt?: KeyboardEvent) => any;
205
- keypress: (_value: any, _evt?: KeyboardEvent) => any;
206
- keydown: (_value: any, _evt?: KeyboardEvent) => any;
207
- keyup: (_value: any, _evt?: KeyboardEvent) => any;
208
- enter: (_value: any, _evt?: KeyboardEvent) => any;
209
- paste: (_value: any, _evt?: KeyboardEvent) => any;
236
+ input: (_value: any, _evt: KeyboardEvent) => any;
237
+ keypress: (_value: any, _evt: KeyboardEvent) => any;
238
+ keydown: (_value: any, _evt: KeyboardEvent) => any;
239
+ keyup: (_value: any, _evt: KeyboardEvent) => any;
240
+ enter: (_value: any, _evt: KeyboardEvent) => any;
241
+ paste: (_value: any, _e: ClipboardEvent) => boolean;
210
242
  compositionstart: (evt: CompositionEvent) => CompositionEvent;
211
243
  compositionupdate: (evt: CompositionEvent) => CompositionEvent;
212
244
  compositionend: (evt: CompositionEvent) => CompositionEvent;
213
245
  }, string, {
214
246
  type: string;
215
247
  prefix: string;
248
+ resize: boolean;
216
249
  disabled: boolean;
217
250
  placeholder: string;
218
251
  step: number;
@@ -225,6 +258,7 @@ declare const BkInput: {
225
258
  prefixIcon: string;
226
259
  suffixIcon: string;
227
260
  suffix: string;
261
+ maxcharacter: number;
228
262
  showWordLimit: boolean;
229
263
  showControl: boolean;
230
264
  showClearOnlyHover: boolean;
@@ -232,6 +266,10 @@ declare const BkInput: {
232
266
  rows: number;
233
267
  selectReadonly: boolean;
234
268
  withValidate: boolean;
269
+ overMaxLengthLimit: boolean;
270
+ showOverflowTooltips: boolean;
271
+ autosize: Boolean | import("./input").InputAutoSize;
272
+ stopPropagation: boolean;
235
273
  }, {}, string, {}> & {
236
274
  beforeCreate?: (() => void) | (() => void)[];
237
275
  created?: (() => void) | (() => void)[];
@@ -296,6 +334,9 @@ declare const BkInput: {
296
334
  maxlength: import("vue-types").VueTypeDef<number> & {
297
335
  default: number;
298
336
  };
337
+ maxcharacter: import("vue-types").VueTypeDef<number> & {
338
+ default: number;
339
+ };
299
340
  behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
300
341
  default: "normal" | "simplicity";
301
342
  };
@@ -334,21 +375,44 @@ declare const BkInput: {
334
375
  } & {
335
376
  default: boolean;
336
377
  };
378
+ overMaxLengthLimit: import("vue-types").VueTypeValidableDef<boolean> & {
379
+ default: boolean;
380
+ } & {
381
+ default: boolean;
382
+ };
383
+ showOverflowTooltips: import("vue-types").VueTypeValidableDef<boolean> & {
384
+ default: boolean;
385
+ } & {
386
+ default: boolean;
387
+ };
388
+ resize: import("vue-types").VueTypeValidableDef<boolean> & {
389
+ default: boolean;
390
+ } & {
391
+ default: boolean;
392
+ };
393
+ autosize: import("vue-types").VueTypeDef<Boolean | import("./input").InputAutoSize> & {
394
+ default: (() => Boolean) | (() => import("./input").InputAutoSize);
395
+ };
396
+ stopPropagation: import("vue-types").VueTypeValidableDef<boolean> & {
397
+ default: boolean;
398
+ } & {
399
+ default: boolean;
400
+ };
337
401
  }>> & {
338
- onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
402
+ onPaste?: (_value: any, _e: ClipboardEvent) => any;
339
403
  onCompositionend?: (evt: CompositionEvent) => any;
340
404
  onCompositionstart?: (evt: CompositionEvent) => any;
341
405
  onCompositionupdate?: (evt: CompositionEvent) => any;
342
406
  onFocus?: (evt: FocusEvent) => any;
343
407
  onBlur?: (evt: FocusEvent) => any;
344
- onChange?: (_value: any, _evt?: KeyboardEvent) => any;
345
- onInput?: (_value: any, _evt?: KeyboardEvent) => any;
346
- onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
347
- onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
348
- onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
408
+ onChange?: (_value: any, _evt: KeyboardEvent) => any;
409
+ onInput?: (_value: any, _evt: KeyboardEvent) => any;
410
+ onKeydown?: (_value: any, _evt: KeyboardEvent) => any;
411
+ onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
412
+ onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
349
413
  onClear?: () => any;
350
- "onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
351
- onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
414
+ "onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
415
+ onEnter?: (_value: any, _evt: KeyboardEvent) => any;
352
416
  } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
353
417
  __isFragment?: never;
354
418
  __isTeleport?: never;
@@ -397,6 +461,9 @@ declare const BkInput: {
397
461
  maxlength: import("vue-types").VueTypeDef<number> & {
398
462
  default: number;
399
463
  };
464
+ maxcharacter: import("vue-types").VueTypeDef<number> & {
465
+ default: number;
466
+ };
400
467
  behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
401
468
  default: "normal" | "simplicity";
402
469
  };
@@ -435,39 +502,63 @@ declare const BkInput: {
435
502
  } & {
436
503
  default: boolean;
437
504
  };
505
+ overMaxLengthLimit: import("vue-types").VueTypeValidableDef<boolean> & {
506
+ default: boolean;
507
+ } & {
508
+ default: boolean;
509
+ };
510
+ showOverflowTooltips: import("vue-types").VueTypeValidableDef<boolean> & {
511
+ default: boolean;
512
+ } & {
513
+ default: boolean;
514
+ };
515
+ resize: import("vue-types").VueTypeValidableDef<boolean> & {
516
+ default: boolean;
517
+ } & {
518
+ default: boolean;
519
+ };
520
+ autosize: import("vue-types").VueTypeDef<Boolean | import("./input").InputAutoSize> & {
521
+ default: (() => Boolean) | (() => import("./input").InputAutoSize);
522
+ };
523
+ stopPropagation: import("vue-types").VueTypeValidableDef<boolean> & {
524
+ default: boolean;
525
+ } & {
526
+ default: boolean;
527
+ };
438
528
  }>> & {
439
- onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
529
+ onPaste?: (_value: any, _e: ClipboardEvent) => any;
440
530
  onCompositionend?: (evt: CompositionEvent) => any;
441
531
  onCompositionstart?: (evt: CompositionEvent) => any;
442
532
  onCompositionupdate?: (evt: CompositionEvent) => any;
443
533
  onFocus?: (evt: FocusEvent) => any;
444
534
  onBlur?: (evt: FocusEvent) => any;
445
- onChange?: (_value: any, _evt?: KeyboardEvent) => any;
446
- onInput?: (_value: any, _evt?: KeyboardEvent) => any;
447
- onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
448
- onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
449
- onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
535
+ onChange?: (_value: any, _evt: KeyboardEvent) => any;
536
+ onInput?: (_value: any, _evt: KeyboardEvent) => any;
537
+ onKeydown?: (_value: any, _evt: KeyboardEvent) => any;
538
+ onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
539
+ onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
450
540
  onClear?: () => any;
451
- "onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
452
- onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
541
+ "onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
542
+ onEnter?: (_value: any, _evt: KeyboardEvent) => any;
453
543
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
454
- "update:modelValue": (_value: any, _evt?: KeyboardEvent) => any;
544
+ "update:modelValue": (_value: any, _evt: KeyboardEvent) => any;
455
545
  focus: (evt: FocusEvent) => FocusEvent;
456
546
  blur: (evt: FocusEvent) => FocusEvent;
457
- change: (_value: any, _evt?: KeyboardEvent) => any;
547
+ change: (_value: any, _evt: KeyboardEvent) => any;
458
548
  clear: () => boolean;
459
- input: (_value: any, _evt?: KeyboardEvent) => any;
460
- keypress: (_value: any, _evt?: KeyboardEvent) => any;
461
- keydown: (_value: any, _evt?: KeyboardEvent) => any;
462
- keyup: (_value: any, _evt?: KeyboardEvent) => any;
463
- enter: (_value: any, _evt?: KeyboardEvent) => any;
464
- paste: (_value: any, _evt?: KeyboardEvent) => any;
549
+ input: (_value: any, _evt: KeyboardEvent) => any;
550
+ keypress: (_value: any, _evt: KeyboardEvent) => any;
551
+ keydown: (_value: any, _evt: KeyboardEvent) => any;
552
+ keyup: (_value: any, _evt: KeyboardEvent) => any;
553
+ enter: (_value: any, _evt: KeyboardEvent) => any;
554
+ paste: (_value: any, _e: ClipboardEvent) => boolean;
465
555
  compositionstart: (evt: CompositionEvent) => CompositionEvent;
466
556
  compositionupdate: (evt: CompositionEvent) => CompositionEvent;
467
557
  compositionend: (evt: CompositionEvent) => CompositionEvent;
468
558
  }, string, {
469
559
  type: string;
470
560
  prefix: string;
561
+ resize: boolean;
471
562
  disabled: boolean;
472
563
  placeholder: string;
473
564
  step: number;
@@ -480,6 +571,7 @@ declare const BkInput: {
480
571
  prefixIcon: string;
481
572
  suffixIcon: string;
482
573
  suffix: string;
574
+ maxcharacter: number;
483
575
  showWordLimit: boolean;
484
576
  showControl: boolean;
485
577
  showClearOnlyHover: boolean;
@@ -487,5 +579,9 @@ declare const BkInput: {
487
579
  rows: number;
488
580
  selectReadonly: boolean;
489
581
  withValidate: boolean;
582
+ overMaxLengthLimit: boolean;
583
+ showOverflowTooltips: boolean;
584
+ autosize: Boolean | import("./input").InputAutoSize;
585
+ stopPropagation: boolean;
490
586
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
491
587
  export default BkInput;
@@ -1 +1,2 @@
1
- !function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("../config-provider"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../icon"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue"),require("../config-provider"),require("../icon")):r(e["../shared"],e.vue,e["../config-provider"],e["../icon"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r,t,o)=>(()=>{"use strict";var n={2717:e=>{e.exports=t},6870:e=>{e.exports=o},4212:r=>{r.exports=e},748:e=>{e.exports=r}},l={};function i(e){var r=l[e];if(void 0!==r)return r.exports;var t=l[e]={exports:{}};return n[e](t,t.exports,i),t.exports}i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{i.r(a),i.d(a,{default:()=>y});var e=i(4212);function r(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function o(e,r,o){return(r=function(e){var r=function(e,r){if("object"!==t(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,"string");if("object"!==t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}var n=i(748);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var l,u,s=i(2717),c=i(6870),p={type:e.PropTypes.string.def("text"),clearable:e.PropTypes.bool,disabled:e.PropTypes.bool,readonly:e.PropTypes.bool,placeholder:e.PropTypes.string.def(""),prefixIcon:e.PropTypes.string,suffixIcon:e.PropTypes.string,suffix:e.PropTypes.string,prefix:e.PropTypes.string,step:e.PropTypes.integer,max:e.PropTypes.integer,min:e.PropTypes.integer,maxlength:e.PropTypes.integer,behavior:(0,e.InputBehaviorType)(),showWordLimit:e.PropTypes.bool,showControl:e.PropTypes.bool.def(!0),showClearOnlyHover:e.PropTypes.bool.def(!0),precision:e.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]),size:e.PropTypes.size(),rows:e.PropTypes.number,selectReadonly:e.PropTypes.bool.def(!1),withValidate:e.PropTypes.bool.def(!0)};function d(e,r){return!0}function f(e){return e}!function(e){e.UPDATE="update:modelValue",e.FOCUS="focus",e.BLUR="blur",e.CHANGE="change",e.CLEAR="clear",e.INPUT="input",e.KEYPRESS="keypress",e.KEYDOWN="keydown",e.KEYUP="keyup",e.ENTER="enter",e.PASTE="paste",e.COMPOSITIONSTART="compositionstart",e.COMPOSITIONUPDATE="compositionupdate",e.COMPOSITIONEND="compositionend"}(u||(u={}));var v=(o(l={},u.UPDATE,d),o(l,u.FOCUS,(function(e){return e})),o(l,u.BLUR,(function(e){return e})),o(l,u.CHANGE,d),o(l,u.CLEAR,(function(){return!0})),o(l,u.INPUT,d),o(l,u.KEYPRESS,d),o(l,u.KEYDOWN,d),o(l,u.KEYUP,d),o(l,u.ENTER,d),o(l,u.PASTE,d),o(l,u.COMPOSITIONSTART,f),o(l,u.COMPOSITIONUPDATE,f),o(l,u.COMPOSITIONEND,f),l);const m=(0,n.defineComponent)({name:"Input",inheritAttrs:!1,props:p,emits:v,setup:function(t,l){var i=(0,s.usePrefix)().resolveClassName,a=(0,e.useFormItem)(),p=(0,s.useLocale)("input"),d=(0,n.ref)(!1),f=(0,n.ref)(!1),v=(0,n.computed)((function(){return"textarea"===t.type})),m=(0,n.computed)((function(){return v.value?i("textarea"):i("input")})),y=l.attrs,b=y.class,P=y.style,T=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t}(y,["class","style"]),g=(0,n.ref)(),h=(0,n.computed)((function(){var r;return(0,e.classes)((o(r={},"".concat(m.value,"--").concat(t.size),!!t.size),o(r,"is-focused",d.value),o(r,"is-readonly",t.readonly&&!t.selectReadonly),o(r,"is-disabled",t.disabled),o(r,"is-simplicity","simplicity"===t.behavior),o(r,"".concat(b),!!b),r),m.value)})),x={search:function(){return(0,n.createVNode)(c.Search,null,null)},password:function(){return(0,n.createVNode)(c.Eye,{onClick:W},null)}},N=F("suffix-icon"),E=(0,n.computed)((function(){var e=x[t.type];return C.value?(0,n.createVNode)(c.Unvisible,{onClick:W,class:N},null):e?(0,n.createVNode)(e,{class:N},null):null})),O=(0,n.computed)((function(){return"number"===t.type})),S=(0,n.computed)((function(){return Math.floor(t.maxlength)})),C=(0,n.ref)(!1),V=(0,n.computed)((function(){return(0,e.classes)(o({"show-clear-only-hover":t.showClearOnlyHover},"".concat(m.value,"--clear-icon"),!0),N)})),w=(0,n.computed)((function(){return(0,e.classes)({"is-disabled":t.disabled||t.modelValue>=t.max})})),A=(0,n.computed)((function(){return(0,e.classes)({"is-disabled":t.disabled||t.modelValue<=t.min})}));function I(){if(!t.disabled){var e=O.value?t.min:"";l.emit(u.UPDATE,e),l.emit(u.CHANGE,e),l.emit(u.CLEAR)}}(0,n.watch)((function(){return t.modelValue}),(function(){var e;t.withValidate&&(null===(e=null==a?void 0:a.validate)||void 0===e||e.call(a,"change"))})),l.expose({focus:function(){g.value.focus()},clear:I});var U,j,D=(U=[u.KEYUP,u.KEYDOWN,u.KEYPRESS,u.PASTE,u.CHANGE,u.INPUT].map((function(e){return function(r){if(r.stopPropagation(),e!==u.KEYDOWN||"Enter"!==r.code&&"Enter"!==r.key&&13!==r.keyCode||l.emit(u.ENTER,r.target.value,r),!f.value||![u.INPUT,u.CHANGE].some((function(r){return e===r}))){if(e===u.INPUT)l.emit(u.UPDATE,r.target.value);else if(e===u.CHANGE&&O.value&&""!==r.target.value){var t=L(r.target.value,0);return l.emit(u.UPDATE,t,r),void l.emit(e,t,r)}l.emit(e,r.target.value,r)}}})),j=6,function(e){if(Array.isArray(e))return e}(U)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,n,l,i,a=[],u=!0,s=!1;try{if(l=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(o=l.call(t)).done)&&(a.push(o.value),a.length!==r);u=!0);}catch(e){s=!0,n=e}finally{try{if(!u&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(s)throw n}}return a}}(U,j)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}(U,j)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),R=D[0],K=D[1],k=D[2],M=D[3],H=D[4],Y=D[5];function L(e,r){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=Number(r),l=Number.isInteger(t.precision)?t.precision:0,i=Number(e),a=Number.isInteger(n)?n:1,u=i+(o?a:-1*a);return Number.isInteger(t.max)&&(u=Math.min(u,t.max)),Number.isInteger(t.min)&&(u=Math.max(u,t.min)),+u.toFixed(l)}function q(){if(!t.disabled){var e=L(t.modelValue,t.step);l.emit(u.UPDATE,e),l.emit(u.CHANGE,e)}}function G(){if(!t.disabled){var e=L(t.modelValue,t.step,!1);l.emit(u.UPDATE,e),l.emit(u.CHANGE,e)}}function F(e){return"".concat(m.value,"--").concat(e)}function W(){C.value=!C.value}var B=(0,n.computed)((function(){var e=void 0===t.modelValue||null===t.modelValue?{}:{value:t.modelValue};return Object.assign(Object.assign({},e),{maxlength:t.maxlength,placeholder:t.placeholder||p.value.placeholder,readonly:t.readonly,disabled:t.disabled})})),z={onInput:Y,onFocus:function(e){d.value=!0,l.emit(u.FOCUS,e)},onBlur:function(e){var r;d.value=!1,l.emit(u.BLUR,e),t.withValidate&&(null===(r=null==a?void 0:a.validate)||void 0===r||r.call(a,"blur"))},onPaste:M,onChange:H,onKeypress:k,onKeydown:K,onKeyup:R,onCompositionstart:function(){f.value=!0},onCompositionend:function(e){f.value=!1,Y(e)}};return function(){var e,r,o,i,a,u,s;return(0,n.createVNode)("div",{class:h.value,style:P},[null!==(o=null===(r=null===(e=l.slots)||void 0===e?void 0:e.prefix)||void 0===r?void 0:r.call(e))&&void 0!==o?o:t.prefix&&(0,n.createVNode)("div",{class:F("prefix-area")},[(0,n.createVNode)("span",{class:F("prefix-area--text")},[t.prefix])]),v.value?(0,n.createVNode)("textarea",(0,n.mergeProps)({ref:g,spellcheck:!1},T,z,B.value,{rows:t.rows}),null):(0,n.createVNode)("input",(0,n.mergeProps)({spellcheck:!1},T,{ref:g,class:"".concat(m.value,"--text"),type:C.value&&"password"===t.type?"text":t.type,step:t.step,max:t.max,min:t.min},z,B.value),null),!v.value&&t.clearable&&!!t.modelValue&&(0,n.createVNode)("span",{class:V.value,onClick:I},[(0,n.createVNode)(c.Close,null,null)]),E.value,"number"==typeof t.maxlength&&(t.showWordLimit||v.value)&&(0,n.createVNode)("p",{class:F("max-length")},[(null!==(i=t.modelValue)&&void 0!==i?i:"").toString().length,(0,n.createTextVNode)("/"),(0,n.createVNode)("span",null,[S.value])]),O.value&&t.showControl&&(0,n.createVNode)("div",{class:F("number-control")},[(0,n.createVNode)(c.DownSmall,{class:w.value,onClick:q},null),(0,n.createVNode)(c.DownSmall,{class:A.value,onClick:G},null)]),null!==(s=null===(u=null===(a=l.slots)||void 0===a?void 0:a.suffix)||void 0===u?void 0:u.call(a))&&void 0!==s?s:t.suffix&&(0,n.createVNode)("div",{class:F("suffix-area")},[(0,n.createVNode)("span",{class:F("suffix-area--text")},[t.suffix])])])}}}),y=(0,e.withInstall)(m)})(),a})()));
1
+ /*! For license information please see index.js.LICENSE.txt */
2
+ import*as e from"../shared";import*as t from"vue";import*as r from"../config-provider";import*as o from"../directives";import*as n from"../icon";var i={7609:(e,t,r)=>{var o=r(7425).default;function n(){e.exports=n=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function p(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,r){return e[t]=r}}function f(e,t,r,o){var n=t&&t.prototype instanceof m?t:m,i=Object.create(n.prototype),l=new L(o||[]);return a(i,"_invoke",{value:E(e,r,l)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var v={};function m(){}function h(){}function y(){}var g={};p(g,u,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(V([])));x&&x!==r&&i.call(x,u)&&(g=x);var w=y.prototype=m.prototype=Object.create(g);function P(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function r(n,a,l,u){var c=d(e[n],e,a);if("throw"!==c.type){var s=c.arg,p=s.value;return p&&"object"==o(p)&&i.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,l,u)}),(function(e){r("throw",e,l,u)})):t.resolve(p).then((function(e){s.value=e,l(s)}),(function(e){return r("throw",e,l,u)}))}u(c.arg)}var n;a(this,"_invoke",{value:function(e,o){function i(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(i,i):i()}})}function E(e,t,r){var o="suspendedStart";return function(n,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw i;return{value:void 0,done:!0}}for(r.method=n,r.arg=i;;){var a=r.delegate;if(a){var l=N(a,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var u=d(e,t,r);if("normal"===u.type){if(o=r.done?"completed":"suspendedYield",u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o="completed",r.method="throw",r.arg=u.arg)}}}function N(e,t){var r=t.method,o=e.iterator[r];if(void 0===o)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,N(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var n=d(o,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,v;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,v):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function V(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=y,a(w,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:h,configurable:!0}),h.displayName=p(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,p(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},P(T.prototype),p(T.prototype,c,(function(){return this})),t.AsyncIterator=T,t.async=function(e,r,o,n,i){void 0===i&&(i=Promise);var a=new T(f(e,r,o,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(w),p(w,s,"Generator"),p(w,u,(function(){return this})),p(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var o in t)r.push(o);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=V,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return a.type="throw",a.arg=e,t.next=r,o&&(t.method="next",t.arg=void 0),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o],a=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var l=i.call(n,"catchLoc"),u=i.call(n,"finallyLoc");if(l&&u){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(l){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var n=o;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=e,a.arg=t,n?(this.method="next",this.next=n.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;S(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:V(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),v}},t}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,r)=>{var o=r(7609)();e.exports=o;try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return i[e](r,r.exports,l),r.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var u={};(()=>{l.d(u,{Z:()=>V});const i=(a={InputBehaviorType:()=>e.InputBehaviorType,PropTypes:()=>e.PropTypes,classes:()=>e.classes,useFormItem:()=>e.useFormItem,withInstall:()=>e.withInstall},c={},l.d(c,a),c);var a,c;function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!==p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===p(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const d=(e=>{var t={};return l.d(t,e),t})({Fragment:()=>t.Fragment,computed:()=>t.computed,createTextVNode:()=>t.createTextVNode,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,mergeProps:()=>t.mergeProps,nextTick:()=>t.nextTick,onBeforeUnmount:()=>t.onBeforeUnmount,onMounted:()=>t.onMounted,ref:()=>t.ref,resolveDirective:()=>t.resolveDirective,watch:()=>t.watch,withDirectives:()=>t.withDirectives});var v=l(2841),m=l.n(v);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const h=(e=>{var t={};return l.d(t,e),t})({useLocale:()=>r.useLocale,usePrefix:()=>r.usePrefix}),y=(e=>{var t={};return l.d(t,e),t})({bkTooltips:()=>o.bkTooltips}),g=(e=>{var t={};return l.d(t,e),t})({Close:()=>n.Close,DownSmall:()=>n.DownSmall,Eye:()=>n.Eye,Search:()=>n.Search,Unvisible:()=>n.Unvisible});var b,x=void 0,w=["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"];function P(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;x||(x=document.createElement("textarea"),document.body.appendChild(x));var n=function(e){var t=window.getComputedStyle(e),r=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),n=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:w.map((function(e){return"".concat(e,":").concat(t.getPropertyValue(e))})).join(";"),paddingSize:o,borderSize:n,boxSizing:r}}(e),i=n.paddingSize,a=n.borderSize,l=n.boxSizing,u=n.contextStyle;x.setAttribute("style","".concat(u,";").concat("\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")),x.value=e.value||e.placeholder||"";var c=x.scrollHeight,s={};"border-box"===l?c+=a:"content-box"===l&&(c-=i),x.value="";var p=x.scrollHeight-i;if(Number.isInteger(r)){var f=p*r;"border-box"===l&&(f=f+i+a),c=Math.max(f,c),s.minHeight="".concat(f,"px")}if(Number.isInteger(o)){var d=p*o;"border-box"===l&&(d=d+i+a),c=Math.min(d,c)}return s.height="".concat(c,"px"),null===(t=x.parentNode)||void 0===t||t.removeChild(x),x=void 0,s}var T,E={type:i.PropTypes.string.def("text"),clearable:i.PropTypes.bool,disabled:i.PropTypes.bool,readonly:i.PropTypes.bool,placeholder:i.PropTypes.string.def(""),prefixIcon:i.PropTypes.string,suffixIcon:i.PropTypes.string,suffix:i.PropTypes.string,prefix:i.PropTypes.string,step:i.PropTypes.integer,max:i.PropTypes.integer,min:i.PropTypes.integer,maxlength:i.PropTypes.integer,maxcharacter:i.PropTypes.integer,behavior:(0,i.InputBehaviorType)(),showWordLimit:i.PropTypes.bool,showControl:i.PropTypes.bool.def(!0),showClearOnlyHover:i.PropTypes.bool.def(!0),precision:i.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.number]),size:i.PropTypes.size(),rows:i.PropTypes.number,selectReadonly:i.PropTypes.bool.def(!1),withValidate:i.PropTypes.bool.def(!0),overMaxLengthLimit:i.PropTypes.bool.def(!1),showOverflowTooltips:i.PropTypes.bool.def(!0),resize:i.PropTypes.bool.def(!0),autosize:i.PropTypes.oneOfType([Boolean,Object]).def(!1),stopPropagation:i.PropTypes.bool.def(!0)};function N(e,t){return!0}function O(e){return e}!function(e){e.UPDATE="update:modelValue",e.FOCUS="focus",e.BLUR="blur",e.CHANGE="change",e.CLEAR="clear",e.INPUT="input",e.KEYPRESS="keypress",e.KEYDOWN="keydown",e.KEYUP="keyup",e.ENTER="enter",e.PASTE="paste",e.COMPOSITIONSTART="compositionstart",e.COMPOSITIONUPDATE="compositionupdate",e.COMPOSITIONEND="compositionend"}(T||(T={}));var S=(f(b={},T.UPDATE,N),f(b,T.FOCUS,(function(e){return e})),f(b,T.BLUR,(function(e){return e})),f(b,T.CHANGE,N),f(b,T.CLEAR,(function(){return!0})),f(b,T.INPUT,N),f(b,T.KEYPRESS,N),f(b,T.KEYDOWN,N),f(b,T.KEYUP,N),f(b,T.ENTER,N),f(b,T.PASTE,(function(e,t){return!0})),f(b,T.COMPOSITIONSTART,O),f(b,T.COMPOSITIONUPDATE,O),f(b,T.COMPOSITIONEND,O),b);const L=(0,d.defineComponent)({name:"Input",directives:{bkTooltips:y.bkTooltips},inheritAttrs:!1,props:E,emits:S,setup:function(e,t){var r=this,o=(0,h.usePrefix)().resolveClassName,n=(0,i.useFormItem)(),a=(0,h.useLocale)("input"),l=(0,d.ref)(!1),u=(0,d.ref)(!1),c=(0,d.computed)((function(){return"textarea"===e.type})),p=(0,d.computed)((function(){return c.value?o("textarea"):o("input")})),v=t.attrs,y=(v.class,v.style),b=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(v,["class","style"]),x=(0,d.ref)(),w=(0,d.ref)(void 0===e.modelValue||null===e.modelValue?{}:{value:e.modelValue}),E=(0,d.computed)((function(){var r;return(0,i.classes)((f(r={},"".concat(p.value,"--").concat(e.size),!!e.size),f(r,"resizable",e.resize),f(r,"is-focused",l.value),f(r,"is-readonly",e.readonly&&!e.selectReadonly),f(r,"is-disabled",e.disabled),f(r,"is-simplicity","simplicity"===e.behavior),f(r,"".concat(t.attrs.class),!!t.attrs.class),r),p.value)})),N=(0,d.ref)(!1),O=(0,d.ref)({}),S=function(){var t,r;if(c.value)if(e.autosize){var o=null===(t=e.autosize)||void 0===t?void 0:t.minRows,n=null===(r=e.autosize)||void 0===r?void 0:r.maxRows,i=P(x.value,o,n);O.value=Object.assign({overflowY:"hidden"},i),(0,d.nextTick)((function(){O.value=i}))}else O.value={minHeight:P(x.value).minHeight}},L=function(t){var r=!1;return function(){var o;!r&&e.autosize&&(null===(null===(o=x.value)||void 0===o?void 0:o.offsetParent)||(t(),r=!0))}}(S),V=ne("suffix-icon"),C={search:function(){return(0,d.createVNode)(g.Search,null,null)},password:function(){return(0,d.createVNode)(g.Unvisible,{onClick:ie,class:V},null)}},I=(0,d.computed)((function(){var t=C[e.type];return U.value?(0,d.createVNode)(g.Eye,{class:V,onClick:ie},null):t?(0,d.createVNode)(t,{class:V},null):null})),A=(0,d.computed)((function(){return"number"===e.type})),j=(0,d.computed)((function(){var t,r;return Math.floor(null!==(r=null!==(t=e.maxlength)&&void 0!==t?t:e.maxcharacter)&&void 0!==r?r:0)})),U=(0,d.ref)(!1),k=(0,d.computed)((function(){return(0,i.classes)(f({"show-clear-only-hover":e.showClearOnlyHover},"".concat(p.value,"--clear-icon"),!0),V)})),D=(0,d.computed)((function(){var e;return(0,i.classes)((f(e={},ne("max-length"),!0),f(e,"is-over-limit",j.value-M.value<0),e))})),_=function(t){return"number"==typeof e.maxcharacter?t.split("").reduce((function(t,r,o){return t.len+=r.charCodeAt(0)>255?2:1,t.len>e.maxcharacter&&-1===t.pos&&(t.pos=o),t}),{len:0,pos:-1}):{len:t.length,pos:-1}},M=(0,d.computed)((function(){var t,r=null!==(t=e.modelValue)&&void 0!==t?t:"";return _(r).len})),z=(0,d.computed)((function(){return(0,i.classes)({"is-disabled":e.disabled||e.modelValue>=e.max})})),R=(0,d.computed)((function(){return(0,i.classes)({"is-disabled":e.disabled||e.modelValue<=e.min})})),F=(0,d.computed)((function(){return e.showOverflowTooltips&&N.value&&e.modelValue?{content:e.modelValue,sameWidth:!0}:{disabled:!0}})),G=(0,d.computed)((function(){return"number"==typeof e.maxlength||"number"==typeof e.maxcharacter})),H=new ResizeObserver((function(){L()}));function K(){var e,t;return(null===(e=x.value)||void 0===e?void 0:e.scrollWidth)>(null===(t=x.value)||void 0===t?void 0:t.clientWidth)+2}function Y(){if(!e.disabled){var r=A.value?e.min:"";t.emit(T.UPDATE,r,null),t.emit(T.CHANGE,r,null),t.emit(T.CLEAR)}}(0,d.watch)((function(){return e.type}),(function(){return e=r,t=void 0,o=void 0,n=m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.nextTick)();case 2:S();case 3:case"end":return e.stop()}}),e)})),new(o||(o=Promise))((function(r,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function l(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,l)}u((n=n.apply(e,t||[])).next())}));var e,t,o,n})),(0,d.watch)((function(){return e.modelValue}),(function(t){var r;e.withValidate&&(null===(r=null==n?void 0:n.validate)||void 0===r||r.call(n,"change")),w.value={value:t},(0,d.nextTick)((function(){return S()}))})),(0,d.onMounted)((function(){N.value=K(),H.observe(x.value),(0,d.nextTick)((function(){return S()}))})),(0,d.onBeforeUnmount)((function(){H.disconnect()})),t.expose({focus:function(){x.value.focus()},clear:Y});var B,W,Z=(B=[T.KEYUP,T.KEYDOWN,T.KEYPRESS,T.PASTE,T.CHANGE,T.INPUT].map((function(r){return function(o){if(e.stopPropagation&&o.stopPropagation(),G.value&&!e.overMaxLengthLimit){var n=_(o.target.value);if(n.len>=j.value&&(r===T.KEYDOWN||r===T.INPUT)&&!u.value){var i=n.pos>0?o.target.value.slice(0,n.pos):o.target.value;return w.value={value:i},t.emit(T.UPDATE,i,o),void t.emit(T.INPUT,i,o)}}if(r!==T.KEYDOWN||"Enter"!==o.code&&"Enter"!==o.key&&13!==o.keyCode||t.emit(T.ENTER,o.target.value,o),!u.value||![T.INPUT,T.CHANGE,T.KEYDOWN].some((function(e){return r===e}))){if(r===T.INPUT)t.emit(T.UPDATE,o.target.value,o);else if(r===T.CHANGE&&A.value&&""!==o.target.value){var a=te(o.target.value,0);return t.emit(T.UPDATE,a,o),void t.emit(r,a,o)}t.emit(r,o.target.value,o)}}})),W=6,function(e){if(Array.isArray(e))return e}(B)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=i.call(r)).done)&&(l.push(o.value),l.length!==t);u=!0);}catch(e){c=!0,n=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return l}}(B,W)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(B,W)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),$=Z[0],q=Z[1],J=Z[2],Q=Z[3],X=Z[4],ee=Z[5];function te(t,r){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=Number(r),i=Number.isInteger(e.precision)?e.precision:0,a=Number(t),l=Number.isInteger(n)?n:1,u=a+(o?l:-1*l);return Number.isInteger(e.max)&&(u=Math.min(u,e.max)),Number.isInteger(e.min)&&(u=Math.max(u,e.min)),+u.toFixed(i)}function re(r){if(!e.disabled){var o=te(e.modelValue,e.step);t.emit(T.UPDATE,o,r),t.emit(T.CHANGE,o,r)}}function oe(r){if(!e.disabled){var o=te(e.modelValue,e.step,!1);t.emit(T.UPDATE,o,r),t.emit(T.CHANGE,o,r)}}function ne(e){return"".concat(p.value,"--").concat(e)}function ie(){U.value=!U.value}var ae=(0,d.computed)((function(){return{maxlength:!e.overMaxLengthLimit&&e.maxlength,placeholder:e.placeholder||a.value.placeholder,readonly:e.readonly,disabled:e.disabled}})),le={onInput:ee,onFocus:function(e){l.value=!0,t.emit(T.FOCUS,e)},onBlur:function(r){var o;l.value=!1,N.value=K(),t.emit(T.BLUR,r),e.withValidate&&(null===(o=null==n?void 0:n.validate)||void 0===o||o.call(n,"blur"))},onPaste:Q,onChange:X,onKeypress:J,onKeydown:q,onKeyup:$,onCompositionstart:function(){u.value=!0},onCompositionend:function(e){u.value=!1,ee(e)}};return function(){var r,o,n,i,a,l;return(0,d.withDirectives)((0,d.createVNode)("div",{class:E.value,style:y},[null!==(n=null===(o=null===(r=t.slots)||void 0===r?void 0:r.prefix)||void 0===o?void 0:o.call(r))&&void 0!==n?n:e.prefix&&(0,d.createVNode)("div",{class:ne("prefix-area")},[(0,d.createVNode)("span",{class:ne("prefix-area--text")},[e.prefix])]),c.value?(0,d.createVNode)("textarea",(0,d.mergeProps)({ref:x,spellcheck:!1},b,le,ae.value,{rows:e.rows,style:O.value},w.value),null):(0,d.createVNode)("input",(0,d.mergeProps)({spellcheck:!1},b,{ref:x,class:"".concat(p.value,"--text"),type:U.value&&"password"===e.type?"text":e.type,step:e.step,max:e.max,min:e.min},le,ae.value,w.value),null),!c.value&&e.clearable&&!!e.modelValue&&(0,d.createVNode)("span",{class:k.value,onClick:Y},[(0,d.createVNode)(g.Close,null,null)]),I.value,G.value&&(e.showWordLimit||c.value)&&(0,d.createVNode)("p",{class:D.value},[e.overMaxLengthLimit?j.value-M.value:(0,d.createVNode)(d.Fragment,null,[M.value,(0,d.createTextVNode)(" / "),(0,d.createVNode)("span",null,[j.value])])]),A.value&&e.showControl&&(0,d.createVNode)("div",{class:ne("number-control")},[(0,d.createVNode)(g.DownSmall,{class:z.value,onClick:re},null),(0,d.createVNode)(g.DownSmall,{class:R.value,onClick:oe},null)]),null!==(l=null===(a=null===(i=t.slots)||void 0===i?void 0:i.suffix)||void 0===a?void 0:a.call(i))&&void 0!==l?l:e.suffix&&(0,d.createVNode)("div",{class:ne("suffix-area")},[(0,d.createVNode)("span",{class:ne("suffix-area--text")},[e.suffix])])]),[[(0,d.resolveDirective)("bk-tooltips"),F.value]])}}}),V=(0,i.withInstall)(L)})();var c=u.Z;export{c as default};
@@ -0,0 +1 @@
1
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -11,12 +11,12 @@
11
11
  background-color: transparent;
12
12
  }
13
13
  }
14
- .bk-fade-transtion .bk-fade-enter-active,
15
- .bk-fade-transtion .bk-fade-leave-active {
14
+ .bk-transition .bk-fade-enter-active,
15
+ .bk-transition .bk-fade-leave-active {
16
16
  transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
17
17
  }
18
- .bk-fade-transtion .bk-fade-enter,
19
- .bk-fade-transtion .bk-fade-leave-to {
18
+ .bk-transition .bk-fade-enter,
19
+ .bk-transition .bk-fade-leave-to {
20
20
  opacity: 0;
21
21
  }
22
22
  .clearfix-style::after {
@@ -71,12 +71,12 @@
71
71
  left: -4px;
72
72
  }
73
73
  .bk-textarea {
74
+ --textarea-line-height: 20px;
74
75
  display: inline-flex;
75
76
  width: 100%;
76
- min-height: 70px;
77
77
  overflow: hidden;
78
78
  font-size: 12px;
79
- line-height: 20px;
79
+ line-height: var(--textarea-line-height);
80
80
  color: #63656e;
81
81
  background-color: white;
82
82
  border: 1px solid #c4c6cc;
@@ -86,8 +86,20 @@
86
86
  flex-direction: column;
87
87
  }
88
88
  .bk-textarea ::placeholder {
89
+ font-size: 12px;
89
90
  color: #c4c6cc;
90
91
  }
92
+ .bk-textarea.resizable {
93
+ resize: both;
94
+ }
95
+ .bk-textarea ::-webkit-scrollbar {
96
+ -webkit-appearance: none;
97
+ width: 3px;
98
+ }
99
+ .bk-textarea ::-webkit-scrollbar-thumb {
100
+ border-radius: 4px;
101
+ background-color: #DCDEE5;
102
+ }
91
103
  .bk-textarea.is-disabled,
92
104
  .bk-textarea.is-readonly {
93
105
  background-color: #fafbfd;
@@ -123,7 +135,6 @@
123
135
  border-radius: 2px;
124
136
  outline: none;
125
137
  resize: none;
126
- flex: 1;
127
138
  }
128
139
  .bk-textarea--max-length {
129
140
  padding-right: 10px;
@@ -134,6 +145,9 @@
134
145
  transform: scale(0.8);
135
146
  justify-content: flex-end;
136
147
  }
148
+ .bk-textarea--max-length.is-over-limit {
149
+ color: #ea3636;
150
+ }
137
151
  .bk-textarea--max-length span {
138
152
  color: #979ba5;
139
153
  }
@@ -153,6 +167,7 @@
153
167
  transition: all 0.3s;
154
168
  }
155
169
  .bk-input ::placeholder {
170
+ font-size: 12px;
156
171
  color: #c4c6cc;
157
172
  }
158
173
  .bk-input.is-disabled,
@@ -211,12 +226,18 @@
211
226
  background-color: white;
212
227
  align-items: center;
213
228
  align-self: center;
229
+ flex-shrink: 0;
230
+ cursor: pointer;
231
+ }
232
+ .bk-input--suffix-icon:hover {
233
+ color: #313238;
214
234
  }
215
235
  .bk-input--suffix-icon.show-clear-only-hover {
216
236
  display: none;
217
237
  }
218
238
  .bk-input--clear-icon {
219
239
  cursor: pointer;
240
+ flex-shrink: 0;
220
241
  }
221
242
  .bk-input--clear-icon:hover {
222
243
  color: #979ba5;
@@ -225,6 +246,10 @@
225
246
  height: 40px;
226
247
  font-size: 14px;
227
248
  }
249
+ .bk-input--large ::placeholder {
250
+ font-size: 14px;
251
+ color: #c4c6cc;
252
+ }
228
253
  .bk-input--large .bk-input--max-length {
229
254
  font-size: 16px;
230
255
  }
@@ -277,14 +302,20 @@
277
302
  font-size: 12px;
278
303
  transform: scale(0.8);
279
304
  }
305
+ .bk-input--max-length.is-over-limit {
306
+ color: #ea3636;
307
+ }
280
308
  .bk-input--max-length span {
281
309
  color: #979ba5;
282
310
  }
283
311
  .bk-input--text {
284
312
  width: 100%;
285
313
  padding: 0 10px;
314
+ overflow: hidden;
286
315
  line-height: 1;
287
316
  color: #63656e;
317
+ text-overflow: ellipsis;
318
+ white-space: nowrap;
288
319
  background-color: white;
289
320
  background-image: none;
290
321
  border: none;
@@ -315,9 +346,6 @@
315
346
  margin: 0;
316
347
  appearance: none;
317
348
  }
318
- .bk-input--text::placeholder {
319
- color: #c4c6cc;
320
- }
321
349
  .bk-input--number-control {
322
350
  display: flex;
323
351
  width: 26px;