bkui-vue 0.0.1-beta.65 → 0.0.1-beta.68

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 (44) hide show
  1. package/dist/index.cjs.js +30 -30
  2. package/dist/index.esm.js +915 -240
  3. package/dist/index.umd.js +29 -29
  4. package/dist/style.css +1 -1
  5. package/lib/button/button.css +29 -17
  6. package/lib/button/button.less +11 -8
  7. package/lib/button/button.variable.css +29 -17
  8. package/lib/button/index.js +1 -1
  9. package/lib/code-diff/index.js +1 -1
  10. package/lib/components.d.ts +1 -0
  11. package/lib/components.js +1 -1
  12. package/lib/date-picker/date-picker.d.ts +1 -1
  13. package/lib/date-picker/index.d.ts +4 -4
  14. package/lib/dropdown/index.js +1 -1
  15. package/lib/form/form-item.d.ts +11 -1
  16. package/lib/form/form.css +8 -0
  17. package/lib/form/form.less +8 -1
  18. package/lib/form/form.variable.css +8 -0
  19. package/lib/form/index.d.ts +8 -1
  20. package/lib/form/index.js +1 -1
  21. package/lib/form/type.d.ts +3 -2
  22. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  23. package/lib/icon/{folder.js → exclamation-circle-shape.js} +1 -1
  24. package/lib/icon/funnel.js +1 -0
  25. package/lib/icon/index.d.ts +3 -2
  26. package/lib/icon/index.js +1 -1
  27. package/lib/input/index.d.ts +137 -47
  28. package/lib/input/index.js +1 -1
  29. package/lib/input/input.d.ts +67 -12
  30. package/lib/select/index.d.ts +4 -4
  31. package/lib/select/select.d.ts +1 -1
  32. package/lib/shared/index.d.ts +1 -0
  33. package/lib/shared/index.js +1 -1
  34. package/lib/shared/token.d.ts +2 -0
  35. package/lib/shared/vue-types.d.ts +4 -0
  36. package/lib/slider/index.js +1 -1
  37. package/lib/tag-input/tag-input.css +1 -0
  38. package/lib/tag-input/tag-input.less +1 -0
  39. package/lib/tag-input/tag-input.variable.css +1 -0
  40. package/lib/tree/constant.d.ts +9 -4
  41. package/lib/tree/index.d.ts +23 -15
  42. package/lib/tree/index.js +1 -1
  43. package/lib/tree/tree.d.ts +8 -5
  44. package/package.json +1 -1
@@ -98,17 +98,20 @@ declare const BkInput: {
98
98
  default: number;
99
99
  };
