bkui-vue 0.0.2-beta.4 → 0.0.2-beta.41

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 (186) hide show
  1. package/dist/index.cjs.js +54 -54
  2. package/dist/index.esm.js +15546 -15138
  3. package/dist/index.umd.js +67 -67
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/affix/affix.d.ts +1 -1
  15. package/lib/affix/index.d.ts +4 -4
  16. package/lib/alert/alert.css +1 -0
  17. package/lib/alert/alert.less +119 -119
  18. package/lib/alert/alert.variable.css +1 -0
  19. package/lib/alert/index.d.ts +1 -1
  20. package/lib/animate-number/index.d.ts +1 -1
  21. package/lib/backtop/index.d.ts +1 -1
  22. package/lib/badge/badge.d.ts +2 -2
  23. package/lib/badge/index.d.ts +7 -7
  24. package/lib/breadcrumb/index.d.ts +1 -1
  25. package/lib/button/index.d.ts +1 -1
  26. package/lib/card/card.d.ts +1 -1
  27. package/lib/card/index.d.ts +4 -4
  28. package/lib/cascader/cascader.d.ts +1 -12
  29. package/lib/cascader/index.d.ts +4 -19
  30. package/lib/cascader/index.js +1 -1
  31. package/lib/checkbox/index.d.ts +1 -1
  32. package/lib/code-diff/index.d.ts +1 -1
  33. package/lib/collapse/index.d.ts +1 -1
  34. package/lib/color-picker/index.d.ts +1 -1
  35. package/lib/color-picker/index.js +1 -1
  36. package/lib/components.d.ts +1 -1
  37. package/lib/config-provider/config-provider.d.ts +3 -0
  38. package/lib/config-provider/index.d.ts +5 -1
  39. package/lib/config-provider/token.d.ts +1 -0
  40. package/lib/container/index.d.ts +1 -1
  41. package/lib/container/index.js +1 -1
  42. package/lib/date-picker/date-picker.d.ts +3 -1
  43. package/lib/date-picker/index.d.ts +11 -4
  44. package/lib/date-picker/index.js +1 -1
  45. package/lib/date-picker/panel/date-range.d.ts +2 -1
  46. package/lib/dialog/index.d.ts +1 -1
  47. package/lib/directives/index.js +1 -1
  48. package/lib/directives/tooltips.d.ts +3 -2
  49. package/lib/divider/index.d.ts +1 -1
  50. package/lib/dropdown/dropdown.d.ts +1 -1
  51. package/lib/dropdown/index.d.ts +6 -6
  52. package/lib/exception/index.d.ts +1 -1
  53. package/lib/fixed-navbar/index.d.ts +1 -1
  54. package/lib/form/index.d.ts +1 -1
  55. package/lib/icon/assistant.d.ts +4 -0
  56. package/lib/icon/assistant.js +1 -0
  57. package/lib/icon/index.d.ts +1 -0
  58. package/lib/icon/index.js +1 -1
  59. package/lib/image/index.d.ts +1 -1
  60. package/lib/info-box/index.js +1 -1
  61. package/lib/input/index.d.ts +86 -50
  62. package/lib/input/index.js +1 -1
  63. package/lib/input/input.css +12 -0
  64. package/lib/input/input.d.ts +44 -11
  65. package/lib/input/input.less +26 -5
  66. package/lib/input/input.variable.css +12 -0
  67. package/lib/link/index.d.ts +4 -4
  68. package/lib/link/link.d.ts +1 -1
  69. package/lib/loading/index.d.ts +1 -1
  70. package/lib/locale/index.js +1 -1
  71. package/lib/locale/lang/en.d.ts +1 -0
  72. package/lib/menu/index.d.ts +1 -1
  73. package/lib/message/index.js +1 -1
  74. package/lib/message/message.css +18 -8
  75. package/lib/message/message.less +65 -53
  76. package/lib/message/message.variable.css +18 -8
  77. package/lib/message/messageConstructor.d.ts +30 -8
  78. package/lib/modal/index.d.ts +1 -1
  79. package/lib/modal/index.js +1 -1
  80. package/lib/navigation/index.d.ts +4 -1
  81. package/lib/navigation/index.js +1 -1
  82. package/lib/navigation/navigation.d.ts +1 -0
  83. package/lib/notify/index.js +1 -1
  84. package/lib/notify/notifyConstructor.d.ts +1 -1
  85. package/lib/overflow-title/index.d.ts +1 -1
  86. package/lib/pagination/index.d.ts +1 -1
  87. package/lib/plugin-popover/index.js +1 -1
  88. package/lib/pop-confirm/index.d.ts +1 -1
  89. package/lib/popover/const.d.ts +22 -9
  90. package/lib/popover/content.d.ts +33 -0
  91. package/lib/popover/index.d.ts +158 -73
  92. package/lib/popover/index.js +1 -1
  93. package/lib/popover/popover.d.ts +66 -30
  94. package/lib/popover/props.d.ts +30 -7
  95. package/lib/popover/use-floating.d.ts +2 -2
  96. package/lib/popover/use-popover-init.d.ts +2 -1
  97. package/lib/popover2/index.d.ts +1 -1
  98. package/lib/preset.d.ts +2 -0
  99. package/lib/process/index.d.ts +1 -1
  100. package/lib/progress/index.d.ts +1 -1
  101. package/lib/radio/index.d.ts +1 -1
  102. package/lib/rate/index.d.ts +8 -4
  103. package/lib/rate/index.js +1 -1
  104. package/lib/rate/rate.d.ts +2 -1
  105. package/lib/resize-layout/index.d.ts +1 -1
  106. package/lib/resize-layout/index.js +1 -1
  107. package/lib/resize-layout/resize-layout.css +12 -0
  108. package/lib/resize-layout/resize-layout.less +12 -0
  109. package/lib/resize-layout/resize-layout.variable.css +12 -0
  110. package/lib/search-select/index.d.ts +55 -22
  111. package/lib/search-select/index.js +1 -1
  112. package/lib/search-select/input.d.ts +5 -1
  113. package/lib/search-select/menu.d.ts +33 -2
  114. package/lib/search-select/search-select.css +31 -11
  115. package/lib/search-select/search-select.d.ts +19 -16
  116. package/lib/search-select/search-select.less +29 -10
  117. package/lib/search-select/search-select.variable.css +31 -11
  118. package/lib/search-select/selected.d.ts +5 -1
  119. package/lib/search-select/utils.d.ts +13 -5
  120. package/lib/select/index.d.ts +143 -67
  121. package/lib/select/index.js +1 -1
  122. package/lib/select/select.css +9 -0
  123. package/lib/select/select.d.ts +66 -33
  124. package/lib/select/select.less +11 -0
  125. package/lib/select/select.variable.css +9 -0
  126. package/lib/select/selectTagInput.d.ts +3 -0
  127. package/lib/shared/index.js +1 -1
  128. package/lib/shared/mask-manager.d.ts +3 -4
  129. package/lib/shared/pop-manager.d.ts +6 -2
  130. package/lib/sideslider/index.d.ts +1 -1
  131. package/lib/slider/index.d.ts +1 -1
  132. package/lib/slider/index.js +1 -1
  133. package/lib/steps/index.d.ts +1 -1
  134. package/lib/steps/index.js +1 -1
  135. package/lib/styles/mixins/popper.less +6 -5
  136. package/lib/swiper/index.d.ts +1 -1
  137. package/lib/swiper/index.js +1 -1
  138. package/lib/swiper/swiper.css +0 -6
  139. package/lib/swiper/swiper.less +0 -8
  140. package/lib/swiper/swiper.variable.css +0 -6
  141. package/lib/switcher/index.d.ts +1 -1
  142. package/lib/switcher/index.js +1 -1
  143. package/lib/tab/index.d.ts +2 -2
  144. package/lib/tab/tab-panel.d.ts +1 -1
  145. package/lib/table/components/table-cell.d.ts +22 -15
  146. package/lib/table/components/table-column.d.ts +151 -217
  147. package/lib/table/const.d.ts +16 -54
  148. package/lib/table/events.d.ts +180 -0
  149. package/lib/table/index.d.ts +678 -425
  150. package/lib/table/index.js +1 -1
  151. package/lib/table/plugins/head-filter.d.ts +3 -7
  152. package/lib/table/plugins/head-sort.d.ts +3 -7
  153. package/lib/table/plugins/settings.d.ts +12 -26
  154. package/lib/table/plugins/use-fixed-column.d.ts +3 -2
  155. package/lib/table/props.d.ts +168 -173
  156. package/lib/table/render.d.ts +6 -4
  157. package/lib/table/table.css +30 -4
  158. package/lib/table/table.d.ts +185 -92
  159. package/lib/table/table.less +41 -7
  160. package/lib/table/table.variable.css +30 -4
  161. package/lib/table/use-column.d.ts +50 -1
  162. package/lib/table/use-common.d.ts +16 -9
  163. package/lib/table/utils.d.ts +1 -0
  164. package/lib/table-column/index.d.ts +228 -521
  165. package/lib/table-column/index.js +1 -1
  166. package/lib/tag/index.d.ts +1 -1
  167. package/lib/tag-input/index.d.ts +52 -22
  168. package/lib/tag-input/index.js +1 -1
  169. package/lib/tag-input/tag-input.css +1 -1
  170. package/lib/tag-input/tag-input.d.ts +48 -14
  171. package/lib/tag-input/tag-input.less +4 -4
  172. package/lib/tag-input/tag-input.variable.css +1 -1
  173. package/lib/tag-input/tag-props.d.ts +17 -7
  174. package/lib/time-picker/index.d.ts +1 -1
  175. package/lib/timeline/index.d.ts +1 -1
  176. package/lib/transfer/index.d.ts +1 -1
  177. package/lib/tree/index.d.ts +1 -1
  178. package/lib/tree/index.js +1 -1
  179. package/lib/tree/tree.d.ts +10 -0
  180. package/lib/tree/use-node-attribute.d.ts +1 -1
  181. package/lib/upload/index.d.ts +1 -1
  182. package/lib/virtual-render/index.d.ts +19 -1
  183. package/lib/virtual-render/index.js +1 -1
  184. package/lib/virtual-render/props.d.ts +8 -0
  185. package/lib/virtual-render/virtual-render.d.ts +11 -0
  186. package/package.json +2 -2
