@silexlabs/silex-dashboard 1.3.0 → 1.4.1-0
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/_site/js/vue.cjs.js +1 -1
- package/_site/js/vue.cjs.prod.js +1 -1
- package/_site/js/vue.esm-browser.js +485 -309
- package/_site/js/vue.esm-browser.prod.js +9 -6
- package/_site/js/vue.esm-bundler.js +1 -1
- package/_site/js/vue.global.js +485 -309
- package/_site/js/vue.global.prod.js +9 -6
- package/_site/js/vue.runtime.esm-browser.js +372 -205
- package/_site/js/vue.runtime.esm-browser.prod.js +3 -2
- package/_site/js/vue.runtime.esm-bundler.js +1 -1
- package/_site/js/vue.runtime.global.js +372 -205
- package/_site/js/vue.runtime.global.prod.js +3 -2
- package/package.json +2 -3
- package/silex/client-config.js +2 -8
- package/silex/server-config.js +0 -8
- package/tina/tina-lock.json +1 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.5.
|
|
2
|
+
* vue v3.5.22
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
6
|
var Vue = (function (exports) {
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
10
9
|
// @__NO_SIDE_EFFECTS__
|
|
11
10
|
function makeMap(str) {
|
|
12
11
|
const map = /* @__PURE__ */ Object.create(null);
|
|
@@ -59,15 +58,15 @@ var Vue = (function (exports) {
|
|
|
59
58
|
);
|
|
60
59
|
const cacheStringFunction = (fn) => {
|
|
61
60
|
const cache = /* @__PURE__ */ Object.create(null);
|
|
62
|
-
return (str) => {
|
|
61
|
+
return ((str) => {
|
|
63
62
|
const hit = cache[str];
|
|
64
63
|
return hit || (cache[str] = fn(str));
|
|
65
|
-
};
|
|
64
|
+
});
|
|
66
65
|
};
|
|
67
|
-
const camelizeRE =
|
|
66
|
+
const camelizeRE = /-\w/g;
|
|
68
67
|
const camelize = cacheStringFunction(
|
|
69
68
|
(str) => {
|
|
70
|
-
return str.replace(camelizeRE, (
|
|
69
|
+
return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());
|
|
71
70
|
}
|
|
72
71
|
);
|
|
73
72
|
const hyphenateRE = /\B([A-Z])/g;
|
|
@@ -314,6 +313,24 @@ var Vue = (function (exports) {
|
|
|
314
313
|
);
|
|
315
314
|
};
|
|
316
315
|
|
|
316
|
+
function normalizeCssVarValue(value) {
|
|
317
|
+
if (value == null) {
|
|
318
|
+
return "initial";
|
|
319
|
+
}
|
|
320
|
+
if (typeof value === "string") {
|
|
321
|
+
return value === "" ? " " : value;
|
|
322
|
+
}
|
|
323
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
324
|
+
{
|
|
325
|
+
console.warn(
|
|
326
|
+
"[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:",
|
|
327
|
+
value
|
|
328
|
+
);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
return String(value);
|
|
332
|
+
}
|
|
333
|
+
|
|
317
334
|
function warn$2(msg, ...args) {
|
|
318
335
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
319
336
|
}
|
|
@@ -326,6 +343,10 @@ var Vue = (function (exports) {
|
|
|
326
343
|
* @internal
|
|
327
344
|
*/
|
|
328
345
|
this._active = true;
|
|
346
|
+
/**
|
|
347
|
+
* @internal track `on` calls, allow `on` call multiple times
|
|
348
|
+
*/
|
|
349
|
+
this._on = 0;
|
|
329
350
|
/**
|
|
330
351
|
* @internal
|
|
331
352
|
*/
|
|
@@ -396,14 +417,20 @@ var Vue = (function (exports) {
|
|
|
396
417
|
* @internal
|
|
397
418
|
*/
|
|
398
419
|
on() {
|
|
399
|
-
|
|
420
|
+
if (++this._on === 1) {
|
|
421
|
+
this.prevScope = activeEffectScope;
|
|
422
|
+
activeEffectScope = this;
|
|
423
|
+
}
|
|
400
424
|
}
|
|
401
425
|
/**
|
|
402
426
|
* This should only be called on non-detached scopes
|
|
403
427
|
* @internal
|
|
404
428
|
*/
|
|
405
429
|
off() {
|
|
406
|
-
|
|
430
|
+
if (this._on > 0 && --this._on === 0) {
|
|
431
|
+
activeEffectScope = this.prevScope;
|
|
432
|
+
this.prevScope = void 0;
|
|
433
|
+
}
|
|
407
434
|
}
|
|
408
435
|
stop(fromParent) {
|
|
409
436
|
if (this._active) {
|
|
@@ -485,7 +512,7 @@ var Vue = (function (exports) {
|
|
|
485
512
|
}
|
|
486
513
|
resume() {
|
|
487
514
|
if (this.flags & 64) {
|
|
488
|
-
this.flags &=
|
|
515
|
+
this.flags &= -65;
|
|
489
516
|
if (pausedQueueEffects.has(this)) {
|
|
490
517
|
pausedQueueEffects.delete(this);
|
|
491
518
|
this.trigger();
|
|
@@ -525,7 +552,7 @@ var Vue = (function (exports) {
|
|
|
525
552
|
cleanupDeps(this);
|
|
526
553
|
activeSub = prevEffect;
|
|
527
554
|
shouldTrack = prevShouldTrack;
|
|
528
|
-
this.flags &=
|
|
555
|
+
this.flags &= -3;
|
|
529
556
|
}
|
|
530
557
|
}
|
|
531
558
|
stop() {
|
|
@@ -536,7 +563,7 @@ var Vue = (function (exports) {
|
|
|
536
563
|
this.deps = this.depsTail = void 0;
|
|
537
564
|
cleanupEffect(this);
|
|
538
565
|
this.onStop && this.onStop();
|
|
539
|
-
this.flags &=
|
|
566
|
+
this.flags &= -2;
|
|
540
567
|
}
|
|
541
568
|
}
|
|
542
569
|
trigger() {
|
|
@@ -586,7 +613,7 @@ var Vue = (function (exports) {
|
|
|
586
613
|
while (e) {
|
|
587
614
|
const next = e.next;
|
|
588
615
|
e.next = void 0;
|
|
589
|
-
e.flags &=
|
|
616
|
+
e.flags &= -9;
|
|
590
617
|
e = next;
|
|
591
618
|
}
|
|
592
619
|
}
|
|
@@ -597,7 +624,7 @@ var Vue = (function (exports) {
|
|
|
597
624
|
while (e) {
|
|
598
625
|
const next = e.next;
|
|
599
626
|
e.next = void 0;
|
|
600
|
-
e.flags &=
|
|
627
|
+
e.flags &= -9;
|
|
601
628
|
if (e.flags & 1) {
|
|
602
629
|
try {
|
|
603
630
|
;
|
|
@@ -653,17 +680,16 @@ var Vue = (function (exports) {
|
|
|
653
680
|
if (computed.flags & 4 && !(computed.flags & 16)) {
|
|
654
681
|
return;
|
|
655
682
|
}
|
|
656
|
-
computed.flags &=
|
|
683
|
+
computed.flags &= -17;
|
|
657
684
|
if (computed.globalVersion === globalVersion) {
|
|
658
685
|
return;
|
|
659
686
|
}
|
|
660
687
|
computed.globalVersion = globalVersion;
|
|
661
|
-
|
|
662
|
-
computed.flags |= 2;
|
|
663
|
-
if (dep.version > 0 && !computed.isSSR && computed.deps && !isDirty(computed)) {
|
|
664
|
-
computed.flags &= ~2;
|
|
688
|
+
if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) {
|
|
665
689
|
return;
|
|
666
690
|
}
|
|
691
|
+
computed.flags |= 2;
|
|
692
|
+
const dep = computed.dep;
|
|
667
693
|
const prevSub = activeSub;
|
|
668
694
|
const prevShouldTrack = shouldTrack;
|
|
669
695
|
activeSub = computed;
|
|
@@ -672,6 +698,7 @@ var Vue = (function (exports) {
|
|
|
672
698
|
prepareDeps(computed);
|
|
673
699
|
const value = computed.fn(computed._value);
|
|
674
700
|
if (dep.version === 0 || hasChanged(value, computed._value)) {
|
|
701
|
+
computed.flags |= 128;
|
|
675
702
|
computed._value = value;
|
|
676
703
|
dep.version++;
|
|
677
704
|
}
|
|
@@ -682,7 +709,7 @@ var Vue = (function (exports) {
|
|
|
682
709
|
activeSub = prevSub;
|
|
683
710
|
shouldTrack = prevShouldTrack;
|
|
684
711
|
cleanupDeps(computed);
|
|
685
|
-
computed.flags &=
|
|
712
|
+
computed.flags &= -3;
|
|
686
713
|
}
|
|
687
714
|
}
|
|
688
715
|
function removeSub(link, soft = false) {
|
|
@@ -701,7 +728,7 @@ var Vue = (function (exports) {
|
|
|
701
728
|
if (dep.subs === link) {
|
|
702
729
|
dep.subs = prevSub;
|
|
703
730
|
if (!prevSub && dep.computed) {
|
|
704
|
-
dep.computed.flags &=
|
|
731
|
+
dep.computed.flags &= -5;
|
|
705
732
|
for (let l = dep.computed.deps; l; l = l.nextDep) {
|
|
706
733
|
removeSub(l, true);
|
|
707
734
|
}
|
|
@@ -777,6 +804,7 @@ var Vue = (function (exports) {
|
|
|
777
804
|
}
|
|
778
805
|
}
|
|
779
806
|
class Dep {
|
|
807
|
+
// TODO isolatedDeclarations "__v_skip"
|
|
780
808
|
constructor(computed) {
|
|
781
809
|
this.computed = computed;
|
|
782
810
|
this.version = 0;
|
|
@@ -797,6 +825,10 @@ var Vue = (function (exports) {
|
|
|
797
825
|
* Subscriber counter
|
|
798
826
|
*/
|
|
799
827
|
this.sc = 0;
|
|
828
|
+
/**
|
|
829
|
+
* @internal
|
|
830
|
+
*/
|
|
831
|
+
this.__v_skip = true;
|
|
800
832
|
{
|
|
801
833
|
this.subsHead = void 0;
|
|
802
834
|
}
|
|
@@ -1061,7 +1093,7 @@ var Vue = (function (exports) {
|
|
|
1061
1093
|
join(separator) {
|
|
1062
1094
|
return reactiveReadArray(this).join(separator);
|
|
1063
1095
|
},
|
|
1064
|
-
// keys() iterator only reads `length`, no
|
|
1096
|
+
// keys() iterator only reads `length`, no optimization required
|
|
1065
1097
|
lastIndexOf(...args) {
|
|
1066
1098
|
return searchProxy(this, "lastIndexOf", args);
|
|
1067
1099
|
},
|
|
@@ -1113,7 +1145,7 @@ var Vue = (function (exports) {
|
|
|
1113
1145
|
iter._next = iter.next;
|
|
1114
1146
|
iter.next = () => {
|
|
1115
1147
|
const result = iter._next();
|
|
1116
|
-
if (result.
|
|
1148
|
+
if (!result.done) {
|
|
1117
1149
|
result.value = wrapValue(result.value);
|
|
1118
1150
|
}
|
|
1119
1151
|
return result;
|
|
@@ -1240,7 +1272,8 @@ var Vue = (function (exports) {
|
|
|
1240
1272
|
return res;
|
|
1241
1273
|
}
|
|
1242
1274
|
if (isRef(res)) {
|
|
1243
|
-
|
|
1275
|
+
const value = targetIsArray && isIntegerKey(key) ? res : res.value;
|
|
1276
|
+
return isReadonly2 && isObject(value) ? readonly(value) : value;
|
|
1244
1277
|
}
|
|
1245
1278
|
if (isObject(res)) {
|
|
1246
1279
|
return isReadonly2 ? readonly(res) : reactive(res);
|
|
@@ -1262,7 +1295,13 @@ var Vue = (function (exports) {
|
|
|
1262
1295
|
}
|
|
1263
1296
|
if (!isArray(target) && isRef(oldValue) && !isRef(value)) {
|
|
1264
1297
|
if (isOldValueReadonly) {
|
|
1265
|
-
|
|
1298
|
+
{
|
|
1299
|
+
warn$2(
|
|
1300
|
+
`Set operation on key "${String(key)}" failed: target is readonly.`,
|
|
1301
|
+
target[key]
|
|
1302
|
+
);
|
|
1303
|
+
}
|
|
1304
|
+
return true;
|
|
1266
1305
|
} else {
|
|
1267
1306
|
oldValue.value = value;
|
|
1268
1307
|
return true;
|
|
@@ -1407,7 +1446,7 @@ var Vue = (function (exports) {
|
|
|
1407
1446
|
get size() {
|
|
1408
1447
|
const target = this["__v_raw"];
|
|
1409
1448
|
!readonly && track(toRaw(target), "iterate", ITERATE_KEY);
|
|
1410
|
-
return
|
|
1449
|
+
return target.size;
|
|
1411
1450
|
},
|
|
1412
1451
|
has(key) {
|
|
1413
1452
|
const target = this["__v_raw"];
|
|
@@ -1634,14 +1673,14 @@ var Vue = (function (exports) {
|
|
|
1634
1673
|
if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
|
|
1635
1674
|
return target;
|
|
1636
1675
|
}
|
|
1637
|
-
const existingProxy = proxyMap.get(target);
|
|
1638
|
-
if (existingProxy) {
|
|
1639
|
-
return existingProxy;
|
|
1640
|
-
}
|
|
1641
1676
|
const targetType = getTargetType(target);
|
|
1642
1677
|
if (targetType === 0 /* INVALID */) {
|
|
1643
1678
|
return target;
|
|
1644
1679
|
}
|
|
1680
|
+
const existingProxy = proxyMap.get(target);
|
|
1681
|
+
if (existingProxy) {
|
|
1682
|
+
return existingProxy;
|
|
1683
|
+
}
|
|
1645
1684
|
const proxy = new Proxy(
|
|
1646
1685
|
target,
|
|
1647
1686
|
targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
|
|
@@ -2064,11 +2103,11 @@ var Vue = (function (exports) {
|
|
|
2064
2103
|
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
2065
2104
|
boundCleanup
|
|
2066
2105
|
];
|
|
2106
|
+
oldValue = newValue;
|
|
2067
2107
|
call ? call(cb, 3, args) : (
|
|
2068
2108
|
// @ts-expect-error
|
|
2069
2109
|
cb(...args)
|
|
2070
2110
|
);
|
|
2071
|
-
oldValue = newValue;
|
|
2072
2111
|
} finally {
|
|
2073
2112
|
activeWatcher = currentWatcher;
|
|
2074
2113
|
}
|
|
@@ -2118,11 +2157,11 @@ var Vue = (function (exports) {
|
|
|
2118
2157
|
if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
|
|
2119
2158
|
return value;
|
|
2120
2159
|
}
|
|
2121
|
-
seen = seen || /* @__PURE__ */ new
|
|
2122
|
-
if (seen.
|
|
2160
|
+
seen = seen || /* @__PURE__ */ new Map();
|
|
2161
|
+
if ((seen.get(value) || 0) >= depth) {
|
|
2123
2162
|
return value;
|
|
2124
2163
|
}
|
|
2125
|
-
seen.
|
|
2164
|
+
seen.set(value, depth);
|
|
2126
2165
|
depth--;
|
|
2127
2166
|
if (isRef(value)) {
|
|
2128
2167
|
traverse(value.value, depth, seen);
|
|
@@ -2485,11 +2524,11 @@ var Vue = (function (exports) {
|
|
|
2485
2524
|
queue.splice(i, 1);
|
|
2486
2525
|
i--;
|
|
2487
2526
|
if (cb.flags & 4) {
|
|
2488
|
-
cb.flags &=
|
|
2527
|
+
cb.flags &= -2;
|
|
2489
2528
|
}
|
|
2490
2529
|
cb();
|
|
2491
2530
|
if (!(cb.flags & 4)) {
|
|
2492
|
-
cb.flags &=
|
|
2531
|
+
cb.flags &= -2;
|
|
2493
2532
|
}
|
|
2494
2533
|
}
|
|
2495
2534
|
}
|
|
@@ -2514,10 +2553,10 @@ var Vue = (function (exports) {
|
|
|
2514
2553
|
continue;
|
|
2515
2554
|
}
|
|
2516
2555
|
if (cb.flags & 4) {
|
|
2517
|
-
cb.flags &=
|
|
2556
|
+
cb.flags &= -2;
|
|
2518
2557
|
}
|
|
2519
2558
|
if (!(cb.flags & 8)) cb();
|
|
2520
|
-
cb.flags &=
|
|
2559
|
+
cb.flags &= -2;
|
|
2521
2560
|
}
|
|
2522
2561
|
activePostFlushCbs = null;
|
|
2523
2562
|
postFlushIndex = 0;
|
|
@@ -2553,7 +2592,7 @@ var Vue = (function (exports) {
|
|
|
2553
2592
|
for (; flushIndex < queue.length; flushIndex++) {
|
|
2554
2593
|
const job = queue[flushIndex];
|
|
2555
2594
|
if (job) {
|
|
2556
|
-
job.flags &=
|
|
2595
|
+
job.flags &= -2;
|
|
2557
2596
|
}
|
|
2558
2597
|
}
|
|
2559
2598
|
flushIndex = -1;
|
|
@@ -2629,7 +2668,9 @@ var Vue = (function (exports) {
|
|
|
2629
2668
|
}
|
|
2630
2669
|
instance.renderCache = [];
|
|
2631
2670
|
isHmrUpdating = true;
|
|
2632
|
-
instance.
|
|
2671
|
+
if (!(instance.job.flags & 8)) {
|
|
2672
|
+
instance.update();
|
|
2673
|
+
}
|
|
2633
2674
|
isHmrUpdating = false;
|
|
2634
2675
|
});
|
|
2635
2676
|
}
|
|
@@ -2659,10 +2700,12 @@ var Vue = (function (exports) {
|
|
|
2659
2700
|
dirtyInstances.delete(instance);
|
|
2660
2701
|
} else if (instance.parent) {
|
|
2661
2702
|
queueJob(() => {
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2703
|
+
if (!(instance.job.flags & 8)) {
|
|
2704
|
+
isHmrUpdating = true;
|
|
2705
|
+
instance.parent.update();
|
|
2706
|
+
isHmrUpdating = false;
|
|
2707
|
+
dirtyInstances.delete(instance);
|
|
2708
|
+
}
|
|
2666
2709
|
});
|
|
2667
2710
|
} else if (instance.appContext.reload) {
|
|
2668
2711
|
instance.appContext.reload();
|
|
@@ -2766,7 +2809,6 @@ var Vue = (function (exports) {
|
|
|
2766
2809
|
_devtoolsComponentRemoved(component);
|
|
2767
2810
|
}
|
|
2768
2811
|
};
|
|
2769
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
2770
2812
|
// @__NO_SIDE_EFFECTS__
|
|
2771
2813
|
function createDevtoolsComponentHook(hook) {
|
|
2772
2814
|
return (component) => {
|
|
@@ -2952,9 +2994,6 @@ var Vue = (function (exports) {
|
|
|
2952
2994
|
insert(mainAnchor, container, anchor);
|
|
2953
2995
|
const mount = (container2, anchor2) => {
|
|
2954
2996
|
if (shapeFlag & 16) {
|
|
2955
|
-
if (parentComponent && parentComponent.isCE) {
|
|
2956
|
-
parentComponent.ce._teleportTarget = container2;
|
|
2957
|
-
}
|
|
2958
2997
|
mountChildren(
|
|
2959
2998
|
children,
|
|
2960
2999
|
container2,
|
|
@@ -2976,6 +3015,9 @@ var Vue = (function (exports) {
|
|
|
2976
3015
|
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
2977
3016
|
namespace = "mathml";
|
|
2978
3017
|
}
|
|
3018
|
+
if (parentComponent && parentComponent.isCE) {
|
|
3019
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
3020
|
+
}
|
|
2979
3021
|
if (!disabled) {
|
|
2980
3022
|
mount(target, targetAnchor);
|
|
2981
3023
|
updateCssVars(n2, false);
|
|
@@ -2993,15 +3035,16 @@ var Vue = (function (exports) {
|
|
|
2993
3035
|
updateCssVars(n2, true);
|
|
2994
3036
|
}
|
|
2995
3037
|
if (isTeleportDeferred(n2.props)) {
|
|
3038
|
+
n2.el.__isMounted = false;
|
|
2996
3039
|
queuePostRenderEffect(() => {
|
|
2997
3040
|
mountToTarget();
|
|
2998
|
-
n2.el.__isMounted
|
|
3041
|
+
delete n2.el.__isMounted;
|
|
2999
3042
|
}, parentSuspense);
|
|
3000
3043
|
} else {
|
|
3001
3044
|
mountToTarget();
|
|
3002
3045
|
}
|
|
3003
3046
|
} else {
|
|
3004
|
-
if (isTeleportDeferred(n2.props) &&
|
|
3047
|
+
if (isTeleportDeferred(n2.props) && n1.el.__isMounted === false) {
|
|
3005
3048
|
queuePostRenderEffect(() => {
|
|
3006
3049
|
TeleportImpl.process(
|
|
3007
3050
|
n1,
|
|
@@ -3015,7 +3058,6 @@ var Vue = (function (exports) {
|
|
|
3015
3058
|
optimized,
|
|
3016
3059
|
internals
|
|
3017
3060
|
);
|
|
3018
|
-
delete n1.el.__isMounted;
|
|
3019
3061
|
}, parentSuspense);
|
|
3020
3062
|
return;
|
|
3021
3063
|
}
|
|
@@ -3042,7 +3084,7 @@ var Vue = (function (exports) {
|
|
|
3042
3084
|
namespace,
|
|
3043
3085
|
slotScopeIds
|
|
3044
3086
|
);
|
|
3045
|
-
traverseStaticChildren(n1, n2,
|
|
3087
|
+
traverseStaticChildren(n1, n2, false);
|
|
3046
3088
|
} else if (!optimized) {
|
|
3047
3089
|
patchChildren(
|
|
3048
3090
|
n1,
|
|
@@ -3164,26 +3206,34 @@ var Vue = (function (exports) {
|
|
|
3164
3206
|
function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, {
|
|
3165
3207
|
o: { nextSibling, parentNode, querySelector, insert, createText }
|
|
3166
3208
|
}, hydrateChildren) {
|
|
3209
|
+
function hydrateDisabledTeleport(node2, vnode2, targetStart, targetAnchor) {
|
|
3210
|
+
vnode2.anchor = hydrateChildren(
|
|
3211
|
+
nextSibling(node2),
|
|
3212
|
+
vnode2,
|
|
3213
|
+
parentNode(node2),
|
|
3214
|
+
parentComponent,
|
|
3215
|
+
parentSuspense,
|
|
3216
|
+
slotScopeIds,
|
|
3217
|
+
optimized
|
|
3218
|
+
);
|
|
3219
|
+
vnode2.targetStart = targetStart;
|
|
3220
|
+
vnode2.targetAnchor = targetAnchor;
|
|
3221
|
+
}
|
|
3167
3222
|
const target = vnode.target = resolveTarget(
|
|
3168
3223
|
vnode.props,
|
|
3169
3224
|
querySelector
|
|
3170
3225
|
);
|
|
3226
|
+
const disabled = isTeleportDisabled(vnode.props);
|
|
3171
3227
|
if (target) {
|
|
3172
|
-
const disabled = isTeleportDisabled(vnode.props);
|
|
3173
3228
|
const targetNode = target._lpa || target.firstChild;
|
|
3174
3229
|
if (vnode.shapeFlag & 16) {
|
|
3175
3230
|
if (disabled) {
|
|
3176
|
-
|
|
3177
|
-
|
|
3231
|
+
hydrateDisabledTeleport(
|
|
3232
|
+
node,
|
|
3178
3233
|
vnode,
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
parentSuspense,
|
|
3182
|
-
slotScopeIds,
|
|
3183
|
-
optimized
|
|
3234
|
+
targetNode,
|
|
3235
|
+
targetNode && nextSibling(targetNode)
|
|
3184
3236
|
);
|
|
3185
|
-
vnode.targetStart = targetNode;
|
|
3186
|
-
vnode.targetAnchor = targetNode && nextSibling(targetNode);
|
|
3187
3237
|
} else {
|
|
3188
3238
|
vnode.anchor = nextSibling(node);
|
|
3189
3239
|
let targetAnchor = targetNode;
|
|
@@ -3214,6 +3264,10 @@ var Vue = (function (exports) {
|
|
|
3214
3264
|
}
|
|
3215
3265
|
}
|
|
3216
3266
|
updateCssVars(vnode, disabled);
|
|
3267
|
+
} else if (disabled) {
|
|
3268
|
+
if (vnode.shapeFlag & 16) {
|
|
3269
|
+
hydrateDisabledTeleport(node, vnode, node, nextSibling(node));
|
|
3270
|
+
}
|
|
3217
3271
|
}
|
|
3218
3272
|
return vnode.anchor && nextSibling(vnode.anchor);
|
|
3219
3273
|
}
|
|
@@ -3325,7 +3379,7 @@ var Vue = (function (exports) {
|
|
|
3325
3379
|
setTransitionHooks(innerChild, enterHooks);
|
|
3326
3380
|
}
|
|
3327
3381
|
let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree);
|
|
3328
|
-
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(
|
|
3382
|
+
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(oldInnerChild, innerChild) && recursiveGetSubtree(instance).type !== Comment) {
|
|
3329
3383
|
let leavingHooks = resolveTransitionHooks(
|
|
3330
3384
|
oldInnerChild,
|
|
3331
3385
|
rawProps,
|
|
@@ -3605,7 +3659,6 @@ var Vue = (function (exports) {
|
|
|
3605
3659
|
return ret;
|
|
3606
3660
|
}
|
|
3607
3661
|
|
|
3608
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
3609
3662
|
// @__NO_SIDE_EFFECTS__
|
|
3610
3663
|
function defineComponent(options, extraOptions) {
|
|
3611
3664
|
return isFunction(options) ? (
|
|
@@ -3658,6 +3711,7 @@ var Vue = (function (exports) {
|
|
|
3658
3711
|
return ret;
|
|
3659
3712
|
}
|
|
3660
3713
|
|
|
3714
|
+
const pendingSetRefMap = /* @__PURE__ */ new WeakMap();
|
|
3661
3715
|
function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
3662
3716
|
if (isArray(rawRef)) {
|
|
3663
3717
|
rawRef.forEach(
|
|
@@ -3690,7 +3744,7 @@ var Vue = (function (exports) {
|
|
|
3690
3744
|
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
3691
3745
|
const setupState = owner.setupState;
|
|
3692
3746
|
const rawSetupState = toRaw(setupState);
|
|
3693
|
-
const canSetSetupRef = setupState === EMPTY_OBJ ?
|
|
3747
|
+
const canSetSetupRef = setupState === EMPTY_OBJ ? NO : (key) => {
|
|
3694
3748
|
{
|
|
3695
3749
|
if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) {
|
|
3696
3750
|
warn$1(
|
|
@@ -3703,14 +3757,22 @@ var Vue = (function (exports) {
|
|
|
3703
3757
|
}
|
|
3704
3758
|
return hasOwn(rawSetupState, key);
|
|
3705
3759
|
};
|
|
3760
|
+
const canSetRef = (ref2) => {
|
|
3761
|
+
return !knownTemplateRefs.has(ref2);
|
|
3762
|
+
};
|
|
3706
3763
|
if (oldRef != null && oldRef !== ref) {
|
|
3764
|
+
invalidatePendingSetRef(oldRawRef);
|
|
3707
3765
|
if (isString(oldRef)) {
|
|
3708
3766
|
refs[oldRef] = null;
|
|
3709
3767
|
if (canSetSetupRef(oldRef)) {
|
|
3710
3768
|
setupState[oldRef] = null;
|
|
3711
3769
|
}
|
|
3712
3770
|
} else if (isRef(oldRef)) {
|
|
3713
|
-
oldRef
|
|
3771
|
+
if (canSetRef(oldRef)) {
|
|
3772
|
+
oldRef.value = null;
|
|
3773
|
+
}
|
|
3774
|
+
const oldRawRefAtom = oldRawRef;
|
|
3775
|
+
if (oldRawRefAtom.k) refs[oldRawRefAtom.k] = null;
|
|
3714
3776
|
}
|
|
3715
3777
|
}
|
|
3716
3778
|
if (isFunction(ref)) {
|
|
@@ -3721,7 +3783,7 @@ var Vue = (function (exports) {
|
|
|
3721
3783
|
if (_isString || _isRef) {
|
|
3722
3784
|
const doSet = () => {
|
|
3723
3785
|
if (rawRef.f) {
|
|
3724
|
-
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
3786
|
+
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : canSetRef(ref) || !rawRef.k ? ref.value : refs[rawRef.k];
|
|
3725
3787
|
if (isUnmount) {
|
|
3726
3788
|
isArray(existing) && remove(existing, refValue);
|
|
3727
3789
|
} else {
|
|
@@ -3732,8 +3794,11 @@ var Vue = (function (exports) {
|
|
|
3732
3794
|
setupState[ref] = refs[ref];
|
|
3733
3795
|
}
|
|
3734
3796
|
} else {
|
|
3735
|
-
|
|
3736
|
-
if (
|
|
3797
|
+
const newVal = [refValue];
|
|
3798
|
+
if (canSetRef(ref)) {
|
|
3799
|
+
ref.value = newVal;
|
|
3800
|
+
}
|
|
3801
|
+
if (rawRef.k) refs[rawRef.k] = newVal;
|
|
3737
3802
|
}
|
|
3738
3803
|
} else if (!existing.includes(refValue)) {
|
|
3739
3804
|
existing.push(refValue);
|
|
@@ -3745,16 +3810,24 @@ var Vue = (function (exports) {
|
|
|
3745
3810
|
setupState[ref] = value;
|
|
3746
3811
|
}
|
|
3747
3812
|
} else if (_isRef) {
|
|
3748
|
-
ref
|
|
3813
|
+
if (canSetRef(ref)) {
|
|
3814
|
+
ref.value = value;
|
|
3815
|
+
}
|
|
3749
3816
|
if (rawRef.k) refs[rawRef.k] = value;
|
|
3750
3817
|
} else {
|
|
3751
3818
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
3752
3819
|
}
|
|
3753
3820
|
};
|
|
3754
3821
|
if (value) {
|
|
3755
|
-
|
|
3756
|
-
|
|
3822
|
+
const job = () => {
|
|
3823
|
+
doSet();
|
|
3824
|
+
pendingSetRefMap.delete(rawRef);
|
|
3825
|
+
};
|
|
3826
|
+
job.id = -1;
|
|
3827
|
+
pendingSetRefMap.set(rawRef, job);
|
|
3828
|
+
queuePostRenderEffect(job, parentSuspense);
|
|
3757
3829
|
} else {
|
|
3830
|
+
invalidatePendingSetRef(rawRef);
|
|
3758
3831
|
doSet();
|
|
3759
3832
|
}
|
|
3760
3833
|
} else {
|
|
@@ -3762,6 +3835,13 @@ var Vue = (function (exports) {
|
|
|
3762
3835
|
}
|
|
3763
3836
|
}
|
|
3764
3837
|
}
|
|
3838
|
+
function invalidatePendingSetRef(rawRef) {
|
|
3839
|
+
const pendingSetRef = pendingSetRefMap.get(rawRef);
|
|
3840
|
+
if (pendingSetRef) {
|
|
3841
|
+
pendingSetRef.flags |= 8;
|
|
3842
|
+
pendingSetRefMap.delete(rawRef);
|
|
3843
|
+
}
|
|
3844
|
+
}
|
|
3765
3845
|
|
|
3766
3846
|
let hasLoggedMismatchError = false;
|
|
3767
3847
|
const logMismatchError = () => {
|
|
@@ -4003,6 +4083,8 @@ var Vue = (function (exports) {
|
|
|
4003
4083
|
) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
|
|
4004
4084
|
const content = el.content.firstChild;
|
|
4005
4085
|
if (needCallTransitionHooks) {
|
|
4086
|
+
const cls = content.getAttribute("class");
|
|
4087
|
+
if (cls) content.$cls = cls;
|
|
4006
4088
|
transition.beforeEnter(content);
|
|
4007
4089
|
}
|
|
4008
4090
|
replaceNode(content, el, parentComponent);
|
|
@@ -4255,7 +4337,12 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4255
4337
|
let actual;
|
|
4256
4338
|
let expected;
|
|
4257
4339
|
if (key === "class") {
|
|
4258
|
-
|
|
4340
|
+
if (el.$cls) {
|
|
4341
|
+
actual = el.$cls;
|
|
4342
|
+
delete el.$cls;
|
|
4343
|
+
} else {
|
|
4344
|
+
actual = el.getAttribute("class");
|
|
4345
|
+
}
|
|
4259
4346
|
expected = normalizeClass(clientValue);
|
|
4260
4347
|
if (!isSetEqual(toClassSet(actual || ""), toClassSet(expected))) {
|
|
4261
4348
|
mismatchType = 2 /* CLASS */;
|
|
@@ -4359,10 +4446,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4359
4446
|
if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
|
|
4360
4447
|
const cssVars = instance.getCssVars();
|
|
4361
4448
|
for (const key in cssVars) {
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
String(cssVars[key])
|
|
4365
|
-
);
|
|
4449
|
+
const value = normalizeCssVarValue(cssVars[key]);
|
|
4450
|
+
expectedMap.set(`--${getEscapedCssVarName(key)}`, value);
|
|
4366
4451
|
}
|
|
4367
4452
|
}
|
|
4368
4453
|
if (vnode === root && instance.parent) {
|
|
@@ -4393,7 +4478,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4393
4478
|
if (allowedType === 0 /* TEXT */ && list.includes("children")) {
|
|
4394
4479
|
return true;
|
|
4395
4480
|
}
|
|
4396
|
-
return
|
|
4481
|
+
return list.includes(MismatchTypeString[allowedType]);
|
|
4397
4482
|
}
|
|
4398
4483
|
}
|
|
4399
4484
|
|
|
@@ -4489,7 +4574,6 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4489
4574
|
}
|
|
4490
4575
|
|
|
4491
4576
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
4492
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
4493
4577
|
// @__NO_SIDE_EFFECTS__
|
|
4494
4578
|
function defineAsyncComponent(source) {
|
|
4495
4579
|
if (isFunction(source)) {
|
|
@@ -4550,15 +4634,28 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4550
4634
|
name: "AsyncComponentWrapper",
|
|
4551
4635
|
__asyncLoader: load,
|
|
4552
4636
|
__asyncHydrate(el, instance, hydrate) {
|
|
4637
|
+
let patched = false;
|
|
4638
|
+
(instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
4639
|
+
const performHydrate = () => {
|
|
4640
|
+
if (patched) {
|
|
4641
|
+
{
|
|
4642
|
+
warn$1(
|
|
4643
|
+
`Skipping lazy hydration for component '${getComponentName(resolvedComp) || resolvedComp.__file}': it was updated before lazy hydration performed.`
|
|
4644
|
+
);
|
|
4645
|
+
}
|
|
4646
|
+
return;
|
|
4647
|
+
}
|
|
4648
|
+
hydrate();
|
|
4649
|
+
};
|
|
4553
4650
|
const doHydrate = hydrateStrategy ? () => {
|
|
4554
4651
|
const teardown = hydrateStrategy(
|
|
4555
|
-
|
|
4652
|
+
performHydrate,
|
|
4556
4653
|
(cb) => forEachElement(el, cb)
|
|
4557
4654
|
);
|
|
4558
4655
|
if (teardown) {
|
|
4559
4656
|
(instance.bum || (instance.bum = [])).push(teardown);
|
|
4560
4657
|
}
|
|
4561
|
-
} :
|
|
4658
|
+
} : performHydrate;
|
|
4562
4659
|
if (resolvedComp) {
|
|
4563
4660
|
doHydrate();
|
|
4564
4661
|
} else {
|
|
@@ -4721,6 +4818,9 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4721
4818
|
{
|
|
4722
4819
|
devtoolsComponentAdded(instance2);
|
|
4723
4820
|
}
|
|
4821
|
+
{
|
|
4822
|
+
instance2.__keepAliveStorageContainer = storageContainer;
|
|
4823
|
+
}
|
|
4724
4824
|
};
|
|
4725
4825
|
function unmount(vnode) {
|
|
4726
4826
|
resetShapeFlag(vnode);
|
|
@@ -4808,7 +4908,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4808
4908
|
);
|
|
4809
4909
|
const { include, exclude, max } = props;
|
|
4810
4910
|
if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {
|
|
4811
|
-
vnode.shapeFlag &=
|
|
4911
|
+
vnode.shapeFlag &= -257;
|
|
4812
4912
|
current = vnode;
|
|
4813
4913
|
return rawVNode;
|
|
4814
4914
|
}
|
|
@@ -4895,8 +4995,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4895
4995
|
}, target);
|
|
4896
4996
|
}
|
|
4897
4997
|
function resetShapeFlag(vnode) {
|
|
4898
|
-
vnode.shapeFlag &=
|
|
4899
|
-
vnode.shapeFlag &=
|
|
4998
|
+
vnode.shapeFlag &= -257;
|
|
4999
|
+
vnode.shapeFlag &= -513;
|
|
4900
5000
|
}
|
|
4901
5001
|
function getInnerChild(vnode) {
|
|
4902
5002
|
return vnode.shapeFlag & 128 ? vnode.ssContent : vnode;
|
|
@@ -5011,14 +5111,16 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5011
5111
|
if (sourceIsArray || isString(source)) {
|
|
5012
5112
|
const sourceIsReactiveArray = sourceIsArray && isReactive(source);
|
|
5013
5113
|
let needsWrap = false;
|
|
5114
|
+
let isReadonlySource = false;
|
|
5014
5115
|
if (sourceIsReactiveArray) {
|
|
5015
5116
|
needsWrap = !isShallow(source);
|
|
5117
|
+
isReadonlySource = isReadonly(source);
|
|
5016
5118
|
source = shallowReadArray(source);
|
|
5017
5119
|
}
|
|
5018
5120
|
ret = new Array(source.length);
|
|
5019
5121
|
for (let i = 0, l = source.length; i < l; i++) {
|
|
5020
5122
|
ret[i] = renderItem(
|
|
5021
|
-
needsWrap ? toReactive(source[i]) : source[i],
|
|
5123
|
+
needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i],
|
|
5022
5124
|
i,
|
|
5023
5125
|
void 0,
|
|
5024
5126
|
cached && cached[i]
|
|
@@ -5075,12 +5177,13 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5075
5177
|
|
|
5076
5178
|
function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
5077
5179
|
if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
|
|
5180
|
+
const hasProps = Object.keys(props).length > 0;
|
|
5078
5181
|
if (name !== "default") props.name = name;
|
|
5079
5182
|
return openBlock(), createBlock(
|
|
5080
5183
|
Fragment,
|
|
5081
5184
|
null,
|
|
5082
5185
|
[createVNode("slot", props, fallback && fallback())],
|
|
5083
|
-
64
|
|
5186
|
+
hasProps ? -2 : 64
|
|
5084
5187
|
);
|
|
5085
5188
|
}
|
|
5086
5189
|
let slot = slots[name];
|
|
@@ -5285,10 +5388,10 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5285
5388
|
return true;
|
|
5286
5389
|
},
|
|
5287
5390
|
has({
|
|
5288
|
-
_: { data, setupState, accessCache, ctx, appContext, propsOptions }
|
|
5391
|
+
_: { data, setupState, accessCache, ctx, appContext, propsOptions, type }
|
|
5289
5392
|
}, key) {
|
|
5290
|
-
let normalizedProps;
|
|
5291
|
-
return !!accessCache[key] || data !== EMPTY_OBJ && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key);
|
|
5393
|
+
let normalizedProps, cssModules;
|
|
5394
|
+
return !!(accessCache[key] || data !== EMPTY_OBJ && key[0] !== "$" && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key) || (cssModules = type.__cssModules) && cssModules[key]);
|
|
5292
5395
|
},
|
|
5293
5396
|
defineProperty(target, key, descriptor) {
|
|
5294
5397
|
if (descriptor.get != null) {
|
|
@@ -5426,15 +5529,15 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5426
5529
|
return null;
|
|
5427
5530
|
}
|
|
5428
5531
|
function useSlots() {
|
|
5429
|
-
return getContext().slots;
|
|
5532
|
+
return getContext("useSlots").slots;
|
|
5430
5533
|
}
|
|
5431
5534
|
function useAttrs() {
|
|
5432
|
-
return getContext().attrs;
|
|
5535
|
+
return getContext("useAttrs").attrs;
|
|
5433
5536
|
}
|
|
5434
|
-
function getContext() {
|
|
5537
|
+
function getContext(calledFunctionName) {
|
|
5435
5538
|
const i = getCurrentInstance();
|
|
5436
5539
|
if (!i) {
|
|
5437
|
-
warn$1(
|
|
5540
|
+
warn$1(`${calledFunctionName}() called without active instance.`);
|
|
5438
5541
|
}
|
|
5439
5542
|
return i.setupContext || (i.setupContext = createSetupContext(i));
|
|
5440
5543
|
}
|
|
@@ -5685,7 +5788,8 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5685
5788
|
expose.forEach((key) => {
|
|
5686
5789
|
Object.defineProperty(exposed, key, {
|
|
5687
5790
|
get: () => publicThis[key],
|
|
5688
|
-
set: (val) => publicThis[key] = val
|
|
5791
|
+
set: (val) => publicThis[key] = val,
|
|
5792
|
+
enumerable: true
|
|
5689
5793
|
});
|
|
5690
5794
|
});
|
|
5691
5795
|
} else if (!instance.exposed) {
|
|
@@ -6037,11 +6141,9 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6037
6141
|
}
|
|
6038
6142
|
{
|
|
6039
6143
|
context.reload = () => {
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
namespace
|
|
6044
|
-
);
|
|
6144
|
+
const cloned = cloneVNode(vnode);
|
|
6145
|
+
cloned.el = null;
|
|
6146
|
+
render(cloned, rootContainer, namespace);
|
|
6045
6147
|
};
|
|
6046
6148
|
}
|
|
6047
6149
|
if (isHydrate && hydrate) {
|
|
@@ -6091,9 +6193,15 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6091
6193
|
},
|
|
6092
6194
|
provide(key, value) {
|
|
6093
6195
|
if (key in context.provides) {
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6196
|
+
if (hasOwn(context.provides, key)) {
|
|
6197
|
+
warn$1(
|
|
6198
|
+
`App already provides property with key "${String(key)}". It will be overwritten with the new value.`
|
|
6199
|
+
);
|
|
6200
|
+
} else {
|
|
6201
|
+
warn$1(
|
|
6202
|
+
`App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`
|
|
6203
|
+
);
|
|
6204
|
+
}
|
|
6097
6205
|
}
|
|
6098
6206
|
context.provides[key] = value;
|
|
6099
6207
|
return app;
|
|
@@ -6128,9 +6236,9 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6128
6236
|
}
|
|
6129
6237
|
}
|
|
6130
6238
|
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
6131
|
-
const instance =
|
|
6239
|
+
const instance = getCurrentInstance();
|
|
6132
6240
|
if (instance || currentApp) {
|
|
6133
|
-
|
|
6241
|
+
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
6134
6242
|
if (provides && key in provides) {
|
|
6135
6243
|
return provides[key];
|
|
6136
6244
|
} else if (arguments.length > 1) {
|
|
@@ -6143,7 +6251,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6143
6251
|
}
|
|
6144
6252
|
}
|
|
6145
6253
|
function hasInjectionContext() {
|
|
6146
|
-
return !!(
|
|
6254
|
+
return !!(getCurrentInstance() || currentApp);
|
|
6147
6255
|
}
|
|
6148
6256
|
|
|
6149
6257
|
const internalObjectProto = {};
|
|
@@ -6557,14 +6665,14 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6557
6665
|
return args.some((elem) => elem.toLowerCase() === "boolean");
|
|
6558
6666
|
}
|
|
6559
6667
|
|
|
6560
|
-
const isInternalKey = (key) => key
|
|
6668
|
+
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
|
6561
6669
|
const normalizeSlotValue = (value) => isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)];
|
|
6562
6670
|
const normalizeSlot = (key, rawSlot, ctx) => {
|
|
6563
6671
|
if (rawSlot._n) {
|
|
6564
6672
|
return rawSlot;
|
|
6565
6673
|
}
|
|
6566
6674
|
const normalized = withCtx((...args) => {
|
|
6567
|
-
if (currentInstance && (!ctx
|
|
6675
|
+
if (currentInstance && !(ctx === null && currentRenderingInstance) && !(ctx && ctx.root !== currentInstance.root)) {
|
|
6568
6676
|
warn$1(
|
|
6569
6677
|
`Slot "${key}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
|
|
6570
6678
|
);
|
|
@@ -6603,7 +6711,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6603
6711
|
};
|
|
6604
6712
|
const assignSlots = (slots, children, optimized) => {
|
|
6605
6713
|
for (const key in children) {
|
|
6606
|
-
if (optimized || key
|
|
6714
|
+
if (optimized || !isInternalKey(key)) {
|
|
6607
6715
|
slots[key] = children[key];
|
|
6608
6716
|
}
|
|
6609
6717
|
}
|
|
@@ -6671,12 +6779,10 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6671
6779
|
if (instance.appContext.config.performance && isSupported()) {
|
|
6672
6780
|
const startTag = `vue-${type}-${instance.uid}`;
|
|
6673
6781
|
const endTag = startTag + `:end`;
|
|
6782
|
+
const measureName = `<${formatComponentName(instance, instance.type)}> ${type}`;
|
|
6674
6783
|
perf.mark(endTag);
|
|
6675
|
-
perf.measure(
|
|
6676
|
-
|
|
6677
|
-
startTag,
|
|
6678
|
-
endTag
|
|
6679
|
-
);
|
|
6784
|
+
perf.measure(measureName, startTag, endTag);
|
|
6785
|
+
perf.clearMeasures(measureName);
|
|
6680
6786
|
perf.clearMarks(startTag);
|
|
6681
6787
|
perf.clearMarks(endTag);
|
|
6682
6788
|
}
|
|
@@ -6822,6 +6928,8 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6822
6928
|
}
|
|
6823
6929
|
if (ref != null && parentComponent) {
|
|
6824
6930
|
setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
|
|
6931
|
+
} else if (ref == null && n1 && n1.ref != null) {
|
|
6932
|
+
setRef(n1.ref, null, parentSuspense, n1, true);
|
|
6825
6933
|
}
|
|
6826
6934
|
};
|
|
6827
6935
|
const processText = (n1, n2, container, anchor) => {
|
|
@@ -7127,7 +7235,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7127
7235
|
(oldVNode.type === Fragment || // - In the case of different nodes, there is going to be a replacement
|
|
7128
7236
|
// which also requires the correct parent container
|
|
7129
7237
|
!isSameVNodeType(oldVNode, newVNode) || // - In the case of a component, it could contain anything.
|
|
7130
|
-
oldVNode.shapeFlag & (6 | 64)) ? hostParentNode(oldVNode.el) : (
|
|
7238
|
+
oldVNode.shapeFlag & (6 | 64 | 128)) ? hostParentNode(oldVNode.el) : (
|
|
7131
7239
|
// In other cases, the parent container is not actually used so we
|
|
7132
7240
|
// just pass the block element here to avoid a DOM parentNode call.
|
|
7133
7241
|
fallbackContainer
|
|
@@ -7289,12 +7397,13 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7289
7397
|
endMeasure(instance, `init`);
|
|
7290
7398
|
}
|
|
7291
7399
|
}
|
|
7400
|
+
if (isHmrUpdating) initialVNode.el = null;
|
|
7292
7401
|
if (instance.asyncDep) {
|
|
7293
|
-
if (isHmrUpdating) initialVNode.el = null;
|
|
7294
7402
|
parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
|
|
7295
7403
|
if (!initialVNode.el) {
|
|
7296
7404
|
const placeholder = instance.subTree = createVNode(Comment);
|
|
7297
7405
|
processCommentNode(null, placeholder, container, anchor);
|
|
7406
|
+
initialVNode.placeholder = placeholder.el;
|
|
7298
7407
|
}
|
|
7299
7408
|
} else {
|
|
7300
7409
|
setupRenderEffect(
|
|
@@ -7381,7 +7490,8 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7381
7490
|
hydrateSubTree();
|
|
7382
7491
|
}
|
|
7383
7492
|
} else {
|
|
7384
|
-
if (root.ce
|
|
7493
|
+
if (root.ce && // @ts-expect-error _def is private
|
|
7494
|
+
root.ce._def.shadowRoot !== false) {
|
|
7385
7495
|
root.ce._injectChildStyle(type);
|
|
7386
7496
|
}
|
|
7387
7497
|
{
|
|
@@ -7795,7 +7905,11 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7795
7905
|
for (i = toBePatched - 1; i >= 0; i--) {
|
|
7796
7906
|
const nextIndex = s2 + i;
|
|
7797
7907
|
const nextChild = c2[nextIndex];
|
|
7798
|
-
const
|
|
7908
|
+
const anchorVNode = c2[nextIndex + 1];
|
|
7909
|
+
const anchor = nextIndex + 1 < l2 ? (
|
|
7910
|
+
// #13559, fallback to el placeholder for unresolved async component
|
|
7911
|
+
anchorVNode.el || anchorVNode.placeholder
|
|
7912
|
+
) : parentAnchor;
|
|
7799
7913
|
if (newIndexToOldIndexMap[i] === 0) {
|
|
7800
7914
|
patch(
|
|
7801
7915
|
null,
|
|
@@ -7852,8 +7966,20 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7852
7966
|
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
|
|
7853
7967
|
} else {
|
|
7854
7968
|
const { leave, delayLeave, afterLeave } = transition;
|
|
7855
|
-
const remove2 = () =>
|
|
7969
|
+
const remove2 = () => {
|
|
7970
|
+
if (vnode.ctx.isUnmounted) {
|
|
7971
|
+
hostRemove(el);
|
|
7972
|
+
} else {
|
|
7973
|
+
hostInsert(el, container, anchor);
|
|
7974
|
+
}
|
|
7975
|
+
};
|
|
7856
7976
|
const performLeave = () => {
|
|
7977
|
+
if (el._isLeaving) {
|
|
7978
|
+
el[leaveCbKey](
|
|
7979
|
+
true
|
|
7980
|
+
/* cancelled */
|
|
7981
|
+
);
|
|
7982
|
+
}
|
|
7857
7983
|
leave(el, () => {
|
|
7858
7984
|
remove2();
|
|
7859
7985
|
afterLeave && afterLeave();
|
|
@@ -7885,7 +8011,9 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7885
8011
|
optimized = false;
|
|
7886
8012
|
}
|
|
7887
8013
|
if (ref != null) {
|
|
8014
|
+
pauseTracking();
|
|
7888
8015
|
setRef(ref, null, parentSuspense, vnode, true);
|
|
8016
|
+
resetTracking();
|
|
7889
8017
|
}
|
|
7890
8018
|
if (cacheIndex != null) {
|
|
7891
8019
|
parentComponent.renderCache[cacheIndex] = void 0;
|
|
@@ -8014,12 +8142,6 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8014
8142
|
queuePostRenderEffect(() => {
|
|
8015
8143
|
instance.isUnmounted = true;
|
|
8016
8144
|
}, parentSuspense);
|
|
8017
|
-
if (parentSuspense && parentSuspense.pendingBranch && !parentSuspense.isUnmounted && instance.asyncDep && !instance.asyncResolved && instance.suspenseId === parentSuspense.pendingId) {
|
|
8018
|
-
parentSuspense.deps--;
|
|
8019
|
-
if (parentSuspense.deps === 0) {
|
|
8020
|
-
parentSuspense.resolve();
|
|
8021
|
-
}
|
|
8022
|
-
}
|
|
8023
8145
|
{
|
|
8024
8146
|
devtoolsComponentRemoved(instance);
|
|
8025
8147
|
}
|
|
@@ -8098,8 +8220,8 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8098
8220
|
effect.flags |= 32;
|
|
8099
8221
|
job.flags |= 4;
|
|
8100
8222
|
} else {
|
|
8101
|
-
effect.flags &=
|
|
8102
|
-
job.flags &=
|
|
8223
|
+
effect.flags &= -33;
|
|
8224
|
+
job.flags &= -5;
|
|
8103
8225
|
}
|
|
8104
8226
|
}
|
|
8105
8227
|
function needTransition(parentSuspense, transition) {
|
|
@@ -8120,12 +8242,16 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8120
8242
|
if (!shallow && c2.patchFlag !== -2)
|
|
8121
8243
|
traverseStaticChildren(c1, c2);
|
|
8122
8244
|
}
|
|
8123
|
-
if (c2.type === Text
|
|
8245
|
+
if (c2.type === Text && // avoid cached text nodes retaining detached dom nodes
|
|
8246
|
+
c2.patchFlag !== -1) {
|
|
8124
8247
|
c2.el = c1.el;
|
|
8125
8248
|
}
|
|
8126
8249
|
if (c2.type === Comment && !c2.el) {
|
|
8127
8250
|
c2.el = c1.el;
|
|
8128
8251
|
}
|
|
8252
|
+
{
|
|
8253
|
+
c2.el && (c2.el.__vnode = c2);
|
|
8254
|
+
}
|
|
8129
8255
|
}
|
|
8130
8256
|
}
|
|
8131
8257
|
}
|
|
@@ -8449,8 +8575,9 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8449
8575
|
);
|
|
8450
8576
|
}
|
|
8451
8577
|
}
|
|
8578
|
+
const mixinEmitsCache = /* @__PURE__ */ new WeakMap();
|
|
8452
8579
|
function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
8453
|
-
const cache = appContext.emitsCache;
|
|
8580
|
+
const cache = asMixin ? mixinEmitsCache : appContext.emitsCache;
|
|
8454
8581
|
const cached = cache.get(comp);
|
|
8455
8582
|
if (cached !== void 0) {
|
|
8456
8583
|
return cached;
|
|
@@ -8898,7 +9025,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8898
9025
|
const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense;
|
|
8899
9026
|
if (pendingBranch) {
|
|
8900
9027
|
suspense.pendingBranch = newBranch;
|
|
8901
|
-
if (isSameVNodeType(
|
|
9028
|
+
if (isSameVNodeType(pendingBranch, newBranch)) {
|
|
8902
9029
|
patch(
|
|
8903
9030
|
pendingBranch,
|
|
8904
9031
|
newBranch,
|
|
@@ -8969,7 +9096,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8969
9096
|
);
|
|
8970
9097
|
setActiveBranch(suspense, newFallback);
|
|
8971
9098
|
}
|
|
8972
|
-
} else if (activeBranch && isSameVNodeType(
|
|
9099
|
+
} else if (activeBranch && isSameVNodeType(activeBranch, newBranch)) {
|
|
8973
9100
|
patch(
|
|
8974
9101
|
activeBranch,
|
|
8975
9102
|
newBranch,
|
|
@@ -9000,7 +9127,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9000
9127
|
}
|
|
9001
9128
|
}
|
|
9002
9129
|
} else {
|
|
9003
|
-
if (activeBranch && isSameVNodeType(
|
|
9130
|
+
if (activeBranch && isSameVNodeType(activeBranch, newBranch)) {
|
|
9004
9131
|
patch(
|
|
9005
9132
|
activeBranch,
|
|
9006
9133
|
newBranch,
|
|
@@ -9443,8 +9570,8 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9443
9570
|
if (n2.shapeFlag & 6 && n1.component) {
|
|
9444
9571
|
const dirtyInstances = hmrDirtyComponents.get(n2.type);
|
|
9445
9572
|
if (dirtyInstances && dirtyInstances.has(n1.component)) {
|
|
9446
|
-
n1.shapeFlag &=
|
|
9447
|
-
n2.shapeFlag &=
|
|
9573
|
+
n1.shapeFlag &= -257;
|
|
9574
|
+
n2.shapeFlag &= -513;
|
|
9448
9575
|
return false;
|
|
9449
9576
|
}
|
|
9450
9577
|
}
|
|
@@ -9634,6 +9761,7 @@ Component that was made reactive: `,
|
|
|
9634
9761
|
suspense: vnode.suspense,
|
|
9635
9762
|
ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
|
|
9636
9763
|
ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
|
|
9764
|
+
placeholder: vnode.placeholder,
|
|
9637
9765
|
el: vnode.el,
|
|
9638
9766
|
anchor: vnode.anchor,
|
|
9639
9767
|
ctx: vnode.ctx,
|
|
@@ -9893,7 +10021,7 @@ Component that was made reactive: `,
|
|
|
9893
10021
|
const { props, children } = instance.vnode;
|
|
9894
10022
|
const isStateful = isStatefulComponent(instance);
|
|
9895
10023
|
initProps(instance, props, isStateful, isSSR);
|
|
9896
|
-
initSlots(instance, children, optimized);
|
|
10024
|
+
initSlots(instance, children, optimized || isSSR);
|
|
9897
10025
|
const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0;
|
|
9898
10026
|
isSSR && setInSSRSetupState(false);
|
|
9899
10027
|
return setupResult;
|
|
@@ -10142,7 +10270,7 @@ Component that was made reactive: `,
|
|
|
10142
10270
|
return instance.proxy;
|
|
10143
10271
|
}
|
|
10144
10272
|
}
|
|
10145
|
-
const classifyRE = /(?:^|[-_])
|
|
10273
|
+
const classifyRE = /(?:^|[-_])\w/g;
|
|
10146
10274
|
const classify = (str) => str.replace(classifyRE, (c) => c.toUpperCase()).replace(/[-_]/g, "");
|
|
10147
10275
|
function getComponentName(Component, includeInferred = true) {
|
|
10148
10276
|
return isFunction(Component) ? Component.displayName || Component.name : Component.name || includeInferred && Component.__name;
|
|
@@ -10185,23 +10313,28 @@ Component that was made reactive: `,
|
|
|
10185
10313
|
};
|
|
10186
10314
|
|
|
10187
10315
|
function h(type, propsOrChildren, children) {
|
|
10188
|
-
|
|
10189
|
-
|
|
10190
|
-
|
|
10191
|
-
|
|
10192
|
-
|
|
10316
|
+
try {
|
|
10317
|
+
setBlockTracking(-1);
|
|
10318
|
+
const l = arguments.length;
|
|
10319
|
+
if (l === 2) {
|
|
10320
|
+
if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
|
|
10321
|
+
if (isVNode(propsOrChildren)) {
|
|
10322
|
+
return createVNode(type, null, [propsOrChildren]);
|
|
10323
|
+
}
|
|
10324
|
+
return createVNode(type, propsOrChildren);
|
|
10325
|
+
} else {
|
|
10326
|
+
return createVNode(type, null, propsOrChildren);
|
|
10193
10327
|
}
|
|
10194
|
-
return createVNode(type, propsOrChildren);
|
|
10195
10328
|
} else {
|
|
10196
|
-
|
|
10197
|
-
|
|
10198
|
-
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
children = [children];
|
|
10329
|
+
if (l > 3) {
|
|
10330
|
+
children = Array.prototype.slice.call(arguments, 2);
|
|
10331
|
+
} else if (l === 3 && isVNode(children)) {
|
|
10332
|
+
children = [children];
|
|
10333
|
+
}
|
|
10334
|
+
return createVNode(type, propsOrChildren, children);
|
|
10203
10335
|
}
|
|
10204
|
-
|
|
10336
|
+
} finally {
|
|
10337
|
+
setBlockTracking(1);
|
|
10205
10338
|
}
|
|
10206
10339
|
}
|
|
10207
10340
|
|
|
@@ -10222,13 +10355,15 @@ Component that was made reactive: `,
|
|
|
10222
10355
|
if (obj.__isVue) {
|
|
10223
10356
|
return ["div", vueStyle, `VueInstance`];
|
|
10224
10357
|
} else if (isRef(obj)) {
|
|
10358
|
+
pauseTracking();
|
|
10359
|
+
const value = obj.value;
|
|
10360
|
+
resetTracking();
|
|
10225
10361
|
return [
|
|
10226
10362
|
"div",
|
|
10227
10363
|
{},
|
|
10228
10364
|
["span", vueStyle, genRefFlag(obj)],
|
|
10229
10365
|
"<",
|
|
10230
|
-
|
|
10231
|
-
formatValue("_value" in obj ? obj._value : obj),
|
|
10366
|
+
formatValue(value),
|
|
10232
10367
|
`>`
|
|
10233
10368
|
];
|
|
10234
10369
|
} else if (isReactive(obj)) {
|
|
@@ -10409,7 +10544,7 @@ Component that was made reactive: `,
|
|
|
10409
10544
|
return true;
|
|
10410
10545
|
}
|
|
10411
10546
|
|
|
10412
|
-
const version = "3.5.
|
|
10547
|
+
const version = "3.5.22";
|
|
10413
10548
|
const warn = warn$1 ;
|
|
10414
10549
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10415
10550
|
const devtools = devtools$1 ;
|
|
@@ -10626,11 +10761,11 @@ Component that was made reactive: `,
|
|
|
10626
10761
|
const resolve = () => finishLeave(el, done);
|
|
10627
10762
|
addTransitionClass(el, leaveFromClass);
|
|
10628
10763
|
if (!el._enterCancelled) {
|
|
10629
|
-
forceReflow();
|
|
10764
|
+
forceReflow(el);
|
|
10630
10765
|
addTransitionClass(el, leaveActiveClass);
|
|
10631
10766
|
} else {
|
|
10632
10767
|
addTransitionClass(el, leaveActiveClass);
|
|
10633
|
-
forceReflow();
|
|
10768
|
+
forceReflow(el);
|
|
10634
10769
|
}
|
|
10635
10770
|
nextFrame(() => {
|
|
10636
10771
|
if (!el._isLeaving) {
|
|
@@ -10756,7 +10891,7 @@ Component that was made reactive: `,
|
|
|
10756
10891
|
type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION : ANIMATION : null;
|
|
10757
10892
|
propCount = type ? type === TRANSITION ? transitionDurations.length : animationDurations.length : 0;
|
|
10758
10893
|
}
|
|
10759
|
-
const hasTransform = type === TRANSITION && /\b(transform|all)(
|
|
10894
|
+
const hasTransform = type === TRANSITION && /\b(?:transform|all)(?:,|$)/.test(
|
|
10760
10895
|
getStyleProperties(`${TRANSITION}Property`).toString()
|
|
10761
10896
|
);
|
|
10762
10897
|
return {
|
|
@@ -10776,8 +10911,9 @@ Component that was made reactive: `,
|
|
|
10776
10911
|
if (s === "auto") return 0;
|
|
10777
10912
|
return Number(s.slice(0, -1).replace(",", ".")) * 1e3;
|
|
10778
10913
|
}
|
|
10779
|
-
function forceReflow() {
|
|
10780
|
-
|
|
10914
|
+
function forceReflow(el) {
|
|
10915
|
+
const targetDocument = el ? el.ownerDocument : document;
|
|
10916
|
+
return targetDocument.body.offsetHeight;
|
|
10781
10917
|
}
|
|
10782
10918
|
|
|
10783
10919
|
function patchClass(el, value, isSVG) {
|
|
@@ -10797,6 +10933,8 @@ Component that was made reactive: `,
|
|
|
10797
10933
|
const vShowOriginalDisplay = Symbol("_vod");
|
|
10798
10934
|
const vShowHidden = Symbol("_vsh");
|
|
10799
10935
|
const vShow = {
|
|
10936
|
+
// used for prop mismatch check during hydration
|
|
10937
|
+
name: "show",
|
|
10800
10938
|
beforeMount(el, { value }, { transition }) {
|
|
10801
10939
|
el[vShowOriginalDisplay] = el.style.display === "none" ? "" : el.style.display;
|
|
10802
10940
|
if (transition && value) {
|
|
@@ -10830,9 +10968,6 @@ Component that was made reactive: `,
|
|
|
10830
10968
|
setDisplay(el, value);
|
|
10831
10969
|
}
|
|
10832
10970
|
};
|
|
10833
|
-
{
|
|
10834
|
-
vShow.name = "show";
|
|
10835
|
-
}
|
|
10836
10971
|
function setDisplay(el, value) {
|
|
10837
10972
|
el.style.display = value ? el[vShowOriginalDisplay] : "none";
|
|
10838
10973
|
el[vShowHidden] = !value;
|
|
@@ -10903,14 +11038,15 @@ Component that was made reactive: `,
|
|
|
10903
11038
|
const style = el.style;
|
|
10904
11039
|
let cssText = "";
|
|
10905
11040
|
for (const key in vars) {
|
|
10906
|
-
|
|
10907
|
-
|
|
11041
|
+
const value = normalizeCssVarValue(vars[key]);
|
|
11042
|
+
style.setProperty(`--${key}`, value);
|
|
11043
|
+
cssText += `--${key}: ${value};`;
|
|
10908
11044
|
}
|
|
10909
11045
|
style[CSS_VAR_TEXT] = cssText;
|
|
10910
11046
|
}
|
|
10911
11047
|
}
|
|
10912
11048
|
|
|
10913
|
-
const displayRE = /(
|
|
11049
|
+
const displayRE = /(?:^|;)\s*display\s*:/;
|
|
10914
11050
|
function patchStyle(el, prev, next) {
|
|
10915
11051
|
const style = el.style;
|
|
10916
11052
|
const isCssString = isString(next);
|
|
@@ -11208,7 +11344,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11208
11344
|
}
|
|
11209
11345
|
return false;
|
|
11210
11346
|
}
|
|
11211
|
-
if (key === "spellcheck" || key === "draggable" || key === "translate") {
|
|
11347
|
+
if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
|
|
11212
11348
|
return false;
|
|
11213
11349
|
}
|
|
11214
11350
|
if (key === "form") {
|
|
@@ -11233,11 +11369,10 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11233
11369
|
}
|
|
11234
11370
|
|
|
11235
11371
|
const REMOVAL = {};
|
|
11236
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
11237
11372
|
// @__NO_SIDE_EFFECTS__
|
|
11238
11373
|
function defineCustomElement(options, extraOptions, _createApp) {
|
|
11239
|
-
|
|
11240
|
-
if (isPlainObject(Comp)) extend(Comp, extraOptions);
|
|
11374
|
+
let Comp = defineComponent(options, extraOptions);
|
|
11375
|
+
if (isPlainObject(Comp)) Comp = extend({}, Comp, extraOptions);
|
|
11241
11376
|
class VueCustomElement extends VueElement {
|
|
11242
11377
|
constructor(initialProps) {
|
|
11243
11378
|
super(Comp, initialProps, _createApp);
|
|
@@ -11246,10 +11381,9 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11246
11381
|
VueCustomElement.def = Comp;
|
|
11247
11382
|
return VueCustomElement;
|
|
11248
11383
|
}
|
|
11249
|
-
|
|
11250
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
11384
|
+
const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
11251
11385
|
return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
|
|
11252
|
-
};
|
|
11386
|
+
});
|
|
11253
11387
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
11254
11388
|
};
|
|
11255
11389
|
class VueElement extends BaseClass {
|
|
@@ -11285,19 +11419,20 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11285
11419
|
);
|
|
11286
11420
|
}
|
|
11287
11421
|
if (_def.shadowRoot !== false) {
|
|
11288
|
-
this.attachShadow(
|
|
11422
|
+
this.attachShadow(
|
|
11423
|
+
extend({}, _def.shadowRootOptions, {
|
|
11424
|
+
mode: "open"
|
|
11425
|
+
})
|
|
11426
|
+
);
|
|
11289
11427
|
this._root = this.shadowRoot;
|
|
11290
11428
|
} else {
|
|
11291
11429
|
this._root = this;
|
|
11292
11430
|
}
|
|
11293
11431
|
}
|
|
11294
|
-
if (!this._def.__asyncLoader) {
|
|
11295
|
-
this._resolveProps(this._def);
|
|
11296
|
-
}
|
|
11297
11432
|
}
|
|
11298
11433
|
connectedCallback() {
|
|
11299
11434
|
if (!this.isConnected) return;
|
|
11300
|
-
if (!this.shadowRoot) {
|
|
11435
|
+
if (!this.shadowRoot && !this._resolved) {
|
|
11301
11436
|
this._parseSlots();
|
|
11302
11437
|
}
|
|
11303
11438
|
this._connected = true;
|
|
@@ -11310,8 +11445,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11310
11445
|
}
|
|
11311
11446
|
if (!this._instance) {
|
|
11312
11447
|
if (this._resolved) {
|
|
11313
|
-
this.
|
|
11314
|
-
this._update();
|
|
11448
|
+
this._mount(this._def);
|
|
11315
11449
|
} else {
|
|
11316
11450
|
if (parent && parent._pendingResolve) {
|
|
11317
11451
|
this._pendingResolve = parent._pendingResolve.then(() => {
|
|
@@ -11327,7 +11461,15 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11327
11461
|
_setParent(parent = this._parent) {
|
|
11328
11462
|
if (parent) {
|
|
11329
11463
|
this._instance.parent = parent._instance;
|
|
11330
|
-
this.
|
|
11464
|
+
this._inheritParentContext(parent);
|
|
11465
|
+
}
|
|
11466
|
+
}
|
|
11467
|
+
_inheritParentContext(parent = this._parent) {
|
|
11468
|
+
if (parent && this._app) {
|
|
11469
|
+
Object.setPrototypeOf(
|
|
11470
|
+
this._app._context.provides,
|
|
11471
|
+
parent._instance.provides
|
|
11472
|
+
);
|
|
11331
11473
|
}
|
|
11332
11474
|
}
|
|
11333
11475
|
disconnectedCallback() {
|
|
@@ -11341,9 +11483,18 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11341
11483
|
this._app && this._app.unmount();
|
|
11342
11484
|
if (this._instance) this._instance.ce = void 0;
|
|
11343
11485
|
this._app = this._instance = null;
|
|
11486
|
+
if (this._teleportTargets) {
|
|
11487
|
+
this._teleportTargets.clear();
|
|
11488
|
+
this._teleportTargets = void 0;
|
|
11489
|
+
}
|
|
11344
11490
|
}
|
|
11345
11491
|
});
|
|
11346
11492
|
}
|
|
11493
|
+
_processMutations(mutations) {
|
|
11494
|
+
for (const m of mutations) {
|
|
11495
|
+
this._setAttr(m.attributeName);
|
|
11496
|
+
}
|
|
11497
|
+
}
|
|
11347
11498
|
/**
|
|
11348
11499
|
* resolve inner component definition (handle possible async component)
|
|
11349
11500
|
*/
|
|
@@ -11354,11 +11505,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11354
11505
|
for (let i = 0; i < this.attributes.length; i++) {
|
|
11355
11506
|
this._setAttr(this.attributes[i].name);
|
|
11356
11507
|
}
|
|
11357
|
-
this._ob = new MutationObserver((
|
|
11358
|
-
for (const m of mutations) {
|
|
11359
|
-
this._setAttr(m.attributeName);
|
|
11360
|
-
}
|
|
11361
|
-
});
|
|
11508
|
+
this._ob = new MutationObserver(this._processMutations.bind(this));
|
|
11362
11509
|
this._ob.observe(this, { attributes: true });
|
|
11363
11510
|
const resolve = (def, isAsync = false) => {
|
|
11364
11511
|
this._resolved = true;
|
|
@@ -11377,9 +11524,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11377
11524
|
}
|
|
11378
11525
|
}
|
|
11379
11526
|
this._numberProps = numberProps;
|
|
11380
|
-
|
|
11381
|
-
this._resolveProps(def);
|
|
11382
|
-
}
|
|
11527
|
+
this._resolveProps(def);
|
|
11383
11528
|
if (this.shadowRoot) {
|
|
11384
11529
|
this._applyStyles(styles);
|
|
11385
11530
|
} else if (styles) {
|
|
@@ -11391,9 +11536,10 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11391
11536
|
};
|
|
11392
11537
|
const asyncDef = this._def.__asyncLoader;
|
|
11393
11538
|
if (asyncDef) {
|
|
11394
|
-
this._pendingResolve = asyncDef().then(
|
|
11395
|
-
|
|
11396
|
-
|
|
11539
|
+
this._pendingResolve = asyncDef().then((def) => {
|
|
11540
|
+
def.configureApp = this._def.configureApp;
|
|
11541
|
+
resolve(this._def = def, true);
|
|
11542
|
+
});
|
|
11397
11543
|
} else {
|
|
11398
11544
|
resolve(this._def);
|
|
11399
11545
|
}
|
|
@@ -11403,6 +11549,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11403
11549
|
def.name = "VueElement";
|
|
11404
11550
|
}
|
|
11405
11551
|
this._app = this._createApp(def);
|
|
11552
|
+
this._inheritParentContext();
|
|
11406
11553
|
if (def.configureApp) {
|
|
11407
11554
|
def.configureApp(this._app);
|
|
11408
11555
|
}
|
|
@@ -11474,7 +11621,10 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11474
11621
|
}
|
|
11475
11622
|
if (shouldReflect) {
|
|
11476
11623
|
const ob = this._ob;
|
|
11477
|
-
|
|
11624
|
+
if (ob) {
|
|
11625
|
+
this._processMutations(ob.takeRecords());
|
|
11626
|
+
ob.disconnect();
|
|
11627
|
+
}
|
|
11478
11628
|
if (val === true) {
|
|
11479
11629
|
this.setAttribute(hyphenate(key), "");
|
|
11480
11630
|
} else if (typeof val === "string" || typeof val === "number") {
|
|
@@ -11487,7 +11637,9 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11487
11637
|
}
|
|
11488
11638
|
}
|
|
11489
11639
|
_update() {
|
|
11490
|
-
|
|
11640
|
+
const vnode = this._createVNode();
|
|
11641
|
+
if (this._app) vnode.appContext = this._app._context;
|
|
11642
|
+
render(vnode, this._root);
|
|
11491
11643
|
}
|
|
11492
11644
|
_createVNode() {
|
|
11493
11645
|
const baseProps = {};
|
|
@@ -11576,7 +11728,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11576
11728
|
* Only called when shadowRoot is false
|
|
11577
11729
|
*/
|
|
11578
11730
|
_renderSlots() {
|
|
11579
|
-
const outlets =
|
|
11731
|
+
const outlets = this._getSlots();
|
|
11580
11732
|
const scopeId = this._instance.type.__scopeId;
|
|
11581
11733
|
for (let i = 0; i < outlets.length; i++) {
|
|
11582
11734
|
const o = outlets[i];
|
|
@@ -11602,6 +11754,19 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11602
11754
|
parent.removeChild(o);
|
|
11603
11755
|
}
|
|
11604
11756
|
}
|
|
11757
|
+
/**
|
|
11758
|
+
* @internal
|
|
11759
|
+
*/
|
|
11760
|
+
_getSlots() {
|
|
11761
|
+
const roots = [this];
|
|
11762
|
+
if (this._teleportTargets) {
|
|
11763
|
+
roots.push(...this._teleportTargets);
|
|
11764
|
+
}
|
|
11765
|
+
return roots.reduce((res, i) => {
|
|
11766
|
+
res.push(...Array.from(i.querySelectorAll("slot")));
|
|
11767
|
+
return res;
|
|
11768
|
+
}, []);
|
|
11769
|
+
}
|
|
11605
11770
|
/**
|
|
11606
11771
|
* @internal
|
|
11607
11772
|
*/
|
|
@@ -11685,12 +11850,13 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11685
11850
|
instance.vnode.el,
|
|
11686
11851
|
moveClass
|
|
11687
11852
|
)) {
|
|
11853
|
+
prevChildren = [];
|
|
11688
11854
|
return;
|
|
11689
11855
|
}
|
|
11690
11856
|
prevChildren.forEach(callPendingCbs);
|
|
11691
11857
|
prevChildren.forEach(recordPosition);
|
|
11692
11858
|
const movedChildren = prevChildren.filter(applyTranslation);
|
|
11693
|
-
forceReflow();
|
|
11859
|
+
forceReflow(instance.vnode.el);
|
|
11694
11860
|
movedChildren.forEach((c) => {
|
|
11695
11861
|
const el = c.el;
|
|
11696
11862
|
const style = el.style;
|
|
@@ -11700,7 +11866,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11700
11866
|
if (e && e.target !== el) {
|
|
11701
11867
|
return;
|
|
11702
11868
|
}
|
|
11703
|
-
if (!e ||
|
|
11869
|
+
if (!e || e.propertyName.endsWith("transform")) {
|
|
11704
11870
|
el.removeEventListener("transitionend", cb);
|
|
11705
11871
|
el[moveCbKey] = null;
|
|
11706
11872
|
removeTransitionClass(el, moveClass);
|
|
@@ -11708,6 +11874,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11708
11874
|
};
|
|
11709
11875
|
el.addEventListener("transitionend", cb);
|
|
11710
11876
|
});
|
|
11877
|
+
prevChildren = [];
|
|
11711
11878
|
});
|
|
11712
11879
|
return () => {
|
|
11713
11880
|
const rawProps = toRaw(props);
|
|
@@ -12056,13 +12223,13 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12056
12223
|
const withModifiers = (fn, modifiers) => {
|
|
12057
12224
|
const cache = fn._withMods || (fn._withMods = {});
|
|
12058
12225
|
const cacheKey = modifiers.join(".");
|
|
12059
|
-
return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => {
|
|
12226
|
+
return cache[cacheKey] || (cache[cacheKey] = ((event, ...args) => {
|
|
12060
12227
|
for (let i = 0; i < modifiers.length; i++) {
|
|
12061
12228
|
const guard = modifierGuards[modifiers[i]];
|
|
12062
12229
|
if (guard && guard(event, modifiers)) return;
|
|
12063
12230
|
}
|
|
12064
12231
|
return fn(event, ...args);
|
|
12065
|
-
});
|
|
12232
|
+
}));
|
|
12066
12233
|
};
|
|
12067
12234
|
const keyNames = {
|
|
12068
12235
|
esc: "escape",
|
|
@@ -12076,7 +12243,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12076
12243
|
const withKeys = (fn, modifiers) => {
|
|
12077
12244
|
const cache = fn._withKeys || (fn._withKeys = {});
|
|
12078
12245
|
const cacheKey = modifiers.join(".");
|
|
12079
|
-
return cache[cacheKey] || (cache[cacheKey] = (event) => {
|
|
12246
|
+
return cache[cacheKey] || (cache[cacheKey] = ((event) => {
|
|
12080
12247
|
if (!("key" in event)) {
|
|
12081
12248
|
return;
|
|
12082
12249
|
}
|
|
@@ -12086,7 +12253,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12086
12253
|
)) {
|
|
12087
12254
|
return fn(event);
|
|
12088
12255
|
}
|
|
12089
|
-
});
|
|
12256
|
+
}));
|
|
12090
12257
|
};
|
|
12091
12258
|
|
|
12092
12259
|
const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|
|
@@ -12100,13 +12267,13 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12100
12267
|
enabledHydration = true;
|
|
12101
12268
|
return renderer;
|
|
12102
12269
|
}
|
|
12103
|
-
const render = (...args) => {
|
|
12270
|
+
const render = ((...args) => {
|
|
12104
12271
|
ensureRenderer().render(...args);
|
|
12105
|
-
};
|
|
12106
|
-
const hydrate = (...args) => {
|
|
12272
|
+
});
|
|
12273
|
+
const hydrate = ((...args) => {
|
|
12107
12274
|
ensureHydrationRenderer().hydrate(...args);
|
|
12108
|
-
};
|
|
12109
|
-
const createApp = (...args) => {
|
|
12275
|
+
});
|
|
12276
|
+
const createApp = ((...args) => {
|
|
12110
12277
|
const app = ensureRenderer().createApp(...args);
|
|
12111
12278
|
{
|
|
12112
12279
|
injectNativeTagCheck(app);
|
|
@@ -12131,8 +12298,8 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12131
12298
|
return proxy;
|
|
12132
12299
|
};
|
|
12133
12300
|
return app;
|
|
12134
|
-
};
|
|
12135
|
-
const createSSRApp = (...args) => {
|
|
12301
|
+
});
|
|
12302
|
+
const createSSRApp = ((...args) => {
|
|
12136
12303
|
const app = ensureHydrationRenderer().createApp(...args);
|
|
12137
12304
|
{
|
|
12138
12305
|
injectNativeTagCheck(app);
|
|
@@ -12146,7 +12313,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12146
12313
|
}
|
|
12147
12314
|
};
|
|
12148
12315
|
return app;
|
|
12149
|
-
};
|
|
12316
|
+
});
|
|
12150
12317
|
function resolveRootNamespace(container) {
|
|
12151
12318
|
if (container instanceof SVGElement) {
|
|
12152
12319
|
return "svg";
|