bkui-vue 0.0.1-beta.80 → 0.0.1-beta.83
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.
- package/dist/index.cjs.js +28 -28
- package/dist/index.esm.js +473 -213
- package/dist/index.umd.js +27 -27
- package/dist/style.css +1 -1
- package/lib/button/button.css +16 -11
- package/lib/button/button.d.ts +0 -10
- package/lib/button/button.less +28 -13
- package/lib/button/button.variable.css +16 -11
- package/lib/button/index.d.ts +1 -16
- package/lib/button/index.js +1 -1
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +4 -4
- package/lib/date-picker/index.js +1 -1
- package/lib/input/input.css +4 -1
- package/lib/input/input.less +4 -1
- package/lib/input/input.variable.css +4 -1
- package/lib/loading/loading.css +4 -3
- package/lib/loading/loading.less +4 -3
- package/lib/loading/loading.variable.css +4 -3
- package/lib/pagination/index.js +1 -1
- package/lib/select/common.d.ts +4 -4
- package/lib/select/index.d.ts +563 -212
- package/lib/select/index.js +1 -1
- package/lib/select/option.d.ts +11 -4
- package/lib/select/select.css +31 -59
- package/lib/select/select.d.ts +168 -62
- package/lib/select/select.less +43 -51
- package/lib/select/select.variable.css +31 -59
- package/lib/select/selectTagInput.d.ts +71 -0
- package/lib/select/type.d.ts +9 -5
- package/lib/shared/index.js +1 -1
- package/lib/tab/index.d.ts +7 -7
- package/lib/tab/tab.d.ts +2 -2
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +1 -0
- package/lib/tag-input/index.d.ts +4 -4
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/tag-input.d.ts +1 -1
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/transfer.css +41 -60
- package/lib/transfer/transfer.less +55 -82
- package/lib/transfer/transfer.variable.css +41 -60
- package/package.json +1 -1
package/lib/select/select.less
CHANGED
@@ -35,6 +35,12 @@
|
|
35
35
|
margin-left: @marginLeft;
|
36
36
|
}
|
37
37
|
|
38
|
+
.active(@color: @primary-color) {
|
39
|
+
border-color: @primary-color;
|
40
|
+
outline: 0;
|
41
|
+
box-shadow: 0px 0px 3px 0px @input-shadow-color;
|
42
|
+
}
|
43
|
+
|
38
44
|
.bk-popover {
|
39
45
|
display: block;
|
40
46
|
}
|
@@ -85,73 +91,54 @@
|
|
85
91
|
padding: 0;
|
86
92
|
}
|
87
93
|
|
88
|
-
&.small {
|
89
|
-
.bk-select-trigger .bk-select-input {
|
90
|
-
height: 24px;
|
91
|
-
}
|
92
|
-
}
|
93
|
-
|
94
94
|
&.large {
|
95
|
-
.bk-select-trigger .bk-select-input {
|
96
|
-
height: 36px;
|
97
|
-
font-size: 14px;
|
98
|
-
}
|
99
|
-
|
100
95
|
.bk-select-content {
|
101
96
|
font-size: 14px;
|
102
97
|
}
|
103
98
|
}
|
104
99
|
|
105
|
-
&.simplicity {
|
106
|
-
.bk-select-trigger .bk-select-input {
|
107
|
-
border: none;
|
108
|
-
border-bottom: 1px solid @light-gray;
|
109
|
-
}
|
110
|
-
}
|
111
|
-
|
112
100
|
&.is-focus.normal {
|
113
|
-
.bk-select-trigger .bk-select-
|
101
|
+
.bk-select-trigger .bk-select-tag {
|
114
102
|
border-color: @primary-color;
|
115
103
|
box-shadow: 0px 0px 3px 0px #a3c5fd;
|
116
104
|
}
|
117
105
|
}
|
118
106
|
|
119
|
-
&.
|
120
|
-
.bk-select-trigger .
|
121
|
-
|
107
|
+
&.popover-show {
|
108
|
+
.bk-select-trigger .angle-up {
|
109
|
+
transform: rotate(0);
|
122
110
|
}
|
123
111
|
}
|
124
112
|
|
125
113
|
&.is-disabled {
|
126
|
-
.bk-select-trigger .bk-
|
114
|
+
.bk-select-trigger .bk-input input {
|
127
115
|
cursor: not-allowed;
|
128
|
-
background: #fafbfd;
|
129
|
-
border-color: #dcdee5;
|
130
|
-
box-shadow: unset;
|
116
|
+
background-color: #fafbfd;
|
131
117
|
}
|
132
118
|
}
|
133
119
|
|
134
|
-
|
135
|
-
|
136
|
-
.bk-select-input,
|
137
|
-
.bk-select-tag-input {
|
138
|
-
cursor: text;
|
139
|
-
}
|
140
|
-
}
|
141
|
-
}
|
120
|
+
.bk-select-trigger {
|
121
|
+
position: relative;
|
142
122
|
|
143
|
-
|
144
|
-
|
145
|
-
transform: rotate(0);
|
123
|
+
.bk-tag-input .bk-tag-input-trigger .clear-icon {
|
124
|
+
margin-right: 0;
|
146
125
|
}
|
147
|
-
}
|
148
126
|
|
149
|
-
|
150
|
-
|
151
|
-
|
127
|
+
.bk-input {
|
128
|
+
input {
|
129
|
+
cursor: pointer;
|
130
|
+
background-color: #fff;
|
131
|
+
}
|
152
132
|
|
153
|
-
|
154
|
-
|
133
|
+
&.is-focused {
|
134
|
+
.active();
|
135
|
+
|
136
|
+
&.is-simplicity {
|
137
|
+
border-color: transparent;
|
138
|
+
border-bottom-color: @primary-color;
|
139
|
+
box-shadow: none;
|
140
|
+
}
|
141
|
+
}
|
155
142
|
}
|
156
143
|
|
157
144
|
.bk-select-tag {
|
@@ -165,18 +152,21 @@
|
|
165
152
|
|
166
153
|
&-input {
|
167
154
|
.input();
|
168
|
-
width:
|
169
|
-
height:
|
155
|
+
width: 1%;
|
156
|
+
height: 22px;
|
157
|
+
max-width: 190px;
|
170
158
|
padding: 0;
|
159
|
+
margin: 4px 5px 4px 0;
|
160
|
+
overflow: hidden;
|
171
161
|
border: none;
|
172
162
|
outline: none;
|
163
|
+
flex-grow: 1;
|
173
164
|
}
|
174
|
-
}
|
175
165
|
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
166
|
+
.bk-tag {
|
167
|
+
max-width: 190px;
|
168
|
+
padding: 0 4px;
|
169
|
+
}
|
180
170
|
}
|
181
171
|
|
182
172
|
.angle-up {
|
@@ -189,6 +179,7 @@
|
|
189
179
|
|
190
180
|
.clear-icon {
|
191
181
|
right: 4px;
|
182
|
+
cursor: pointer;
|
192
183
|
transition: all .1s;
|
193
184
|
.bk-select-icon(14px, #c4c6cc);
|
194
185
|
.fix-icon();
|
@@ -251,7 +242,8 @@
|
|
251
242
|
|
252
243
|
.ellipsis();
|
253
244
|
|
254
|
-
&:hover
|
245
|
+
&:hover,
|
246
|
+
&.is-hover {
|
255
247
|
color: #3a84ff;
|
256
248
|
background-color: #f5f7fa;
|
257
249
|
}
|
@@ -162,66 +162,39 @@
|
|
162
162
|
.bk-select .bk-popover-content {
|
163
163
|
padding: 0;
|
164
164
|
}
|
165
|
-
.bk-select.small .bk-select-trigger .bk-select-input {
|
166
|
-
height: 24px;
|
167
|
-
}
|
168
|
-
.bk-select.large .bk-select-trigger .bk-select-input {
|
169
|
-
height: 36px;
|
170
|
-
font-size: 14px;
|
171
|
-
}
|
172
165
|
.bk-select.large .bk-select-content {
|
173
166
|
font-size: 14px;
|
174
167
|
}
|
175
|
-
.bk-select.
|
176
|
-
border: none;
|
177
|
-
border-bottom: 1px solid var(--light-gray);
|
178
|
-
}
|
179
|
-
.bk-select.is-focus.normal .bk-select-trigger .bk-select-input {
|
168
|
+
.bk-select.is-focus.normal .bk-select-trigger .bk-select-tag {
|
180
169
|
border-color: var(--primary-color);
|
181
170
|
box-shadow: 0px 0px 3px 0px #a3c5fd;
|
182
171
|
}
|
183
|
-
.bk-select.is-focus.simplicity .bk-select-trigger .bk-select-input {
|
184
|
-
border-color: var(--primary-color);
|
185
|
-
}
|
186
|
-
.bk-select.is-disabled .bk-select-trigger .bk-select-input {
|
187
|
-
cursor: not-allowed;
|
188
|
-
background: #fafbfd;
|
189
|
-
border-color: #dcdee5;
|
190
|
-
box-shadow: unset;
|
191
|
-
}
|
192
|
-
.bk-select.is-filterable .bk-select-trigger .bk-select-input,
|
193
|
-
.bk-select.is-filterable .bk-select-trigger .bk-select-tag-input {
|
194
|
-
cursor: text;
|
195
|
-
}
|
196
172
|
.bk-select.popover-show .bk-select-trigger .angle-up {
|
197
173
|
transform: rotate(0);
|
198
174
|
}
|
175
|
+
.bk-select.is-disabled .bk-select-trigger .bk-input input {
|
176
|
+
cursor: not-allowed;
|
177
|
+
background-color: #fafbfd;
|
178
|
+
}
|
199
179
|
.bk-select .bk-select-trigger {
|
200
180
|
position: relative;
|
201
|
-
cursor: pointer;
|
202
181
|
}
|
203
|
-
.bk-select .bk-select-trigger .bk-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
line-height: normal;
|
208
|
-
color: var(--default-color);
|
209
|
-
text-align: left;
|
210
|
-
vertical-align: middle;
|
182
|
+
.bk-select .bk-select-trigger .bk-tag-input .bk-tag-input-trigger .clear-icon {
|
183
|
+
margin-right: 0;
|
184
|
+
}
|
185
|
+
.bk-select .bk-select-trigger .bk-input input {
|
211
186
|
cursor: pointer;
|
212
|
-
background-color:
|
213
|
-
border: 1px solid var(--light-gray);
|
214
|
-
border-radius: 2px;
|
215
|
-
outline: none;
|
216
|
-
box-sizing: border-box;
|
217
|
-
transition: all 0.1s;
|
218
|
-
resize: none;
|
219
|
-
overflow: hidden;
|
220
|
-
text-overflow: ellipsis;
|
221
|
-
white-space: nowrap;
|
187
|
+
background-color: #fff;
|
222
188
|
}
|
223
|
-
.bk-select .bk-select-trigger .bk-
|
224
|
-
color: var(--
|
189
|
+
.bk-select .bk-select-trigger .bk-input.is-focused {
|
190
|
+
border-color: var(--primary-color);
|
191
|
+
outline: 0;
|
192
|
+
box-shadow: 0px 0px 3px 0px var(--input-shadow-color);
|
193
|
+
}
|
194
|
+
.bk-select .bk-select-trigger .bk-input.is-focused.is-simplicity {
|
195
|
+
border-color: transparent;
|
196
|
+
border-bottom-color: var(--primary-color);
|
197
|
+
box-shadow: none;
|
225
198
|
}
|
226
199
|
.bk-select .bk-select-trigger .bk-select-tag {
|
227
200
|
width: 100%;
|
@@ -267,27 +240,24 @@
|
|
267
240
|
box-sizing: border-box;
|
268
241
|
transition: all 0.1s;
|
269
242
|
resize: none;
|
270
|
-
overflow: hidden;
|
271
243
|
text-overflow: ellipsis;
|
272
244
|
white-space: nowrap;
|
273
|
-
width:
|
274
|
-
height:
|
245
|
+
width: 1%;
|
246
|
+
height: 22px;
|
247
|
+
max-width: 190px;
|
275
248
|
padding: 0;
|
249
|
+
margin: 4px 5px 4px 0;
|
250
|
+
overflow: hidden;
|
276
251
|
border: none;
|
277
252
|
outline: none;
|
253
|
+
flex-grow: 1;
|
278
254
|
}
|
279
255
|
.bk-select .bk-select-trigger .bk-select-tag-input::placeholder {
|
280
256
|
color: var(--light-gray);
|
281
257
|
}
|
282
|
-
.bk-select .bk-select-trigger .bk-select-
|
283
|
-
|
284
|
-
|
285
|
-
display: inline-flex;
|
286
|
-
height: 100%;
|
287
|
-
align-items: center;
|
288
|
-
justify-content: center;
|
289
|
-
left: 4px;
|
290
|
-
font-size: 14px;
|
258
|
+
.bk-select .bk-select-trigger .bk-select-tag .bk-tag {
|
259
|
+
max-width: 190px;
|
260
|
+
padding: 0 4px;
|
291
261
|
}
|
292
262
|
.bk-select .bk-select-trigger .angle-up {
|
293
263
|
right: 4px;
|
@@ -307,6 +277,7 @@
|
|
307
277
|
}
|
308
278
|
.bk-select .bk-select-trigger .clear-icon {
|
309
279
|
right: 4px;
|
280
|
+
cursor: pointer;
|
310
281
|
transition: all 0.1s;
|
311
282
|
display: flex;
|
312
283
|
width: 20px;
|
@@ -370,7 +341,8 @@
|
|
370
341
|
text-overflow: ellipsis;
|
371
342
|
white-space: nowrap;
|
372
343
|
}
|
373
|
-
.bk-select .bk-select-option:hover
|
344
|
+
.bk-select .bk-select-option:hover,
|
345
|
+
.bk-select .bk-select-option.is-hover {
|
374
346
|
color: #3a84ff;
|
375
347
|
background-color: #f5f7fa;
|
376
348
|
}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import { PropType } from 'vue-types/dist/types';
|
2
|
+
import { ISelectedData } from './type';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
selected: {
|
5
|
+
type: PropType<ISelectedData[]>;
|
6
|
+
default: () => any[];
|
7
|
+
};
|
8
|
+
tagTheme: import("vue-types/dist/types").VueTypeDef<string> & {
|
9
|
+
default: string;
|
10
|
+
};
|
11
|
+
placeholder: import("vue-types/dist/types").VueTypeValidableDef<string> & {
|
12
|
+
default: string;
|
13
|
+
} & {
|
14
|
+
default: string;
|
15
|
+
};
|
16
|
+
filterable: import("vue-types/dist/types").VueTypeValidableDef<boolean> & {
|
17
|
+
default: boolean;
|
18
|
+
} & {
|
19
|
+
default: boolean;
|
20
|
+
};
|
21
|
+
allowCreate: import("vue-types/dist/types").VueTypeValidableDef<boolean> & {
|
22
|
+
default: boolean;
|
23
|
+
} & {
|
24
|
+
default: boolean;
|
25
|
+
};
|
26
|
+
modelValue: import("vue-types/dist/types").VueTypeValidableDef<any>;
|
27
|
+
}, {
|
28
|
+
value: any;
|
29
|
+
inputRef: import("vue").Ref<HTMLElement>;
|
30
|
+
handleRemoveTag: (data: ISelectedData) => void;
|
31
|
+
handleFocus: () => void;
|
32
|
+
focus: () => void;
|
33
|
+
handleInput: (e: any) => void;
|
34
|
+
handleKeydown: (e: any) => void;
|
35
|
+
}, 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<{
|
36
|
+
selected: {
|
37
|
+
type: PropType<ISelectedData[]>;
|
38
|
+
default: () => any[];
|
39
|
+
};
|
40
|
+
tagTheme: import("vue-types/dist/types").VueTypeDef<string> & {
|
41
|
+
default: string;
|
42
|
+
};
|
43
|
+
placeholder: import("vue-types/dist/types").VueTypeValidableDef<string> & {
|
44
|
+
default: string;
|
45
|
+
} & {
|
46
|
+
default: string;
|
47
|
+
};
|
48
|
+
filterable: import("vue-types/dist/types").VueTypeValidableDef<boolean> & {
|
49
|
+
default: boolean;
|
50
|
+
} & {
|
51
|
+
default: boolean;
|
52
|
+
};
|
53
|
+
allowCreate: import("vue-types/dist/types").VueTypeValidableDef<boolean> & {
|
54
|
+
default: boolean;
|
55
|
+
} & {
|
56
|
+
default: boolean;
|
57
|
+
};
|
58
|
+
modelValue: import("vue-types/dist/types").VueTypeValidableDef<any>;
|
59
|
+
}>> & {
|
60
|
+
onFocus?: (...args: any[]) => any;
|
61
|
+
onEnter?: (...args: any[]) => any;
|
62
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
63
|
+
onRemove?: (...args: any[]) => any;
|
64
|
+
}, {
|
65
|
+
placeholder: string;
|
66
|
+
selected: ISelectedData[];
|
67
|
+
tagTheme: string;
|
68
|
+
filterable: boolean;
|
69
|
+
allowCreate: boolean;
|
70
|
+
}>;
|
71
|
+
export default _default;
|
package/lib/select/type.d.ts
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
import Popover from '@bkui-vue/popover';
|
2
2
|
import Option from './option';
|
3
3
|
import Group from './optionGroup';
|
4
|
+
import SelectTagInput from './selectTagInput';
|
4
5
|
export declare type OptionInstanceType = InstanceType<typeof Option>;
|
5
6
|
export declare type GroupInstanceType = InstanceType<typeof Group>;
|
6
7
|
export declare type PopoverInstanceType = InstanceType<typeof Popover>;
|
8
|
+
export declare type SelectTagInputType = InstanceType<typeof SelectTagInput>;
|
7
9
|
export interface ISelectContext {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
selectedOptions: Set<any>;
|
10
|
+
multiple?: boolean;
|
11
|
+
selected: ISelectedData[];
|
12
|
+
activeOptionValue: any;
|
12
13
|
register(option: OptionInstanceType): any;
|
13
14
|
unregister(option: OptionInstanceType): any;
|
14
15
|
registerGroup(option: GroupInstanceType): any;
|
@@ -23,9 +24,12 @@ export interface IOptionGroupContext {
|
|
23
24
|
}
|
24
25
|
export interface ISelectState {
|
25
26
|
currentPlaceholder: string;
|
26
|
-
selectedOptions: Set<OptionInstanceType>;
|
27
27
|
currentSelectedLabel: string;
|
28
28
|
}
|
29
29
|
export interface IPopoverConfig {
|
30
30
|
popoverMinWidth: number;
|
31
31
|
}
|
32
|
+
export interface ISelectedData {
|
33
|
+
value: any;
|
34
|
+
label: string;
|
35
|
+
}
|
package/lib/shared/index.js
CHANGED
@@ -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:()=>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})()));
|
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.popperRefer.contains(t.target)||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})()));
|
package/lib/tab/index.d.ts
CHANGED
@@ -72,13 +72,13 @@ declare const BkTab: {
|
|
72
72
|
}>> & {
|
73
73
|
onChange?: (...args: any[]) => any;
|
74
74
|
onDrag?: (...args: any[]) => any;
|
75
|
+
onRemove?: (...args: any[]) => any;
|
75
76
|
onAdd?: (...args: any[]) => any;
|
76
77
|
"onAdd-panel"?: (...args: any[]) => any;
|
77
78
|
"onTab-change"?: (...args: any[]) => any;
|
78
79
|
"onRemove-panel"?: (...args: any[]) => any;
|
79
80
|
"onSort-change"?: (...args: any[]) => any;
|
80
81
|
"onOn-drag-tab"?: (...args: any[]) => any;
|
81
|
-
onRemove?: (...args: any[]) => any;
|
82
82
|
"onUpdate:active"?: (...args: any[]) => any;
|
83
83
|
onSort?: (...args: any[]) => any;
|
84
84
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "closable" | "extCls" | "active" | "showHeader" | "sortType" | "tabPosition" | "addable" | "sortable" | "labelHeight" | "scrollStep" | "validateActive" | "changeOnHover" | "changeOnHoverDelay">;
|
@@ -93,7 +93,7 @@ declare const BkTab: {
|
|
93
93
|
}>;
|
94
94
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
95
95
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
96
|
-
$emit: (event: "change" | "drag" | "add" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "
|
96
|
+
$emit: (event: "change" | "drag" | "add" | "remove" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "update:active" | "sort", ...args: any[]) => void;
|
97
97
|
$el: any;
|
98
98
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
99
99
|
active: import("vue-types").VueTypeDef<string | number> & {
|
@@ -149,13 +149,13 @@ declare const BkTab: {
|
|
149
149
|
}>> & {
|
150
150
|
onChange?: (...args: any[]) => any;
|
151
151
|
onDrag?: (...args: any[]) => any;
|
152
|
+
onRemove?: (...args: any[]) => any;
|
152
153
|
onAdd?: (...args: any[]) => any;
|
153
154
|
"onAdd-panel"?: (...args: any[]) => any;
|
154
155
|
"onTab-change"?: (...args: any[]) => any;
|
155
156
|
"onRemove-panel"?: (...args: any[]) => any;
|
156
157
|
"onSort-change"?: (...args: any[]) => any;
|
157
158
|
"onOn-drag-tab"?: (...args: any[]) => any;
|
158
|
-
onRemove?: (...args: any[]) => any;
|
159
159
|
"onUpdate:active"?: (...args: any[]) => any;
|
160
160
|
onSort?: (...args: any[]) => any;
|
161
161
|
}, {
|
@@ -166,7 +166,7 @@ declare const BkTab: {
|
|
166
166
|
tabRemove(index: number, panel: any): void;
|
167
167
|
tabSort(dragTabIndex: number, dropTabIndex: number, sortType: string): boolean;
|
168
168
|
tabDrag(dragTabIndex: number, dragEvent: DragEvent): void;
|
169
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "drag" | "add" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "
|
169
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "drag" | "add" | "remove" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "update:active" | "sort")[], string, {
|
170
170
|
type: string;
|
171
171
|
closable: boolean;
|
172
172
|
extCls: string;
|
@@ -255,13 +255,13 @@ declare const BkTab: {
|
|
255
255
|
}>> & {
|
256
256
|
onChange?: (...args: any[]) => any;
|
257
257
|
onDrag?: (...args: any[]) => any;
|
258
|
+
onRemove?: (...args: any[]) => any;
|
258
259
|
onAdd?: (...args: any[]) => any;
|
259
260
|
"onAdd-panel"?: (...args: any[]) => any;
|
260
261
|
"onTab-change"?: (...args: any[]) => any;
|
261
262
|
"onRemove-panel"?: (...args: any[]) => any;
|
262
263
|
"onSort-change"?: (...args: any[]) => any;
|
263
264
|
"onOn-drag-tab"?: (...args: any[]) => any;
|
264
|
-
onRemove?: (...args: any[]) => any;
|
265
265
|
"onUpdate:active"?: (...args: any[]) => any;
|
266
266
|
onSort?: (...args: any[]) => any;
|
267
267
|
} & import("vue").ShallowUnwrapRef<{
|
@@ -330,13 +330,13 @@ declare const BkTab: {
|
|
330
330
|
}>> & {
|
331
331
|
onChange?: (...args: any[]) => any;
|
332
332
|
onDrag?: (...args: any[]) => any;
|
333
|
+
onRemove?: (...args: any[]) => any;
|
333
334
|
onAdd?: (...args: any[]) => any;
|
334
335
|
"onAdd-panel"?: (...args: any[]) => any;
|
335
336
|
"onTab-change"?: (...args: any[]) => any;
|
336
337
|
"onRemove-panel"?: (...args: any[]) => any;
|
337
338
|
"onSort-change"?: (...args: any[]) => any;
|
338
339
|
"onOn-drag-tab"?: (...args: any[]) => any;
|
339
|
-
onRemove?: (...args: any[]) => any;
|
340
340
|
"onUpdate:active"?: (...args: any[]) => any;
|
341
341
|
onSort?: (...args: any[]) => any;
|
342
342
|
}, {
|
@@ -347,7 +347,7 @@ declare const BkTab: {
|
|
347
347
|
tabRemove(index: number, panel: any): void;
|
348
348
|
tabSort(dragTabIndex: number, dropTabIndex: number, sortType: string): boolean;
|
349
349
|
tabDrag(dragTabIndex: number, dragEvent: DragEvent): void;
|
350
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "drag" | "add" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "
|
350
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "drag" | "add" | "remove" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "update:active" | "sort")[], "change" | "drag" | "sort" | "add" | "remove" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "update:active", {
|
351
351
|
type: string;
|
352
352
|
closable: boolean;
|
353
353
|
extCls: string;
|
package/lib/tab/tab.d.ts
CHANGED
@@ -57,7 +57,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
57
57
|
tabRemove(index: number, panel: any): void;
|
58
58
|
tabSort(dragTabIndex: number, dropTabIndex: number, sortType: string): boolean;
|
59
59
|
tabDrag(dragTabIndex: number, dragEvent: DragEvent): void;
|
60
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "drag" | "add" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "
|
60
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "drag" | "add" | "remove" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "update:active" | "sort")[], "change" | "drag" | "sort" | "add" | "remove" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "update:active", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
61
61
|
active: import("vue-types").VueTypeDef<string | number> & {
|
62
62
|
default: string | number;
|
63
63
|
};
|
@@ -111,13 +111,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
111
111
|
}>> & {
|
112
112
|
onChange?: (...args: any[]) => any;
|
113
113
|
onDrag?: (...args: any[]) => any;
|
114
|
+
onRemove?: (...args: any[]) => any;
|
114
115
|
onAdd?: (...args: any[]) => any;
|
115
116
|
"onAdd-panel"?: (...args: any[]) => any;
|
116
117
|
"onTab-change"?: (...args: any[]) => any;
|
117
118
|
"onRemove-panel"?: (...args: any[]) => any;
|
118
119
|
"onSort-change"?: (...args: any[]) => any;
|
119
120
|
"onOn-drag-tab"?: (...args: any[]) => any;
|
120
|
-
onRemove?: (...args: any[]) => any;
|
121
121
|
"onUpdate:active"?: (...args: any[]) => any;
|
122
122
|
onSort?: (...args: any[]) => any;
|
123
123
|
}, {
|