bkui-vue 0.0.1-beta.226 → 0.0.1-beta.228

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 (41) hide show
  1. package/dist/index.cjs.js +30 -30
  2. package/dist/index.esm.js +230 -137
  3. package/dist/index.umd.js +30 -30
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/color-picker/color-picker.d.ts +1 -1
  7. package/lib/color-picker/index.d.ts +4 -4
  8. package/lib/date-picker/date-picker.d.ts +1 -1
  9. package/lib/date-picker/index.d.ts +4 -4
  10. package/lib/date-picker/panel/time-range.d.ts +1 -1
  11. package/lib/date-picker/panel/time.d.ts +1 -1
  12. package/lib/date-picker/time-picker.d.ts +1 -1
  13. package/lib/dialog/dialog.d.ts +1 -1
  14. package/lib/dialog/index.d.ts +4 -4
  15. package/lib/icon/index.d.ts +1 -0
  16. package/lib/icon/index.js +1 -1
  17. package/lib/icon/transfer.d.ts +4 -0
  18. package/lib/icon/transfer.js +1 -0
  19. package/lib/modal/index.d.ts +4 -4
  20. package/lib/modal/modal.d.ts +1 -1
  21. package/lib/select/index.d.ts +3 -0
  22. package/lib/select/index.js +1 -1
  23. package/lib/select/select.d.ts +1 -0
  24. package/lib/sideslider/index.d.ts +4 -4
  25. package/lib/sideslider/sideslider.d.ts +1 -1
  26. package/lib/table/components/table-cell.d.ts +11 -0
  27. package/lib/table/const.d.ts +4 -0
  28. package/lib/table/index.d.ts +11 -11
  29. package/lib/table/index.js +1 -1
  30. package/lib/table/props.d.ts +2 -2
  31. package/lib/table/table.d.ts +5 -5
  32. package/lib/table/use-common.d.ts +1 -0
  33. package/lib/table-column/index.js +1 -1
  34. package/lib/time-picker/index.d.ts +4 -4
  35. package/lib/transfer/index.d.ts +3 -3
  36. package/lib/transfer/index.js +1 -1
  37. package/lib/transfer/transfer.css +54 -32
  38. package/lib/transfer/transfer.d.ts +1 -1
  39. package/lib/transfer/transfer.less +49 -42
  40. package/lib/transfer/transfer.variable.css +59 -37
  41. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import { FunctionalComponent } from 'vue';