@@ -18,8 +18,8 @@ declare const BkImage: {
18
18
  style?: unknown;
19
19
  onChange?: (...args: any[]) => any;
20
20
  onError?: (...args: any[]) => any;
21
- key?: string | number | symbol;
22
21
  ref?: import("vue").VNodeRef;
22
+ key?: string | number | symbol;
23
23
  ref_for?: boolean;
24
24
  ref_key?: string;
25
25
  onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("../button"),require("../icon"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../button","../icon","../modal"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("../button"),require("../icon"),require("../modal")):t(e["../shared"],e.vue,e["../config-provider"],e["../button"],e["../icon"],e["../modal"]);for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t,o,n,r,i)=>(()=>{var a={4976:e=>{"use strict";e.exports=n},2717:e=>{"use strict";e.exports=o},6870:e=>{"use strict";e.exports=r},8014:e=>{"use strict";e.exports=i},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t},7609:(e,t,o)=>{var n=o(7425).default;function r(){"use strict";e.exports=r=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,o){e[t]=o.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function f(e,t,o){return Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,o){return e[t]=o}}function d(e,t,o,n){var r=t&&t.prototype instanceof h?t:h,i=Object.create(r.prototype),l=new j(n||[]);return a(i,"_invoke",{value:C(e,o,l)}),i}function p(e,t,o){try{return{type:"normal",arg:e.call(t,o)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var v={};function h(){}function m(){}function y(){}var g={};f(g,c,(function(){return this}));var x=Object.getPrototypeOf,b=x&&x(x(P([])));b&&b!==o&&i.call(b,c)&&(g=b);var w=y.prototype=h.prototype=Object.create(g);function T(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function o(r,a,l,c){var u=p(e[r],e,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,l,c)}),(function(e){o("throw",e,l,c)})):t.resolve(f).then((function(e){s.value=e,l(s)}),(function(e){return o("throw",e,l,c)}))}c(u.arg)}var r;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,r){o(e,n,t,r)}))}return r=r?r.then(i,i):i()}})}function C(e,t,o){var n="suspendedStart";return function(r,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw i;return{value:void 0,done:!0}}for(o.method=r,o.arg=i;;){var a=o.delegate;if(a){var l=S(a,o);if(l){if(l===v)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===n)throw n="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n="executing";var c=p(e,t,o);if("normal"===c.type){if(n=o.done?"completed":"suspendedYield",c.arg===v)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(n="completed",o.method="throw",o.arg=c.arg)}}}function S(e,t){var o=t.method,n=e.iterator[o];if(void 0===n)return t.delegate=null,"throw"===o&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+o+"' method")),v;var r=p(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,v;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,v):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function P(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,n=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:k}}function k(){return{value:void 0,done:!0}}return m.prototype=y,a(w,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:m,configurable:!0}),m.displayName=f(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,f(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},T(N.prototype),f(N.prototype,u,(function(){return this})),t.AsyncIterator=N,t.async=function(e,o,n,r,i){void 0===i&&(i=Promise);var a=new N(d(e,o,n,r),i);return t.isGeneratorFunction(o)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(w),f(w,s,"Generator"),f(w,c,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),o=[];for(var n in t)o.push(n);return o.reverse(),function e(){for(;o.length;){var n=o.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,n){return a.type="throw",a.arg=e,t.next=o,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],a=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=i.call(r,"catchLoc"),c=i.call(r,"finallyLoc");if(l&&c){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),E(o),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var n=o.completion;if("throw"===n.type){var r=n.arg;E(o)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:P(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},t}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(o){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,o)=>{var n=o(7609)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},l={};function c(e){var t=l[e];if(void 0!==t)return t.exports;var o=l[e]={exports:{}};return a[e](o,o.exports,c),o.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var o in t)c.o(t,o)&&!c.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{"use strict";c.r(u),c.d(u,{default:()=>m});var e=c(4212);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)}var o=c(2841),n=c.n(o);function r(e,t,o,n){return new(o||(o=Promise))((function(r,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function l(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,l)}c((n=n.apply(e,t||[])).next())}))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var i=c(748),a=c(2717),l=c(4976),s=c.n(l),f=c(6870),d=c(8014),p=c.n(d);const v=Object.assign(Object.assign({},d.propsMixin),{width:e.PropTypes.oneOfType([String,Number]).def(""),height:e.PropTypes.oneOfType([String,Number]).def(""),confirmText:e.PropTypes.string,cancelText:e.PropTypes.string,prevText:e.PropTypes.string,nextText:e.PropTypes.string,current:e.PropTypes.number.def(1),totalStep:e.PropTypes.number,title:e.PropTypes.string.def("title"),headerAlign:(0,e.alignType)().def(e.AlignEnum.LEFT),footerAlign:(0,e.alignType)().def(e.AlignEnum.RIGHT),theme:e.PropTypes.theme().def(e.ThemeEnum.PRIMARY),dialogType:(0,e.dialogTypeUnion)(),isLoading:e.PropTypes.bool.def(!1)}),h=(0,i.defineComponent)({name:"Dialog",components:{BkModal:p(),BkButton:s()},props:v,emits:["closed","update:isShow","confirm","prev","next","value-change"],setup:function(e,t){var o=this,l=t.emit,c=(0,a.useLocale)("dialog"),u=(0,i.computed)((function(){return void 0===e.confirmText?c.value.ok:e.confirmText})),s=(0,i.computed)((function(){return void 0===e.cancelText?c.value.cancel:e.cancelText})),f=(0,i.computed)((function(){return void 0===e.prevText?c.value.prev:e.prevText})),d=(0,i.computed)((function(){return void 0===e.nextText?c.value.next:e.nextText})),p=(0,i.reactive)({positionX:0,positionY:0,moveStyle:{top:"",left:""}}),v=(0,i.ref)(e.isShow);(0,i.onMounted)((function(){e.escClose&&addEventListener("keydown",y)})),(0,i.onBeforeUnmount)((function(){e.escClose&&removeEventListener("keydown",y)})),(0,i.watch)((function(){return e.isShow}),(function(e){e?v.value=!0:setTimeout((function(){p.moveStyle={top:"50%",left:"50%"},p.positionX=0,p.positionY=0,v.value=!1}),250),l("value-change",e)}));var h=function(){return r(o,void 0,void 0,n().mark((function t(){var o;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=!0,"function"!=typeof e.beforeClose){t.next=5;break}return t.next=4,e.beforeClose();case 4:o=t.sent;case 5:o&&(l("update:isShow",!1),l("closed"),v.value=!1);case 6:case"end":return t.stop()}}),t)})))},m=(0,i.computed)((function(){return["process","operation","confirm"].includes(e.dialogType)})),y=function(t){e.isShow&&e.closeIcon&&27===t.keyCode&&h()},g=(0,a.usePrefix)().resolveClassName;return{data:p,handleClose:h,handleConfirm:function(){l("update:isShow",!1),l("confirm")},escCloseHandler:y,moveHandler:function(t){if(e.fullscreen)return!1;if(!e.draggable)return!1;var o,n,r=t.target,i=t.currentTarget.parentNode.parentNode.offsetHeight,a=t.currentTarget.parentNode.parentNode.offsetWidth;0!==p.positionX&&0!==p.positionY?(o=t.clientX-p.positionX,n=t.clientY-p.positionY):(o=t.clientX-r.offsetLeft,n=t.clientY-r.offsetTop),document.onmousemove=function(e){var t=window.innerWidth-a,r=window.innerHeight-i,l=e.clientX-o,c=e.clientY-n;t/2-l<=0?l=t/2:t/2+l<=0&&(l=-t/2),r/2-c<=0?c=r/2:r/2+c<=0&&(c=-r/2),p.positionX=l,p.positionY=c,p.moveStyle.left="calc(50% + ".concat(l,"px)"),p.moveStyle.top="calc(50% + ".concat(c,"px)")},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}},handlePrevStep:function(){l("prev")},handleNextStep:function(){l("next")},hasFooter:m,isModalShow:v,localConfirmText:u,localCancelText:s,localPrevText:f,localNextText:d,resolveClassName:g}},render:function(){var e,t=this,o={header:function(){var e,o,n,r,a,l;return[(0,i.createVNode)("div",{class:[t.resolveClassName("dialog-tool"),t.fullscreen||!t.draggable?"":"move",t.draggable?"content-dragging":""],onMousedown:t.moveHandler},[null!==(n=null===(o=(e=t.$slots).tools)||void 0===o?void 0:o.call(e))&&void 0!==n?n:""]),(0,i.createVNode)("div",{class:t.resolveClassName("dialog-header")},[(0,i.createVNode)("div",{class:t.resolveClassName("header-icon")},[t.infoType?{loading:(0,i.createVNode)(f.Spinner,{class:[t.resolveClassName("info-icon"),"primary"]},null),warning:(0,i.createVNode)(f.Warn,{class:[t.resolveClassName("info-icon"),"warning"]},null),success:(0,i.createVNode)(f.Success,{class:[t.resolveClassName("info-icon"),"success"]},null),danger:(0,i.createVNode)(f.Close,{class:[t.resolveClassName("info-icon"),"danger"]},null)}[t.infoType]:(0,i.createVNode)("slot",{name:"info-icon"},null)]),(0,i.createVNode)("span",{class:t.resolveClassName("dialog-title"),style:"text-align: ".concat(t.headerAlign)},[null!==(l=null===(a=(r=t.$slots).header)||void 0===a?void 0:a.call(r))&&void 0!==l?l:t.title])])]},default:function(){var e,o,n;return null!==(n=null===(o=(e=t.$slots).default)||void 0===o?void 0:o.call(e))&&void 0!==n?n:"default"},footer:function(){var e,o,n,r,a,l,c,u,f;return(0,i.createVNode)("div",{class:t.resolveClassName("dialog-footer"),style:"text-align: ".concat(t.footerAlign)},["process"===t.dialogType?null!==(n=null===(o=(e=t.$slots).footer)||void 0===o?void 0:o.call(e))&&void 0!==n?n:(0,i.createVNode)(i.Fragment,null,[1===t.current?"":(0,i.createVNode)(s(),{class:t.resolveClassName("dialog-perv"),onClick:t.handlePrevStep},{default:function(){return[t.localPrevText]}}),t.current===t.totalStep?"":(0,i.createVNode)(s(),{class:t.resolveClassName("dialog-next"),onClick:t.handleNextStep},{default:function(){return[t.localNextText]}}),t.current===t.totalStep?(0,i.createVNode)(s(),{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.localConfirmText]}}):"",(0,i.createVNode)(s(),{class:t.resolveClassName("dialog-cancel"),onClick:t.handleClose,disabled:t.isLoading},{default:function(){return[t.localCancelText]}})]):"","operation"===t.dialogType?null!==(l=null===(a=(r=t.$slots).footer)||void 0===a?void 0:a.call(r))&&void 0!==l?l:(0,i.createVNode)(i.Fragment,null,[(0,i.createVNode)(s(),{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.localConfirmText]}}),(0,i.createVNode)(s(),{class:t.resolveClassName("dialog-cancel"),onClick:t.handleClose,disabled:t.isLoading},{default:function(){return[t.localCancelText]}})]):"","confirm"===t.dialogType?null!==(f=null===(u=(c=t.$slots).footer)||void 0===u?void 0:u.call(c))&&void 0!==f?f:(0,i.createVNode)(i.Fragment,null,[(0,i.createVNode)(s(),{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.localConfirmText]}})]):""])},close:function(){return(0,i.createVNode)(f.Error,{onClick:t.handleClose},null)}},n="".concat(this.resolveClassName("dialog-wrapper ")," ").concat(this.scrollable?"scroll-able":""," ").concat(this.multiInstance?"multi-instance":""," ").concat(this.hasFooter?"has-footer":"no-footer");return(0,i.createVNode)(p(),(0,i.mergeProps)(this.$props,{class:n,onClose:this.handleClose,isShow:this.isModalShow,style:this.data.moveStyle}),"function"==typeof(e=o)||"[object Object]"===Object.prototype.toString.call(e)&&!(0,i.isVNode)(e)?o:{default:function(){return[o]}})}}),m=(0,e.withInstall)((function(e){var o=document.createElement("div"),l=(0,i.ref)(!1),c=(0,i.shallowRef)(e),u=(0,i.defineComponent)({name:"DialogConfirm",setup:function(e,o){var u=this,s=o.expose;(0,i.onMounted)((function(){(document.activeElement||document.body).blur(),!1!==c.value.isShow&&(l.value=!0)}));var f=function(){return r(u,void 0,void 0,n().mark((function e(){var t,o;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(null===(t=c.value)||void 0===t?void 0:t.onClosed)){e.next=3;break}return e.next=3,null===(o=c.value)||void 0===o?void 0:o.onClosed();case 3:l.value=!1;case 4:case"end":return e.stop()}}),e)})))},d=function(){return r(u,void 0,void 0,n().mark((function e(){var t,o;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(null===(t=c.value)||void 0===t?void 0:t.onConfirm)){e.next=3;break}return e.next=3,null===(o=c.value)||void 0===o?void 0:o.onConfirm();case 3:l.value=!1;case 4:case"end":return e.stop()}}),e)})))};s({update:function(e){c.value=e}});var p=(0,a.usePrefix)().resolveClassName;return function(){return(0,i.createVNode)(h,Object.assign(Object.assign({class:p("info-wrapper"),headerAlign:"center",footerAlign:"center"},c.value),{isShow:l.value,onClosed:f,onConfirm:d}),function(){var e=[],o=[];if(c.value.subTitle)switch(t(c.value.subTitle)){case"string":default:e.push(c.value.subTitle);break;case"function":e.push(c.value.subTitle())}return e.length&&o.push((0,i.h)("div",{class:p("info-sub-title"),style:"text-Align:".concat(c.value.contentAlign||"center")},e)),o}())}}}),s=(0,i.createApp)(u).mount(o);return{show:function(){l.value=!0},hide:function(){l.value=!1},update:function(e){s.update(e)},destroy:function(){s.unmount(),s=null}}}))})(),u})()));