100
100
  }>> & {
101
- onChange?: (...args: any[]) => any;
102
- onPaste?: (...args: any[]) => any;
103
- onFocus?: (...args: any[]) => any;
104
- onBlur?: (...args: any[]) => any;
105
- onInput?: (...args: any[]) => any;
106
- onKeydown?: (...args: any[]) => any;
107
- onKeypress?: (...args: any[]) => any;
108
- onKeyup?: (...args: any[]) => any;
109
- onEnter?: (...args: any[]) => any;
110
- onClear?: (...args: any[]) => any;
111
- "onUpdate:modelValue"?: (...args: any[]) => any;
101
+ onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
102
+ onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
103
+ onCompositionend?: (evt: CompositionEvent) => any;
104
+ onCompositionstart?: (evt: CompositionEvent) => any;
105
+ onCompositionupdate?: (evt: CompositionEvent) => any;
106
+ onFocus?: (evt: FocusEvent) => any;
107
+ onBlur?: (evt: FocusEvent) => any;
108
+ onInput?: (value: string | number, evt?: Event | KeyboardEvent) => any;
109
+ onKeydown?: (value: string | number, evt?: Event | KeyboardEvent) => any;
110
+ onKeypress?: (value: string | number, evt?: Event | KeyboardEvent) => any;
111
+ onKeyup?: (value: string | number, evt?: Event | KeyboardEvent) => any;
112
+ onEnter?: (value: string | number, evt?: Event | KeyboardEvent) => any;
113
+ "onUpdate:modelValue"?: (value: string | number, evt?: Event | KeyboardEvent) => any;
114
+ onClear?: () => any;
112
115
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "prefix" | "type" | "placeholder" | "step" | "disabled" | "clearable" | "readonly" | "prefixIcon" | "suffixIcon" | "suffix" | "max" | "min" | "maxlength" | "behavior" | "showWordLimit" | "showControl" | "showClearOnlyHover" | "precision" | "modelValue" | "rows">;
113
116
  $attrs: {
114
117
  [x: string]: unknown;
@@ -121,7 +124,7 @@ declare const BkInput: {
121
124
  }>;
122
125
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
123
126
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
124
- $emit: (event: "input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter", ...args: any[]) => void;
127
+ $emit: ((event: import("./input").EVENTS.UPDATE, value: string | number, evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.FOCUS, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.BLUR, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.CHANGE, value: string | number, evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.CLEAR) => void) & ((event: import("./input").EVENTS.INPUT, value: string | number, evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYPRESS, value: string | number, evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYDOWN, value: string | number, evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYUP, value: string | number, evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.ENTER, value: string | number, evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.PASTE, value: string | number, evt?: Event | 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);
125
128
  $el: any;
126
129
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
127
130
  type: import("vue-types").VueTypeValidableDef<string> & {
@@ -198,18 +201,60 @@ declare const BkInput: {
198
201
  default: number;
199
202
  };
200
203
  }>> & {
201
- onChange?: (...args: any[]) => any;
202
- onPaste?: (...args: any[]) => any;
203
- onFocus?: (...args: any[]) => any;
204
- onBlur?: (...args: any[]) => any;
205
- onInput?: (...args: any[]) => any;
206
- onKeydown?: (...args: any[]) => any;
207
- onKeypress?: (...args: any[]) => any;
208
- onKeyup?: (...args: any[]) => any;
209
- onEnter?: (...args: any[]) => any;
210
- onClear?: (...args: any[]) => any;
211
- "onUpdate:modelValue"?: (...args: any[]) => any;
212
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter")[], string, {
204
+ onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
205
+ onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
206
+ onCompositionend?: (evt: CompositionEvent) => any;
207
+ onCompositionstart?: (evt: CompositionEvent) => any;
208
+ onCompositionupdate?: (evt: CompositionEvent) => any;
209
+ onFocus?: (evt: FocusEvent) => any;
210
+ onBlur?: (evt: FocusEvent) => any;
211
+ onInput?: (value: string | number, evt?: Event | KeyboardEvent) => any;
212
+ onKeydown?: (value: string | number, evt?: Event | KeyboardEvent) => any;
213
+ onKeypress?: (value: string | number, evt?: Event | KeyboardEvent) => any;
214
+ onKeyup?: (value: string | number, evt?: Event | KeyboardEvent) => any;
215
+ onEnter?: (value: string | number, evt?: Event | KeyboardEvent) => any;
216
+ "onUpdate:modelValue"?: (value: string | number, evt?: Event | KeyboardEvent) => any;
217
+ onClear?: () => any;
218
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
219
+ "update:modelValue": (value: string | number, evt?: Event | KeyboardEvent) => {
220
+ value: string | number;
221
+ evt: Event | KeyboardEvent;
222
+ };
223
+ focus: (evt: FocusEvent) => FocusEvent;
224
+ blur: (evt: FocusEvent) => FocusEvent;
225
+ change: (value: string | number, evt?: Event | KeyboardEvent) => {
226
+ value: string | number;
227
+ evt: Event | KeyboardEvent;
228
+ };
229
+ clear: () => boolean;
230
+ input: (value: string | number, evt?: Event | KeyboardEvent) => {
231
+ value: string | number;
232
+ evt: Event | KeyboardEvent;
233
+ };
234
+ keypress: (value: string | number, evt?: Event | KeyboardEvent) => {
235
+ value: string | number;
236
+ evt: Event | KeyboardEvent;
237
+ };
238
+ keydown: (value: string | number, evt?: Event | KeyboardEvent) => {
239
+ value: string | number;
240
+ evt: Event | KeyboardEvent;
241
+ };
242
+ keyup: (value: string | number, evt?: Event | KeyboardEvent) => {
243
+ value: string | number;
244
+ evt: Event | KeyboardEvent;
245
+ };
246
+ enter: (value: string | number, evt?: Event | KeyboardEvent) => {
247
+ value: string | number;
248
+ evt: Event | KeyboardEvent;
249
+ };
250
+ paste: (value: string | number, evt?: Event | KeyboardEvent) => {
251
+ value: string | number;
252
+ evt: Event | KeyboardEvent;
253
+ };
254
+ compositionstart: (evt: CompositionEvent) => CompositionEvent;
255
+ compositionupdate: (evt: CompositionEvent) => CompositionEvent;
256
+ compositionend: (evt: CompositionEvent) => CompositionEvent;
257
+ }, string, {
213
258
  prefix: string;
214
259
  type: string;
215
260
  placeholder: string;
@@ -325,17 +370,20 @@ declare const BkInput: {
325
370
  default: number;
326
371
  };
327
372
  }>> & {
328
- onChange?: (...args: any[]) => any;
329
- onPaste?: (...args: any[]) => any;
330
- onFocus?: (...args: any[]) => any;
331
- onBlur?: (...args: any[]) => any;
332
- onInput?: (...args: any[]) => any;
333
- onKeydown?: (...args: any[]) => any;
334
- onKeypress?: (...args: any[]) => any;
335
- onKeyup?: (...args: any[]) => any;
336
- onEnter?: (...args: any[]) => any;
337
- onClear?: (...args: any[]) => any;
338
- "onUpdate:modelValue"?: (...args: any[]) => any;
373
+ onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
374
+ onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
375
+ onCompositionend?: (evt: CompositionEvent) => any;
376
+ onCompositionstart?: (evt: CompositionEvent) => any;
377
+ onCompositionupdate?: (evt: CompositionEvent) => any;
378
+ onFocus?: (evt: FocusEvent) => any;
379
+ onBlur?: (evt: FocusEvent) => any;
380
+ onInput?: (value: string | number, evt?: Event | KeyboardEvent) => any;
381
+ onKeydown?: (value: string | number, evt?: Event | KeyboardEvent) => any;
382
+ onKeypress?: (value: string | number, evt?: Event | KeyboardEvent) => any;
383
+ onKeyup?: (value: string | number, evt?: Event | KeyboardEvent) => any;
384
+ onEnter?: (value: string | number, evt?: Event | KeyboardEvent) => any;
385
+ "onUpdate:modelValue"?: (value: string | number, evt?: Event | KeyboardEvent) => any;
386
+ onClear?: () => any;
339
387
  } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
340
388
  __isFragment?: never;
341
389
  __isTeleport?: never;
@@ -415,18 +463,60 @@ declare const BkInput: {
415
463
  default: number;
416
464
  };
417
465
  }>> & {
418
- onChange?: (...args: any[]) => any;
419
- onPaste?: (...args: any[]) => any;
420
- onFocus?: (...args: any[]) => any;
421
- onBlur?: (...args: any[]) => any;
422
- onInput?: (...args: any[]) => any;
423
- onKeydown?: (...args: any[]) => any;
424
- onKeypress?: (...args: any[]) => any;
425
- onKeyup?: (...args: any[]) => any;
426
- onEnter?: (...args: any[]) => any;
427
- onClear?: (...args: any[]) => any;
428
- "onUpdate:modelValue"?: (...args: any[]) => any;
429
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter")[], "input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter", {
466
+ onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
467
+ onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
468
+ onCompositionend?: (evt: CompositionEvent) => any;
469
+ onCompositionstart?: (evt: CompositionEvent) => any;
470
+ onCompositionupdate?: (evt: CompositionEvent) => any;
471
+ onFocus?: (evt: FocusEvent) => any;
472
+ onBlur?: (evt: FocusEvent) => any;
473
+ onInput?: (value: string | number, evt?: Event | KeyboardEvent) => any;
474
+ onKeydown?: (value: string | number, evt?: Event | KeyboardEvent) => any;
475
+ onKeypress?: (value: string | number, evt?: Event | KeyboardEvent) => any;
476
+ onKeyup?: (value: string | number, evt?: Event | KeyboardEvent) => any;
477
+ onEnter?: (value: string | number, evt?: Event | KeyboardEvent) => any;
478
+ "onUpdate:modelValue"?: (value: string | number, evt?: Event | KeyboardEvent) => any;
479
+ onClear?: () => any;
480
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
481
+ "update:modelValue": (value: string | number, evt?: Event | KeyboardEvent) => {
482
+ value: string | number;
483
+ evt: Event | KeyboardEvent;
484
+ };
485
+ focus: (evt: FocusEvent) => FocusEvent;
486
+ blur: (evt: FocusEvent) => FocusEvent;
487
+ change: (value: string | number, evt?: Event | KeyboardEvent) => {
488
+ value: string | number;
489
+ evt: Event | KeyboardEvent;
490
+ };
491
+ clear: () => boolean;
492
+ input: (value: string | number, evt?: Event | KeyboardEvent) => {
493
+ value: string | number;
494
+ evt: Event | KeyboardEvent;
495
+ };
496
+ keypress: (value: string | number, evt?: Event | KeyboardEvent) => {
497
+ value: string | number;
498
+ evt: Event | KeyboardEvent;
499
+ };
500
+ keydown: (value: string | number, evt?: Event | KeyboardEvent) => {
501
+ value: string | number;
502
+ evt: Event | KeyboardEvent;
503
+ };
504
+ keyup: (value: string | number, evt?: Event | KeyboardEvent) => {
505
+ value: string | number;
506
+ evt: Event | KeyboardEvent;
507
+ };
508
+ enter: (value: string | number, evt?: Event | KeyboardEvent) => {
509
+ value: string | number;
510
+ evt: Event | KeyboardEvent;
511
+ };
512
+ paste: (value: string | number, evt?: Event | KeyboardEvent) => {
513
+ value: string | number;
514
+ evt: Event | KeyboardEvent;
515
+ };
516
+ compositionstart: (evt: CompositionEvent) => CompositionEvent;
517
+ compositionupdate: (evt: CompositionEvent) => CompositionEvent;
518
+ compositionend: (evt: CompositionEvent) => CompositionEvent;
519
+ }, string, {
430
520
  prefix: string;
431
521
  type: string;
432
522
  placeholder: string;
@@ -1 +1 @@
1
- !function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue"),require("../icon")):r(e["../shared"],e.vue,e["../icon"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r,t)=>(()=>{"use strict";var o={6870:e=>{e.exports=t},4212:r=>{r.exports=e},748:e=>{e.exports=r}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var t=n[e]={exports:{}};return o[e](t,t.exports,a),t.exports}a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{a.r(l),a.d(l,{default:()=>p});var e=a(4212);function r(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function t(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var o=a(748);Object.create,Object.create;var n=a(6870),u={type:e.PropTypes.string.def("text"),clearable:e.PropTypes.bool,disabled:e.PropTypes.bool,readonly:e.PropTypes.bool,placeholder:e.PropTypes.string.def("Enter"),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:e.PropTypes.commonType(["simplicity","normal"]).def("normal"),showWordLimit:e.PropTypes.bool,showControl:e.PropTypes.bool.def(!0),showClearOnlyHover:e.PropTypes.bool.def(!1),precision:e.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),size:e.PropTypes.size(),rows:e.PropTypes.number},i=["update:modelValue","focus","blur","change","clear","input","keypress","keydown","keyup","enter","paste"],s=(0,e.stringEnum)([].concat(i));const c=(0,o.defineComponent)({name:"Input",inheritAttrs:!1,props:u,emits:[].concat(i),setup:function(a,l){var u=(0,o.ref)(!1),i=(0,o.ref)(!1),c=(0,o.computed)((function(){return"textarea"===a.type})),p=(0,o.computed)((function(){return c.value?"bk-textarea":"bk-input"})),d=l.attrs,f=d.class,y=d.style,m=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}(d,["class","style"]),v=(0,o.ref)(),b=(0,o.computed)((function(){var r;return(0,e.classes)((t(r={},"".concat(p.value,"--").concat(a.size),!!a.size),t(r,"is-focused",u.value),t(r,"is-readonly",a.readonly),t(r,"is-disabled",a.disabled),t(r,"is-simplicity","simplicity"===a.behavior),t(r,"".concat(f),!!f),r),p.value)})),g={search:function(){return(0,o.createVNode)(n.Search,null,null)},password:function(){return(0,o.createVNode)(n.Eye,{onClick:W},null)}},x=U("suffix-icon"),h=(0,o.computed)((function(){var e=g[a.type];return V.value?(0,o.createVNode)(n.Unvisible,{onClick:W,class:x},null):e?(0,o.createVNode)(e,{class:x},null):null})),P=(0,o.computed)((function(){return"number"===a.type})),T=(0,o.computed)((function(){return Math.floor(a.maxlength)})),V=(0,o.ref)(!1),w=(0,o.computed)((function(){return(0,e.classes)({"show-clear-only-hover":a.showClearOnlyHover},x)}));function N(){l.emit(s["update:modelValue"],""),l.emit(s.change,""),l.emit(s.clear)}function O(e){u.value=!0,l.emit(s.focus,e)}function j(e){u.value=!1,l.emit(s.blur,e)}l.expose({focus:function(){v.value.focus()},clear:N});var S,C,k=(S=[s.keyup,s.keydown,s.keypress,s.paste,s.change,s.input].map((function(e){return function(r){"Enter"!==r.code&&"Enter"!==r.key&&13!==r.keyCode||l.emit(s.enter,r.target.value,r),i.value&&[s.input,s.change].some((function(r){return e===r}))||(e===s.input&&l.emit(s["update:modelValue"],P.value?+r.target.value:r.target.value),l.emit(e,r.target.value,r))}})),C=6,function(e){if(Array.isArray(e))return e}(S)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,n,a=[],l=!0,u=!1;try{for(t=t.call(e);!(l=(o=t.next()).done)&&(a.push(o.value),!r||a.length!==r);l=!0);}catch(e){u=!0,n=e}finally{try{l||null==t.return||t.return()}finally{if(u)throw n}}return a}}(S,C)||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}}(S,C)||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.")}()),I=k[0],A=k[1],E=k[2],q=k[3],M=k[4],z=k[5];function F(){i.value=!0}function K(e){i.value=!1,z(e)}function D(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=parseInt(String(e),10),o=Number.isInteger(a.precision)?a.precision:0,n=parseFloat(a.modelValue.toString()),l=Number.isInteger(t)?t:1,u=n+(r?l:-1*l);return Number.isInteger(a.max)&&(u=Math.min(u,a.max)),Number.isInteger(a.min)&&(u=Math.max(u,a.min)),+u.toFixed(o)}function H(){var e=D(a.step);l.emit(s["update:modelValue"],e)}function L(){var e=D(a.step,!1);l.emit(s["update:modelValue"],e)}function U(e){return"".concat(p.value,"--").concat(e)}function W(){V.value=!V.value}var _=(0,o.computed)((function(){return{value:a.modelValue,maxlength:a.maxlength,placeholder:a.placeholder,readonly:a.readonly,disabled:a.disabled,onInput:z,onFocus:O,onBlur:j,onPaste:q,onChange:M,onKeypress:E,onKeydown:A,onKeyup:I,onCompositionstart:F,onCompositionend:K}}));return function(){var e,r,t,u,i,s;return(0,o.createVNode)("div",{class:b.value,style:y},[null!==(t=null===(r=null===(e=l.slots)||void 0===e?void 0:e.prefix)||void 0===r?void 0:r.call(e))&&void 0!==t?t:a.prefix&&(0,o.createVNode)("div",{class:U("prefix-area")},[(0,o.createVNode)("span",{class:U("prefix-area--text")},[a.prefix])]),c.value?(0,o.createVNode)("textarea",(0,o.mergeProps)({ref:v},m,_.value,{rows:a.rows}),null):(0,o.createVNode)("input",(0,o.mergeProps)(m,{ref:v,class:"".concat(p.value,"--text"),type:V.value&&"password"===a.type?"text":a.type,step:a.step,max:a.max,min:a.min},_.value),null),!c.value&&a.clearable&&!!a.modelValue&&(0,o.createVNode)(n.Close,{onClick:N,class:w.value},null),h.value,"number"==typeof a.maxlength&&(a.showWordLimit||c.value)&&(0,o.createVNode)("p",{class:U("max-length")},[a.modelValue.toString().length,(0,o.createTextVNode)("/"),(0,o.createVNode)("span",null,[T.value])]),P.value&&a.showControl&&(0,o.createVNode)("div",{class:U("number-control")},[(0,o.createVNode)(n.DownSmall,{onClick:H},null),(0,o.createVNode)(n.DownSmall,{onClick:L},null)]),null!==(s=null===(i=null===(u=l.slots)||void 0===u?void 0:u.suffix)||void 0===i?void 0:i.call(u))&&void 0!==s?s:a.suffix&&(0,o.createVNode)("div",{class:U("suffix-area")},[(0,o.createVNode)("span",{class:U("suffix-area--text")},[a.suffix])])])}}}),p=(0,e.withInstall)(c)})(),l})()));
1
+ !function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue"),require("../icon")):r(e["../shared"],e.vue,e["../icon"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r,t)=>(()=>{"use strict";var o={6870:e=>{e.exports=t},4212:r=>{r.exports=e},748:e=>{e.exports=r}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var t=n[e]={exports:{}};return o[e](t,t.exports,a),t.exports}a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{a.r(l),a.d(l,{default:()=>y});var e=a(4212);function r(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function t(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var o=a(748);Object.create,Object.create;var n,i,u=a(6870),s={type:e.PropTypes.string.def("text"),clearable:e.PropTypes.bool,disabled:e.PropTypes.bool,readonly:e.PropTypes.bool,placeholder:e.PropTypes.string.def("Enter"),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:e.PropTypes.commonType(["simplicity","normal"]).def("normal"),showWordLimit:e.PropTypes.bool,showControl:e.PropTypes.bool.def(!0),showClearOnlyHover:e.PropTypes.bool.def(!1),precision:e.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),size:e.PropTypes.size(),rows:e.PropTypes.number};function c(e,r){return{value:e,evt:r}}function p(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 f=(t(n={},i.UPDATE,c),t(n,i.FOCUS,(function(e){return e})),t(n,i.BLUR,(function(e){return e})),t(n,i.CHANGE,c),t(n,i.CLEAR,(function(){return!0})),t(n,i.INPUT,c),t(n,i.KEYPRESS,c),t(n,i.KEYDOWN,c),t(n,i.KEYUP,c),t(n,i.ENTER,c),t(n,i.PASTE,c),t(n,i.COMPOSITIONSTART,p),t(n,i.COMPOSITIONUPDATE,p),t(n,i.COMPOSITIONEND,p),n);const d=(0,o.defineComponent)({name:"Input",inheritAttrs:!1,props:s,emits:f,setup:function(n,a){var l=(0,o.ref)(!1),s=(0,o.ref)(!1),c=(0,o.computed)((function(){return"textarea"===n.type})),p=(0,o.computed)((function(){return c.value?"bk-textarea":"bk-input"})),f=a.attrs,d=f.class,y=f.style,m=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}(f,["class","style"]),v=(0,o.ref)(),b=(0,o.computed)((function(){var r;return(0,e.classes)((t(r={},"".concat(p.value,"--").concat(n.size),!!n.size),t(r,"is-focused",l.value),t(r,"is-readonly",n.readonly),t(r,"is-disabled",n.disabled),t(r,"is-simplicity","simplicity"===n.behavior),t(r,"".concat(d),!!d),r),p.value)})),P={search:function(){return(0,o.createVNode)(u.Search,null,null)},password:function(){return(0,o.createVNode)(u.Eye,{onClick:F},null)}},T=q("suffix-icon"),x=(0,o.computed)((function(){var e=P[n.type];return N.value?(0,o.createVNode)(u.Unvisible,{onClick:F,class:T},null):e?(0,o.createVNode)(e,{class:T},null):null})),g=(0,o.computed)((function(){return"number"===n.type})),h=(0,o.computed)((function(){return Math.floor(n.maxlength)})),N=(0,o.ref)(!1),O=(0,o.computed)((function(){return(0,e.classes)({"show-clear-only-hover":n.showClearOnlyHover},T)}));function E(){a.emit(i.UPDATE,""),a.emit(i.CHANGE,""),a.emit(i.CLEAR)}function S(e){l.value=!0,a.emit(i.FOCUS,e)}function C(e){l.value=!1,a.emit(i.BLUR,e)}a.expose({focus:function(){v.value.focus()},clear:E});var I,A,w=(I=[i.KEYUP,i.KEYDOWN,i.KEYPRESS,i.PASTE,i.CHANGE,i.INPUT].map((function(e){return function(r){"Enter"!==r.code&&"Enter"!==r.key&&13!==r.keyCode||a.emit(i.ENTER,r.target.value,r),s.value&&[i.INPUT,i.CHANGE].some((function(r){return e===r}))||(e===i.INPUT&&a.emit(i.UPDATE,g.value?+r.target.value:r.target.value),a.emit(e,r.target.value,r))}})),A=6,function(e){if(Array.isArray(e))return e}(I)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,n,a=[],l=!0,i=!1;try{for(t=t.call(e);!(l=(o=t.next()).done)&&(a.push(o.value),!r||a.length!==r);l=!0);}catch(e){i=!0,n=e}finally{try{l||null==t.return||t.return()}finally{if(i)throw n}}return a}}(I,A)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}(I,A)||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.")}()),U=w[0],V=w[1],j=w[2],D=w[3],R=w[4],k=w[5];function K(){s.value=!0}function M(e){s.value=!1,k(e)}function Y(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=parseInt(String(e),10),o=Number.isInteger(n.precision)?n.precision:0,a=parseFloat(n.modelValue.toString()),l=Number.isInteger(t)?t:1,i=a+(r?l:-1*l);return Number.isInteger(n.max)&&(i=Math.min(i,n.max)),Number.isInteger(n.min)&&(i=Math.max(i,n.min)),+i.toFixed(o)}function L(){var e=Y(n.step);a.emit(i.UPDATE,e)}function H(){var e=Y(n.step,!1);a.emit(i.UPDATE,e)}function q(e){return"".concat(p.value,"--").concat(e)}function F(){N.value=!N.value}var G=(0,o.computed)((function(){return{value:n.modelValue,maxlength:n.maxlength,placeholder:n.placeholder,readonly:n.readonly,disabled:n.disabled,onInput:k,onFocus:S,onBlur:C,onPaste:D,onChange:R,onKeypress:j,onKeydown:V,onKeyup:U,onCompositionstart:K,onCompositionend:M}}));return function(){var e,r,t,l,i,s;return(0,o.createVNode)("div",{class:b.value,style:y},[null!==(t=null===(r=null===(e=a.slots)||void 0===e?void 0:e.prefix)||void 0===r?void 0:r.call(e))&&void 0!==t?t:n.prefix&&(0,o.createVNode)("div",{class:q("prefix-area")},[(0,o.createVNode)("span",{class:q("prefix-area--text")},[n.prefix])]),c.value?(0,o.createVNode)("textarea",(0,o.mergeProps)({ref:v},m,G.value,{rows:n.rows}),null):(0,o.createVNode)("input",(0,o.mergeProps)(m,{ref:v,class:"".concat(p.value,"--text"),type:N.value&&"password"===n.type?"text":n.type,step:n.step,max:n.max,min:n.min},G.value),null),!c.value&&n.clearable&&!!n.modelValue&&(0,o.createVNode)(u.Close,{onClick:E,class:O.value},null),x.value,"number"==typeof n.maxlength&&(n.showWordLimit||c.value)&&(0,o.createVNode)("p",{class:q("max-length")},[n.modelValue.toString().length,(0,o.createTextVNode)("/"),(0,o.createVNode)("span",null,[h.value])]),g.value&&n.showControl&&(0,o.createVNode)("div",{class:q("number-control")},[(0,o.createVNode)(u.DownSmall,{onClick:L},null),(0,o.createVNode)(u.DownSmall,{onClick:H},null)]),null!==(s=null===(i=null===(l=a.slots)||void 0===l?void 0:l.suffix)||void 0===i?void 0:i.call(l))&&void 0!==s?s:n.suffix&&(0,o.createVNode)("div",{class:q("suffix-area")},[(0,o.createVNode)("span",{class:q("suffix-area--text")},[n.suffix])])])}}}),y=(0,e.withInstall)(d)})(),l})()));
@@ -74,6 +74,43 @@ export declare const inputType: {
74
74
  default: number;
75
75
  };