2
+ import { IIconBaseProps } from './icon';
3
+ declare const transfer: FunctionalComponent<IIconBaseProps>;
4
+ export default transfer;
@@ -0,0 +1 @@
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{var r="object"==typeof exports?t(require("vue")):t(e.vue);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,(e=>(()=>{"use strict";var t={9430:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(748);function o(e,t,r){return(0,n.h)(e.name,Object.assign(Object.assign({key:t},e.attributes),{style:"".concat(e.attributes.style," ").concat(r||"")}),(e.elements||[]).map((function(r,n){return o(r,"".concat(t,"-").concat(e.name,"-").concat(n))})))}Object.create,Object.create;var a=function(e,t){var r=Object.assign(Object.assign({},t.attrs),e),a=r.data,i=r.name,s=r.width,c=r.height,l=r.fill,u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(r,["data","name","width","height","fill"]),f="width: ".concat(s,"; height: ").concat(c,"; fill: ").concat(l);return(0,n.createVNode)("span",u,[o(a,i,f)])};a.inheritAttrs=!1,a.displayName="bkIcon";const i=a},748:t=>{t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{n.r(o),n.d(o,{default:()=>i});var e=n(748),t=n(9430),r=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M832 448L618.6800000000001 224.00000000000003 617.0133344000001 368.9411776 192 368.94117760000006 192 448.00000000000006 832 448ZM832 576L192 576 405.34666560000005 800 407.01333439999996 655.0588224 832 655.0588224 832 576Z"}}]}'),a=function(n,o){var a=Object.assign(Object.assign({},n),o.attrs);return(0,e.createVNode)(t.Z,(0,e.mergeProps)(a,{data:r,name:"transfer"}),null)};a.displayName="transfer",a.inheritAttrs=!1;const i=a})(),o})()));
@@ -16,11 +16,11 @@ declare const BkModal: {
16
16
  height: string | number;
17
17
  isShow: boolean;
18
18
  draggable: boolean;
19
+ transfer: boolean;
19
20
  size: string;
20
21
  direction: string;
21
22
  maxHeight: string;
22
23
  renderDirective: string;
23
- transfer: boolean;
24
24
  dialogType: string;
25
25
  infoType: string;
26
26
  quickClose: boolean;
@@ -129,7 +129,7 @@ declare const BkModal: {
129
129
  "onQuick-close"?: (...args: any[]) => any;
130
130
  onQuickClose?: (...args: any[]) => any;
131
131
  onShown?: (...args: any[]) => any;
132
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "multiInstance" | "zIndex" | "showMask" | "extCls" | "width" | "height" | "isShow" | "draggable" | "size" | "direction" | "maxHeight" | "renderDirective" | "transfer" | "dialogType" | "infoType" | "quickClose" | "scrollable" | "closeIcon" | "escClose" | "fullscreen" | "animateType">;
132
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "multiInstance" | "zIndex" | "showMask" | "extCls" | "width" | "height" | "isShow" | "draggable" | "transfer" | "size" | "direction" | "maxHeight" | "renderDirective" | "dialogType" | "infoType" | "quickClose" | "scrollable" | "closeIcon" | "escClose" | "fullscreen" | "animateType">;
133
133
  $attrs: {
134
134
  [x: string]: unknown;
135
135
  };
@@ -263,11 +263,11 @@ declare const BkModal: {
263
263
  height: string | number;
264
264
  isShow: boolean;
265
265
  draggable: boolean;
266
+ transfer: boolean;
266
267
  size: string;
267
268
  direction: string;
268
269
  maxHeight: string;
269
270
  renderDirective: string;
270
- transfer: boolean;
271
271
  dialogType: string;
272
272
  infoType: string;
273
273
  quickClose: boolean;
@@ -530,11 +530,11 @@ declare const BkModal: {
530
530
  height: string | number;
531
531
  isShow: boolean;
532
532
  draggable: boolean;
533
+ transfer: boolean;
533
534
  size: string;
534
535
  direction: string;
535
536
  maxHeight: string;
536
537
  renderDirective: string;
537
- transfer: boolean;
538
538
  dialogType: string;
539
539
  infoType: string;
540
540
  quickClose: boolean;
@@ -212,11 +212,11 @@ declare const _default: import("vue").DefineComponent<{
212
212
  height: string | number;
213
213
  isShow: boolean;
214
214
  draggable: boolean;
215
+ transfer: boolean;
215
216
  size: string;
216
217
  direction: string;
217
218
  maxHeight: string;
218
219
  renderDirective: string;
219
- transfer: boolean;
220
220
  dialogType: string;
221
221
  infoType: string;
222
222
  quickClose: boolean;
@@ -713,6 +713,7 @@ declare const BkSelect: {
713
713
  default: any;
714
714
  };
715
715
  }>>>>;
716
+ focusInput: () => void;
716
717
  setHover: () => void;
717
718
  cancelHover: () => void;
718
719
  handleFocus: () => void;
@@ -1272,6 +1273,7 @@ declare const BkSelect: {
1272
1273
  default: any;
1273
1274
  };
1274
1275
  }>>>>;
1276
+ focusInput: () => void;
1275
1277
  setHover: () => void;
1276
1278
  cancelHover: () => void;
1277
1279
  handleFocus: () => void;
@@ -1778,6 +1780,7 @@ declare const BkSelect: {
1778
1780
  default: any;
1779
1781
  };
1780
1782
  }>>>>;
1783
+ focusInput: () => void;
1781
1784
  setHover: () => void;
1782
1785
  cancelHover: () => void;
1783
1786
  handleFocus: () => void;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon"),require("lodash"),require("../directives"),require("../input"),require("../loading"),require("../popover2"),require("../virtual-render"),require("../tag"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon","lodash","../directives","../input","../loading","../popover2","../virtual-render","../tag"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon"),require("lodash"),require("../directives"),require("../input"),require("../loading"),require("../popover2"),require("../virtual-render"),require("../tag")):t(e["../shared"],e.vue,e["../icon"],e.lodash,e["../directives"],e["../input"],e["../loading"],e["../popover2"],e["../virtual-render"],e["../tag"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n,o,l,a,i,u,s)=>(()=>{var c={7162:(e,t,r)=>{e.exports=r(5047)},5047:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,l=Object.create(o.prototype),a=new C(n||[]);return l._invoke=function(e,t,r){var n=d;return function(o,l){if(n===v)throw new Error("Generator is already running");if(n===f){if("throw"===o)throw l;return I()}for(r.method=o,r.arg=l;;){var a=r.delegate;if(a){var i=V(a,r);if(i){if(i===h)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=v;var u=c(e,t,r);if("normal"===u.type){if(n=r.done?f:p,u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=f,r.method="throw",r.arg=u.arg)}}}(e,r,a),l}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d="suspendedStart",p="suspendedYield",v="executing",f="completed",h={};function g(){}function y(){}function b(){}var m={};u(m,l,(function(){return this}));var w=Object.getPrototypeOf,T=w&&w(w(N([])));T&&T!==r&&n.call(T,l)&&(m=T);var x=b.prototype=g.prototype=Object.create(m);function P(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,l,a,i){var u=c(e[o],e,l);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,i)}),(function(e){r("throw",e,a,i)})):t.resolve(d).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,i)}))}i(u.arg)}var o;this._invoke=function(e,n){function l(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(l,l):l()}}function V(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,V(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=c(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var l=o.arg;return l?l.done?(r[e.resultName]=l.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):l:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function k(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function N(e){if(e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:I}}function I(){return{value:t,done:!0}}return y.prototype=b,u(x,"constructor",b),u(b,"constructor",y),y.displayName=u(b,i,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,i,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},P(S.prototype),u(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,l){void 0===l&&(l=Promise);var a=new S(s(t,r,n,o),l);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),u(x,i,"Generator"),u(x,l,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=N,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},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 r=this;function o(n,o){return i.type="throw",i.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var l=this.tryEntries.length-1;l>=0;--l){var a=this.tryEntries[l],i=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var l=o;break}}l&&("break"===e||"continue"===e)&&l.tryLoc<=t&&t<=l.finallyLoc&&(l=null);var a=l?l.completion:{};return a.type=e,a.arg=t,l?(this.method="next",this.next=l.finallyLoc,h):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),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},4061:e=>{"use strict";e.exports=o},6870:e=>{"use strict";e.exports=r},8133:e=>{"use strict";e.exports=l},4870:e=>{"use strict";e.exports=a},6175:e=>{"use strict";e.exports=i},4212:t=>{"use strict";t.exports=e},7739:e=>{"use strict";e.exports=s},3511:e=>{"use strict";e.exports=u},467:e=>{"use strict";e.exports=n},748:e=>{"use strict";e.exports=t}},d={};function p(e){var t=d[e];if(void 0!==t)return t.exports;var r=d[e]={exports:{}};return c[e](r,r.exports,p),r.exports}p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var r in t)p.o(t,r)&&!p.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var v={};return(()=>{"use strict";p.r(v),p.d(v,{BkOption:()=>c,BkOptionGroup:()=>h,BkSelect:()=>L,default:()=>E});var e=p(4212),t=p(748),r=p(6870),n=p(7162),o=p.n(n);Object.create,Object.create;var l=Symbol("BkSelect"),a=Symbol("BkOptionGroup");function i(e){return{register:function(t,r){if(r){if(!e.value.has(t))return e.value.set(t,r);console.warn("repeat ".concat(t),r)}},unregister:function(t){e.value.delete(t)}}}function u(e,r){var n=this,l=function(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=e;return(0,t.customRef)((function(e,t){return{get:function(){return e(),o},set:function(e){clearTimeout(r),void 0===e||""===e?(o=e,t()):r=setTimeout((function(){o=e,t()}),n)}}}))}(""),a=(0,t.ref)(!1);return(0,t.watch)(l,(function(){return t=n,i=void 0,u=void 0,s=o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a.value=!0,t.next=4,e(l.value);case 4:a.value=!1,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:return t.prev=10,null==r||r(),t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[0,7,10,13]])})),new(u||(u=Promise))((function(e,r){function n(e){try{l(s.next(e))}catch(e){r(e)}}function o(e){try{l(s.throw(e))}catch(e){r(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof u?r:new u((function(e){e(r)}))).then(n,o)}l((s=s.apply(t,i||[])).next())}));var t,i,u,s})),{searchKey:l,searchLoading:a}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?String(e).trim().toLowerCase():e}const c=(0,t.defineComponent)({name:"Option",props:{value:e.PropTypes.any,label:e.PropTypes.string.def(""),disabled:e.PropTypes.bool.def(!1)},setup:function(e){var r=(0,t.getCurrentInstance)().proxy,n=(0,t.reactive)({visible:!0}),o=(0,t.toRefs)(e),i=o.disabled,u=o.value,s=(0,t.inject)(l,null),c=(0,t.inject)(a,null),d=(0,t.computed)((function(){var e;return null===(e=null==s?void 0:s.selected)||void 0===e?void 0:e.some((function(e){return e.value===u.value}))})),p=(0,t.computed)((function(){return null==s?void 0:s.multiple})),v=(0,t.computed)((function(){return(null==s?void 0:s.activeOptionValue)===u.value})),f=(0,t.computed)((function(){return null==s?void 0:s.showSelectedIcon}));return(0,t.onBeforeMount)((function(){null==s||s.register(u.value,r),null==c||c.register(u.value,r)})),(0,t.onBeforeUnmount)((function(){null==s||s.unregister(u.value),null==c||c.unregister(u.value)})),Object.assign(Object.assign({},(0,t.toRefs)(n)),{selected:d,multiple:p,isHover:v,showSelectedIcon:f,handleOptionClick:function(){i.value||null==s||s.handleOptionSelected(r)},handleMouseEnter:function(){s.activeOptionValue=u.value}})},render:function(){var n,o,l,a=(0,e.classes)({"is-selected":this.selected,"is-disabled":this.disabled,"is-multiple":this.multiple,"is-hover":this.isHover,"bk-select-option":!0});return(0,t.withDirectives)((0,t.createVNode)("li",{class:a,onClick:this.handleOptionClick,onMouseenter:this.handleMouseEnter},[null!==(l=null===(o=(n=this.$slots).default)||void 0===o?void 0:o.call(n))&&void 0!==l?l:(0,t.createVNode)("span",{class:"bk-select-option-item",title:this.label},[this.label]),this.multiple&&this.selected&&this.showSelectedIcon&&(0,t.createVNode)(r.Done,{class:"bk-select-selected-icon",width:22,height:22},null)]),[[t.vShow,this.visible]])}});function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const h=(0,t.defineComponent)({name:"Group",props:{label:e.PropTypes.string.def(""),disabled:e.PropTypes.bool.def(!1),collapsible:e.PropTypes.bool.def(!1),collapse:e.PropTypes.bool.def(!1)},setup:function(e,r){var n=r.emit,o=(0,t.getCurrentInstance)(),u=o.proxy,s=(0,t.inject)(l,null),c=(0,t.reactive)({groupCollapse:e.collapse,visible:!0}),d=(0,t.ref)(new Map),p=i(d),v=p.register,h=p.unregister,g=(0,t.computed)((function(){return"".concat(e.label," (").concat(f(d.value.values()).filter((function(e){return e.visible})).length,")")}));return(0,t.provide)(a,(0,t.reactive)(Object.assign(Object.assign({},(0,t.toRefs)(e)),{register:v,unregister:h,groupCollapse:(0,t.toRef)(c,"groupCollapse")}))),(0,t.onBeforeMount)((function(){null==s||s.registerGroup(o.uid,u)})),(0,t.onBeforeUnmount)((function(){null==s||s.unregisterGroup(o.uid)})),Object.assign(Object.assign({},(0,t.toRefs)(c)),{groupLabel:g,handleToggleCollapse:function(){e.collapsible&&!e.disabled&&(c.groupCollapse=!c.groupCollapse,n("update:collapse",c.groupCollapse))}})},render:function(){var n,o,l=(0,e.classes)({"bk-option-group":!0,collapsible:this.collapsible,disabled:this.disabled}),a=(0,e.classes)({"bk-option-group-label":!0,collapsible:this.collapsible}),i=(0,e.classes)({"default-group-label-icon":!0,collapse:this.groupCollapse});return(0,t.withDirectives)((0,t.createVNode)("ul",{class:l},[(0,t.createVNode)("li",{class:a,onClick:this.handleToggleCollapse},[this.$slots.label?this.$slots.label():(0,t.createVNode)("span",{class:"default-group-label"},[this.collapsible&&(0,t.createVNode)(r.AngleUpFill,{class:i},null),(0,t.createVNode)("span",{class:"default-group-label-title"},[this.groupLabel])])]),(0,t.withDirectives)((0,t.createVNode)("ul",{class:"bk-option-group-content"},[null===(o=(n=this.$slots).default)||void 0===o?void 0:o.call(n)]),[[t.vShow,!this.groupCollapse]])]),[[t.vShow,this.visible]])}});function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=p(467),b=p(4061),m=p(8133),w=p.n(m),T=p(4870),x=p.n(T),P=p(6175),S=p.n(P),V=p(3511),k=p.n(V),O=p(7739),C=p.n(O);const N=(0,t.defineComponent)({name:"SelectTagInput",props:{selected:{type:Array,default:function(){return[]}},tagTheme:e.PropTypes.theme(["success","info","warning","danger"]).def(""),placeholder:e.PropTypes.string.def(""),filterable:e.PropTypes.bool.def(!1),allowCreate:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),modelValue:e.PropTypes.any,collapseTags:e.PropTypes.bool.def(!1)},emits:["update:modelValue","remove","enter"],setup:function(e,r){var n=r.emit,o=(0,t.getCurrentInstance)().proxy,a=(0,t.inject)(l,null),i=(0,t.toRefs)(e),u=i.modelValue,s=i.collapseTags,c=i.selected,d=(0,t.ref)(u.value),p=(0,t.ref)(),v=(0,t.ref)(null);(0,t.watch)(u,(function(){d.value=u.value})),(0,t.watch)([c,s],(function(){h()}),{flush:"post"});var h=function(){s.value&&(v.value=null,setTimeout((function(){var e=function(e){var t=f(o.$el.querySelectorAll(".bk-tag"));return t}(),t=e.findIndex((function(t,r){return!!r&&e[r-1].offsetTop!==t.offsetTop}));v.value=t>0?t:null})))};return{select:a,overflowTagIndex:v,value:d,inputRef:p,handleRemoveTag:function(e){n("remove",e)},focus:function(){var e;null===(e=p.value)||void 0===e||e.focus()},handleInput:function(e){n("update:modelValue",e.target.value)},handleKeydown:function(e){"Enter"===e.code&&n("enter",e.target.value,e)}}},render:function(){var r,n,o,l,a,i,u,s=this,c=(0,e.classes)({"bk-select-tag":!0,"bk-select-tag--default":!0,"is-disabled":this.disabled,"collapse-tag":this.collapseTags}),d=(0,e.classes)({"bk-select-tag-wrapper":!0}),p={display:this.selected.length&&!this.filterable?"none":""};return(0,t.createVNode)("div",{class:c},[null===(n=null===(r=this.$slots)||void 0===r?void 0:r.prefix)||void 0===n?void 0:n.call(r),(0,t.createVNode)("span",{class:d},[null!==(a=null===(l=(o=this.$slots).default)||void 0===l?void 0:l.call(o))&&void 0!==a?a:this.selected.map((function(e,r){var n;return(0,t.createVNode)(C(),{closable:!0,theme:s.tagTheme,style:{display:s.collapseTags&&s.overflowTagIndex&&r>=s.overflowTagIndex?"none":""},onClose:function(){return s.handleRemoveTag(e.value)}},{default:function(){return[null===(n=s.select)||void 0===n?void 0:n.handleGetLabelByValue(e.value)]}})})),!!this.overflowTagIndex&&this.collapseTags&&(0,t.createVNode)(C(),{class:"bk-select-overflow-tag"},{default:function(){return[(0,t.createTextVNode)("+"),s.selected.length-s.overflowTagIndex]}})]),(0,t.createVNode)("input",{class:"bk-select-tag-input",ref:"inputRef",type:"text",style:p,placeholder:this.selected.length?"":this.placeholder,readonly:!this.filterable,disabled:this.disabled,value:this.filterable?this.value:"",onInput:this.handleInput,onKeydown:this.handleKeydown},null),null===(u=null===(i=this.$slots)||void 0===i?void 0:i.suffix)||void 0===u?void 0:u.call(i)])}}),I=(0,t.defineComponent)({name:"Select",directives:{clickoutside:b.clickoutside},props:{modelValue:e.PropTypes.any,multiple:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),size:e.PropTypes.size().def("default"),clearable:e.PropTypes.bool.def(!0),loading:e.PropTypes.bool.def(!1),filterable:e.PropTypes.bool.def(!1),remoteMethod:e.PropTypes.func,scrollHeight:e.PropTypes.number.def(200),showSelectAll:e.PropTypes.bool.def(!1),popoverMinWidth:e.PropTypes.number.def(0),showOnInit:e.PropTypes.bool.def(!1),multipleMode:e.PropTypes.oneOf(["default","tag"]).def("default"),tagTheme:e.PropTypes.theme(["success","info","warning","danger"]).def(""),behavior:e.PropTypes.oneOf(["normal","simplicity"]).def("normal"),collapseTags:e.PropTypes.bool.def(!1),autoHeight:e.PropTypes.bool.def(!0),noDataText:e.PropTypes.string.def("无数据"),noMatchText:e.PropTypes.string.def("无匹配数据"),loadingText:e.PropTypes.string.def("加载中..."),placeholder:e.PropTypes.string.def("请选择"),searchPlaceholder:e.PropTypes.string.def("请输入关键字"),selectAllText:e.PropTypes.string.def("全部"),scrollLoading:e.PropTypes.bool.def(!1),allowCreate:e.PropTypes.bool.def(!1),popoverOptions:e.PropTypes.object.def({}),customContent:e.PropTypes.bool.def(!1),list:e.PropTypes.array.def([]),idKey:e.PropTypes.string.def("value"),displayKey:e.PropTypes.string.def("label"),withValidate:e.PropTypes.bool.def(!0),showSelectedIcon:e.PropTypes.bool.def(!0),inputSearch:e.PropTypes.bool.def(!0),enableVirtualRender:e.PropTypes.bool.def(!1),allowEmptyValues:e.PropTypes.array.def([])},emits:["update:modelValue","change","toggle","clear","scroll-end","focus","blur"],setup:function(r,n){var o=n.emit,a=(0,t.toRefs)(r),c=a.modelValue,d=a.disabled,p=a.filterable,v=a.multiple,h=a.remoteMethod,g=a.loading,b=a.loadingText,m=a.noDataText,w=a.noMatchText,T=a.popoverMinWidth,x=a.showOnInit,P=a.multipleMode,S=a.allowCreate,V=a.customContent,k=a.showSelectedIcon,O=a.inputSearch,C=a.enableVirtualRender,N=a.showSelectAll,I=a.scrollHeight,L=a.list,E=a.displayKey,j=a.collapseTags,R=a.autoHeight,M=a.popoverOptions,A=a.allowEmptyValues,H=(0,e.useFormItem)(),q=(0,t.ref)(),K=(0,t.ref)(),G=(0,t.ref)(),_=(0,t.ref)(),D=(0,t.ref)(),$=(0,t.ref)(),B=(0,t.ref)(),F=(0,t.ref)(new Map),z=(0,t.computed)((function(){return f(F.value.values())})),U=(0,t.ref)(new Map),W=(0,t.ref)([]),Y=(0,t.computed)((function(){return W.value.reduce((function(e,t){return e[t.value]=t.label,e}),{})})),J=(0,t.ref)();(0,t.watch)(c,(function(){var e;Ke(),r.withValidate&&(null===(e=null==H?void 0:H.validate)||void 0===e||e.call(H,"change"))}),{deep:!0}),(0,t.watch)(W,(function(){var e;null===(e=B.value)||void 0===e||e.updatePopover(null,ce.value)}));var Q=(0,t.computed)((function(){return oe.value?L.value:L.value.filter((function(e){var t;return null===(t=s(String(e[E.value])))||void 0===t?void 0:t.includes(s(je.value))}))})),X=(0,t.computed)((function(){return d.value||g.value})),Z=(0,t.computed)((function(){return W.value.map((function(e){var t,r;return(null===(r=null===(t=F.value)||void 0===t?void 0:t.get(e.value))||void 0===r?void 0:r.label)||e.label}))})),ee=(0,t.computed)((function(){var e=z.value.reduce((function(e,t){return t.disabled||e.push(t.value),e}),[]);return e.length<=W.value.length&&e.every((function(e){return W.value.some((function(t){return t.value===e}))}))})),te=(0,t.computed)((function(){return!!U.value.size})),re=(0,t.computed)((function(){return!z.value.length})),ne=(0,t.computed)((function(){return z.value.length&&z.value.every((function(e){return!e.visible}))})),oe=(0,t.computed)((function(){return p.value&&"function"==typeof h.value})),le=(0,t.computed)((function(){return!(Re.value||re.value||ne.value)||V.value})),ae=(0,t.computed)((function(){return v.value&&N.value&&(!je.value||!p.value)})),ie=(0,t.computed)((function(){return I.value-12-(ae.value?32:0)})),ue=(0,t.computed)((function(){return Re.value?b.value:re.value?m.value:ne.value?w.value:""})),se=(0,t.computed)((function(){return R.value?j.value&&!ke.value:j.value})),ce=(0,t.computed)((function(){return(0,y.merge)({theme:"light bk-select-popover",trigger:"manual",width:Ve.value,arrow:!1,placement:"bottom-start",isShow:ke.value,reference:D.value,offset:6},M.value)})),de=i(F),pe=de.register,ve=de.unregister,fe=i(U),he=fe.register,ge=fe.unregister,ye=function(){var e=(0,t.ref)(!1);return{isHover:e,setHover:function(){e.value=!0},cancelHover:function(){e.value=!1}}}(),be=ye.isHover,me=ye.setHover,we=ye.cancelHover,Te=(0,t.ref)(!1),xe=function(){Te.value||(Te.value=!0,o("focus"))},Pe=function(){Te.value&&(Te.value=!1,o("blur"))},Se=function(r,n){var o=r.popoverMinWidth,l=null,a=(0,t.ref)("auto"),i=(0,t.ref)(!1),u=function(){var e;a.value=Math.max(null===(e=n.value)||void 0===e?void 0:e.offsetWidth,o)};return(0,t.onMounted)((function(){n.value&&(l=(0,e.observerResize)(n.value,u,60,!0)).start()})),(0,t.onBeforeUnmount)((function(){null==l||l.stop(),l=null})),{isPopoverShow:i,popperWidth:a,togglePopover:function(){i.value=!i.value},hidePopover:function(){i.value=!1},showPopover:function(){i.value=!0}}}({popoverMinWidth:T.value},K),Ve=Se.popperWidth,ke=Se.isPopoverShow,Oe=Se.hidePopover,Ce=Se.showPopover,Ne=Se.togglePopover,Ie=(0,t.computed)((function(){return(p.value&&O.value||S.value)&&ke.value}));(0,t.watch)(ke,(function(e){e?(He(),Le()):je.value=""}));var Le=function(){var e,t=W.value[0],r=F.value.get(null==t?void 0:t.value);r&&!r.disabled&&r.visible?J.value=null==t?void 0:t.value:J.value=null===(e=z.value.find((function(e){return!e.disabled&&e.visible})))||void 0===e?void 0:e.value},Ee=u(oe.value?h.value:function(e){p.value&&z.value.forEach((function(t){var r;t.visible=null===(r=s(String(t.label)))||void 0===r?void 0:r.includes(s(e))}))},Le),je=Ee.searchKey,Re=Ee.searchLoading,Me=function(e){e!==c.value&&(o("change",e,c.value),o("update:modelValue",e,c.value))},Ae=function(e){if(!X.value&&e){if(v.value){var t=W.value.findIndex((function(t){return t.value===e.value}));t>-1?W.value.splice(t,1):W.value.push({value:e.value,label:e.label||e.value}),Me(W.value.map((function(e){return e.value})))}else W.value=[{label:e.label||e.value,value:e.value}],Me(e.value),Oe();He()}},He=function(){setTimeout((function(){var e,t,r;O.value||S.value?"tag"===P.value?null===(t=D.value)||void 0===t||t.focus():null===(r=q.value)||void 0===r||r.focus():null===(e=_.value)||void 0===e||e.focus()}),0)},qe=function(e){var t,r;return(null===(r=null===(t=F.value)||void 0===t?void 0:t.get(e))||void 0===r?void 0:r.label)||Y.value[e]||e},Ke=function(){Array.isArray(c.value)?W.value=f(c.value.map((function(e){return{value:e,label:qe(e)}}))):c.value||A.value.includes(c.value)?W.value=[{value:c.value,label:qe(c.value)}]:W.value=[]},Ge=function(e){var t,r,n,o;if((null===(t=K.value)||void 0===t?void 0:t.contains(e.target))||(null===(r=G.value)||void 0===r?void 0:r.contains(e.target))||V.value){var l=z.value.filter((function(e){return!e.disabled&&e.visible})),a=l.findIndex((function(e){return e.value===J.value}));if(l.length&&-1!==a)switch(e.code){case"ArrowDown":e.preventDefault();var i=a>=l.length-1?0:a+1;J.value=null===(n=l[i])||void 0===n?void 0:n.value;break;case"ArrowUp":e.preventDefault();var u=0===a?l.length-1:a-1;J.value=null===(o=l[u])||void 0===o?void 0:o.value;break;case"Backspace":if(!v.value||!W.value.length||je.value.length||e.target===_.value)return;W.value.pop(),Me(W.value.map((function(e){return e.value})));break;case"Enter":if(ke.value){var s=F.value.get(J.value);Ae(s)}else ke.value=!0}}};return(0,t.provide)(l,(0,t.reactive)({multiple:v,selected:W,activeOptionValue:J,showSelectedIcon:k,register:pe,unregister:ve,registerGroup:he,unregisterGroup:ge,handleOptionSelected:Ae,handleGetLabelByValue:qe})),(0,t.onMounted)((function(){Ke(),setTimeout((function(){x.value&&Ce()})),(0,e.on)(document,"keydown",Ge)})),(0,t.onBeforeMount)((function(){(0,e.off)(document,"keydown",Ge)})),{selected:W,isInput:Ie,options:z,isDisabled:X,selectedLabel:Z,isPopoverShow:ke,isHover:be,popperWidth:Ve,inputRef:q,triggerRef:K,contentRef:G,searchRef:_,selectTagInputRef:D,virtualRenderRef:$,popoverRef:B,searchLoading:Re,isOptionsEmpty:re,isSearchEmpty:ne,isFocus:Te,isShowSelectContent:le,curContentText:ue,isGroup:te,searchKey:je,isShowSelectAll:ae,virtualHeight:ie,filterList:Q,isCollapseTags:se,popoverConfig:ce,setHover:me,cancelHover:we,handleFocus:xe,handleBlur:Pe,handleTogglePopover:function(){X.value||(xe(),Ne(),o("toggle",ke.value))},handleClear:function(e){e.stopPropagation(),W.value=[],Me(v.value?[]:""),o("clear",v.value?[]:""),Oe()},hidePopover:Oe,showPopover:Ce,handleToggleAll:function(){ee.value?W.value=[]:z.value.forEach((function(e){e.disabled||W.value.find((function(t){return t.value===e.value}))||W.value.push({value:e.value,label:e.label||e.value})})),Me(W.value.map((function(e){return e.value}))),He()},handleOptionSelected:Ae,handleClickOutside:function(e){var t,r=e.event.target;(null===(t=K.value)||void 0===t?void 0:t.contains(r))||K.value===r||(Oe(),Pe())},handleScroll:function(e){var t=e.target;t.scrollTop+t.clientHeight===t.scrollHeight&&o("scroll-end")},handleDeleteTag:function(e){if(!X.value){var t=W.value.findIndex((function(t){return t.value===e}));t>-1&&(W.value.splice(t,1),Me(W.value.map((function(e){return e.value}))))}},handleInputChange:function(e){p.value&&(je.value=e)},handleInputEnter:function(e,t){var r=String(e);!S.value||!r||p.value&&z.value.find((function(e){return s(String(e.label))===s(r)}))||F.value.get(r)||(t.stopPropagation(),v.value?(W.value.push({value:r,label:r}),Me(W.value.map((function(e){return e.value})))):(W.value=[{value:r,label:r}],Me(r),Oe()),je.value="")},handleKeydown:Ge,handleSelectedAllOptionMouseEnter:function(){J.value=""},handlePopoverShow:function(){setTimeout((function(){var e,t;C.value&&(null===(t=null===(e=$.value)||void 0===e?void 0:e.reset)||void 0===t||t.call(e))}))}}},render:function(){var n,o=this,l=(0,e.classes)((g(n={"bk-select":!0,"popover-show":this.isPopoverShow,"is-disabled":this.isDisabled,"is-focus":this.isFocus,"is-filterable":this.filterable},this.size,!0),g(n,this.behavior,!0),n)),a=function(){return o.loading?(0,t.createVNode)(x(),{loading:!0,theme:"primary",class:"spinner",mode:"spin",size:"mini"},null):o.clearable&&o.isHover&&o.selected.length&&!o.isDisabled?(0,t.createVNode)(r.Close,{class:"clear-icon",onClick:o.handleClear},null):(0,t.createVNode)(r.AngleUp,{class:"angle-up"},null)};return(0,t.createVNode)("div",{class:l},[(0,t.createVNode)(S(),(0,t.mergeProps)(this.popoverConfig,{onClickoutside:this.handleClickOutside,onAfterShow:this.handlePopoverShow,ref:"popoverRef"}),{default:function(){return(0,t.createVNode)("div",{class:"bk-select-trigger",style:{height:o.autoHeight&&o.collapseTags?"32px":""},ref:"triggerRef",onClick:o.handleTogglePopover,onMouseenter:o.setHover,onMouseleave:o.cancelHover},["tag"===o.multipleMode?(0,t.createVNode)(N,{ref:"selectTagInputRef",modelValue:o.searchKey,"onUpdate:modelValue":function(e){return o.searchKey=e},selected:o.selected,tagTheme:o.tagTheme,placeholder:o.placeholder,filterable:o.isInput,disabled:o.isDisabled,onRemove:o.handleDeleteTag,collapseTags:o.isCollapseTags,onEnter:o.handleInputEnter},{prefix:function(){var e,t;return null===(t=(e=o.$slots).prefix)||void 0===t?void 0:t.call(e)},default:o.$slots.tag&&function(){return o.$slots.tag({selected:o.selected})},suffix:function(){return a()}}):(0,t.createVNode)(w(),{ref:"inputRef",type:"text",modelValue:o.isInput?o.searchKey:o.selectedLabel.join(","),placeholder:o.isInput&&o.selectedLabel.join(",")||o.placeholder,readonly:!o.isInput,selectReadonly:!0,disabled:o.isDisabled,behavior:o.behavior,size:o.size,withValidate:!1,onInput:o.handleInputChange,onEnter:o.handleInputEnter},{prefix:function(){var e,t;return null===(t=(e=o.$slots).prefix)||void 0===t?void 0:t.call(e)},suffix:function(){return a()}})])},content:function(){return(0,t.createVNode)("div",{class:"bk-select-content-wrapper",ref:"contentRef"},[o.filterable&&!o.inputSearch&&(0,t.createVNode)("div",{class:"bk-select-search-wrapper"},[(0,t.createVNode)(r.Search,{class:"icon-search",width:16,height:16},null),(0,t.withDirectives)((0,t.createVNode)("input",{ref:"searchRef",class:"bk-select-search-input",placeholder:o.searchPlaceholder,"onUpdate:modelValue":function(e){return o.searchKey=e}},null),[[t.vModelText,o.searchKey]])]),!o.isShowSelectContent&&(0,t.createVNode)("div",{class:"bk-select-empty"},[o.searchLoading&&(0,t.createVNode)(x(),{class:"mr5",theme:"primary",loading:!0,mode:"spin",size:"mini"},null),(0,t.createVNode)("span",null,[o.curContentText])]),(0,t.createVNode)("div",{class:"bk-select-content"},[(0,t.createVNode)("div",{class:"bk-select-dropdown",style:{maxHeight:"".concat(o.scrollHeight,"px")},onScroll:o.handleScroll},[(0,t.withDirectives)((0,t.createVNode)("ul",{class:"bk-select-options"},[o.isShowSelectAll&&(0,t.createVNode)("li",{class:"bk-select-option",onMouseenter:o.handleSelectedAllOptionMouseEnter,onClick:o.handleToggleAll},[o.selectAllText]),o.enableVirtualRender?(0,t.createVNode)(k(),{list:o.filterList,height:o.virtualHeight,lineHeight:32,ref:"virtualRenderRef"},{default:function(e){return e.data.map((function(e){return(0,t.createVNode)(c,{key:e[o.idKey],value:e[o.idKey],label:e[o.displayKey]},null)}))}}):o.filterList.map((function(e){return(0,t.createVNode)(c,{value:e[o.idKey],label:e[o.displayKey]},null)})),null===(n=(e=o.$slots).default)||void 0===n?void 0:n.call(e),o.scrollLoading&&(0,t.createVNode)("li",{class:"bk-select-options-loading"},[(0,t.createVNode)(x(),{class:"spinner mr5",theme:"primary",loading:!0,mode:"spin",size:"mini"},null),(0,t.createVNode)("span",null,[o.loadingText])])]),[[t.vShow,o.isShowSelectContent]])]),o.$slots.extension&&(0,t.createVNode)("div",{class:"bk-select-extension"},[o.$slots.extension()])])]);var e,n}})])}});var L=(0,e.withInstallProps)(I,{Option:c,Group:h});const E=L})(),v})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon"),require("lodash"),require("../directives"),require("../input"),require("../loading"),require("../popover2"),require("../virtual-render"),require("../tag"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon","lodash","../directives","../input","../loading","../popover2","../virtual-render","../tag"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon"),require("lodash"),require("../directives"),require("../input"),require("../loading"),require("../popover2"),require("../virtual-render"),require("../tag")):t(e["../shared"],e.vue,e["../icon"],e.lodash,e["../directives"],e["../input"],e["../loading"],e["../popover2"],e["../virtual-render"],e["../tag"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n,o,l,a,i,u,s)=>(()=>{var c={7162:(e,t,r)=>{e.exports=r(5047)},5047:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,l=Object.create(o.prototype),a=new C(n||[]);return l._invoke=function(e,t,r){var n=d;return function(o,l){if(n===v)throw new Error("Generator is already running");if(n===f){if("throw"===o)throw l;return I()}for(r.method=o,r.arg=l;;){var a=r.delegate;if(a){var i=V(a,r);if(i){if(i===h)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=v;var u=c(e,t,r);if("normal"===u.type){if(n=r.done?f:p,u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=f,r.method="throw",r.arg=u.arg)}}}(e,r,a),l}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d="suspendedStart",p="suspendedYield",v="executing",f="completed",h={};function g(){}function y(){}function b(){}var m={};u(m,l,(function(){return this}));var w=Object.getPrototypeOf,T=w&&w(w(N([])));T&&T!==r&&n.call(T,l)&&(m=T);var x=b.prototype=g.prototype=Object.create(m);function P(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,l,a,i){var u=c(e[o],e,l);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,i)}),(function(e){r("throw",e,a,i)})):t.resolve(d).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,i)}))}i(u.arg)}var o;this._invoke=function(e,n){function l(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(l,l):l()}}function V(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,V(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=c(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var l=o.arg;return l?l.done?(r[e.resultName]=l.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):l:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function k(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function N(e){if(e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:I}}function I(){return{value:t,done:!0}}return y.prototype=b,u(x,"constructor",b),u(b,"constructor",y),y.displayName=u(b,i,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,i,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},P(S.prototype),u(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,l){void 0===l&&(l=Promise);var a=new S(s(t,r,n,o),l);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),u(x,i,"Generator"),u(x,l,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=N,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},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 r=this;function o(n,o){return i.type="throw",i.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var l=this.tryEntries.length-1;l>=0;--l){var a=this.tryEntries[l],i=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var l=o;break}}l&&("break"===e||"continue"===e)&&l.tryLoc<=t&&t<=l.finallyLoc&&(l=null);var a=l?l.completion:{};return a.type=e,a.arg=t,l?(this.method="next",this.next=l.finallyLoc,h):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),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},4061:e=>{"use strict";e.exports=o},6870:e=>{"use strict";e.exports=r},8133:e=>{"use strict";e.exports=l},4870:e=>{"use strict";e.exports=a},6175:e=>{"use strict";e.exports=i},4212:t=>{"use strict";t.exports=e},7739:e=>{"use strict";e.exports=s},3511:e=>{"use strict";e.exports=u},467:e=>{"use strict";e.exports=n},748:e=>{"use strict";e.exports=t}},d={};function p(e){var t=d[e];if(void 0!==t)return t.exports;var r=d[e]={exports:{}};return c[e](r,r.exports,p),r.exports}p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var r in t)p.o(t,r)&&!p.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var v={};return(()=>{"use strict";p.r(v),p.d(v,{BkOption:()=>c,BkOptionGroup:()=>h,BkSelect:()=>L,default:()=>E});var e=p(4212),t=p(748),r=p(6870),n=p(7162),o=p.n(n);Object.create,Object.create;var l=Symbol("BkSelect"),a=Symbol("BkOptionGroup");function i(e){return{register:function(t,r){if(r){if(!e.value.has(t))return e.value.set(t,r);console.warn("repeat ".concat(t),r)}},unregister:function(t){e.value.delete(t)}}}function u(e,r){var n=this,l=function(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=e;return(0,t.customRef)((function(e,t){return{get:function(){return e(),o},set:function(e){clearTimeout(r),void 0===e||""===e?(o=e,t()):r=setTimeout((function(){o=e,t()}),n)}}}))}(""),a=(0,t.ref)(!1);return(0,t.watch)(l,(function(){return t=n,i=void 0,u=void 0,s=o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a.value=!0,t.next=4,e(l.value);case 4:a.value=!1,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:return t.prev=10,null==r||r(),t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[0,7,10,13]])})),new(u||(u=Promise))((function(e,r){function n(e){try{l(s.next(e))}catch(e){r(e)}}function o(e){try{l(s.throw(e))}catch(e){r(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof u?r:new u((function(e){e(r)}))).then(n,o)}l((s=s.apply(t,i||[])).next())}));var t,i,u,s})),{searchKey:l,searchLoading:a}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?String(e).trim().toLowerCase():e}const c=(0,t.defineComponent)({name:"Option",props:{value:e.PropTypes.any,label:e.PropTypes.string.def(""),disabled:e.PropTypes.bool.def(!1)},setup:function(e){var r=(0,t.getCurrentInstance)().proxy,n=(0,t.reactive)({visible:!0}),o=(0,t.toRefs)(e),i=o.disabled,u=o.value,s=(0,t.inject)(l,null),c=(0,t.inject)(a,null),d=(0,t.computed)((function(){var e;return null===(e=null==s?void 0:s.selected)||void 0===e?void 0:e.some((function(e){return e.value===u.value}))})),p=(0,t.computed)((function(){return null==s?void 0:s.multiple})),v=(0,t.computed)((function(){return(null==s?void 0:s.activeOptionValue)===u.value})),f=(0,t.computed)((function(){return null==s?void 0:s.showSelectedIcon}));return(0,t.onBeforeMount)((function(){null==s||s.register(u.value,r),null==c||c.register(u.value,r)})),(0,t.onBeforeUnmount)((function(){null==s||s.unregister(u.value),null==c||c.unregister(u.value)})),Object.assign(Object.assign({},(0,t.toRefs)(n)),{selected:d,multiple:p,isHover:v,showSelectedIcon:f,handleOptionClick:function(){i.value||null==s||s.handleOptionSelected(r)},handleMouseEnter:function(){s.activeOptionValue=u.value}})},render:function(){var n,o,l,a=(0,e.classes)({"is-selected":this.selected,"is-disabled":this.disabled,"is-multiple":this.multiple,"is-hover":this.isHover,"bk-select-option":!0});return(0,t.withDirectives)((0,t.createVNode)("li",{class:a,onClick:this.handleOptionClick,onMouseenter:this.handleMouseEnter},[null!==(l=null===(o=(n=this.$slots).default)||void 0===o?void 0:o.call(n))&&void 0!==l?l:(0,t.createVNode)("span",{class:"bk-select-option-item",title:this.label},[this.label]),this.multiple&&this.selected&&this.showSelectedIcon&&(0,t.createVNode)(r.Done,{class:"bk-select-selected-icon",width:22,height:22},null)]),[[t.vShow,this.visible]])}});function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const h=(0,t.defineComponent)({name:"Group",props:{label:e.PropTypes.string.def(""),disabled:e.PropTypes.bool.def(!1),collapsible:e.PropTypes.bool.def(!1),collapse:e.PropTypes.bool.def(!1)},setup:function(e,r){var n=r.emit,o=(0,t.getCurrentInstance)(),u=o.proxy,s=(0,t.inject)(l,null),c=(0,t.reactive)({groupCollapse:e.collapse,visible:!0}),d=(0,t.ref)(new Map),p=i(d),v=p.register,h=p.unregister,g=(0,t.computed)((function(){return"".concat(e.label," (").concat(f(d.value.values()).filter((function(e){return e.visible})).length,")")}));return(0,t.provide)(a,(0,t.reactive)(Object.assign(Object.assign({},(0,t.toRefs)(e)),{register:v,unregister:h,groupCollapse:(0,t.toRef)(c,"groupCollapse")}))),(0,t.onBeforeMount)((function(){null==s||s.registerGroup(o.uid,u)})),(0,t.onBeforeUnmount)((function(){null==s||s.unregisterGroup(o.uid)})),Object.assign(Object.assign({},(0,t.toRefs)(c)),{groupLabel:g,handleToggleCollapse:function(){e.collapsible&&!e.disabled&&(c.groupCollapse=!c.groupCollapse,n("update:collapse",c.groupCollapse))}})},render:function(){var n,o,l=(0,e.classes)({"bk-option-group":!0,collapsible:this.collapsible,disabled:this.disabled}),a=(0,e.classes)({"bk-option-group-label":!0,collapsible:this.collapsible}),i=(0,e.classes)({"default-group-label-icon":!0,collapse:this.groupCollapse});return(0,t.withDirectives)((0,t.createVNode)("ul",{class:l},[(0,t.createVNode)("li",{class:a,onClick:this.handleToggleCollapse},[this.$slots.label?this.$slots.label():(0,t.createVNode)("span",{class:"default-group-label"},[this.collapsible&&(0,t.createVNode)(r.AngleUpFill,{class:i},null),(0,t.createVNode)("span",{class:"default-group-label-title"},[this.groupLabel])])]),(0,t.withDirectives)((0,t.createVNode)("ul",{class:"bk-option-group-content"},[null===(o=(n=this.$slots).default)||void 0===o?void 0:o.call(n)]),[[t.vShow,!this.groupCollapse]])]),[[t.vShow,this.visible]])}});function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=p(467),b=p(4061),m=p(8133),w=p.n(m),T=p(4870),x=p.n(T),P=p(6175),S=p.n(P),V=p(3511),k=p.n(V),O=p(7739),C=p.n(O);const N=(0,t.defineComponent)({name:"SelectTagInput",props:{selected:{type:Array,default:function(){return[]}},tagTheme:e.PropTypes.theme(["success","info","warning","danger"]).def(""),placeholder:e.PropTypes.string.def(""),filterable:e.PropTypes.bool.def(!1),allowCreate:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),modelValue:e.PropTypes.any,collapseTags:e.PropTypes.bool.def(!1)},emits:["update:modelValue","remove","enter"],setup:function(e,r){var n=r.emit,o=(0,t.getCurrentInstance)().proxy,a=(0,t.inject)(l,null),i=(0,t.toRefs)(e),u=i.modelValue,s=i.collapseTags,c=i.selected,d=(0,t.ref)(u.value),p=(0,t.ref)(),v=(0,t.ref)(null);(0,t.watch)(u,(function(){d.value=u.value})),(0,t.watch)([c,s],(function(){h()}),{flush:"post"});var h=function(){s.value&&(v.value=null,setTimeout((function(){var e=function(e){var t=f(o.$el.querySelectorAll(".bk-tag"));return t}(),t=e.findIndex((function(t,r){return!!r&&e[r-1].offsetTop!==t.offsetTop}));v.value=t>0?t:null})))};return{select:a,overflowTagIndex:v,value:d,inputRef:p,handleRemoveTag:function(e){n("remove",e)},focus:function(){var e;null===(e=p.value)||void 0===e||e.focus()},handleInput:function(e){n("update:modelValue",e.target.value)},handleKeydown:function(e){"Enter"===e.code&&n("enter",e.target.value,e)}}},render:function(){var r,n,o,l,a,i,u,s=this,c=(0,e.classes)({"bk-select-tag":!0,"bk-select-tag--default":!0,"is-disabled":this.disabled,"collapse-tag":this.collapseTags}),d=(0,e.classes)({"bk-select-tag-wrapper":!0}),p={display:this.selected.length&&!this.filterable?"none":""};return(0,t.createVNode)("div",{class:c},[null===(n=null===(r=this.$slots)||void 0===r?void 0:r.prefix)||void 0===n?void 0:n.call(r),(0,t.createVNode)("span",{class:d},[null!==(a=null===(l=(o=this.$slots).default)||void 0===l?void 0:l.call(o))&&void 0!==a?a:this.selected.map((function(e,r){var n;return(0,t.createVNode)(C(),{closable:!0,theme:s.tagTheme,style:{display:s.collapseTags&&s.overflowTagIndex&&r>=s.overflowTagIndex?"none":""},onClose:function(){return s.handleRemoveTag(e.value)}},{default:function(){return[null===(n=s.select)||void 0===n?void 0:n.handleGetLabelByValue(e.value)]}})})),!!this.overflowTagIndex&&this.collapseTags&&(0,t.createVNode)(C(),{class:"bk-select-overflow-tag"},{default:function(){return[(0,t.createTextVNode)("+"),s.selected.length-s.overflowTagIndex]}})]),(0,t.createVNode)("input",{class:"bk-select-tag-input",ref:"inputRef",type:"text",style:p,placeholder:this.selected.length?"":this.placeholder,readonly:!this.filterable,disabled:this.disabled,value:this.filterable?this.value:"",onInput:this.handleInput,onKeydown:this.handleKeydown},null),null===(u=null===(i=this.$slots)||void 0===i?void 0:i.suffix)||void 0===u?void 0:u.call(i)])}}),I=(0,t.defineComponent)({name:"Select",directives:{clickoutside:b.clickoutside},props:{modelValue:e.PropTypes.any,multiple:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),size:e.PropTypes.size().def("default"),clearable:e.PropTypes.bool.def(!0),loading:e.PropTypes.bool.def(!1),filterable:e.PropTypes.bool.def(!1),remoteMethod:e.PropTypes.func,scrollHeight:e.PropTypes.number.def(200),showSelectAll:e.PropTypes.bool.def(!1),popoverMinWidth:e.PropTypes.number.def(0),showOnInit:e.PropTypes.bool.def(!1),multipleMode:e.PropTypes.oneOf(["default","tag"]).def("default"),tagTheme:e.PropTypes.theme(["success","info","warning","danger"]).def(""),behavior:e.PropTypes.oneOf(["normal","simplicity"]).def("normal"),collapseTags:e.PropTypes.bool.def(!1),autoHeight:e.PropTypes.bool.def(!0),noDataText:e.PropTypes.string.def("无数据"),noMatchText:e.PropTypes.string.def("无匹配数据"),loadingText:e.PropTypes.string.def("加载中..."),placeholder:e.PropTypes.string.def("请选择"),searchPlaceholder:e.PropTypes.string.def("请输入关键字"),selectAllText:e.PropTypes.string.def("全部"),scrollLoading:e.PropTypes.bool.def(!1),allowCreate:e.PropTypes.bool.def(!1),popoverOptions:e.PropTypes.object.def({}),customContent:e.PropTypes.bool.def(!1),list:e.PropTypes.array.def([]),idKey:e.PropTypes.string.def("value"),displayKey:e.PropTypes.string.def("label"),withValidate:e.PropTypes.bool.def(!0),showSelectedIcon:e.PropTypes.bool.def(!0),inputSearch:e.PropTypes.bool.def(!0),enableVirtualRender:e.PropTypes.bool.def(!1),allowEmptyValues:e.PropTypes.array.def([])},emits:["update:modelValue","change","toggle","clear","scroll-end","focus","blur"],setup:function(r,n){var o=n.emit,a=(0,t.toRefs)(r),c=a.modelValue,d=a.disabled,p=a.filterable,v=a.multiple,h=a.remoteMethod,g=a.loading,b=a.loadingText,m=a.noDataText,w=a.noMatchText,T=a.popoverMinWidth,x=a.showOnInit,P=a.multipleMode,S=a.allowCreate,V=a.customContent,k=a.showSelectedIcon,O=a.inputSearch,C=a.enableVirtualRender,N=a.showSelectAll,I=a.scrollHeight,L=a.list,E=a.displayKey,j=a.collapseTags,R=a.autoHeight,M=a.popoverOptions,A=a.allowEmptyValues,H=(0,e.useFormItem)(),q=(0,t.ref)(),K=(0,t.ref)(),G=(0,t.ref)(),_=(0,t.ref)(),D=(0,t.ref)(),$=(0,t.ref)(),B=(0,t.ref)(),F=(0,t.ref)(new Map),z=(0,t.computed)((function(){return f(F.value.values())})),U=(0,t.ref)(new Map),W=(0,t.ref)([]),Y=(0,t.computed)((function(){return W.value.reduce((function(e,t){return e[t.value]=t.label,e}),{})})),J=(0,t.ref)();(0,t.watch)(c,(function(){var e;Ke(),r.withValidate&&(null===(e=null==H?void 0:H.validate)||void 0===e||e.call(H,"change"))}),{deep:!0}),(0,t.watch)(W,(function(){var e;null===(e=B.value)||void 0===e||e.updatePopover(null,ce.value)}));var Q=(0,t.computed)((function(){return oe.value?L.value:L.value.filter((function(e){var t;return null===(t=s(String(e[E.value])))||void 0===t?void 0:t.includes(s(je.value))}))})),X=(0,t.computed)((function(){return d.value||g.value})),Z=(0,t.computed)((function(){return W.value.map((function(e){var t,r;return(null===(r=null===(t=F.value)||void 0===t?void 0:t.get(e.value))||void 0===r?void 0:r.label)||e.label}))})),ee=(0,t.computed)((function(){var e=z.value.reduce((function(e,t){return t.disabled||e.push(t.value),e}),[]);return e.length<=W.value.length&&e.every((function(e){return W.value.some((function(t){return t.value===e}))}))})),te=(0,t.computed)((function(){return!!U.value.size})),re=(0,t.computed)((function(){return!z.value.length})),ne=(0,t.computed)((function(){return z.value.length&&z.value.every((function(e){return!e.visible}))})),oe=(0,t.computed)((function(){return p.value&&"function"==typeof h.value})),le=(0,t.computed)((function(){return!(Re.value||re.value||ne.value)||V.value})),ae=(0,t.computed)((function(){return v.value&&N.value&&(!je.value||!p.value)})),ie=(0,t.computed)((function(){return I.value-12-(ae.value?32:0)})),ue=(0,t.computed)((function(){return Re.value?b.value:re.value?m.value:ne.value?w.value:""})),se=(0,t.computed)((function(){return R.value?j.value&&!ke.value:j.value})),ce=(0,t.computed)((function(){return(0,y.merge)({theme:"light bk-select-popover",trigger:"manual",width:Ve.value,arrow:!1,placement:"bottom-start",isShow:ke.value,reference:D.value,offset:6},M.value)})),de=i(F),pe=de.register,ve=de.unregister,fe=i(U),he=fe.register,ge=fe.unregister,ye=function(){var e=(0,t.ref)(!1);return{isHover:e,setHover:function(){e.value=!0},cancelHover:function(){e.value=!1}}}(),be=ye.isHover,me=ye.setHover,we=ye.cancelHover,Te=(0,t.ref)(!1),xe=function(){Te.value||(Te.value=!0,o("focus"))},Pe=function(){Te.value&&(Te.value=!1,o("blur"))},Se=function(r,n){var o=r.popoverMinWidth,l=null,a=(0,t.ref)("auto"),i=(0,t.ref)(!1),u=function(){var e;a.value=Math.max(null===(e=n.value)||void 0===e?void 0:e.offsetWidth,o)};return(0,t.onMounted)((function(){n.value&&(l=(0,e.observerResize)(n.value,u,60,!0)).start()})),(0,t.onBeforeUnmount)((function(){null==l||l.stop(),l=null})),{isPopoverShow:i,popperWidth:a,togglePopover:function(){i.value=!i.value},hidePopover:function(){i.value=!1},showPopover:function(){i.value=!0}}}({popoverMinWidth:T.value},K),Ve=Se.popperWidth,ke=Se.isPopoverShow,Oe=Se.hidePopover,Ce=Se.showPopover,Ne=Se.togglePopover,Ie=(0,t.computed)((function(){return(p.value&&O.value||S.value)&&ke.value}));(0,t.watch)(ke,(function(e){e?(He(),Le()):je.value=""}));var Le=function(){var e,t=W.value[0],r=F.value.get(null==t?void 0:t.value);r&&!r.disabled&&r.visible?J.value=null==t?void 0:t.value:J.value=null===(e=z.value.find((function(e){return!e.disabled&&e.visible})))||void 0===e?void 0:e.value},Ee=u(oe.value?h.value:function(e){p.value&&z.value.forEach((function(t){var r;t.visible=null===(r=s(String(t.label)))||void 0===r?void 0:r.includes(s(e))}))},Le),je=Ee.searchKey,Re=Ee.searchLoading,Me=function(e){e!==c.value&&(o("change",e,c.value),o("update:modelValue",e,c.value))},Ae=function(e){if(!X.value&&e){if(v.value){var t=W.value.findIndex((function(t){return t.value===e.value}));t>-1?W.value.splice(t,1):W.value.push({value:e.value,label:e.label||e.value}),Me(W.value.map((function(e){return e.value})))}else W.value=[{label:e.label||e.value,value:e.value}],Me(e.value),Oe();He()}},He=function(){setTimeout((function(){var e,t,r;O.value||S.value?"tag"===P.value?null===(t=D.value)||void 0===t||t.focus():null===(r=q.value)||void 0===r||r.focus():null===(e=_.value)||void 0===e||e.focus()}),0)},qe=function(e){var t,r;return(null===(r=null===(t=F.value)||void 0===t?void 0:t.get(e))||void 0===r?void 0:r.label)||Y.value[e]||e},Ke=function(){Array.isArray(c.value)?W.value=f(c.value.map((function(e){return{value:e,label:qe(e)}}))):c.value||A.value.includes(c.value)?W.value=[{value:c.value,label:qe(c.value)}]:W.value=[]},Ge=function(e){var t,r,n,o;if((null===(t=K.value)||void 0===t?void 0:t.contains(e.target))||(null===(r=G.value)||void 0===r?void 0:r.contains(e.target))||V.value){var l=z.value.filter((function(e){return!e.disabled&&e.visible})),a=l.findIndex((function(e){return e.value===J.value}));if(l.length&&-1!==a)switch(e.code){case"ArrowDown":e.preventDefault();var i=a>=l.length-1?0:a+1;J.value=null===(n=l[i])||void 0===n?void 0:n.value;break;case"ArrowUp":e.preventDefault();var u=0===a?l.length-1:a-1;J.value=null===(o=l[u])||void 0===o?void 0:o.value;break;case"Backspace":if(!v.value||!W.value.length||je.value.length||e.target===_.value)return;W.value.pop(),Me(W.value.map((function(e){return e.value})));break;case"Enter":if(ke.value){var s=F.value.get(J.value);Ae(s)}else ke.value=!0}}};return(0,t.provide)(l,(0,t.reactive)({multiple:v,selected:W,activeOptionValue:J,showSelectedIcon:k,register:pe,unregister:ve,registerGroup:he,unregisterGroup:ge,handleOptionSelected:Ae,handleGetLabelByValue:qe})),(0,t.onMounted)((function(){Ke(),setTimeout((function(){x.value&&Ce()})),(0,e.on)(document,"keydown",Ge)})),(0,t.onBeforeMount)((function(){(0,e.off)(document,"keydown",Ge)})),{selected:W,isInput:Ie,options:z,isDisabled:X,selectedLabel:Z,isPopoverShow:ke,isHover:be,popperWidth:Ve,inputRef:q,triggerRef:K,contentRef:G,searchRef:_,selectTagInputRef:D,virtualRenderRef:$,popoverRef:B,searchLoading:Re,isOptionsEmpty:re,isSearchEmpty:ne,isFocus:Te,isShowSelectContent:le,curContentText:ue,isGroup:te,searchKey:je,isShowSelectAll:ae,virtualHeight:ie,filterList:Q,isCollapseTags:se,popoverConfig:ce,focusInput:He,setHover:me,cancelHover:we,handleFocus:xe,handleBlur:Pe,handleTogglePopover:function(){X.value||(xe(),Ne(),o("toggle",ke.value))},handleClear:function(e){e.stopPropagation(),W.value=[],Me(v.value?[]:""),o("clear",v.value?[]:""),Oe()},hidePopover:Oe,showPopover:Ce,handleToggleAll:function(){ee.value?W.value=[]:z.value.forEach((function(e){e.disabled||W.value.find((function(t){return t.value===e.value}))||W.value.push({value:e.value,label:e.label||e.value})})),Me(W.value.map((function(e){return e.value}))),He()},handleOptionSelected:Ae,handleClickOutside:function(e){var t,r=e.event.target;(null===(t=K.value)||void 0===t?void 0:t.contains(r))||K.value===r||(Oe(),Pe())},handleScroll:function(e){var t=e.target;t.scrollTop+t.clientHeight===t.scrollHeight&&o("scroll-end")},handleDeleteTag:function(e){if(!X.value){var t=W.value.findIndex((function(t){return t.value===e}));t>-1&&(W.value.splice(t,1),Me(W.value.map((function(e){return e.value}))))}},handleInputChange:function(e){p.value&&(je.value=e)},handleInputEnter:function(e,t){var r=String(e);!S.value||!r||p.value&&z.value.find((function(e){return s(String(e.label))===s(r)}))||F.value.get(r)||(t.stopPropagation(),v.value?(W.value.push({value:r,label:r}),Me(W.value.map((function(e){return e.value})))):(W.value=[{value:r,label:r}],Me(r),Oe()),je.value="")},handleKeydown:Ge,handleSelectedAllOptionMouseEnter:function(){J.value=""},handlePopoverShow:function(){setTimeout((function(){var e,t;C.value&&(null===(t=null===(e=$.value)||void 0===e?void 0:e.reset)||void 0===t||t.call(e))}))}}},render:function(){var n,o=this,l=(0,e.classes)((g(n={"bk-select":!0,"popover-show":this.isPopoverShow,"is-disabled":this.isDisabled,"is-focus":this.isFocus,"is-filterable":this.filterable},this.size,!0),g(n,this.behavior,!0),n)),a=function(){return o.loading?(0,t.createVNode)(x(),{loading:!0,theme:"primary",class:"spinner",mode:"spin",size:"mini"},null):o.clearable&&o.isHover&&o.selected.length&&!o.isDisabled?(0,t.createVNode)(r.Close,{class:"clear-icon",onClick:o.handleClear},null):(0,t.createVNode)(r.AngleUp,{class:"angle-up"},null)};return(0,t.createVNode)("div",{class:l},[(0,t.createVNode)(S(),(0,t.mergeProps)(this.popoverConfig,{onClickoutside:this.handleClickOutside,onAfterShow:this.handlePopoverShow,ref:"popoverRef"}),{default:function(){return(0,t.createVNode)("div",{class:"bk-select-trigger",style:{height:o.autoHeight&&o.collapseTags?"32px":""},ref:"triggerRef",onClick:o.handleTogglePopover,onMouseenter:o.setHover,onMouseleave:o.cancelHover},["tag"===o.multipleMode?(0,t.createVNode)(N,{ref:"selectTagInputRef",modelValue:o.searchKey,"onUpdate:modelValue":function(e){return o.searchKey=e},selected:o.selected,tagTheme:o.tagTheme,placeholder:o.placeholder,filterable:o.isInput,disabled:o.isDisabled,onRemove:o.handleDeleteTag,collapseTags:o.isCollapseTags,onEnter:o.handleInputEnter},{prefix:function(){var e,t;return null===(t=(e=o.$slots).prefix)||void 0===t?void 0:t.call(e)},default:o.$slots.tag&&function(){return o.$slots.tag({selected:o.selected})},suffix:function(){return a()}}):(0,t.createVNode)(w(),{ref:"inputRef",type:"text",modelValue:o.isInput?o.searchKey:o.selectedLabel.join(","),placeholder:o.isInput&&o.selectedLabel.join(",")||o.placeholder,readonly:!o.isInput,selectReadonly:!0,disabled:o.isDisabled,behavior:o.behavior,size:o.size,withValidate:!1,onInput:o.handleInputChange,onEnter:o.handleInputEnter},{prefix:function(){var e,t;return null===(t=(e=o.$slots).prefix)||void 0===t?void 0:t.call(e)},suffix:function(){return a()}})])},content:function(){return(0,t.createVNode)("div",{class:"bk-select-content-wrapper",ref:"contentRef"},[o.filterable&&!o.inputSearch&&(0,t.createVNode)("div",{class:"bk-select-search-wrapper"},[(0,t.createVNode)(r.Search,{class:"icon-search",width:16,height:16},null),(0,t.withDirectives)((0,t.createVNode)("input",{ref:"searchRef",class:"bk-select-search-input",placeholder:o.searchPlaceholder,"onUpdate:modelValue":function(e){return o.searchKey=e}},null),[[t.vModelText,o.searchKey]])]),!o.isShowSelectContent&&(0,t.createVNode)("div",{class:"bk-select-empty"},[o.searchLoading&&(0,t.createVNode)(x(),{class:"mr5",theme:"primary",loading:!0,mode:"spin",size:"mini"},null),(0,t.createVNode)("span",null,[o.curContentText])]),(0,t.createVNode)("div",{class:"bk-select-content"},[(0,t.createVNode)("div",{class:"bk-select-dropdown",style:{maxHeight:"".concat(o.scrollHeight,"px")},onScroll:o.handleScroll},[(0,t.withDirectives)((0,t.createVNode)("ul",{class:"bk-select-options"},[o.isShowSelectAll&&(0,t.createVNode)("li",{class:"bk-select-option",onMouseenter:o.handleSelectedAllOptionMouseEnter,onClick:o.handleToggleAll},[o.selectAllText]),o.enableVirtualRender?(0,t.createVNode)(k(),{list:o.filterList,height:o.virtualHeight,lineHeight:32,ref:"virtualRenderRef"},{default:function(e){return e.data.map((function(e){return(0,t.createVNode)(c,{key:e[o.idKey],value:e[o.idKey],label:e[o.displayKey]},null)}))}}):o.filterList.map((function(e){return(0,t.createVNode)(c,{value:e[o.idKey],label:e[o.displayKey]},null)})),null===(n=(e=o.$slots).default)||void 0===n?void 0:n.call(e),o.scrollLoading&&(0,t.createVNode)("li",{class:"bk-select-options-loading"},[(0,t.createVNode)(x(),{class:"spinner mr5",theme:"primary",loading:!0,mode:"spin",size:"mini"},null),(0,t.createVNode)("span",null,[o.loadingText])])]),[[t.vShow,o.isShowSelectContent]])]),o.$slots.extension&&(0,t.createVNode)("div",{class:"bk-select-extension"},[o.$slots.extension()])])]);var e,n}})])}});var L=(0,e.withInstallProps)(I,{Option:c,Group:h});const E=L})(),v})()));
