bkui-vue 0.0.2-beta.35 → 0.0.2-beta.37

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