ra-element 0.0.2 → 0.0.4
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getCurrentInstance as G, inject as R, ref as _, computed as w, unref as l, shallowRef as
|
|
2
|
-
const
|
|
1
|
+
import { getCurrentInstance as G, inject as R, ref as _, computed as w, unref as l, shallowRef as At, watchEffect as st, readonly as at, getCurrentScope as Ft, onScopeDispose as it, isRef as lt, warn as xt, defineComponent as N, createElementBlock as q, openBlock as x, mergeProps as Ie, renderSlot as C, createElementVNode as Q, onMounted as oe, onBeforeUnmount as pe, provide as ct, watch as K, nextTick as we, createBlock as te, Teleport as Mt, createVNode as ee, h as kt, normalizeStyle as ut, normalizeClass as B, createCommentVNode as Se, toDisplayString as Rt, withCtx as $, resolveDynamicComponent as jt, useSlots as Bt, Transition as zt, withDirectives as Kt, createSlots as Ut, vShow as Vt } from "vue";
|
|
2
|
+
const Yt = Symbol(), ue = "el", Ht = "is-", U = (e, t, n, o, r) => {
|
|
3
3
|
let s = `${e}-${t}`;
|
|
4
4
|
return n && (s += `-${n}`), o && (s += `__${o}`), r && (s += `--${r}`), s;
|
|
5
|
-
},
|
|
6
|
-
const t = G() ? R(
|
|
5
|
+
}, Gt = Symbol("namespaceContextKey"), dt = (e) => {
|
|
6
|
+
const t = G() ? R(Gt, _(ue)) : _(ue);
|
|
7
7
|
return w(() => l(t) || ue);
|
|
8
8
|
}, ve = (e, t) => {
|
|
9
9
|
const n = dt();
|
|
@@ -18,7 +18,7 @@ const Vt = Symbol(), ue = "el", Yt = "is-", U = (e, t, n, o, r) => {
|
|
|
18
18
|
bem: (a, d, c) => a && d && c ? U(n.value, e, a, d, c) : "",
|
|
19
19
|
is: (a, ...d) => {
|
|
20
20
|
const c = d.length >= 1 ? d[0] : !0;
|
|
21
|
-
return a && c ? `${
|
|
21
|
+
return a && c ? `${Ht}${a}` : "";
|
|
22
22
|
},
|
|
23
23
|
cssVar: (a) => {
|
|
24
24
|
const d = {};
|
|
@@ -44,39 +44,39 @@ const Vt = Symbol(), ue = "el", Yt = "is-", U = (e, t, n, o, r) => {
|
|
|
44
44
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
45
45
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
46
46
|
const Ee = () => {
|
|
47
|
-
},
|
|
47
|
+
}, Wt = Object.prototype.hasOwnProperty, xe = (e, t) => Wt.call(e, t), Jt = (e) => typeof e == "function", me = (e) => typeof e == "string", ft = (e) => e !== null && typeof e == "object", Xt = (e) => {
|
|
48
48
|
const t = /* @__PURE__ */ Object.create(null);
|
|
49
49
|
return (n) => t[n] || (t[n] = e(n));
|
|
50
|
-
},
|
|
51
|
-
(e) => e.replace(
|
|
50
|
+
}, Zt = /-(\w)/g, qt = Xt(
|
|
51
|
+
(e) => e.replace(Zt, (t, n) => n ? n.toUpperCase() : "")
|
|
52
52
|
);
|
|
53
|
-
var
|
|
54
|
-
function
|
|
55
|
-
var t =
|
|
53
|
+
var Qt = typeof global == "object" && global && global.Object === Object && global, en = typeof self == "object" && self && self.Object === Object && self, Pe = Qt || en || Function("return this")(), W = Pe.Symbol, pt = Object.prototype, tn = pt.hasOwnProperty, nn = pt.toString, Z = W ? W.toStringTag : void 0;
|
|
54
|
+
function on(e) {
|
|
55
|
+
var t = tn.call(e, Z), n = e[Z];
|
|
56
56
|
try {
|
|
57
57
|
e[Z] = void 0;
|
|
58
58
|
var o = !0;
|
|
59
59
|
} catch {
|
|
60
60
|
}
|
|
61
|
-
var r =
|
|
61
|
+
var r = nn.call(e);
|
|
62
62
|
return o && (t ? e[Z] = n : delete e[Z]), r;
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
function
|
|
66
|
-
return
|
|
64
|
+
var rn = Object.prototype, sn = rn.toString;
|
|
65
|
+
function an(e) {
|
|
66
|
+
return sn.call(e);
|
|
67
67
|
}
|
|
68
|
-
var
|
|
68
|
+
var ln = "[object Null]", cn = "[object Undefined]", Me = W ? W.toStringTag : void 0;
|
|
69
69
|
function vt(e) {
|
|
70
|
-
return e == null ? e === void 0 ?
|
|
70
|
+
return e == null ? e === void 0 ? cn : ln : Me && Me in Object(e) ? on(e) : an(e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function un(e) {
|
|
73
73
|
return e != null && typeof e == "object";
|
|
74
74
|
}
|
|
75
|
-
var
|
|
75
|
+
var dn = "[object Symbol]";
|
|
76
76
|
function $e(e) {
|
|
77
|
-
return typeof e == "symbol" ||
|
|
77
|
+
return typeof e == "symbol" || un(e) && vt(e) == dn;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function fn(e, t) {
|
|
80
80
|
for (var n = -1, o = e == null ? 0 : e.length, r = Array(o); ++n < o; )
|
|
81
81
|
r[n] = t(e[n], n, e);
|
|
82
82
|
return r;
|
|
@@ -86,7 +86,7 @@ function mt(e) {
|
|
|
86
86
|
if (typeof e == "string")
|
|
87
87
|
return e;
|
|
88
88
|
if (Ne(e))
|
|
89
|
-
return
|
|
89
|
+
return fn(e, mt) + "";
|
|
90
90
|
if ($e(e))
|
|
91
91
|
return Re ? Re.call(e) : "";
|
|
92
92
|
var t = e + "";
|
|
@@ -96,25 +96,25 @@ function yt(e) {
|
|
|
96
96
|
var t = typeof e;
|
|
97
97
|
return e != null && (t == "object" || t == "function");
|
|
98
98
|
}
|
|
99
|
-
var
|
|
100
|
-
function
|
|
99
|
+
var pn = "[object AsyncFunction]", vn = "[object Function]", mn = "[object GeneratorFunction]", yn = "[object Proxy]";
|
|
100
|
+
function hn(e) {
|
|
101
101
|
if (!yt(e))
|
|
102
102
|
return !1;
|
|
103
103
|
var t = vt(e);
|
|
104
|
-
return t ==
|
|
104
|
+
return t == vn || t == mn || t == pn || t == yn;
|
|
105
105
|
}
|
|
106
106
|
var _e = Pe["__core-js_shared__"], je = function() {
|
|
107
107
|
var e = /[^.]+$/.exec(_e && _e.keys && _e.keys.IE_PROTO || "");
|
|
108
108
|
return e ? "Symbol(src)_1." + e : "";
|
|
109
109
|
}();
|
|
110
|
-
function
|
|
110
|
+
function gn(e) {
|
|
111
111
|
return !!je && je in e;
|
|
112
112
|
}
|
|
113
|
-
var
|
|
114
|
-
function
|
|
113
|
+
var bn = Function.prototype, En = bn.toString;
|
|
114
|
+
function _n(e) {
|
|
115
115
|
if (e != null) {
|
|
116
116
|
try {
|
|
117
|
-
return
|
|
117
|
+
return En.call(e);
|
|
118
118
|
} catch {
|
|
119
119
|
}
|
|
120
120
|
try {
|
|
@@ -124,58 +124,58 @@ function En(e) {
|
|
|
124
124
|
}
|
|
125
125
|
return "";
|
|
126
126
|
}
|
|
127
|
-
var
|
|
128
|
-
"^" +
|
|
127
|
+
var Cn = /[\\^$.*+?()[\]{}|]/g, Tn = /^\[object .+?Constructor\]$/, wn = Function.prototype, Sn = Object.prototype, On = wn.toString, In = Sn.hasOwnProperty, Pn = RegExp(
|
|
128
|
+
"^" + On.call(In).replace(Cn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
129
129
|
);
|
|
130
|
-
function
|
|
131
|
-
if (!yt(e) ||
|
|
130
|
+
function $n(e) {
|
|
131
|
+
if (!yt(e) || gn(e))
|
|
132
132
|
return !1;
|
|
133
|
-
var t =
|
|
134
|
-
return t.test(
|
|
133
|
+
var t = hn(e) ? Pn : Tn;
|
|
134
|
+
return t.test(_n(e));
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Nn(e, t) {
|
|
137
137
|
return e?.[t];
|
|
138
138
|
}
|
|
139
139
|
function ht(e, t) {
|
|
140
|
-
var n =
|
|
141
|
-
return
|
|
140
|
+
var n = Nn(e, t);
|
|
141
|
+
return $n(n) ? n : void 0;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Ln(e, t) {
|
|
144
144
|
return e === t || e !== e && t !== t;
|
|
145
145
|
}
|
|
146
|
-
var
|
|
147
|
-
function
|
|
146
|
+
var Dn = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, An = /^\w*$/;
|
|
147
|
+
function Fn(e, t) {
|
|
148
148
|
if (Ne(e))
|
|
149
149
|
return !1;
|
|
150
150
|
var n = typeof e;
|
|
151
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null || $e(e) ? !0 :
|
|
151
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || $e(e) ? !0 : An.test(e) || !Dn.test(e) || t != null && e in Object(t);
|
|
152
152
|
}
|
|
153
153
|
var ne = ht(Object, "create");
|
|
154
|
-
function
|
|
154
|
+
function xn() {
|
|
155
155
|
this.__data__ = ne ? ne(null) : {}, this.size = 0;
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Mn(e) {
|
|
158
158
|
var t = this.has(e) && delete this.__data__[e];
|
|
159
159
|
return this.size -= t ? 1 : 0, t;
|
|
160
160
|
}
|
|
161
|
-
var
|
|
162
|
-
function
|
|
161
|
+
var kn = "__lodash_hash_undefined__", Rn = Object.prototype, jn = Rn.hasOwnProperty;
|
|
162
|
+
function Bn(e) {
|
|
163
163
|
var t = this.__data__;
|
|
164
164
|
if (ne) {
|
|
165
165
|
var n = t[e];
|
|
166
|
-
return n ===
|
|
166
|
+
return n === kn ? void 0 : n;
|
|
167
167
|
}
|
|
168
|
-
return
|
|
168
|
+
return jn.call(t, e) ? t[e] : void 0;
|
|
169
169
|
}
|
|
170
|
-
var
|
|
171
|
-
function
|
|
170
|
+
var zn = Object.prototype, Kn = zn.hasOwnProperty;
|
|
171
|
+
function Un(e) {
|
|
172
172
|
var t = this.__data__;
|
|
173
|
-
return ne ? t[e] !== void 0 :
|
|
173
|
+
return ne ? t[e] !== void 0 : Kn.call(t, e);
|
|
174
174
|
}
|
|
175
|
-
var
|
|
176
|
-
function
|
|
175
|
+
var Vn = "__lodash_hash_undefined__";
|
|
176
|
+
function Yn(e, t) {
|
|
177
177
|
var n = this.__data__;
|
|
178
|
-
return this.size += this.has(e) ? 0 : 1, n[e] = ne && t === void 0 ?
|
|
178
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = ne && t === void 0 ? Vn : t, this;
|
|
179
179
|
}
|
|
180
180
|
function V(e) {
|
|
181
181
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -184,36 +184,36 @@ function V(e) {
|
|
|
184
184
|
this.set(o[0], o[1]);
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
V.prototype.clear =
|
|
188
|
-
V.prototype.delete =
|
|
189
|
-
V.prototype.get =
|
|
190
|
-
V.prototype.has =
|
|
191
|
-
V.prototype.set =
|
|
192
|
-
function
|
|
187
|
+
V.prototype.clear = xn;
|
|
188
|
+
V.prototype.delete = Mn;
|
|
189
|
+
V.prototype.get = Bn;
|
|
190
|
+
V.prototype.has = Un;
|
|
191
|
+
V.prototype.set = Yn;
|
|
192
|
+
function Hn() {
|
|
193
193
|
this.__data__ = [], this.size = 0;
|
|
194
194
|
}
|
|
195
195
|
function ye(e, t) {
|
|
196
196
|
for (var n = e.length; n--; )
|
|
197
|
-
if (
|
|
197
|
+
if (Ln(e[n][0], t))
|
|
198
198
|
return n;
|
|
199
199
|
return -1;
|
|
200
200
|
}
|
|
201
|
-
var
|
|
202
|
-
function
|
|
201
|
+
var Gn = Array.prototype, Wn = Gn.splice;
|
|
202
|
+
function Jn(e) {
|
|
203
203
|
var t = this.__data__, n = ye(t, e);
|
|
204
204
|
if (n < 0)
|
|
205
205
|
return !1;
|
|
206
206
|
var o = t.length - 1;
|
|
207
|
-
return n == o ? t.pop() :
|
|
207
|
+
return n == o ? t.pop() : Wn.call(t, n, 1), --this.size, !0;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Xn(e) {
|
|
210
210
|
var t = this.__data__, n = ye(t, e);
|
|
211
211
|
return n < 0 ? void 0 : t[n][1];
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function Zn(e) {
|
|
214
214
|
return ye(this.__data__, e) > -1;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function qn(e, t) {
|
|
217
217
|
var n = this.__data__, o = ye(n, e);
|
|
218
218
|
return o < 0 ? (++this.size, n.push([e, t])) : n[o][1] = t, this;
|
|
219
219
|
}
|
|
@@ -224,38 +224,38 @@ function X(e) {
|
|
|
224
224
|
this.set(o[0], o[1]);
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
X.prototype.clear =
|
|
228
|
-
X.prototype.delete =
|
|
229
|
-
X.prototype.get =
|
|
230
|
-
X.prototype.has =
|
|
231
|
-
X.prototype.set =
|
|
232
|
-
var
|
|
233
|
-
function
|
|
227
|
+
X.prototype.clear = Hn;
|
|
228
|
+
X.prototype.delete = Jn;
|
|
229
|
+
X.prototype.get = Xn;
|
|
230
|
+
X.prototype.has = Zn;
|
|
231
|
+
X.prototype.set = qn;
|
|
232
|
+
var Qn = ht(Pe, "Map");
|
|
233
|
+
function eo() {
|
|
234
234
|
this.size = 0, this.__data__ = {
|
|
235
235
|
hash: new V(),
|
|
236
|
-
map: new (
|
|
236
|
+
map: new (Qn || X)(),
|
|
237
237
|
string: new V()
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function to(e) {
|
|
241
241
|
var t = typeof e;
|
|
242
242
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
243
243
|
}
|
|
244
244
|
function he(e, t) {
|
|
245
245
|
var n = e.__data__;
|
|
246
|
-
return
|
|
246
|
+
return to(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function no(e) {
|
|
249
249
|
var t = he(this, e).delete(e);
|
|
250
250
|
return this.size -= t ? 1 : 0, t;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function oo(e) {
|
|
253
253
|
return he(this, e).get(e);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function ro(e) {
|
|
256
256
|
return he(this, e).has(e);
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function so(e, t) {
|
|
259
259
|
var n = he(this, e), o = n.size;
|
|
260
260
|
return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
|
|
261
261
|
}
|
|
@@ -266,15 +266,15 @@ function Y(e) {
|
|
|
266
266
|
this.set(o[0], o[1]);
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
Y.prototype.clear =
|
|
270
|
-
Y.prototype.delete =
|
|
271
|
-
Y.prototype.get =
|
|
272
|
-
Y.prototype.has =
|
|
273
|
-
Y.prototype.set =
|
|
274
|
-
var
|
|
269
|
+
Y.prototype.clear = eo;
|
|
270
|
+
Y.prototype.delete = no;
|
|
271
|
+
Y.prototype.get = oo;
|
|
272
|
+
Y.prototype.has = ro;
|
|
273
|
+
Y.prototype.set = so;
|
|
274
|
+
var ao = "Expected a function";
|
|
275
275
|
function Le(e, t) {
|
|
276
276
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
277
|
-
throw new TypeError(
|
|
277
|
+
throw new TypeError(ao);
|
|
278
278
|
var n = function() {
|
|
279
279
|
var o = arguments, r = t ? t.apply(this, o) : o[0], s = n.cache;
|
|
280
280
|
if (s.has(r))
|
|
@@ -285,77 +285,77 @@ function Le(e, t) {
|
|
|
285
285
|
return n.cache = new (Le.Cache || Y)(), n;
|
|
286
286
|
}
|
|
287
287
|
Le.Cache = Y;
|
|
288
|
-
var
|
|
289
|
-
function
|
|
288
|
+
var io = 500;
|
|
289
|
+
function lo(e) {
|
|
290
290
|
var t = Le(e, function(o) {
|
|
291
|
-
return n.size ===
|
|
291
|
+
return n.size === io && n.clear(), o;
|
|
292
292
|
}), n = t.cache;
|
|
293
293
|
return t;
|
|
294
294
|
}
|
|
295
|
-
var
|
|
295
|
+
var co = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, uo = /\\(\\)?/g, fo = lo(function(e) {
|
|
296
296
|
var t = [];
|
|
297
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(
|
|
298
|
-
t.push(r ? s.replace(
|
|
297
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(co, function(n, o, r, s) {
|
|
298
|
+
t.push(r ? s.replace(uo, "$1") : o || n);
|
|
299
299
|
}), t;
|
|
300
300
|
});
|
|
301
|
-
function
|
|
301
|
+
function po(e) {
|
|
302
302
|
return e == null ? "" : mt(e);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
return Ne(e) ? e :
|
|
304
|
+
function vo(e, t) {
|
|
305
|
+
return Ne(e) ? e : Fn(e, t) ? [e] : fo(po(e));
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function mo(e) {
|
|
308
308
|
if (typeof e == "string" || $e(e))
|
|
309
309
|
return e;
|
|
310
310
|
var t = e + "";
|
|
311
311
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
t =
|
|
313
|
+
function yo(e, t) {
|
|
314
|
+
t = vo(t, e);
|
|
315
315
|
for (var n = 0, o = t.length; e != null && n < o; )
|
|
316
|
-
e = e[
|
|
316
|
+
e = e[mo(t[n++])];
|
|
317
317
|
return n && n == o ? e : void 0;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
320
|
-
var o = e == null ? void 0 :
|
|
319
|
+
function ho(e, t, n) {
|
|
320
|
+
var o = e == null ? void 0 : yo(e, t);
|
|
321
321
|
return o === void 0 ? n : o;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function go(e) {
|
|
324
324
|
for (var t = -1, n = e == null ? 0 : e.length, o = {}; ++t < n; ) {
|
|
325
325
|
var r = e[t];
|
|
326
326
|
o[r[0]] = r[1];
|
|
327
327
|
}
|
|
328
328
|
return o;
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function bo(e) {
|
|
331
331
|
return e == null;
|
|
332
332
|
}
|
|
333
|
-
const
|
|
334
|
-
var
|
|
333
|
+
const Eo = (e) => e === void 0, _o = (e) => typeof e == "boolean", gt = (e) => typeof e == "number", Be = (e) => typeof Element > "u" ? !1 : e instanceof Element, Co = (e) => me(e) ? !Number.isNaN(Number(e)) : !1;
|
|
334
|
+
var To = Object.defineProperty, wo = Object.defineProperties, So = Object.getOwnPropertyDescriptors, ze = Object.getOwnPropertySymbols, Oo = Object.prototype.hasOwnProperty, Io = Object.prototype.propertyIsEnumerable, Ke = (e, t, n) => t in e ? To(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Po = (e, t) => {
|
|
335
335
|
for (var n in t || (t = {}))
|
|
336
|
-
|
|
336
|
+
Oo.call(t, n) && Ke(e, n, t[n]);
|
|
337
337
|
if (ze)
|
|
338
338
|
for (var n of ze(t))
|
|
339
|
-
|
|
339
|
+
Io.call(t, n) && Ke(e, n, t[n]);
|
|
340
340
|
return e;
|
|
341
|
-
},
|
|
342
|
-
function
|
|
341
|
+
}, $o = (e, t) => wo(e, So(t));
|
|
342
|
+
function No(e, t) {
|
|
343
343
|
var n;
|
|
344
|
-
const o =
|
|
344
|
+
const o = At();
|
|
345
345
|
return st(() => {
|
|
346
346
|
o.value = e();
|
|
347
|
-
}, Po(
|
|
347
|
+
}, $o(Po({}, t), {
|
|
348
348
|
flush: (n = void 0) != null ? n : "sync"
|
|
349
349
|
})), at(o);
|
|
350
350
|
}
|
|
351
351
|
var Ue;
|
|
352
352
|
const M = typeof window < "u";
|
|
353
353
|
M && ((Ue = window?.navigator) != null && Ue.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
354
|
-
function
|
|
354
|
+
function Lo(e) {
|
|
355
355
|
return typeof e == "function" ? e() : l(e);
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
return
|
|
357
|
+
function Do(e) {
|
|
358
|
+
return Ft() ? (it(e), !0) : !1;
|
|
359
359
|
}
|
|
360
360
|
function Ve(e, t, n = {}) {
|
|
361
361
|
const {
|
|
@@ -371,9 +371,9 @@ function Ve(e, t, n = {}) {
|
|
|
371
371
|
function f(...y) {
|
|
372
372
|
u(), r.value = !0, s = setTimeout(() => {
|
|
373
373
|
r.value = !1, s = null, e(...y);
|
|
374
|
-
},
|
|
374
|
+
}, Lo(t));
|
|
375
375
|
}
|
|
376
|
-
return o && (r.value = !0, M && f()),
|
|
376
|
+
return o && (r.value = !0, M && f()), Do(m), {
|
|
377
377
|
isPending: at(r),
|
|
378
378
|
start: f,
|
|
379
379
|
stop: m
|
|
@@ -384,7 +384,7 @@ class bt extends Error {
|
|
|
384
384
|
super(t), this.name = "ElementPlusError";
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function Ao(e, t) {
|
|
388
388
|
throw new bt(`[${e}] ${t}`);
|
|
389
389
|
}
|
|
390
390
|
function ge(e, t) {
|
|
@@ -395,10 +395,10 @@ function ge(e, t) {
|
|
|
395
395
|
}
|
|
396
396
|
const Ye = {
|
|
397
397
|
current: 0
|
|
398
|
-
}, He = _(0),
|
|
399
|
-
const t = G() ? R(Ge, Ye) : Ye, n = G() ? R(
|
|
398
|
+
}, He = _(0), Fo = 2e3, Ge = Symbol("elZIndexContextKey"), xo = Symbol("zIndexContextKey"), Mo = (e) => {
|
|
399
|
+
const t = G() ? R(Ge, Ye) : Ye, n = G() ? R(xo, void 0) : void 0, o = w(() => {
|
|
400
400
|
const u = l(n);
|
|
401
|
-
return gt(u) ? u :
|
|
401
|
+
return gt(u) ? u : Fo;
|
|
402
402
|
}), r = w(() => o.value + He.value), s = () => (t.current++, He.value = t.current, r.value);
|
|
403
403
|
return !M && !R(Ge) && ge("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
404
404
|
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
|
|
@@ -407,7 +407,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
|
|
|
407
407
|
nextZIndex: s
|
|
408
408
|
};
|
|
409
409
|
};
|
|
410
|
-
var
|
|
410
|
+
var ko = {
|
|
411
411
|
name: "en",
|
|
412
412
|
el: {
|
|
413
413
|
breadcrumb: {
|
|
@@ -586,21 +586,21 @@ var Mo = {
|
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
};
|
|
589
|
-
const
|
|
589
|
+
const Ro = (e) => (t, n) => jo(t, n, l(e)), jo = (e, t, n) => ho(n, e, e).replace(/\{(\w+)\}/g, (o, r) => {
|
|
590
590
|
var s;
|
|
591
591
|
return `${(s = t?.[r]) != null ? s : `{${r}}`}`;
|
|
592
|
-
}),
|
|
592
|
+
}), Bo = (e) => {
|
|
593
593
|
const t = w(() => l(e).name), n = lt(e) ? e : _(e);
|
|
594
594
|
return {
|
|
595
595
|
lang: t,
|
|
596
596
|
locale: n,
|
|
597
|
-
t:
|
|
597
|
+
t: Ro(e)
|
|
598
598
|
};
|
|
599
|
-
},
|
|
600
|
-
const t = R(
|
|
601
|
-
return
|
|
602
|
-
}, Et = "__epPropKey", J = (e) => e,
|
|
603
|
-
if (!ft(e) ||
|
|
599
|
+
}, zo = Symbol("localeContextKey"), Ko = (e) => {
|
|
600
|
+
const t = R(zo, _());
|
|
601
|
+
return Bo(w(() => t.value || ko));
|
|
602
|
+
}, Et = "__epPropKey", J = (e) => e, Uo = (e) => ft(e) && !!e[Et], Vo = (e, t) => {
|
|
603
|
+
if (!ft(e) || Uo(e))
|
|
604
604
|
return e;
|
|
605
605
|
const { values: n, required: o, default: r, type: s, validator: u } = e, f = {
|
|
606
606
|
type: s,
|
|
@@ -609,19 +609,19 @@ const ko = (e) => (t, n) => Ro(t, n, l(e)), Ro = (e, t, n) => yo(n, e, e).replac
|
|
|
609
609
|
let h = !1, v = [];
|
|
610
610
|
if (n && (v = Array.from(n), xe(e, "default") && v.push(r), h || (h = v.includes(y))), u && (h || (h = u(y))), !h && v.length > 0) {
|
|
611
611
|
const b = [...new Set(v)].map((E) => JSON.stringify(E)).join(", ");
|
|
612
|
-
|
|
612
|
+
xt(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${b}], got value ${JSON.stringify(y)}.`);
|
|
613
613
|
}
|
|
614
614
|
return h;
|
|
615
615
|
} : void 0,
|
|
616
616
|
[Et]: !0
|
|
617
617
|
};
|
|
618
618
|
return xe(e, "default") && (f.default = r), f;
|
|
619
|
-
}, re = (e) =>
|
|
619
|
+
}, re = (e) => go(Object.entries(e).map(([t, n]) => [
|
|
620
620
|
t,
|
|
621
|
-
|
|
621
|
+
Vo(n, t)
|
|
622
622
|
])), We = _();
|
|
623
|
-
function
|
|
624
|
-
const n = G() ? R(
|
|
623
|
+
function Yo(e, t = void 0) {
|
|
624
|
+
const n = G() ? R(Yt, We) : We;
|
|
625
625
|
return w(() => {
|
|
626
626
|
var o, r;
|
|
627
627
|
return (r = (o = n.value) == null ? void 0 : o[e]) != null ? r : t;
|
|
@@ -634,21 +634,21 @@ var se = (e, t) => {
|
|
|
634
634
|
n[o] = r;
|
|
635
635
|
return n;
|
|
636
636
|
};
|
|
637
|
-
const
|
|
637
|
+
const Ho = "utils/dom/style", Ct = (e = "") => e.split(" ").filter((t) => !!t.trim()), Je = (e, t) => {
|
|
638
638
|
if (!e || !t)
|
|
639
639
|
return !1;
|
|
640
640
|
if (t.includes(" "))
|
|
641
641
|
throw new Error("className should not contain space.");
|
|
642
642
|
return e.classList.contains(t);
|
|
643
|
-
}, Ho = (e, t) => {
|
|
644
|
-
!e || !t.trim() || e.classList.add(...Ct(t));
|
|
645
643
|
}, Go = (e, t) => {
|
|
646
|
-
!e || !t.trim() || e.classList.
|
|
644
|
+
!e || !t.trim() || e.classList.add(...Ct(t));
|
|
647
645
|
}, Wo = (e, t) => {
|
|
646
|
+
!e || !t.trim() || e.classList.remove(...Ct(t));
|
|
647
|
+
}, Jo = (e, t) => {
|
|
648
648
|
var n;
|
|
649
649
|
if (!M || !e || !t)
|
|
650
650
|
return "";
|
|
651
|
-
let o =
|
|
651
|
+
let o = qt(t);
|
|
652
652
|
o === "float" && (o = "cssFloat");
|
|
653
653
|
try {
|
|
654
654
|
const r = e.style[o];
|
|
@@ -663,14 +663,14 @@ const Yo = "utils/dom/style", Ct = (e = "") => e.split(" ").filter((t) => !!t.tr
|
|
|
663
663
|
function fe(e, t = "px") {
|
|
664
664
|
if (!e)
|
|
665
665
|
return "";
|
|
666
|
-
if (gt(e) ||
|
|
666
|
+
if (gt(e) || Co(e))
|
|
667
667
|
return `${e}${t}`;
|
|
668
668
|
if (me(e))
|
|
669
669
|
return e;
|
|
670
|
-
ge(
|
|
670
|
+
ge(Ho, "binding value must be a string or number");
|
|
671
671
|
}
|
|
672
672
|
let ae;
|
|
673
|
-
const
|
|
673
|
+
const Xo = (e) => {
|
|
674
674
|
var t;
|
|
675
675
|
if (!M)
|
|
676
676
|
return 0;
|
|
@@ -687,24 +687,24 @@ const Jo = (e) => {
|
|
|
687
687
|
}, De = (e, t) => (e.install = (n) => {
|
|
688
688
|
for (const o of [e, ...Object.values({})])
|
|
689
689
|
n.component(o.name, o);
|
|
690
|
-
}, e),
|
|
690
|
+
}, e), Zo = re({
|
|
691
691
|
size: {
|
|
692
692
|
type: J([Number, String])
|
|
693
693
|
},
|
|
694
694
|
color: {
|
|
695
695
|
type: String
|
|
696
696
|
}
|
|
697
|
-
}),
|
|
697
|
+
}), qo = N({
|
|
698
698
|
name: "ElIcon",
|
|
699
699
|
inheritAttrs: !1
|
|
700
|
-
}),
|
|
701
|
-
...
|
|
702
|
-
props:
|
|
700
|
+
}), Qo = /* @__PURE__ */ N({
|
|
701
|
+
...qo,
|
|
702
|
+
props: Zo,
|
|
703
703
|
setup(e) {
|
|
704
704
|
const t = e, n = ve("icon"), o = w(() => {
|
|
705
705
|
const { size: r, color: s } = t;
|
|
706
706
|
return !r && !s ? {} : {
|
|
707
|
-
fontSize:
|
|
707
|
+
fontSize: Eo(r) ? void 0 : fe(r),
|
|
708
708
|
"--color": s
|
|
709
709
|
};
|
|
710
710
|
});
|
|
@@ -716,10 +716,10 @@ const Jo = (e) => {
|
|
|
716
716
|
], 16));
|
|
717
717
|
}
|
|
718
718
|
});
|
|
719
|
-
var
|
|
720
|
-
const
|
|
719
|
+
var er = /* @__PURE__ */ se(Qo, [["__file", "icon.vue"]]);
|
|
720
|
+
const tr = De(er);
|
|
721
721
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
722
|
-
var
|
|
722
|
+
var nr = /* @__PURE__ */ N({
|
|
723
723
|
name: "Close",
|
|
724
724
|
__name: "close",
|
|
725
725
|
setup(e) {
|
|
@@ -733,26 +733,26 @@ var tr = /* @__PURE__ */ N({
|
|
|
733
733
|
})
|
|
734
734
|
]));
|
|
735
735
|
}
|
|
736
|
-
}),
|
|
737
|
-
const
|
|
736
|
+
}), or = nr;
|
|
737
|
+
const rr = J([
|
|
738
738
|
String,
|
|
739
739
|
Object,
|
|
740
740
|
Function
|
|
741
|
-
]),
|
|
742
|
-
Close:
|
|
741
|
+
]), sr = {
|
|
742
|
+
Close: or
|
|
743
743
|
}, Oe = {
|
|
744
744
|
prefix: Math.floor(Math.random() * 1e4),
|
|
745
745
|
current: 0
|
|
746
|
-
},
|
|
747
|
-
const t =
|
|
746
|
+
}, ar = Symbol("elIdInjection"), ir = () => G() ? R(ar, Oe) : Oe, Xe = (e) => {
|
|
747
|
+
const t = ir();
|
|
748
748
|
!M && t === Oe && ge("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
749
749
|
usage: app.provide(ID_INJECTION_KEY, {
|
|
750
750
|
prefix: number,
|
|
751
751
|
current: number,
|
|
752
752
|
})`);
|
|
753
753
|
const n = dt();
|
|
754
|
-
return
|
|
755
|
-
},
|
|
754
|
+
return No(() => l(e) || `${n.value}-id-${t.prefix}-${t.current++}`);
|
|
755
|
+
}, lr = (e) => {
|
|
756
756
|
if (e.tabIndex > 0 || e.tabIndex === 0 && e.getAttribute("tabIndex") !== null)
|
|
757
757
|
return !0;
|
|
758
758
|
if (e.tabIndex < 0 || e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true")
|
|
@@ -769,10 +769,10 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
769
769
|
default:
|
|
770
770
|
return !1;
|
|
771
771
|
}
|
|
772
|
-
}, Ce = "focus-trap.focus-after-trapped", Te = "focus-trap.focus-after-released",
|
|
772
|
+
}, Ce = "focus-trap.focus-after-trapped", Te = "focus-trap.focus-after-released", cr = "focus-trap.focusout-prevented", Ze = {
|
|
773
773
|
cancelable: !0,
|
|
774
774
|
bubbles: !1
|
|
775
|
-
},
|
|
775
|
+
}, ur = {
|
|
776
776
|
cancelable: !0,
|
|
777
777
|
bubbles: !1
|
|
778
778
|
}, qe = "focusAfterTrapped", Qe = "focusAfterReleased", Tt = Symbol("elFocusTrap"), Ae = _(), be = _(0), Fe = _(0);
|
|
@@ -789,9 +789,9 @@ const wt = (e) => {
|
|
|
789
789
|
return t;
|
|
790
790
|
}, et = (e, t) => {
|
|
791
791
|
for (const n of e)
|
|
792
|
-
if (!
|
|
792
|
+
if (!dr(n, t))
|
|
793
793
|
return n;
|
|
794
|
-
},
|
|
794
|
+
}, dr = (e, t) => {
|
|
795
795
|
if (process.env.NODE_ENV === "test")
|
|
796
796
|
return !1;
|
|
797
797
|
if (getComputedStyle(e).visibility === "hidden")
|
|
@@ -804,21 +804,21 @@ const wt = (e) => {
|
|
|
804
804
|
e = e.parentElement;
|
|
805
805
|
}
|
|
806
806
|
return !1;
|
|
807
|
-
},
|
|
807
|
+
}, fr = (e) => {
|
|
808
808
|
const t = wt(e), n = et(t, e), o = et(t.reverse(), e);
|
|
809
809
|
return [n, o];
|
|
810
|
-
},
|
|
810
|
+
}, pr = (e) => e instanceof HTMLInputElement && "select" in e, z = (e, t) => {
|
|
811
811
|
if (e && e.focus) {
|
|
812
812
|
const n = document.activeElement;
|
|
813
813
|
let o = !1;
|
|
814
|
-
Be(e) && !
|
|
814
|
+
Be(e) && !lr(e) && !e.getAttribute("tabindex") && (e.setAttribute("tabindex", "-1"), o = !0), e.focus({ preventScroll: !0 }), Fe.value = window.performance.now(), e !== n && pr(e) && t && e.select(), Be(e) && o && e.removeAttribute("tabindex");
|
|
815
815
|
}
|
|
816
816
|
};
|
|
817
817
|
function tt(e, t) {
|
|
818
818
|
const n = [...e], o = e.indexOf(t);
|
|
819
819
|
return o !== -1 && n.splice(o, 1), n;
|
|
820
820
|
}
|
|
821
|
-
const
|
|
821
|
+
const vr = () => {
|
|
822
822
|
let e = [];
|
|
823
823
|
return {
|
|
824
824
|
push: (o) => {
|
|
@@ -830,16 +830,16 @@ const pr = () => {
|
|
|
830
830
|
e = tt(e, o), (s = (r = e[0]) == null ? void 0 : r.resume) == null || s.call(r);
|
|
831
831
|
}
|
|
832
832
|
};
|
|
833
|
-
},
|
|
833
|
+
}, mr = (e, t = !1) => {
|
|
834
834
|
const n = document.activeElement;
|
|
835
835
|
for (const o of e)
|
|
836
836
|
if (z(o, t), document.activeElement !== n)
|
|
837
837
|
return;
|
|
838
|
-
}, nt =
|
|
838
|
+
}, nt = vr(), yr = () => be.value > Fe.value, le = () => {
|
|
839
839
|
Ae.value = "pointer", be.value = window.performance.now();
|
|
840
840
|
}, ot = () => {
|
|
841
841
|
Ae.value = "keyboard", be.value = window.performance.now();
|
|
842
|
-
},
|
|
842
|
+
}, hr = () => (oe(() => {
|
|
843
843
|
ie === 0 && (document.addEventListener("mousedown", le), document.addEventListener("touchstart", le), document.addEventListener("keydown", ot)), ie++;
|
|
844
844
|
}), pe(() => {
|
|
845
845
|
ie--, ie <= 0 && (document.removeEventListener("mousedown", le), document.removeEventListener("touchstart", le), document.removeEventListener("keydown", ot));
|
|
@@ -847,8 +847,8 @@ const pr = () => {
|
|
|
847
847
|
focusReason: Ae,
|
|
848
848
|
lastUserFocusTimestamp: be,
|
|
849
849
|
lastAutomatedFocusTimestamp: Fe
|
|
850
|
-
}), ce = (e) => new CustomEvent(
|
|
851
|
-
...
|
|
850
|
+
}), ce = (e) => new CustomEvent(cr, {
|
|
851
|
+
...ur,
|
|
852
852
|
detail: e
|
|
853
853
|
}), St = {
|
|
854
854
|
tab: "Tab",
|
|
@@ -857,13 +857,13 @@ const pr = () => {
|
|
|
857
857
|
let H = [];
|
|
858
858
|
const rt = (e) => {
|
|
859
859
|
e.code === St.esc && H.forEach((t) => t(e));
|
|
860
|
-
},
|
|
860
|
+
}, gr = (e) => {
|
|
861
861
|
oe(() => {
|
|
862
862
|
H.length === 0 && document.addEventListener("keydown", rt), M && H.push(e);
|
|
863
863
|
}), pe(() => {
|
|
864
864
|
H = H.filter((t) => t !== e), H.length === 0 && M && document.removeEventListener("keydown", rt);
|
|
865
865
|
});
|
|
866
|
-
},
|
|
866
|
+
}, br = N({
|
|
867
867
|
name: "ElFocusTrap",
|
|
868
868
|
inheritAttrs: !1,
|
|
869
869
|
props: {
|
|
@@ -886,8 +886,8 @@ const rt = (e) => {
|
|
|
886
886
|
setup(e, { emit: t }) {
|
|
887
887
|
const n = _();
|
|
888
888
|
let o, r;
|
|
889
|
-
const { focusReason: s } =
|
|
890
|
-
|
|
889
|
+
const { focusReason: s } = hr();
|
|
890
|
+
gr((i) => {
|
|
891
891
|
e.trapped && !u.paused && t("release-requested", i);
|
|
892
892
|
});
|
|
893
893
|
const u = {
|
|
@@ -903,7 +903,7 @@ const rt = (e) => {
|
|
|
903
903
|
return;
|
|
904
904
|
const { code: a, altKey: d, ctrlKey: c, metaKey: g, currentTarget: S, shiftKey: L } = i, { loop: D } = e, k = a === St.tab && !d && !c && !g, O = document.activeElement;
|
|
905
905
|
if (k && O) {
|
|
906
|
-
const I = S, [A, j] =
|
|
906
|
+
const I = S, [A, j] = fr(I);
|
|
907
907
|
if (A && j) {
|
|
908
908
|
if (!L && O === j) {
|
|
909
909
|
const P = ce({
|
|
@@ -945,7 +945,7 @@ const rt = (e) => {
|
|
|
945
945
|
if (!(u.paused || !a))
|
|
946
946
|
if (e.trapped) {
|
|
947
947
|
const d = i.relatedTarget;
|
|
948
|
-
!
|
|
948
|
+
!bo(d) && !a.contains(d) && setTimeout(() => {
|
|
949
949
|
if (!u.paused && e.trapped) {
|
|
950
950
|
const c = ce({
|
|
951
951
|
focusReason: s.value
|
|
@@ -968,7 +968,7 @@ const rt = (e) => {
|
|
|
968
968
|
const c = new Event(Ce, Ze);
|
|
969
969
|
i.addEventListener(Ce, f), i.dispatchEvent(c), c.defaultPrevented || we(() => {
|
|
970
970
|
let g = e.focusStartEl;
|
|
971
|
-
me(g) || (z(g), document.activeElement !== g && (g = "first")), g === "first" &&
|
|
971
|
+
me(g) || (z(g), document.activeElement !== g && (g = "first")), g === "first" && mr(wt(i), !0), (document.activeElement === a || g === "container") && z(i);
|
|
972
972
|
});
|
|
973
973
|
}
|
|
974
974
|
}
|
|
@@ -983,7 +983,7 @@ const rt = (e) => {
|
|
|
983
983
|
focusReason: s.value
|
|
984
984
|
}
|
|
985
985
|
});
|
|
986
|
-
i.addEventListener(Te, y), i.dispatchEvent(a), !a.defaultPrevented && (s.value == "keyboard" || !
|
|
986
|
+
i.addEventListener(Te, y), i.dispatchEvent(a), !a.defaultPrevented && (s.value == "keyboard" || !yr() || i.contains(document.activeElement)) && z(o ?? document.body), i.removeEventListener(Te, y), nt.remove(u);
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
989
|
return oe(() => {
|
|
@@ -997,21 +997,21 @@ const rt = (e) => {
|
|
|
997
997
|
};
|
|
998
998
|
}
|
|
999
999
|
});
|
|
1000
|
-
function
|
|
1000
|
+
function Er(e, t, n, o, r, s) {
|
|
1001
1001
|
return C(e.$slots, "default", { handleKeydown: e.onKeydown });
|
|
1002
1002
|
}
|
|
1003
|
-
var
|
|
1003
|
+
var _r = /* @__PURE__ */ se(br, [["render", Er], ["__file", "focus-trap.vue"]]);
|
|
1004
1004
|
const Ot = re({
|
|
1005
1005
|
to: {
|
|
1006
1006
|
type: J([String, Object]),
|
|
1007
1007
|
required: !0
|
|
1008
1008
|
},
|
|
1009
1009
|
disabled: Boolean
|
|
1010
|
-
}),
|
|
1010
|
+
}), Cr = /* @__PURE__ */ N({
|
|
1011
1011
|
__name: "teleport",
|
|
1012
1012
|
props: Ot,
|
|
1013
1013
|
setup(e) {
|
|
1014
|
-
return (t, n) => t.disabled ? C(t.$slots, "default", { key: 0 }) : (x(), te(
|
|
1014
|
+
return (t, n) => t.disabled ? C(t.$slots, "default", { key: 0 }) : (x(), te(Mt, {
|
|
1015
1015
|
key: 1,
|
|
1016
1016
|
to: t.to
|
|
1017
1017
|
}, [
|
|
@@ -1019,8 +1019,8 @@ const Ot = re({
|
|
|
1019
1019
|
], 8, ["to"]));
|
|
1020
1020
|
}
|
|
1021
1021
|
});
|
|
1022
|
-
var
|
|
1023
|
-
const
|
|
1022
|
+
var Tr = /* @__PURE__ */ se(Cr, [["__file", "teleport.vue"]]);
|
|
1023
|
+
const wr = De(Tr), Sr = ({ from: e, replacement: t, scope: n, version: o, ref: r, type: s = "API" }, u) => {
|
|
1024
1024
|
K(() => l(u), (m) => {
|
|
1025
1025
|
m && ge(n, `[${s}] ${e} is about to be deprecated in version ${o}, please use ${t} instead.
|
|
1026
1026
|
For more detail, please visit: ${r}
|
|
@@ -1041,7 +1041,7 @@ const It = (e) => {
|
|
|
1041
1041
|
}, onMouseup: (u) => {
|
|
1042
1042
|
n = u.target === u.currentTarget;
|
|
1043
1043
|
} };
|
|
1044
|
-
},
|
|
1044
|
+
}, Or = re({
|
|
1045
1045
|
mask: {
|
|
1046
1046
|
type: Boolean,
|
|
1047
1047
|
default: !0
|
|
@@ -1057,15 +1057,15 @@ const It = (e) => {
|
|
|
1057
1057
|
zIndex: {
|
|
1058
1058
|
type: J([String, Number])
|
|
1059
1059
|
}
|
|
1060
|
-
}),
|
|
1060
|
+
}), Ir = {
|
|
1061
1061
|
click: (e) => e instanceof MouseEvent
|
|
1062
|
-
},
|
|
1063
|
-
var
|
|
1062
|
+
}, Pr = "overlay";
|
|
1063
|
+
var $r = N({
|
|
1064
1064
|
name: "ElOverlay",
|
|
1065
|
-
props:
|
|
1066
|
-
emits:
|
|
1065
|
+
props: Or,
|
|
1066
|
+
emits: Ir,
|
|
1067
1067
|
setup(e, { slots: t, emit: n }) {
|
|
1068
|
-
const o = ve(
|
|
1068
|
+
const o = ve(Pr), r = (f) => {
|
|
1069
1069
|
n("click", f);
|
|
1070
1070
|
}, { onClick: s, onMousedown: u, onMouseup: m } = It(e.customMaskEvent ? void 0 : r);
|
|
1071
1071
|
return () => e.mask ? ee("div", {
|
|
@@ -1076,7 +1076,7 @@ var Pr = N({
|
|
|
1076
1076
|
onClick: s,
|
|
1077
1077
|
onMousedown: u,
|
|
1078
1078
|
onMouseup: m
|
|
1079
|
-
}, [C(t, "default")], de.STYLE | de.CLASS | de.PROPS, ["onClick", "onMouseup", "onMousedown"]) :
|
|
1079
|
+
}, [C(t, "default")], de.STYLE | de.CLASS | de.PROPS, ["onClick", "onMouseup", "onMousedown"]) : kt("div", {
|
|
1080
1080
|
class: e.overlayClass,
|
|
1081
1081
|
style: {
|
|
1082
1082
|
zIndex: e.zIndex,
|
|
@@ -1089,11 +1089,11 @@ var Pr = N({
|
|
|
1089
1089
|
}, [C(t, "default")]);
|
|
1090
1090
|
}
|
|
1091
1091
|
});
|
|
1092
|
-
const
|
|
1092
|
+
const Nr = $r, Pt = Symbol("dialogInjectionKey"), $t = re({
|
|
1093
1093
|
center: Boolean,
|
|
1094
1094
|
alignCenter: Boolean,
|
|
1095
1095
|
closeIcon: {
|
|
1096
|
-
type:
|
|
1096
|
+
type: rr
|
|
1097
1097
|
},
|
|
1098
1098
|
draggable: Boolean,
|
|
1099
1099
|
overflow: Boolean,
|
|
@@ -1113,9 +1113,9 @@ const $r = Pr, Pt = Symbol("dialogInjectionKey"), $t = re({
|
|
|
1113
1113
|
type: String,
|
|
1114
1114
|
default: "2"
|
|
1115
1115
|
}
|
|
1116
|
-
}),
|
|
1116
|
+
}), Lr = {
|
|
1117
1117
|
close: () => !0
|
|
1118
|
-
},
|
|
1118
|
+
}, Dr = (e, t, n, o) => {
|
|
1119
1119
|
const r = {
|
|
1120
1120
|
offsetX: 0,
|
|
1121
1121
|
offsetY: 0
|
|
@@ -1152,22 +1152,22 @@ const $r = Pr, Pt = Symbol("dialogInjectionKey"), $t = re({
|
|
|
1152
1152
|
resetPosition: y,
|
|
1153
1153
|
updatePosition: h
|
|
1154
1154
|
};
|
|
1155
|
-
},
|
|
1155
|
+
}, Ar = (...e) => (t) => {
|
|
1156
1156
|
e.forEach((n) => {
|
|
1157
|
-
|
|
1157
|
+
Jt(n) ? n(t) : n.value = t;
|
|
1158
1158
|
});
|
|
1159
|
-
},
|
|
1160
|
-
...
|
|
1159
|
+
}, Fr = N({ name: "ElDialogContent" }), xr = /* @__PURE__ */ N({
|
|
1160
|
+
...Fr,
|
|
1161
1161
|
props: $t,
|
|
1162
|
-
emits:
|
|
1162
|
+
emits: Lr,
|
|
1163
1163
|
setup(e, { expose: t }) {
|
|
1164
|
-
const n = e, { t: o } =
|
|
1164
|
+
const n = e, { t: o } = Ko(), { Close: r } = sr, { dialogRef: s, headerRef: u, bodyId: m, ns: f, style: y } = R(Pt), { focusTrapRef: h } = R(Tt), v = w(() => [
|
|
1165
1165
|
f.b(),
|
|
1166
1166
|
f.is("fullscreen", n.fullscreen),
|
|
1167
1167
|
f.is("draggable", n.draggable),
|
|
1168
1168
|
f.is("align-center", n.alignCenter),
|
|
1169
1169
|
{ [f.m("center")]: n.center }
|
|
1170
|
-
]), b =
|
|
1170
|
+
]), b = Ar(h, s), E = w(() => n.draggable), i = w(() => n.overflow), { resetPosition: a, updatePosition: d } = Dr(s, u, E, i);
|
|
1171
1171
|
return t({
|
|
1172
1172
|
resetPosition: a,
|
|
1173
1173
|
updatePosition: d
|
|
@@ -1187,7 +1187,7 @@ const $r = Pr, Pt = Symbol("dialogInjectionKey"), $t = re({
|
|
|
1187
1187
|
role: "heading",
|
|
1188
1188
|
"aria-level": c.ariaLevel,
|
|
1189
1189
|
class: B(l(f).e("title"))
|
|
1190
|
-
},
|
|
1190
|
+
}, Rt(c.title), 11, ["aria-level"])
|
|
1191
1191
|
]),
|
|
1192
1192
|
c.showClose ? (x(), q("button", {
|
|
1193
1193
|
key: 0,
|
|
@@ -1196,11 +1196,11 @@ const $r = Pr, Pt = Symbol("dialogInjectionKey"), $t = re({
|
|
|
1196
1196
|
type: "button",
|
|
1197
1197
|
onClick: (S) => c.$emit("close")
|
|
1198
1198
|
}, [
|
|
1199
|
-
ee(l(
|
|
1199
|
+
ee(l(tr), {
|
|
1200
1200
|
class: B(l(f).e("close"))
|
|
1201
1201
|
}, {
|
|
1202
1202
|
default: $(() => [
|
|
1203
|
-
(x(), te(
|
|
1203
|
+
(x(), te(jt(c.closeIcon || l(r))))
|
|
1204
1204
|
]),
|
|
1205
1205
|
_: 1
|
|
1206
1206
|
}, 8, ["class"])
|
|
@@ -1221,8 +1221,8 @@ const $r = Pr, Pt = Symbol("dialogInjectionKey"), $t = re({
|
|
|
1221
1221
|
], 6));
|
|
1222
1222
|
}
|
|
1223
1223
|
});
|
|
1224
|
-
var
|
|
1225
|
-
const
|
|
1224
|
+
var Mr = /* @__PURE__ */ se(xr, [["__file", "dialog-content.vue"]]);
|
|
1225
|
+
const kr = re({
|
|
1226
1226
|
...$t,
|
|
1227
1227
|
appendToBody: Boolean,
|
|
1228
1228
|
appendTo: {
|
|
@@ -1276,23 +1276,23 @@ const Mr = re({
|
|
|
1276
1276
|
type: String,
|
|
1277
1277
|
default: "2"
|
|
1278
1278
|
}
|
|
1279
|
-
}),
|
|
1279
|
+
}), Rr = {
|
|
1280
1280
|
open: () => !0,
|
|
1281
1281
|
opened: () => !0,
|
|
1282
1282
|
close: () => !0,
|
|
1283
1283
|
closed: () => !0,
|
|
1284
|
-
[_t]: (e) =>
|
|
1284
|
+
[_t]: (e) => _o(e),
|
|
1285
1285
|
openAutoFocus: () => !0,
|
|
1286
1286
|
closeAutoFocus: () => !0
|
|
1287
|
-
},
|
|
1288
|
-
lt(e) ||
|
|
1287
|
+
}, jr = (e, t = {}) => {
|
|
1288
|
+
lt(e) || Ao("[useLockscreen]", "You need to pass a ref param to this function");
|
|
1289
1289
|
const n = t.ns || ve("popup"), o = w(() => n.bm("parent", "hidden"));
|
|
1290
1290
|
if (!M || Je(document.body, o.value))
|
|
1291
1291
|
return;
|
|
1292
1292
|
let r = 0, s = !1, u = "0";
|
|
1293
1293
|
const m = () => {
|
|
1294
1294
|
setTimeout(() => {
|
|
1295
|
-
typeof document > "u" || s && document && (document.body.style.width = u,
|
|
1295
|
+
typeof document > "u" || s && document && (document.body.style.width = u, Wo(document.body, o.value));
|
|
1296
1296
|
}, 200);
|
|
1297
1297
|
};
|
|
1298
1298
|
K(e, (f) => {
|
|
@@ -1300,17 +1300,17 @@ const Mr = re({
|
|
|
1300
1300
|
m();
|
|
1301
1301
|
return;
|
|
1302
1302
|
}
|
|
1303
|
-
s = !Je(document.body, o.value), s && (u = document.body.style.width,
|
|
1304
|
-
const y = document.documentElement.clientHeight < document.body.scrollHeight, h =
|
|
1303
|
+
s = !Je(document.body, o.value), s && (u = document.body.style.width, Go(document.body, o.value)), r = Xo(n.namespace.value);
|
|
1304
|
+
const y = document.documentElement.clientHeight < document.body.scrollHeight, h = Jo(document.body, "overflowY");
|
|
1305
1305
|
r > 0 && (y || h === "scroll") && s && (document.body.style.width = `calc(100% - ${r}px)`);
|
|
1306
1306
|
}), it(() => m());
|
|
1307
|
-
},
|
|
1307
|
+
}, Br = (e, t) => {
|
|
1308
1308
|
var n;
|
|
1309
|
-
const r = G().emit, { nextZIndex: s } =
|
|
1309
|
+
const r = G().emit, { nextZIndex: s } = Mo();
|
|
1310
1310
|
let u = "";
|
|
1311
1311
|
const m = Xe(), f = Xe(), y = _(!1), h = _(!1), v = _(!1), b = _((n = e.zIndex) != null ? n : s());
|
|
1312
1312
|
let E, i;
|
|
1313
|
-
const a =
|
|
1313
|
+
const a = Yo("namespace", ue), d = w(() => {
|
|
1314
1314
|
const T = {}, F = `--${a.value}-dialog`;
|
|
1315
1315
|
return e.fullscreen || (e.top && (T[`${F}-margin-top`] = e.top), e.width && (T[`${F}-width`] = fe(e.width))), T;
|
|
1316
1316
|
}), c = w(() => e.alignCenter ? { display: "flex" } : {});
|
|
@@ -1350,12 +1350,12 @@ const Mr = re({
|
|
|
1350
1350
|
function P() {
|
|
1351
1351
|
r("closeAutoFocus");
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function Lt(T) {
|
|
1354
1354
|
var F;
|
|
1355
1355
|
((F = T.detail) == null ? void 0 : F.focusReason) === "pointer" && T.preventDefault();
|
|
1356
1356
|
}
|
|
1357
|
-
e.lockScroll &&
|
|
1358
|
-
function
|
|
1357
|
+
e.lockScroll && jr(y);
|
|
1358
|
+
function Dt() {
|
|
1359
1359
|
e.closeOnPressEscape && O();
|
|
1360
1360
|
}
|
|
1361
1361
|
return K(() => e.zIndex, () => {
|
|
@@ -1380,8 +1380,8 @@ const Mr = re({
|
|
|
1380
1380
|
doClose: j,
|
|
1381
1381
|
onOpenAutoFocus: p,
|
|
1382
1382
|
onCloseAutoFocus: P,
|
|
1383
|
-
onCloseRequested:
|
|
1384
|
-
onFocusoutPrevented:
|
|
1383
|
+
onCloseRequested: Dt,
|
|
1384
|
+
onFocusoutPrevented: Lt,
|
|
1385
1385
|
titleId: m,
|
|
1386
1386
|
bodyId: f,
|
|
1387
1387
|
closed: h,
|
|
@@ -1391,16 +1391,16 @@ const Mr = re({
|
|
|
1391
1391
|
visible: y,
|
|
1392
1392
|
zIndex: b
|
|
1393
1393
|
};
|
|
1394
|
-
},
|
|
1394
|
+
}, zr = N({
|
|
1395
1395
|
name: "ElDialog",
|
|
1396
1396
|
inheritAttrs: !1
|
|
1397
|
-
}),
|
|
1398
|
-
...
|
|
1399
|
-
props:
|
|
1400
|
-
emits:
|
|
1397
|
+
}), Kr = /* @__PURE__ */ N({
|
|
1398
|
+
...zr,
|
|
1399
|
+
props: kr,
|
|
1400
|
+
emits: Rr,
|
|
1401
1401
|
setup(e, { expose: t }) {
|
|
1402
|
-
const n = e, o =
|
|
1403
|
-
|
|
1402
|
+
const n = e, o = Bt();
|
|
1403
|
+
Sr({
|
|
1404
1404
|
scope: "el-dialog",
|
|
1405
1405
|
from: "the title slot",
|
|
1406
1406
|
replacement: "the header slot",
|
|
@@ -1424,7 +1424,7 @@ const Mr = re({
|
|
|
1424
1424
|
onCloseAutoFocus: D,
|
|
1425
1425
|
onCloseRequested: k,
|
|
1426
1426
|
onFocusoutPrevented: O
|
|
1427
|
-
} =
|
|
1427
|
+
} = Br(n, s);
|
|
1428
1428
|
ct(Pt, {
|
|
1429
1429
|
dialogRef: s,
|
|
1430
1430
|
headerRef: u,
|
|
@@ -1442,12 +1442,12 @@ const Mr = re({
|
|
|
1442
1442
|
(p = m.value) == null || p.resetPosition();
|
|
1443
1443
|
},
|
|
1444
1444
|
handleClose: g
|
|
1445
|
-
}), (p, P) => (x(), te(l(
|
|
1445
|
+
}), (p, P) => (x(), te(l(wr), {
|
|
1446
1446
|
to: p.appendTo,
|
|
1447
1447
|
disabled: p.appendTo !== "body" ? !1 : !p.appendToBody
|
|
1448
1448
|
}, {
|
|
1449
1449
|
default: $(() => [
|
|
1450
|
-
ee(
|
|
1450
|
+
ee(zt, {
|
|
1451
1451
|
name: "dialog-fade",
|
|
1452
1452
|
onAfterEnter: l(a),
|
|
1453
1453
|
onAfterLeave: l(d),
|
|
@@ -1455,7 +1455,7 @@ const Mr = re({
|
|
|
1455
1455
|
persisted: ""
|
|
1456
1456
|
}, {
|
|
1457
1457
|
default: $(() => [
|
|
1458
|
-
|
|
1458
|
+
Kt(ee(l(Nr), {
|
|
1459
1459
|
"custom-mask-event": "",
|
|
1460
1460
|
mask: p.modal,
|
|
1461
1461
|
"overlay-class": p.modalClass,
|
|
@@ -1474,7 +1474,7 @@ const Mr = re({
|
|
|
1474
1474
|
onMousedown: l(I).onMousedown,
|
|
1475
1475
|
onMouseup: l(I).onMouseup
|
|
1476
1476
|
}, [
|
|
1477
|
-
ee(l(
|
|
1477
|
+
ee(l(_r), {
|
|
1478
1478
|
loop: "",
|
|
1479
1479
|
trapped: l(f),
|
|
1480
1480
|
"focus-start-el": "container",
|
|
@@ -1484,7 +1484,7 @@ const Mr = re({
|
|
|
1484
1484
|
onReleaseRequested: l(k)
|
|
1485
1485
|
}, {
|
|
1486
1486
|
default: $(() => [
|
|
1487
|
-
l(E) ? (x(), te(
|
|
1487
|
+
l(E) ? (x(), te(Mr, Ie({
|
|
1488
1488
|
key: 0,
|
|
1489
1489
|
ref_key: "dialogContentRef",
|
|
1490
1490
|
ref: m
|
|
@@ -1502,7 +1502,7 @@ const Mr = re({
|
|
|
1502
1502
|
title: p.title,
|
|
1503
1503
|
"aria-level": p.headerAriaLevel,
|
|
1504
1504
|
onClose: l(g)
|
|
1505
|
-
}),
|
|
1505
|
+
}), Ut({
|
|
1506
1506
|
header: $(() => [
|
|
1507
1507
|
p.$slots.title ? C(p.$slots, "title", { key: 1 }) : C(p.$slots, "header", {
|
|
1508
1508
|
key: 0,
|
|
@@ -1530,7 +1530,7 @@ const Mr = re({
|
|
|
1530
1530
|
]),
|
|
1531
1531
|
_: 3
|
|
1532
1532
|
}, 8, ["mask", "overlay-class", "z-index"]), [
|
|
1533
|
-
[
|
|
1533
|
+
[Vt, l(f)]
|
|
1534
1534
|
])
|
|
1535
1535
|
]),
|
|
1536
1536
|
_: 3
|
|
@@ -1540,8 +1540,8 @@ const Mr = re({
|
|
|
1540
1540
|
}, 8, ["to", "disabled"]));
|
|
1541
1541
|
}
|
|
1542
1542
|
});
|
|
1543
|
-
var
|
|
1544
|
-
const
|
|
1543
|
+
var Ur = /* @__PURE__ */ se(Kr, [["__file", "dialog.vue"]]);
|
|
1544
|
+
const Nt = De(Ur), Vr = /* @__PURE__ */ N({
|
|
1545
1545
|
name: "RaDialog",
|
|
1546
1546
|
__name: "index",
|
|
1547
1547
|
props: {
|
|
@@ -1549,7 +1549,7 @@ const Ur = De(Kr), Vr = /* @__PURE__ */ N({
|
|
|
1549
1549
|
},
|
|
1550
1550
|
setup(e) {
|
|
1551
1551
|
return (t, n) => {
|
|
1552
|
-
const o =
|
|
1552
|
+
const o = Nt;
|
|
1553
1553
|
return x(), te(o, Ie(t.$attrs, { "append-to-body": e.appendToBody }), {
|
|
1554
1554
|
header: $(() => [
|
|
1555
1555
|
C(t.$slots, "header")
|
|
@@ -1565,7 +1565,7 @@ const Ur = De(Kr), Vr = /* @__PURE__ */ N({
|
|
|
1565
1565
|
};
|
|
1566
1566
|
}
|
|
1567
1567
|
}), Yr = [Vr], Gr = (e) => {
|
|
1568
|
-
Yr.forEach((t) => {
|
|
1568
|
+
e.use(Nt), Yr.forEach((t) => {
|
|
1569
1569
|
e.component(t.name, t);
|
|
1570
1570
|
});
|
|
1571
1571
|
};
|