@@ -473,6 +473,7 @@ declare const _default: import("vue").DefineComponent<{
473
473
  default: any;
474
474
  };
475
475
  }>>>>;
476
+ focusInput: () => void;
476
477
  setHover: () => void;
477
478
  cancelHover: () => void;
478
479
  handleFocus: () => void;
@@ -12,11 +12,11 @@ declare const BkSideslider: {
12
12
  height: string | number;
13
13
  isShow: boolean;
14
14
  draggable: boolean;
15
+ transfer: boolean;
15
16
  size: string;
16
17
  direction: string;
17
18
  maxHeight: string;
18
19
  renderDirective: string;
19
- transfer: boolean;
20
20
  dialogType: string;
21
21
  infoType: string;
22
22
  quickClose: boolean;
@@ -127,7 +127,7 @@ declare const BkSideslider: {
127
127
  onShown?: (...args: any[]) => any;
128
128
  onClosed?: (...args: any[]) => any;
129
129
  "onAnimation-end"?: (...args: any[]) => any;
130
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "multiInstance" | "zIndex" | "showMask" | "extCls" | "width" | "height" | "isShow" | "draggable" | "size" | "direction" | "maxHeight" | "renderDirective" | "transfer" | "dialogType" | "infoType" | "quickClose" | "scrollable" | "closeIcon" | "escClose" | "fullscreen" | "animateType">;
130
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "multiInstance" | "zIndex" | "showMask" | "extCls" | "width" | "height" | "isShow" | "draggable" | "transfer" | "size" | "direction" | "maxHeight" | "renderDirective" | "dialogType" | "infoType" | "quickClose" | "scrollable" | "closeIcon" | "escClose" | "fullscreen" | "animateType">;
131
131
  $attrs: {
132
132
  [x: string]: unknown;
133
133
  };
@@ -253,11 +253,11 @@ declare const BkSideslider: {
253
253
  height: string | number;
254
254
  isShow: boolean;
255
255
  draggable: boolean;
256
+ transfer: boolean;
256
257
  size: string;
257
258
  direction: string;
258
259
  maxHeight: string;
259
260
  renderDirective: string;
260
- transfer: boolean;
261
261
  dialogType: string;
262
262
  infoType: string;
263
263
  quickClose: boolean;
@@ -504,11 +504,11 @@ declare const BkSideslider: {
504
504
  height: string | number;
505
505
  isShow: boolean;
506
506
  draggable: boolean;
507
+ transfer: boolean;
507
508
  size: string;
508
509
  direction: string;
509
510
  maxHeight: string;
510
511
  renderDirective: string;
511
- transfer: boolean;
512
512
  dialogType: string;
513
513
  infoType: string;
514
514
  quickClose: boolean;
@@ -206,11 +206,11 @@ declare const _default: import("vue").DefineComponent<{
206
206
  height: string | number;
207
207
  isShow: boolean;
208
208
  draggable: boolean;
209
+ transfer: boolean;
209
210
  size: string;
210
211
  direction: string;
211
212
  maxHeight: string;
212
213
  renderDirective: string;
213
- transfer: boolean;
214
214
  dialogType: string;
215
215
  infoType: string;
216
216
  quickClose: boolean;
@@ -9,6 +9,11 @@ declare const _default: import("vue").DefineComponent<{
9
9
  parentSetting: import("vue-types").VueTypeDef<boolean | IOverflowTooltip> & {
10
10
  default: boolean | (() => IOverflowTooltip);
11
11
  };
12
+ title: import("vue-types").VueTypeValidableDef<string> & {
13
+ default: string;
14
+ } & {
15
+ default: string;
16
+ };
12
17
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
18
  column: import("vue-types").VueTypeValidableDef<any> & {
14
19
  default: any;
@@ -19,7 +24,13 @@ declare const _default: import("vue").DefineComponent<{
19
24
  parentSetting: import("vue-types").VueTypeDef<boolean | IOverflowTooltip> & {
20
25
  default: boolean | (() => IOverflowTooltip);
21
26
  };
27
+ title: import("vue-types").VueTypeValidableDef<string> & {
28
+ default: string;
29
+ } & {
30
+ default: string;
31
+ };
22
32
  }>>, {
33
+ title: string;
23
34
  column: any;
24
35
  row: any;
25
36
  parentSetting: boolean | IOverflowTooltip;
@@ -105,3 +105,7 @@ export declare const enum SORT_OPTION {
105
105
  CUSTOM = "custom"
106
106
  }
107
107
  export declare const SORT_OPTIONS: SORT_OPTION[];
108
+ /**
109
+ * 列宽最小设置
110
+ */
111
+ export declare const COL_MIN_WIDTH = 20;
@@ -7,7 +7,7 @@ declare const BkTable: {
7
7
  height: string | number;
8
8
  maxHeight: string | number;
9
9
  minHeight: string | number;
10
- border: string[];
10
+ border: string | string[];
11
11
  columns: import("./props").Column[];
12
12
  headHeight: number;
13
13
  pagination: boolean | {
@@ -75,8 +75,8 @@ declare const BkTable: {
75
75
  } & {
76
76
  default: boolean;
77
77
  };
78
- border: import("vue-types").VueTypeDef<string[]> & {
79
- default: () => string[];
78
+ border: import("vue-types").VueTypeDef<string | string[]> & {
79
+ default: string | (() => string[]);
80
80
  };
81
81
  pagination: import("vue-types").VueTypeDef<boolean | {
82
82
  [key: string]: any;
@@ -220,8 +220,8 @@ declare const BkTable: {
220
220
  } & {
221
221
  default: boolean;
222
222
  };
223
- border: import("vue-types").VueTypeDef<string[]> & {
224
- default: () => string[];
223
+ border: import("vue-types").VueTypeDef<string | string[]> & {
224
+ default: string | (() => string[]);
225
225
  };
226
226
  pagination: import("vue-types").VueTypeDef<boolean | {
227
227
  [key: string]: any;
@@ -332,7 +332,7 @@ declare const BkTable: {
332
332
  height: string | number;
333
333
  maxHeight: string | number;
334
334
  minHeight: string | number;
335
- border: string[];
335
+ border: string | string[];
336
336
  columns: import("./props").Column[];
337
337
  headHeight: number;
338
338
  pagination: boolean | {
@@ -420,8 +420,8 @@ declare const BkTable: {
420
420
  } & {
421
421
  default: boolean;
422
422
  };
423
- border: import("vue-types").VueTypeDef<string[]> & {
424
- default: () => string[];
423
+ border: import("vue-types").VueTypeDef<string | string[]> & {
424
+ default: string | (() => string[]);
425
425
  };
426
426
  pagination: import("vue-types").VueTypeDef<boolean | {
427
427
  [key: string]: any;
@@ -555,8 +555,8 @@ declare const BkTable: {
555
555
  } & {
556
556
  default: boolean;
557
557
  };
558
- border: import("vue-types").VueTypeDef<string[]> & {
559
- default: () => string[];
558
+ border: import("vue-types").VueTypeDef<string | string[]> & {
559
+ default: string | (() => string[]);
560
560
  };
561
561
  pagination: import("vue-types").VueTypeDef<boolean | {
562
562
  [key: string]: any;
@@ -667,7 +667,7 @@ declare const BkTable: {
667
667
  height: string | number;
668
668
  maxHeight: string | number;
669
669
  minHeight: string | number;
670
- border: string[];
670
+ border: string | string[];
671
671
  columns: import("./props").Column[];
672
672
  headHeight: number;
673
673
  pagination: boolean | {