2
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("../button"),require("../icon"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../button","../icon","../modal"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("../button"),require("../icon"),require("../modal")):t(e["../shared"],e.vue,e["../config-provider"],e["../button"],e["../icon"],e["../modal"]);for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t,o,n,r,i)=>(()=>{var a={4976:e=>{"use strict";e.exports=n},2717:e=>{"use strict";e.exports=o},6870:e=>{"use strict";e.exports=r},8014:e=>{"use strict";e.exports=i},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t},7609:(e,t,o)=>{var n=o(7425).default;function r(){"use strict";e.exports=r=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,o){e[t]=o.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function f(e,t,o){return Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,o){return e[t]=o}}function d(e,t,o,n){var r=t&&t.prototype instanceof h?t:h,i=Object.create(r.prototype),l=new E(n||[]);return a(i,"_invoke",{value:C(e,o,l)}),i}function p(e,t,o){try{return{type:"normal",arg:e.call(t,o)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var v={};function h(){}function m(){}function y(){}var g={};f(g,c,(function(){return this}));var x=Object.getPrototypeOf,b=x&&x(x(O([])));b&&b!==o&&i.call(b,c)&&(g=b);var w=y.prototype=h.prototype=Object.create(g);function T(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function o(r,a,l,c){var u=p(e[r],e,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,l,c)}),(function(e){o("throw",e,l,c)})):t.resolve(f).then((function(e){s.value=e,l(s)}),(function(e){return o("throw",e,l,c)}))}c(u.arg)}var r;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,r){o(e,n,t,r)}))}return r=r?r.then(i,i):i()}})}function C(e,t,o){var n="suspendedStart";return function(r,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw i;return{value:void 0,done:!0}}for(o.method=r,o.arg=i;;){var a=o.delegate;if(a){var l=S(a,o);if(l){if(l===v)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===n)throw n="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n="executing";var c=p(e,t,o);if("normal"===c.type){if(n=o.done?"completed":"suspendedYield",c.arg===v)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(n="completed",o.method="throw",o.arg=c.arg)}}}function S(e,t){var o=t.method,n=e.iterator[o];if(void 0===n)return t.delegate=null,"throw"===o&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+o+"' method")),v;var r=p(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,v;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,v):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function O(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,n=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:P}}function P(){return{value:void 0,done:!0}}return m.prototype=y,a(w,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:m,configurable:!0}),m.displayName=f(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,f(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},T(N.prototype),f(N.prototype,u,(function(){return this})),t.AsyncIterator=N,t.async=function(e,o,n,r,i){void 0===i&&(i=Promise);var a=new N(d(e,o,n,r),i);return t.isGeneratorFunction(o)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(w),f(w,s,"Generator"),f(w,c,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),o=[];for(var n in t)o.push(n);return o.reverse(),function e(){for(;o.length;){var n=o.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,n){return a.type="throw",a.arg=e,t.next=o,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],a=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=i.call(r,"catchLoc"),c=i.call(r,"finallyLoc");if(l&&c){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),j(o),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var n=o.completion;if("throw"===n.type){var r=n.arg;j(o)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:O(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},t}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(o){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,o)=>{var n=o(7609)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},l={};function c(e){var t=l[e];if(void 0!==t)return t.exports;var o=l[e]={exports:{}};return a[e](o,o.exports,c),o.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var o in t)c.o(t,o)&&!c.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{"use strict";c.r(u),c.d(u,{default:()=>m});var e=c(4212);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)}var o=c(2841),n=c.n(o);function r(e,t,o,n){return new(o||(o=Promise))((function(r,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function l(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,l)}c((n=n.apply(e,t||[])).next())}))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var i=c(748),a=c(2717),l=c(4976),s=c.n(l),f=c(6870),d=c(8014),p=c.n(d);const v=Object.assign(Object.assign({},d.propsMixin),{width:e.PropTypes.oneOfType([String,Number]).def(""),height:e.PropTypes.oneOfType([String,Number]).def(""),confirmText:e.PropTypes.string,cancelText:e.PropTypes.string,prevText:e.PropTypes.string,nextText:e.PropTypes.string,current:e.PropTypes.number.def(1),totalStep:e.PropTypes.number,title:e.PropTypes.string.def("title"),headerAlign:(0,e.alignType)().def(e.AlignEnum.LEFT),footerAlign:(0,e.alignType)().def(e.AlignEnum.RIGHT),theme:e.PropTypes.theme().def(e.ThemeEnum.PRIMARY),dialogType:(0,e.dialogTypeUnion)(),isLoading:e.PropTypes.bool.def(!1)}),h=(0,i.defineComponent)({name:"Dialog",components:{BkModal:p(),BkButton:s()},props:v,emits:["closed","update:isShow","confirm","prev","next","value-change"],setup:function(e,t){var o=this,l=t.emit,c=(0,a.useLocale)("dialog"),u=(0,i.computed)((function(){return void 0===e.confirmText?c.value.ok:e.confirmText})),s=(0,i.computed)((function(){return void 0===e.cancelText?c.value.cancel:e.cancelText})),f=(0,i.computed)((function(){return void 0===e.prevText?c.value.prev:e.prevText})),d=(0,i.computed)((function(){return void 0===e.nextText?c.value.next:e.nextText})),p=(0,i.reactive)({positionX:0,positionY:0,moveStyle:{top:"",left:""}}),v=(0,i.ref)(e.isShow);(0,i.onMounted)((function(){e.escClose&&addEventListener("keydown",y)})),(0,i.onBeforeUnmount)((function(){e.escClose&&removeEventListener("keydown",y)})),(0,i.watch)((function(){return e.isShow}),(function(e){e?v.value=!0:setTimeout((function(){p.moveStyle={top:"50%",left:"50%"},p.positionX=0,p.positionY=0,v.value=!1}),250),l("value-change",e)}));var h=function(){return r(o,void 0,void 0,n().mark((function t(){var o;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=!0,"function"!=typeof e.beforeClose){t.next=5;break}return t.next=4,e.beforeClose();case 4:o=t.sent;case 5:o&&(l("update:isShow",!1),l("closed"),v.value=!1);case 6:case"end":return t.stop()}}),t)})))},m=(0,i.computed)((function(){return["process","operation","confirm"].includes(e.dialogType)})),y=function(t){e.isShow&&e.closeIcon&&27===t.keyCode&&h()},g=(0,a.usePrefix)().resolveClassName;return{data:p,handleClose:h,handleConfirm:function(){l("update:isShow",!1),l("confirm")},escCloseHandler:y,moveHandler:function(t){if(e.fullscreen)return!1;if(!e.draggable)return!1;var o,n,r=t.target,i=t.currentTarget.parentNode.parentNode.offsetHeight,a=t.currentTarget.parentNode.parentNode.offsetWidth;0!==p.positionX&&0!==p.positionY?(o=t.clientX-p.positionX,n=t.clientY-p.positionY):(o=t.clientX-r.offsetLeft,n=t.clientY-r.offsetTop),document.onmousemove=function(e){var t=window.innerWidth-a,r=window.innerHeight-i,l=e.clientX-o,c=e.clientY-n;t/2-l<=0?l=t/2:t/2+l<=0&&(l=-t/2),r/2-c<=0?c=r/2:r/2+c<=0&&(c=-r/2),p.positionX=l,p.positionY=c,p.moveStyle.left="calc(50% + ".concat(l,"px)"),p.moveStyle.top="calc(50% + ".concat(c,"px)")},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}},handlePrevStep:function(){l("prev")},handleNextStep:function(){l("next")},hasFooter:m,isModalShow:v,localConfirmText:u,localCancelText:s,localPrevText:f,localNextText:d,resolveClassName:g}},render:function(){var e,t=this,o={header:function(){var e,o,n,r,a,l;return[(0,i.createVNode)("div",{class:[t.resolveClassName("dialog-tool"),t.fullscreen||!t.draggable?"":"move",t.draggable?"content-dragging":""],onMousedown:t.moveHandler},[null!==(n=null===(o=(e=t.$slots).tools)||void 0===o?void 0:o.call(e))&&void 0!==n?n:""]),(0,i.createVNode)("div",{class:t.resolveClassName("dialog-header")},[(0,i.createVNode)("div",{class:t.resolveClassName("header-icon")},[t.infoType?{loading:(0,i.createVNode)(f.Spinner,{class:[t.resolveClassName("info-icon"),"primary"]},null),warning:(0,i.createVNode)(f.Warn,{class:[t.resolveClassName("info-icon"),"warning"]},null),success:(0,i.createVNode)(f.Success,{class:[t.resolveClassName("info-icon"),"success"]},null),danger:(0,i.createVNode)(f.Close,{class:[t.resolveClassName("info-icon"),"danger"]},null)}[t.infoType]:(0,i.createVNode)("slot",{name:"info-icon"},null)]),(0,i.createVNode)("span",{class:t.resolveClassName("dialog-title"),style:"text-align: ".concat(t.headerAlign)},[null!==(l=null===(a=(r=t.$slots).header)||void 0===a?void 0:a.call(r))&&void 0!==l?l:t.title])])]},default:function(){var e,o,n;return null!==(n=null===(o=(e=t.$slots).default)||void 0===o?void 0:o.call(e))&&void 0!==n?n:"default"},footer:function(){var e,o,n,r,a,l,c,u,f;return(0,i.createVNode)("div",{class:t.resolveClassName("dialog-footer"),style:"text-align: ".concat(t.footerAlign)},["process"===t.dialogType?null!==(n=null===(o=(e=t.$slots).footer)||void 0===o?void 0:o.call(e))&&void 0!==n?n:(0,i.createVNode)(i.Fragment,null,[1===t.current?"":(0,i.createVNode)(s(),{class:t.resolveClassName("dialog-perv"),onClick:t.handlePrevStep},{default:function(){return[t.localPrevText]}}),t.current===t.totalStep?"":(0,i.createVNode)(s(),{class:t.resolveClassName("dialog-next"),onClick:t.handleNextStep},{default:function(){return[t.localNextText]}}),t.current===t.totalStep?(0,i.createVNode)(s(),{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.localConfirmText]}}):"",(0,i.createVNode)(s(),{class:t.resolveClassName("dialog-cancel"),onClick:t.handleClose,disabled:t.isLoading},{default:function(){return[t.localCancelText]}})]):"","operation"===t.dialogType?null!==(l=null===(a=(r=t.$slots).footer)||void 0===a?void 0:a.call(r))&&void 0!==l?l:(0,i.createVNode)(i.Fragment,null,[(0,i.createVNode)(s(),{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.localConfirmText]}}),(0,i.createVNode)(s(),{class:t.resolveClassName("dialog-cancel"),onClick:t.handleClose,disabled:t.isLoading},{default:function(){return[t.localCancelText]}})]):"","confirm"===t.dialogType?null!==(f=null===(u=(c=t.$slots).footer)||void 0===u?void 0:u.call(c))&&void 0!==f?f:(0,i.createVNode)(i.Fragment,null,[(0,i.createVNode)(s(),{onClick:t.handleConfirm,theme:t.theme,loading:t.isLoading},{default:function(){return[t.localConfirmText]}})]):""])},close:function(){return(0,i.createVNode)(f.Error,{onClick:t.handleClose},null)}},n="".concat(this.resolveClassName("dialog-wrapper ")," ").concat(this.scrollable?"scroll-able":""," ").concat(this.multiInstance?"multi-instance":""," ").concat(this.hasFooter?"has-footer":"no-footer");return(0,i.createVNode)(p(),(0,i.mergeProps)(this.$props,{class:n,onClose:this.handleClose,isShow:this.isModalShow,style:this.data.moveStyle}),"function"==typeof(e=o)||"[object Object]"===Object.prototype.toString.call(e)&&!(0,i.isVNode)(e)?o:{default:function(){return[o]}})}}),m=(0,e.withInstall)((function(e){var o=document.createElement("div"),l=(0,i.ref)(!1),c=(0,i.shallowRef)(e),u=(0,i.defineComponent)({name:"DialogConfirm",setup:function(e,o){var u=this,s=o.expose;(0,i.onMounted)((function(){(document.activeElement||document.body).blur(),!1!==c.value.isShow&&(l.value=!0)}));var f=function(){return r(u,void 0,void 0,n().mark((function e(){var t,o;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(null===(t=c.value)||void 0===t?void 0:t.onClosed)){e.next=3;break}return e.next=3,null===(o=c.value)||void 0===o?void 0:o.onClosed();case 3:l.value=!1;case 4:case"end":return e.stop()}}),e)})))},d=function(){return r(u,void 0,void 0,n().mark((function e(){var t,o;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(null===(t=c.value)||void 0===t?void 0:t.onConfirm)){e.next=3;break}return e.next=3,null===(o=c.value)||void 0===o?void 0:o.onConfirm();case 3:l.value=!1;case 4:case"end":return e.stop()}}),e)})))};s({update:function(e){c.value=Object.assign(Object.assign({},c.value),e)}});var p=(0,a.usePrefix)().resolveClassName;return function(){return(0,i.createVNode)(h,Object.assign(Object.assign({class:p("info-wrapper"),headerAlign:"center",footerAlign:"center",transfer:!0,fullscreen:!1},c.value),{isShow:l.value,onClosed:f,onConfirm:d}),function(){var e=[],o=[];if(c.value.subTitle)switch(t(c.value.subTitle)){case"string":default:e.push(c.value.subTitle);break;case"function":e.push(c.value.subTitle())}return e.length&&o.push((0,i.h)("div",{class:p("info-sub-title"),style:"text-Align:".concat(c.value.contentAlign||"center")},e)),o}())}}}),s=(0,i.createApp)(u).mount(o);return{show:function(){l.value=!0},hide:function(){l.value=!1},update:function(e){s.update(e)},destroy:function(){s.unmount(),s=null}}}))})(),u})()));
@@ -24,21 +24,23 @@ declare const BkInput: {
24
24
  rows?: number;
25
25
  selectReadonly?: boolean;
26
26
  withValidate?: boolean;
27
+ overMaxLengthLimit?: boolean;
28
+ showOverflowTooltips?: boolean;
27
29
  class?: unknown;
28
30
  style?: unknown;
29
- onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
31
+ onPaste?: (_value: any, _e: ClipboardEvent) => any;
30
32
  onCompositionend?: (evt: CompositionEvent) => any;
31
33
  onCompositionstart?: (evt: CompositionEvent) => any;
32
34
  onCompositionupdate?: (evt: CompositionEvent) => any;
33
35
  onFocus?: (evt: FocusEvent) => any;
34
36
  onBlur?: (evt: FocusEvent) => any;
35
- onChange?: (_value: any, _evt?: KeyboardEvent) => any;
36
- onInput?: (_value: any, _evt?: KeyboardEvent) => any;
37
- onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
38
- onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
39
- onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
40
- key?: string | number | symbol;
37
+ onChange?: (_value: any, _evt: KeyboardEvent) => any;
38
+ onInput?: (_value: any, _evt: KeyboardEvent) => any;
39
+ onKeydown?: (_value: any, _evt: KeyboardEvent) => any;
40
+ onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
41
+ onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
41
42
  ref?: import("vue").VNodeRef;
43
+ key?: string | number | symbol;
42
44
  ref_for?: boolean;
43
45
  ref_key?: string;
44
46
  onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -82,8 +84,8 @@ declare const BkInput: {
82
84
  readonly size?: "default" | "small" | "large";
83
85
  readonly modelValue?: string | number;
84
86
  onClear?: () => any;
85
- "onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
86
- onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
87
+ "onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
88
+ onEnter?: (_value: any, _evt: KeyboardEvent) => any;
87
89
  };
88
90
  $attrs: {
89
91
  [x: string]: unknown;
@@ -96,7 +98,7 @@ declare const BkInput: {
96
98
  }>;
97
99
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
98
100
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
99
- $emit: ((event: import("./input").EVENTS.UPDATE, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.FOCUS, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.BLUR, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.CHANGE, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.CLEAR) => void) & ((event: import("./input").EVENTS.INPUT, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYPRESS, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYDOWN, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYUP, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.ENTER, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.PASTE, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONSTART, evt: CompositionEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONUPDATE, evt: CompositionEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONEND, evt: CompositionEvent) => void);
101
+ $emit: ((event: import("./input").EVENTS.UPDATE, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.FOCUS, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.BLUR, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.CHANGE, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.CLEAR) => void) & ((event: import("./input").EVENTS.INPUT, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYPRESS, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYDOWN, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYUP, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.ENTER, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.PASTE, _value: any, _e: ClipboardEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONSTART, evt: CompositionEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONUPDATE, evt: CompositionEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONEND, evt: CompositionEvent) => void);
100
102
  $el: any;
101
103
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
102
104
  type: import("vue-types").VueTypeValidableDef<string> & {
@@ -180,33 +182,43 @@ declare const BkInput: {
180
182
  } & {
181
183
  default: boolean;
182
184
  };
185
+ overMaxLengthLimit: import("vue-types").VueTypeValidableDef<boolean> & {
186
+ default: boolean;
187
+ } & {
188
+ default: boolean;
189
+ };
190
+ showOverflowTooltips: import("vue-types").VueTypeValidableDef<boolean> & {
191
+ default: boolean;
192
+ } & {
193
+ default: boolean;
194
+ };
183
195
  }>> & {
184
- onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
196
+ onPaste?: (_value: any, _e: ClipboardEvent) => any;
185
197
  onCompositionend?: (evt: CompositionEvent) => any;
186
198
  onCompositionstart?: (evt: CompositionEvent) => any;
187
199
  onCompositionupdate?: (evt: CompositionEvent) => any;
188
200
  onFocus?: (evt: FocusEvent) => any;
189
201
  onBlur?: (evt: FocusEvent) => any;
190
- onChange?: (_value: any, _evt?: KeyboardEvent) => any;
191
- onInput?: (_value: any, _evt?: KeyboardEvent) => any;
192
- onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
193
- onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
194
- onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
202
+ onChange?: (_value: any, _evt: KeyboardEvent) => any;
203
+ onInput?: (_value: any, _evt: KeyboardEvent) => any;
204
+ onKeydown?: (_value: any, _evt: KeyboardEvent) => any;
205
+ onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
206
+ onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
195
207
  onClear?: () => any;
196
- "onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
197
- onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
208
+ "onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
209
+ onEnter?: (_value: any, _evt: KeyboardEvent) => any;
198
210
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
199
- "update:modelValue": (_value: any, _evt?: KeyboardEvent) => any;
211
+ "update:modelValue": (_value: any, _evt: KeyboardEvent) => any;
200
212
  focus: (evt: FocusEvent) => FocusEvent;
201
213
  blur: (evt: FocusEvent) => FocusEvent;
202
- change: (_value: any, _evt?: KeyboardEvent) => any;
214
+ change: (_value: any, _evt: KeyboardEvent) => any;
203
215
  clear: () => boolean;
204
- input: (_value: any, _evt?: KeyboardEvent) => any;
205
- keypress: (_value: any, _evt?: KeyboardEvent) => any;
206
- keydown: (_value: any, _evt?: KeyboardEvent) => any;
207
- keyup: (_value: any, _evt?: KeyboardEvent) => any;
208
- enter: (_value: any, _evt?: KeyboardEvent) => any;
209
- paste: (_value: any, _evt?: KeyboardEvent) => any;
216
+ input: (_value: any, _evt: KeyboardEvent) => any;
217
+ keypress: (_value: any, _evt: KeyboardEvent) => any;
218
+ keydown: (_value: any, _evt: KeyboardEvent) => any;
219
+ keyup: (_value: any, _evt: KeyboardEvent) => any;
220
+ enter: (_value: any, _evt: KeyboardEvent) => any;
221
+ paste: (_value: any, _e: ClipboardEvent) => boolean;
210
222
  compositionstart: (evt: CompositionEvent) => CompositionEvent;
211
223
  compositionupdate: (evt: CompositionEvent) => CompositionEvent;
212
224
  compositionend: (evt: CompositionEvent) => CompositionEvent;
@@ -232,6 +244,8 @@ declare const BkInput: {
232
244
  rows: number;
233
245
  selectReadonly: boolean;
234
246
  withValidate: boolean;
247
+ overMaxLengthLimit: boolean;
248
+ showOverflowTooltips: boolean;
235
249
  }, {}, string, {}> & {
236
250
  beforeCreate?: (() => void) | (() => void)[];
237
251
  created?: (() => void) | (() => void)[];
@@ -334,21 +348,31 @@ declare const BkInput: {
334
348
  } & {
335
349
  default: boolean;
336
350
  };
351
+ overMaxLengthLimit: import("vue-types").VueTypeValidableDef<boolean> & {
352
+ default: boolean;
353
+ } & {
354
+ default: boolean;
355
+ };
356
+ showOverflowTooltips: import("vue-types").VueTypeValidableDef<boolean> & {
357
+ default: boolean;
358
+ } & {
359
+ default: boolean;
360
+ };
337
361
  }>> & {
338
- onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
362
+ onPaste?: (_value: any, _e: ClipboardEvent) => any;
339
363
  onCompositionend?: (evt: CompositionEvent) => any;
340
364
  onCompositionstart?: (evt: CompositionEvent) => any;
341
365
  onCompositionupdate?: (evt: CompositionEvent) => any;
342
366
  onFocus?: (evt: FocusEvent) => any;
343
367
  onBlur?: (evt: FocusEvent) => any;
344
- onChange?: (_value: any, _evt?: KeyboardEvent) => any;
345
- onInput?: (_value: any, _evt?: KeyboardEvent) => any;
346
- onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
347
- onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
348
- onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
368
+ onChange?: (_value: any, _evt: KeyboardEvent) => any;
369
+ onInput?: (_value: any, _evt: KeyboardEvent) => any;
370
+ onKeydown?: (_value: any, _evt: KeyboardEvent) => any;
371
+ onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
372
+ onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
349
373
  onClear?: () => any;
350
- "onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
351
- onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
374
+ "onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
375
+ onEnter?: (_value: any, _evt: KeyboardEvent) => any;
352
376
  } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
353
377
  __isFragment?: never;
354
378
  __isTeleport?: never;
@@ -435,33 +459,43 @@ declare const BkInput: {
435
459
  } & {
436
460
  default: boolean;
437
461
  };
462
+ overMaxLengthLimit: import("vue-types").VueTypeValidableDef<boolean> & {
463
+ default: boolean;
464
+ } & {
465
+ default: boolean;
466
+ };
467
+ showOverflowTooltips: import("vue-types").VueTypeValidableDef<boolean> & {
468
+ default: boolean;
469
+ } & {
470
+ default: boolean;
471
+ };
438
472
  }>> & {
439
- onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
473
+ onPaste?: (_value: any, _e: ClipboardEvent) => any;
440
474
  onCompositionend?: (evt: CompositionEvent) => any;
441
475
  onCompositionstart?: (evt: CompositionEvent) => any;
442
476
  onCompositionupdate?: (evt: CompositionEvent) => any;
443
477
  onFocus?: (evt: FocusEvent) => any;
444
478
  onBlur?: (evt: FocusEvent) => any;
445
- onChange?: (_value: any, _evt?: KeyboardEvent) => any;
446
- onInput?: (_value: any, _evt?: KeyboardEvent) => any;
447
- onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
448
- onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
449
- onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
479
+ onChange?: (_value: any, _evt: KeyboardEvent) => any;
480
+ onInput?: (_value: any, _evt: KeyboardEvent) => any;
481
+ onKeydown?: (_value: any, _evt: KeyboardEvent) => any;
482
+ onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
483
+ onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
450
484
  onClear?: () => any;
451
- "onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
452
- onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
485
+ "onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
486
+ onEnter?: (_value: any, _evt: KeyboardEvent) => any;
453
487
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
454
- "update:modelValue": (_value: any, _evt?: KeyboardEvent) => any;
488
+ "update:modelValue": (_value: any, _evt: KeyboardEvent) => any;
455
489
  focus: (evt: FocusEvent) => FocusEvent;
456
490
  blur: (evt: FocusEvent) => FocusEvent;
457
- change: (_value: any, _evt?: KeyboardEvent) => any;
491
+ change: (_value: any, _evt: KeyboardEvent) => any;
458
492
  clear: () => boolean;
459
- input: (_value: any, _evt?: KeyboardEvent) => any;
460
- keypress: (_value: any, _evt?: KeyboardEvent) => any;
461
- keydown: (_value: any, _evt?: KeyboardEvent) => any;
462
- keyup: (_value: any, _evt?: KeyboardEvent) => any;
463
- enter: (_value: any, _evt?: KeyboardEvent) => any;
464
- paste: (_value: any, _evt?: KeyboardEvent) => any;
493
+ input: (_value: any, _evt: KeyboardEvent) => any;
494
+ keypress: (_value: any, _evt: KeyboardEvent) => any;
495
+ keydown: (_value: any, _evt: KeyboardEvent) => any;
496
+ keyup: (_value: any, _evt: KeyboardEvent) => any;
497
+ enter: (_value: any, _evt: KeyboardEvent) => any;
498
+ paste: (_value: any, _e: ClipboardEvent) => boolean;
465
499
  compositionstart: (evt: CompositionEvent) => CompositionEvent;
466
500
  compositionupdate: (evt: CompositionEvent) => CompositionEvent;
467
501
  compositionend: (evt: CompositionEvent) => CompositionEvent;
@@ -487,5 +521,7 @@ declare const BkInput: {
487
521
  rows: number;
488
522
  selectReadonly: boolean;
489
523
  withValidate: boolean;
524
+ overMaxLengthLimit: boolean;
525
+ showOverflowTooltips: boolean;
490
526
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
491
527
  export default BkInput;
@@ -1 +1 @@
1
- !function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("../config-provider"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../icon"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue"),require("../config-provider"),require("../icon")):r(e["../shared"],e.vue,e["../config-provider"],e["../icon"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r,t,o)=>(()=>{"use strict";var n={2717:e=>{e.exports=t},6870:e=>{e.exports=o},4212:r=>{r.exports=e},748:e=>{e.exports=r}},l={};function i(e){var r=l[e];if(void 0!==r)return r.exports;var t=l[e]={exports:{}};return n[e](t,t.exports,i),t.exports}i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{i.r(a),i.d(a,{default:()=>y});var e=i(4212);function r(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function o(e,r,o){return(r=function(e){var r=function(e,r){if("object"!==t(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,"string");if("object"!==t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}var n=i(748);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var l,u,s=i(2717),c=i(6870),p={type:e.PropTypes.string.def("text"),clearable:e.PropTypes.bool,disabled:e.PropTypes.bool,readonly:e.PropTypes.bool,placeholder:e.PropTypes.string.def(""),prefixIcon:e.PropTypes.string,suffixIcon:e.PropTypes.string,suffix:e.PropTypes.string,prefix:e.PropTypes.string,step:e.PropTypes.integer,max:e.PropTypes.integer,min:e.PropTypes.integer,maxlength:e.PropTypes.integer,behavior:(0,e.InputBehaviorType)(),showWordLimit:e.PropTypes.bool,showControl:e.PropTypes.bool.def(!0),showClearOnlyHover:e.PropTypes.bool.def(!0),precision:e.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]),size:e.PropTypes.size(),rows:e.PropTypes.number,selectReadonly:e.PropTypes.bool.def(!1),withValidate:e.PropTypes.bool.def(!0)};function d(e,r){return!0}function f(e){return e}!function(e){e.UPDATE="update:modelValue",e.FOCUS="focus",e.BLUR="blur",e.CHANGE="change",e.CLEAR="clear",e.INPUT="input",e.KEYPRESS="keypress",e.KEYDOWN="keydown",e.KEYUP="keyup",e.ENTER="enter",e.PASTE="paste",e.COMPOSITIONSTART="compositionstart",e.COMPOSITIONUPDATE="compositionupdate",e.COMPOSITIONEND="compositionend"}(u||(u={}));var v=(o(l={},u.UPDATE,d),o(l,u.FOCUS,(function(e){return e})),o(l,u.BLUR,(function(e){return e})),o(l,u.CHANGE,d),o(l,u.CLEAR,(function(){return!0})),o(l,u.INPUT,d),o(l,u.KEYPRESS,d),o(l,u.KEYDOWN,d),o(l,u.KEYUP,d),o(l,u.ENTER,d),o(l,u.PASTE,d),o(l,u.COMPOSITIONSTART,f),o(l,u.COMPOSITIONUPDATE,f),o(l,u.COMPOSITIONEND,f),l);const m=(0,n.defineComponent)({name:"Input",inheritAttrs:!1,props:p,emits:v,setup:function(t,l){var i=(0,s.usePrefix)().resolveClassName,a=(0,e.useFormItem)(),p=(0,s.useLocale)("input"),d=(0,n.ref)(!1),f=(0,n.ref)(!1),v=(0,n.computed)((function(){return"textarea"===t.type})),m=(0,n.computed)((function(){return v.value?i("textarea"):i("input")})),y=l.attrs,b=y.class,P=y.style,T=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t}(y,["class","style"]),g=(0,n.ref)(),h=(0,n.computed)((function(){var r;return(0,e.classes)((o(r={},"".concat(m.value,"--").concat(t.size),!!t.size),o(r,"is-focused",d.value),o(r,"is-readonly",t.readonly&&!t.selectReadonly),o(r,"is-disabled",t.disabled),o(r,"is-simplicity","simplicity"===t.behavior),o(r,"".concat(b),!!b),r),m.value)})),x={search:function(){return(0,n.createVNode)(c.Search,null,null)},password:function(){return(0,n.createVNode)(c.Eye,{onClick:W},null)}},N=F("suffix-icon"),E=(0,n.computed)((function(){var e=x[t.type];return C.value?(0,n.createVNode)(c.Unvisible,{onClick:W,class:N},null):e?(0,n.createVNode)(e,{class:N},null):null})),O=(0,n.computed)((function(){return"number"===t.type})),S=(0,n.computed)((function(){return Math.floor(t.maxlength)})),C=(0,n.ref)(!1),V=(0,n.computed)((function(){return(0,e.classes)(o({"show-clear-only-hover":t.showClearOnlyHover},"".concat(m.value,"--clear-icon"),!0),N)})),w=(0,n.computed)((function(){return(0,e.classes)({"is-disabled":t.disabled||t.modelValue>=t.max})})),A=(0,n.computed)((function(){return(0,e.classes)({"is-disabled":t.disabled||t.modelValue<=t.min})}));function I(){if(!t.disabled){var e=O.value?t.min:"";l.emit(u.UPDATE,e),l.emit(u.CHANGE,e),l.emit(u.CLEAR)}}(0,n.watch)((function(){return t.modelValue}),(function(){var e;t.withValidate&&(null===(e=null==a?void 0:a.validate)||void 0===e||e.call(a,"change"))})),l.expose({focus:function(){g.value.focus()},clear:I});var U,j,D=(U=[u.KEYUP,u.KEYDOWN,u.KEYPRESS,u.PASTE,u.CHANGE,u.INPUT].map((function(e){return function(r){if(r.stopPropagation(),e!==u.KEYDOWN||"Enter"!==r.code&&"Enter"!==r.key&&13!==r.keyCode||l.emit(u.ENTER,r.target.value,r),!f.value||![u.INPUT,u.CHANGE].some((function(r){return e===r}))){if(e===u.INPUT)l.emit(u.UPDATE,r.target.value);else if(e===u.CHANGE&&O.value&&""!==r.target.value){var t=L(r.target.value,0);return l.emit(u.UPDATE,t,r),void l.emit(e,t,r)}l.emit(e,r.target.value,r)}}})),j=6,function(e){if(Array.isArray(e))return e}(U)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,n,l,i,a=[],u=!0,s=!1;try{if(l=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(o=l.call(t)).done)&&(a.push(o.value),a.length!==r);u=!0);}catch(e){s=!0,n=e}finally{try{if(!u&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(s)throw n}}return a}}(U,j)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}(U,j)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),R=D[0],K=D[1],k=D[2],M=D[3],H=D[4],Y=D[5];function L(e,r){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=Number(r),l=Number.isInteger(t.precision)?t.precision:0,i=Number(e),a=Number.isInteger(n)?n:1,u=i+(o?a:-1*a);return Number.isInteger(t.max)&&(u=Math.min(u,t.max)),Number.isInteger(t.min)&&(u=Math.max(u,t.min)),+u.toFixed(l)}function q(){if(!t.disabled){var e=L(t.modelValue,t.step);l.emit(u.UPDATE,e),l.emit(u.CHANGE,e)}}function G(){if(!t.disabled){var e=L(t.modelValue,t.step,!1);l.emit(u.UPDATE,e),l.emit(u.CHANGE,e)}}function F(e){return"".concat(m.value,"--").concat(e)}function W(){C.value=!C.value}var B=(0,n.computed)((function(){var e=void 0===t.modelValue||null===t.modelValue?{}:{value:t.modelValue};return Object.assign(Object.assign({},e),{maxlength:t.maxlength,placeholder:t.placeholder||p.value.placeholder,readonly:t.readonly,disabled:t.disabled})})),z={onInput:Y,onFocus:function(e){d.value=!0,l.emit(u.FOCUS,e)},onBlur:function(e){var r;d.value=!1,l.emit(u.BLUR,e),t.withValidate&&(null===(r=null==a?void 0:a.validate)||void 0===r||r.call(a,"blur"))},onPaste:M,onChange:H,onKeypress:k,onKeydown:K,onKeyup:R,onCompositionstart:function(){f.value=!0},onCompositionend:function(e){f.value=!1,Y(e)}};return function(){var e,r,o,i,a,u,s;return(0,n.createVNode)("div",{class:h.value,style:P},[null!==(o=null===(r=null===(e=l.slots)||void 0===e?void 0:e.prefix)||void 0===r?void 0:r.call(e))&&void 0!==o?o:t.prefix&&(0,n.createVNode)("div",{class:F("prefix-area")},[(0,n.createVNode)("span",{class:F("prefix-area--text")},[t.prefix])]),v.value?(0,n.createVNode)("textarea",(0,n.mergeProps)({ref:g,spellcheck:!1},T,z,B.value,{rows:t.rows}),null):(0,n.createVNode)("input",(0,n.mergeProps)({spellcheck:!1},T,{ref:g,class:"".concat(m.value,"--text"),type:C.value&&"password"===t.type?"text":t.type,step:t.step,max:t.max,min:t.min},z,B.value),null),!v.value&&t.clearable&&!!t.modelValue&&(0,n.createVNode)("span",{class:V.value,onClick:I},[(0,n.createVNode)(c.Close,null,null)]),E.value,"number"==typeof t.maxlength&&(t.showWordLimit||v.value)&&(0,n.createVNode)("p",{class:F("max-length")},[(null!==(i=t.modelValue)&&void 0!==i?i:"").toString().length,(0,n.createTextVNode)("/"),(0,n.createVNode)("span",null,[S.value])]),O.value&&t.showControl&&(0,n.createVNode)("div",{class:F("number-control")},[(0,n.createVNode)(c.DownSmall,{class:w.value,onClick:q},null),(0,n.createVNode)(c.DownSmall,{class:A.value,onClick:G},null)]),null!==(s=null===(u=null===(a=l.slots)||void 0===a?void 0:a.suffix)||void 0===u?void 0:u.call(a))&&void 0!==s?s:t.suffix&&(0,n.createVNode)("div",{class:F("suffix-area")},[(0,n.createVNode)("span",{class:F("suffix-area--text")},[t.suffix])])])}}}),y=(0,e.withInstall)(m)})(),a})()));
1
+ !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})()));
@@ -84,6 +84,7 @@
84
84
  box-sizing: border-box;
