bkui-vue 0.0.1-beta.100 → 0.0.1-beta.101
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 +27 -27
- package/dist/index.esm.js +2204 -2122
- package/dist/index.umd.js +27 -27
- package/dist/style.css +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/index.d.ts +70 -1
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +0 -12
- package/lib/loading/loading.d.ts +48 -0
- package/lib/loading/loading.less +0 -13
- package/lib/loading/loading.variable.css +0 -12
- package/lib/popover2/const.d.ts +10 -0
- package/lib/popover2/index.d.ts +57 -7
- package/lib/popover2/index.js +1 -1
- package/lib/popover2/popover2.d.ts +22 -2
- package/lib/popover2/props.d.ts +8 -0
- package/lib/popover2/use-floating.d.ts +1 -1
- package/lib/table/const.d.ts +7 -1
- package/lib/table/index.js +1 -1
- package/lib/table/use-common.d.ts +1 -0
- package/lib/table/utils.d.ts +2 -3
- package/package.json +1 -1
package/lib/input/input.css
CHANGED
@@ -78,10 +78,13 @@
|
|
78
78
|
border-bottom-color: #c4c6cc;
|
79
79
|
}
|
80
80
|
.bk-input--suffix-icon {
|
81
|
+
display: flex;
|
82
|
+
height: 100%;
|
81
83
|
padding-right: 10px;
|
82
84
|
font-size: 16px;
|
83
|
-
line-height: 1;
|
84
85
|
color: #c4c6cc;
|
86
|
+
background-color: white;
|
87
|
+
align-items: center;
|
85
88
|
align-self: center;
|
86
89
|
}
|
87
90
|
.bk-input--suffix-icon.show-clear-only-hover {
|
package/lib/input/input.less
CHANGED
@@ -73,10 +73,13 @@
|
|
73
73
|
}
|
74
74
|
|
75
75
|
&--suffix-icon {
|
76
|
+
display: flex;
|
77
|
+
height: 100%;
|
76
78
|
padding-right: @input-horizontal-padding;
|
77
79
|
font-size: @input-icon-size;
|
78
|
-
line-height: 1;
|
79
80
|
color: @light-gray;
|
81
|
+
background-color: @input-bg;
|
82
|
+
align-items: center;
|
80
83
|
align-self: center;
|
81
84
|
|
82
85
|
&.show-clear-only-hover {
|
@@ -178,10 +178,13 @@
|
|
178
178
|
border-bottom-color: var(--input-border-color);
|
179
179
|
}
|
180
180
|
.bk-input--suffix-icon {
|
181
|
+
display: flex;
|
182
|
+
height: 100%;
|
181
183
|
padding-right: var(--input-horizontal-padding);
|
182
184
|
font-size: var(--input-icon-size);
|
183
|
-
line-height: 1;
|
184
185
|
color: var(--light-gray);
|
186
|
+
background-color: var(--input-bg);
|
187
|
+
align-items: center;
|
185
188
|
align-self: center;
|
186
189
|
}
|
187
190
|
.bk-input--suffix-icon.show-clear-only-hover {
|
package/lib/loading/index.d.ts
CHANGED
@@ -5,8 +5,11 @@ declare const BkLoading: {
|
|
5
5
|
$data: {};
|
6
6
|
$props: Partial<{
|
7
7
|
title: string;
|
8
|
+
zIndex: number;
|
9
|
+
color: string;
|
8
10
|
inline: boolean;
|
9
11
|
size: string;
|
12
|
+
opacity: number;
|
10
13
|
loading: boolean;
|
11
14
|
mode: string;
|
12
15
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
@@ -35,7 +38,22 @@ declare const BkLoading: {
|
|
35
38
|
mode: import("vue-types").VueTypeDef<string> & {
|
36
39
|
default: string;
|
37
40
|
};
|
38
|
-
|
41
|
+
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
42
|
+
default: number;
|
43
|
+
} & {
|
44
|
+
default: number;
|
45
|
+
};
|
46
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
47
|
+
default: string;
|
48
|
+
} & {
|
49
|
+
default: string;
|
50
|
+
};
|
51
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
52
|
+
default: number;
|
53
|
+
} & {
|
54
|
+
default: number;
|
55
|
+
};
|
56
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "zIndex" | "color" | "inline" | "size" | "opacity" | "loading" | "mode">;
|
39
57
|
$attrs: {
|
40
58
|
[x: string]: unknown;
|
41
59
|
};
|
@@ -75,10 +93,28 @@ declare const BkLoading: {
|
|
75
93
|
mode: import("vue-types").VueTypeDef<string> & {
|
76
94
|
default: string;
|
77
95
|
};
|
96
|
+
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
97
|
+
default: number;
|
98
|
+
} & {
|
99
|
+
default: number;
|
100
|
+
};
|
101
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
102
|
+
default: string;
|
103
|
+
} & {
|
104
|
+
default: string;
|
105
|
+
};
|
106
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
107
|
+
default: number;
|
108
|
+
} & {
|
109
|
+
default: number;
|
110
|
+
};
|
78
111
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
79
112
|
title: string;
|
113
|
+
zIndex: number;
|
114
|
+
color: string;
|
80
115
|
inline: boolean;
|
81
116
|
size: string;
|
117
|
+
opacity: number;
|
82
118
|
loading: boolean;
|
83
119
|
mode: string;
|
84
120
|
}> & {
|
@@ -127,6 +163,21 @@ declare const BkLoading: {
|
|
127
163
|
mode: import("vue-types").VueTypeDef<string> & {
|
128
164
|
default: string;
|
129
165
|
};
|
166
|
+
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
167
|
+
default: number;
|
168
|
+
} & {
|
169
|
+
default: number;
|
170
|
+
};
|
171
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
172
|
+
default: string;
|
173
|
+
} & {
|
174
|
+
default: string;
|
175
|
+
};
|
176
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
177
|
+
default: number;
|
178
|
+
} & {
|
179
|
+
default: number;
|
180
|
+
};
|
130
181
|
}>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
131
182
|
__isFragment?: never;
|
132
183
|
__isTeleport?: never;
|
@@ -157,10 +208,28 @@ declare const BkLoading: {
|
|
157
208
|
mode: import("vue-types").VueTypeDef<string> & {
|
158
209
|
default: string;
|
159
210
|
};
|
211
|
+
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
212
|
+
default: number;
|
213
|
+
} & {
|
214
|
+
default: number;
|
215
|
+
};
|
216
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
217
|
+
default: string;
|
218
|
+
} & {
|
219
|
+
default: string;
|
220
|
+
};
|
221
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
222
|
+
default: number;
|
223
|
+
} & {
|
224
|
+
default: number;
|
225
|
+
};
|
160
226
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
161
227
|
title: string;
|
228
|
+
zIndex: number;
|
229
|
+
color: string;
|
162
230
|
inline: boolean;
|
163
231
|
size: string;
|
232
|
+
opacity: number;
|
164
233
|
loading: boolean;
|
165
234
|
mode: string;
|
166
235
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
|
package/lib/loading/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{r.r(a),r.d(a,{BkLoading:()=>s,BkLoadingMode:()=>t,BkLoadingSize:()=>n,default:()=>p,setDefaultIndicator:()=>
|
1
|
+
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{r.r(a),r.d(a,{BkLoading:()=>s,BkLoadingMode:()=>t,BkLoadingSize:()=>n,default:()=>p,setDefaultIndicator:()=>u});var e=r(4212);function o(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var t,n,i,l=r(748);function u(e){i="function"==typeof e?e:function(){return(0,l.createVNode)(e,null,null)}}!function(e){e.Default="default",e.Spin="spin"}(t||(t={})),function(e){e.Normal="",e.Mini="mini",e.Small="small",e.Large="large"}(n||(n={}));var d={indicator:{type:Function},loading:e.PropTypes.bool.def(!0),inline:e.PropTypes.bool.def(!0),theme:e.PropTypes.theme(["white","primary","warning","success","danger"]),title:e.PropTypes.string.def(""),size:e.PropTypes.commonType(Object.values(n)).def(n.Normal),mode:e.PropTypes.commonType(Object.values(t)).def("default"),opacity:e.PropTypes.number.def(.9),color:e.PropTypes.string.def("white"),zIndex:e.PropTypes.number.def(1)};const c=(0,l.defineComponent)({name:"Loading",props:d,setup:function(n,r){var a=[1,2,3,4].map((function(e){return(0,l.createVNode)("span",{class:"dot dot-".concat(e)},null)})),u=(0,l.createVNode)("div",{class:"bk-spin-indicator"},[[1,2,3,4,5,6,7,8].map((function(e){return(0,l.createVNode)("span",{class:"oval oval-".concat(e)},null)}))]),d=(0,l.computed)((function(){return{zIndex:n.zIndex}})),c=(0,l.computed)((function(){return Object.assign({opacity:n.opacity,backgroundColor:n.color},d.value)})),s=(0,l.computed)((function(){return(0,e.classes)({"bk-loading-wrapper":n.loading,"bk-nested-loading":!!r.slots.default})})),p=(0,l.computed)((function(){var t;return(0,e.classes)((o(t={},"bk-loading-size-".concat(n.size),!!n.size),o(t,"bk-loading-".concat(n.theme),!!n.theme),t),"bk-loading-indicator")})),f=(0,l.computed)((function(){return!!n.title})),v=(0,l.computed)((function(){var e=n.mode===t.Spin;return"function"==typeof n.indicator?(0,l.createVNode)(n.indicator,null,null):"function"==typeof i?(0,l.createVNode)(i,null,null):e?u:a}));return function(){var e,o;return(0,l.createVNode)("div",{class:s.value},[n.loading&&[r.slots.default&&(0,l.createVNode)("div",{class:"bk-loading-mask",style:c.value},null),(0,l.createVNode)("div",{class:p.value,style:d.value},[v.value,f.value&&(0,l.createVNode)("div",{class:"bk-loading-title"},[n.title])])],null===(o=(e=r.slots).default)||void 0===o?void 0:o.call(e)])}}});var s=(0,e.withInstallProps)(c,{setDefaultIndicator:u,BkLoadingMode:t,BkLoadingSize:n},!0);const p=s})(),a})()));
|
package/lib/loading/loading.css
CHANGED
@@ -79,18 +79,6 @@
|
|
79
79
|
width: 100%;
|
80
80
|
height: 100%;
|
81
81
|
}
|
82
|
-
.bk-loading-wrapper .bk-loading-mask::after {
|
83
|
-
position: absolute;
|
84
|
-
top: 0;
|
85
|
-
right: 0;
|
86
|
-
bottom: 0;
|
87
|
-
left: 0;
|
88
|
-
z-index: 10;
|
89
|
-
width: 100%;
|
90
|
-
height: 100%;
|
91
|
-
background-color: rgba(255, 255, 255, 0.8);
|
92
|
-
content: '';
|
93
|
-
}
|
94
82
|
.bk-loading-wrapper .bk-loading-indicator {
|
95
83
|
line-height: 1;
|
96
84
|
text-align: center;
|
package/lib/loading/loading.d.ts
CHANGED
@@ -36,6 +36,21 @@ export declare const loadingTypes: {
|
|
36
36
|
mode: import("vue-types").VueTypeDef<string> & {
|
37
37
|
default: string;
|
38
38
|
};
|
39
|
+
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
40
|
+
default: number;
|
41
|
+
} & {
|
42
|
+
default: number;
|
43
|
+
};
|
44
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
45
|
+
default: string;
|
46
|
+
} & {
|
47
|
+
default: string;
|
48
|
+
};
|
49
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
50
|
+
default: number;
|
51
|
+
} & {
|
52
|
+
default: number;
|
53
|
+
};
|
39
54
|
};
|
40
55
|
export declare type LoadingTypes = ExtractPropTypes<typeof loadingTypes>;
|
41
56
|
declare const _default: import("vue").DefineComponent<{
|
@@ -64,6 +79,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
64
79
|
mode: import("vue-types").VueTypeDef<string> & {
|
65
80
|
default: string;
|
66
81
|
};
|
82
|
+
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
83
|
+
default: number;
|
84
|
+
} & {
|
85
|
+
default: number;
|
86
|
+
};
|
87
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
88
|
+
default: string;
|
89
|
+
} & {
|
90
|
+
default: string;
|
91
|
+
};
|
92
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
93
|
+
default: number;
|
94
|
+
} & {
|
95
|
+
default: number;
|
96
|
+
};
|
67
97
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
68
98
|
indicator: {
|
69
99
|
type: FunctionConstructor;
|
@@ -90,10 +120,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
90
120
|
mode: import("vue-types").VueTypeDef<string> & {
|
91
121
|
default: string;
|
92
122
|
};
|
123
|
+
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
124
|
+
default: number;
|
125
|
+
} & {
|
126
|
+
default: number;
|
127
|
+
};
|
128
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
129
|
+
default: string;
|
130
|
+
} & {
|
131
|
+
default: string;
|
132
|
+
};
|
133
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
134
|
+
default: number;
|
135
|
+
} & {
|
136
|
+
default: number;
|
137
|
+
};
|
93
138
|
}>>, {
|
94
139
|
title: string;
|
140
|
+
zIndex: number;
|
141
|
+
color: string;
|
95
142
|
inline: boolean;
|
96
143
|
size: string;
|
144
|
+
opacity: number;
|
97
145
|
loading: boolean;
|
98
146
|
mode: string;
|
99
147
|
}>;
|
package/lib/loading/loading.less
CHANGED
@@ -109,19 +109,6 @@
|
|
109
109
|
position: absolute;
|
110
110
|
width: 100%;
|
111
111
|
height: 100%;
|
112
|
-
|
113
|
-
&::after {
|
114
|
-
position: absolute;
|
115
|
-
top: 0;
|
116
|
-
right: 0;
|
117
|
-
bottom: 0;
|
118
|
-
left: 0;
|
119
|
-
z-index: 10;
|
120
|
-
width: 100%;
|
121
|
-
height: 100%;
|
122
|
-
background-color: rgba(255, 255, 255, .8);
|
123
|
-
content: '';
|
124
|
-
}
|
125
112
|
}
|
126
113
|
|
127
114
|
.@{bk-prefix}-loading-indicator {
|
@@ -178,18 +178,6 @@
|
|
178
178
|
width: 100%;
|
179
179
|
height: 100%;
|
180
180
|
}
|
181
|
-
.bk-loading-wrapper .bk-loading-mask::after {
|
182
|
-
position: absolute;
|
183
|
-
top: 0;
|
184
|
-
right: 0;
|
185
|
-
bottom: 0;
|
186
|
-
left: 0;
|
187
|
-
z-index: 10;
|
188
|
-
width: 100%;
|
189
|
-
height: 100%;
|
190
|
-
background-color: rgba(255, 255, 255, 0.8);
|
191
|
-
content: '';
|
192
|
-
}
|
193
181
|
.bk-loading-wrapper .bk-loading-indicator {
|
194
182
|
line-height: 1;
|
195
183
|
text-align: center;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export declare const enum EMITEVENTS {
|
2
|
+
SHOW = "show",
|
3
|
+
HIDE = "hide",
|
4
|
+
CLICK_OUTSIDE = "clickoutside"
|
5
|
+
}
|
6
|
+
export declare const EMIT_EVENT_TYPES: {
|
7
|
+
show: (..._args: any[]) => boolean;
|
8
|
+
hide: (..._args: any[]) => boolean;
|
9
|
+
clickoutside: (..._args: any[]) => boolean;
|
10
|
+
};
|
package/lib/popover2/index.d.ts
CHANGED
@@ -19,6 +19,7 @@ declare const BkPopover2: {
|
|
19
19
|
boundary: string;
|
20
20
|
disableTeleport: boolean;
|
21
21
|
autoPlacement: boolean;
|
22
|
+
disableOutsideClick: boolean;
|
22
23
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
23
24
|
onAfterHidden: FunctionConstructor;
|
24
25
|
onAfterShow: FunctionConstructor;
|
@@ -94,7 +95,16 @@ declare const BkPopover2: {
|
|
94
95
|
} & {
|
95
96
|
default: boolean;
|
96
97
|
};
|
97
|
-
|
98
|
+
disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
|
99
|
+
default: boolean;
|
100
|
+
} & {
|
101
|
+
default: boolean;
|
102
|
+
};
|
103
|
+
}>> & {
|
104
|
+
onShow?: (...args: any[]) => any;
|
105
|
+
onHide?: (...args: any[]) => any;
|
106
|
+
onClickoutside?: (...args: any[]) => any;
|
107
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "offset" | "zIndex" | "content" | "trigger" | "disabled" | "arrow" | "theme" | "width" | "height" | "always" | "padding" | "isShow" | "boundary" | "disableTeleport" | "autoPlacement" | "disableOutsideClick">;
|
98
108
|
$attrs: {
|
99
109
|
[x: string]: unknown;
|
100
110
|
};
|
@@ -106,7 +116,7 @@ declare const BkPopover2: {
|
|
106
116
|
}>;
|
107
117
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
108
118
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
109
|
-
$emit: (event:
|
119
|
+
$emit: ((event: import("./const").EMITEVENTS.SHOW, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.HIDE, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.CLICK_OUTSIDE, ...args: any[]) => void);
|
110
120
|
$el: any;
|
111
121
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
112
122
|
onAfterHidden: FunctionConstructor;
|
@@ -183,7 +193,16 @@ declare const BkPopover2: {
|
|
183
193
|
} & {
|
184
194
|
default: boolean;
|
185
195
|
};
|
186
|
-
|
196
|
+
disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
|
197
|
+
default: boolean;
|
198
|
+
} & {
|
199
|
+
default: boolean;
|
200
|
+
};
|
201
|
+
}>> & {
|
202
|
+
onShow?: (...args: any[]) => any;
|
203
|
+
onHide?: (...args: any[]) => any;
|
204
|
+
onClickoutside?: (...args: any[]) => any;
|
205
|
+
}, {
|
187
206
|
boundary: string;
|
188
207
|
arrow: boolean;
|
189
208
|
refReference: import("vue").Ref<any>;
|
@@ -194,7 +213,12 @@ declare const BkPopover2: {
|
|
194
213
|
disableTeleport: boolean;
|
195
214
|
width: string | number;
|
196
215
|
height: string | number;
|
197
|
-
|
216
|
+
handleClickOutside: (_e: MouseEvent) => void;
|
217
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
218
|
+
show: (..._args: any[]) => boolean;
|
219
|
+
hide: (..._args: any[]) => boolean;
|
220
|
+
clickoutside: (..._args: any[]) => boolean;
|
221
|
+
}, string, {
|
198
222
|
placement: string;
|
199
223
|
offset: number;
|
200
224
|
zIndex: number;
|
@@ -211,6 +235,7 @@ declare const BkPopover2: {
|
|
211
235
|
boundary: string;
|
212
236
|
disableTeleport: boolean;
|
213
237
|
autoPlacement: boolean;
|
238
|
+
disableOutsideClick: boolean;
|
214
239
|
}> & {
|
215
240
|
beforeCreate?: (() => void) | (() => void)[];
|
216
241
|
created?: (() => void) | (() => void)[];
|
@@ -306,7 +331,16 @@ declare const BkPopover2: {
|
|
306
331
|
} & {
|
307
332
|
default: boolean;
|
308
333
|
};
|
309
|
-
|
334
|
+
disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
|
335
|
+
default: boolean;
|
336
|
+
} & {
|
337
|
+
default: boolean;
|
338
|
+
};
|
339
|
+
}>> & {
|
340
|
+
onShow?: (...args: any[]) => any;
|
341
|
+
onHide?: (...args: any[]) => any;
|
342
|
+
onClickoutside?: (...args: any[]) => any;
|
343
|
+
} & import("vue").ShallowUnwrapRef<{
|
310
344
|
boundary: string;
|
311
345
|
arrow: boolean;
|
312
346
|
refReference: import("vue").Ref<any>;
|
@@ -317,6 +351,7 @@ declare const BkPopover2: {
|
|
317
351
|
disableTeleport: boolean;
|
318
352
|
width: string | number;
|
319
353
|
height: string | number;
|
354
|
+
handleClickOutside: (_e: MouseEvent) => void;
|
320
355
|
}> & {} & {} & import("vue").ComponentCustomProperties;
|
321
356
|
__isFragment?: never;
|
322
357
|
__isTeleport?: never;
|
@@ -396,7 +431,16 @@ declare const BkPopover2: {
|
|
396
431
|
} & {
|
397
432
|
default: boolean;
|
398
433
|
};
|
399
|
-
|
434
|
+
disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
|
435
|
+
default: boolean;
|
436
|
+
} & {
|
437
|
+
default: boolean;
|
438
|
+
};
|
439
|
+
}>> & {
|
440
|
+
onShow?: (...args: any[]) => any;
|
441
|
+
onHide?: (...args: any[]) => any;
|
442
|
+
onClickoutside?: (...args: any[]) => any;
|
443
|
+
}, {
|
400
444
|
boundary: string;
|
401
445
|
arrow: boolean;
|
402
446
|
refReference: import("vue").Ref<any>;
|
@@ -407,7 +451,12 @@ declare const BkPopover2: {
|
|
407
451
|
disableTeleport: boolean;
|
408
452
|
width: string | number;
|
409
453
|
height: string | number;
|
410
|
-
|
454
|
+
handleClickOutside: (_e: MouseEvent) => void;
|
455
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
456
|
+
show: (..._args: any[]) => boolean;
|
457
|
+
hide: (..._args: any[]) => boolean;
|
458
|
+
clickoutside: (..._args: any[]) => boolean;
|
459
|
+
}, string, {
|
411
460
|
placement: string;
|
412
461
|
offset: number;
|
413
462
|
zIndex: number;
|
@@ -424,5 +473,6 @@ declare const BkPopover2: {
|
|
424
473
|
boundary: string;
|
425
474
|
disableTeleport: boolean;
|
426
475
|
autoPlacement: boolean;
|
476
|
+
disableOutsideClick: boolean;
|
427
477
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
428
478
|
export default BkPopover2;
|
package/lib/popover2/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t)=>(()=>{var n={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,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 o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].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 o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,s=0;e.exports=function(e,t,n){var c=t&&n||0,f=t||[],u=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==u||null==d){var p=i();null==u&&(u=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:s+1,v=m-a+(h-s)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||m>a)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=m,s=h,r=d;var g=(1e4*(268435455&(m+=122192928e5))+h)%4294967296;f[c++]=g>>>24&255,f[c++]=g>>>16&255,f[c++]=g>>>8&255,f[c++]=255&g;var y=m/4294967296*1e4&268435455;f[c++]=y>>>8&255,f[c++]=255&y,f[c++]=y>>>24&15|16,f[c++]=y>>>16&255,f[c++]=d>>>8|128,f[c++]=255&d;for(var w=0;w<6;++w)f[c+w]=u[w];return t||l(f)}},6426:(e,t,n)=>{var o=n(9157),r=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 l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return n[e](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.r(i),r.d(i,{default:()=>ye});var e=r(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=r(748);const l=(0,o.defineComponent)({name:"PopArrow",render:function(){var t=(0,e.resolveClassName)("pop2-arrow");return(0,o.createVNode)("div",{class:t},null)}}),a=(0,o.defineComponent)({name:"PopContent",props:{width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto")},setup:function(e){var t=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,o.computed)((function(){return{width:t(e.width),height:t(e.height)}}))}},render:function(){var t,n,r,i,l,a,s=[(0,e.resolveClassName)("popover2"),(0,e.resolveClassName)("pop2-content")];return(0,o.createVNode)("div",{class:s,tabindex:"-1",style:this.style},[null!==(r=null===(n=(t=this.$slots).default)||void 0===n?void 0:n.call(t))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).arrow)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var s={onAfterHidden:Function,onAfterShow:Function},c=Object.assign({isShow:e.PropTypes.bool.def(!1),always:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),content:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),placement:e.PropTypes.placement(["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"]).def("top"),theme:e.PropTypes.string.def("dark"),trigger:e.PropTypes.string.def("hover"),arrow:e.PropTypes.bool.def(!0),padding:e.PropTypes.number.def(5),offset:e.PropTypes.number.def(6),boundary:e.PropTypes.string.def(void 0),zIndex:e.PropTypes.number.def(void 0),disableTeleport:e.PropTypes.bool.def(!1),autoPlacement:e.PropTypes.bool.def(!1)},s);const f=(0,o.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}});function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return["top","bottom"].includes(d(e))?"x":"y"}function h(e){return"y"===e?"height":"width"}function v(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=m(t),s=h(a),c=o[s]/2-r[s]/2,f="x"===a;let u;switch(d(t)){case"top":u={x:i,y:o.y-r.height};break;case"bottom":u={x:i,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:l};break;case"left":u={x:o.x-r.width,y:l};break;default:u={x:o.x,y:o.y}}switch(p(t)){case"start":u[a]-=c*(n&&f?-1:1);break;case"end":u[a]+=c*(n&&f?-1:1)}return u}function g(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function y(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function w(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:d=!1,padding:p=0}=t,m=g(p),h=a[d?"floating"===u?"reference":"floating":u],v=y(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:s})),w=y(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===u?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:s}):l[u]);return{top:v.top-w.top+m.top,bottom:w.bottom-v.bottom+m.bottom,left:v.left-w.left+m.left,right:w.right-v.right+m.right}}const b=Math.min,x=Math.max;function T(e,t,n){return x(e,b(t,n))}const P=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:s}=t;if(null==n)return{};const c=g(o),f={x:r,y:i},u=m(l),d=p(l),v=h(u),y=await s.getDimensions(n),w="y"===u?"top":"left",b="y"===u?"bottom":"right",x=a.reference[v]+a.reference[u]-f[u]-a.floating[v],P=f[u]-a.reference[u],R=await(null==s.getOffsetParent?void 0:s.getOffsetParent(n));let A=R?"y"===u?R.clientHeight||0:R.clientWidth||0:0;0===A&&(A=a.floating[v]);const C=x/2-P/2,O=c[w],E=A-y[v]-c[b],L=A/2-y[v]/2+C,S=T(O,L,E),N=("start"===d?c[w]:c[b])>0&&L!==S&&a.reference[v]<=a.floating[v];return{[u]:f[u]-(N?L<O?O-L:E-L:0),data:{[u]:S,centerOffset:L-S}}}}),R={left:"right",right:"left",bottom:"top",top:"bottom"};function A(e){return e.replace(/left|right|bottom|top/g,(e=>R[e]))}function C(e,t,n){void 0===n&&(n=!1);const o=p(e),r=m(e),i=h(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=A(l)),{main:l,cross:A(l)}}const O={start:"end",end:"start"};function E(e){return e.replace(/start|end/g,(e=>O[e]))}const L=["top","right","bottom","left"],S=L.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),N=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:s,rects:c,middlewareData:f,placement:u,platform:m,elements:h}=t,{alignment:v=null,allowedPlacements:g=S,autoAlignment:y=!0,...b}=e,x=function(e,t,n){return(e?[...n.filter((t=>p(t)===e)),...n.filter((t=>p(t)!==e))]:n.filter((e=>d(e)===e))).filter((n=>!e||p(n)===e||!!t&&E(n)!==n))}(v,y,g),T=await w(t,b),P=null!=(n=null==(o=f.autoPlacement)?void 0:o.index)?n:0,R=x[P];if(null==R)return{};const{main:A,cross:O}=C(R,c,await(null==m.isRTL?void 0:m.isRTL(h.floating)));if(u!==R)return{x:a,y:s,reset:{placement:x[0]}};const L=[T[d(R)],T[A],T[O]],N=[...null!=(r=null==(i=f.autoPlacement)?void 0:i.overflows)?r:[],{placement:R,overflows:L}],H=x[P+1];if(H)return{data:{index:P+1,overflows:N},reset:{placement:H}};const V=N.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),j=null==(l=V.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,k=null!=j?j:V[0].placement;return k!==u?{data:{index:P+1,overflows:N},reset:{placement:k}}:{}}}},H=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:s}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",flipAlignment:m=!0,...h}=e,v=d(o),g=u||(v!==l&&m?function(e){const t=A(e);return[E(e),t,E(t)]}(l):[A(l)]),y=[l,...g],b=await w(t,h),x=[];let T=(null==(n=r.flip)?void 0:n.overflows)||[];if(c&&x.push(b[v]),f){const{main:e,cross:t}=C(o,i,await(null==a.isRTL?void 0:a.isRTL(s.floating)));x.push(b[e],b[t])}if(T=[...T,{placement:o,overflows:x}],!x.every((e=>e<=0))){var P,R;const e=(null!=(P=null==(R=r.flip)?void 0:R.index)?P:0)+1,t=y[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n="bottom";switch(p){case"bestFit":{var O;const e=null==(O=T.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}};function V(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j(e){return L.some((t=>e[t]>=0))}const k=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=V(await w(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:j(t)}}}case"escaped":{const t=V(await w(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:j(t)}}}default:return{}}}}},D=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=d(n),a=p(n),s="x"===m(n),c=["left","top"].includes(l)?-1:1,f=i&&s?-1:1,u="function"==typeof t?t(e):t;let{mainAxis:h,crossAxis:v,alignmentAxis:g}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&"number"==typeof g&&(v="end"===a?-1*g:g),s?{x:v*f,y:h*c}:{x:h*c,y:v*f}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const M=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=e,c={x:n,y:o},f=await w(t,s),u=m(d(r)),p=function(e){return"x"===e?"y":"x"}(u);let h=c[u],v=c[p];if(i){const e="y"===u?"bottom":"right";h=T(h+f["y"===u?"top":"left"],h,h-f[e])}if(l){const e="y"===p?"bottom":"right";v=T(v+f["y"===p?"top":"left"],v,v-f[e])}const g=a.fn({...t,[u]:h,[p]:v});return{...g,data:{x:g.x-n,y:g.y-o}}}}},I=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:s=2,x:c,y:f}=e,u=y(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),p=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],h=g(s),v=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===p.length&&p[0].left>p[1].right&&null!=c&&null!=f)return null!=(e=p.find((e=>c>e.left-h.left&&c<e.right+h.right&&f>e.top-h.top&&f<e.bottom+h.bottom)))?e:u;if(p.length>=2){if("x"===m(o)){const e=p[0],t=p[p.length-1],n="top"===d(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===d(o),t=x(...p.map((e=>e.right))),n=b(...p.map((e=>e.left))),r=p.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return u}},floating:r.floating,strategy:a});return i.reference.x!==v.reference.x||i.reference.y!==v.reference.y||i.reference.width!==v.reference.width||i.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}};function $(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function W(e){if(null==e)return window;if(!$(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function q(e){return W(e).getComputedStyle(e)}function z(e){return $(e)?"":e?(e.nodeName||"").toLowerCase():""}function F(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function B(e){return e instanceof W(e).HTMLElement}function U(e){return e instanceof W(e).Element}function _(e){return"undefined"!=typeof ShadowRoot&&(e instanceof W(e).ShadowRoot||e instanceof ShadowRoot)}function X(e){const{overflow:t,overflowX:n,overflowY:o}=q(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function Y(e){return["table","td","th"].includes(z(e))}function Z(e){const t=/firefox/i.test(F()),n=q(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function G(){return!/^((?!chrome|android).)*safari/i.test(F())}const J=Math.min,K=Math.max,Q=Math.round;function ee(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let s=1,c=1;t&&B(e)&&(s=e.offsetWidth>0&&Q(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&Q(a.height)/e.offsetHeight||1);const f=U(e)?W(e):window,u=!G()&&n,d=(a.left+(u&&null!=(o=null==(r=f.visualViewport)?void 0:r.offsetLeft)?o:0))/s,p=(a.top+(u&&null!=(i=null==(l=f.visualViewport)?void 0:l.offsetTop)?i:0))/c,m=a.width/s,h=a.height/c;return{width:m,height:h,top:p,right:d+m,bottom:p+h,left:d,x:d,y:p}}function te(e){return(t=e,(t instanceof W(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function ne(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function oe(e){return ee(te(e)).left+ne(e).scrollLeft}function re(e,t,n){const o=B(t),r=te(t),i=ee(e,o&&function(e){const t=ee(e);return Q(t.width)!==e.offsetWidth||Q(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==z(t)||X(r))&&(l=ne(t)),B(t)){const e=ee(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=oe(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function ie(e){return"html"===z(e)?e:e.assignedSlot||e.parentNode||(_(e)?e.host:null)||te(e)}function le(e){return B(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function ae(e){const t=W(e);let n=le(e);for(;n&&Y(n)&&"static"===getComputedStyle(n).position;)n=le(n);return n&&("html"===z(n)||"body"===z(n)&&"static"===getComputedStyle(n).position&&!Z(n))?t:n||function(e){let t=ie(e);for(_(t)&&(t=t.host);B(t)&&!["html","body"].includes(z(t));){if(Z(t))return t;t=t.parentNode}return null}(e)||t}function se(e){if(B(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=ee(e);return{width:t.width,height:t.height}}function ce(e){const t=ie(e);return["html","body","#document"].includes(z(t))?e.ownerDocument.body:B(t)&&X(t)?t:ce(t)}function fe(e,t){var n;void 0===t&&(t=[]);const o=ce(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=W(o),l=r?[i].concat(i.visualViewport||[],X(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(fe(l))}function ue(e,t,n){return"viewport"===t?y(function(e,t){const n=W(e),o=te(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(r){i=r.width,l=r.height;const e=G();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,s=r.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,n)):U(t)?function(e,t){const n=ee(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):y(function(e){var t;const n=te(e),o=ne(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=K(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=K(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+oe(e);const s=-o.scrollTop;return"rtl"===q(r||n).direction&&(a+=K(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}(te(e)))}function de(e){const t=fe(e),n=["absolute","fixed"].includes(q(e).position)&&B(e)?ae(e):e;return U(n)?t.filter((e=>U(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&_(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==z(e))):[]}const pe={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?de(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=ue(t,n,r);return e.top=K(o.top,e.top),e.right=J(o.right,e.right),e.bottom=J(o.bottom,e.bottom),e.left=K(o.left,e.left),e}),ue(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=B(n),i=te(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==z(n)||X(i))&&(l=ne(n)),B(n))){const e=ee(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:U,getDimensions:se,getOffsetParent:ae,getDocumentElement:te,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:re(t,ae(n),o),floating:{...se(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===q(e).direction},me=function(t,n,r,i,l){var a=(0,o.ref)(t.isShow),s=["dark","light"],c=(0,o.computed)((function(){var e=t.theme.split(/\s+/);return e.sort((function(e,t){return Number(s.includes(t))-Number(s.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!s.includes(e)}))}})),f=function(){var e,n,o;return{elReference:d(null===(e=r.value)||void 0===e?void 0:e.$el),elContent:d(null===(n=i.value)||void 0===n?void 0:n.$el),elArrow:t.arrow?d(null===(o=l.value)||void 0===o?void 0:o.$el):null}},d=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):null},p=c.value.customThemes.join(" "),m=c.value.customThemes.reduce((function(e,t){return Object.assign(u({},"data-".concat(t,"-theme"),!0),e)}),{}),h="".concat(p),g=null,y=function(){var e=f(),n=e.elReference,o=e.elContent,r=e.elArrow,i=function(e){return{placement:t.placement,middleware:[I(),D(t.offset),t.autoPlacement?N():H(),M({padding:t.padding}),P({element:e}),k()]}}(r);g=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,s=r&&!a,c=i&&!a,f=s||c?[...U(e)?fe(e):[],...fe(t)]:[];f.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let u,d=null;l&&(d=new ResizeObserver(n),U(e)&&!a&&d.observe(e),d.observe(t));let p=a?ee(e):null;return a&&function t(){const o=ee(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,u=requestAnimationFrame(t)}(),l||n(),()=>{var e;f.forEach((e=>{s&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(u)}}(n,o,(function(){((e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let s=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:f}=v(s,o,a),u=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:m}=i[n],{x:h,y:g,data:y,reset:w}=await m({x:c,y:f,initialPlacement:o,placement:u,strategy:r,middlewareData:d,rects:s,platform:l,elements:{reference:e,floating:t}});c=null!=h?h:c,f=null!=g?g:f,d={...d,[p]:{...d[p],...y}},w&&("object"==typeof w&&(w.placement&&(u=w.placement),w.rects&&(s=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):w.rects),({x:c,y:f}=v(s,u,a))),n=-1)}return{x:c,y:f,placement:u,strategy:r,middlewareData:d}})(e,t,{platform:pe,...n}))(n,o,i).then((function(e){var n=e.x,i=e.y,l=e.placement,a=e.middlewareData,s=o.className;o.className="".concat(s.replace(h,"")," ").concat(h).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(m).forEach((function(e){o.setAttribute(e,m[e])}));var c=a.hide.referenceHidden;if(Object.assign(o.style,{left:"".concat(n,"px"),top:"".concat(i,"px"),visibility:c?"hidden":"visible"}),t.arrow){var f=a.arrow,d=f.x,p=f.y,v=l.split("-")[0],g={top:"bottom",right:"left",bottom:"top",left:"right"}[v];r.setAttribute("data-arrow",v),Object.assign(r.style,u({left:w(d)?"".concat(d,"px"):"",top:w(p)?"".concat(p,"px"):"",right:"",bottom:""},g,"-4px"))}}))}))},w=function(e){return/^-?\d+\.?\d*$/.test("".concat(e))},b=function(){var o,r=d(null===(o=i.value)||void 0===o?void 0:o.$el);r.style.setProperty("display","block"),r.style.setProperty("z-index","".concat(t.zIndex?t.zIndex:e.bkZIndexManager.getModalNextIndex())),y(),n.emit("update:isShow",!0),n.emit("afterShow",!1)},x=function(){var e;d(null===(e=i.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),n.emit("update:isShow",!1),n.emit("afterHidden",!1)},T=function(){a.value?x():b(),a.value=!a.value};return{showPopover:b,hidePopover:x,resolveTriggerEvents:function(){var e;return null!==(e={hover:[["mouseenter",b],["mouseleave",x],["focus",b],["blur",x]],click:[["click",T]],manual:[[]]}[t.trigger])&&void 0!==e?e:[]},updatePopover:y,triggerPopover:T,resolvePopElements:f,localIsShow:a,cleanup:g}};var he=r(8022),ve=null;const ge=(0,o.defineComponent)({name:"Popover2",components:{Content:a,Arrow:l},props:c,setup:function(e,t){var r=e.content,i=e.theme,l=e.disableTeleport,a=e.width,s=e.height,c=(0,o.toRef)(e,"isShow"),f=(0,o.ref)(),u=(0,o.ref)(),d=(0,o.ref)(),p=null,m=me(e,t,f,u,d),h=m.localIsShow,v=m.showPopover,g=m.triggerPopover,y=m.resolveTriggerEvents,w=m.updatePopover,b=m.resolvePopElements,x=m.cleanup,T=function(){w(),e.always?v():P()};e.always||e.disabled||(0,o.watch)([c],(function(){h.value=e.isShow,g()})),(0,o.watch)((function(){return[e.disabled]}),(function(e){e[0]?T():R()}));var P=function(){var e=b().elReference;(p=y()).forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.addEventListener(r,i)}))},R=function(){"function"==typeof x&&x(),function(){if(null==p?void 0:p.length){var e=b().elReference;e&&p.forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.removeEventListener(r,i)})),p=null}}()};(0,o.onMounted)((function(){e.disabled||T()})),(0,o.onUnmounted)((function(){R()})),t.expose({show:function(){h.value=!0,g()},hide:function(){h.value=!1,g()}});var A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#",t=function(){return"".concat(e).concat(ve)},n=function(){return document.querySelector(t())instanceof HTMLElement};if(null===ve||!n()){ve="id_".concat((0,he.v4)());var o=document.createElement("div");o.setAttribute("id",ve),o.setAttribute("data-popper-id",ve),document.body.append(o)}return{popContainerId:ve,prefixId:t()}}(),C=A.prefixId;return{boundary:"string"==typeof e.boundary?e.boundary:C,arrow:e.arrow,refReference:f,refContent:u,refArrow:d,content:r,theme:i,disableTeleport:l,width:a,height:s}},render:function(){var e,t,n,r,i,s,c=this;return(0,o.createVNode)(o.Fragment,null,[(0,o.createVNode)(f,{ref:"refReference"},{default:function(){return[null!==(n=null===(t=(e=c.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:(0,o.createVNode)("span",null,null)]}}),(0,o.createVNode)(o.Teleport,{to:this.boundary,disabled:this.disableTeleport},{default:function(){return[(0,o.createVNode)(a,{ref:"refContent","data-theme":c.theme,width:c.width,height:c.height},{default:function(){return[null!==(s=null===(i=(r=c.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==s?s:c.content]},arrow:function(){var e,t;return c.arrow?(0,o.createVNode)(l,{ref:"refArrow"},{default:function(){return[null===(t=(e=c.$slots).arrow)||void 0===t?void 0:t.call(e)]}}):""}})]}})])}}),ye=(0,e.withInstall)(ge)})(),i})()));
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../directives"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives")):t(e["../shared"],e.vue,e["../directives"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,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 o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].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 o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,c=0;e.exports=function(e,t,n){var s=t&&n||0,f=t||[],u=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==u||null==d){var p=i();null==u&&(u=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:c+1,v=m-a+(h-c)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||m>a)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=m,c=h,r=d;var g=(1e4*(268435455&(m+=122192928e5))+h)%4294967296;f[s++]=g>>>24&255,f[s++]=g>>>16&255,f[s++]=g>>>8&255,f[s++]=255&g;var y=m/4294967296*1e4&268435455;f[s++]=y>>>8&255,f[s++]=255&y,f[s++]=y>>>24&15|16,f[s++]=y>>>16&255,f[s++]=d>>>8|128,f[s++]=255&d;for(var w=0;w<6;++w)f[s+w]=u[w];return t||l(f)}},6426:(e,t,n)=>{var o=n(9157),r=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 l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4061:e=>{"use strict";e.exports=n},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.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 l={};return(()=>{"use strict";i.r(l),i.d(l,{default:()=>Pe});var e=i(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=i(748),r=i(4061);const a=(0,o.defineComponent)({name:"PopArrow",render:function(){var t=(0,e.resolveClassName)("pop2-arrow");return(0,o.createVNode)("div",{class:t},null)}});function c(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,f,u=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside"}(f||(f={}));var d=(c(s={},f.SHOW,u),c(s,f.HIDE,u),c(s,f.CLICK_OUTSIDE,u),s);const p=(0,o.defineComponent)({name:"PopContent",props:{width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto")},setup:function(e){var t=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,o.computed)((function(){return{width:t(e.width),height:t(e.height)}}))}},render:function(){var t,n,r,i,l,a,c=[(0,e.resolveClassName)("popover2"),(0,e.resolveClassName)("pop2-content")];return(0,o.createVNode)("div",{class:c,tabindex:"-1",style:this.style},[null!==(r=null===(n=(t=this.$slots).default)||void 0===n?void 0:n.call(t))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).arrow)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var m={onAfterHidden:Function,onAfterShow:Function},h=Object.assign({isShow:e.PropTypes.bool.def(!1),always:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),content:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),placement:e.PropTypes.placement(["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"]).def("top"),theme:e.PropTypes.string.def("dark"),trigger:e.PropTypes.string.def("hover"),arrow:e.PropTypes.bool.def(!0),padding:e.PropTypes.number.def(5),offset:e.PropTypes.number.def(6),boundary:e.PropTypes.string.def(void 0),zIndex:e.PropTypes.number.def(void 0),disableTeleport:e.PropTypes.bool.def(!1),autoPlacement:e.PropTypes.bool.def(!1),disableOutsideClick:e.PropTypes.bool.def(!1)},m);const v=(0,o.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}});function g(e){return e.split("-")[0]}function y(e){return e.split("-")[1]}function w(e){return["top","bottom"].includes(g(e))?"x":"y"}function b(e){return"y"===e?"height":"width"}function x(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=w(t),c=b(a),s=o[c]/2-r[c]/2,f="x"===a;let u;switch(g(t)){case"top":u={x:i,y:o.y-r.height};break;case"bottom":u={x:i,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:l};break;case"left":u={x:o.x-r.width,y:l};break;default:u={x:o.x,y:o.y}}switch(y(t)){case"start":u[a]-=s*(n&&f?-1:1);break;case"end":u[a]+=s*(n&&f?-1:1)}return u}function T(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function P(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function R(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:d=!1,padding:p=0}=t,m=T(p),h=a[d?"floating"===u?"reference":"floating":u],v=P(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:f,strategy:c})),g=P(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===u?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:c}):l[u]);return{top:v.top-g.top+m.top,bottom:g.bottom-v.bottom+m.bottom,left:v.left-g.left+m.left,right:g.right-v.right+m.right}}const C=Math.min,O=Math.max;function A(e,t,n){return O(e,C(t,n))}const E=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:c}=t;if(null==n)return{};const s=T(o),f={x:r,y:i},u=w(l),d=y(l),p=b(u),m=await c.getDimensions(n),h="y"===u?"top":"left",v="y"===u?"bottom":"right",g=a.reference[p]+a.reference[u]-f[u]-a.floating[p],x=f[u]-a.reference[u],P=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let R=P?"y"===u?P.clientHeight||0:P.clientWidth||0:0;0===R&&(R=a.floating[p]);const C=g/2-x/2,O=s[h],E=R-m[p]-s[v],S=R/2-m[p]/2+C,L=A(O,S,E),H=("start"===d?s[h]:s[v])>0&&S!==L&&a.reference[p]<=a.floating[p];return{[u]:f[u]-(H?S<O?O-S:E-S:0),data:{[u]:L,centerOffset:S-L}}}}),S={left:"right",right:"left",bottom:"top",top:"bottom"};function L(e){return e.replace(/left|right|bottom|top/g,(e=>S[e]))}function H(e,t,n){void 0===n&&(n=!1);const o=y(e),r=w(e),i=b(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=L(l)),{main:l,cross:L(l)}}const k={start:"end",end:"start"};function D(e){return e.replace(/start|end/g,(e=>k[e]))}const I=["top","right","bottom","left"],N=I.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),V=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:c,rects:s,middlewareData:f,placement:u,platform:d,elements:p}=t,{alignment:m=null,allowedPlacements:h=N,autoAlignment:v=!0,...w}=e,b=function(e,t,n){return(e?[...n.filter((t=>y(t)===e)),...n.filter((t=>y(t)!==e))]:n.filter((e=>g(e)===e))).filter((n=>!e||y(n)===e||!!t&&D(n)!==n))}(m,v,h),x=await R(t,w),T=null!=(n=null==(o=f.autoPlacement)?void 0:o.index)?n:0,P=b[T];if(null==P)return{};const{main:C,cross:O}=H(P,s,await(null==d.isRTL?void 0:d.isRTL(p.floating)));if(u!==P)return{x:a,y:c,reset:{placement:b[0]}};const A=[x[g(P)],x[C],x[O]],E=[...null!=(r=null==(i=f.autoPlacement)?void 0:i.overflows)?r:[],{placement:P,overflows:A}],S=b[T+1];if(S)return{data:{index:T+1,overflows:E},reset:{placement:S}};const L=E.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),k=null==(l=L.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,I=null!=k?k:L[0].placement;return I!==u?{data:{index:T+1,overflows:E},reset:{placement:I}}:{}}}},j=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:s=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...m}=e,h=g(o),v=u||(h!==l&&p?function(e){const t=L(e);return[D(e),t,D(t)]}(l):[L(l)]),y=[l,...v],w=await R(t,m),b=[];let x=(null==(n=r.flip)?void 0:n.overflows)||[];if(s&&b.push(w[h]),f){const{main:e,cross:t}=H(o,i,await(null==a.isRTL?void 0:a.isRTL(c.floating)));b.push(w[e],w[t])}if(x=[...x,{placement:o,overflows:b}],!b.every((e=>e<=0))){var T,P;const e=(null!=(T=null==(P=r.flip)?void 0:P.index)?T:0)+1,t=y[e];if(t)return{data:{index:e,overflows:x},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var C;const e=null==(C=x.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:C[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}};function M(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function W(e){return I.some((t=>e[t]>=0))}const $=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=M(await R(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:W(t)}}}case"escaped":{const t=M(await R(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:W(t)}}}default:return{}}}}},q=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=g(n),a=y(n),c="x"===w(n),s=["left","top"].includes(l)?-1:1,f=i&&c?-1:1,u="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),c?{x:p*f,y:d*s}:{x:d*s,y:p*f}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const z=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,s={x:n,y:o},f=await R(t,c),u=w(g(r)),d=function(e){return"x"===e?"y":"x"}(u);let p=s[u],m=s[d];if(i){const e="y"===u?"bottom":"right";p=A(p+f["y"===u?"top":"left"],p,p-f[e])}if(l){const e="y"===d?"bottom":"right";m=A(m+f["y"===d?"top":"left"],m,m-f[e])}const h=a.fn({...t,[u]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-o}}}}},F=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:c=2,x:s,y:f}=e,u=P(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),d=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],p=T(c),m=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===d.length&&d[0].left>d[1].right&&null!=s&&null!=f)return null!=(e=d.find((e=>s>e.left-p.left&&s<e.right+p.right&&f>e.top-p.top&&f<e.bottom+p.bottom)))?e:u;if(d.length>=2){if("x"===w(o)){const e=d[0],t=d[d.length-1],n="top"===g(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===g(o),t=O(...d.map((e=>e.right))),n=C(...d.map((e=>e.left))),r=d.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return u}},floating:r.floating,strategy:a});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}};function B(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function U(e){if(null==e)return window;if(!B(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function _(e){return U(e).getComputedStyle(e)}function K(e){return B(e)?"":e?(e.nodeName||"").toLowerCase():""}function X(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Y(e){return e instanceof U(e).HTMLElement}function Z(e){return e instanceof U(e).Element}function G(e){return"undefined"!=typeof ShadowRoot&&(e instanceof U(e).ShadowRoot||e instanceof ShadowRoot)}function J(e){const{overflow:t,overflowX:n,overflowY:o}=_(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function Q(e){return["table","td","th"].includes(K(e))}function ee(e){const t=/firefox/i.test(X()),n=_(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function te(){return!/^((?!chrome|android).)*safari/i.test(X())}const ne=Math.min,oe=Math.max,re=Math.round;function ie(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let c=1,s=1;t&&Y(e)&&(c=e.offsetWidth>0&&re(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&re(a.height)/e.offsetHeight||1);const f=Z(e)?U(e):window,u=!te()&&n,d=(a.left+(u&&null!=(o=null==(r=f.visualViewport)?void 0:r.offsetLeft)?o:0))/c,p=(a.top+(u&&null!=(i=null==(l=f.visualViewport)?void 0:l.offsetTop)?i:0))/s,m=a.width/c,h=a.height/s;return{width:m,height:h,top:p,right:d+m,bottom:p+h,left:d,x:d,y:p}}function le(e){return(t=e,(t instanceof U(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function ae(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ce(e){return ie(le(e)).left+ae(e).scrollLeft}function se(e,t,n){const o=Y(t),r=le(t),i=ie(e,o&&function(e){const t=ie(e);return re(t.width)!==e.offsetWidth||re(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==K(t)||J(r))&&(l=ae(t)),Y(t)){const e=ie(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=ce(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function fe(e){return"html"===K(e)?e:e.assignedSlot||e.parentNode||(G(e)?e.host:null)||le(e)}function ue(e){return Y(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function de(e){const t=U(e);let n=ue(e);for(;n&&Q(n)&&"static"===getComputedStyle(n).position;)n=ue(n);return n&&("html"===K(n)||"body"===K(n)&&"static"===getComputedStyle(n).position&&!ee(n))?t:n||function(e){let t=fe(e);for(G(t)&&(t=t.host);Y(t)&&!["html","body"].includes(K(t));){if(ee(t))return t;t=t.parentNode}return null}(e)||t}function pe(e){if(Y(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=ie(e);return{width:t.width,height:t.height}}function me(e){const t=fe(e);return["html","body","#document"].includes(K(t))?e.ownerDocument.body:Y(t)&&J(t)?t:me(t)}function he(e,t){var n;void 0===t&&(t=[]);const o=me(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=U(o),l=r?[i].concat(i.visualViewport||[],J(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(he(l))}function ve(e,t,n){return"viewport"===t?P(function(e,t){const n=U(e),o=le(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,c=0;if(r){i=r.width,l=r.height;const e=te();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:l,x:a,y:c}}(e,n)):Z(t)?function(e,t){const n=ie(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):P(function(e){var t;const n=le(e),o=ae(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=oe(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=oe(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+ce(e);const c=-o.scrollTop;return"rtl"===_(r||n).direction&&(a+=oe(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}(le(e)))}function ge(e){const t=he(e),n=["absolute","fixed"].includes(_(e).position)&&Y(e)?de(e):e;return Z(n)?t.filter((e=>Z(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&G(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==K(e))):[]}const ye={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?ge(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=ve(t,n,r);return e.top=oe(o.top,e.top),e.right=ne(o.right,e.right),e.bottom=ne(o.bottom,e.bottom),e.left=oe(o.left,e.left),e}),ve(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=Y(n),i=le(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==K(n)||J(i))&&(l=ae(n)),Y(n))){const e=ie(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:Z,getDimensions:pe,getOffsetParent:de,getDocumentElement:le,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:se(t,de(n),o),floating:{...pe(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===_(e).direction},we=function(t,n,r,i,l){var a=(0,o.ref)(!1),s=["dark","light"],f=(0,o.computed)((function(){var e=t.theme.split(/\s+/);return e.sort((function(e,t){return Number(s.includes(t))-Number(s.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!s.includes(e)}))}})),u=function(){var e,n,o;return{elReference:d(null===(e=r.value)||void 0===e?void 0:e.$el),elContent:d(null===(n=i.value)||void 0===n?void 0:n.$el),elArrow:t.arrow?d(null===(o=l.value)||void 0===o?void 0:o.$el):null}},d=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):null},p=f.value.customThemes.join(" "),m=f.value.customThemes.reduce((function(e,t){return Object.assign(c({},"data-".concat(t,"-theme"),!0),e)}),{}),h="".concat(p),v=null,g=function(){var e=u(),n=e.elReference,o=e.elContent,r=e.elArrow,i=function(e){return{placement:t.placement,middleware:[F(),q(t.offset),t.autoPlacement?V():j(),z({padding:t.padding}),E({element:e}),$()]}}(r);v=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,c=r&&!a,s=i&&!a,f=c||s?[...Z(e)?he(e):[],...he(t)]:[];f.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));let u,d=null;l&&(d=new ResizeObserver(n),Z(e)&&!a&&d.observe(e),d.observe(t));let p=a?ie(e):null;return a&&function t(){const o=ie(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,u=requestAnimationFrame(t)}(),l||n(),()=>{var e;f.forEach((e=>{c&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(u)}}(n,o,(function(){((e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:s,y:f}=x(c,o,a),u=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:m}=i[n],{x:h,y:v,data:g,reset:y}=await m({x:s,y:f,initialPlacement:o,placement:u,strategy:r,middlewareData:d,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=h?h:s,f=null!=v?v:f,d={...d,[p]:{...d[p],...g}},y&&("object"==typeof y&&(y.placement&&(u=y.placement),y.rects&&(c=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:s,y:f}=x(c,u,a))),n=-1)}return{x:s,y:f,placement:u,strategy:r,middlewareData:d}})(e,t,{platform:ye,...n}))(n,o,i).then((function(e){var n=e.x,i=e.y,l=e.placement,a=e.middlewareData,s=o.className;o.className="".concat(s.replace(h,"")," ").concat(h).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(m).forEach((function(e){o.setAttribute(e,m[e])}));var f=a.hide.referenceHidden;if(Object.assign(o.style,{left:"".concat(n,"px"),top:"".concat(i,"px"),visibility:f?"hidden":"visible"}),t.arrow){var u=a.arrow,d=u.x,p=u.y,v=l.split("-")[0],g={top:"bottom",right:"left",bottom:"top",left:"right"}[v];r.setAttribute("data-arrow",v),Object.assign(r.style,c({left:y(d)?"".concat(d,"px"):"",top:y(p)?"".concat(p,"px"):"",right:"",bottom:""},g,"-4px"))}}))}))},y=function(e){return/^-?\d+\.?\d*$/.test("".concat(e))},w=function(){a.value=!0},b=function(){a.value=!1},T=function(){a.value?b():w()},P=function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),T()};return(0,o.watch)(a,(function(o){var r,l;o?((l=d(null===(r=i.value)||void 0===r?void 0:r.$el)).style.setProperty("display","block"),l.style.setProperty("z-index","".concat(t.zIndex?t.zIndex:e.bkZIndexManager.getModalNextIndex())),g(),n.emit("afterShow",{isSHow:!0})):function(){var e;d(null===(e=i.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),n.emit("afterHidden",{isSHow:!1})}()})),{showPopover:w,hidePopover:b,resolveTriggerEvents:function(){var e;return null!==(e={hover:[["mouseenter",w],["mouseleave",b],["focus",w],["blur",b]],click:[["click",P]],manual:[[]]}[t.trigger])&&void 0!==e?e:[]},updatePopover:g,triggerPopover:T,resolvePopElements:u,localIsShow:a,cleanup:v}};var be=i(8022),xe=null;const Te=(0,o.defineComponent)({name:"Popover2",components:{Content:p,Arrow:a},directives:{clickoutside:r.clickoutside},props:h,emits:d,setup:function(e,t){var r=e.content,i=e.theme,l=e.disableTeleport,a=e.width,c=e.height,s=(0,o.ref)(),u=(0,o.ref)(),d=(0,o.ref)(),p=null,m=we(e,t,s,u,d),h=m.localIsShow,v=m.showPopover,g=m.hidePopover,y=m.resolveTriggerEvents,w=m.updatePopover,b=m.resolvePopElements,x=m.cleanup,T=function(){g()},P=function(){w(),e.always?v():R()};e.always||e.disabled||(0,o.watch)((function(){return e.isShow}),(function(){e.isShow?v():g()}),{immediate:!0}),(0,o.watch)((function(){return[e.disabled]}),(function(e){e[0]?P():C()}));var R=function(){var e=b().elReference;(p=y()).forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.addEventListener(r,i)}))},C=function(){"function"==typeof x&&x(),function(){if(null==p?void 0:p.length){var e=b().elReference;e&&p.forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.removeEventListener(r,i)})),p=null}}()};(0,o.onMounted)((function(){e.disabled||P()})),(0,o.onUnmounted)((function(){C()})),t.expose({show:function(){v()},hide:T});var O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#",t=function(){return"".concat(e).concat(xe)},n=function(){return document.querySelector(t())instanceof HTMLElement};if(null===xe||!n()){xe="id_".concat((0,be.v4)());var o=document.createElement("div");o.setAttribute("id",xe),o.setAttribute("data-popper-id",xe),document.body.append(o)}return{popContainerId:xe,prefixId:t()}}(),A=O.prefixId;return{boundary:"string"==typeof e.boundary?e.boundary:A,arrow:e.arrow,refReference:s,refContent:u,refArrow:d,content:r,theme:i,disableTeleport:l,width:a,height:c,handleClickOutside:function(n){console.log("handleClickOutside",h.value),t.emit(f.CLICK_OUTSIDE,{isShow:h.value}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||h.value&&T()}}},render:function(){var e,t,n,r,i,l,c=this;return(0,o.createVNode)(o.Fragment,null,[(0,o.createVNode)(v,{ref:"refReference"},{default:function(){return[null!==(n=null===(t=(e=c.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:(0,o.createVNode)("span",null,null)]}}),(0,o.createVNode)(o.Teleport,{to:this.boundary,disabled:this.disableTeleport},{default:function(){return[(0,o.withDirectives)((0,o.createVNode)(p,{ref:"refContent","data-theme":c.theme,width:c.width,height:c.height},{default:function(){return[null!==(l=null===(i=(r=c.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==l?l:c.content]},arrow:function(){var e,t;return c.arrow?(0,o.createVNode)(a,{ref:"refArrow"},{default:function(){return[null===(t=(e=c.$slots).arrow)||void 0===t?void 0:t.call(e)]}}):""}}),[[(0,o.resolveDirective)("clickoutside"),c.handleClickOutside]])]}})])}}),Pe=(0,e.withInstall)(Te)})(),l})()));
|