76
76
  };
77
+ export declare enum EVENTS {
78
+ UPDATE = "update:modelValue",
79
+ FOCUS = "focus",
80
+ BLUR = "blur",
81
+ CHANGE = "change",
82
+ CLEAR = "clear",
83
+ INPUT = "input",
84
+ KEYPRESS = "keypress",
85
+ KEYDOWN = "keydown",
86
+ KEYUP = "keyup",
87
+ ENTER = "enter",
88
+ PASTE = "paste",
89
+ COMPOSITIONSTART = "compositionstart",
90
+ COMPOSITIONUPDATE = "compositionupdate",
91
+ COMPOSITIONEND = "compositionend"
92
+ }
93
+ declare function EventFunction(value: string | number, evt?: KeyboardEvent | Event): {
94
+ value: string | number;
95
+ evt: Event | KeyboardEvent;
96
+ };
97
+ declare function CompositionEventFunction(evt: CompositionEvent): CompositionEvent;
98
+ export declare const inputEmitEventsType: {
99
+ "update:modelValue": typeof EventFunction;
100
+ focus: (evt: FocusEvent) => FocusEvent;
101
+ blur: (evt: FocusEvent) => FocusEvent;
102
+ change: typeof EventFunction;
103
+ clear: () => boolean;
104
+ input: typeof EventFunction;
105
+ keypress: typeof EventFunction;
106
+ keydown: typeof EventFunction;
107
+ keyup: typeof EventFunction;
108
+ enter: typeof EventFunction;
109
+ paste: typeof EventFunction;
110
+ compositionstart: typeof CompositionEventFunction;
111
+ compositionupdate: typeof CompositionEventFunction;
112
+ compositionend: typeof CompositionEventFunction;
113
+ };
77
114
  export declare type InputType = ExtractPropTypes<typeof inputType>;