85
85
  transition: all 0.3s;
86
86
  flex-direction: column;
87
+ resize: both;
87
88
  }
88
89
  .bk-textarea ::placeholder {
89
90
  color: #c4c6cc;
@@ -134,6 +135,9 @@
134
135
  transform: scale(0.8);
135
136
  justify-content: flex-end;
136
137
  }
138
+ .bk-textarea--max-length.is-over-limit {
139
+ color: #ea3636;
140
+ }
137
141
  .bk-textarea--max-length span {
138
142
  color: #979ba5;
139
143
  }
@@ -211,12 +215,14 @@
211
215
  background-color: white;
212
216
  align-items: center;
213
217
  align-self: center;
218
+ flex-shrink: 0;
214
219
  }
215
220
  .bk-input--suffix-icon.show-clear-only-hover {
216
221
  display: none;
217
222
  }
218
223
  .bk-input--clear-icon {
219
224
  cursor: pointer;
225
+ flex-shrink: 0;
220
226
  }
221
227
  .bk-input--clear-icon:hover {
222
228
  color: #979ba5;
@@ -277,6 +283,9 @@
277
283
  font-size: 12px;
278
284
  transform: scale(0.8);
279
285
  }
286
+ .bk-input--max-length.is-over-limit {
287
+ color: #ea3636;
288
+ }
280
289
  .bk-input--max-length span {
281
290
  color: #979ba5;
282
291
  }
