bkui-vue 0.0.1-beta.157 → 0.0.1-beta.158

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.
@@ -86,6 +86,11 @@ declare const _default: import("vue").DefineComponent<{
86
86
  } & {
87
87
  default: string;
88
88
  };
89
+ searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
90
+ default: string;
91
+ } & {
92
+ default: string;
93
+ };
89
94
  selectAllText: import("vue-types").VueTypeValidableDef<string> & {
90
95
  default: string;
91
96
  } & {
@@ -142,6 +147,11 @@ declare const _default: import("vue").DefineComponent<{
142
147
  } & {
143
148
  default: boolean;
144
149
  };
150
+ inputSearch: import("vue-types").VueTypeValidableDef<boolean> & {
151
+ default: boolean;
152
+ } & {
153
+ default: boolean;
154
+ };
145
155
  }, {
146
156
  selected: import("vue").Ref<{
147
157
  value: string;
@@ -156,6 +166,8 @@ declare const _default: import("vue").DefineComponent<{
156
166
  popperWidth: import("vue").Ref<string | number>;
157
167
  inputRef: import("vue").Ref<HTMLElement>;
158
168
  triggerRef: import("vue").Ref<HTMLElement>;
169
+ contentRef: import("vue").Ref<HTMLElement>;
170
+ searchRef: import("vue").Ref<HTMLElement>;
159
171
  selectTagInputRef: import("vue").Ref<{
160
172
  $: import("vue").ComponentInternalInstance;
161
173
  $data: {};
@@ -190,7 +202,6 @@ declare const _default: import("vue").DefineComponent<{
190
202
  };
191
203
  modelValue: import("vue-types").VueTypeValidableDef<any>;
192
204
  }>> & {
193
- onFocus?: (...args: any[]) => any;
194
205
  onEnter?: (...args: any[]) => any;
195
206
  "onUpdate:modelValue"?: (...args: any[]) => any;
196
207
  onRemove?: (...args: any[]) => any;
@@ -206,7 +217,7 @@ declare const _default: import("vue").DefineComponent<{
206
217
  }>;
207
218
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
208
219
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
209
- $emit: (event: "focus" | "update:modelValue" | "remove" | "enter", ...args: any[]) => void;
220
+ $emit: (event: "update:modelValue" | "remove" | "enter", ...args: any[]) => void;
210
221
  $el: any;
211
222
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
212
223
  selected: {
@@ -233,7 +244,6 @@ declare const _default: import("vue").DefineComponent<{
233
244
  };
234
245
  modelValue: import("vue-types").VueTypeValidableDef<any>;
235
246
  }>> & {
236
- onFocus?: (...args: any[]) => any;
237
247
  onEnter?: (...args: any[]) => any;
238
248
  "onUpdate:modelValue"?: (...args: any[]) => any;
239
249
  onRemove?: (...args: any[]) => any;
@@ -241,12 +251,11 @@ declare const _default: import("vue").DefineComponent<{
241
251
  value: any;
242
252
  inputRef: import("vue").Ref<HTMLElement>;
243
253
  handleRemoveTag: (val: string) => void;
244
- handleFocus: () => void;
245
254
  focus: () => void;
246
255
  handleInput: (e: any) => void;
247
256
  handleKeydown: (e: any) => void;
248
257
  handleGetLabelByValue: (item: ISelected) => string;
249
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "update:modelValue" | "remove" | "enter")[], string, {
258
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "remove" | "enter")[], string, {
250
259
  placeholder: string;
251
260
  selected: ISelected[];
252
261
  tagTheme: string;
@@ -297,7 +306,6 @@ declare const _default: import("vue").DefineComponent<{
297
306
  };
298
307
  modelValue: import("vue-types").VueTypeValidableDef<any>;
299
308
  }>> & {
300
- onFocus?: (...args: any[]) => any;
301
309
  onEnter?: (...args: any[]) => any;
302
310
  "onUpdate:modelValue"?: (...args: any[]) => any;
303
311
  onRemove?: (...args: any[]) => any;
@@ -305,7 +313,6 @@ declare const _default: import("vue").DefineComponent<{
305
313
  value: any;
306
314
  inputRef: import("vue").Ref<HTMLElement>;
307
315
  handleRemoveTag: (val: string) => void;
308
- handleFocus: () => void;
309
316
  focus: () => void;
310
317
  handleInput: (e: any) => void;
311
318
  handleKeydown: (e: any) => void;
@@ -321,7 +328,8 @@ declare const _default: import("vue").DefineComponent<{
321
328
  searchKey: import("vue").Ref<string>;
322
329
  setHover: () => void;
323
330
  cancelHover: () => void;
324
- handleFocus: (e: FocusEvent) => void;
331
+ handleFocus: () => void;
332
+ handleBlur: () => void;
325
333
  handleTogglePopover: () => void;
326
334
  handleClear: (e: Event) => void;
327
335
  hidePopover: () => void;
@@ -424,6 +432,11 @@ declare const _default: import("vue").DefineComponent<{
424
432
  } & {
425
433
  default: string;
426
434
  };
435
+ searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
436
+ default: string;
437
+ } & {
438
+ default: string;
439
+ };
427
440
  selectAllText: import("vue-types").VueTypeValidableDef<string> & {
428
441
  default: string;
429
442
  } & {
@@ -480,6 +493,11 @@ declare const _default: import("vue").DefineComponent<{
480
493
  } & {
481
494
  default: boolean;
482
495
  };
496
+ inputSearch: import("vue-types").VueTypeValidableDef<boolean> & {
497
+ default: boolean;
498
+ } & {
499
+ default: boolean;
500
+ };
483
501
  }>> & {
484
502
  onFocus?: (...args: any[]) => any;
485
503
  onBlur?: (...args: any[]) => any;
@@ -516,9 +534,11 @@ declare const _default: import("vue").DefineComponent<{
516
534
  noDataText: string;
517
535
  noMatchText: string;
518
536
  loadingText: string;
537
+ searchPlaceholder: string;
519
538
  selectAllText: string;
520
539
  scrollLoading: boolean;
521
540
  customContent: boolean;
522
541
  displayKey: string;
542
+ inputSearch: boolean;
523
543
  }>;
524
544
  export default _default;
@@ -18,6 +18,29 @@
18
18
  line-height: 18px;
19
19
  }
20
20
 
21
+ .input() {
22
+ width: 100%;
23
+ height: 32px;
24
+ padding: 0 28px 0 10px;
25
+ line-height: normal;
26
+ color: @default-color;
27
+ text-align: left;
28
+ vertical-align: middle;
29
+ cursor: pointer;
30
+ background-color: @white-color;
31
+ border: 1px solid @light-gray;
32
+ border-radius: 2px;
33
+ outline: none;
34
+ box-sizing: border-box;
35
+ transition: all .1s;
36
+ resize: none;
37
+ .ellipsis();
38
+
39
+ &::placeholder {
40
+ color: @light-gray;
41
+ }
42
+ }
43
+
21
44
  .@{bk-prefix}-select {
22
45
  .bk-select-icon(@fontSize: 20px, @color: #979ba5) {
23
46
  display: flex;
@@ -60,29 +83,6 @@
60
83
  .ml(5px)
61
84
  }
62
85
 
63
- .input {
64
- width: 100%;
65
- height: 32px;
66
- padding: 0 28px 0 10px;
67
- line-height: normal;
68
- color: @default-color;
69
- text-align: left;
70
- vertical-align: middle;
71
- cursor: pointer;
72
- background-color: @white-color;
73
- border: 1px solid @light-gray;
74
- border-radius: 2px;
75
- outline: none;
76
- box-sizing: border-box;
77
- transition: all .1s;
78
- resize: none;
79
- .ellipsis();
80
-
81
- &::placeholder {
82
- color: @light-gray;
83
- }
84
- }
85
-
86
86
  ul {
87
87
  padding: 0;
88
88
  margin: 0;
@@ -103,6 +103,21 @@
103
103
  }
104
104
  }
105
105
 
106
+ &.is-focus .bk-input--default {
107
+ border-color: @primary-color;
108
+ outline: 0;
109
+ box-shadow: 0px 0px 3px 0px @input-shadow-color;
110
+
111
+ &.is-simplicity {
112
+ border-color: transparent;
113
+ border-bottom-color: @primary-color;
114
+ box-shadow: none;
115
+ .@{bk-prefix}-input--text {
116
+ background-color: @input-block-color;
117
+ }
118
+ }
119
+ }
120
+
106
121
  &.popover-show {
107
122
  .bk-select-trigger .angle-up {
108
123
  transform: rotate(0);
@@ -200,6 +215,9 @@
200
215
  &.@{bk-prefix}-pop2-content {
201
216
  &.bk-select-popover {
202
217
  padding: 0;
218
+ border: 1px solid @disable-color;
219
+ border-radius: 2px;
220
+ box-shadow: 0 2px 6px 0 rgba(0,0,0,.10);
203
221
 
204
222
  .bk-select-content {
205
223
  .bk-select-empty {
@@ -237,7 +255,7 @@
237
255
  }
238
256
 
239
257
  .bk-select-options {
240
- padding: 8px 0;
258
+ padding: 4px 0;
241
259
  }
242
260
 
243
261
  .bk-select-option {
@@ -357,6 +375,26 @@
357
375
  padding-left: 24px;
358
376
  }
359
377
  }
378
+
379
+ .bk-select-search-wrapper {
380
+ display: flex;
381
+ margin: 4px 8px 0 8px;
382
+ margin-top: 4px;
383
+ border-bottom: 1px solid @input-block-hover-color;
384
+ align-items: center;
385
+
386
+ .icon-search {
387
+ margin-left: 2px;
388
+ color: @gray-color;
389
+ }
390
+
391
+ .bk-select-search-input {
392
+ .input();
393
+ padding: 0 8px;
394
+ cursor: text;
395
+ border: none;
396
+ }
397
+ }
360
398
  }
361
399
  }
362
400
  }
@@ -138,29 +138,6 @@
138
138
  .bk-select .ml5 {
139
139
  margin-left: 5px;
140
140
  }
141
- .bk-select .input {
142
- width: 100%;
143
- height: 32px;
144
- padding: 0 28px 0 10px;
145
- line-height: normal;
146
- color: var(--default-color);
147
- text-align: left;
148
- vertical-align: middle;
149
- cursor: pointer;
150
- background-color: var(--white-color);
151
- border: 1px solid var(--light-gray);
152
- border-radius: 2px;
153
- outline: none;
154
- box-sizing: border-box;
155
- transition: all 0.1s;
156
- resize: none;
157
- overflow: hidden;
158
- text-overflow: ellipsis;
159
- white-space: nowrap;
160
- }
161
- .bk-select .input::placeholder {
162
- color: var(--light-gray);
163
- }
164
141
  .bk-select ul {
165
142
  padding: 0;
166
143
  margin: 0;
@@ -174,6 +151,19 @@
174
151
  border-color: var(--primary-color);
175
152
  box-shadow: 0px 0px 3px 0px #a3c5fd;
176
153
  }
154
+ .bk-select.is-focus .bk-input--default {
155
+ border-color: var(--primary-color);
156
+ outline: 0;
157
+ box-shadow: 0px 0px 3px 0px var(--input-shadow-color);
158
+ }
159
+ .bk-select.is-focus .bk-input--default.is-simplicity {
160
+ border-color: transparent;
161
+ border-bottom-color: var(--primary-color);
162
+ box-shadow: none;
163
+ }
164
+ .bk-select.is-focus .bk-input--default.is-simplicity .bk-input--text {
165
+ background-color: var(--input-block-color);
166
+ }
177
167
  .bk-select.popover-show .bk-select-trigger .angle-up {
178
168
  transform: rotate(0);
179
169
  }
@@ -311,6 +301,9 @@
311
301
  }
312
302
  .bk-popover2.bk-pop2-content.bk-select-popover {
313
303
  padding: 0;
304
+ border: 1px solid var(--disable-color);
305
+ border-radius: 2px;
306
+ box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
314
307
  }
315
308
  .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-empty {
316
309
  display: flex;
@@ -345,7 +338,7 @@
345
338
  border-radius: 0 0 2px 2px;
346
339
  }
347
340
  .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-options {
348
- padding: 8px 0;
341
+ padding: 4px 0;
349
342
  }
350
343
  .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option {
351
344
  position: relative;
@@ -444,3 +437,40 @@
444
437
  .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group .bk-select-option {
445
438
  padding-left: 24px;
446
439
  }
440
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-search-wrapper {
441
+ display: flex;
442
+ margin: 4px 8px 0 8px;
443
+ margin-top: 4px;
444
+ border-bottom: 1px solid var(--input-block-hover-color);
445
+ align-items: center;
446
+ }
447
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-search-wrapper .icon-search {
448
+ margin-left: 2px;
449
+ color: var(--gray-color);
450
+ }
451
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-search-wrapper .bk-select-search-input {
452
+ width: 100%;
453
+ height: 32px;
454
+ padding: 0 28px 0 10px;
455
+ line-height: normal;
456
+ color: var(--default-color);
457
+ text-align: left;
458
+ vertical-align: middle;
459
+ cursor: pointer;
460
+ background-color: var(--white-color);
461
+ border: 1px solid var(--light-gray);
462
+ border-radius: 2px;
463
+ outline: none;
464
+ box-sizing: border-box;
465
+ transition: all 0.1s;
466
+ resize: none;
467
+ overflow: hidden;
468
+ text-overflow: ellipsis;
469
+ white-space: nowrap;
470
+ padding: 0 8px;
471
+ cursor: text;
472
+ border: none;
473
+ }
474
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-search-wrapper .bk-select-search-input::placeholder {
475
+ color: var(--light-gray);
476
+ }
@@ -28,12 +28,11 @@ declare const _default: import("vue").DefineComponent<{
28
28
  value: any;
29
29
  inputRef: import("vue").Ref<HTMLElement>;
30
30
  handleRemoveTag: (val: string) => void;
31
- handleFocus: () => void;
32
31
  focus: () => void;
33
32
  handleInput: (e: any) => void;
34
33
  handleKeydown: (e: any) => void;
35
34
  handleGetLabelByValue: (item: ISelected) => string;
36
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "update:modelValue" | "remove" | "enter")[], "focus" | "update:modelValue" | "remove" | "enter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "remove" | "enter")[], "update:modelValue" | "remove" | "enter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
37
36
  selected: {
38
37
  type: PropType<ISelected[]>;
39
38
  default: () => any[];
@@ -58,7 +57,6 @@ declare const _default: import("vue").DefineComponent<{
58
57
  };
59
58
  modelValue: import("vue-types/dist/types").VueTypeValidableDef<any>;
60
59
  }>> & {
61
- onFocus?: (...args: any[]) => any;
62
60
  onEnter?: (...args: any[]) => any;
63
61
  "onUpdate:modelValue"?: (...args: any[]) => any;
64
62
  onRemove?: (...args: any[]) => any;
@@ -0,0 +1,2 @@
1
+ export declare const on: (element: any, event: any, handler: any) => void;
2
+ export declare const off: (element: any, event: any, handler: any) => void;
@@ -35,6 +35,7 @@ export * from './utils';
35
35
  export * from './token';
36
36
  export * from './hooks/use-form';
37
37
  export * from './hooks/use-form-item';
38
+ export * from './dom';
38
39
  export declare function classes(dynamicCls: object, constCls?: string): string;
39
40
  export declare const EMPTY_OBJ: any;
40
41
  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("lodash"),require("vue-types"),require("vue"));else if("function"==typeof define&&define.amd)define(["@popperjs/core","lodash","vue-types","vue"],t);else{var n="object"==typeof exports?t(require("@popperjs/core"),require("lodash"),require("vue-types"),require("vue")):t(e["@popperjs/core"],e.lodash,e["vue-types"],e.vue);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r)=>(()=>{var i={8022:(e,t,n)=>{var r=n(4481),i=n(6426),o=i;o.v1=r,o.v4=i,e.exports=o},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,i=t;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},4481:(e,t,n)=>{var r,i,o=n(9157),s=n(8725),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],p=(e=e||{}).node||r,f=void 0!==e.clockseq?e.clockseq:i;if(null==p||null==f){var d=o();null==p&&(p=r=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==f&&(f=i=16383&(d[6]<<8|d[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,y=h-a+(v-u)/1e4;if(y<0&&void 0===e.clockseq&&(f=f+1&16383),(y<0||h>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,u=v,i=f;var g=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var m=h/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=f>>>8|128,l[c++]=255&f;for(var b=0;b<6;++b)l[c+b]=p[b];return t||s(l)}},6426:(e,t,n)=>{var r=n(9157),i=n(8725);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},5798:t=>{"use strict";t.exports=e},467:e=>{"use strict";e.exports=t},748:e=>{"use strict";e.exports=r},210:e=>{"use strict";e.exports=n}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e](n,n.exports,s),n.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";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 i,o;s.r(a),s.d(a,{BKLAYERD_INDEX_EFAULT_VALUE:()=>u,BKLAYERTYPE:()=>o,BKPopover:()=>P,BkMaskManager:()=>D,EMPTY_OBJ:()=>ie,Placements:()=>G,PropTypes:()=>Z,Size:()=>K,arrayEqual:()=>de,bKMaskManager:()=>_,bkPopIndexManager:()=>q,bkZIndexManager:()=>c,classes:()=>re,clone:()=>x,debounce:()=>pe,elementsEqual:()=>O,filterProperty:()=>fe,finiteOrDefault:()=>k,formItemKey:()=>Q,formKey:()=>X,getPopContainerId:()=>L,isArray:()=>g,isElement:()=>M,isEmpty:()=>y,isEmptyObj:()=>ae,isFinite:()=>b,isNullOrUndef:()=>v,isObject:()=>m,merge:()=>T,mergeIf:()=>E,mergerFn:()=>w,mergerIfFn:()=>j,noop:()=>oe,observerResize:()=>C,random:()=>U,renderEmptyVNode:()=>se,resolveClassName:()=>le,scrollbarWidth:()=>$,stringEnum:()=>J,useForm:()=>te,useFormItem:()=>ne,valueOrDefault:()=>I,withInstall:()=>ue,withInstallProps:()=>ce}),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"}(o||(o={}));var u=(r(i={},o.BOTTOM,0),r(i,o.CONTENT,1),r(i,o.NAVI,100),r(i,o.FULLSCREEN,1e3),r(i,o.MODAL,3e3),r(i,o.PLUGINS,8e3),r(i,o.MESSAGE,1e4),r(i,o.POPPER,99999),i),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[o.MODAL]=this.storageLayerIndexValue[o.MODAL]+1,this.storageLayerIndexValue[o.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(o.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(o.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(o.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(o.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 d=s(8022),h=s(5798);function v(e){return null==e}function y(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""===e||!!t&&v(e)}function g(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 m(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var b=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function k(e,t){return b(e)?e:t}function I(e,t){return void 0===e?t:e}function O(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 x(e){if(g(e))return e.map(x);if(m(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,i=0;i<r;++i)t[n[i]]=x(e[n[i]]);return t}return e}function S(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function w(e,t,n,r){if(S(e)){var i=t[e],o=n[e];m(i)&&m(o)?T(i,o,r):t[e]=x(o)}}function T(e,t,n){var r=g(t)?t:[t],i=r.length;if(!m(e))return e;for(var o=(n=n||{}).merger||w,s=0;s<i;++s)if(m(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:j})}function j(e,t,n){if(S(e)){var r=t[e],i=n[e];m(r)&&m(i)?E(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=x(i))}}function M(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();M(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();M(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 M(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.popperRefer.contains(t.target)||e.hide()}))}))}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),t}(),A=null,L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#";if(null===A){A="id_".concat((0,d.v4)());var t=document.createElement("div");t.setAttribute("id",A),t.setAttribute("data-popper-id",A),document.body.append(t)}return"".concat(e).concat(A)},R=s(467),N="abcdefghijklmnopqrstuvwxyz0123456789",U=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N,n="",r=0;r<e;r++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},C=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=(0,R.throttle)((function(){"function"==typeof t&&t()}),n),o=new ResizeObserver((function(){i()}));return r&&"function"==typeof t&&t(),{start:function(){o.observe(e)},stop:function(){o.disconnect(),o.unobserve(e)}}},D=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:U(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(U(16)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),t}(),_=new D({}),V=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],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;if(e){var o="number"==typeof i?i:c.getModalNextIndex(),s=U(16);e.setAttribute(this.uuidAttrName,s),this.popInstanceList.push({uuid:s,zIndex:o,content:e,showMask:t,appendStyle:n}),t&&_.backupActiveInstance(),_.show(e,o,t,n,s,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();_.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;_.show(i,r,o,s,a)}else _.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),_.popIndexStore(n),this.popInstanceList.length?this.popHide(!1):_.hide(t))}else null==e||e.remove()}}]),t}(),q=new V;function z(e,t){return z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},z(e,t)}function B(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 F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}var H=s(210);var K,G,Y=(0,H.createTypes)({});function J(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))}!function(e){e.Small="small",e.Large="large"}(K||(K={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(G||(G={}));var W,Z=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&&z(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=F(r);if(i){var n=F(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return B(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,H.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,H.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,H.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,H.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,H.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,H.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}(Y);function $(){if(void 0!==W)return W;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),W=t-r}var X=Symbol("form"),Q=Symbol("formItem"),ee=s(748),te=function(){return(0,ee.inject)(X)},ne=function(){return(0,ee.inject)(Q,ie)};function re(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 ie=Object.create({}),oe=function(){},se=function(){return null},ae=function(e){return Object.keys(e).length<1},ue=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},ce=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 le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bk";return"".concat(t,"-").concat(e)}function pe(){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 fe(e,t){return JSON.parse(JSON.stringify(e,(function(e,n){if(!t.includes(e))return n})))}function de(){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}})(),a})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@popperjs/core"),require("lodash"),require("vue-types"),require("vue"));else if("function"==typeof define&&define.amd)define(["@popperjs/core","lodash","vue-types","vue"],t);else{var n="object"==typeof exports?t(require("@popperjs/core"),require("lodash"),require("vue-types"),require("vue")):t(e["@popperjs/core"],e.lodash,e["vue-types"],e.vue);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r)=>(()=>{var o={8022:(e,t,n)=>{var r=n(4481),o=n(6426),i=o;i.v1=r,i.v4=o,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,o=t;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},4481:(e,t,n)=>{var r,o,i=n(9157),s=n(8725),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],p=(e=e||{}).node||r,f=void 0!==e.clockseq?e.clockseq:o;if(null==p||null==f){var d=i();null==p&&(p=r=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==f&&(f=o=16383&(d[6]<<8|d[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,y=h-a+(v-u)/1e4;if(y<0&&void 0===e.clockseq&&(f=f+1&16383),(y<0||h>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,u=v,o=f;var g=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var m=h/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=f>>>8|128,l[c++]=255&f;for(var b=0;b<6;++b)l[c+b]=p[b];return t||s(l)}},6426:(e,t,n)=>{var r=n(9157),o=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[i+a]=s[a];return t||o(s)}},5798:t=>{"use strict";t.exports=e},467:e=>{"use strict";e.exports=t},748:e=>{"use strict";e.exports=r},210:e=>{"use strict";e.exports=n}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e](n,n.exports,s),n.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";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 o,i;s.r(a),s.d(a,{BKLAYERD_INDEX_EFAULT_VALUE:()=>u,BKLAYERTYPE:()=>i,BKPopover:()=>P,BkMaskManager:()=>D,EMPTY_OBJ:()=>se,Placements:()=>G,PropTypes:()=>Z,Size:()=>K,arrayEqual:()=>ve,bKMaskManager:()=>_,bkPopIndexManager:()=>q,bkZIndexManager:()=>c,classes:()=>ie,clone:()=>x,debounce:()=>de,elementsEqual:()=>O,filterProperty:()=>he,finiteOrDefault:()=>k,formItemKey:()=>Q,formKey:()=>X,getPopContainerId:()=>L,isArray:()=>g,isElement:()=>M,isEmpty:()=>y,isEmptyObj:()=>ce,isFinite:()=>b,isNullOrUndef:()=>v,isObject:()=>m,merge:()=>E,mergeIf:()=>T,mergerFn:()=>w,mergerIfFn:()=>j,noop:()=>ae,observerResize:()=>C,off:()=>oe,on:()=>re,random:()=>U,renderEmptyVNode:()=>ue,resolveClassName:()=>fe,scrollbarWidth:()=>$,stringEnum:()=>J,useForm:()=>te,useFormItem:()=>ne,valueOrDefault:()=>I,withInstall:()=>le,withInstallProps:()=>pe}),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"}(i||(i={}));var u=(r(o={},i.BOTTOM,0),r(o,i.CONTENT,1),r(o,i.NAVI,100),r(o,i.FULLSCREEN,1e3),r(o,i.MODAL,3e3),r(o,i.PLUGINS,8e3),r(o,i.MESSAGE,1e4),r(o,i.POPPER,99999),o),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[i.MODAL]=this.storageLayerIndexValue[i.MODAL]+1,this.storageLayerIndexValue[i.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(i.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(i.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(i.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(i.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 d=s(8022),h=s(5798);function v(e){return null==e}function y(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""===e||!!t&&v(e)}function g(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 m(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var b=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function k(e,t){return b(e)?e:t}function I(e,t){return void 0===e?t:e}function O(e,t){var n,r,o,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(o=e[n],i=t[n],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function x(e){if(g(e))return e.map(x);if(m(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,o=0;o<r;++o)t[n[o]]=x(e[n[o]]);return t}return e}function S(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function w(e,t,n,r){if(S(e)){var o=t[e],i=n[e];m(o)&&m(i)?E(o,i,r):t[e]=x(i)}}function E(e,t,n){var r=g(t)?t:[t],o=r.length;if(!m(e))return e;for(var i=(n=n||{}).merger||w,s=0;s<o;++s)if(m(t=r[s]))for(var a=Object.keys(t),u=0,c=a.length;u<c;++u)i(a[u],e,t,n);return e}function T(e,t){return E(e,t,{merger:j})}function j(e,t,n){if(S(e)){var r=t[e],o=n[e];m(r)&&m(o)?T(r,o):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=x(o))}}function M(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,o){var i,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(o),this.reference=this.resolveInputSelectorToHtmlElement(n),this.popperRefer=this.resolveInputSelectorToHtmlElement(r),this.referenceTarget=this.getTargetReferenceElement(),this.container=null===(i=this.popperRefer)||void 0===i?void 0:i.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 o.afterHidden?o.afterHidden:function(){},this.afterShow="function"==typeof o.afterShow?o.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();M(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();M(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=E({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 M(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.popperRefer.contains(t.target)||e.hide()}))}))}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),t}(),A=null,L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#";if(null===A){A="id_".concat((0,d.v4)());var t=document.createElement("div");t.setAttribute("id",A),t.setAttribute("data-popper-id",A),document.body.append(t)}return"".concat(e).concat(A)},R=s(467),N="abcdefghijklmnopqrstuvwxyz0123456789",U=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N,n="",r=0;r<e;r++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},C=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=(0,R.throttle)((function(){"function"==typeof t&&t()}),n),i=new ResizeObserver((function(){o()}));return r&&"function"==typeof t&&t(),{start:function(){i.observe(e)},stop:function(){i.disconnect(),i.unobserve(e)}}},D=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||{},o=r.multiInstance,i=void 0!==o&&o,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=i,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]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=null!=o?o:U(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&&(i&&e.style.setProperty("z-index","".concat(a+1)),this.activeInstance=e,i||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,o=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(o)}},{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(U(16)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),t}(),_=new D({}),V=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],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;if(e){var i="number"==typeof o?o:c.getModalNextIndex(),s=U(16);e.setAttribute(this.uuidAttrName,s),this.popInstanceList.push({uuid:s,zIndex:i,content:e,showMask:t,appendStyle:n}),t&&_.backupActiveInstance(),_.show(e,i,t,n,s,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();_.popIndexStore(t.uuid),t.remove()}if(this.popInstanceList.length){var n=this.popInstanceList.slice(-1)[0],r=n.zIndex,o=n.content,i=n.showMask,s=n.appendStyle,a=n.uuid;_.show(o,r,i,s,a)}else _.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),_.popIndexStore(n),this.popInstanceList.length?this.popHide(!1):_.hide(t))}else null==e||e.remove()}}]),t}(),q=new V;function z(e,t){return z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},z(e,t)}function B(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 F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}var H=s(210);var K,G,Y=(0,H.createTypes)({});function J(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))}!function(e){e.Small="small",e.Large="large"}(K||(K={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(G||(G={}));var W,Z=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&&z(e,t)}(s,t);var r,o,i=(r=s,o=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=F(r);if(o){var n=F(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return B(this,e)});function s(){return e(this,s),i.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,H.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,H.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,H.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,H.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,H.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,H.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}(Y);function $(){if(void 0!==W)return W;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),W=t-r}var X=Symbol("form"),Q=Symbol("formItem"),ee=s(748),te=function(){return(0,ee.inject)(X)},ne=function(){return(0,ee.inject)(Q,se)},re=document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!0)}:function(e,t,n){e&&t&&n&&e.attachEvent("on".concat(t),n)},oe=document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!0)}:function(e,t,n){e&&t&&e.detachEvent("on".concat(t),n)};function ie(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 se=Object.create({}),ae=function(){},ue=function(){return null},ce=function(e){return Object.keys(e).length<1},le=function(e){return e.install=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.prefix,o=t.config.globalProperties.bkUIPrefix||r||"Bk";t.component(o+e.name,e)},e},pe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.install=function(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.prefix,s=r.config.globalProperties.bkUIPrefix||i||"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 fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bk";return"".concat(t,"-").concat(e)}function de(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=function(){var i=this,s=arguments;if(e&&clearTimeout(e),o){var a=!e;e=setTimeout((function(){e=null}),n),a&&(t=r.apply(i,s))}else e=setTimeout((function(){r.apply(i,s)}),n);return t};return i.cancel=function(){clearTimeout(e),e=null},i}function he(e,t){return JSON.parse(JSON.stringify(e,(function(e,n){if(!t.includes(e))return n})))}function ve(){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}})(),a})()));
@@ -30,9 +30,9 @@ declare const Transfer: {
30
30
  $props: Partial<{
31
31
  title: string[];
32
32
  extCls: string;
33
+ searchPlaceholder: string;
33
34
  displayKey: string;
34
35
  sortable: boolean;
35
- searchPlaceholder: string;
36
36
  settingKey: string;
37
37
  sortKey: string;
38
38
  showOverflowTips: boolean;
@@ -96,7 +96,7 @@ declare const Transfer: {
96
96
  }>> & {
97
97
  onChange?: (...args: any[]) => any;
98
98
  "onUpdate:targetList"?: (...args: any[]) => any;
99
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "extCls" | "displayKey" | "sortable" | "searchPlaceholder" | "settingKey" | "sortKey" | "showOverflowTips" | "searchable" | "sourceList" | "targetList" | "emptyContent">;
99
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "extCls" | "searchPlaceholder" | "displayKey" | "sortable" | "settingKey" | "sortKey" | "showOverflowTips" | "searchable" | "sourceList" | "targetList" | "emptyContent">;
100
100
  $attrs: {
101
101
  [x: string]: unknown;
102
102
  };
@@ -180,9 +180,9 @@ declare const Transfer: {
180
180
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:targetList")[], string, {
181
181
  title: string[];
182
182
  extCls: string;
183
+ searchPlaceholder: string;
183
184
  displayKey: string;
184
185
  sortable: boolean;
185
- searchPlaceholder: string;
186
186
  settingKey: string;
187
187
  sortKey: string;
188
188
  showOverflowTips: boolean;
@@ -351,9 +351,9 @@ declare const Transfer: {
351
351
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:targetList")[], "change" | "update:targetList", {
352
352
  title: string[];
353
353
  extCls: string;
354
+ searchPlaceholder: string;
354
355
  displayKey: string;
355
356
  sortable: boolean;
356
- searchPlaceholder: string;
357
357
  settingKey: string;
358
358
  sortKey: string;
359
359
  showOverflowTips: boolean;
@@ -146,9 +146,9 @@ declare const _default: import("vue").DefineComponent<{
146
146
  }, {
147
147
  title: string[];
148
148
  extCls: string;
149
+ searchPlaceholder: string;
149
150
  displayKey: string;
150
151
  sortable: boolean;
151
- searchPlaceholder: string;
152
152
  settingKey: string;
153
153
  sortKey: string;
154
154
  showOverflowTips: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.1-beta.157",
3
+ "version": "0.0.1-beta.158",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",