xrk-components 2.0.0-beta.60 → 2.0.0-beta.62
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/lib/index.css +9 -0
- package/lib/index.esm.js +765 -539
- package/lib/index.umd.js +764 -538
- package/package.json +1 -1
- package/pnpm-lock.yaml +0 -6212
package/lib/index.umd.js
CHANGED
|
@@ -136,69 +136,88 @@
|
|
|
136
136
|
return vue.readonly(result);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
var _a;
|
|
140
|
-
const isClient = typeof window !== "undefined";
|
|
139
|
+
var _a$1;
|
|
140
|
+
const isClient$1 = typeof window !== "undefined";
|
|
141
141
|
const isDef = (val) => typeof val !== "undefined";
|
|
142
|
-
const
|
|
143
|
-
const
|
|
142
|
+
const isFunction$3 = (val) => typeof val === "function";
|
|
143
|
+
const isString$3 = (val) => typeof val === "string";
|
|
144
|
+
const noop$2 = () => {
|
|
144
145
|
};
|
|
145
|
-
const isIOS = isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
146
|
+
const isIOS = isClient$1 && ((_a$1 = window == null ? void 0 : window.navigator) == null ? void 0 : _a$1.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
146
147
|
|
|
147
|
-
function resolveUnref(r) {
|
|
148
|
+
function resolveUnref$1(r) {
|
|
148
149
|
return typeof r === "function" ? r() : vue.unref(r);
|
|
149
150
|
}
|
|
150
151
|
|
|
151
152
|
function createFilterWrapper(filter, fn) {
|
|
152
153
|
function wrapper(...args) {
|
|
153
|
-
|
|
154
|
+
return new Promise((resolve, reject) => {
|
|
155
|
+
Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject);
|
|
156
|
+
});
|
|
154
157
|
}
|
|
155
158
|
return wrapper;
|
|
156
159
|
}
|
|
157
160
|
function debounceFilter(ms, options = {}) {
|
|
158
161
|
let timer;
|
|
159
162
|
let maxTimer;
|
|
163
|
+
let lastRejector = noop$2;
|
|
164
|
+
const _clearTimeout = (timer2) => {
|
|
165
|
+
clearTimeout(timer2);
|
|
166
|
+
lastRejector();
|
|
167
|
+
lastRejector = noop$2;
|
|
168
|
+
};
|
|
160
169
|
const filter = (invoke) => {
|
|
161
|
-
const duration = resolveUnref(ms);
|
|
162
|
-
const maxDuration = resolveUnref(options.maxWait);
|
|
170
|
+
const duration = resolveUnref$1(ms);
|
|
171
|
+
const maxDuration = resolveUnref$1(options.maxWait);
|
|
163
172
|
if (timer)
|
|
164
|
-
|
|
173
|
+
_clearTimeout(timer);
|
|
165
174
|
if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
|
|
166
175
|
if (maxTimer) {
|
|
167
|
-
|
|
176
|
+
_clearTimeout(maxTimer);
|
|
168
177
|
maxTimer = null;
|
|
169
178
|
}
|
|
170
|
-
return invoke();
|
|
179
|
+
return Promise.resolve(invoke());
|
|
171
180
|
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
181
|
+
return new Promise((resolve, reject) => {
|
|
182
|
+
lastRejector = options.rejectOnCancel ? reject : resolve;
|
|
183
|
+
if (maxDuration && !maxTimer) {
|
|
184
|
+
maxTimer = setTimeout(() => {
|
|
185
|
+
if (timer)
|
|
186
|
+
_clearTimeout(timer);
|
|
187
|
+
maxTimer = null;
|
|
188
|
+
resolve(invoke());
|
|
189
|
+
}, maxDuration);
|
|
190
|
+
}
|
|
191
|
+
timer = setTimeout(() => {
|
|
192
|
+
if (maxTimer)
|
|
193
|
+
_clearTimeout(maxTimer);
|
|
176
194
|
maxTimer = null;
|
|
177
|
-
invoke();
|
|
178
|
-
},
|
|
179
|
-
}
|
|
180
|
-
timer = setTimeout(() => {
|
|
181
|
-
if (maxTimer)
|
|
182
|
-
clearTimeout(maxTimer);
|
|
183
|
-
maxTimer = null;
|
|
184
|
-
invoke();
|
|
185
|
-
}, duration);
|
|
195
|
+
resolve(invoke());
|
|
196
|
+
}, duration);
|
|
197
|
+
});
|
|
186
198
|
};
|
|
187
199
|
return filter;
|
|
188
200
|
}
|
|
189
|
-
function throttleFilter(ms, trailing = true, leading = true) {
|
|
201
|
+
function throttleFilter(ms, trailing = true, leading = true, rejectOnCancel = false) {
|
|
190
202
|
let lastExec = 0;
|
|
191
203
|
let timer;
|
|
192
204
|
let isLeading = true;
|
|
205
|
+
let lastRejector = noop$2;
|
|
206
|
+
let lastValue;
|
|
193
207
|
const clear = () => {
|
|
194
208
|
if (timer) {
|
|
195
209
|
clearTimeout(timer);
|
|
196
210
|
timer = void 0;
|
|
211
|
+
lastRejector();
|
|
212
|
+
lastRejector = noop$2;
|
|
197
213
|
}
|
|
198
214
|
};
|
|
199
|
-
const filter = (
|
|
200
|
-
const duration = resolveUnref(ms);
|
|
215
|
+
const filter = (_invoke) => {
|
|
216
|
+
const duration = resolveUnref$1(ms);
|
|
201
217
|
const elapsed = Date.now() - lastExec;
|
|
218
|
+
const invoke = () => {
|
|
219
|
+
return lastValue = _invoke();
|
|
220
|
+
};
|
|
202
221
|
clear();
|
|
203
222
|
if (duration <= 0) {
|
|
204
223
|
lastExec = Date.now();
|
|
@@ -208,24 +227,62 @@
|
|
|
208
227
|
lastExec = Date.now();
|
|
209
228
|
invoke();
|
|
210
229
|
} else if (trailing) {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
230
|
+
lastValue = new Promise((resolve, reject) => {
|
|
231
|
+
lastRejector = rejectOnCancel ? reject : resolve;
|
|
232
|
+
timer = setTimeout(() => {
|
|
233
|
+
lastExec = Date.now();
|
|
234
|
+
isLeading = true;
|
|
235
|
+
resolve(invoke());
|
|
236
|
+
clear();
|
|
237
|
+
}, Math.max(0, duration - elapsed));
|
|
238
|
+
});
|
|
217
239
|
}
|
|
218
240
|
if (!leading && !timer)
|
|
219
241
|
timer = setTimeout(() => isLeading = true, duration);
|
|
220
242
|
isLeading = false;
|
|
243
|
+
return lastValue;
|
|
221
244
|
};
|
|
222
245
|
return filter;
|
|
223
246
|
}
|
|
224
|
-
function identity$
|
|
247
|
+
function identity$2(arg) {
|
|
225
248
|
return arg;
|
|
226
249
|
}
|
|
227
250
|
|
|
228
|
-
function
|
|
251
|
+
function computedWithControl(source, fn) {
|
|
252
|
+
let v = void 0;
|
|
253
|
+
let track;
|
|
254
|
+
let trigger;
|
|
255
|
+
const dirty = vue.ref(true);
|
|
256
|
+
const update = () => {
|
|
257
|
+
dirty.value = true;
|
|
258
|
+
trigger();
|
|
259
|
+
};
|
|
260
|
+
vue.watch(source, update, { flush: "sync" });
|
|
261
|
+
const get = isFunction$3(fn) ? fn : fn.get;
|
|
262
|
+
const set = isFunction$3(fn) ? void 0 : fn.set;
|
|
263
|
+
const result = vue.customRef((_track, _trigger) => {
|
|
264
|
+
track = _track;
|
|
265
|
+
trigger = _trigger;
|
|
266
|
+
return {
|
|
267
|
+
get() {
|
|
268
|
+
if (dirty.value) {
|
|
269
|
+
v = get();
|
|
270
|
+
dirty.value = false;
|
|
271
|
+
}
|
|
272
|
+
track();
|
|
273
|
+
return v;
|
|
274
|
+
},
|
|
275
|
+
set(v2) {
|
|
276
|
+
set == null ? void 0 : set(v2);
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
});
|
|
280
|
+
if (Object.isExtensible(result))
|
|
281
|
+
result.trigger = update;
|
|
282
|
+
return result;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
function tryOnScopeDispose$1(fn) {
|
|
229
286
|
if (vue.getCurrentScope()) {
|
|
230
287
|
vue.onScopeDispose(fn);
|
|
231
288
|
return true;
|
|
@@ -238,8 +295,6 @@
|
|
|
238
295
|
}
|
|
239
296
|
|
|
240
297
|
function refDebounced(value, ms = 200, options = {}) {
|
|
241
|
-
if (ms <= 0)
|
|
242
|
-
return value;
|
|
243
298
|
const debounced = vue.ref(value.value);
|
|
244
299
|
const updater = useDebounceFn(() => {
|
|
245
300
|
debounced.value = value.value;
|
|
@@ -248,8 +303,8 @@
|
|
|
248
303
|
return debounced;
|
|
249
304
|
}
|
|
250
305
|
|
|
251
|
-
function useThrottleFn(fn, ms = 200, trailing = false, leading = true) {
|
|
252
|
-
return createFilterWrapper(throttleFilter(ms, trailing, leading), fn);
|
|
306
|
+
function useThrottleFn(fn, ms = 200, trailing = false, leading = true, rejectOnCancel = false) {
|
|
307
|
+
return createFilterWrapper(throttleFilter(ms, trailing, leading, rejectOnCancel), fn);
|
|
253
308
|
}
|
|
254
309
|
|
|
255
310
|
function tryOnMounted(fn, sync = true) {
|
|
@@ -284,100 +339,117 @@
|
|
|
284
339
|
isPending.value = false;
|
|
285
340
|
timer = null;
|
|
286
341
|
cb(...args);
|
|
287
|
-
}, resolveUnref(interval));
|
|
342
|
+
}, resolveUnref$1(interval));
|
|
288
343
|
}
|
|
289
344
|
if (immediate) {
|
|
290
345
|
isPending.value = true;
|
|
291
|
-
if (isClient)
|
|
346
|
+
if (isClient$1)
|
|
292
347
|
start();
|
|
293
348
|
}
|
|
294
|
-
tryOnScopeDispose(stop);
|
|
349
|
+
tryOnScopeDispose$1(stop);
|
|
295
350
|
return {
|
|
296
|
-
isPending,
|
|
351
|
+
isPending: vue.readonly(isPending),
|
|
297
352
|
start,
|
|
298
353
|
stop
|
|
299
354
|
};
|
|
300
355
|
}
|
|
301
356
|
|
|
302
|
-
function unrefElement(elRef) {
|
|
357
|
+
function unrefElement$1(elRef) {
|
|
303
358
|
var _a;
|
|
304
|
-
const plain = resolveUnref(elRef);
|
|
359
|
+
const plain = resolveUnref$1(elRef);
|
|
305
360
|
return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
|
|
306
361
|
}
|
|
307
362
|
|
|
308
|
-
const defaultWindow = isClient ? window : void 0;
|
|
309
|
-
const defaultDocument = isClient ? window.document : void 0;
|
|
363
|
+
const defaultWindow$1 = isClient$1 ? window : void 0;
|
|
364
|
+
const defaultDocument = isClient$1 ? window.document : void 0;
|
|
365
|
+
isClient$1 ? window.navigator : void 0;
|
|
366
|
+
isClient$1 ? window.location : void 0;
|
|
310
367
|
|
|
311
|
-
function useEventListener(...args) {
|
|
368
|
+
function useEventListener$1(...args) {
|
|
312
369
|
let target;
|
|
313
|
-
let
|
|
314
|
-
let
|
|
370
|
+
let events;
|
|
371
|
+
let listeners;
|
|
315
372
|
let options;
|
|
316
|
-
if (isString$
|
|
317
|
-
[
|
|
318
|
-
target = defaultWindow;
|
|
373
|
+
if (isString$3(args[0]) || Array.isArray(args[0])) {
|
|
374
|
+
[events, listeners, options] = args;
|
|
375
|
+
target = defaultWindow$1;
|
|
319
376
|
} else {
|
|
320
|
-
[target,
|
|
377
|
+
[target, events, listeners, options] = args;
|
|
321
378
|
}
|
|
322
379
|
if (!target)
|
|
323
|
-
return noop$
|
|
324
|
-
|
|
325
|
-
|
|
380
|
+
return noop$2;
|
|
381
|
+
if (!Array.isArray(events))
|
|
382
|
+
events = [events];
|
|
383
|
+
if (!Array.isArray(listeners))
|
|
384
|
+
listeners = [listeners];
|
|
385
|
+
const cleanups = [];
|
|
386
|
+
const cleanup = () => {
|
|
387
|
+
cleanups.forEach((fn) => fn());
|
|
388
|
+
cleanups.length = 0;
|
|
389
|
+
};
|
|
390
|
+
const register = (el, event, listener, options2) => {
|
|
391
|
+
el.addEventListener(event, listener, options2);
|
|
392
|
+
return () => el.removeEventListener(event, listener, options2);
|
|
393
|
+
};
|
|
394
|
+
const stopWatch = vue.watch(() => [unrefElement$1(target), resolveUnref$1(options)], ([el, options2]) => {
|
|
326
395
|
cleanup();
|
|
327
396
|
if (!el)
|
|
328
397
|
return;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
cleanup = noop$1;
|
|
333
|
-
};
|
|
398
|
+
cleanups.push(...events.flatMap((event) => {
|
|
399
|
+
return listeners.map((listener) => register(el, event, listener, options2));
|
|
400
|
+
}));
|
|
334
401
|
}, { immediate: true, flush: "post" });
|
|
335
402
|
const stop = () => {
|
|
336
403
|
stopWatch();
|
|
337
404
|
cleanup();
|
|
338
405
|
};
|
|
339
|
-
tryOnScopeDispose(stop);
|
|
406
|
+
tryOnScopeDispose$1(stop);
|
|
340
407
|
return stop;
|
|
341
408
|
}
|
|
342
409
|
|
|
410
|
+
let _iOSWorkaround = false;
|
|
343
411
|
function onClickOutside(target, handler, options = {}) {
|
|
344
|
-
const { window = defaultWindow, ignore, capture = true, detectIframe = false } = options;
|
|
412
|
+
const { window = defaultWindow$1, ignore = [], capture = true, detectIframe = false } = options;
|
|
345
413
|
if (!window)
|
|
346
414
|
return;
|
|
347
|
-
|
|
348
|
-
|
|
415
|
+
if (isIOS && !_iOSWorkaround) {
|
|
416
|
+
_iOSWorkaround = true;
|
|
417
|
+
Array.from(window.document.body.children).forEach((el) => el.addEventListener("click", noop$2));
|
|
418
|
+
}
|
|
419
|
+
let shouldListen = true;
|
|
420
|
+
const shouldIgnore = (event) => {
|
|
421
|
+
return ignore.some((target2) => {
|
|
422
|
+
if (typeof target2 === "string") {
|
|
423
|
+
return Array.from(window.document.querySelectorAll(target2)).some((el) => el === event.target || event.composedPath().includes(el));
|
|
424
|
+
} else {
|
|
425
|
+
const el = unrefElement$1(target2);
|
|
426
|
+
return el && (event.target === el || event.composedPath().includes(el));
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
};
|
|
349
430
|
const listener = (event) => {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
if (
|
|
431
|
+
const el = unrefElement$1(target);
|
|
432
|
+
if (!el || el === event.target || event.composedPath().includes(el))
|
|
433
|
+
return;
|
|
434
|
+
if (event.detail === 0)
|
|
435
|
+
shouldListen = !shouldIgnore(event);
|
|
436
|
+
if (!shouldListen) {
|
|
437
|
+
shouldListen = true;
|
|
354
438
|
return;
|
|
355
|
-
if (ignore && ignore.length > 0) {
|
|
356
|
-
if (ignore.some((target2) => {
|
|
357
|
-
const el2 = unrefElement(target2);
|
|
358
|
-
return el2 && (event.target === el2 || composedPath.includes(el2));
|
|
359
|
-
}))
|
|
360
|
-
return;
|
|
361
439
|
}
|
|
362
440
|
handler(event);
|
|
363
441
|
};
|
|
364
442
|
const cleanup = [
|
|
365
|
-
useEventListener(window, "click", listener, { passive: true, capture }),
|
|
366
|
-
useEventListener(window, "pointerdown", (e) => {
|
|
367
|
-
const el = unrefElement(target);
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
useEventListener(window, "pointerup", (e) => {
|
|
371
|
-
if (e.button === 0) {
|
|
372
|
-
const path = e.composedPath();
|
|
373
|
-
e.composedPath = () => path;
|
|
374
|
-
fallback = window.setTimeout(() => listener(e), 50);
|
|
375
|
-
}
|
|
443
|
+
useEventListener$1(window, "click", listener, { passive: true, capture }),
|
|
444
|
+
useEventListener$1(window, "pointerdown", (e) => {
|
|
445
|
+
const el = unrefElement$1(target);
|
|
446
|
+
if (el)
|
|
447
|
+
shouldListen = !e.composedPath().includes(el) && !shouldIgnore(e);
|
|
376
448
|
}, { passive: true }),
|
|
377
|
-
detectIframe && useEventListener(window, "blur", (event) => {
|
|
449
|
+
detectIframe && useEventListener$1(window, "blur", (event) => {
|
|
378
450
|
var _a;
|
|
379
|
-
const el = unrefElement(target);
|
|
380
|
-
if (((_a = document.activeElement) == null ? void 0 : _a.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(document.activeElement)))
|
|
451
|
+
const el = unrefElement$1(target);
|
|
452
|
+
if (((_a = window.document.activeElement) == null ? void 0 : _a.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(window.document.activeElement)))
|
|
381
453
|
handler(event);
|
|
382
454
|
})
|
|
383
455
|
].filter(Boolean);
|
|
@@ -386,16 +458,19 @@
|
|
|
386
458
|
}
|
|
387
459
|
|
|
388
460
|
function useActiveElement(options = {}) {
|
|
389
|
-
|
|
390
|
-
const
|
|
461
|
+
var _a;
|
|
462
|
+
const { window = defaultWindow$1 } = options;
|
|
463
|
+
const document = (_a = options.document) != null ? _a : window == null ? void 0 : window.document;
|
|
464
|
+
const activeElement = computedWithControl(() => null, () => document == null ? void 0 : document.activeElement);
|
|
391
465
|
if (window) {
|
|
392
|
-
useEventListener(window, "blur", () =>
|
|
393
|
-
|
|
466
|
+
useEventListener$1(window, "blur", (event) => {
|
|
467
|
+
if (event.relatedTarget !== null)
|
|
468
|
+
return;
|
|
469
|
+
activeElement.trigger();
|
|
470
|
+
}, true);
|
|
471
|
+
useEventListener$1(window, "focus", activeElement.trigger, true);
|
|
394
472
|
}
|
|
395
|
-
return
|
|
396
|
-
counter.value;
|
|
397
|
-
return window == null ? void 0 : window.document.activeElement;
|
|
398
|
-
});
|
|
473
|
+
return activeElement;
|
|
399
474
|
}
|
|
400
475
|
|
|
401
476
|
function useSupported(callback, sync = false) {
|
|
@@ -405,19 +480,22 @@
|
|
|
405
480
|
tryOnMounted(update, sync);
|
|
406
481
|
return isSupported;
|
|
407
482
|
}
|
|
483
|
+
function cloneFnJSON(source) {
|
|
484
|
+
return JSON.parse(JSON.stringify(source));
|
|
485
|
+
}
|
|
408
486
|
|
|
409
|
-
const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
410
|
-
const globalKey = "__vueuse_ssr_handlers__";
|
|
411
|
-
_global[globalKey] = _global[globalKey] || {};
|
|
412
|
-
_global[globalKey];
|
|
487
|
+
const _global$1 = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
488
|
+
const globalKey$1 = "__vueuse_ssr_handlers__";
|
|
489
|
+
_global$1[globalKey$1] = _global$1[globalKey$1] || {};
|
|
490
|
+
_global$1[globalKey$1];
|
|
413
491
|
|
|
414
|
-
function useCssVar(prop, target, { window = defaultWindow, initialValue = "" } = {}) {
|
|
492
|
+
function useCssVar(prop, target, { window = defaultWindow$1, initialValue = "" } = {}) {
|
|
415
493
|
const variable = vue.ref(initialValue);
|
|
416
494
|
const elRef = vue.computed(() => {
|
|
417
495
|
var _a;
|
|
418
|
-
return unrefElement(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);
|
|
496
|
+
return unrefElement$1(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);
|
|
419
497
|
});
|
|
420
|
-
vue.watch([elRef, () => resolveUnref(prop)], ([el, prop2]) => {
|
|
498
|
+
vue.watch([elRef, () => resolveUnref$1(prop)], ([el, prop2]) => {
|
|
421
499
|
var _a;
|
|
422
500
|
if (el && window) {
|
|
423
501
|
const value = (_a = window.getComputedStyle(el).getPropertyValue(prop2)) == null ? void 0 : _a.trim();
|
|
@@ -427,7 +505,7 @@
|
|
|
427
505
|
vue.watch(variable, (val) => {
|
|
428
506
|
var _a;
|
|
429
507
|
if ((_a = elRef.value) == null ? void 0 : _a.style)
|
|
430
|
-
elRef.value.style.setProperty(resolveUnref(prop), val);
|
|
508
|
+
elRef.value.style.setProperty(resolveUnref$1(prop), val);
|
|
431
509
|
});
|
|
432
510
|
return variable;
|
|
433
511
|
}
|
|
@@ -436,29 +514,29 @@
|
|
|
436
514
|
if (!document)
|
|
437
515
|
return vue.ref("visible");
|
|
438
516
|
const visibility = vue.ref(document.visibilityState);
|
|
439
|
-
useEventListener(document, "visibilitychange", () => {
|
|
517
|
+
useEventListener$1(document, "visibilitychange", () => {
|
|
440
518
|
visibility.value = document.visibilityState;
|
|
441
519
|
});
|
|
442
520
|
return visibility;
|
|
443
521
|
}
|
|
444
522
|
|
|
445
|
-
var __getOwnPropSymbols$
|
|
446
|
-
var __hasOwnProp$
|
|
447
|
-
var __propIsEnum$
|
|
523
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
524
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
525
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
448
526
|
var __objRest$2 = (source, exclude) => {
|
|
449
527
|
var target = {};
|
|
450
528
|
for (var prop in source)
|
|
451
|
-
if (__hasOwnProp$
|
|
529
|
+
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
452
530
|
target[prop] = source[prop];
|
|
453
|
-
if (source != null && __getOwnPropSymbols$
|
|
454
|
-
for (var prop of __getOwnPropSymbols$
|
|
455
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
531
|
+
if (source != null && __getOwnPropSymbols$g)
|
|
532
|
+
for (var prop of __getOwnPropSymbols$g(source)) {
|
|
533
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
|
|
456
534
|
target[prop] = source[prop];
|
|
457
535
|
}
|
|
458
536
|
return target;
|
|
459
537
|
};
|
|
460
538
|
function useResizeObserver(target, callback, options = {}) {
|
|
461
|
-
const _a = options, { window = defaultWindow } = _a, observerOptions = __objRest$2(_a, ["window"]);
|
|
539
|
+
const _a = options, { window = defaultWindow$1 } = _a, observerOptions = __objRest$2(_a, ["window"]);
|
|
462
540
|
let observer;
|
|
463
541
|
const isSupported = useSupported(() => window && "ResizeObserver" in window);
|
|
464
542
|
const cleanup = () => {
|
|
@@ -467,7 +545,7 @@
|
|
|
467
545
|
observer = void 0;
|
|
468
546
|
}
|
|
469
547
|
};
|
|
470
|
-
const stopWatch = vue.watch(() => unrefElement(target), (el) => {
|
|
548
|
+
const stopWatch = vue.watch(() => unrefElement$1(target), (el) => {
|
|
471
549
|
cleanup();
|
|
472
550
|
if (isSupported.value && window && el) {
|
|
473
551
|
observer = new ResizeObserver(callback);
|
|
@@ -478,7 +556,7 @@
|
|
|
478
556
|
cleanup();
|
|
479
557
|
stopWatch();
|
|
480
558
|
};
|
|
481
|
-
tryOnScopeDispose(stop);
|
|
559
|
+
tryOnScopeDispose$1(stop);
|
|
482
560
|
return {
|
|
483
561
|
isSupported,
|
|
484
562
|
stop
|
|
@@ -501,7 +579,7 @@
|
|
|
501
579
|
const x = vue.ref(0);
|
|
502
580
|
const y = vue.ref(0);
|
|
503
581
|
function update() {
|
|
504
|
-
const el = unrefElement(target);
|
|
582
|
+
const el = unrefElement$1(target);
|
|
505
583
|
if (!el) {
|
|
506
584
|
if (reset) {
|
|
507
585
|
height.value = 0;
|
|
@@ -526,11 +604,11 @@
|
|
|
526
604
|
y.value = rect.y;
|
|
527
605
|
}
|
|
528
606
|
useResizeObserver(target, update);
|
|
529
|
-
vue.watch(() => unrefElement(target), (ele) => !ele && update());
|
|
607
|
+
vue.watch(() => unrefElement$1(target), (ele) => !ele && update());
|
|
530
608
|
if (windowScroll)
|
|
531
|
-
useEventListener("scroll", update, { passive: true });
|
|
609
|
+
useEventListener$1("scroll", update, { capture: true, passive: true });
|
|
532
610
|
if (windowResize)
|
|
533
|
-
useEventListener("resize", update, { passive: true });
|
|
611
|
+
useEventListener$1("resize", update, { passive: true });
|
|
534
612
|
tryOnMounted(() => {
|
|
535
613
|
if (immediate)
|
|
536
614
|
update();
|
|
@@ -548,23 +626,23 @@
|
|
|
548
626
|
};
|
|
549
627
|
}
|
|
550
628
|
|
|
551
|
-
var __getOwnPropSymbols$
|
|
552
|
-
var __hasOwnProp$
|
|
553
|
-
var __propIsEnum$
|
|
629
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
630
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
631
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
554
632
|
var __objRest$1 = (source, exclude) => {
|
|
555
633
|
var target = {};
|
|
556
634
|
for (var prop in source)
|
|
557
|
-
if (__hasOwnProp$
|
|
635
|
+
if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
558
636
|
target[prop] = source[prop];
|
|
559
|
-
if (source != null && __getOwnPropSymbols$
|
|
560
|
-
for (var prop of __getOwnPropSymbols$
|
|
561
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
637
|
+
if (source != null && __getOwnPropSymbols$8)
|
|
638
|
+
for (var prop of __getOwnPropSymbols$8(source)) {
|
|
639
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
|
|
562
640
|
target[prop] = source[prop];
|
|
563
641
|
}
|
|
564
642
|
return target;
|
|
565
643
|
};
|
|
566
644
|
function useMutationObserver(target, callback, options = {}) {
|
|
567
|
-
const _a = options, { window = defaultWindow } = _a, mutationOptions = __objRest$1(_a, ["window"]);
|
|
645
|
+
const _a = options, { window = defaultWindow$1 } = _a, mutationOptions = __objRest$1(_a, ["window"]);
|
|
568
646
|
let observer;
|
|
569
647
|
const isSupported = useSupported(() => window && "MutationObserver" in window);
|
|
570
648
|
const cleanup = () => {
|
|
@@ -573,7 +651,7 @@
|
|
|
573
651
|
observer = void 0;
|
|
574
652
|
}
|
|
575
653
|
};
|
|
576
|
-
const stopWatch = vue.watch(() => unrefElement(target), (el) => {
|
|
654
|
+
const stopWatch = vue.watch(() => unrefElement$1(target), (el) => {
|
|
577
655
|
cleanup();
|
|
578
656
|
if (isSupported.value && window && el) {
|
|
579
657
|
observer = new MutationObserver(callback);
|
|
@@ -584,39 +662,39 @@
|
|
|
584
662
|
cleanup();
|
|
585
663
|
stopWatch();
|
|
586
664
|
};
|
|
587
|
-
tryOnScopeDispose(stop);
|
|
665
|
+
tryOnScopeDispose$1(stop);
|
|
588
666
|
return {
|
|
589
667
|
isSupported,
|
|
590
668
|
stop
|
|
591
669
|
};
|
|
592
670
|
}
|
|
593
671
|
|
|
594
|
-
var SwipeDirection;
|
|
672
|
+
var SwipeDirection$1;
|
|
595
673
|
(function(SwipeDirection2) {
|
|
596
674
|
SwipeDirection2["UP"] = "UP";
|
|
597
675
|
SwipeDirection2["RIGHT"] = "RIGHT";
|
|
598
676
|
SwipeDirection2["DOWN"] = "DOWN";
|
|
599
677
|
SwipeDirection2["LEFT"] = "LEFT";
|
|
600
678
|
SwipeDirection2["NONE"] = "NONE";
|
|
601
|
-
})(SwipeDirection || (SwipeDirection = {}));
|
|
602
|
-
|
|
603
|
-
var __defProp = Object.defineProperty;
|
|
604
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
605
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
606
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
607
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
608
|
-
var __spreadValues = (a, b) => {
|
|
679
|
+
})(SwipeDirection$1 || (SwipeDirection$1 = {}));
|
|
680
|
+
|
|
681
|
+
var __defProp$1 = Object.defineProperty;
|
|
682
|
+
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
683
|
+
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
684
|
+
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
685
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
686
|
+
var __spreadValues$1 = (a, b) => {
|
|
609
687
|
for (var prop in b || (b = {}))
|
|
610
|
-
if (__hasOwnProp.call(b, prop))
|
|
611
|
-
__defNormalProp(a, prop, b[prop]);
|
|
612
|
-
if (__getOwnPropSymbols)
|
|
613
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
614
|
-
if (__propIsEnum.call(b, prop))
|
|
615
|
-
__defNormalProp(a, prop, b[prop]);
|
|
688
|
+
if (__hasOwnProp$1.call(b, prop))
|
|
689
|
+
__defNormalProp$1(a, prop, b[prop]);
|
|
690
|
+
if (__getOwnPropSymbols$1)
|
|
691
|
+
for (var prop of __getOwnPropSymbols$1(b)) {
|
|
692
|
+
if (__propIsEnum$1.call(b, prop))
|
|
693
|
+
__defNormalProp$1(a, prop, b[prop]);
|
|
616
694
|
}
|
|
617
695
|
return a;
|
|
618
696
|
};
|
|
619
|
-
const _TransitionPresets = {
|
|
697
|
+
const _TransitionPresets$1 = {
|
|
620
698
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
621
699
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
622
700
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -642,13 +720,14 @@
|
|
|
642
720
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
643
721
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
644
722
|
};
|
|
645
|
-
__spreadValues({
|
|
646
|
-
linear: identity$
|
|
647
|
-
}, _TransitionPresets);
|
|
723
|
+
__spreadValues$1({
|
|
724
|
+
linear: identity$2
|
|
725
|
+
}, _TransitionPresets$1);
|
|
648
726
|
|
|
649
727
|
function useVModel(props, key, emit, options = {}) {
|
|
650
728
|
var _a, _b, _c;
|
|
651
729
|
const {
|
|
730
|
+
clone = false,
|
|
652
731
|
passive = false,
|
|
653
732
|
eventName,
|
|
654
733
|
deep = false,
|
|
@@ -663,16 +742,16 @@
|
|
|
663
742
|
}
|
|
664
743
|
}
|
|
665
744
|
event = eventName || event || `update:${key.toString()}`;
|
|
666
|
-
const
|
|
745
|
+
const cloneFn = (val) => !clone ? val : isFunction$3(clone) ? clone(val) : cloneFnJSON(val);
|
|
746
|
+
const getValue = () => isDef(props[key]) ? cloneFn(props[key]) : defaultValue;
|
|
667
747
|
if (passive) {
|
|
668
|
-
const
|
|
669
|
-
|
|
748
|
+
const initialValue = getValue();
|
|
749
|
+
const proxy = vue.ref(initialValue);
|
|
750
|
+
vue.watch(() => props[key], (v) => proxy.value = cloneFn(v));
|
|
670
751
|
vue.watch(proxy, (v) => {
|
|
671
752
|
if (v !== props[key] || deep)
|
|
672
753
|
_emit(event, v);
|
|
673
|
-
}, {
|
|
674
|
-
deep
|
|
675
|
-
});
|
|
754
|
+
}, { deep });
|
|
676
755
|
return proxy;
|
|
677
756
|
} else {
|
|
678
757
|
return vue.computed({
|
|
@@ -686,14 +765,14 @@
|
|
|
686
765
|
}
|
|
687
766
|
}
|
|
688
767
|
|
|
689
|
-
function useWindowFocus({ window = defaultWindow } = {}) {
|
|
768
|
+
function useWindowFocus({ window = defaultWindow$1 } = {}) {
|
|
690
769
|
if (!window)
|
|
691
770
|
return vue.ref(false);
|
|
692
771
|
const focused = vue.ref(window.document.hasFocus());
|
|
693
|
-
useEventListener(window, "blur", () => {
|
|
772
|
+
useEventListener$1(window, "blur", () => {
|
|
694
773
|
focused.value = false;
|
|
695
774
|
});
|
|
696
|
-
useEventListener(window, "focus", () => {
|
|
775
|
+
useEventListener$1(window, "focus", () => {
|
|
697
776
|
focused.value = true;
|
|
698
777
|
});
|
|
699
778
|
return focused;
|
|
@@ -701,31 +780,37 @@
|
|
|
701
780
|
|
|
702
781
|
function useWindowSize(options = {}) {
|
|
703
782
|
const {
|
|
704
|
-
window = defaultWindow,
|
|
783
|
+
window = defaultWindow$1,
|
|
705
784
|
initialWidth = Infinity,
|
|
706
785
|
initialHeight = Infinity,
|
|
707
|
-
listenOrientation = true
|
|
786
|
+
listenOrientation = true,
|
|
787
|
+
includeScrollbar = true
|
|
708
788
|
} = options;
|
|
709
789
|
const width = vue.ref(initialWidth);
|
|
710
790
|
const height = vue.ref(initialHeight);
|
|
711
791
|
const update = () => {
|
|
712
792
|
if (window) {
|
|
713
|
-
|
|
714
|
-
|
|
793
|
+
if (includeScrollbar) {
|
|
794
|
+
width.value = window.innerWidth;
|
|
795
|
+
height.value = window.innerHeight;
|
|
796
|
+
} else {
|
|
797
|
+
width.value = window.document.documentElement.clientWidth;
|
|
798
|
+
height.value = window.document.documentElement.clientHeight;
|
|
799
|
+
}
|
|
715
800
|
}
|
|
716
801
|
};
|
|
717
802
|
update();
|
|
718
803
|
tryOnMounted(update);
|
|
719
|
-
useEventListener("resize", update, { passive: true });
|
|
804
|
+
useEventListener$1("resize", update, { passive: true });
|
|
720
805
|
if (listenOrientation)
|
|
721
|
-
useEventListener("orientationchange", update, { passive: true });
|
|
806
|
+
useEventListener$1("orientationchange", update, { passive: true });
|
|
722
807
|
return { width, height };
|
|
723
808
|
}
|
|
724
809
|
|
|
725
|
-
const isFirefox = () => isClient && /firefox/i.test(window.navigator.userAgent);
|
|
810
|
+
const isFirefox = () => isClient$1 && /firefox/i.test(window.navigator.userAgent);
|
|
726
811
|
|
|
727
812
|
const isInContainer = (el, container) => {
|
|
728
|
-
if (!isClient || !el || !container)
|
|
813
|
+
if (!isClient$1 || !el || !container)
|
|
729
814
|
return false;
|
|
730
815
|
const elRect = el.getBoundingClientRect();
|
|
731
816
|
let containerRect;
|
|
@@ -781,59 +866,52 @@
|
|
|
781
866
|
return cc / 2 * ((t -= 2) * t * t + 2) + b;
|
|
782
867
|
}
|
|
783
868
|
|
|
784
|
-
/**
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
* So that rollup can tree-shake them if necessary.
|
|
790
|
-
*/
|
|
869
|
+
/**
|
|
870
|
+
* @vue/shared v3.5.13
|
|
871
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
872
|
+
* @license MIT
|
|
873
|
+
**/
|
|
791
874
|
|
|
792
|
-
(process.env.NODE_ENV !==
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
const
|
|
797
|
-
const hasOwnProperty$p
|
|
798
|
-
const
|
|
799
|
-
const
|
|
800
|
-
const
|
|
801
|
-
const
|
|
802
|
-
const
|
|
803
|
-
const
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
const objectToString$1
|
|
808
|
-
const
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
const
|
|
816
|
-
return ((str)
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
const
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, '-$1').toLowerCase());
|
|
833
|
-
/**
|
|
834
|
-
* @private
|
|
835
|
-
*/
|
|
836
|
-
const capitalize$2 = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));
|
|
875
|
+
!!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
|
876
|
+
!!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
|
|
877
|
+
const NOOP = () => {
|
|
878
|
+
};
|
|
879
|
+
const hasOwnProperty$p = Object.prototype.hasOwnProperty;
|
|
880
|
+
const hasOwn = (val, key) => hasOwnProperty$p.call(val, key);
|
|
881
|
+
const isArray$1 = Array.isArray;
|
|
882
|
+
const isDate$1 = (val) => toTypeString(val) === "[object Date]";
|
|
883
|
+
const isFunction$2 = (val) => typeof val === "function";
|
|
884
|
+
const isString$2 = (val) => typeof val === "string";
|
|
885
|
+
const isObject$1 = (val) => val !== null && typeof val === "object";
|
|
886
|
+
const isPromise = (val) => {
|
|
887
|
+
return (isObject$1(val) || isFunction$2(val)) && isFunction$2(val.then) && isFunction$2(val.catch);
|
|
888
|
+
};
|
|
889
|
+
const objectToString$1 = Object.prototype.toString;
|
|
890
|
+
const toTypeString = (value) => objectToString$1.call(value);
|
|
891
|
+
const toRawType = (value) => {
|
|
892
|
+
return toTypeString(value).slice(8, -1);
|
|
893
|
+
};
|
|
894
|
+
const isPlainObject$1 = (val) => toTypeString(val) === "[object Object]";
|
|
895
|
+
const cacheStringFunction = (fn) => {
|
|
896
|
+
const cache = /* @__PURE__ */ Object.create(null);
|
|
897
|
+
return (str) => {
|
|
898
|
+
const hit = cache[str];
|
|
899
|
+
return hit || (cache[str] = fn(str));
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
const camelizeRE = /-(\w)/g;
|
|
903
|
+
const camelize = cacheStringFunction(
|
|
904
|
+
(str) => {
|
|
905
|
+
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
|
|
906
|
+
}
|
|
907
|
+
);
|
|
908
|
+
const hyphenateRE = /\B([A-Z])/g;
|
|
909
|
+
const hyphenate = cacheStringFunction(
|
|
910
|
+
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
911
|
+
);
|
|
912
|
+
const capitalize$2 = cacheStringFunction((str) => {
|
|
913
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
914
|
+
});
|
|
837
915
|
|
|
838
916
|
/** Detect free variable `global` from Node.js. */
|
|
839
917
|
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
@@ -1387,7 +1465,7 @@
|
|
|
1387
1465
|
* console.log(_.identity(object) === object);
|
|
1388
1466
|
* // => true
|
|
1389
1467
|
*/
|
|
1390
|
-
function identity(value) {
|
|
1468
|
+
function identity$1(value) {
|
|
1391
1469
|
return value;
|
|
1392
1470
|
}
|
|
1393
1471
|
|
|
@@ -1549,7 +1627,7 @@
|
|
|
1549
1627
|
* @param {*} data The metadata.
|
|
1550
1628
|
* @returns {Function} Returns `func`.
|
|
1551
1629
|
*/
|
|
1552
|
-
var baseSetData = !metaMap ? identity : function(func, data) {
|
|
1630
|
+
var baseSetData = !metaMap ? identity$1 : function(func, data) {
|
|
1553
1631
|
metaMap.set(func, data);
|
|
1554
1632
|
return func;
|
|
1555
1633
|
};
|
|
@@ -1801,7 +1879,7 @@
|
|
|
1801
1879
|
* _.times(2, _.noop);
|
|
1802
1880
|
* // => [undefined, undefined]
|
|
1803
1881
|
*/
|
|
1804
|
-
function noop() {
|
|
1882
|
+
function noop$1() {
|
|
1805
1883
|
// No operation performed.
|
|
1806
1884
|
}
|
|
1807
1885
|
|
|
@@ -1812,7 +1890,7 @@
|
|
|
1812
1890
|
* @param {Function} func The function to query.
|
|
1813
1891
|
* @returns {*} Returns the metadata for `func`.
|
|
1814
1892
|
*/
|
|
1815
|
-
var getData = !metaMap ? noop : function(func) {
|
|
1893
|
+
var getData = !metaMap ? noop$1 : function(func) {
|
|
1816
1894
|
return metaMap.get(func);
|
|
1817
1895
|
};
|
|
1818
1896
|
|
|
@@ -2194,7 +2272,7 @@
|
|
|
2194
2272
|
* @param {Function} string The `toString` result.
|
|
2195
2273
|
* @returns {Function} Returns `func`.
|
|
2196
2274
|
*/
|
|
2197
|
-
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
2275
|
+
var baseSetToString = !defineProperty ? identity$1 : function(func, string) {
|
|
2198
2276
|
return defineProperty(func, 'toString', {
|
|
2199
2277
|
'configurable': true,
|
|
2200
2278
|
'enumerable': false,
|
|
@@ -3037,7 +3115,7 @@
|
|
|
3037
3115
|
* @returns {Function} Returns the new function.
|
|
3038
3116
|
*/
|
|
3039
3117
|
function baseRest(func, start) {
|
|
3040
|
-
return setToString(overRest(func, start, identity), func + '');
|
|
3118
|
+
return setToString(overRest(func, start, identity$1), func + '');
|
|
3041
3119
|
}
|
|
3042
3120
|
|
|
3043
3121
|
/** Used as references for various `Number` constants. */
|
|
@@ -7359,7 +7437,7 @@
|
|
|
7359
7437
|
return value;
|
|
7360
7438
|
}
|
|
7361
7439
|
if (value == null) {
|
|
7362
|
-
return identity;
|
|
7440
|
+
return identity$1;
|
|
7363
7441
|
}
|
|
7364
7442
|
if (typeof value == 'object') {
|
|
7365
7443
|
return isArray(value)
|
|
@@ -8881,7 +8959,7 @@
|
|
|
8881
8959
|
* @returns {Function} Returns cast function.
|
|
8882
8960
|
*/
|
|
8883
8961
|
function castFunction(value) {
|
|
8884
|
-
return typeof value == 'function' ? value : identity;
|
|
8962
|
+
return typeof value == 'function' ? value : identity$1;
|
|
8885
8963
|
}
|
|
8886
8964
|
|
|
8887
8965
|
/**
|
|
@@ -10628,7 +10706,7 @@
|
|
|
10628
10706
|
* _.isString(1);
|
|
10629
10707
|
* // => false
|
|
10630
10708
|
*/
|
|
10631
|
-
function isString(value) {
|
|
10709
|
+
function isString$1(value) {
|
|
10632
10710
|
return typeof value == 'string' ||
|
|
10633
10711
|
(!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
|
|
10634
10712
|
}
|
|
@@ -10720,7 +10798,7 @@
|
|
|
10720
10798
|
if (fromIndex < 0) {
|
|
10721
10799
|
fromIndex = nativeMax$7(length + fromIndex, 0);
|
|
10722
10800
|
}
|
|
10723
|
-
return isString(collection)
|
|
10801
|
+
return isString$1(collection)
|
|
10724
10802
|
? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
|
|
10725
10803
|
: (!!length && baseIndexOf(collection, value, fromIndex) > -1);
|
|
10726
10804
|
}
|
|
@@ -11021,7 +11099,7 @@
|
|
|
11021
11099
|
}
|
|
11022
11100
|
|
|
11023
11101
|
result[value] = key;
|
|
11024
|
-
}, constant(identity));
|
|
11102
|
+
}, constant(identity$1));
|
|
11025
11103
|
|
|
11026
11104
|
/** Used for built-in method references. */
|
|
11027
11105
|
var objectProto$4 = Object.prototype;
|
|
@@ -12341,7 +12419,7 @@
|
|
|
12341
12419
|
*/
|
|
12342
12420
|
function max$2(array) {
|
|
12343
12421
|
return (array && array.length)
|
|
12344
|
-
? baseExtremum(array, identity, baseGt)
|
|
12422
|
+
? baseExtremum(array, identity$1, baseGt)
|
|
12345
12423
|
: undefined;
|
|
12346
12424
|
}
|
|
12347
12425
|
|
|
@@ -12429,7 +12507,7 @@
|
|
|
12429
12507
|
* // => 5
|
|
12430
12508
|
*/
|
|
12431
12509
|
function mean(array) {
|
|
12432
|
-
return baseMean(array, identity);
|
|
12510
|
+
return baseMean(array, identity$1);
|
|
12433
12511
|
}
|
|
12434
12512
|
|
|
12435
12513
|
/**
|
|
@@ -12573,7 +12651,7 @@
|
|
|
12573
12651
|
*/
|
|
12574
12652
|
function min$2(array) {
|
|
12575
12653
|
return (array && array.length)
|
|
12576
|
-
? baseExtremum(array, identity, baseLt)
|
|
12654
|
+
? baseExtremum(array, identity$1, baseLt)
|
|
12577
12655
|
: undefined;
|
|
12578
12656
|
}
|
|
12579
12657
|
|
|
@@ -12781,7 +12859,7 @@
|
|
|
12781
12859
|
return [];
|
|
12782
12860
|
}
|
|
12783
12861
|
if (isArrayLike(value)) {
|
|
12784
|
-
return isString(value) ? stringToArray(value) : copyArray(value);
|
|
12862
|
+
return isString$1(value) ? stringToArray(value) : copyArray(value);
|
|
12785
12863
|
}
|
|
12786
12864
|
if (symIterator$1 && value[symIterator$1]) {
|
|
12787
12865
|
return iteratorToArray(value[symIterator$1]());
|
|
@@ -13232,7 +13310,7 @@
|
|
|
13232
13310
|
return iteratee;
|
|
13233
13311
|
});
|
|
13234
13312
|
} else {
|
|
13235
|
-
iteratees = [identity];
|
|
13313
|
+
iteratees = [identity$1];
|
|
13236
13314
|
}
|
|
13237
13315
|
|
|
13238
13316
|
var index = -1;
|
|
@@ -15123,7 +15201,7 @@
|
|
|
15123
15201
|
return 0;
|
|
15124
15202
|
}
|
|
15125
15203
|
if (isArrayLike(collection)) {
|
|
15126
|
-
return isString(collection) ? stringSize(collection) : collection.length;
|
|
15204
|
+
return isString$1(collection) ? stringSize(collection) : collection.length;
|
|
15127
15205
|
}
|
|
15128
15206
|
var tag = getTag$1(collection);
|
|
15129
15207
|
if (tag == mapTag || tag == setTag) {
|
|
@@ -15392,7 +15470,7 @@
|
|
|
15392
15470
|
}
|
|
15393
15471
|
return high;
|
|
15394
15472
|
}
|
|
15395
|
-
return baseSortedIndexBy(array, value, identity, retHighest);
|
|
15473
|
+
return baseSortedIndexBy(array, value, identity$1, retHighest);
|
|
15396
15474
|
}
|
|
15397
15475
|
|
|
15398
15476
|
/**
|
|
@@ -15868,7 +15946,7 @@
|
|
|
15868
15946
|
*/
|
|
15869
15947
|
function sum$1(array) {
|
|
15870
15948
|
return (array && array.length)
|
|
15871
|
-
? baseSum(array, identity)
|
|
15949
|
+
? baseSum(array, identity$1)
|
|
15872
15950
|
: 0;
|
|
15873
15951
|
}
|
|
15874
15952
|
|
|
@@ -17149,7 +17227,7 @@
|
|
|
17149
17227
|
* @param {Array} values The values to add to the set.
|
|
17150
17228
|
* @returns {Object} Returns the new set.
|
|
17151
17229
|
*/
|
|
17152
|
-
var createSet = !(Set$1 && (1 / setToArray(new Set$1([,-0]))[1]) == INFINITY) ? noop : function(values) {
|
|
17230
|
+
var createSet = !(Set$1 && (1 / setToArray(new Set$1([,-0]))[1]) == INFINITY) ? noop$1 : function(values) {
|
|
17153
17231
|
return new Set$1(values);
|
|
17154
17232
|
};
|
|
17155
17233
|
|
|
@@ -18048,7 +18126,7 @@
|
|
|
18048
18126
|
isLength, isMap, isMatch, isMatchWith, isNaN: isNaN$1,
|
|
18049
18127
|
isNative, isNil, isNull, isNumber: isNumber$1, isObject,
|
|
18050
18128
|
isObjectLike, isPlainObject, isRegExp, isSafeInteger, isSet,
|
|
18051
|
-
isString, isSymbol, isTypedArray, isUndefined: isUndefined$1, isWeakMap,
|
|
18129
|
+
isString: isString$1, isSymbol, isTypedArray, isUndefined: isUndefined$1, isWeakMap,
|
|
18052
18130
|
isWeakSet, lt: lt$1, lte, toArray, toFinite,
|
|
18053
18131
|
toInteger, toLength, toNumber, toPlainObject, toSafeInteger,
|
|
18054
18132
|
toString
|
|
@@ -18095,9 +18173,9 @@
|
|
|
18095
18173
|
|
|
18096
18174
|
var util = {
|
|
18097
18175
|
attempt, bindAll, cond, conforms, constant,
|
|
18098
|
-
defaultTo, flow, flowRight, identity, iteratee,
|
|
18176
|
+
defaultTo, flow, flowRight, identity: identity$1, iteratee,
|
|
18099
18177
|
matches, matchesProperty, method: method$1, methodOf, mixin: mixin$1,
|
|
18100
|
-
noop, nthArg, over, overEvery, overSome,
|
|
18178
|
+
noop: noop$1, nthArg, over, overEvery, overSome,
|
|
18101
18179
|
property, propertyOf, range: range$1, rangeRight, stubArray,
|
|
18102
18180
|
stubFalse, stubObject, stubString, stubTrue, times,
|
|
18103
18181
|
toPath, uniqueId
|
|
@@ -18492,7 +18570,7 @@
|
|
|
18492
18570
|
lodash.has = object$1.has;
|
|
18493
18571
|
lodash.hasIn = object$1.hasIn;
|
|
18494
18572
|
lodash.head = array$1.head;
|
|
18495
|
-
lodash.identity = identity;
|
|
18573
|
+
lodash.identity = identity$1;
|
|
18496
18574
|
lodash.includes = collection.includes;
|
|
18497
18575
|
lodash.indexOf = array$1.indexOf;
|
|
18498
18576
|
lodash.inRange = number$1.inRange;
|
|
@@ -18692,7 +18770,7 @@
|
|
|
18692
18770
|
});
|
|
18693
18771
|
|
|
18694
18772
|
LazyWrapper.prototype.compact = function() {
|
|
18695
|
-
return this.filter(identity);
|
|
18773
|
+
return this.filter(identity$1);
|
|
18696
18774
|
};
|
|
18697
18775
|
|
|
18698
18776
|
LazyWrapper.prototype.find = function(predicate) {
|
|
@@ -18857,7 +18935,7 @@
|
|
|
18857
18935
|
return isNil(prop);
|
|
18858
18936
|
};
|
|
18859
18937
|
const isStringNumber = (val) => {
|
|
18860
|
-
if (!isString$
|
|
18938
|
+
if (!isString$2(val)) {
|
|
18861
18939
|
return false;
|
|
18862
18940
|
}
|
|
18863
18941
|
return !Number.isNaN(Number(val));
|
|
@@ -18866,8 +18944,8 @@
|
|
|
18866
18944
|
return val === window;
|
|
18867
18945
|
};
|
|
18868
18946
|
|
|
18869
|
-
const rAF = (fn) => isClient ? window.requestAnimationFrame(fn) : setTimeout(fn, 16);
|
|
18870
|
-
const cAF = (handle) => isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle);
|
|
18947
|
+
const rAF = (fn) => isClient$1 ? window.requestAnimationFrame(fn) : setTimeout(fn, 16);
|
|
18948
|
+
const cAF = (handle) => isClient$1 ? window.cancelAnimationFrame(handle) : clearTimeout(handle);
|
|
18871
18949
|
|
|
18872
18950
|
const escapeStringRegexp = (string = "") => string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
18873
18951
|
const capitalize = (str) => capitalize$2(str);
|
|
@@ -18896,7 +18974,7 @@
|
|
|
18896
18974
|
}
|
|
18897
18975
|
function debugWarn(scope, message) {
|
|
18898
18976
|
if (process.env.NODE_ENV !== "production") {
|
|
18899
|
-
const error = isString$
|
|
18977
|
+
const error = isString$2(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
|
|
18900
18978
|
console.warn(error);
|
|
18901
18979
|
}
|
|
18902
18980
|
}
|
|
@@ -18922,7 +19000,7 @@
|
|
|
18922
19000
|
};
|
|
18923
19001
|
const getStyle = (element, styleName) => {
|
|
18924
19002
|
var _a;
|
|
18925
|
-
if (!isClient || !element || !styleName)
|
|
19003
|
+
if (!isClient$1 || !element || !styleName)
|
|
18926
19004
|
return "";
|
|
18927
19005
|
let key = camelize(styleName);
|
|
18928
19006
|
if (key === "float")
|
|
@@ -18942,14 +19020,14 @@
|
|
|
18942
19020
|
return "";
|
|
18943
19021
|
if (isNumber(value) || isStringNumber(value)) {
|
|
18944
19022
|
return `${value}${defaultUnit}`;
|
|
18945
|
-
} else if (isString$
|
|
19023
|
+
} else if (isString$2(value)) {
|
|
18946
19024
|
return value;
|
|
18947
19025
|
}
|
|
18948
19026
|
debugWarn(SCOPE$9, "binding value must be a string or number");
|
|
18949
19027
|
}
|
|
18950
19028
|
|
|
18951
19029
|
const isScroll = (el, isVertical) => {
|
|
18952
|
-
if (!isClient)
|
|
19030
|
+
if (!isClient$1)
|
|
18953
19031
|
return false;
|
|
18954
19032
|
const key = {
|
|
18955
19033
|
undefined: "overflow",
|
|
@@ -18960,7 +19038,7 @@
|
|
|
18960
19038
|
return ["scroll", "auto", "overlay"].some((s) => overflow.includes(s));
|
|
18961
19039
|
};
|
|
18962
19040
|
const getScrollContainer = (el, isVertical) => {
|
|
18963
|
-
if (!isClient)
|
|
19041
|
+
if (!isClient$1)
|
|
18964
19042
|
return;
|
|
18965
19043
|
let parent = el;
|
|
18966
19044
|
while (parent) {
|
|
@@ -18975,7 +19053,7 @@
|
|
|
18975
19053
|
let scrollBarWidth;
|
|
18976
19054
|
const getScrollBarWidth = (namespace) => {
|
|
18977
19055
|
var _a;
|
|
18978
|
-
if (!isClient)
|
|
19056
|
+
if (!isClient$1)
|
|
18979
19057
|
return 0;
|
|
18980
19058
|
if (scrollBarWidth !== void 0)
|
|
18981
19059
|
return scrollBarWidth;
|
|
@@ -18997,7 +19075,7 @@
|
|
|
18997
19075
|
return scrollBarWidth;
|
|
18998
19076
|
};
|
|
18999
19077
|
function scrollIntoView(container, selected) {
|
|
19000
|
-
if (!isClient)
|
|
19078
|
+
if (!isClient$1)
|
|
19001
19079
|
return;
|
|
19002
19080
|
if (!selected) {
|
|
19003
19081
|
container.scrollTop = 0;
|
|
@@ -19056,9 +19134,9 @@
|
|
|
19056
19134
|
};
|
|
19057
19135
|
|
|
19058
19136
|
const getElement = (target) => {
|
|
19059
|
-
if (!isClient || target === "")
|
|
19137
|
+
if (!isClient$1 || target === "")
|
|
19060
19138
|
return null;
|
|
19061
|
-
if (isString$
|
|
19139
|
+
if (isString$2(target)) {
|
|
19062
19140
|
try {
|
|
19063
19141
|
return document.querySelector(target);
|
|
19064
19142
|
} catch (e) {
|
|
@@ -20406,10 +20484,10 @@ For more detail, please visit: ${ref}
|
|
|
20406
20484
|
const localeContextKey = Symbol("localeContextKey");
|
|
20407
20485
|
const useLocale = (localeOverrides) => {
|
|
20408
20486
|
const locale = localeOverrides || vue.inject(localeContextKey, vue.ref());
|
|
20409
|
-
return buildLocaleContext(vue.computed(() => locale.value || zhCn));
|
|
20487
|
+
return buildLocaleContext(vue.computed(() => locale.value || zhCn));
|
|
20410
20488
|
};
|
|
20411
20489
|
|
|
20412
|
-
const defaultNamespace = "xrk";
|
|
20490
|
+
const defaultNamespace = "xrk";
|
|
20413
20491
|
const statePrefix = "is-";
|
|
20414
20492
|
const _bem = (namespace, block, blockSuffix, element, modifier) => {
|
|
20415
20493
|
let cls = `${namespace}-${block}`;
|
|
@@ -20488,7 +20566,7 @@ For more detail, please visit: ${ref}
|
|
|
20488
20566
|
}
|
|
20489
20567
|
const ns = options.ns || useNamespace("popup");
|
|
20490
20568
|
const hiddenCls = vue.computed(() => ns.bm("parent", "hidden"));
|
|
20491
|
-
if (!isClient || hasClass(document.body, hiddenCls.value)) {
|
|
20569
|
+
if (!isClient$1 || hasClass(document.body, hiddenCls.value)) {
|
|
20492
20570
|
return;
|
|
20493
20571
|
}
|
|
20494
20572
|
let scrollBarWidth = 0;
|
|
@@ -20579,7 +20657,7 @@ For more detail, please visit: ${ref}
|
|
|
20579
20657
|
const show = (event) => {
|
|
20580
20658
|
if (props.disabled === true || isFunction$2(shouldProceed) && !shouldProceed())
|
|
20581
20659
|
return;
|
|
20582
|
-
const shouldEmit = hasUpdateHandler.value && isClient;
|
|
20660
|
+
const shouldEmit = hasUpdateHandler.value && isClient$1;
|
|
20583
20661
|
if (shouldEmit) {
|
|
20584
20662
|
emit(updateEventKey, true);
|
|
20585
20663
|
}
|
|
@@ -20588,9 +20666,9 @@ For more detail, please visit: ${ref}
|
|
|
20588
20666
|
}
|
|
20589
20667
|
};
|
|
20590
20668
|
const hide = (event) => {
|
|
20591
|
-
if (props.disabled === true || !isClient)
|
|
20669
|
+
if (props.disabled === true || !isClient$1)
|
|
20592
20670
|
return;
|
|
20593
|
-
const shouldEmit = hasUpdateHandler.value && isClient;
|
|
20671
|
+
const shouldEmit = hasUpdateHandler.value && isClient$1;
|
|
20594
20672
|
if (shouldEmit) {
|
|
20595
20673
|
emit(updateEventKey, false);
|
|
20596
20674
|
}
|
|
@@ -20798,7 +20876,7 @@ For more detail, please visit: ${ref}
|
|
|
20798
20876
|
timeoutHandle = window.setTimeout(fn, delay);
|
|
20799
20877
|
};
|
|
20800
20878
|
const cancelTimeout = () => window.clearTimeout(timeoutHandle);
|
|
20801
|
-
tryOnScopeDispose(() => cancelTimeout());
|
|
20879
|
+
tryOnScopeDispose$1(() => cancelTimeout());
|
|
20802
20880
|
return {
|
|
20803
20881
|
registerTimeout,
|
|
20804
20882
|
cancelTimeout
|
|
@@ -20815,7 +20893,7 @@ For more detail, please visit: ${ref}
|
|
|
20815
20893
|
};
|
|
20816
20894
|
const useId = (deterministicId) => {
|
|
20817
20895
|
const idInjection = useIdInjection();
|
|
20818
|
-
if (!isClient && idInjection === defaultIdInjection) {
|
|
20896
|
+
if (!isClient$1 && idInjection === defaultIdInjection) {
|
|
20819
20897
|
debugWarn("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
20820
20898
|
usage: app.provide(ID_INJECTION_KEY, {
|
|
20821
20899
|
prefix: number,
|
|
@@ -20839,13 +20917,13 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
20839
20917
|
if (registeredEscapeHandlers.length === 0) {
|
|
20840
20918
|
document.addEventListener("keydown", cachedHandler);
|
|
20841
20919
|
}
|
|
20842
|
-
if (isClient)
|
|
20920
|
+
if (isClient$1)
|
|
20843
20921
|
registeredEscapeHandlers.push(handler);
|
|
20844
20922
|
});
|
|
20845
20923
|
vue.onBeforeUnmount(() => {
|
|
20846
20924
|
registeredEscapeHandlers = registeredEscapeHandlers.filter((registeredHandler) => registeredHandler !== handler);
|
|
20847
20925
|
if (registeredEscapeHandlers.length === 0) {
|
|
20848
|
-
if (isClient)
|
|
20926
|
+
if (isClient$1)
|
|
20849
20927
|
document.removeEventListener("keydown", cachedHandler);
|
|
20850
20928
|
}
|
|
20851
20929
|
});
|
|
@@ -20872,7 +20950,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
20872
20950
|
const usePopperContainer = () => {
|
|
20873
20951
|
const { id, selector } = usePopperContainerId();
|
|
20874
20952
|
vue.onBeforeMount(() => {
|
|
20875
|
-
if (!isClient)
|
|
20953
|
+
if (!isClient$1)
|
|
20876
20954
|
return;
|
|
20877
20955
|
if (process.env.NODE_ENV === "test" || !document.body.querySelector(selector.value)) {
|
|
20878
20956
|
createContainer(id.value);
|
|
@@ -20976,7 +21054,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
20976
21054
|
zIndex.value = increasingInjection.current;
|
|
20977
21055
|
return currentZIndex.value;
|
|
20978
21056
|
};
|
|
20979
|
-
if (!isClient && !vue.inject(ZINDEX_INJECTION_KEY)) {
|
|
21057
|
+
if (!isClient$1 && !vue.inject(ZINDEX_INJECTION_KEY)) {
|
|
20980
21058
|
debugWarn("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
20981
21059
|
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
20982
21060
|
}
|
|
@@ -22231,7 +22309,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22231
22309
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
22232
22310
|
|
|
22233
22311
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
22234
|
-
|
|
22312
|
+
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
22313
|
+
return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
22235
22314
|
}
|
|
22236
22315
|
function getContainingBlock(element) {
|
|
22237
22316
|
let currentNode = getParentNode(element);
|
|
@@ -22789,6 +22868,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22789
22868
|
isRTL: isRTL$1
|
|
22790
22869
|
};
|
|
22791
22870
|
|
|
22871
|
+
function rectsAreEqual(a, b) {
|
|
22872
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
22873
|
+
}
|
|
22874
|
+
|
|
22792
22875
|
// https://samthor.au/2021/observing-dom/
|
|
22793
22876
|
function observeMove(element, onMove) {
|
|
22794
22877
|
let io = null;
|
|
@@ -22808,12 +22891,13 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22808
22891
|
threshold = 1;
|
|
22809
22892
|
}
|
|
22810
22893
|
cleanup();
|
|
22894
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
22811
22895
|
const {
|
|
22812
22896
|
left,
|
|
22813
22897
|
top,
|
|
22814
22898
|
width,
|
|
22815
22899
|
height
|
|
22816
|
-
} =
|
|
22900
|
+
} = elementRectForRootMargin;
|
|
22817
22901
|
if (!skip) {
|
|
22818
22902
|
onMove();
|
|
22819
22903
|
}
|
|
@@ -22846,6 +22930,16 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22846
22930
|
refresh(false, ratio);
|
|
22847
22931
|
}
|
|
22848
22932
|
}
|
|
22933
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
22934
|
+
// It's possible that even though the ratio is reported as 1, the
|
|
22935
|
+
// element is not actually fully within the IntersectionObserver's root
|
|
22936
|
+
// area anymore. This can happen under performance constraints. This may
|
|
22937
|
+
// be a bug in the browser's IntersectionObserver implementation. To
|
|
22938
|
+
// work around this, we compare the element's bounding rect now with
|
|
22939
|
+
// what it was at the time we created the IntersectionObserver. If they
|
|
22940
|
+
// are not equal then the element moved, so we refresh.
|
|
22941
|
+
refresh();
|
|
22942
|
+
}
|
|
22849
22943
|
isFirstUpdate = false;
|
|
22850
22944
|
}
|
|
22851
22945
|
|
|
@@ -22923,7 +23017,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22923
23017
|
}
|
|
22924
23018
|
function frameLoop() {
|
|
22925
23019
|
const nextRefRect = getBoundingClientRect(reference);
|
|
22926
|
-
if (prevRefRect && (
|
|
23020
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
22927
23021
|
update();
|
|
22928
23022
|
}
|
|
22929
23023
|
prevRefRect = nextRefRect;
|
|
@@ -23163,15 +23257,15 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
23163
23257
|
el.setAttribute("tabindex", "-1");
|
|
23164
23258
|
}
|
|
23165
23259
|
});
|
|
23166
|
-
useEventListener(wrapperRef, "focus", handleFocus, true);
|
|
23167
|
-
useEventListener(wrapperRef, "blur", handleBlur, true);
|
|
23168
|
-
useEventListener(wrapperRef, "click", handleClick, true);
|
|
23260
|
+
useEventListener$1(wrapperRef, "focus", handleFocus, true);
|
|
23261
|
+
useEventListener$1(wrapperRef, "blur", handleBlur, true);
|
|
23262
|
+
useEventListener$1(wrapperRef, "click", handleClick, true);
|
|
23169
23263
|
if (process.env.NODE_ENV === "test") {
|
|
23170
23264
|
vue.onMounted(() => {
|
|
23171
23265
|
const targetEl = isElement$1(target.value) ? target.value : document.querySelector("input,textarea");
|
|
23172
23266
|
if (targetEl) {
|
|
23173
|
-
useEventListener(targetEl, "focus", handleFocus, true);
|
|
23174
|
-
useEventListener(targetEl, "blur", handleBlur, true);
|
|
23267
|
+
useEventListener$1(targetEl, "focus", handleFocus, true);
|
|
23268
|
+
useEventListener$1(targetEl, "blur", handleBlur, true);
|
|
23175
23269
|
}
|
|
23176
23270
|
});
|
|
23177
23271
|
}
|
|
@@ -23514,7 +23608,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
23514
23608
|
scrollContainer.value = getScrollContainer(root.value, true);
|
|
23515
23609
|
updateRoot();
|
|
23516
23610
|
});
|
|
23517
|
-
useEventListener(scrollContainer, "scroll", handleScroll);
|
|
23611
|
+
useEventListener$1(scrollContainer, "scroll", handleScroll);
|
|
23518
23612
|
vue.watchEffect(update);
|
|
23519
23613
|
expose({
|
|
23520
23614
|
update,
|
|
@@ -23828,7 +23922,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
23828
23922
|
}
|
|
23829
23923
|
});
|
|
23830
23924
|
const formEmits = {
|
|
23831
|
-
validate: (prop, isValid, message) => (isArray$1(prop) || isString$
|
|
23925
|
+
validate: (prop, isValid, message) => (isArray$1(prop) || isString$2(prop)) && isBoolean(isValid) && isString$2(message)
|
|
23832
23926
|
};
|
|
23833
23927
|
|
|
23834
23928
|
const SCOPE$6 = "ElForm";
|
|
@@ -25544,7 +25638,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
25544
25638
|
const propString = vue.computed(() => {
|
|
25545
25639
|
if (!props.prop)
|
|
25546
25640
|
return "";
|
|
25547
|
-
return isString$
|
|
25641
|
+
return isString$2(props.prop) ? props.prop : props.prop.join(".");
|
|
25548
25642
|
});
|
|
25549
25643
|
const hasLabel = vue.computed(() => {
|
|
25550
25644
|
return !!(props.label || slots.label);
|
|
@@ -25946,9 +26040,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
25946
26040
|
...useAriaProps(["ariaLabel"])
|
|
25947
26041
|
});
|
|
25948
26042
|
const inputEmits = {
|
|
25949
|
-
[UPDATE_MODEL_EVENT]: (value) => isString$
|
|
25950
|
-
input: (value) => isString$
|
|
25951
|
-
change: (value) => isString$
|
|
26043
|
+
[UPDATE_MODEL_EVENT]: (value) => isString$2(value),
|
|
26044
|
+
input: (value) => isString$2(value),
|
|
26045
|
+
change: (value) => isString$2(value),
|
|
25952
26046
|
focus: (evt) => evt instanceof FocusEvent,
|
|
25953
26047
|
blur: (evt) => evt instanceof FocusEvent,
|
|
25954
26048
|
clear: () => true,
|
|
@@ -26065,7 +26159,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
26065
26159
|
});
|
|
26066
26160
|
const resizeTextarea = () => {
|
|
26067
26161
|
const { type, autosize } = props;
|
|
26068
|
-
if (!isClient || type !== "textarea" || !textarea.value)
|
|
26162
|
+
if (!isClient$1 || type !== "textarea" || !textarea.value)
|
|
26069
26163
|
return;
|
|
26070
26164
|
if (autosize) {
|
|
26071
26165
|
const minRows = isObject$1(autosize) ? autosize.minRows : void 0;
|
|
@@ -26449,7 +26543,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
26449
26543
|
const visible = vue.ref(false);
|
|
26450
26544
|
let cursorDown = false;
|
|
26451
26545
|
let cursorLeave = false;
|
|
26452
|
-
let originalOnSelectStart = isClient ? document.onselectstart : null;
|
|
26546
|
+
let originalOnSelectStart = isClient$1 ? document.onselectstart : null;
|
|
26453
26547
|
const bar = vue.computed(() => BAR_MAP[props.vertical ? "vertical" : "horizontal"]);
|
|
26454
26548
|
const thumbStyle = vue.computed(() => renderThumbStyle$1({
|
|
26455
26549
|
size: props.size,
|
|
@@ -26523,8 +26617,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
26523
26617
|
if (document.onselectstart !== originalOnSelectStart)
|
|
26524
26618
|
document.onselectstart = originalOnSelectStart;
|
|
26525
26619
|
};
|
|
26526
|
-
useEventListener(vue.toRef(scrollbar, "scrollbarElement"), "mousemove", mouseMoveScrollbarHandler);
|
|
26527
|
-
useEventListener(vue.toRef(scrollbar, "scrollbarElement"), "mouseleave", mouseLeaveScrollbarHandler);
|
|
26620
|
+
useEventListener$1(vue.toRef(scrollbar, "scrollbarElement"), "mousemove", mouseMoveScrollbarHandler);
|
|
26621
|
+
useEventListener$1(vue.toRef(scrollbar, "scrollbarElement"), "mouseleave", mouseLeaveScrollbarHandler);
|
|
26528
26622
|
return (_ctx, _cache) => {
|
|
26529
26623
|
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
26530
26624
|
name: vue.unref(ns).b("fade"),
|
|
@@ -26760,7 +26854,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
26760
26854
|
stopResizeListener == null ? void 0 : stopResizeListener();
|
|
26761
26855
|
} else {
|
|
26762
26856
|
({ stop: stopResizeObserver } = useResizeObserver(resizeRef, update));
|
|
26763
|
-
stopResizeListener = useEventListener("resize", update);
|
|
26857
|
+
stopResizeListener = useEventListener$1("resize", update);
|
|
26764
26858
|
}
|
|
26765
26859
|
}, { immediate: true });
|
|
26766
26860
|
vue.watch(() => [props.maxHeight, props.height], () => {
|
|
@@ -27063,7 +27157,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
27063
27157
|
vue.onMounted(() => {
|
|
27064
27158
|
vue.watch(() => props.virtualRef, (virtualEl) => {
|
|
27065
27159
|
if (virtualEl) {
|
|
27066
|
-
triggerRef.value = unrefElement(virtualEl);
|
|
27160
|
+
triggerRef.value = unrefElement$1(virtualEl);
|
|
27067
27161
|
}
|
|
27068
27162
|
}, {
|
|
27069
27163
|
immediate: true
|
|
@@ -27465,7 +27559,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
27465
27559
|
if (!focusEvent.defaultPrevented) {
|
|
27466
27560
|
vue.nextTick(() => {
|
|
27467
27561
|
let focusStartEl = props.focusStartEl;
|
|
27468
|
-
if (!isString$
|
|
27562
|
+
if (!isString$2(focusStartEl)) {
|
|
27469
27563
|
tryFocus(focusStartEl);
|
|
27470
27564
|
if (document.activeElement !== focusStartEl) {
|
|
27471
27565
|
focusStartEl = "first";
|
|
@@ -27634,9 +27728,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
27634
27728
|
return options;
|
|
27635
27729
|
};
|
|
27636
27730
|
const unwrapMeasurableEl = ($el) => {
|
|
27637
|
-
if (!isClient)
|
|
27731
|
+
if (!isClient$1)
|
|
27638
27732
|
return;
|
|
27639
|
-
return unrefElement($el);
|
|
27733
|
+
return unrefElement$1($el);
|
|
27640
27734
|
};
|
|
27641
27735
|
function genModifiers(options) {
|
|
27642
27736
|
const { offset, gpuAcceleration, fallbackPlacements } = options;
|
|
@@ -28512,9 +28606,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
28512
28606
|
...useAriaProps(["ariaLabel"])
|
|
28513
28607
|
});
|
|
28514
28608
|
const autocompleteEmits = {
|
|
28515
|
-
[UPDATE_MODEL_EVENT]: (value) => isString$
|
|
28516
|
-
[INPUT_EVENT]: (value) => isString$
|
|
28517
|
-
[CHANGE_EVENT]: (value) => isString$
|
|
28609
|
+
[UPDATE_MODEL_EVENT]: (value) => isString$2(value),
|
|
28610
|
+
[INPUT_EVENT]: (value) => isString$2(value),
|
|
28611
|
+
[CHANGE_EVENT]: (value) => isString$2(value),
|
|
28518
28612
|
focus: (evt) => evt instanceof FocusEvent,
|
|
28519
28613
|
blur: (evt) => evt instanceof FocusEvent,
|
|
28520
28614
|
clear: () => true,
|
|
@@ -28915,7 +29009,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
28915
29009
|
const avatarClass = vue.computed(() => {
|
|
28916
29010
|
const { size, icon, shape } = props;
|
|
28917
29011
|
const classList = [ns.b()];
|
|
28918
|
-
if (isString$
|
|
29012
|
+
if (isString$2(size))
|
|
28919
29013
|
classList.push(ns.m(size));
|
|
28920
29014
|
if (icon)
|
|
28921
29015
|
classList.push(ns.m("icon"));
|
|
@@ -28999,7 +29093,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
28999
29093
|
emit("click", event);
|
|
29000
29094
|
};
|
|
29001
29095
|
const handleScrollThrottled = useThrottleFn(handleScroll, 300, true);
|
|
29002
|
-
useEventListener(container, "scroll", handleScrollThrottled);
|
|
29096
|
+
useEventListener$1(container, "scroll", handleScrollThrottled);
|
|
29003
29097
|
vue.onMounted(() => {
|
|
29004
29098
|
var _a;
|
|
29005
29099
|
container.value = document;
|
|
@@ -29349,7 +29443,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
29349
29443
|
"info",
|
|
29350
29444
|
"danger",
|
|
29351
29445
|
"text",
|
|
29352
|
-
"primary2",
|
|
29446
|
+
"primary2",
|
|
29353
29447
|
""
|
|
29354
29448
|
];
|
|
29355
29449
|
const buttonNativeTypes = ["button", "submit", "reset"];
|
|
@@ -31665,7 +31759,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
31665
31759
|
};
|
|
31666
31760
|
|
|
31667
31761
|
const nodeList = /* @__PURE__ */ new Map();
|
|
31668
|
-
if (isClient) {
|
|
31762
|
+
if (isClient$1) {
|
|
31669
31763
|
let startClick;
|
|
31670
31764
|
document.addEventListener("mousedown", (e) => startClick = e);
|
|
31671
31765
|
document.addEventListener("mouseup", (e) => {
|
|
@@ -33308,7 +33402,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
33308
33402
|
isTransitioning.value = true;
|
|
33309
33403
|
}
|
|
33310
33404
|
isFirstCall.value = false;
|
|
33311
|
-
if (isString$
|
|
33405
|
+
if (isString$2(index)) {
|
|
33312
33406
|
const filteredItems = items.value.filter((item) => item.props.name === index);
|
|
33313
33407
|
if (filteredItems.length > 0) {
|
|
33314
33408
|
index = items.value.indexOf(filteredItems[0]);
|
|
@@ -33954,8 +34048,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
33954
34048
|
...useAriaProps(["ariaControls"])
|
|
33955
34049
|
};
|
|
33956
34050
|
const checkboxEmits = {
|
|
33957
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
33958
|
-
change: (val) => isString$
|
|
34051
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$2(val) || isNumber(val) || isBoolean(val),
|
|
34052
|
+
change: (val) => isString$2(val) || isNumber(val) || isBoolean(val)
|
|
33959
34053
|
};
|
|
33960
34054
|
|
|
33961
34055
|
const checkboxGroupContextKey = Symbol("checkboxGroupContextKey");
|
|
@@ -34506,8 +34600,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
34506
34600
|
border: Boolean
|
|
34507
34601
|
});
|
|
34508
34602
|
const radioEmits = {
|
|
34509
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
34510
|
-
[CHANGE_EVENT]: (val) => isString$
|
|
34603
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$2(val) || isNumber(val) || isBoolean(val),
|
|
34604
|
+
[CHANGE_EVENT]: (val) => isString$2(val) || isNumber(val) || isBoolean(val)
|
|
34511
34605
|
};
|
|
34512
34606
|
|
|
34513
34607
|
const radioGroupKey = Symbol("radioGroupKey");
|
|
@@ -35537,7 +35631,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
35537
35631
|
vue.nextTick(scrollToExpandingNode);
|
|
35538
35632
|
};
|
|
35539
35633
|
const scrollToExpandingNode = () => {
|
|
35540
|
-
if (!isClient)
|
|
35634
|
+
if (!isClient$1)
|
|
35541
35635
|
return;
|
|
35542
35636
|
menuList.value.forEach((menu) => {
|
|
35543
35637
|
const menuElement = menu == null ? void 0 : menu.$el;
|
|
@@ -36065,7 +36159,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
36065
36159
|
const inputInner = (_a = input.value) == null ? void 0 : _a.input;
|
|
36066
36160
|
const tagWrapperEl = tagWrapper.value;
|
|
36067
36161
|
const suggestionPanelEl = (_b = suggestionPanel.value) == null ? void 0 : _b.$el;
|
|
36068
|
-
if (!isClient || !inputInner)
|
|
36162
|
+
if (!isClient$1 || !inputInner)
|
|
36069
36163
|
return;
|
|
36070
36164
|
if (suggestionPanelEl) {
|
|
36071
36165
|
const suggestionList = suggestionPanelEl.querySelector(`.${nsCascader.e("suggestion-list")}`);
|
|
@@ -36674,7 +36768,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
36674
36768
|
|
|
36675
36769
|
const ElCol = withInstall(Col);
|
|
36676
36770
|
|
|
36677
|
-
const emitChangeFn = (value) => isNumber(value) || isString$
|
|
36771
|
+
const emitChangeFn = (value) => isNumber(value) || isString$2(value) || isArray$1(value);
|
|
36678
36772
|
const collapseProps = buildProps({
|
|
36679
36773
|
accordion: Boolean,
|
|
36680
36774
|
modelValue: {
|
|
@@ -37031,7 +37125,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
37031
37125
|
|
|
37032
37126
|
let isDragging = false;
|
|
37033
37127
|
function draggable(element, options) {
|
|
37034
|
-
if (!isClient)
|
|
37128
|
+
if (!isClient$1)
|
|
37035
37129
|
return;
|
|
37036
37130
|
const moveFn = function(event) {
|
|
37037
37131
|
var _a;
|
|
@@ -37411,9 +37505,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
37411
37505
|
...useAriaProps(["ariaLabel"])
|
|
37412
37506
|
});
|
|
37413
37507
|
const colorPickerEmits = {
|
|
37414
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
37415
|
-
[CHANGE_EVENT]: (val) => isString$
|
|
37416
|
-
activeChange: (val) => isString$
|
|
37508
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$2(val) || isNil(val),
|
|
37509
|
+
[CHANGE_EVENT]: (val) => isString$2(val) || isNil(val),
|
|
37510
|
+
activeChange: (val) => isString$2(val) || isNil(val),
|
|
37417
37511
|
focus: (evt) => evt instanceof FocusEvent,
|
|
37418
37512
|
blur: (evt) => evt instanceof FocusEvent
|
|
37419
37513
|
};
|
|
@@ -42366,7 +42460,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
42366
42460
|
}
|
|
42367
42461
|
}
|
|
42368
42462
|
function doOpen() {
|
|
42369
|
-
if (!isClient)
|
|
42463
|
+
if (!isClient$1)
|
|
42370
42464
|
return;
|
|
42371
42465
|
visible.value = true;
|
|
42372
42466
|
}
|
|
@@ -43089,7 +43183,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
43089
43183
|
vue.watch(() => props.currentTabId, (val) => {
|
|
43090
43184
|
currentTabbedId.value = val != null ? val : null;
|
|
43091
43185
|
});
|
|
43092
|
-
useEventListener(rovingFocusGroupRef, ENTRY_FOCUS_EVT, handleEntryFocus);
|
|
43186
|
+
useEventListener$1(rovingFocusGroupRef, ENTRY_FOCUS_EVT, handleEntryFocus);
|
|
43093
43187
|
}
|
|
43094
43188
|
});
|
|
43095
43189
|
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -44249,8 +44343,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
44249
44343
|
});
|
|
44250
44344
|
});
|
|
44251
44345
|
scopeEventListener.run(() => {
|
|
44252
|
-
useEventListener(document, "keydown", keydownHandler);
|
|
44253
|
-
useEventListener(document, "wheel", mousewheelHandler);
|
|
44346
|
+
useEventListener$1(document, "keydown", keydownHandler);
|
|
44347
|
+
useEventListener$1(document, "wheel", mousewheelHandler);
|
|
44254
44348
|
});
|
|
44255
44349
|
}
|
|
44256
44350
|
function unregisterEventListener() {
|
|
@@ -44277,8 +44371,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
44277
44371
|
offsetY: offsetY + ev.pageY - startY
|
|
44278
44372
|
};
|
|
44279
44373
|
});
|
|
44280
|
-
const removeMousemove = useEventListener(document, "mousemove", dragHandler);
|
|
44281
|
-
useEventListener(document, "mouseup", () => {
|
|
44374
|
+
const removeMousemove = useEventListener$1(document, "mousemove", dragHandler);
|
|
44375
|
+
useEventListener$1(document, "mouseup", () => {
|
|
44282
44376
|
removeMousemove();
|
|
44283
44377
|
});
|
|
44284
44378
|
e.preventDefault();
|
|
@@ -44367,14 +44461,14 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
44367
44461
|
(_b = (_a2 = wrapper.value) == null ? void 0 : _a2.focus) == null ? void 0 : _b.call(_a2);
|
|
44368
44462
|
});
|
|
44369
44463
|
expose({
|
|
44370
|
-
setActiveItem,
|
|
44371
|
-
registerEventListener,
|
|
44372
|
-
unregisterEventListener,
|
|
44373
|
-
hide,
|
|
44374
|
-
toggleMode,
|
|
44375
|
-
next,
|
|
44376
|
-
prev,
|
|
44377
|
-
handleActions
|
|
44464
|
+
setActiveItem,
|
|
44465
|
+
registerEventListener,
|
|
44466
|
+
unregisterEventListener,
|
|
44467
|
+
hide,
|
|
44468
|
+
toggleMode,
|
|
44469
|
+
next,
|
|
44470
|
+
prev,
|
|
44471
|
+
handleActions
|
|
44378
44472
|
});
|
|
44379
44473
|
return (_ctx, _cache) => {
|
|
44380
44474
|
return vue.openBlock(), vue.createBlock(vue.unref(ElTeleport), {
|
|
@@ -44616,7 +44710,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
44616
44710
|
const showViewer = vue.ref(false);
|
|
44617
44711
|
const container = vue.ref();
|
|
44618
44712
|
const _scrollContainer = vue.ref();
|
|
44619
|
-
const supportLoading = isClient && "loading" in HTMLImageElement.prototype;
|
|
44713
|
+
const supportLoading = isClient$1 && "loading" in HTMLImageElement.prototype;
|
|
44620
44714
|
let stopScrollListener;
|
|
44621
44715
|
let stopWheelListener;
|
|
44622
44716
|
const imageKls = vue.computed(() => [
|
|
@@ -44626,7 +44720,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
44626
44720
|
]);
|
|
44627
44721
|
const imageStyle = vue.computed(() => {
|
|
44628
44722
|
const { fit } = props;
|
|
44629
|
-
if (isClient && fit) {
|
|
44723
|
+
if (isClient$1 && fit) {
|
|
44630
44724
|
return { objectFit: fit };
|
|
44631
44725
|
}
|
|
44632
44726
|
return {};
|
|
@@ -44649,7 +44743,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
44649
44743
|
return !supportLoading && props.loading === "lazy" || props.lazy;
|
|
44650
44744
|
});
|
|
44651
44745
|
const loadImage = () => {
|
|
44652
|
-
if (!isClient)
|
|
44746
|
+
if (!isClient$1)
|
|
44653
44747
|
return;
|
|
44654
44748
|
isLoading.value = true;
|
|
44655
44749
|
hasLoadError.value = false;
|
|
@@ -44674,24 +44768,24 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
44674
44768
|
const lazyLoadHandler = useThrottleFn(handleLazyLoad, 200, true);
|
|
44675
44769
|
async function addLazyLoadListener() {
|
|
44676
44770
|
var _a;
|
|
44677
|
-
if (!isClient)
|
|
44771
|
+
if (!isClient$1)
|
|
44678
44772
|
return;
|
|
44679
44773
|
await vue.nextTick();
|
|
44680
44774
|
const { scrollContainer } = props;
|
|
44681
44775
|
if (isElement$1(scrollContainer)) {
|
|
44682
44776
|
_scrollContainer.value = scrollContainer;
|
|
44683
|
-
} else if (isString$
|
|
44777
|
+
} else if (isString$2(scrollContainer) && scrollContainer !== "") {
|
|
44684
44778
|
_scrollContainer.value = (_a = document.querySelector(scrollContainer)) != null ? _a : void 0;
|
|
44685
44779
|
} else if (container.value) {
|
|
44686
44780
|
_scrollContainer.value = getScrollContainer(container.value);
|
|
44687
44781
|
}
|
|
44688
44782
|
if (_scrollContainer.value) {
|
|
44689
|
-
stopScrollListener = useEventListener(_scrollContainer, "scroll", lazyLoadHandler);
|
|
44783
|
+
stopScrollListener = useEventListener$1(_scrollContainer, "scroll", lazyLoadHandler);
|
|
44690
44784
|
setTimeout(() => handleLazyLoad(), 100);
|
|
44691
44785
|
}
|
|
44692
44786
|
}
|
|
44693
44787
|
function removeLazyLoadListener() {
|
|
44694
|
-
if (!isClient || !_scrollContainer.value || !lazyLoadHandler)
|
|
44788
|
+
if (!isClient$1 || !_scrollContainer.value || !lazyLoadHandler)
|
|
44695
44789
|
return;
|
|
44696
44790
|
stopScrollListener == null ? void 0 : stopScrollListener();
|
|
44697
44791
|
_scrollContainer.value = void 0;
|
|
@@ -44710,7 +44804,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
44710
44804
|
function clickHandler() {
|
|
44711
44805
|
if (!preview.value)
|
|
44712
44806
|
return;
|
|
44713
|
-
stopWheelListener = useEventListener("wheel", wheelHandler, {
|
|
44807
|
+
stopWheelListener = useEventListener$1("wheel", wheelHandler, {
|
|
44714
44808
|
passive: false
|
|
44715
44809
|
});
|
|
44716
44810
|
prevOverflow = document.body.style.overflow;
|
|
@@ -44983,7 +45077,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
44983
45077
|
if (valueOnClear === null) {
|
|
44984
45078
|
return null;
|
|
44985
45079
|
}
|
|
44986
|
-
newVal = isString$
|
|
45080
|
+
newVal = isString$2(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear;
|
|
44987
45081
|
}
|
|
44988
45082
|
if (stepStrictly) {
|
|
44989
45083
|
newVal = toPrecision(Math.round(newVal / step) * step, precision);
|
|
@@ -45698,7 +45792,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
45698
45792
|
transform: opened.value ? props.expandCloseIcon && props.expandOpenIcon || props.collapseCloseIcon && props.collapseOpenIcon && rootMenu.props.collapse ? "none" : "rotateZ(180deg)" : "none"
|
|
45699
45793
|
}
|
|
45700
45794
|
}, {
|
|
45701
|
-
default: () => isString$
|
|
45795
|
+
default: () => isString$2(subMenuTitleIcon.value) ? vue.h(instance.appContext.components[subMenuTitleIcon.value]) : vue.h(subMenuTitleIcon.value)
|
|
45702
45796
|
})
|
|
45703
45797
|
];
|
|
45704
45798
|
const child = rootMenu.isMenuPopup ? vue.h(ElTooltip, {
|
|
@@ -45833,11 +45927,11 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
45833
45927
|
default: 300
|
|
45834
45928
|
}
|
|
45835
45929
|
});
|
|
45836
|
-
const checkIndexPath = (indexPath) => Array.isArray(indexPath) && indexPath.every((path) => isString$
|
|
45930
|
+
const checkIndexPath = (indexPath) => Array.isArray(indexPath) && indexPath.every((path) => isString$2(path));
|
|
45837
45931
|
const menuEmits = {
|
|
45838
|
-
close: (index, indexPath) => isString$
|
|
45839
|
-
open: (index, indexPath) => isString$
|
|
45840
|
-
select: (index, indexPath, item, routerResult) => isString$
|
|
45932
|
+
close: (index, indexPath) => isString$2(index) && checkIndexPath(indexPath),
|
|
45933
|
+
open: (index, indexPath) => isString$2(index) && checkIndexPath(indexPath),
|
|
45934
|
+
select: (index, indexPath, item, routerResult) => isString$2(index) && checkIndexPath(indexPath) && isObject$1(item) && (routerResult === void 0 || routerResult instanceof Promise)
|
|
45841
45935
|
};
|
|
45842
45936
|
var Menu = vue.defineComponent({
|
|
45843
45937
|
name: "ElMenu",
|
|
@@ -46114,7 +46208,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
46114
46208
|
disabled: Boolean
|
|
46115
46209
|
});
|
|
46116
46210
|
const menuItemEmits = {
|
|
46117
|
-
click: (item) => isString$
|
|
46211
|
+
click: (item) => isString$2(item.index) && Array.isArray(item.indexPath)
|
|
46118
46212
|
};
|
|
46119
46213
|
|
|
46120
46214
|
const COMPONENT_NAME$b = "ElMenuItem";
|
|
@@ -46861,7 +46955,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
46861
46955
|
});
|
|
46862
46956
|
vue.watch(() => states.options.entries(), () => {
|
|
46863
46957
|
var _a;
|
|
46864
|
-
if (!isClient)
|
|
46958
|
+
if (!isClient$1)
|
|
46865
46959
|
return;
|
|
46866
46960
|
const inputs = ((_a = selectRef.value) == null ? void 0 : _a.querySelectorAll("input")) || [];
|
|
46867
46961
|
if (!props.filterable && !props.defaultFirstOption && !isUndefined(props.modelValue) || !Array.from(inputs).includes(document.activeElement)) {
|
|
@@ -47336,7 +47430,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
47336
47430
|
var _a2, _b2, _c, _d;
|
|
47337
47431
|
const name = (_a2 = (item == null ? void 0 : item.type) || {}) == null ? void 0 : _a2.name;
|
|
47338
47432
|
if (name === "ElOptionGroup") {
|
|
47339
|
-
filterOptions(!isString$
|
|
47433
|
+
filterOptions(!isString$2(item.children) && !isArray$1(item.children) && isFunction$2((_b2 = item.children) == null ? void 0 : _b2.default) ? (_c = item.children) == null ? void 0 : _c.default() : item.children);
|
|
47340
47434
|
} else if (name === "ElOption") {
|
|
47341
47435
|
valueList.push((_d = item.props) == null ? void 0 : _d.value);
|
|
47342
47436
|
} else if (isArray$1(item.children)) {
|
|
@@ -49090,7 +49184,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
49090
49184
|
function getColors(color) {
|
|
49091
49185
|
const span = 100 / color.length;
|
|
49092
49186
|
const seriesColors = color.map((seriesColor, index) => {
|
|
49093
|
-
if (isString$
|
|
49187
|
+
if (isString$2(seriesColor)) {
|
|
49094
49188
|
return {
|
|
49095
49189
|
color: seriesColor,
|
|
49096
49190
|
percentage: (index + 1) * span
|
|
@@ -49105,7 +49199,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
49105
49199
|
const { color } = props;
|
|
49106
49200
|
if (isFunction$2(color)) {
|
|
49107
49201
|
return color(percentage);
|
|
49108
|
-
} else if (isString$
|
|
49202
|
+
} else if (isString$2(color)) {
|
|
49109
49203
|
return color;
|
|
49110
49204
|
} else {
|
|
49111
49205
|
const colors = getColors(color);
|
|
@@ -49366,7 +49460,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
49366
49460
|
} : icons;
|
|
49367
49461
|
});
|
|
49368
49462
|
const decimalIconComponent = vue.computed(() => getValueFromMap(props.modelValue, componentMap.value));
|
|
49369
|
-
const voidComponent = vue.computed(() => rateDisabled.value ? isString$
|
|
49463
|
+
const voidComponent = vue.computed(() => rateDisabled.value ? isString$2(props.disabledVoidIcon) ? props.disabledVoidIcon : vue.markRaw(props.disabledVoidIcon) : isString$2(props.voidIcon) ? props.voidIcon : vue.markRaw(props.voidIcon));
|
|
49370
49464
|
const activeComponent = vue.computed(() => getValueFromMap(currentValue.value, componentMap.value));
|
|
49371
49465
|
function showDecimalIcon(item) {
|
|
49372
49466
|
const showWhenDisabled = rateDisabled.value && valueDecimal.value > 0 && item - 1 < props.modelValue && item > props.modelValue;
|
|
@@ -50150,7 +50244,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
50150
50244
|
(_b = (_a = scrollbarRef.value).onMouseUp) == null ? void 0 : _b.call(_a);
|
|
50151
50245
|
scrollTo(Math.min(states.value.scrollOffset + offset, estimatedTotalSize.value - clientSize.value));
|
|
50152
50246
|
});
|
|
50153
|
-
useEventListener(windowRef, "wheel", onWheel, {
|
|
50247
|
+
useEventListener$1(windowRef, "wheel", onWheel, {
|
|
50154
50248
|
passive: false
|
|
50155
50249
|
});
|
|
50156
50250
|
const emitEvents = () => {
|
|
@@ -50270,7 +50364,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
50270
50364
|
}
|
|
50271
50365
|
};
|
|
50272
50366
|
vue.onMounted(() => {
|
|
50273
|
-
if (!isClient)
|
|
50367
|
+
if (!isClient$1)
|
|
50274
50368
|
return;
|
|
50275
50369
|
const { initScrollOffset } = props;
|
|
50276
50370
|
const windowElement = vue.unref(windowRef);
|
|
@@ -50385,7 +50479,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
50385
50479
|
vue.h(Inner, {
|
|
50386
50480
|
style: innerStyle,
|
|
50387
50481
|
ref: "innerRef"
|
|
50388
|
-
}, !isString$
|
|
50482
|
+
}, !isString$2(Inner) ? {
|
|
50389
50483
|
default: () => children
|
|
50390
50484
|
} : children)
|
|
50391
50485
|
];
|
|
@@ -50404,7 +50498,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
50404
50498
|
onScroll,
|
|
50405
50499
|
ref: "windowRef",
|
|
50406
50500
|
key: 0
|
|
50407
|
-
}, !isString$
|
|
50501
|
+
}, !isString$2(Container) ? { default: () => [InnerNode] } : [InnerNode]);
|
|
50408
50502
|
return vue.h("div", {
|
|
50409
50503
|
key: 0,
|
|
50410
50504
|
class: [ns.e("wrapper"), states.scrollbarAlwaysOn ? "always-on" : ""]
|
|
@@ -50420,7 +50514,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
50420
50514
|
getEstimatedTotalSize: ({ total, itemSize }) => itemSize * total,
|
|
50421
50515
|
getOffset: ({ height, total, itemSize, layout, width }, index, alignment, scrollOffset) => {
|
|
50422
50516
|
const size = isHorizontal(layout) ? width : height;
|
|
50423
|
-
if (process.env.NODE_ENV !== "production" && isString$
|
|
50517
|
+
if (process.env.NODE_ENV !== "production" && isString$2(size)) {
|
|
50424
50518
|
throwError("[ElVirtualList]", `
|
|
50425
50519
|
You should set
|
|
50426
50520
|
width/height
|
|
@@ -50877,7 +50971,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
50877
50971
|
scrollTop: Math.min(states.value.scrollTop + y, estimatedTotalHeight.value - height)
|
|
50878
50972
|
});
|
|
50879
50973
|
});
|
|
50880
|
-
useEventListener(windowRef, "wheel", onWheel, {
|
|
50974
|
+
useEventListener$1(windowRef, "wheel", onWheel, {
|
|
50881
50975
|
passive: false
|
|
50882
50976
|
});
|
|
50883
50977
|
const scrollTo = ({
|
|
@@ -50945,7 +51039,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
50945
51039
|
});
|
|
50946
51040
|
};
|
|
50947
51041
|
vue.onMounted(() => {
|
|
50948
|
-
if (!isClient)
|
|
51042
|
+
if (!isClient$1)
|
|
50949
51043
|
return;
|
|
50950
51044
|
const { initScrollLeft, initScrollTop } = props;
|
|
50951
51045
|
const windowElement = vue.unref(windowRef);
|
|
@@ -51073,7 +51167,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
51073
51167
|
vue.h(Inner, {
|
|
51074
51168
|
style: vue.unref(innerStyle),
|
|
51075
51169
|
ref: innerRef
|
|
51076
|
-
}, !isString$
|
|
51170
|
+
}, !isString$2(Inner) ? {
|
|
51077
51171
|
default: () => children
|
|
51078
51172
|
} : children)
|
|
51079
51173
|
];
|
|
@@ -51092,7 +51186,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
51092
51186
|
style: vue.unref(windowStyle),
|
|
51093
51187
|
onScroll,
|
|
51094
51188
|
ref: windowRef
|
|
51095
|
-
}, !isString$
|
|
51189
|
+
}, !isString$2(Container) ? { default: () => Inner } : Inner),
|
|
51096
51190
|
horizontalScrollbar,
|
|
51097
51191
|
verticalScrollbar
|
|
51098
51192
|
]);
|
|
@@ -53293,7 +53387,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
53293
53387
|
}
|
|
53294
53388
|
initData.oldValue = initData.firstValue;
|
|
53295
53389
|
}
|
|
53296
|
-
useEventListener(window, "resize", resetSize);
|
|
53390
|
+
useEventListener$1(window, "resize", resetSize);
|
|
53297
53391
|
await vue.nextTick();
|
|
53298
53392
|
resetSize();
|
|
53299
53393
|
});
|
|
@@ -53665,7 +53759,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
53665
53759
|
vue.watch(() => initData.dragging, (val) => {
|
|
53666
53760
|
updateDragging(val);
|
|
53667
53761
|
});
|
|
53668
|
-
useEventListener(button, "touchstart", onButtonDown, { passive: false });
|
|
53762
|
+
useEventListener$1(button, "touchstart", onButtonDown, { passive: false });
|
|
53669
53763
|
return {
|
|
53670
53764
|
disabled,
|
|
53671
53765
|
button,
|
|
@@ -53896,9 +53990,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
53896
53990
|
setup(props) {
|
|
53897
53991
|
const ns = useNamespace("slider");
|
|
53898
53992
|
const label = vue.computed(() => {
|
|
53899
|
-
return isString$
|
|
53993
|
+
return isString$2(props.mark) ? props.mark : props.mark.label;
|
|
53900
53994
|
});
|
|
53901
|
-
const style = vue.computed(() => isString$
|
|
53995
|
+
const style = vue.computed(() => isString$2(props.mark) ? void 0 : props.mark.style);
|
|
53902
53996
|
return () => vue.h("div", {
|
|
53903
53997
|
class: ns.e("marks-text"),
|
|
53904
53998
|
style: style.value
|
|
@@ -53991,10 +54085,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
53991
54085
|
const updateDragging = (val) => {
|
|
53992
54086
|
initData.dragging = val;
|
|
53993
54087
|
};
|
|
53994
|
-
useEventListener(sliderWrapper, "touchstart", onSliderWrapperPrevent, {
|
|
54088
|
+
useEventListener$1(sliderWrapper, "touchstart", onSliderWrapperPrevent, {
|
|
53995
54089
|
passive: false
|
|
53996
54090
|
});
|
|
53997
|
-
useEventListener(sliderWrapper, "touchmove", onSliderWrapperPrevent, {
|
|
54091
|
+
useEventListener$1(sliderWrapper, "touchmove", onSliderWrapperPrevent, {
|
|
53998
54092
|
passive: false
|
|
53999
54093
|
});
|
|
54000
54094
|
vue.provide(sliderContextKey, {
|
|
@@ -54230,7 +54324,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
54230
54324
|
spacer: {
|
|
54231
54325
|
type: definePropType([Object, String, Number, Array]),
|
|
54232
54326
|
default: null,
|
|
54233
|
-
validator: (val) => vue.isVNode(val) || isNumber(val) || isString$
|
|
54327
|
+
validator: (val) => vue.isVNode(val) || isNumber(val) || isString$2(val)
|
|
54234
54328
|
},
|
|
54235
54329
|
wrap: Boolean,
|
|
54236
54330
|
fill: Boolean,
|
|
@@ -54879,9 +54973,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
54879
54973
|
...useAriaProps(["ariaLabel"])
|
|
54880
54974
|
});
|
|
54881
54975
|
const switchEmits = {
|
|
54882
|
-
[UPDATE_MODEL_EVENT]: (val) => isBoolean(val) || isString$
|
|
54883
|
-
[CHANGE_EVENT]: (val) => isBoolean(val) || isString$
|
|
54884
|
-
[INPUT_EVENT]: (val) => isBoolean(val) || isString$
|
|
54976
|
+
[UPDATE_MODEL_EVENT]: (val) => isBoolean(val) || isString$2(val) || isNumber(val),
|
|
54977
|
+
[CHANGE_EVENT]: (val) => isBoolean(val) || isString$2(val) || isNumber(val),
|
|
54978
|
+
[INPUT_EVENT]: (val) => isBoolean(val) || isString$2(val) || isNumber(val)
|
|
54885
54979
|
};
|
|
54886
54980
|
|
|
54887
54981
|
const COMPONENT_NAME$8 = "ElSwitch";
|
|
@@ -56550,7 +56644,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
56550
56644
|
return false;
|
|
56551
56645
|
}
|
|
56552
56646
|
setHeight(value, prop = "height") {
|
|
56553
|
-
if (!isClient)
|
|
56647
|
+
if (!isClient$1)
|
|
56554
56648
|
return;
|
|
56555
56649
|
const el = this.table.vnode.el;
|
|
56556
56650
|
value = parseHeight(value);
|
|
@@ -56597,7 +56691,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
56597
56691
|
return false;
|
|
56598
56692
|
}
|
|
56599
56693
|
updateColumnsWidth() {
|
|
56600
|
-
if (!isClient)
|
|
56694
|
+
if (!isClient$1)
|
|
56601
56695
|
return;
|
|
56602
56696
|
const fit = this.fit;
|
|
56603
56697
|
const bodyWidth = this.table.vnode.el.clientWidth;
|
|
@@ -57053,7 +57147,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
57053
57147
|
const dragging = vue.ref(false);
|
|
57054
57148
|
const dragState = vue.ref({});
|
|
57055
57149
|
const handleMouseDown = (event, column) => {
|
|
57056
|
-
if (!isClient)
|
|
57150
|
+
if (!isClient$1)
|
|
57057
57151
|
return;
|
|
57058
57152
|
if (column.children && column.children.length > 0)
|
|
57059
57153
|
return;
|
|
@@ -57145,7 +57239,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
57145
57239
|
}
|
|
57146
57240
|
};
|
|
57147
57241
|
const handleMouseOut = () => {
|
|
57148
|
-
if (!isClient)
|
|
57242
|
+
if (!isClient$1)
|
|
57149
57243
|
return;
|
|
57150
57244
|
document.body.style.cursor = "";
|
|
57151
57245
|
};
|
|
@@ -58051,7 +58145,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
58051
58145
|
hoveredCellList.forEach((item) => removeClass(item, "hover-cell"));
|
|
58052
58146
|
hoveredCellList.length = 0;
|
|
58053
58147
|
}
|
|
58054
|
-
if (!props.store.states.isComplex.value || !isClient)
|
|
58148
|
+
if (!props.store.states.isComplex.value || !isClient$1)
|
|
58055
58149
|
return;
|
|
58056
58150
|
rAF(() => {
|
|
58057
58151
|
const oldRow = rows[oldVal];
|
|
@@ -58433,14 +58527,14 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
58433
58527
|
if (!table.refs.scrollBarRef)
|
|
58434
58528
|
return;
|
|
58435
58529
|
if (table.refs.scrollBarRef.wrapRef) {
|
|
58436
|
-
useEventListener(table.refs.scrollBarRef.wrapRef, "scroll", syncPosition, {
|
|
58530
|
+
useEventListener$1(table.refs.scrollBarRef.wrapRef, "scroll", syncPosition, {
|
|
58437
58531
|
passive: true
|
|
58438
58532
|
});
|
|
58439
58533
|
}
|
|
58440
58534
|
if (props.fit) {
|
|
58441
58535
|
useResizeObserver(table.vnode.el, resizeListener);
|
|
58442
58536
|
} else {
|
|
58443
|
-
useEventListener(window, "resize", resizeListener);
|
|
58537
|
+
useEventListener$1(window, "resize", resizeListener);
|
|
58444
58538
|
}
|
|
58445
58539
|
useResizeObserver(table.refs.bodyWrapper, () => {
|
|
58446
58540
|
var _a, _b;
|
|
@@ -58482,7 +58576,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
58482
58576
|
height,
|
|
58483
58577
|
headerHeight: props.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) || 0
|
|
58484
58578
|
};
|
|
58485
|
-
requestAnimationFrame(doLayout);
|
|
58579
|
+
requestAnimationFrame(doLayout);
|
|
58486
58580
|
}
|
|
58487
58581
|
};
|
|
58488
58582
|
const tableSize = useFormSize();
|
|
@@ -59682,7 +59776,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
59682
59776
|
children.push(childNode);
|
|
59683
59777
|
} else if (childNode.type === vue.Fragment && Array.isArray(childNode.children)) {
|
|
59684
59778
|
childNode.children.forEach((vnode2) => {
|
|
59685
|
-
if ((vnode2 == null ? void 0 : vnode2.patchFlag) !== 1024 && !isString$
|
|
59779
|
+
if ((vnode2 == null ? void 0 : vnode2.patchFlag) !== 1024 && !isString$2(vnode2 == null ? void 0 : vnode2.children)) {
|
|
59686
59780
|
children.push(vnode2);
|
|
59687
59781
|
}
|
|
59688
59782
|
});
|
|
@@ -62203,7 +62297,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
62203
62297
|
},
|
|
62204
62298
|
stretch: Boolean
|
|
62205
62299
|
});
|
|
62206
|
-
const isPaneName = (value) => isString$
|
|
62300
|
+
const isPaneName = (value) => isString$2(value) || isNumber(value);
|
|
62207
62301
|
const tabsEmits = {
|
|
62208
62302
|
[UPDATE_MODEL_EVENT]: (name) => isPaneName(name),
|
|
62209
62303
|
tabClick: (pane, ev) => ev instanceof Event,
|
|
@@ -64376,7 +64470,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
64376
64470
|
} else {
|
|
64377
64471
|
className = nodeClassFunc;
|
|
64378
64472
|
}
|
|
64379
|
-
if (isString$
|
|
64473
|
+
if (isString$2(className)) {
|
|
64380
64474
|
return { [className]: true };
|
|
64381
64475
|
} else {
|
|
64382
64476
|
return className;
|
|
@@ -64659,7 +64753,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
64659
64753
|
hasInput.click();
|
|
64660
64754
|
}
|
|
64661
64755
|
};
|
|
64662
|
-
useEventListener(el$, "keydown", handleKeydown);
|
|
64756
|
+
useEventListener$1(el$, "keydown", handleKeydown);
|
|
64663
64757
|
const initTabIndex = () => {
|
|
64664
64758
|
var _a;
|
|
64665
64759
|
treeItems.value = Array.from(el$.value.querySelectorAll(`.${ns.is("focusable")}[role=treeitem]`));
|
|
@@ -65271,7 +65365,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
65271
65365
|
}
|
|
65272
65366
|
});
|
|
65273
65367
|
const inputs = ((_a = select.selectRef) == null ? void 0 : _a.querySelectorAll("input")) || [];
|
|
65274
|
-
if (isClient && !Array.from(inputs).includes(document.activeElement)) {
|
|
65368
|
+
if (isClient$1 && !Array.from(inputs).includes(document.activeElement)) {
|
|
65275
65369
|
select.setSelected();
|
|
65276
65370
|
}
|
|
65277
65371
|
}, { flush: "post", immediate: true });
|
|
@@ -66785,7 +66879,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
66785
66879
|
});
|
|
66786
66880
|
}
|
|
66787
66881
|
}
|
|
66788
|
-
return doUpload(Object.assign(file, {
|
|
66882
|
+
return doUpload(Object.assign(file, {
|
|
66789
66883
|
uid: rawFile.uid
|
|
66790
66884
|
}), beforeData);
|
|
66791
66885
|
};
|
|
@@ -66839,7 +66933,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
66839
66933
|
requests.value[uid] = request;
|
|
66840
66934
|
if (request instanceof Promise) {
|
|
66841
66935
|
request.then(options.onSuccess, options.onError);
|
|
66842
|
-
} return request;
|
|
66936
|
+
} return request;
|
|
66843
66937
|
};
|
|
66844
66938
|
const handleChange = (e) => {
|
|
66845
66939
|
const files = e.target.files;
|
|
@@ -66866,8 +66960,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
66866
66960
|
};
|
|
66867
66961
|
expose({
|
|
66868
66962
|
abort,
|
|
66869
|
-
upload,
|
|
66870
|
-
inputClick: handleClick
|
|
66963
|
+
upload,
|
|
66964
|
+
inputClick: handleClick
|
|
66871
66965
|
});
|
|
66872
66966
|
return (_ctx, _cache) => {
|
|
66873
66967
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -66924,10 +67018,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
66924
67018
|
var _a;
|
|
66925
67019
|
(_a = uploadRef.value) == null ? void 0 : _a.abort(file);
|
|
66926
67020
|
}
|
|
66927
|
-
function inputClick() {
|
|
66928
|
-
var _a;
|
|
66929
|
-
(_a = uploadRef.value) == null ? void 0 : _a.inputClick();
|
|
66930
|
-
}
|
|
67021
|
+
function inputClick() {
|
|
67022
|
+
var _a;
|
|
67023
|
+
(_a = uploadRef.value) == null ? void 0 : _a.inputClick();
|
|
67024
|
+
}
|
|
66931
67025
|
function clearFiles(states = ["ready", "uploading", "success", "fail"]) {
|
|
66932
67026
|
uploadFiles.value = uploadFiles.value.filter((row) => !states.includes(row.status));
|
|
66933
67027
|
}
|
|
@@ -67002,20 +67096,20 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
67002
67096
|
}
|
|
67003
67097
|
};
|
|
67004
67098
|
function submit() {
|
|
67005
|
-
// uploadFiles.value.filter(({ status }) => status === "ready").forEach(({ raw }) => {
|
|
67006
|
-
// var _a;
|
|
67007
|
-
// return raw && ((_a = uploadRef.value) == null ? void 0 : _a.upload(raw));
|
|
67008
|
-
// });
|
|
67009
|
-
|
|
67010
|
-
return Promise.all(uploadFiles.value.filter(({ status }) => status === "ready").map(async ({ raw }) => {
|
|
67099
|
+
// uploadFiles.value.filter(({ status }) => status === "ready").forEach(({ raw }) => {
|
|
67100
|
+
// var _a;
|
|
67101
|
+
// return raw && ((_a = uploadRef.value) == null ? void 0 : _a.upload(raw));
|
|
67102
|
+
// });
|
|
67103
|
+
|
|
67104
|
+
return Promise.all(uploadFiles.value.filter(({ status }) => status === "ready").map(async ({ raw }) => {
|
|
67011
67105
|
var _a;
|
|
67012
|
-
return (
|
|
67013
|
-
raw &&
|
|
67014
|
-
((_a = uploadRef.value) == null
|
|
67015
|
-
? void 0
|
|
67016
|
-
: await _a.upload(raw).catch(err => Promise.resolve(err)))
|
|
67017
|
-
);
|
|
67018
|
-
}));
|
|
67106
|
+
return (
|
|
67107
|
+
raw &&
|
|
67108
|
+
((_a = uploadRef.value) == null
|
|
67109
|
+
? void 0
|
|
67110
|
+
: await _a.upload(raw).catch(err => Promise.resolve(err)))
|
|
67111
|
+
);
|
|
67112
|
+
}));
|
|
67019
67113
|
}
|
|
67020
67114
|
vue.watch(() => props.listType, (val) => {
|
|
67021
67115
|
if (val !== "picture-card" && val !== "picture") {
|
|
@@ -67042,7 +67136,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
67042
67136
|
return {
|
|
67043
67137
|
uploadFiles,
|
|
67044
67138
|
abort,
|
|
67045
|
-
inputClick,
|
|
67139
|
+
inputClick,
|
|
67046
67140
|
clearFiles,
|
|
67047
67141
|
handleError,
|
|
67048
67142
|
handleProgress,
|
|
@@ -67066,7 +67160,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
67066
67160
|
const uploadRef = vue.shallowRef();
|
|
67067
67161
|
const {
|
|
67068
67162
|
abort,
|
|
67069
|
-
inputClick,
|
|
67163
|
+
inputClick,
|
|
67070
67164
|
submit,
|
|
67071
67165
|
clearFiles,
|
|
67072
67166
|
uploadFiles,
|
|
@@ -67095,7 +67189,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
67095
67189
|
});
|
|
67096
67190
|
expose({
|
|
67097
67191
|
abort,
|
|
67098
|
-
inputClick,
|
|
67192
|
+
inputClick,
|
|
67099
67193
|
submit,
|
|
67100
67194
|
clearFiles,
|
|
67101
67195
|
handleStart,
|
|
@@ -67544,7 +67638,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
67544
67638
|
const posInfo = vue.ref(null);
|
|
67545
67639
|
const getTargetEl = () => {
|
|
67546
67640
|
let targetEl;
|
|
67547
|
-
if (isString$
|
|
67641
|
+
if (isString$2(target.value)) {
|
|
67548
67642
|
targetEl = document.querySelector(target.value);
|
|
67549
67643
|
} else if (isFunction$2(target.value)) {
|
|
67550
67644
|
targetEl = target.value();
|
|
@@ -67656,7 +67750,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
67656
67750
|
return _middleware;
|
|
67657
67751
|
});
|
|
67658
67752
|
const update = async () => {
|
|
67659
|
-
if (!isClient)
|
|
67753
|
+
if (!isClient$1)
|
|
67660
67754
|
return;
|
|
67661
67755
|
const referenceEl = vue.unref(referenceRef);
|
|
67662
67756
|
const contentEl = vue.unref(contentRef);
|
|
@@ -68413,8 +68507,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
68413
68507
|
}
|
|
68414
68508
|
});
|
|
68415
68509
|
const anchorEmits = {
|
|
68416
|
-
change: (href) => isString$
|
|
68417
|
-
click: (e, href) => e instanceof MouseEvent && (isString$
|
|
68510
|
+
change: (href) => isString$2(href),
|
|
68511
|
+
click: (e, href) => e instanceof MouseEvent && (isString$2(href) || isUndefined(href))
|
|
68418
68512
|
};
|
|
68419
68513
|
|
|
68420
68514
|
const anchorKey = Symbol("anchor");
|
|
@@ -68529,7 +68623,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
68529
68623
|
containerEl.value = el;
|
|
68530
68624
|
}
|
|
68531
68625
|
};
|
|
68532
|
-
useEventListener(containerEl, "scroll", handleScroll);
|
|
68626
|
+
useEventListener$1(containerEl, "scroll", handleScroll);
|
|
68533
68627
|
const markerStyle = vue.computed(() => {
|
|
68534
68628
|
if (!anchorRef.value || !markerRef.value || !currentAnchor.value)
|
|
68535
68629
|
return {};
|
|
@@ -68711,8 +68805,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
68711
68805
|
...useAriaProps(["ariaLabel"])
|
|
68712
68806
|
});
|
|
68713
68807
|
const segmentedEmits = {
|
|
68714
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
68715
|
-
[CHANGE_EVENT]: (val) => isString$
|
|
68808
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$2(val) || isNumber(val) || isBoolean(val),
|
|
68809
|
+
[CHANGE_EVENT]: (val) => isString$2(val) || isNumber(val) || isBoolean(val)
|
|
68716
68810
|
};
|
|
68717
68811
|
|
|
68718
68812
|
const __default__$G = vue.defineComponent({
|
|
@@ -69021,9 +69115,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
69021
69115
|
type: definePropType([String, Array]),
|
|
69022
69116
|
default: "@",
|
|
69023
69117
|
validator: (val) => {
|
|
69024
|
-
if (isString$
|
|
69118
|
+
if (isString$2(val))
|
|
69025
69119
|
return val.length === 1;
|
|
69026
|
-
return val.every((v) => isString$
|
|
69120
|
+
return val.every((v) => isString$2(v) && v.length === 1);
|
|
69027
69121
|
}
|
|
69028
69122
|
},
|
|
69029
69123
|
split: {
|
|
@@ -69065,9 +69159,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
69065
69159
|
}
|
|
69066
69160
|
});
|
|
69067
69161
|
const mentionEmits = {
|
|
69068
|
-
[UPDATE_MODEL_EVENT]: (value) => isString$
|
|
69069
|
-
search: (pattern, prefix) => isString$
|
|
69070
|
-
select: (option, prefix) => isString$
|
|
69162
|
+
[UPDATE_MODEL_EVENT]: (value) => isString$2(value),
|
|
69163
|
+
search: (pattern, prefix) => isString$2(pattern) && isString$2(prefix),
|
|
69164
|
+
select: (option, prefix) => isString$2(option.value) && isString$2(prefix),
|
|
69071
69165
|
focus: (evt) => evt instanceof FocusEvent,
|
|
69072
69166
|
blur: (evt) => evt instanceof FocusEvent
|
|
69073
69167
|
};
|
|
@@ -69083,7 +69177,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
69083
69177
|
ariaLabel: String
|
|
69084
69178
|
});
|
|
69085
69179
|
const mentionDropdownEmits = {
|
|
69086
|
-
select: (option) => isString$
|
|
69180
|
+
select: (option) => isString$2(option.value)
|
|
69087
69181
|
};
|
|
69088
69182
|
|
|
69089
69183
|
const __default__$F = vue.defineComponent({
|
|
@@ -69756,7 +69850,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
69756
69850
|
|
|
69757
69851
|
let fullscreenInstance = void 0;
|
|
69758
69852
|
const Loading = function(options = {}) {
|
|
69759
|
-
if (!isClient)
|
|
69853
|
+
if (!isClient$1)
|
|
69760
69854
|
return void 0;
|
|
69761
69855
|
const resolved = resolveOptions(options);
|
|
69762
69856
|
if (resolved.fullscreen && fullscreenInstance) {
|
|
@@ -69791,7 +69885,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
69791
69885
|
const resolveOptions = (options) => {
|
|
69792
69886
|
var _a, _b, _c, _d;
|
|
69793
69887
|
let target;
|
|
69794
|
-
if (isString$
|
|
69888
|
+
if (isString$2(options.target)) {
|
|
69795
69889
|
target = (_a = document.querySelector(options.target)) != null ? _a : document.body;
|
|
69796
69890
|
} else {
|
|
69797
69891
|
target = options.target || document.body;
|
|
@@ -69856,7 +69950,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
69856
69950
|
const vm = binding.instance;
|
|
69857
69951
|
const getBindingProp = (key) => isObject$1(binding.value) ? binding.value[key] : void 0;
|
|
69858
69952
|
const resolveExpression = (key) => {
|
|
69859
|
-
const data = isString$
|
|
69953
|
+
const data = isString$2(key) && (vm == null ? void 0 : vm[key]) || key;
|
|
69860
69954
|
if (data)
|
|
69861
69955
|
return vue.ref(data);
|
|
69862
69956
|
else
|
|
@@ -69939,7 +70033,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
69939
70033
|
zIndex: 0,
|
|
69940
70034
|
grouping: false,
|
|
69941
70035
|
repeatNum: 1,
|
|
69942
|
-
appendTo: isClient ? document.body : void 0
|
|
70036
|
+
appendTo: isClient$1 ? document.body : void 0
|
|
69943
70037
|
});
|
|
69944
70038
|
const messageProps = buildProps({
|
|
69945
70039
|
customClass: {
|
|
@@ -70089,7 +70183,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
70089
70183
|
clearTimer();
|
|
70090
70184
|
startTimer();
|
|
70091
70185
|
});
|
|
70092
|
-
useEventListener(document, "keydown", keydown);
|
|
70186
|
+
useEventListener$1(document, "keydown", keydown);
|
|
70093
70187
|
useResizeObserver(messageRef, () => {
|
|
70094
70188
|
height.value = messageRef.value.getBoundingClientRect().height;
|
|
70095
70189
|
});
|
|
@@ -70173,14 +70267,14 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
70173
70267
|
|
|
70174
70268
|
let seed = 1;
|
|
70175
70269
|
const normalizeOptions = (params) => {
|
|
70176
|
-
const options = !params || isString$
|
|
70270
|
+
const options = !params || isString$2(params) || vue.isVNode(params) || isFunction$2(params) ? { message: params } : params;
|
|
70177
70271
|
const normalized = {
|
|
70178
70272
|
...messageDefaults,
|
|
70179
70273
|
...options
|
|
70180
70274
|
};
|
|
70181
70275
|
if (!normalized.appendTo) {
|
|
70182
70276
|
normalized.appendTo = document.body;
|
|
70183
|
-
} else if (isString$
|
|
70277
|
+
} else if (isString$2(normalized.appendTo)) {
|
|
70184
70278
|
let appendTo = document.querySelector(normalized.appendTo);
|
|
70185
70279
|
if (!isElement$1(appendTo)) {
|
|
70186
70280
|
debugWarn("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
@@ -70247,7 +70341,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
70247
70341
|
return instance;
|
|
70248
70342
|
};
|
|
70249
70343
|
const message = (options = {}, context) => {
|
|
70250
|
-
if (!isClient)
|
|
70344
|
+
if (!isClient$1)
|
|
70251
70345
|
return { close: () => void 0 };
|
|
70252
70346
|
const normalized = normalizeOptions(options);
|
|
70253
70347
|
if (normalized.grouping && instances.length) {
|
|
@@ -70765,7 +70859,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
70765
70859
|
const getAppendToElement = (props) => {
|
|
70766
70860
|
let appendTo = document.body;
|
|
70767
70861
|
if (props.appendTo) {
|
|
70768
|
-
if (isString$
|
|
70862
|
+
if (isString$2(props.appendTo)) {
|
|
70769
70863
|
appendTo = document.querySelector(props.appendTo);
|
|
70770
70864
|
}
|
|
70771
70865
|
if (isElement$1(props.appendTo)) {
|
|
@@ -70829,10 +70923,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
70829
70923
|
return vm;
|
|
70830
70924
|
};
|
|
70831
70925
|
function MessageBox(options, appContext = null) {
|
|
70832
|
-
if (!isClient)
|
|
70926
|
+
if (!isClient$1)
|
|
70833
70927
|
return Promise.reject();
|
|
70834
70928
|
let callback;
|
|
70835
|
-
if (isString$
|
|
70929
|
+
if (isString$2(options) || vue.isVNode(options)) {
|
|
70836
70930
|
options = {
|
|
70837
70931
|
message: options
|
|
70838
70932
|
};
|
|
@@ -70898,112 +70992,112 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
70898
70992
|
};
|
|
70899
70993
|
const ElMessageBox = _MessageBox;
|
|
70900
70994
|
|
|
70901
|
-
/******************************************************************************
|
|
70902
|
-
Copyright (c) Microsoft Corporation.
|
|
70903
|
-
|
|
70904
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
70905
|
-
purpose with or without fee is hereby granted.
|
|
70906
|
-
|
|
70907
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
70908
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
70909
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
70910
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
70911
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
70912
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
70913
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
70914
|
-
***************************************************************************** */
|
|
70915
|
-
|
|
70916
|
-
var __assign = function() {
|
|
70917
|
-
|
|
70918
|
-
|
|
70919
|
-
|
|
70920
|
-
|
|
70921
|
-
|
|
70922
|
-
|
|
70923
|
-
|
|
70924
|
-
|
|
70925
|
-
};
|
|
70926
|
-
|
|
70927
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
70928
|
-
|
|
70929
|
-
|
|
70930
|
-
|
|
70931
|
-
|
|
70932
|
-
|
|
70933
|
-
|
|
70934
|
-
|
|
70935
|
-
}
|
|
70936
|
-
|
|
70937
|
-
function __generator(thisArg, body) {
|
|
70938
|
-
|
|
70939
|
-
|
|
70940
|
-
|
|
70941
|
-
|
|
70942
|
-
|
|
70943
|
-
|
|
70944
|
-
|
|
70945
|
-
|
|
70946
|
-
|
|
70947
|
-
|
|
70948
|
-
|
|
70949
|
-
|
|
70950
|
-
|
|
70951
|
-
|
|
70952
|
-
|
|
70953
|
-
|
|
70954
|
-
|
|
70955
|
-
|
|
70956
|
-
|
|
70957
|
-
|
|
70958
|
-
|
|
70959
|
-
|
|
70960
|
-
|
|
70961
|
-
|
|
70962
|
-
|
|
70963
|
-
}
|
|
70964
|
-
|
|
70965
|
-
function __values(o) {
|
|
70966
|
-
|
|
70967
|
-
|
|
70968
|
-
|
|
70969
|
-
|
|
70970
|
-
|
|
70971
|
-
|
|
70972
|
-
|
|
70973
|
-
|
|
70974
|
-
|
|
70975
|
-
}
|
|
70976
|
-
|
|
70977
|
-
function __read(o, n) {
|
|
70978
|
-
|
|
70979
|
-
|
|
70980
|
-
|
|
70981
|
-
|
|
70982
|
-
|
|
70983
|
-
|
|
70984
|
-
|
|
70985
|
-
|
|
70986
|
-
|
|
70987
|
-
|
|
70988
|
-
|
|
70989
|
-
|
|
70990
|
-
|
|
70991
|
-
|
|
70992
|
-
}
|
|
70993
|
-
|
|
70994
|
-
function __spreadArray(to, from, pack) {
|
|
70995
|
-
|
|
70996
|
-
|
|
70997
|
-
|
|
70998
|
-
|
|
70999
|
-
|
|
71000
|
-
|
|
71001
|
-
|
|
71002
|
-
}
|
|
71003
|
-
|
|
71004
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
71005
|
-
|
|
71006
|
-
|
|
70995
|
+
/******************************************************************************
|
|
70996
|
+
Copyright (c) Microsoft Corporation.
|
|
70997
|
+
|
|
70998
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
70999
|
+
purpose with or without fee is hereby granted.
|
|
71000
|
+
|
|
71001
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
71002
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
71003
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
71004
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
71005
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
71006
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
71007
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
71008
|
+
***************************************************************************** */
|
|
71009
|
+
|
|
71010
|
+
var __assign = function() {
|
|
71011
|
+
__assign = Object.assign || function __assign(t) {
|
|
71012
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
71013
|
+
s = arguments[i];
|
|
71014
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
71015
|
+
}
|
|
71016
|
+
return t;
|
|
71017
|
+
};
|
|
71018
|
+
return __assign.apply(this, arguments);
|
|
71019
|
+
};
|
|
71020
|
+
|
|
71021
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
71022
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
71023
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
71024
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
71025
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
71026
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
71027
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
71028
|
+
});
|
|
71029
|
+
}
|
|
71030
|
+
|
|
71031
|
+
function __generator(thisArg, body) {
|
|
71032
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
71033
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
71034
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
71035
|
+
function step(op) {
|
|
71036
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
71037
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
71038
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
71039
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
71040
|
+
switch (op[0]) {
|
|
71041
|
+
case 0: case 1: t = op; break;
|
|
71042
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
71043
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
71044
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
71045
|
+
default:
|
|
71046
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
71047
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
71048
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
71049
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
71050
|
+
if (t[2]) _.ops.pop();
|
|
71051
|
+
_.trys.pop(); continue;
|
|
71052
|
+
}
|
|
71053
|
+
op = body.call(thisArg, _);
|
|
71054
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
71055
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
71056
|
+
}
|
|
71057
|
+
}
|
|
71058
|
+
|
|
71059
|
+
function __values(o) {
|
|
71060
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
71061
|
+
if (m) return m.call(o);
|
|
71062
|
+
if (o && typeof o.length === "number") return {
|
|
71063
|
+
next: function () {
|
|
71064
|
+
if (o && i >= o.length) o = void 0;
|
|
71065
|
+
return { value: o && o[i++], done: !o };
|
|
71066
|
+
}
|
|
71067
|
+
};
|
|
71068
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
71069
|
+
}
|
|
71070
|
+
|
|
71071
|
+
function __read(o, n) {
|
|
71072
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
71073
|
+
if (!m) return o;
|
|
71074
|
+
var i = m.call(o), r, ar = [], e;
|
|
71075
|
+
try {
|
|
71076
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
71077
|
+
}
|
|
71078
|
+
catch (error) { e = { error: error }; }
|
|
71079
|
+
finally {
|
|
71080
|
+
try {
|
|
71081
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
71082
|
+
}
|
|
71083
|
+
finally { if (e) throw e.error; }
|
|
71084
|
+
}
|
|
71085
|
+
return ar;
|
|
71086
|
+
}
|
|
71087
|
+
|
|
71088
|
+
function __spreadArray(to, from, pack) {
|
|
71089
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
71090
|
+
if (ar || !(i in from)) {
|
|
71091
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
71092
|
+
ar[i] = from[i];
|
|
71093
|
+
}
|
|
71094
|
+
}
|
|
71095
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
71096
|
+
}
|
|
71097
|
+
|
|
71098
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
71099
|
+
var e = new Error(message);
|
|
71100
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
71007
71101
|
};
|
|
71008
71102
|
|
|
71009
71103
|
var __default__$C = {
|
|
@@ -71296,6 +71390,128 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
71296
71390
|
|
|
71297
71391
|
script$C.__file = "packages/base/image/image.vue";
|
|
71298
71392
|
|
|
71393
|
+
var _a;
|
|
71394
|
+
const isClient = typeof window !== "undefined";
|
|
71395
|
+
const isString = (val) => typeof val === "string";
|
|
71396
|
+
const noop = () => {
|
|
71397
|
+
};
|
|
71398
|
+
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
71399
|
+
|
|
71400
|
+
function resolveUnref(r) {
|
|
71401
|
+
return typeof r === "function" ? r() : vue.unref(r);
|
|
71402
|
+
}
|
|
71403
|
+
function identity(arg) {
|
|
71404
|
+
return arg;
|
|
71405
|
+
}
|
|
71406
|
+
|
|
71407
|
+
function tryOnScopeDispose(fn) {
|
|
71408
|
+
if (vue.getCurrentScope()) {
|
|
71409
|
+
vue.onScopeDispose(fn);
|
|
71410
|
+
return true;
|
|
71411
|
+
}
|
|
71412
|
+
return false;
|
|
71413
|
+
}
|
|
71414
|
+
|
|
71415
|
+
function unrefElement(elRef) {
|
|
71416
|
+
var _a;
|
|
71417
|
+
const plain = resolveUnref(elRef);
|
|
71418
|
+
return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
|
|
71419
|
+
}
|
|
71420
|
+
|
|
71421
|
+
const defaultWindow = isClient ? window : void 0;
|
|
71422
|
+
|
|
71423
|
+
function useEventListener(...args) {
|
|
71424
|
+
let target;
|
|
71425
|
+
let event;
|
|
71426
|
+
let listener;
|
|
71427
|
+
let options;
|
|
71428
|
+
if (isString(args[0])) {
|
|
71429
|
+
[event, listener, options] = args;
|
|
71430
|
+
target = defaultWindow;
|
|
71431
|
+
} else {
|
|
71432
|
+
[target, event, listener, options] = args;
|
|
71433
|
+
}
|
|
71434
|
+
if (!target)
|
|
71435
|
+
return noop;
|
|
71436
|
+
let cleanup = noop;
|
|
71437
|
+
const stopWatch = vue.watch(() => unrefElement(target), (el) => {
|
|
71438
|
+
cleanup();
|
|
71439
|
+
if (!el)
|
|
71440
|
+
return;
|
|
71441
|
+
el.addEventListener(event, listener, options);
|
|
71442
|
+
cleanup = () => {
|
|
71443
|
+
el.removeEventListener(event, listener, options);
|
|
71444
|
+
cleanup = noop;
|
|
71445
|
+
};
|
|
71446
|
+
}, { immediate: true, flush: "post" });
|
|
71447
|
+
const stop = () => {
|
|
71448
|
+
stopWatch();
|
|
71449
|
+
cleanup();
|
|
71450
|
+
};
|
|
71451
|
+
tryOnScopeDispose(stop);
|
|
71452
|
+
return stop;
|
|
71453
|
+
}
|
|
71454
|
+
|
|
71455
|
+
const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
71456
|
+
const globalKey = "__vueuse_ssr_handlers__";
|
|
71457
|
+
_global[globalKey] = _global[globalKey] || {};
|
|
71458
|
+
_global[globalKey];
|
|
71459
|
+
|
|
71460
|
+
var SwipeDirection;
|
|
71461
|
+
(function(SwipeDirection2) {
|
|
71462
|
+
SwipeDirection2["UP"] = "UP";
|
|
71463
|
+
SwipeDirection2["RIGHT"] = "RIGHT";
|
|
71464
|
+
SwipeDirection2["DOWN"] = "DOWN";
|
|
71465
|
+
SwipeDirection2["LEFT"] = "LEFT";
|
|
71466
|
+
SwipeDirection2["NONE"] = "NONE";
|
|
71467
|
+
})(SwipeDirection || (SwipeDirection = {}));
|
|
71468
|
+
|
|
71469
|
+
var __defProp = Object.defineProperty;
|
|
71470
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
71471
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
71472
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
71473
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
71474
|
+
var __spreadValues = (a, b) => {
|
|
71475
|
+
for (var prop in b || (b = {}))
|
|
71476
|
+
if (__hasOwnProp.call(b, prop))
|
|
71477
|
+
__defNormalProp(a, prop, b[prop]);
|
|
71478
|
+
if (__getOwnPropSymbols)
|
|
71479
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
71480
|
+
if (__propIsEnum.call(b, prop))
|
|
71481
|
+
__defNormalProp(a, prop, b[prop]);
|
|
71482
|
+
}
|
|
71483
|
+
return a;
|
|
71484
|
+
};
|
|
71485
|
+
const _TransitionPresets = {
|
|
71486
|
+
easeInSine: [0.12, 0, 0.39, 0],
|
|
71487
|
+
easeOutSine: [0.61, 1, 0.88, 1],
|
|
71488
|
+
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
71489
|
+
easeInQuad: [0.11, 0, 0.5, 0],
|
|
71490
|
+
easeOutQuad: [0.5, 1, 0.89, 1],
|
|
71491
|
+
easeInOutQuad: [0.45, 0, 0.55, 1],
|
|
71492
|
+
easeInCubic: [0.32, 0, 0.67, 0],
|
|
71493
|
+
easeOutCubic: [0.33, 1, 0.68, 1],
|
|
71494
|
+
easeInOutCubic: [0.65, 0, 0.35, 1],
|
|
71495
|
+
easeInQuart: [0.5, 0, 0.75, 0],
|
|
71496
|
+
easeOutQuart: [0.25, 1, 0.5, 1],
|
|
71497
|
+
easeInOutQuart: [0.76, 0, 0.24, 1],
|
|
71498
|
+
easeInQuint: [0.64, 0, 0.78, 0],
|
|
71499
|
+
easeOutQuint: [0.22, 1, 0.36, 1],
|
|
71500
|
+
easeInOutQuint: [0.83, 0, 0.17, 1],
|
|
71501
|
+
easeInExpo: [0.7, 0, 0.84, 0],
|
|
71502
|
+
easeOutExpo: [0.16, 1, 0.3, 1],
|
|
71503
|
+
easeInOutExpo: [0.87, 0, 0.13, 1],
|
|
71504
|
+
easeInCirc: [0.55, 0, 1, 0.45],
|
|
71505
|
+
easeOutCirc: [0, 0.55, 0.45, 1],
|
|
71506
|
+
easeInOutCirc: [0.85, 0, 0.15, 1],
|
|
71507
|
+
easeInBack: [0.36, 0, 0.66, -0.56],
|
|
71508
|
+
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
71509
|
+
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
71510
|
+
};
|
|
71511
|
+
__spreadValues({
|
|
71512
|
+
linear: identity
|
|
71513
|
+
}, _TransitionPresets);
|
|
71514
|
+
|
|
71299
71515
|
var _hoisted_1$g = {
|
|
71300
71516
|
key: 0,
|
|
71301
71517
|
style: { "width": "100%", "height": "100%" }
|
|
@@ -72190,6 +72406,14 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
72190
72406
|
var toolTipDefault = vue.ref(null);
|
|
72191
72407
|
var toolTipDefaultContent = vue.ref(null);
|
|
72192
72408
|
var _content = vue.computed(function () { return String(props.content); });
|
|
72409
|
+
var _getTooltipWidthClass = function (cellValue) {
|
|
72410
|
+
if (!cellValue || (cellValue === null || cellValue === void 0 ? void 0 : cellValue.length) < 400)
|
|
72411
|
+
return 'base-tool-tip-400';
|
|
72412
|
+
if ((cellValue === null || cellValue === void 0 ? void 0 : cellValue.length) < 600)
|
|
72413
|
+
return 'base-tool-tip-800';
|
|
72414
|
+
if ((cellValue === null || cellValue === void 0 ? void 0 : cellValue.length) > 600)
|
|
72415
|
+
return 'base-tool-tip-1200';
|
|
72416
|
+
};
|
|
72193
72417
|
var handleMouseMove = function () {
|
|
72194
72418
|
var _a, _b;
|
|
72195
72419
|
if (((_a = toolTipDefault.value) === null || _a === void 0 ? void 0 : _a.tagName) && ((_b = toolTipDefaultContent.value) === null || _b === void 0 ? void 0 : _b.tagName)) {
|
|
@@ -72201,7 +72425,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
72201
72425
|
return function (_ctx, _cache) {
|
|
72202
72426
|
return (vue.openBlock(), vue.createBlock(vue.unref(ElTooltip), vue.mergeProps(__props.useVisible ? { visible: __props.visible } : {}, {
|
|
72203
72427
|
key: _overShow.value ? '1' : '0',
|
|
72204
|
-
"popper-class": __props.popperClass,
|
|
72428
|
+
"popper-class": "".concat(__props.popperClass, " ").concat(_getTooltipWidthClass(vue.unref(_content))),
|
|
72205
72429
|
trigger: __props.trigger,
|
|
72206
72430
|
transition: __props.transition,
|
|
72207
72431
|
disabled: _overShow.value || __props.disabled,
|
|
@@ -76468,13 +76692,15 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76468
76692
|
emits('menuClick', menu);
|
|
76469
76693
|
}
|
|
76470
76694
|
};
|
|
76471
|
-
var onHashChange = function (
|
|
76695
|
+
var onHashChange = function (_route) {
|
|
76472
76696
|
var _a, _b, _c, _d;
|
|
76473
|
-
if (
|
|
76474
|
-
|
|
76697
|
+
if (_route === void 0) { _route = (_c = (_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.appContext) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.globalProperties) === null || _c === void 0 ? void 0 : _c.$route; }
|
|
76698
|
+
// 优先使用meta.parentPath,这种参数路由不会注册到menu中,例如详情页面。如果有该值则使用父级path。
|
|
76699
|
+
activeMenus.value =
|
|
76700
|
+
menusMap.get(((_d = _route === null || _route === void 0 ? void 0 : _route.meta) === null || _d === void 0 ? void 0 : _d.parentPath) || (_route === null || _route === void 0 ? void 0 : _route.path)) || [];
|
|
76475
76701
|
};
|
|
76476
|
-
vue.watch(function () { var _a, _b, _c
|
|
76477
|
-
onHashChange(
|
|
76702
|
+
vue.watch(function () { var _a, _b, _c; return (_c = (_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.appContext) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.globalProperties) === null || _c === void 0 ? void 0 : _c.$route; }, function () {
|
|
76703
|
+
onHashChange();
|
|
76478
76704
|
});
|
|
76479
76705
|
var _b = (function () {
|
|
76480
76706
|
var showSub = vue.ref(false);
|
|
@@ -77619,7 +77845,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77619
77845
|
});
|
|
77620
77846
|
};
|
|
77621
77847
|
var index = {
|
|
77622
|
-
version: '2.0.0-beta.
|
|
77848
|
+
version: '2.0.0-beta.62',
|
|
77623
77849
|
useSetGlobalDefaultProps: useSetGlobalDefaultProps,
|
|
77624
77850
|
/**
|
|
77625
77851
|
* install会调用useSetGlobalDefaultProps
|