bkui-vue 0.0.1-beta.466 → 0.0.1-beta.468

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 (260) hide show
  1. package/dist/index.cjs.js +20 -20
  2. package/dist/index.esm.js +3255 -3254
  3. package/dist/index.umd.js +20 -20
  4. package/lib/affix/index.js +335 -1
  5. package/lib/alert/alert.d.ts +5 -5
  6. package/lib/alert/index.d.ts +9 -9
  7. package/lib/alert/index.js +276 -1
  8. package/lib/animate-number/index.js +219 -1
  9. package/lib/backtop/index.js +252 -1
  10. package/lib/badge/index.js +293 -1
  11. package/lib/breadcrumb/index.js +311 -1
  12. package/lib/button/index.js +388 -1
  13. package/lib/card/index.js +356 -1
  14. package/lib/cascader/cascader.d.ts +4 -4
  15. package/lib/cascader/index.d.ts +12 -12
  16. package/lib/cascader/index.js +2075 -2
  17. package/lib/checkbox/index.js +536 -1
  18. package/lib/code-diff/code-diff.d.ts +7 -7
  19. package/lib/code-diff/index.d.ts +9 -9
  20. package/lib/code-diff/index.js +5535 -1
  21. package/lib/collapse/collapse-panel.d.ts +5 -5
  22. package/lib/collapse/index.d.ts +5 -5
  23. package/lib/collapse/index.js +589 -1
  24. package/lib/collapse/props.d.ts +2 -2
  25. package/lib/collapse-transition/index.js +234 -1
  26. package/lib/color-picker/index.js +2701 -1
  27. package/lib/components.js +781 -1
  28. package/lib/config-provider/index.js +377 -1
  29. package/lib/container/index.js +390 -1
  30. package/lib/date-picker/base/month-table.d.ts +1 -1
  31. package/lib/date-picker/base/year-table.d.ts +1 -1
  32. package/lib/date-picker/date-picker.d.ts +4 -4
  33. package/lib/date-picker/index.d.ts +9 -9
  34. package/lib/date-picker/index.js +5537 -1
  35. package/lib/date-picker/panel/date.d.ts +1 -1
  36. package/lib/date-picker/panel/time-range.d.ts +4 -4
  37. package/lib/date-picker/panel/time.d.ts +5 -5
  38. package/lib/date-picker/props.d.ts +1 -1
  39. package/lib/date-picker/time-picker.d.ts +4 -4
  40. package/lib/dialog/dialog.d.ts +16 -16
  41. package/lib/dialog/index.d.ts +31 -31
  42. package/lib/dialog/index.js +1322 -2
  43. package/lib/dialog/props.d.ts +6 -6
  44. package/lib/directives/index.js +1357 -2
  45. package/lib/dist.index.js +179 -1
  46. package/lib/divider/divider.d.ts +6 -6
  47. package/lib/divider/index.d.ts +12 -12
  48. package/lib/divider/index.js +226 -1
  49. package/lib/divider/props.d.ts +2 -2
  50. package/lib/dropdown/dropdown.d.ts +5 -5
  51. package/lib/dropdown/index.d.ts +9 -9
  52. package/lib/dropdown/index.js +392 -1
  53. package/lib/exception/index.js +423 -1
  54. package/lib/fixed-navbar/index.js +210 -1
  55. package/lib/form/index.js +995 -1
  56. package/lib/hooks.js +133 -1
  57. package/lib/icon/angle-double-down-line.js +541 -1
  58. package/lib/icon/angle-double-left-line.js +541 -1
  59. package/lib/icon/angle-double-left.js +541 -1
  60. package/lib/icon/angle-double-right-line.js +541 -1
  61. package/lib/icon/angle-double-right.js +541 -1
  62. package/lib/icon/angle-double-up-line.js +541 -1
  63. package/lib/icon/angle-down-fill.js +541 -1
  64. package/lib/icon/angle-down-line.js +541 -1
  65. package/lib/icon/angle-down.js +541 -1
  66. package/lib/icon/angle-left.js +541 -1
  67. package/lib/icon/angle-right.js +541 -1
  68. package/lib/icon/angle-up-fill.js +541 -1
  69. package/lib/icon/angle-up.js +541 -1
  70. package/lib/icon/archive-fill.js +541 -1
  71. package/lib/icon/arrows-left.js +541 -1
  72. package/lib/icon/arrows-right.js +541 -1
  73. package/lib/icon/audio-fill.js +541 -1
  74. package/lib/icon/bk.js +541 -1
  75. package/lib/icon/circle.js +541 -1
  76. package/lib/icon/close-line.js +541 -1
  77. package/lib/icon/close.js +541 -1
  78. package/lib/icon/code.js +541 -1
  79. package/lib/icon/cog-shape.js +541 -1
  80. package/lib/icon/collapse-left.js +541 -1
  81. package/lib/icon/copy-shape.js +541 -1
  82. package/lib/icon/copy.js +541 -1
  83. package/lib/icon/data-shape.js +541 -1
  84. package/lib/icon/del.js +541 -1
  85. package/lib/icon/doc-fill.js +541 -1
  86. package/lib/icon/done.js +541 -1
  87. package/lib/icon/down-shape.js +541 -1
  88. package/lib/icon/down-small.js +541 -1
  89. package/lib/icon/edit-line.js +541 -1
  90. package/lib/icon/ellipsis.js +541 -1
  91. package/lib/icon/enlarge-line.js +541 -1
  92. package/lib/icon/error.js +541 -1
  93. package/lib/icon/excel-fill.js +541 -1
  94. package/lib/icon/exclamation-circle-shape.js +541 -1
  95. package/lib/icon/eye.js +541 -1
  96. package/lib/icon/filliscreen-line.js +541 -1
  97. package/lib/icon/fix-line.js +541 -1
  98. package/lib/icon/fix-shape.js +541 -1
  99. package/lib/icon/folder-open.js +541 -1
  100. package/lib/icon/folder-shape-open.js +541 -1
  101. package/lib/icon/folder-shape.js +541 -1
  102. package/lib/icon/folder.js +541 -1
  103. package/lib/icon/funnel.js +541 -1
  104. package/lib/icon/help-document-fill.js +541 -1
  105. package/lib/icon/help-fill.js +541 -1
  106. package/lib/icon/help.js +541 -1
  107. package/lib/icon/image-fill.js +563 -1
  108. package/lib/icon/img-error.js +563 -1
  109. package/lib/icon/img-placehoulder.js +563 -1
  110. package/lib/icon/index.js +2337 -1
  111. package/lib/icon/info-line.js +563 -1
  112. package/lib/icon/info.js +563 -1
  113. package/lib/icon/left-shape.js +563 -1
  114. package/lib/icon/left-turn-line.js +563 -1
  115. package/lib/icon/narrow-line.js +563 -1
  116. package/lib/icon/original.js +563 -1
  117. package/lib/icon/pdf-fill.js +563 -1
  118. package/lib/icon/play-shape.js +563 -1
  119. package/lib/icon/plus.js +563 -1
  120. package/lib/icon/ppt-fill.js +563 -1
  121. package/lib/icon/qq.js +563 -1
  122. package/lib/icon/right-shape.js +563 -1
  123. package/lib/icon/right-turn-line.js +563 -1
  124. package/lib/icon/search.js +563 -1
  125. package/lib/icon/share.js +563 -1
  126. package/lib/icon/spinner.js +563 -1
  127. package/lib/icon/success.js +563 -1
  128. package/lib/icon/switcher-loading.js +563 -1
  129. package/lib/icon/text-file.js +563 -1
  130. package/lib/icon/text-fill.js +563 -1
  131. package/lib/icon/transfer.js +563 -1
  132. package/lib/icon/tree-application-shape.js +563 -1
  133. package/lib/icon/unfull-screen.js +563 -1
  134. package/lib/icon/unvisible.js +563 -1
  135. package/lib/icon/up-shape.js +563 -1
  136. package/lib/icon/upload.js +563 -1
  137. package/lib/icon/video-fill.js +563 -1
  138. package/lib/icon/warn.js +563 -1
  139. package/lib/icon/weixin-pro.js +563 -1
  140. package/lib/icon/weixin.js +563 -1
  141. package/lib/image/image-viewer.d.ts +1 -1
  142. package/lib/image/image.d.ts +1 -1
  143. package/lib/image/index.d.ts +3 -3
  144. package/lib/image/index.js +944 -1
  145. package/lib/index.js +195 -1
  146. package/lib/info-box/index.js +1508 -2
  147. package/lib/input/index.d.ts +9 -9
  148. package/lib/input/index.js +963 -1
  149. package/lib/input/input.d.ts +7 -7
  150. package/lib/link/index.js +219 -1
  151. package/lib/loading/index.d.ts +4 -4
  152. package/lib/loading/index.js +434 -1
  153. package/lib/loading/loading.d.ts +3 -3
  154. package/lib/locale/index.js +489 -1
  155. package/lib/menu/index.js +776 -1
  156. package/lib/message/index.js +1744 -2
  157. package/lib/message/messageConstructor.d.ts +1 -1
  158. package/lib/modal/index.d.ts +15 -15
  159. package/lib/modal/index.js +397 -1
  160. package/lib/modal/modal.d.ts +6 -6
  161. package/lib/modal/props.mixin.d.ts +2 -2
  162. package/lib/navigation/index.d.ts +3 -3
  163. package/lib/navigation/index.js +423 -1
  164. package/lib/navigation/navigation.d.ts +1 -1
  165. package/lib/notify/index.js +437 -1
  166. package/lib/notify/notifyConstructor.d.ts +2 -2
  167. package/lib/overflow-title/components/overflow-title.d.ts +5 -5
  168. package/lib/overflow-title/index.d.ts +9 -9
  169. package/lib/overflow-title/index.js +547 -1
  170. package/lib/overflow-title/props.d.ts +4 -4
  171. package/lib/pagination/index.js +987 -1
  172. package/lib/plugin-popover/index.js +4022 -1
  173. package/lib/plugins/index.js +130 -1
  174. package/lib/pop-confirm/index.js +365 -1
  175. package/lib/popover/index.d.ts +9 -9
  176. package/lib/popover/index.js +4028 -1
  177. package/lib/popover/popover.d.ts +5 -5
  178. package/lib/popover/props.d.ts +2 -2
  179. package/lib/popover2/index.js +171 -1
  180. package/lib/preset.js +164 -1
  181. package/lib/process/index.js +1143 -2
  182. package/lib/progress/index.d.ts +3 -3
  183. package/lib/progress/index.js +476 -1
  184. package/lib/progress/progress.d.ts +1 -1
  185. package/lib/radio/index.js +611 -1
  186. package/lib/rate/index.js +348 -1
  187. package/lib/rate/star.d.ts +1 -1
  188. package/lib/resize-layout/index.d.ts +15 -15
  189. package/lib/resize-layout/index.js +482 -1
  190. package/lib/resize-layout/resize-layout.d.ts +7 -7
  191. package/lib/search-select/index.d.ts +15 -15
  192. package/lib/search-select/index.js +2999 -2
  193. package/lib/search-select/input.d.ts +1 -1
  194. package/lib/search-select/search-select.d.ts +5 -5
  195. package/lib/search-select/selected.d.ts +1 -1
  196. package/lib/select/index.d.ts +61 -61
  197. package/lib/select/index.js +2531 -2
  198. package/lib/select/select.d.ts +26 -26
  199. package/lib/select/selectTagInput.d.ts +5 -5
  200. package/lib/shared/index.js +2713 -1
  201. package/lib/shared/vue-types.d.ts +11 -11
  202. package/lib/sideslider/index.d.ts +13 -13
  203. package/lib/sideslider/index.js +1043 -2
  204. package/lib/sideslider/sideslider.d.ts +6 -6
  205. package/lib/slider/index.js +1667 -2
  206. package/lib/steps/index.d.ts +6 -6
  207. package/lib/steps/index.js +1212 -2
  208. package/lib/steps/steps.d.ts +2 -2
  209. package/lib/swiper/index.js +350 -1
  210. package/lib/switcher/index.js +323 -1
  211. package/lib/tab/index.d.ts +19 -19
  212. package/lib/tab/index.js +918 -1
  213. package/lib/tab/props.d.ts +8 -8
  214. package/lib/tab/tab-nav.d.ts +5 -5
  215. package/lib/tab/tab-panel.d.ts +6 -6
  216. package/lib/tab/tab.d.ts +6 -6
  217. package/lib/table/components/table-column.d.ts +7 -7
  218. package/lib/table/index.d.ts +36 -36
  219. package/lib/table/index.js +6388 -1
  220. package/lib/table/plugins/body-empty.d.ts +1 -1
  221. package/lib/table/props.d.ts +9 -9
  222. package/lib/table/table.d.ts +11 -11
  223. package/lib/table-column/index.d.ts +13 -13
  224. package/lib/table-column/index.js +801 -1
  225. package/lib/tag/index.d.ts +9 -9
  226. package/lib/tag/index.js +300 -1
  227. package/lib/tag/tag.d.ts +5 -5
  228. package/lib/tag-input/index.d.ts +9 -9
  229. package/lib/tag-input/index.js +1757 -1
  230. package/lib/tag-input/tag-input.d.ts +5 -5
  231. package/lib/tag-input/tag-props.d.ts +2 -2
  232. package/lib/time-picker/index.d.ts +9 -9
  233. package/lib/time-picker/index.js +142 -1
  234. package/lib/timeline/index.js +297 -1
  235. package/lib/transfer/index.d.ts +3 -3
  236. package/lib/transfer/index.js +764 -1
  237. package/lib/transfer/transfer.d.ts +1 -1
  238. package/lib/tree/constant.d.ts +2 -1
  239. package/lib/tree/index.d.ts +6 -6
  240. package/lib/tree/index.js +2608 -1
  241. package/lib/tree/tree.d.ts +2 -2
  242. package/lib/upload/index.d.ts +4 -4
  243. package/lib/upload/index.js +3257 -2
  244. package/lib/upload/upload.d.ts +1 -1
  245. package/lib/virtual-render/index.d.ts +3 -3
  246. package/lib/virtual-render/index.js +790 -1
  247. package/lib/virtual-render/virtual-render.d.ts +1 -1
  248. package/package.json +1 -1
  249. package/lib/cascader/index.js.LICENSE.txt +0 -1
  250. package/lib/dialog/index.js.LICENSE.txt +0 -1
  251. package/lib/directives/index.js.LICENSE.txt +0 -14
  252. package/lib/info-box/index.js.LICENSE.txt +0 -1
  253. package/lib/message/index.js.LICENSE.txt +0 -6
  254. package/lib/process/index.js.LICENSE.txt +0 -1
  255. package/lib/search-select/index.js.LICENSE.txt +0 -1
  256. package/lib/select/index.js.LICENSE.txt +0 -1
  257. package/lib/sideslider/index.js.LICENSE.txt +0 -1
  258. package/lib/slider/index.js.LICENSE.txt +0 -1
  259. package/lib/steps/index.js.LICENSE.txt +0 -1
  260. package/lib/upload/index.js.LICENSE.txt +0 -1