78
115
  declare const _default: import("vue").DefineComponent<{
79
116
  type: import("vue-types").VueTypeValidableDef<string> & {
@@ -149,7 +186,22 @@ declare const _default: import("vue").DefineComponent<{
149
186
  rows: import("vue-types").VueTypeValidableDef<number> & {
150
187
  default: number;
151
188
  };
152
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter")[], "input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
189
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
190
+ "update:modelValue": typeof EventFunction;
191
+ focus: (evt: FocusEvent) => FocusEvent;
192
+ blur: (evt: FocusEvent) => FocusEvent;
193
+ change: typeof EventFunction;
194
+ clear: () => boolean;
195
+ input: typeof EventFunction;
196
+ keypress: typeof EventFunction;
197
+ keydown: typeof EventFunction;
198
+ keyup: typeof EventFunction;
199
+ enter: typeof EventFunction;
200
+ paste: typeof EventFunction;
201
+ compositionstart: typeof CompositionEventFunction;
202
+ compositionupdate: typeof CompositionEventFunction;
203
+ compositionend: typeof CompositionEventFunction;
204
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
153
205
  type: import("vue-types").VueTypeValidableDef<string> & {
154
206
  default: string;
155
207
  } & {
@@ -224,17 +276,20 @@ declare const _default: import("vue").DefineComponent<{
224
276
  default: number;
225
277
  };
226
278
  }>> & {
227
- onChange?: (...args: any[]) => any;
228
- onPaste?: (...args: any[]) => any;
229
- onFocus?: (...args: any[]) => any;
230
- onBlur?: (...args: any[]) => any;
231
- onInput?: (...args: any[]) => any;
232
- onKeydown?: (...args: any[]) => any;
233
- onKeypress?: (...args: any[]) => any;
234
- onKeyup?: (...args: any[]) => any;
235
- onEnter?: (...args: any[]) => any;
236
- onClear?: (...args: any[]) => any;
237
- "onUpdate:modelValue"?: (...args: any[]) => any;
279
+ onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
280
+ onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
281
+ onCompositionend?: (evt: CompositionEvent) => any;
282
+ onCompositionstart?: (evt: CompositionEvent) => any;
283
+ onCompositionupdate?: (evt: CompositionEvent) => any;
284
+ onFocus?: (evt: FocusEvent) => any;
285
+ onBlur?: (evt: FocusEvent) => any;
286
+ onInput?: (value: string | number, evt?: Event | KeyboardEvent) => any;
287
+ onKeydown?: (value: string | number, evt?: Event | KeyboardEvent) => any;
288
+ onKeypress?: (value: string | number, evt?: Event | KeyboardEvent) => any;
289
+ onKeyup?: (value: string | number, evt?: Event | KeyboardEvent) => any;
290
+ onEnter?: (value: string | number, evt?: Event | KeyboardEvent) => any;
291
+ "onUpdate:modelValue"?: (value: string | number, evt?: Event | KeyboardEvent) => any;
292
+ onClear?: () => any;
238
293
  }, {
239
294
  prefix: string;
240
295
  type: string;
@@ -125,8 +125,8 @@ declare const BkSelect: {
125
125
  };
126
126
  }>> & {
127
127
  onChange?: (...args: any[]) => any;
128
- onClear?: (...args: any[]) => any;
129
128
  "onUpdate:modelValue"?: (...args: any[]) => any;
129
+ onClear?: (...args: any[]) => any;
130
130
  onToggle?: (...args: any[]) => any;
131
131
  "onScroll-end"?: (...args: any[]) => any;
132
132
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placeholder" | "size" | "multiple" | "disabled" | "loading" | "clearable" | "behavior" | "showOnInit" | "popoverMinWidth" | "filterable" | "remoteMethod" | "scrollHeight" | "showSelectAll" | "multipleMode" | "tagTheme" | "collapseTags" | "noDataText" | "noMatchText" | "loadingText" | "selectAllText" | "scrollLoading">;
@@ -242,8 +242,8 @@ declare const BkSelect: {
242
242
  };
243
243
  }>> & {
244
244
  onChange?: (...args: any[]) => any;
245
- onClear?: (...args: any[]) => any;
246
245
  "onUpdate:modelValue"?: (...args: any[]) => any;
246
+ onClear?: (...args: any[]) => any;
247
247
  onToggle?: (...args: any[]) => any;
248
248
  "onScroll-end"?: (...args: any[]) => any;
249
249
  }, {
@@ -645,8 +645,8 @@ declare const BkSelect: {
645
645
  };
646
646
  }>> & {
647
647
  onChange?: (...args: any[]) => any;
648
- onClear?: (...args: any[]) => any;
649
648
  "onUpdate:modelValue"?: (...args: any[]) => any;
649
+ onClear?: (...args: any[]) => any;
650
650
  onToggle?: (...args: any[]) => any;
651
651
  "onScroll-end"?: (...args: any[]) => any;
652
652
  } & import("vue").ShallowUnwrapRef<{
@@ -1010,8 +1010,8 @@ declare const BkSelect: {
1010
1010
  };
1011
1011
  }>> & {
1012
1012
  onChange?: (...args: any[]) => any;
1013
- onClear?: (...args: any[]) => any;
1014
1013
  "onUpdate:modelValue"?: (...args: any[]) => any;
1014
+ onClear?: (...args: any[]) => any;
1015
1015
  onToggle?: (...args: any[]) => any;
1016
1016
  "onScroll-end"?: (...args: any[]) => any;
1017
1017
  }, {
@@ -378,8 +378,8 @@ declare const _default: import("vue").DefineComponent<{
378
378
  };
379
379
  }>> & {
380
380
  onChange?: (...args: any[]) => any;
381
- onClear?: (...args: any[]) => any;
382
381
  "onUpdate:modelValue"?: (...args: any[]) => any;
382
+ onClear?: (...args: any[]) => any;
383
383
  onToggle?: (...args: any[]) => any;
384
384
  "onScroll-end"?: (...args: any[]) => any;
385
385
  }, {
@@ -32,6 +32,7 @@ export * from './helper';
32
32
  export * from './vue-types';
33
33
  export * from './scrollbar-width';
34
34
  export * from './utils';
35
+ export * from './token';
35
36
  export declare function classes(dynamicCls: object, constCls?: string): string;
36
37
  export declare const EMPTY_OBJ: any;
37
38
  export declare const noop: () => void;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@popperjs/core"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["@popperjs/core","vue-types"],t);else{var n="object"==typeof exports?t(require("@popperjs/core"),require("vue-types")):t(e["@popperjs/core"],e["vue-types"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t)=>(()=>{"use strict";var n={5798:t=>{t.exports=e},210:e=>{e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,i),o.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s,a;i.r(o),i.d(o,{BKLAYERD_INDEX_EFAULT_VALUE:()=>u,BKLAYERTYPE:()=>a,BKPopover:()=>P,BkMaskManager:()=>A,EMPTY_OBJ:()=>Y,Placements:()=>B,PropTypes:()=>H,Size:()=>V,arrayEqual:()=>ne,bKMaskManager:()=>N,bkPopIndexManager:()=>U,bkZIndexManager:()=>c,classes:()=>K,clone:()=>O,debounce:()=>ee,elementsEqual:()=>I,filterProperty:()=>te,finiteOrDefault:()=>b,isArray:()=>y,isElement:()=>j,isEmpty:()=>v,isEmptyObj:()=>Z,isFinite:()=>m,isNullOrUndef:()=>d,isObject:()=>g,merge:()=>T,mergeIf:()=>E,mergerFn:()=>S,mergerIfFn:()=>w,noop:()=>J,random:()=>L,renderEmptyVNode:()=>W,resolveClassName:()=>Q,scrollbarWidth:()=>G,stringEnum:()=>q,valueOrDefault:()=>k,withInstall:()=>$,withInstallProps:()=>X}),function(e){e.BOTTOM="bottom",e.CONTENT="content",e.NAVI="navi",e.FULLSCREEN="fullScreen",e.PLUGINS="plugins",e.MODAL="modal",e.MESSAGE="message",e.POPPER="popper"}(a||(a={}));var u=(r(s={},a.BOTTOM,0),r(s,a.CONTENT,1),r(s,a.NAVI,100),r(s,a.FULLSCREEN,1e3),r(s,a.MODAL,3e3),r(s,a.PLUGINS,8e3),r(s,a.MESSAGE,1e4),r(s,a.POPPER,99999),s),c=new(function(){function t(){e(this,t),this.storageLayerIndexValue={},this.copyDefaultValue()}return n(t,[{key:"getNextIndex",value:function(e){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,e)?(this.storageLayerIndexValue[e]=this.storageLayerIndexValue[e]+1,this.storageLayerIndexValue[e]):(this.storageLayerIndexValue[a.MODAL]=this.storageLayerIndexValue[a.MODAL]+1,this.storageLayerIndexValue[a.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(a.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(a.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(a.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(a.NAVI)}},{key:"getPopperIndex",value:function(){return u.popper}},{key:"setDefaultZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue.__proto__,n)&&Object.assign(t.storageLayerIndexValue.__proto__,r({},n,e[n]))})),this.copyDefaultValue()}},{key:"resetZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue,n)&&Object.assign(t.storageLayerIndexValue,r({},n,e[n]))}))}},{key:"copyDefaultValue",value:function(){var e=Object.keys(u).reduce((function(e,t){return Object.assign(e,r({},t,{value:u[t],writable:!0,configurable:!0}))}),{});this.storageLayerIndexValue=Object.create(u,e)}}]),t}());function l(e){return l="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},l(e)}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e){return function(e){if(Array.isArray(e))return p(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 p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(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.")}()}var h=i(5798);function d(e){return null==e}function v(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""===e||!!t&&d(e)}function y(e){if(Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function g(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var m=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function b(e,t){return m(e)?e:t}function k(e,t){return void 0===e?t:e}function I(e,t){var n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function O(e){if(y(e))return e.map(O);if(g(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,i=0;i<r;++i)t[n[i]]=O(e[n[i]]);return t}return e}function x(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function S(e,t,n,r){if(x(e)){var i=t[e],o=n[e];g(i)&&g(o)?T(i,o,r):t[e]=O(o)}}function T(e,t,n){var r=y(t)?t:[t],i=r.length;if(!g(e))return e;for(var o=(n=n||{}).merger||S,s=0;s<i;++s)if(g(t=r[s]))for(var a=Object.keys(t),u=0,c=a.length;u<c;++u)o(a[u],e,t,n);return e}function E(e,t){return T(e,t,{merger:w})}function w(e,t,n){if(x(e)){var r=t[e],i=n[e];g(r)&&g(i)?E(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=O(i))}}function j(e){try{return e instanceof HTMLElement}catch(t){return"object"===l(e)&&1===e.nodeType&&"object"===l(e.style)&&"object"===l(e.ownerDocument)}}var P=function(){function t(n,r,i){var o,s;e(this,t),this.isShow=!1,this.trigger=void 0,this.instance=void 0,this.always=!1,this.reference=void 0,this.referenceTarget=void 0,this.popperRefer=void 0,this.delay=50,this.isInnerPopper=!1,this.disabled=!1,this.afterShow=null,this.afterHidden=null,this.appendTo="parent",this.container=null,this.fixOnBoundary=!1,this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(n),this.popperRefer=this.resolveInputSelectorToHtmlElement(r),this.referenceTarget=this.getTargetReferenceElement(),this.container=null===(o=this.popperRefer)||void 0===o?void 0:o.parentElement,this.isShow=!!(null===(s=this.instanceOptions)||void 0===s?void 0:s.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden="function"==typeof i.afterHidden?i.afterHidden:function(){},this.afterShow="function"==typeof i.afterShow?i.afterShow:function(){},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}return n(t,[{key:"forceUpdate",value:function(){var e;null===(e=this.instance)||void 0===e||e.forceUpdate()}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.update()}},{key:"updateOptions",value:function(e){var t;this.instanceOptions=this.initDefaultOptions(e),this.isShow=!!(null===(t=this.instanceOptions)||void 0===t?void 0:t.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}},{key:"setOptions",value:function(e){var t;null===(t=this.instance)||void 0===t||t.setOptions(e)}},{key:"destroy",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy()}},{key:"updateDisabled",value:function(e){this.disabled=null!=e?e:!this.disabled,this.disabled&&this.hide()}},{key:"show",value:function(e){var t;this.disabled||(null===(t=this.popperRefer)||void 0===t||t.setAttribute("data-show",""),this.setOptions({modifiers:[].concat(f(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!0}])}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}},{key:"hide",value:function(){var e;this.always||(null===(e=this.popperRefer)||void 0===e||e.removeAttribute("data-show"),this.setOptions({modifiers:[].concat(f(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!1}])}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent())}},{key:"restorePopContent",value:function(){var e=this.getAppendToTarget();j(e)&&e.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}},{key:"appendToTarget",value:function(){var e=this.getAppendToTarget();j(e)&&e.contains(this.popperRefer)&&e.append(this.popperRefer)}},{key:"getAppendToTarget",value:function(){var e=this.appendTo,t=e;return"parent"!==e&&"string"==typeof e&&(t=document.querySelector(e)),t}},{key:"initDefaultOptions",value:function(e){var t=this,n=T({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},e||{}),r=n.onFirstUpdate;return n.onFirstUpdate=function(e){"function"==typeof r&&(r.call(t,e),t.handleFirstUpdate())},n}},{key:"handleFirstUpdate",value:function(){this.fixOnBoundary&&this.appendToTarget()}},{key:"getTargetReferenceElement",value:function(){return this.isElement(this.reference)&&1===this.reference.childElementCount?this.reference.firstElementChild:this.reference}},{key:"initInstance",value:function(){var e,t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=(0,h.createPopper)(this.referenceTarget,this.popperRefer,this.instanceOptions),null===(e=this.popperRefer)||void 0===e||e.setAttribute("data-theme",null!==(t=this.instanceOptions.theme)&&void 0!==t?t:"dark")):console.error("reference or popperRefer is null, please check html element."))}},{key:"resolveInputSelectorToHtmlElement",value:function(e){if(this.isElement(e))return e;if("string"==typeof e)return document.querySelector(e);if("object"===l(e)){if(Object.prototype.hasOwnProperty.call(e,"getBoundingClientRect"))return e}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}},{key:"isElement",value:function(e){return j(e)}},{key:"registerEvents",value:function(){var e=this;this.isElement(this.referenceTarget)&&"hover"===this.trigger&&(["mouseenter","focus"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(n){"mouseenter"===t&&(e.isInnerPopper=!0),e.show(n)}))})),["mouseleave","blur"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(){e.isInnerPopper=!1,setTimeout((function(){!e.isInnerPopper&&e.hide()}),e.delay)}))})),this.isElement(this.popperRefer)&&["mouseenter","mouseleave"].forEach((function(t){e.popperRefer.addEventListener(t,(function(){"mouseenter"===t&&(e.isInnerPopper=!0),"mouseleave"===t&&e.hide()}))}))),"click"===this.trigger&&["click"].forEach((function(t){document.body.addEventListener(t,(function(t){e.isSameElement(t.target,e.reference)||e.reference.contains(t.target)?e.show(t):e.isShow&&!e.isSameElement(t.target,e.popperRefer)&&e.hide()}))}))}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),t}(),M="abcdefghijklmnopqrstuvwxyz0123456789",L=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M,n="",r=0;r<e;r++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},A=function(){function t(n){e(this,t),this.multiInstance=!1,this.uniqueMaskAttrTag="",this.parentNode=document.body,this.activeInstance=void 0,this.zIndexStore=new Map,this.lastUUID=null,this.maskStyle={position:"absolute",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"};var r=n||{},i=r.multiInstance,o=void 0!==i&&i,s=r.maskAttrTag,a=void 0===s?"auto":s,u=r.parentNode,c=void 0===u?document.body:u,l=r.maskStyle,p=void 0===l?{}:l;this.activeInstance=void 0,this.multiInstance=o,this.uniqueMaskAttrTag=this.getMaskAttrTag(a),this.parentNode=c||document,this.mask=this.getMask(),this.backupMask=this.createMask("data-bk-backup-uid"),this.setMaskStyle(Object.assign({},this.maskStyle,p))}return n(t,[{key:"show",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=null!=i?i:L(16),a=/-?\d+/.test("".concat(t))?t:c.getModalNextIndex(),u=Object.assign({},this.maskStyle,r||{});if(!n&&this.lastUUID){var l=this.zIndexStore.get(this.lastUUID);u=l.style}this.storeMaskInsCfg({zIndex:a,style:Object.assign({},u),uuid:s,preUID:this.lastUUID}),this.setMaskStyle(u),this.mask.style.setProperty("display","block"),this.mask.style.setProperty("z-index","".concat(a)),this.backupMask.style.setProperty("z-index","".concat(a-1)),e&&(o&&e.style.setProperty("z-index","".concat(a+1)),this.activeInstance=e,o||this.appendContentToMask(e))}},{key:"hide",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=null!=r?r:this.lastUUID;this.mask.style.setProperty("display","none"),t||(null==n||n.remove(),null===(e=this.activeInstance)||void 0===e||e.remove()),this.activeInstance=void 0,this.popIndexStore(i)}},{key:"storeMaskInsCfg",value:function(e){return this.zIndexStore.set(e.uuid,e),this.lastUUID=e.uuid,this.zIndexStore.get(e.uuid)}},{key:"popIndexStore",value:function(e){if(this.zIndexStore.has(e)){var t=this.zIndexStore.get(e);return this.lastUUID=t.preUID,this.zIndexStore.delete(e)}return this.lastUUID=null,!1}},{key:"backupActiveInstance",value:function(){this.activeInstance&&this.backupMask.append(this.activeInstance)}},{key:"backupContentElement",value:function(e){e&&this.backupMask.append(e)}},{key:"getActiveContentInstance",value:function(){return this.activeInstance}},{key:"getMask",value:function(){if(this.multiInstance)return this.createMask();var e=this.parentNode.querySelector("[data-bkmask-uid='".concat(this.uniqueMaskAttrTag,"']"));return e||(e=this.createMask()),e}},{key:"createMask",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-bk-mask-uid",t=document.createElement("div");return t.setAttribute(e,this.uniqueMaskAttrTag),this.parentNode.append(t),t}},{key:"setMaskStyle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.mask&&Object.entries(t).forEach((function(t){return e.mask.style.setProperty(t[0],t[1])}))}},{key:"getMaskAttrTag",value:function(e){return/^(auto|\s+)$/i.test(e)||null==e||""===e?"__bk_mask_".concat(L(16)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),t}(),N=new A({}),U=new(function(){function t(){e(this,t),this.popInstanceList=[],this.uuidAttrName="data-bk-pop-uuid"}return n(t,[{key:"show",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e){var i=c.getModalNextIndex(),o=L(16);e.setAttribute(this.uuidAttrName,o),this.popInstanceList.push({uuid:o,zIndex:i,content:e,showMask:t,appendStyle:n}),t&&N.backupActiveInstance(),N.show(e,i,t,n,o,r)}else console.warn("pop show error: content is null or undefined")}},{key:"popHide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.popInstanceList.length){if(e){var t=this.popInstanceList.pop();N.popIndexStore(t.uuid),t.remove()}if(this.popInstanceList.length){var n=this.popInstanceList.slice(-1)[0],r=n.zIndex,i=n.content,o=n.showMask,s=n.appendStyle,a=n.uuid;N.show(i,r,o,s,a)}else N.hide()}}},{key:"hide",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null==e?void 0:e.getAttribute(this.uuidAttrName);if(n){var r=this.popInstanceList.findIndex((function(e){return e.uuid===n}));r>=0&&(t||this.popInstanceList[r].content.remove(),this.popInstanceList.splice(r,1),N.popIndexStore(n),this.popInstanceList.length?this.popHide(!1):N.hide(t))}else null==e||e.remove()}}]),t}());function R(e,t){return R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},R(e,t)}function D(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var C=i(210);var V,B,z=(0,C.createTypes)({});function q(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))}!function(e){e.Small="small",e.Large="large"}(V||(V={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(B||(B={}));var F,H=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(s,t);var r,i,o=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_(r);if(i){var n=_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return D(this,e)});function s(){return e(this,s),o.apply(this,arguments)}return n(s,null,[{key:"size",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["small","default","large"];return(0,C.toType)("Size",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid size, ".concat(t,", the size must be one of 【").concat(e.join(" | "),"】")),1))},default:"default"})}},{key:"theme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["primary","warning","success","danger"];return(0,C.toType)("Theme",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))}})}},{key:"placement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top","left","right","bottom"];return(0,C.toType)("Placements",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid placements, ".concat(t,", the placement must be one of 【").concat(e.join(" | "),"】")),1))},default:"top"})}},{key:"commonType",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"commonType";return(0,C.toType)(t.replace(/^\S/,(function(e){return e.toUpperCase()})),{type:String,validator:function(n){var r=e.includes(n);return r||console.error("invalid ".concat(t,", ").concat(n,", the ").concat(t," must be one of 【").concat(e.join(" | "),"】")),r},default:e[0]})}},{key:"style",value:function(){return(0,C.toType)("Style",{type:[String,Object]})}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top-left","top-right","bottom-left","bottom-right"];return(0,C.toType)("positions",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid positions, ".concat(t,", the position must be one of 【").concat(e.join(" | "),"】")),1))},default:"top-center"})}}]),s}(z);function G(){if(void 0!==F)return F;var e=document.createElement("div");e.className="bk-scrollbar-wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),F=t-r}function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(e).filter((function(e){return e[1]})).map((function(e){return e[0]})).join(" ").concat(t?" ".concat(t):"")}var Y=Object.create({}),J=function(){},W=function(){return null},Z=function(e){return Object.keys(e).length<1},$=function(e){return e.install=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.prefix,i=t.config.globalProperties.bkUIPrefix||r||"Bk";t.component(i+e.name,e)},e},X=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.install=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.prefix,s=r.config.globalProperties.bkUIPrefix||o||"Bk";r.component(s+e.name,e),!n&&Object.values(t).forEach((function(e){r.component(s+e.name,e)}))},Object.keys(t).forEach((function(n){e[n]=t[n]})),e};function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bk";return"".concat(t,"-").concat(e)}function ee(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,r=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=function(){var o=this,s=arguments;if(e&&clearTimeout(e),i){var a=!e;e=setTimeout((function(){e=null}),n),a&&(t=r.apply(o,s))}else e=setTimeout((function(){r.apply(o,s)}),n);return t};return o.cancel=function(){clearTimeout(e),e=null},o}function te(e,t){return JSON.parse(JSON.stringify(e,(function(e,n){if(!t.includes(e))return n})))}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}})(),o})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@popperjs/core"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["@popperjs/core","vue-types"],t);else{var n="object"==typeof exports?t(require("@popperjs/core"),require("vue-types")):t(e["@popperjs/core"],e["vue-types"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t)=>(()=>{"use strict";var n={5798:t=>{t.exports=e},210:e=>{e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,i),o.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s,a;i.r(o),i.d(o,{BKLAYERD_INDEX_EFAULT_VALUE:()=>u,BKLAYERTYPE:()=>a,BKPopover:()=>P,BkMaskManager:()=>A,EMPTY_OBJ:()=>W,Placements:()=>B,PropTypes:()=>H,Size:()=>V,arrayEqual:()=>ie,bKMaskManager:()=>N,bkPopIndexManager:()=>U,bkZIndexManager:()=>c,classes:()=>J,clone:()=>O,debounce:()=>ne,elementsEqual:()=>I,filterProperty:()=>re,finiteOrDefault:()=>b,formItemKey:()=>Y,formKey:()=>G,isArray:()=>y,isElement:()=>j,isEmpty:()=>v,isEmptyObj:()=>X,isFinite:()=>m,isNullOrUndef:()=>d,isObject:()=>g,merge:()=>T,mergeIf:()=>E,mergerFn:()=>x,mergerIfFn:()=>w,noop:()=>Z,random:()=>L,renderEmptyVNode:()=>$,resolveClassName:()=>te,scrollbarWidth:()=>K,stringEnum:()=>q,valueOrDefault:()=>k,withInstall:()=>Q,withInstallProps:()=>ee}),function(e){e.BOTTOM="bottom",e.CONTENT="content",e.NAVI="navi",e.FULLSCREEN="fullScreen",e.PLUGINS="plugins",e.MODAL="modal",e.MESSAGE="message",e.POPPER="popper"}(a||(a={}));var u=(r(s={},a.BOTTOM,0),r(s,a.CONTENT,1),r(s,a.NAVI,100),r(s,a.FULLSCREEN,1e3),r(s,a.MODAL,3e3),r(s,a.PLUGINS,8e3),r(s,a.MESSAGE,1e4),r(s,a.POPPER,99999),s),c=new(function(){function t(){e(this,t),this.storageLayerIndexValue={},this.copyDefaultValue()}return n(t,[{key:"getNextIndex",value:function(e){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,e)?(this.storageLayerIndexValue[e]=this.storageLayerIndexValue[e]+1,this.storageLayerIndexValue[e]):(this.storageLayerIndexValue[a.MODAL]=this.storageLayerIndexValue[a.MODAL]+1,this.storageLayerIndexValue[a.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(a.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(a.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(a.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(a.NAVI)}},{key:"getPopperIndex",value:function(){return u.popper}},{key:"setDefaultZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue.__proto__,n)&&Object.assign(t.storageLayerIndexValue.__proto__,r({},n,e[n]))})),this.copyDefaultValue()}},{key:"resetZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue,n)&&Object.assign(t.storageLayerIndexValue,r({},n,e[n]))}))}},{key:"copyDefaultValue",value:function(){var e=Object.keys(u).reduce((function(e,t){return Object.assign(e,r({},t,{value:u[t],writable:!0,configurable:!0}))}),{});this.storageLayerIndexValue=Object.create(u,e)}}]),t}());function l(e){return l="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},l(e)}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e){return function(e){if(Array.isArray(e))return p(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 p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(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.")}()}var h=i(5798);function d(e){return null==e}function v(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""===e||!!t&&d(e)}function y(e){if(Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function g(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var m=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function b(e,t){return m(e)?e:t}function k(e,t){return void 0===e?t:e}function I(e,t){var n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function O(e){if(y(e))return e.map(O);if(g(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,i=0;i<r;++i)t[n[i]]=O(e[n[i]]);return t}return e}function S(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function x(e,t,n,r){if(S(e)){var i=t[e],o=n[e];g(i)&&g(o)?T(i,o,r):t[e]=O(o)}}function T(e,t,n){var r=y(t)?t:[t],i=r.length;if(!g(e))return e;for(var o=(n=n||{}).merger||x,s=0;s<i;++s)if(g(t=r[s]))for(var a=Object.keys(t),u=0,c=a.length;u<c;++u)o(a[u],e,t,n);return e}function E(e,t){return T(e,t,{merger:w})}function w(e,t,n){if(S(e)){var r=t[e],i=n[e];g(r)&&g(i)?E(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=O(i))}}function j(e){try{return e instanceof HTMLElement}catch(t){return"object"===l(e)&&1===e.nodeType&&"object"===l(e.style)&&"object"===l(e.ownerDocument)}}var P=function(){function t(n,r,i){var o,s;e(this,t),this.isShow=!1,this.trigger=void 0,this.instance=void 0,this.always=!1,this.reference=void 0,this.referenceTarget=void 0,this.popperRefer=void 0,this.delay=50,this.isInnerPopper=!1,this.disabled=!1,this.afterShow=null,this.afterHidden=null,this.appendTo="parent",this.container=null,this.fixOnBoundary=!1,this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(n),this.popperRefer=this.resolveInputSelectorToHtmlElement(r),this.referenceTarget=this.getTargetReferenceElement(),this.container=null===(o=this.popperRefer)||void 0===o?void 0:o.parentElement,this.isShow=!!(null===(s=this.instanceOptions)||void 0===s?void 0:s.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden="function"==typeof i.afterHidden?i.afterHidden:function(){},this.afterShow="function"==typeof i.afterShow?i.afterShow:function(){},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}return n(t,[{key:"forceUpdate",value:function(){var e;null===(e=this.instance)||void 0===e||e.forceUpdate()}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.update()}},{key:"updateOptions",value:function(e){var t;this.instanceOptions=this.initDefaultOptions(e),this.isShow=!!(null===(t=this.instanceOptions)||void 0===t?void 0:t.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}},{key:"setOptions",value:function(e){var t;null===(t=this.instance)||void 0===t||t.setOptions(e)}},{key:"destroy",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy()}},{key:"updateDisabled",value:function(e){this.disabled=null!=e?e:!this.disabled,this.disabled&&this.hide()}},{key:"show",value:function(e){var t;this.disabled||(null===(t=this.popperRefer)||void 0===t||t.setAttribute("data-show",""),this.setOptions({modifiers:[].concat(f(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!0}])}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}},{key:"hide",value:function(){var e;this.always||(null===(e=this.popperRefer)||void 0===e||e.removeAttribute("data-show"),this.setOptions({modifiers:[].concat(f(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!1}])}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent())}},{key:"restorePopContent",value:function(){var e=this.getAppendToTarget();j(e)&&e.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}},{key:"appendToTarget",value:function(){var e=this.getAppendToTarget();j(e)&&e.contains(this.popperRefer)&&e.append(this.popperRefer)}},{key:"getAppendToTarget",value:function(){var e=this.appendTo,t=e;return"parent"!==e&&"string"==typeof e&&(t=document.querySelector(e)),t}},{key:"initDefaultOptions",value:function(e){var t=this,n=T({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},e||{}),r=n.onFirstUpdate;return n.onFirstUpdate=function(e){"function"==typeof r&&(r.call(t,e),t.handleFirstUpdate())},n}},{key:"handleFirstUpdate",value:function(){this.fixOnBoundary&&this.appendToTarget()}},{key:"getTargetReferenceElement",value:function(){return this.isElement(this.reference)&&1===this.reference.childElementCount?this.reference.firstElementChild:this.reference}},{key:"initInstance",value:function(){var e,t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=(0,h.createPopper)(this.referenceTarget,this.popperRefer,this.instanceOptions),null===(e=this.popperRefer)||void 0===e||e.setAttribute("data-theme",null!==(t=this.instanceOptions.theme)&&void 0!==t?t:"dark")):console.error("reference or popperRefer is null, please check html element."))}},{key:"resolveInputSelectorToHtmlElement",value:function(e){if(this.isElement(e))return e;if("string"==typeof e)return document.querySelector(e);if("object"===l(e)){if(Object.prototype.hasOwnProperty.call(e,"getBoundingClientRect"))return e}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}},{key:"isElement",value:function(e){return j(e)}},{key:"registerEvents",value:function(){var e=this;this.isElement(this.referenceTarget)&&"hover"===this.trigger&&(["mouseenter","focus"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(n){"mouseenter"===t&&(e.isInnerPopper=!0),e.show(n)}))})),["mouseleave","blur"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(){e.isInnerPopper=!1,setTimeout((function(){!e.isInnerPopper&&e.hide()}),e.delay)}))})),this.isElement(this.popperRefer)&&["mouseenter","mouseleave"].forEach((function(t){e.popperRefer.addEventListener(t,(function(){"mouseenter"===t&&(e.isInnerPopper=!0),"mouseleave"===t&&e.hide()}))}))),"click"===this.trigger&&["click"].forEach((function(t){document.body.addEventListener(t,(function(t){e.isSameElement(t.target,e.reference)||e.reference.contains(t.target)?e.show(t):e.isShow&&!e.isSameElement(t.target,e.popperRefer)&&e.hide()}))}))}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),t}(),M="abcdefghijklmnopqrstuvwxyz0123456789",L=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M,n="",r=0;r<e;r++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},A=function(){function t(n){e(this,t),this.multiInstance=!1,this.uniqueMaskAttrTag="",this.parentNode=document.body,this.activeInstance=void 0,this.zIndexStore=new Map,this.lastUUID=null,this.maskStyle={position:"absolute",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"};var r=n||{},i=r.multiInstance,o=void 0!==i&&i,s=r.maskAttrTag,a=void 0===s?"auto":s,u=r.parentNode,c=void 0===u?document.body:u,l=r.maskStyle,p=void 0===l?{}:l;this.activeInstance=void 0,this.multiInstance=o,this.uniqueMaskAttrTag=this.getMaskAttrTag(a),this.parentNode=c||document,this.mask=this.getMask(),this.backupMask=this.createMask("data-bk-backup-uid"),this.setMaskStyle(Object.assign({},this.maskStyle,p))}return n(t,[{key:"show",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=null!=i?i:L(16),a=/-?\d+/.test("".concat(t))?t:c.getModalNextIndex(),u=Object.assign({},this.maskStyle,r||{});if(!n&&this.lastUUID){var l=this.zIndexStore.get(this.lastUUID);u=l.style}this.storeMaskInsCfg({zIndex:a,style:Object.assign({},u),uuid:s,preUID:this.lastUUID}),this.setMaskStyle(u),this.mask.style.setProperty("display","block"),this.mask.style.setProperty("z-index","".concat(a)),this.backupMask.style.setProperty("z-index","".concat(a-1)),e&&(o&&e.style.setProperty("z-index","".concat(a+1)),this.activeInstance=e,o||this.appendContentToMask(e))}},{key:"hide",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=null!=r?r:this.lastUUID;this.mask.style.setProperty("display","none"),t||(null==n||n.remove(),null===(e=this.activeInstance)||void 0===e||e.remove()),this.activeInstance=void 0,this.popIndexStore(i)}},{key:"storeMaskInsCfg",value:function(e){return this.zIndexStore.set(e.uuid,e),this.lastUUID=e.uuid,this.zIndexStore.get(e.uuid)}},{key:"popIndexStore",value:function(e){if(this.zIndexStore.has(e)){var t=this.zIndexStore.get(e);return this.lastUUID=t.preUID,this.zIndexStore.delete(e)}return this.lastUUID=null,!1}},{key:"backupActiveInstance",value:function(){this.activeInstance&&this.backupMask.append(this.activeInstance)}},{key:"backupContentElement",value:function(e){e&&this.backupMask.append(e)}},{key:"getActiveContentInstance",value:function(){return this.activeInstance}},{key:"getMask",value:function(){if(this.multiInstance)return this.createMask();var e=this.parentNode.querySelector("[data-bkmask-uid='".concat(this.uniqueMaskAttrTag,"']"));return e||(e=this.createMask()),e}},{key:"createMask",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-bk-mask-uid",t=document.createElement("div");return t.setAttribute(e,this.uniqueMaskAttrTag),this.parentNode.append(t),t}},{key:"setMaskStyle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.mask&&Object.entries(t).forEach((function(t){return e.mask.style.setProperty(t[0],t[1])}))}},{key:"getMaskAttrTag",value:function(e){return/^(auto|\s+)$/i.test(e)||null==e||""===e?"__bk_mask_".concat(L(16)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),t}(),N=new A({}),U=new(function(){function t(){e(this,t),this.popInstanceList=[],this.uuidAttrName="data-bk-pop-uuid"}return n(t,[{key:"show",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e){var i=c.getModalNextIndex(),o=L(16);e.setAttribute(this.uuidAttrName,o),this.popInstanceList.push({uuid:o,zIndex:i,content:e,showMask:t,appendStyle:n}),t&&N.backupActiveInstance(),N.show(e,i,t,n,o,r)}else console.warn("pop show error: content is null or undefined")}},{key:"popHide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.popInstanceList.length){if(e){var t=this.popInstanceList.pop();N.popIndexStore(t.uuid),t.remove()}if(this.popInstanceList.length){var n=this.popInstanceList.slice(-1)[0],r=n.zIndex,i=n.content,o=n.showMask,s=n.appendStyle,a=n.uuid;N.show(i,r,o,s,a)}else N.hide()}}},{key:"hide",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null==e?void 0:e.getAttribute(this.uuidAttrName);if(n){var r=this.popInstanceList.findIndex((function(e){return e.uuid===n}));r>=0&&(t||this.popInstanceList[r].content.remove(),this.popInstanceList.splice(r,1),N.popIndexStore(n),this.popInstanceList.length?this.popHide(!1):N.hide(t))}else null==e||e.remove()}}]),t}());function R(e,t){return R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},R(e,t)}function D(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var C=i(210);var V,B,z=(0,C.createTypes)({});function q(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))}!function(e){e.Small="small",e.Large="large"}(V||(V={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(B||(B={}));var F,H=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(s,t);var r,i,o=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_(r);if(i){var n=_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return D(this,e)});function s(){return e(this,s),o.apply(this,arguments)}return n(s,null,[{key:"size",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["small","default","large"];return(0,C.toType)("Size",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid size, ".concat(t,", the size must be one of 【").concat(e.join(" | "),"】")),1))},default:"default"})}},{key:"theme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["primary","warning","success","danger"];return(0,C.toType)("Theme",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))}})}},{key:"placement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top","left","right","bottom"];return(0,C.toType)("Placements",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid placements, ".concat(t,", the placement must be one of 【").concat(e.join(" | "),"】")),1))},default:"top"})}},{key:"commonType",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"commonType";return(0,C.toType)(t.replace(/^\S/,(function(e){return e.toUpperCase()})),{type:String,validator:function(n){var r=e.includes(n);return r||console.error("invalid ".concat(t,", ").concat(n,", the ").concat(t," must be one of 【").concat(e.join(" | "),"】")),r},default:e[0]})}},{key:"style",value:function(){return(0,C.toType)("Style",{type:[String,Object]})}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top-left","top-right","bottom-left","bottom-right"];return(0,C.toType)("positions",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid positions, ".concat(t,", the position must be one of 【").concat(e.join(" | "),"】")),1))},default:"top-center"})}}]),s}(z);function K(){if(void 0!==F)return F;var e=document.createElement("div");e.className="bk-scrollbar-wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),F=t-r}var G=Symbol("form"),Y=Symbol("formItem");function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(e).filter((function(e){return e[1]})).map((function(e){return e[0]})).join(" ").concat(t?" ".concat(t):"")}var W=Object.create({}),Z=function(){},$=function(){return null},X=function(e){return Object.keys(e).length<1},Q=function(e){return e.install=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.prefix,i=t.config.globalProperties.bkUIPrefix||r||"Bk";t.component(i+e.name,e)},e},ee=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.install=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.prefix,s=r.config.globalProperties.bkUIPrefix||o||"Bk";r.component(s+e.name,e),!n&&Object.values(t).forEach((function(e){r.component(s+e.name,e)}))},Object.keys(t).forEach((function(n){e[n]=t[n]})),e};function te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bk";return"".concat(t,"-").concat(e)}function ne(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,r=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=function(){var o=this,s=arguments;if(e&&clearTimeout(e),i){var a=!e;e=setTimeout((function(){e=null}),n),a&&(t=r.apply(o,s))}else e=setTimeout((function(){r.apply(o,s)}),n);return t};return o.cancel=function(){clearTimeout(e),e=null},o}function re(e,t){return JSON.parse(JSON.stringify(e,(function(e,n){if(!t.includes(e))return n})))}function ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}})(),o})()));
@@ -0,0 +1,2 @@
1
+ export declare const formKey: unique symbol;
2
+ export declare const formItemKey: unique symbol;
@@ -94,6 +94,10 @@ export declare type ElementType<T extends ReadonlyArray<unknown>> = T extends Re
94
94
  export declare function stringEnum<T extends string>(o: Array<T>): {
95
95
  [K in T]: K;
96
96
  };
97
+ declare type UnionToIntersection<T> = (T extends any ? (v: T) => void : never) extends (v: infer V) => void ? V : never;
98
+ declare type LastOf<T> = UnionToIntersection<T extends any ? () => T : never> extends () => infer R ? R : never;
99
+ declare type Push<T extends any[], V> = [...T, V];
100
+ export declare type UnionToArrayType<T, L = LastOf<T>, N = [T] extends [never] ? true : false> = N extends true ? [] : Push<UnionToArrayType<Exclude<T, L>>, L>;
97
101
  export declare enum Size {
98
102
  Small = "small",
99
103
  Large = "large"