@@ -293,6 +302,9 @@
293
302
  box-sizing: border-box;
294
303
  transition: all 0.3s;
295
304
  flex: 1;
305
+ text-overflow: ellipsis;
306
+ white-space: nowrap;
307
+ overflow: hidden;
296
308
  }
297
309
  .bk-input--text[type='search']::-webkit-search-decoration,
298
310
  .bk-input--text[type='search']::-webkit-search-cancel-button,
@@ -81,6 +81,16 @@ export declare const inputType: {
81
81
  } & {
82
82
  default: boolean;
83
83
  };
84
+ overMaxLengthLimit: import("vue-types").VueTypeValidableDef<boolean> & {
85
+ default: boolean;
86
+ } & {
87
+ default: boolean;
88
+ };
89
+ showOverflowTooltips: import("vue-types").VueTypeValidableDef<boolean> & {
90
+ default: boolean;
91
+ } & {
92
+ default: boolean;
93
+ };
84
94
  };
85
95
  export declare const enum EVENTS {
86
96
  UPDATE = "update:modelValue",
@@ -98,7 +108,8 @@ export declare const enum EVENTS {
98
108
  COMPOSITIONUPDATE = "compositionupdate",
99
109
  COMPOSITIONEND = "compositionend"
100
110
  }
101
- declare function EventFunction(_value: any, _evt?: KeyboardEvent): any;
111
+ declare function EventFunction(_value: any, _evt: KeyboardEvent): any;
112
+ declare function PastEventFunction(_value: any, _e: ClipboardEvent): boolean;
102
113
  declare function CompositionEventFunction(evt: CompositionEvent): CompositionEvent;
103
114
  export declare const inputEmitEventsType: {
104
115
  "update:modelValue": typeof EventFunction;
@@ -111,7 +122,7 @@ export declare const inputEmitEventsType: {
111
122
  keydown: typeof EventFunction;
112
123
  keyup: typeof EventFunction;
113
124
  enter: typeof EventFunction;
114
- paste: typeof EventFunction;
125
+ paste: typeof PastEventFunction;
115
126
  compositionstart: typeof CompositionEventFunction;
116
127
  compositionupdate: typeof CompositionEventFunction;
117
128
  compositionend: typeof CompositionEventFunction;
@@ -199,6 +210,16 @@ declare const _default: import("vue").DefineComponent<{
199
210
  } & {
200
211
  default: boolean;
201
212
  };
213
+ overMaxLengthLimit: import("vue-types").VueTypeValidableDef<boolean> & {
214
+ default: boolean;
215
+ } & {
216
+ default: boolean;
217
+ };
218
+ showOverflowTooltips: import("vue-types").VueTypeValidableDef<boolean> & {
219
+ default: boolean;
220
+ } & {
221
+ default: boolean;
222
+ };
202
223
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
203
224
  "update:modelValue": typeof EventFunction;
204
225
  focus: (evt: FocusEvent) => FocusEvent;
@@ -210,7 +231,7 @@ declare const _default: import("vue").DefineComponent<{
210
231
  keydown: typeof EventFunction;
211
232
  keyup: typeof EventFunction;
212
233
  enter: typeof EventFunction;
213
- paste: typeof EventFunction;
234
+ paste: typeof PastEventFunction;
214
235
  compositionstart: typeof CompositionEventFunction;
215
236
  compositionupdate: typeof CompositionEventFunction;
216
237
  compositionend: typeof CompositionEventFunction;
@@ -296,21 +317,31 @@ declare const _default: import("vue").DefineComponent<{
296
317
  } & {
297
318
  default: boolean;
298
319
  };
320
+ overMaxLengthLimit: import("vue-types").VueTypeValidableDef<boolean> & {
321
+ default: boolean;
322
+ } & {
323
+ default: boolean;
324
+ };
325
+ showOverflowTooltips: import("vue-types").VueTypeValidableDef<boolean> & {
326
+ default: boolean;
327
+ } & {
328
+ default: boolean;
329
+ };
299
330
  }>> & {
300
- onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
331
+ onPaste?: (_value: any, _e: ClipboardEvent) => any;
301
332
  onCompositionend?: (evt: CompositionEvent) => any;
302
333
  onCompositionstart?: (evt: CompositionEvent) => any;
303
334
  onCompositionupdate?: (evt: CompositionEvent) => any;
304
335
  onFocus?: (evt: FocusEvent) => any;
305
336
  onBlur?: (evt: FocusEvent) => any;
306
- onChange?: (_value: any, _evt?: KeyboardEvent) => any;
307
- onInput?: (_value: any, _evt?: KeyboardEvent) => any;
308
- onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
309
- onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
310
- onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
337
+ onChange?: (_value: any, _evt: KeyboardEvent) => any;
338
+ onInput?: (_value: any, _evt: KeyboardEvent) => any;
339
+ onKeydown?: (_value: any, _evt: KeyboardEvent) => any;
340
+ onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
341
+ onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
311
342
  onClear?: () => any;
312
- "onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
313
- onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
343
+ "onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
344
+ onEnter?: (_value: any, _evt: KeyboardEvent) => any;
314
345
  }, {
315
346
  type: string;
316
347
  prefix: string;
@@ -333,5 +364,7 @@ declare const _default: import("vue").DefineComponent<{
333
364
  rows: number;
334
365
  selectReadonly: boolean;
335
366
  withValidate: boolean;
367
+ overMaxLengthLimit: boolean;
368
+ showOverflowTooltips: boolean;
336
369
  }, {}>;
337
370
  export default _default;