@@ -1 +1,963 @@
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 a(e){var r=l[e];if(void 0!==r)return r.exports;var t=l[e]={exports:{}};return n[e](t,t.exports,a),t.exports}a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{a.r(i),a.d(i,{default:()=>y});var e=a(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=a(748);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var l,u,s=a(2717),c=a(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 a=(0,e.useFormItem)(),i=(0,s.useLocale)("input"),p=(0,n.ref)(!1),d=(0,n.ref)(!1),f=(0,n.computed)((function(){return"textarea"===t.type})),v=(0,n.computed)((function(){return f.value?(0,e.resolveClassName)("textarea"):(0,e.resolveClassName)("input")})),m=l.attrs,y=m.class,b=m.style,P=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}(m,["class","style"]),T=(0,n.ref)(),g=(0,n.computed)((function(){var r;return(0,e.classes)((o(r={},"".concat(v.value,"--").concat(t.size),!!t.size),o(r,"is-focused",p.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(y),!!y),r),v.value)})),h={search:function(){return(0,n.createVNode)(c.Search,null,null)},password:function(){return(0,n.createVNode)(c.Eye,{onClick:F},null)}},x=G("suffix-icon"),N=(0,n.computed)((function(){var e=h[t.type];return S.value?(0,n.createVNode)(c.Unvisible,{onClick:F,class:x},null):e?(0,n.createVNode)(e,{class:x},null):null})),E=(0,n.computed)((function(){return"number"===t.type})),O=(0,n.computed)((function(){return Math.floor(t.maxlength)})),S=(0,n.ref)(!1),C=(0,n.computed)((function(){return(0,e.classes)(o({"show-clear-only-hover":t.showClearOnlyHover},"".concat(v.value,"--clear-icon"),!0),x)})),V=(0,n.computed)((function(){return(0,e.classes)({"is-disabled":t.disabled||t.modelValue>=t.max})})),w=(0,n.computed)((function(){return(0,e.classes)({"is-disabled":t.disabled||t.modelValue<=t.min})}));function A(){if(!t.disabled){var e=E.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(){T.value.focus()},clear:A});var I,U,j=(I=[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),!d.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&&E.value&&""!==r.target.value){var t=Y(r.target.value,0);return l.emit(u.UPDATE,t,r),void l.emit(e,t,r)}l.emit(e,r.target.value,r)}}})),U=6,function(e){if(Array.isArray(e))return e}(I)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,n,l,a,i=[],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)&&(i.push(o.value),i.length!==r);u=!0);}catch(e){s=!0,n=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw n}}return i}}(I,U)||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}}(I,U)||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.")}()),D=j[0],R=j[1],K=j[2],k=j[3],M=j[4],H=j[5];function Y(e,r){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=Number(r),l=Number.isInteger(t.precision)?t.precision:0,a=Number(e),i=Number.isInteger(n)?n:1,u=a+(o?i:-1*i);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 L(){if(!t.disabled){var e=Y(t.modelValue,t.step);l.emit(u.UPDATE,e),l.emit(u.CHANGE,e)}}function q(){if(!t.disabled){var e=Y(t.modelValue,t.step,!1);l.emit(u.UPDATE,e),l.emit(u.CHANGE,e)}}function G(e){return"".concat(v.value,"--").concat(e)}function F(){S.value=!S.value}var W=(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||i.value.placeholder,readonly:t.readonly,disabled:t.disabled})})),B={onInput:H,onFocus:function(e){p.value=!0,l.emit(u.FOCUS,e)},onBlur:function(e){var r;p.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:k,onChange:M,onKeypress:K,onKeydown:R,onKeyup:D,onCompositionstart:function(){d.value=!0},onCompositionend:function(e){d.value=!1,H(e)}};return function(){var e,r,o,a,i,u,s;return(0,n.createVNode)("div",{class:g.value,style:b},[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:G("prefix-area")},[(0,n.createVNode)("span",{class:G("prefix-area--text")},[t.prefix])]),f.value?(0,n.createVNode)("textarea",(0,n.mergeProps)({ref:T,spellcheck:!1},P,B,W.value,{rows:t.rows}),null):(0,n.createVNode)("input",(0,n.mergeProps)({spellcheck:!1},P,{ref:T,class:"".concat(v.value,"--text"),type:S.value&&"password"===t.type?"text":t.type,step:t.step,max:t.max,min:t.min},B,W.value),null),!f.value&&t.clearable&&!!t.modelValue&&(0,n.createVNode)("span",{class:C.value,onClick:A},[(0,n.createVNode)(c.Close,null,null)]),N.value,"number"==typeof t.maxlength&&(t.showWordLimit||f.value)&&(0,n.createVNode)("p",{class:G("max-length")},[(null!==(a=t.modelValue)&&void 0!==a?a:"").toString().length,(0,n.createTextVNode)("/"),(0,n.createVNode)("span",null,[O.value])]),E.value&&t.showControl&&(0,n.createVNode)("div",{class:G("number-control")},[(0,n.createVNode)(c.DownSmall,{class:V.value,onClick:L},null),(0,n.createVNode)(c.DownSmall,{class:w.value,onClick:q},null)]),null!==(s=null===(u=null===(i=l.slots)||void 0===i?void 0:i.suffix)||void 0===u?void 0:u.call(i))&&void 0!==s?s:t.suffix&&(0,n.createVNode)("div",{class:G("suffix-area")},[(0,n.createVNode)("span",{class:G("suffix-area--text")},[t.suffix])])])}}}),y=(0,e.withInstall)(m)})(),i})()));
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("../shared"), require("vue"), require("../config-provider"), require("../icon"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define(["../shared", "vue", "../config-provider", "../icon"], factory);
6
+ else {
7
+ var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("../config-provider"), require("../icon")) : factory(root["../shared"], root["vue"], root["../config-provider"], root["../icon"]);
8
+ for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
+ }
10
+ })(self, (__WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__2717__, __WEBPACK_EXTERNAL_MODULE__6870__) => {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 2717:
16
+ /***/ ((module) => {
17
+
18
+ module.exports = __WEBPACK_EXTERNAL_MODULE__2717__;
19
+
20
+ /***/ }),
21
+
22
+ /***/ 6870:
23
+ /***/ ((module) => {
24
+
25
+ module.exports = __WEBPACK_EXTERNAL_MODULE__6870__;
26
+
27
+ /***/ }),
28
+
29
+ /***/ 4212:
30
+ /***/ ((module) => {
31
+
32
+ module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
33
+
34
+ /***/ }),
35
+
36
+ /***/ 748:
37
+ /***/ ((module) => {
38
+
39
+ module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
40
+
41
+ /***/ })
42
+
43
+ /******/ });
44
+ /************************************************************************/
45
+ /******/ // The module cache
46
+ /******/ var __webpack_module_cache__ = {};
47
+ /******/
48
+ /******/ // The require function
49
+ /******/ function __webpack_require__(moduleId) {
50
+ /******/ // Check if module is in cache
51
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
52
+ /******/ if (cachedModule !== undefined) {
53
+ /******/ return cachedModule.exports;
54
+ /******/ }
55
+ /******/ // Create a new module (and put it into the cache)
56
+ /******/ var module = __webpack_module_cache__[moduleId] = {
57
+ /******/ // no module.id needed
58
+ /******/ // no module.loaded needed
59
+ /******/ exports: {}
60
+ /******/ };
61
+ /******/
62
+ /******/ // Execute the module function
63
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
64
+ /******/
65
+ /******/ // Return the exports of the module
66
+ /******/ return module.exports;
67
+ /******/ }
68
+ /******/
69
+ /************************************************************************/
70
+ /******/ /* webpack/runtime/define property getters */
71
+ /******/ (() => {
72
+ /******/ // define getter functions for harmony exports
73
+ /******/ __webpack_require__.d = (exports, definition) => {
74
+ /******/ for(var key in definition) {
75
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
76
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
77
+ /******/ }
78
+ /******/ }
79
+ /******/ };
80
+ /******/ })();
81
+ /******/
82
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
83
+ /******/ (() => {
84
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
85
+ /******/ })();
86
+ /******/
87
+ /******/ /* webpack/runtime/make namespace object */
88
+ /******/ (() => {
89
+ /******/ // define __esModule on exports
90
+ /******/ __webpack_require__.r = (exports) => {
91
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
92
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
93
+ /******/ }
94
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
95
+ /******/ };
96
+ /******/ })();
97
+ /******/
98
+ /************************************************************************/
99
+ var __webpack_exports__ = {};
100
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
101
+ (() => {
102
+ // ESM COMPAT FLAG
103
+ __webpack_require__.r(__webpack_exports__);
104
+
105
+ // EXPORTS
106
+ __webpack_require__.d(__webpack_exports__, {
107
+ "default": () => (/* binding */ src)
108
+ });
109
+
110
+ // EXTERNAL MODULE: external "../shared"
111
+ var external_shared_ = __webpack_require__(4212);
112
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
113
+ function _arrayWithHoles(arr) {
114
+ if (Array.isArray(arr)) return arr;
115
+ }
116
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
117
+ function _iterableToArrayLimit(arr, i) {
118
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
119
+ if (null != _i) {
120
+ var _s,
121
+ _e,
122
+ _x,
123
+ _r,
124
+ _arr = [],
125
+ _n = !0,
126
+ _d = !1;
127
+ try {
128
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
129
+ if (Object(_i) !== _i) return;
130
+ _n = !1;
131
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
132
+ } catch (err) {
133
+ _d = !0, _e = err;
134
+ } finally {
135
+ try {
136
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
137
+ } finally {
138
+ if (_d) throw _e;
139
+ }
140
+ }
141
+ return _arr;
142
+ }
143
+ }
144
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
145
+ function _arrayLikeToArray(arr, len) {
146
+ if (len == null || len > arr.length) len = arr.length;
147
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
148
+ return arr2;
149
+ }
150
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
151
+
152
+ function _unsupportedIterableToArray(o, minLen) {
153
+ if (!o) return;
154
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
155
+ var n = Object.prototype.toString.call(o).slice(8, -1);
156
+ if (n === "Object" && o.constructor) n = o.constructor.name;
157
+ if (n === "Map" || n === "Set") return Array.from(o);
158
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
159
+ }
160
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
161
+ function _nonIterableRest() {
162
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
163
+ }
164
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
165
+
166
+
167
+
168
+
169
+ function _slicedToArray(arr, i) {
170
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
171
+ }
172
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
173
+ function _typeof(obj) {
174
+ "@babel/helpers - typeof";
175
+
176
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
177
+ return typeof obj;
178
+ } : function (obj) {
179
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
180
+ }, _typeof(obj);
181
+ }
182
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
183
+
184
+ function _toPrimitive(input, hint) {
185
+ if (_typeof(input) !== "object" || input === null) return input;
186
+ var prim = input[Symbol.toPrimitive];
187
+ if (prim !== undefined) {
188
+ var res = prim.call(input, hint || "default");
189
+ if (_typeof(res) !== "object") return res;
190
+ throw new TypeError("@@toPrimitive must return a primitive value.");
191
+ }
192
+ return (hint === "string" ? String : Number)(input);
193
+ }
194
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
195
+
196
+
197
+ function _toPropertyKey(arg) {
198
+ var key = _toPrimitive(arg, "string");
199
+ return _typeof(key) === "symbol" ? key : String(key);
200
+ }
201
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
202
+
203
+ function _defineProperty(obj, key, value) {
204
+ key = _toPropertyKey(key);
205
+ if (key in obj) {
206
+ Object.defineProperty(obj, key, {
207
+ value: value,
208
+ enumerable: true,
209
+ configurable: true,
210
+ writable: true
211
+ });
212
+ } else {
213
+ obj[key] = value;
214
+ }
215
+ return obj;
216
+ }
217
+ // EXTERNAL MODULE: external "vue"
218
+ var external_vue_ = __webpack_require__(748);
219
+ ;// CONCATENATED MODULE: ../../node_modules/tslib/tslib.es6.mjs
220
+ /******************************************************************************
221
+ Copyright (c) Microsoft Corporation.
222
+
223
+ Permission to use, copy, modify, and/or distribute this software for any
224
+ purpose with or without fee is hereby granted.
225
+
226
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
227
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
228
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
229
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
230
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
231
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
232
+ PERFORMANCE OF THIS SOFTWARE.
233
+ ***************************************************************************** */
234
+ /* global Reflect, Promise, SuppressedError, Symbol */
235
+
236
+ var extendStatics = function(d, b) {
237
+ extendStatics = Object.setPrototypeOf ||
238
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
239
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
240
+ return extendStatics(d, b);
241
+ };
242
+
243
+ function __extends(d, b) {
244
+ if (typeof b !== "function" && b !== null)
245
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
246
+ extendStatics(d, b);
247
+ function __() { this.constructor = d; }
248
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
249
+ }
250
+
251
+ var __assign = function() {
252
+ __assign = Object.assign || function __assign(t) {
253
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
254
+ s = arguments[i];
255
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
256
+ }
257
+ return t;
258
+ }
259
+ return __assign.apply(this, arguments);
260
+ }
261
+
262
+ function __rest(s, e) {
263
+ var t = {};
264
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
265
+ t[p] = s[p];
266
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
267
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
268
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
269
+ t[p[i]] = s[p[i]];
270
+ }
271
+ return t;
272
+ }
273
+
274
+ function __decorate(decorators, target, key, desc) {
275
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
276
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
277
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
278
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
279
+ }
280
+
281
+ function __param(paramIndex, decorator) {
282
+ return function (target, key) { decorator(target, key, paramIndex); }
283
+ }
284
+
285
+ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
286
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
287
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
288
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
289
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
290
+ var _, done = false;
291
+ for (var i = decorators.length - 1; i >= 0; i--) {
292
+ var context = {};
293
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
294
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
295
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
296
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
297
+ if (kind === "accessor") {
298
+ if (result === void 0) continue;
299
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
300
+ if (_ = accept(result.get)) descriptor.get = _;
301
+ if (_ = accept(result.set)) descriptor.set = _;
302
+ if (_ = accept(result.init)) initializers.unshift(_);
303
+ }
304
+ else if (_ = accept(result)) {
305
+ if (kind === "field") initializers.unshift(_);
306
+ else descriptor[key] = _;
307
+ }
308
+ }
309
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
310
+ done = true;
311
+ };
312
+
313
+ function __runInitializers(thisArg, initializers, value) {
314
+ var useValue = arguments.length > 2;
315
+ for (var i = 0; i < initializers.length; i++) {
316
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
317
+ }
318
+ return useValue ? value : void 0;
319
+ };
320
+
321
+ function __propKey(x) {
322
+ return typeof x === "symbol" ? x : "".concat(x);
323
+ };
324
+
325
+ function __setFunctionName(f, name, prefix) {
326
+ if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
327
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
328
+ };
329
+
330
+ function __metadata(metadataKey, metadataValue) {
331
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
332
+ }
333
+
334
+ function __awaiter(thisArg, _arguments, P, generator) {
335
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
336
+ return new (P || (P = Promise))(function (resolve, reject) {
337
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
338
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
339
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
340
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
341
+ });
342
+ }
343
+
344
+ function __generator(thisArg, body) {
345
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
346
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
347
+ function verb(n) { return function (v) { return step([n, v]); }; }
348
+ function step(op) {
349
+ if (f) throw new TypeError("Generator is already executing.");
350
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
351
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
352
+ if (y = 0, t) op = [op[0] & 2, t.value];
353
+ switch (op[0]) {
354
+ case 0: case 1: t = op; break;
355
+ case 4: _.label++; return { value: op[1], done: false };
356
+ case 5: _.label++; y = op[1]; op = [0]; continue;
357
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
358
+ default:
359
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
360
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
361
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
362
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
363
+ if (t[2]) _.ops.pop();
364
+ _.trys.pop(); continue;
365
+ }
366
+ op = body.call(thisArg, _);
367
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
368
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
369
+ }
370
+ }
371
+
372
+ var __createBinding = Object.create ? (function(o, m, k, k2) {
373
+ if (k2 === undefined) k2 = k;
374
+ var desc = Object.getOwnPropertyDescriptor(m, k);
375
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
376
+ desc = { enumerable: true, get: function() { return m[k]; } };
377
+ }
378
+ Object.defineProperty(o, k2, desc);
379
+ }) : (function(o, m, k, k2) {
380
+ if (k2 === undefined) k2 = k;
381
+ o[k2] = m[k];
382
+ });
383
+
384
+ function __exportStar(m, o) {
385
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
386
+ }
387
+
388
+ function __values(o) {
389
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
390
+ if (m) return m.call(o);
391
+ if (o && typeof o.length === "number") return {
392
+ next: function () {
393
+ if (o && i >= o.length) o = void 0;
394
+ return { value: o && o[i++], done: !o };
395
+ }
396
+ };
397
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
398
+ }
399
+
400
+ function __read(o, n) {
401
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
402
+ if (!m) return o;
403
+ var i = m.call(o), r, ar = [], e;
404
+ try {
405
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
406
+ }
407
+ catch (error) { e = { error: error }; }
408
+ finally {
409
+ try {
410
+ if (r && !r.done && (m = i["return"])) m.call(i);
411
+ }
412
+ finally { if (e) throw e.error; }
413
+ }
414
+ return ar;
415
+ }
416
+
417
+ /** @deprecated */
418
+ function __spread() {
419
+ for (var ar = [], i = 0; i < arguments.length; i++)
420
+ ar = ar.concat(__read(arguments[i]));
421
+ return ar;
422
+ }
423
+
424
+ /** @deprecated */
425
+ function __spreadArrays() {
426
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
427
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
428
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
429
+ r[k] = a[j];
430
+ return r;
431
+ }
432
+
433
+ function __spreadArray(to, from, pack) {
434
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
435
+ if (ar || !(i in from)) {
436
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
437
+ ar[i] = from[i];
438
+ }
439
+ }
440
+ return to.concat(ar || Array.prototype.slice.call(from));
441
+ }
442
+
443
+ function __await(v) {
444
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
445
+ }
446
+
447
+ function __asyncGenerator(thisArg, _arguments, generator) {
448
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
449
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
450
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
451
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
452
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
453
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
454
+ function fulfill(value) { resume("next", value); }
455
+ function reject(value) { resume("throw", value); }
456
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
457
+ }
458
+
459
+ function __asyncDelegator(o) {
460
+ var i, p;
461
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
462
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
463
+ }
464
+
465
+ function __asyncValues(o) {
466
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
467
+ var m = o[Symbol.asyncIterator], i;
468
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
469
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
470
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
471
+ }
472
+
473
+ function __makeTemplateObject(cooked, raw) {
474
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
475
+ return cooked;
476
+ };
477
+
478
+ var __setModuleDefault = Object.create ? (function(o, v) {
479
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
480
+ }) : function(o, v) {
481
+ o["default"] = v;
482
+ };
483
+
484
+ function __importStar(mod) {
485
+ if (mod && mod.__esModule) return mod;
486
+ var result = {};
487
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
488
+ __setModuleDefault(result, mod);
489
+ return result;
490
+ }
491
+
492
+ function __importDefault(mod) {
493
+ return (mod && mod.__esModule) ? mod : { default: mod };
494
+ }
495
+
496
+ function __classPrivateFieldGet(receiver, state, kind, f) {
497
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
498
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
499
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
500
+ }
501
+
502
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
503
+ if (kind === "m") throw new TypeError("Private method is not writable");
504
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
505
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
506
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
507
+ }
508
+
509
+ function __classPrivateFieldIn(state, receiver) {
510
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
511
+ return typeof state === "function" ? receiver === state : state.has(receiver);
512
+ }
513
+
514
+ function __addDisposableResource(env, value, async) {
515
+ if (value !== null && value !== void 0) {
516
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
517
+ var dispose;
518
+ if (async) {
519
+ if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
520
+ dispose = value[Symbol.asyncDispose];
521
+ }
522
+ if (dispose === void 0) {
523
+ if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
524
+ dispose = value[Symbol.dispose];
525
+ }
526
+ if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
527
+ env.stack.push({ value: value, dispose: dispose, async: async });
528
+ }
529
+ else if (async) {
530
+ env.stack.push({ async: true });
531
+ }
532
+ return value;
533
+ }
534
+
535
+ var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
536
+ var e = new Error(message);
537
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
538
+ };
539
+
540
+ function __disposeResources(env) {
541
+ function fail(e) {
542
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
543
+ env.hasError = true;
544
+ }
545
+ function next() {
546
+ while (env.stack.length) {
547
+ var rec = env.stack.pop();
548
+ try {
549
+ var result = rec.dispose && rec.dispose.call(rec.value);
550
+ if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
551
+ }
552
+ catch (e) {
553
+ fail(e);
554
+ }
555
+ }
556
+ if (env.hasError) throw env.error;
557
+ }
558
+ return next();
559
+ }
560
+
561
+ /* harmony default export */ const tslib_es6 = ({
562
+ __extends,
563
+ __assign,
564
+ __rest,
565
+ __decorate,
566
+ __param,
567
+ __metadata,
568
+ __awaiter,
569
+ __generator,
570
+ __createBinding,
571
+ __exportStar,
572
+ __values,
573
+ __read,
574
+ __spread,
575
+ __spreadArrays,
576
+ __spreadArray,
577
+ __await,
578
+ __asyncGenerator,
579
+ __asyncDelegator,
580
+ __asyncValues,
581
+ __makeTemplateObject,
582
+ __importStar,
583
+ __importDefault,
584
+ __classPrivateFieldGet,
585
+ __classPrivateFieldSet,
586
+ __classPrivateFieldIn,
587
+ __addDisposableResource,
588
+ __disposeResources,
589
+ });
590
+
591
+ // EXTERNAL MODULE: external "../config-provider"
592
+ var external_config_provider_ = __webpack_require__(2717);
593
+ // EXTERNAL MODULE: external "../icon"
594
+ var external_icon_ = __webpack_require__(6870);
595
+ ;// CONCATENATED MODULE: ../../packages/input/src/input.tsx
596
+
597
+
598
+ var _inputEmitEventsType;
599
+
600
+ /*
601
+ * Tencent is pleased to support the open source community by making
602
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
603
+ *
604
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
605
+ *
606
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
607
+ *
608
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
609
+ *
610
+ * ---------------------------------------------------
611
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
612
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
613
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
614
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
615
+ *
616
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
617
+ * the Software.
618
+ *
619
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
620
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
621
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
622
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
623
+ * IN THE SOFTWARE.
624
+ */
625
+
626
+
627
+
628
+
629
+
630
+ var inputType = {
631
+ type: external_shared_.PropTypes.string.def('text'),
632
+ clearable: external_shared_.PropTypes.bool,
633
+ disabled: external_shared_.PropTypes.bool,
634
+ readonly: external_shared_.PropTypes.bool,
635
+ placeholder: external_shared_.PropTypes.string.def(''),
636
+ prefixIcon: external_shared_.PropTypes.string,
637
+ suffixIcon: external_shared_.PropTypes.string,
638
+ suffix: external_shared_.PropTypes.string,
639
+ prefix: external_shared_.PropTypes.string,
640
+ step: external_shared_.PropTypes.integer,
641
+ max: external_shared_.PropTypes.integer,
642
+ min: external_shared_.PropTypes.integer,
643
+ maxlength: external_shared_.PropTypes.integer,
644
+ behavior: (0,external_shared_.InputBehaviorType)(),
645
+ showWordLimit: external_shared_.PropTypes.bool,
646
+ showControl: external_shared_.PropTypes.bool.def(true),
647
+ showClearOnlyHover: external_shared_.PropTypes.bool.def(true),
648
+ precision: external_shared_.PropTypes.number.def(0).validate(function (val) {
649
+ return val >= 0 && val < 20;
650
+ }),
651
+ modelValue: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.number]),
652
+ size: external_shared_.PropTypes.size(),
653
+ rows: external_shared_.PropTypes.number,
654
+ selectReadonly: external_shared_.PropTypes.bool.def(false),
655
+ withValidate: external_shared_.PropTypes.bool.def(true)
656
+ };
657
+ var EVENTS;
658
+ (function (EVENTS) {
659
+ EVENTS["UPDATE"] = "update:modelValue";
660
+ EVENTS["FOCUS"] = "focus";
661
+ EVENTS["BLUR"] = "blur";
662
+ EVENTS["CHANGE"] = "change";
663
+ EVENTS["CLEAR"] = "clear";
664
+ EVENTS["INPUT"] = "input";
665
+ EVENTS["KEYPRESS"] = "keypress";
666
+ EVENTS["KEYDOWN"] = "keydown";
667
+ EVENTS["KEYUP"] = "keyup";
668
+ EVENTS["ENTER"] = "enter";
669
+ EVENTS["PASTE"] = "paste";
670
+ EVENTS["COMPOSITIONSTART"] = "compositionstart";
671
+ EVENTS["COMPOSITIONUPDATE"] = "compositionupdate";
672
+ EVENTS["COMPOSITIONEND"] = "compositionend";
673
+ })(EVENTS || (EVENTS = {}));
674
+ function EventFunction(_value, _evt) {
675
+ return true;
676
+ }
677
+ function CompositionEventFunction(evt) {
678
+ return evt;
679
+ }
680
+ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmitEventsType, EVENTS.UPDATE, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.FOCUS, function (evt) {
681
+ return evt;
682
+ }), _defineProperty(_inputEmitEventsType, EVENTS.BLUR, function (evt) {
683
+ return evt;
684
+ }), _defineProperty(_inputEmitEventsType, EVENTS.CHANGE, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.CLEAR, function () {
685
+ return true;
686
+ }), _defineProperty(_inputEmitEventsType, EVENTS.INPUT, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.KEYPRESS, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.KEYDOWN, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.KEYUP, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.ENTER, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.PASTE, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.COMPOSITIONSTART, CompositionEventFunction), _defineProperty(_inputEmitEventsType, EVENTS.COMPOSITIONUPDATE, CompositionEventFunction), _defineProperty(_inputEmitEventsType, EVENTS.COMPOSITIONEND, CompositionEventFunction), _inputEmitEventsType);
687
+ /* harmony default export */ const input = ((0,external_vue_.defineComponent)({
688
+ name: 'Input',
689
+ inheritAttrs: false,
690
+ props: inputType,
691
+ emits: inputEmitEventsType,
692
+ setup: function setup(props, ctx) {
693
+ var formItem = (0,external_shared_.useFormItem)();
694
+ var t = (0,external_config_provider_.useLocale)('input');
695
+ var isFocused = (0,external_vue_.ref)(false);
696
+ var isCNInput = (0,external_vue_.ref)(false);
697
+ var isTextArea = (0,external_vue_.computed)(function () {
698
+ return props.type === 'textarea';
699
+ });
700
+ var inputClsPrefix = (0,external_vue_.computed)(function () {
701
+ return isTextArea.value ? (0,external_shared_.resolveClassName)('textarea') : (0,external_shared_.resolveClassName)('input');
702
+ });
703
+ var _a = ctx.attrs,
704
+ cls = _a["class"],
705
+ style = _a.style,
706
+ inputAttrs = __rest(_a, ["class", "style"]);
707
+ var inputRef = (0,external_vue_.ref)();
708
+ var inputCls = (0,external_vue_.computed)(function () {
709
+ var _classes;
710
+ return (0,external_shared_.classes)((_classes = {}, _defineProperty(_classes, "".concat(inputClsPrefix.value, "--").concat(props.size), !!props.size), _defineProperty(_classes, 'is-focused', isFocused.value), _defineProperty(_classes, 'is-readonly', props.readonly && !props.selectReadonly), _defineProperty(_classes, 'is-disabled', props.disabled), _defineProperty(_classes, 'is-simplicity', props.behavior === 'simplicity'), _defineProperty(_classes, "".concat(cls), !!cls), _classes), inputClsPrefix.value);
711
+ });
712
+ var suffixIconMap = {
713
+ search: function search() {
714
+ return (0,external_vue_.createVNode)(external_icon_.Search, null, null);
715
+ },
716
+ password: function password() {
717
+ return (0,external_vue_.createVNode)(external_icon_.Eye, {
718
+ "onClick": handleVisibleChange
719
+ }, null);
720
+ }
721
+ };
722
+ var suffixCls = getCls('suffix-icon');
723
+ var suffixIcon = (0,external_vue_.computed)(function () {
724
+ var icon = suffixIconMap[props.type];
725
+ if (pwdVisible.value) {
726
+ return (0,external_vue_.createVNode)(external_icon_.Unvisible, {
727
+ "onClick": handleVisibleChange,
728
+ "class": suffixCls
729
+ }, null);
730
+ }
731
+ return icon ? (0,external_vue_.createVNode)(icon, {
732
+ "class": suffixCls
733
+ }, null) : null;
734
+ });
735
+ var isNumberInput = (0,external_vue_.computed)(function () {
736
+ return props.type === 'number';
737
+ });
738
+ var ceilMaxLength = (0,external_vue_.computed)(function () {
739
+ return Math.floor(props.maxlength);
740
+ });
741
+ var pwdVisible = (0,external_vue_.ref)(false);
742
+ var clearCls = (0,external_vue_.computed)(function () {
743
+ return (0,external_shared_.classes)(_defineProperty({
744
+ 'show-clear-only-hover': props.showClearOnlyHover
745
+ }, "".concat(inputClsPrefix.value, "--clear-icon"), true), suffixCls);
746
+ });
747
+ var incControlCls = (0,external_vue_.computed)(function () {
748
+ return (0,external_shared_.classes)({
749
+ 'is-disabled': props.disabled || props.modelValue >= props.max
750
+ });
751
+ });
752
+ var decControlCls = (0,external_vue_.computed)(function () {
753
+ return (0,external_shared_.classes)({
754
+ 'is-disabled': props.disabled || props.modelValue <= props.min
755
+ });
756
+ });
757
+ (0,external_vue_.watch)(function () {
758
+ return props.modelValue;
759
+ }, function () {
760
+ var _a;
761
+ if (props.withValidate) {
762
+ (_a = formItem === null || formItem === void 0 ? void 0 : formItem.validate) === null || _a === void 0 ? void 0 : _a.call(formItem, 'change');
763
+ }
764
+ });
765
+ ctx.expose({
766
+ focus: function focus() {
767
+ inputRef.value.focus();
768
+ },
769
+ clear: clear
770
+ });
771
+ function clear() {
772
+ if (props.disabled) return;
773
+ var resetVal = isNumberInput.value ? props.min : '';
774
+ ctx.emit(EVENTS.UPDATE, resetVal);
775
+ ctx.emit(EVENTS.CHANGE, resetVal);
776
+ ctx.emit(EVENTS.CLEAR);
777
+ }
778
+ function handleFocus(e) {
779
+ isFocused.value = true;
780
+ ctx.emit(EVENTS.FOCUS, e);
781
+ }
782
+ function handleBlur(e) {
783
+ var _a;
784
+ isFocused.value = false;
785
+ ctx.emit(EVENTS.BLUR, e);
786
+ if (props.withValidate) {
787
+ (_a = formItem === null || formItem === void 0 ? void 0 : formItem.validate) === null || _a === void 0 ? void 0 : _a.call(formItem, 'blur');
788
+ }
789
+ }
790
+ // 事件句柄生成器
791
+ function eventHandler(eventName) {
792
+ return function (e) {
793
+ e.stopPropagation();
794
+ if (eventName === EVENTS.KEYDOWN && (e.code === 'Enter' || e.key === 'Enter' || e.keyCode === 13)) {
795
+ ctx.emit(EVENTS.ENTER, e.target.value, e);
796
+ }
797
+ if (isCNInput.value && [EVENTS.INPUT, EVENTS.CHANGE].some(function (e) {
798
+ return eventName === e;
799
+ })) return;
800
+ if (eventName === EVENTS.INPUT) {
801
+ ctx.emit(EVENTS.UPDATE, e.target.value);
802
+ } else if (eventName === EVENTS.CHANGE && isNumberInput.value && e.target.value !== '') {
803
+ var val = handleNumber(e.target.value, 0);
804
+ ctx.emit(EVENTS.UPDATE, val, e);
805
+ ctx.emit(eventName, val, e);
806
+ return;
807
+ }
808
+ ctx.emit(eventName, e.target.value, e);
809
+ };
810
+ }
811
+ var _map = [EVENTS.KEYUP, EVENTS.KEYDOWN, EVENTS.KEYPRESS, EVENTS.PASTE, EVENTS.CHANGE, EVENTS.INPUT].map(eventHandler),
812
+ _map2 = _slicedToArray(_map, 6),
813
+ handleKeyup = _map2[0],
814
+ handleKeydown = _map2[1],
815
+ handleKeyPress = _map2[2],
816
+ handlePaste = _map2[3],
817
+ handleChange = _map2[4],
818
+ handleInput = _map2[5];
819
+ // 输入法启用时
820
+ function handleCompositionStart() {
821
+ isCNInput.value = true;
822
+ }
823
+ // 输入法输入结束时
824
+ function handleCompositionEnd(e) {
825
+ isCNInput.value = false;
826
+ handleInput(e);
827
+ }
828
+ function handleNumber(modelValue, step) {
829
+ var INC = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
830
+ var numStep = Number(step);
831
+ var precision = Number.isInteger(props.precision) ? props.precision : 0;
832
+ var val = Number(modelValue);
833
+ var factor = Number.isInteger(numStep) ? numStep : 1;
834
+ var newVal = val + (INC ? factor : -1 * factor);
835
+ if (Number.isInteger(props.max)) {
836
+ newVal = Math.min(newVal, props.max);
837
+ }
838
+ if (Number.isInteger(props.min)) {
839
+ newVal = Math.max(newVal, props.min);
840
+ }
841
+ return +newVal.toFixed(precision);
842
+ }
843
+ function handleInc() {
844
+ if (props.disabled) return;
845
+ var newVal = handleNumber(props.modelValue, props.step);
846
+ ctx.emit(EVENTS.UPDATE, newVal);
847
+ ctx.emit(EVENTS.CHANGE, newVal);
848
+ }
849
+ function handleDec() {
850
+ if (props.disabled) return;
851
+ var newVal = handleNumber(props.modelValue, props.step, false);
852
+ ctx.emit(EVENTS.UPDATE, newVal);
853
+ ctx.emit(EVENTS.CHANGE, newVal);
854
+ }
855
+ function getCls(name) {
856
+ return "".concat(inputClsPrefix.value, "--").concat(name);
857
+ }
858
+ function handleVisibleChange() {
859
+ pwdVisible.value = !pwdVisible.value;
860
+ }
861
+ var bindProps = (0,external_vue_.computed)(function () {
862
+ var val = typeof props.modelValue === 'undefined' || props.modelValue === null ? {} : {
863
+ value: props.modelValue
864
+ };
865
+ return Object.assign(Object.assign({}, val), {
866
+ maxlength: props.maxlength,
867
+ placeholder: props.placeholder || t.value.placeholder,
868
+ readonly: props.readonly,
869
+ disabled: props.disabled
870
+ });
871
+ });
872
+ var eventListener = {
873
+ onInput: handleInput,
874
+ onFocus: handleFocus,
875
+ onBlur: handleBlur,
876
+ onPaste: handlePaste,
877
+ onChange: handleChange,
878
+ onKeypress: handleKeyPress,
879
+ onKeydown: handleKeydown,
880
+ onKeyup: handleKeyup,
881
+ onCompositionstart: handleCompositionStart,
882
+ onCompositionend: handleCompositionEnd
883
+ };
884
+ return function () {
885
+ var _a, _b, _c, _d, _e, _f, _g;
886
+ return (0,external_vue_.createVNode)("div", {
887
+ "class": inputCls.value,
888
+ "style": style
889
+ }, [(_c = (_b = (_a = ctx.slots) === null || _a === void 0 ? void 0 : _a.prefix) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : props.prefix && (0,external_vue_.createVNode)("div", {
890
+ "class": getCls('prefix-area')
891
+ }, [(0,external_vue_.createVNode)("span", {
892
+ "class": getCls('prefix-area--text')
893
+ }, [props.prefix])]), isTextArea.value ? (0,external_vue_.createVNode)("textarea", (0,external_vue_.mergeProps)({
894
+ "ref": inputRef,
895
+ "spellcheck": false
896
+ }, inputAttrs, eventListener, bindProps.value, {
897
+ "rows": props.rows
898
+ }), null) : (0,external_vue_.createVNode)("input", (0,external_vue_.mergeProps)({
899
+ "spellcheck": false
900
+ }, inputAttrs, {
901
+ "ref": inputRef,
902
+ "class": "".concat(inputClsPrefix.value, "--text"),
903
+ "type": pwdVisible.value && props.type === 'password' ? 'text' : props.type,
904
+ "step": props.step,
905
+ "max": props.max,
906
+ "min": props.min
907
+ }, eventListener, bindProps.value), null), !isTextArea.value && props.clearable && !!props.modelValue && (0,external_vue_.createVNode)("span", {
908
+ "class": clearCls.value,
909
+ "onClick": clear
910
+ }, [(0,external_vue_.createVNode)(external_icon_.Close, null, null)]), suffixIcon.value, typeof props.maxlength === 'number' && (props.showWordLimit || isTextArea.value) && (0,external_vue_.createVNode)("p", {
911
+ "class": getCls('max-length')
912
+ }, [((_d = props.modelValue) !== null && _d !== void 0 ? _d : '').toString().length, (0,external_vue_.createTextVNode)("/"), (0,external_vue_.createVNode)("span", null, [ceilMaxLength.value])]), isNumberInput.value && props.showControl && (0,external_vue_.createVNode)("div", {
913
+ "class": getCls('number-control')
914
+ }, [(0,external_vue_.createVNode)(external_icon_.DownSmall, {
915
+ "class": incControlCls.value,
916
+ "onClick": handleInc
917
+ }, null), (0,external_vue_.createVNode)(external_icon_.DownSmall, {
918
+ "class": decControlCls.value,
919
+ "onClick": handleDec
920
+ }, null)]), (_g = (_f = (_e = ctx.slots) === null || _e === void 0 ? void 0 : _e.suffix) === null || _f === void 0 ? void 0 : _f.call(_e)) !== null && _g !== void 0 ? _g : props.suffix && (0,external_vue_.createVNode)("div", {
921
+ "class": getCls('suffix-area')
922
+ }, [(0,external_vue_.createVNode)("span", {
923
+ "class": getCls('suffix-area--text')
924
+ }, [props.suffix])])]);
925
+ };
926
+ }
927
+ }));
928
+ ;// CONCATENATED MODULE: ../../packages/input/src/index.ts
929
+ /*
930
+ * Tencent is pleased to support the open source community by making
931
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
932
+ *
933
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
934
+ *
935
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
936
+ *
937
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
938
+ *
939
+ * ---------------------------------------------------
940
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
941
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
942
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
943
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
944
+ *
945
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
946
+ * the Software.
947
+ *
948
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
949
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
950
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
951
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
952
+ * IN THE SOFTWARE.
953
+ */
954
+
955
+
956
+ var BkInput = (0,external_shared_.withInstall)(input);
957
+ /* harmony default export */ const src = (BkInput);
958
+ })();
959
+
960
+ /******/ return __webpack_exports__;
961
+ /******/ })()
962
+ ;
963
+ });