vue 3.5.19 → 3.5.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue.cjs.js +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +92 -58
- package/dist/vue.esm-browser.prod.js +9 -9
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +92 -58
- package/dist/vue.global.prod.js +9 -9
- package/dist/vue.runtime.esm-browser.js +88 -54
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +88 -54
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +6 -6
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.5.
|
|
2
|
+
* vue v3.5.21
|
|
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);
|
|
@@ -64,10 +63,10 @@ var Vue = (function (exports) {
|
|
|
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;
|
|
@@ -1094,7 +1093,7 @@ var Vue = (function (exports) {
|
|
|
1094
1093
|
join(separator) {
|
|
1095
1094
|
return reactiveReadArray(this).join(separator);
|
|
1096
1095
|
},
|
|
1097
|
-
// keys() iterator only reads `length`, no
|
|
1096
|
+
// keys() iterator only reads `length`, no optimization required
|
|
1098
1097
|
lastIndexOf(...args) {
|
|
1099
1098
|
return searchProxy(this, "lastIndexOf", args);
|
|
1100
1099
|
},
|
|
@@ -1446,7 +1445,7 @@ var Vue = (function (exports) {
|
|
|
1446
1445
|
get size() {
|
|
1447
1446
|
const target = this["__v_raw"];
|
|
1448
1447
|
!readonly && track(toRaw(target), "iterate", ITERATE_KEY);
|
|
1449
|
-
return
|
|
1448
|
+
return target.size;
|
|
1450
1449
|
},
|
|
1451
1450
|
has(key) {
|
|
1452
1451
|
const target = this["__v_raw"];
|
|
@@ -2157,11 +2156,11 @@ var Vue = (function (exports) {
|
|
|
2157
2156
|
if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
|
|
2158
2157
|
return value;
|
|
2159
2158
|
}
|
|
2160
|
-
seen = seen || /* @__PURE__ */ new
|
|
2161
|
-
if (seen.
|
|
2159
|
+
seen = seen || /* @__PURE__ */ new Map();
|
|
2160
|
+
if ((seen.get(value) || 0) >= depth) {
|
|
2162
2161
|
return value;
|
|
2163
2162
|
}
|
|
2164
|
-
seen.
|
|
2163
|
+
seen.set(value, depth);
|
|
2165
2164
|
depth--;
|
|
2166
2165
|
if (isRef(value)) {
|
|
2167
2166
|
traverse(value.value, depth, seen);
|
|
@@ -2623,11 +2622,14 @@ var Vue = (function (exports) {
|
|
|
2623
2622
|
let isHmrUpdating = false;
|
|
2624
2623
|
const hmrDirtyComponents = /* @__PURE__ */ new Map();
|
|
2625
2624
|
{
|
|
2626
|
-
getGlobalThis()
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2625
|
+
const g = getGlobalThis();
|
|
2626
|
+
if (!g.__VUE_HMR_RUNTIME__) {
|
|
2627
|
+
g.__VUE_HMR_RUNTIME__ = {
|
|
2628
|
+
createRecord: tryWrap(createRecord),
|
|
2629
|
+
rerender: tryWrap(rerender),
|
|
2630
|
+
reload: tryWrap(reload)
|
|
2631
|
+
};
|
|
2632
|
+
}
|
|
2631
2633
|
}
|
|
2632
2634
|
const map = /* @__PURE__ */ new Map();
|
|
2633
2635
|
function registerHMR(instance) {
|
|
@@ -2700,10 +2702,12 @@ var Vue = (function (exports) {
|
|
|
2700
2702
|
dirtyInstances.delete(instance);
|
|
2701
2703
|
} else if (instance.parent) {
|
|
2702
2704
|
queueJob(() => {
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2705
|
+
if (!(instance.job.flags & 8)) {
|
|
2706
|
+
isHmrUpdating = true;
|
|
2707
|
+
instance.parent.update();
|
|
2708
|
+
isHmrUpdating = false;
|
|
2709
|
+
dirtyInstances.delete(instance);
|
|
2710
|
+
}
|
|
2707
2711
|
});
|
|
2708
2712
|
} else if (instance.appContext.reload) {
|
|
2709
2713
|
instance.appContext.reload();
|
|
@@ -2807,7 +2811,6 @@ var Vue = (function (exports) {
|
|
|
2807
2811
|
_devtoolsComponentRemoved(component);
|
|
2808
2812
|
}
|
|
2809
2813
|
};
|
|
2810
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
2811
2814
|
// @__NO_SIDE_EFFECTS__
|
|
2812
2815
|
function createDevtoolsComponentHook(hook) {
|
|
2813
2816
|
return (component) => {
|
|
@@ -3205,26 +3208,34 @@ var Vue = (function (exports) {
|
|
|
3205
3208
|
function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, {
|
|
3206
3209
|
o: { nextSibling, parentNode, querySelector, insert, createText }
|
|
3207
3210
|
}, hydrateChildren) {
|
|
3211
|
+
function hydrateDisabledTeleport(node2, vnode2, targetStart, targetAnchor) {
|
|
3212
|
+
vnode2.anchor = hydrateChildren(
|
|
3213
|
+
nextSibling(node2),
|
|
3214
|
+
vnode2,
|
|
3215
|
+
parentNode(node2),
|
|
3216
|
+
parentComponent,
|
|
3217
|
+
parentSuspense,
|
|
3218
|
+
slotScopeIds,
|
|
3219
|
+
optimized
|
|
3220
|
+
);
|
|
3221
|
+
vnode2.targetStart = targetStart;
|
|
3222
|
+
vnode2.targetAnchor = targetAnchor;
|
|
3223
|
+
}
|
|
3208
3224
|
const target = vnode.target = resolveTarget(
|
|
3209
3225
|
vnode.props,
|
|
3210
3226
|
querySelector
|
|
3211
3227
|
);
|
|
3228
|
+
const disabled = isTeleportDisabled(vnode.props);
|
|
3212
3229
|
if (target) {
|
|
3213
|
-
const disabled = isTeleportDisabled(vnode.props);
|
|
3214
3230
|
const targetNode = target._lpa || target.firstChild;
|
|
3215
3231
|
if (vnode.shapeFlag & 16) {
|
|
3216
3232
|
if (disabled) {
|
|
3217
|
-
|
|
3218
|
-
|
|
3233
|
+
hydrateDisabledTeleport(
|
|
3234
|
+
node,
|
|
3219
3235
|
vnode,
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
parentSuspense,
|
|
3223
|
-
slotScopeIds,
|
|
3224
|
-
optimized
|
|
3236
|
+
targetNode,
|
|
3237
|
+
targetNode && nextSibling(targetNode)
|
|
3225
3238
|
);
|
|
3226
|
-
vnode.targetStart = targetNode;
|
|
3227
|
-
vnode.targetAnchor = targetNode && nextSibling(targetNode);
|
|
3228
3239
|
} else {
|
|
3229
3240
|
vnode.anchor = nextSibling(node);
|
|
3230
3241
|
let targetAnchor = targetNode;
|
|
@@ -3255,6 +3266,10 @@ var Vue = (function (exports) {
|
|
|
3255
3266
|
}
|
|
3256
3267
|
}
|
|
3257
3268
|
updateCssVars(vnode, disabled);
|
|
3269
|
+
} else if (disabled) {
|
|
3270
|
+
if (vnode.shapeFlag & 16) {
|
|
3271
|
+
hydrateDisabledTeleport(node, vnode, node, nextSibling(node));
|
|
3272
|
+
}
|
|
3258
3273
|
}
|
|
3259
3274
|
return vnode.anchor && nextSibling(vnode.anchor);
|
|
3260
3275
|
}
|
|
@@ -3366,7 +3381,7 @@ var Vue = (function (exports) {
|
|
|
3366
3381
|
setTransitionHooks(innerChild, enterHooks);
|
|
3367
3382
|
}
|
|
3368
3383
|
let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree);
|
|
3369
|
-
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(
|
|
3384
|
+
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(oldInnerChild, innerChild) && recursiveGetSubtree(instance).type !== Comment) {
|
|
3370
3385
|
let leavingHooks = resolveTransitionHooks(
|
|
3371
3386
|
oldInnerChild,
|
|
3372
3387
|
rawProps,
|
|
@@ -3646,7 +3661,6 @@ var Vue = (function (exports) {
|
|
|
3646
3661
|
return ret;
|
|
3647
3662
|
}
|
|
3648
3663
|
|
|
3649
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
3650
3664
|
// @__NO_SIDE_EFFECTS__
|
|
3651
3665
|
function defineComponent(options, extraOptions) {
|
|
3652
3666
|
return isFunction(options) ? (
|
|
@@ -3699,6 +3713,7 @@ var Vue = (function (exports) {
|
|
|
3699
3713
|
return ret;
|
|
3700
3714
|
}
|
|
3701
3715
|
|
|
3716
|
+
const pendingSetRefMap = /* @__PURE__ */ new WeakMap();
|
|
3702
3717
|
function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
3703
3718
|
if (isArray(rawRef)) {
|
|
3704
3719
|
rawRef.forEach(
|
|
@@ -3748,6 +3763,7 @@ var Vue = (function (exports) {
|
|
|
3748
3763
|
return !knownTemplateRefs.has(ref2);
|
|
3749
3764
|
};
|
|
3750
3765
|
if (oldRef != null && oldRef !== ref) {
|
|
3766
|
+
invalidatePendingSetRef(oldRawRef);
|
|
3751
3767
|
if (isString(oldRef)) {
|
|
3752
3768
|
refs[oldRef] = null;
|
|
3753
3769
|
if (canSetSetupRef(oldRef)) {
|
|
@@ -3805,9 +3821,15 @@ var Vue = (function (exports) {
|
|
|
3805
3821
|
}
|
|
3806
3822
|
};
|
|
3807
3823
|
if (value) {
|
|
3808
|
-
|
|
3809
|
-
|
|
3824
|
+
const job = () => {
|
|
3825
|
+
doSet();
|
|
3826
|
+
pendingSetRefMap.delete(rawRef);
|
|
3827
|
+
};
|
|
3828
|
+
job.id = -1;
|
|
3829
|
+
pendingSetRefMap.set(rawRef, job);
|
|
3830
|
+
queuePostRenderEffect(job, parentSuspense);
|
|
3810
3831
|
} else {
|
|
3832
|
+
invalidatePendingSetRef(rawRef);
|
|
3811
3833
|
doSet();
|
|
3812
3834
|
}
|
|
3813
3835
|
} else {
|
|
@@ -3815,6 +3837,13 @@ var Vue = (function (exports) {
|
|
|
3815
3837
|
}
|
|
3816
3838
|
}
|
|
3817
3839
|
}
|
|
3840
|
+
function invalidatePendingSetRef(rawRef) {
|
|
3841
|
+
const pendingSetRef = pendingSetRefMap.get(rawRef);
|
|
3842
|
+
if (pendingSetRef) {
|
|
3843
|
+
pendingSetRef.flags |= 8;
|
|
3844
|
+
pendingSetRefMap.delete(rawRef);
|
|
3845
|
+
}
|
|
3846
|
+
}
|
|
3818
3847
|
|
|
3819
3848
|
let hasLoggedMismatchError = false;
|
|
3820
3849
|
const logMismatchError = () => {
|
|
@@ -4547,7 +4576,6 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4547
4576
|
}
|
|
4548
4577
|
|
|
4549
4578
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
4550
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
4551
4579
|
// @__NO_SIDE_EFFECTS__
|
|
4552
4580
|
function defineAsyncComponent(source) {
|
|
4553
4581
|
if (isFunction(source)) {
|
|
@@ -8548,8 +8576,9 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8548
8576
|
);
|
|
8549
8577
|
}
|
|
8550
8578
|
}
|
|
8579
|
+
const mixinEmitsCache = /* @__PURE__ */ new WeakMap();
|
|
8551
8580
|
function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
8552
|
-
const cache = appContext.emitsCache;
|
|
8581
|
+
const cache = asMixin ? mixinEmitsCache : appContext.emitsCache;
|
|
8553
8582
|
const cached = cache.get(comp);
|
|
8554
8583
|
if (cached !== void 0) {
|
|
8555
8584
|
return cached;
|
|
@@ -8997,7 +9026,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8997
9026
|
const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense;
|
|
8998
9027
|
if (pendingBranch) {
|
|
8999
9028
|
suspense.pendingBranch = newBranch;
|
|
9000
|
-
if (isSameVNodeType(
|
|
9029
|
+
if (isSameVNodeType(pendingBranch, newBranch)) {
|
|
9001
9030
|
patch(
|
|
9002
9031
|
pendingBranch,
|
|
9003
9032
|
newBranch,
|
|
@@ -9068,7 +9097,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9068
9097
|
);
|
|
9069
9098
|
setActiveBranch(suspense, newFallback);
|
|
9070
9099
|
}
|
|
9071
|
-
} else if (activeBranch && isSameVNodeType(
|
|
9100
|
+
} else if (activeBranch && isSameVNodeType(activeBranch, newBranch)) {
|
|
9072
9101
|
patch(
|
|
9073
9102
|
activeBranch,
|
|
9074
9103
|
newBranch,
|
|
@@ -9099,7 +9128,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9099
9128
|
}
|
|
9100
9129
|
}
|
|
9101
9130
|
} else {
|
|
9102
|
-
if (activeBranch && isSameVNodeType(
|
|
9131
|
+
if (activeBranch && isSameVNodeType(activeBranch, newBranch)) {
|
|
9103
9132
|
patch(
|
|
9104
9133
|
activeBranch,
|
|
9105
9134
|
newBranch,
|
|
@@ -10242,7 +10271,7 @@ Component that was made reactive: `,
|
|
|
10242
10271
|
return instance.proxy;
|
|
10243
10272
|
}
|
|
10244
10273
|
}
|
|
10245
|
-
const classifyRE = /(?:^|[-_])
|
|
10274
|
+
const classifyRE = /(?:^|[-_])\w/g;
|
|
10246
10275
|
const classify = (str) => str.replace(classifyRE, (c) => c.toUpperCase()).replace(/[-_]/g, "");
|
|
10247
10276
|
function getComponentName(Component, includeInferred = true) {
|
|
10248
10277
|
return isFunction(Component) ? Component.displayName || Component.name : Component.name || includeInferred && Component.__name;
|
|
@@ -10285,15 +10314,23 @@ Component that was made reactive: `,
|
|
|
10285
10314
|
};
|
|
10286
10315
|
|
|
10287
10316
|
function h(type, propsOrChildren, children) {
|
|
10317
|
+
const doCreateVNode = (type2, props, children2) => {
|
|
10318
|
+
setBlockTracking(-1);
|
|
10319
|
+
try {
|
|
10320
|
+
return createVNode(type2, props, children2);
|
|
10321
|
+
} finally {
|
|
10322
|
+
setBlockTracking(1);
|
|
10323
|
+
}
|
|
10324
|
+
};
|
|
10288
10325
|
const l = arguments.length;
|
|
10289
10326
|
if (l === 2) {
|
|
10290
10327
|
if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
|
|
10291
10328
|
if (isVNode(propsOrChildren)) {
|
|
10292
|
-
return
|
|
10329
|
+
return doCreateVNode(type, null, [propsOrChildren]);
|
|
10293
10330
|
}
|
|
10294
|
-
return
|
|
10331
|
+
return doCreateVNode(type, propsOrChildren);
|
|
10295
10332
|
} else {
|
|
10296
|
-
return
|
|
10333
|
+
return doCreateVNode(type, null, propsOrChildren);
|
|
10297
10334
|
}
|
|
10298
10335
|
} else {
|
|
10299
10336
|
if (l > 3) {
|
|
@@ -10301,7 +10338,7 @@ Component that was made reactive: `,
|
|
|
10301
10338
|
} else if (l === 3 && isVNode(children)) {
|
|
10302
10339
|
children = [children];
|
|
10303
10340
|
}
|
|
10304
|
-
return
|
|
10341
|
+
return doCreateVNode(type, propsOrChildren, children);
|
|
10305
10342
|
}
|
|
10306
10343
|
}
|
|
10307
10344
|
|
|
@@ -10511,7 +10548,7 @@ Component that was made reactive: `,
|
|
|
10511
10548
|
return true;
|
|
10512
10549
|
}
|
|
10513
10550
|
|
|
10514
|
-
const version = "3.5.
|
|
10551
|
+
const version = "3.5.21";
|
|
10515
10552
|
const warn = warn$1 ;
|
|
10516
10553
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10517
10554
|
const devtools = devtools$1 ;
|
|
@@ -10858,7 +10895,7 @@ Component that was made reactive: `,
|
|
|
10858
10895
|
type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION : ANIMATION : null;
|
|
10859
10896
|
propCount = type ? type === TRANSITION ? transitionDurations.length : animationDurations.length : 0;
|
|
10860
10897
|
}
|
|
10861
|
-
const hasTransform = type === TRANSITION && /\b(transform|all)(
|
|
10898
|
+
const hasTransform = type === TRANSITION && /\b(?:transform|all)(?:,|$)/.test(
|
|
10862
10899
|
getStyleProperties(`${TRANSITION}Property`).toString()
|
|
10863
10900
|
);
|
|
10864
10901
|
return {
|
|
@@ -10899,6 +10936,8 @@ Component that was made reactive: `,
|
|
|
10899
10936
|
const vShowOriginalDisplay = Symbol("_vod");
|
|
10900
10937
|
const vShowHidden = Symbol("_vsh");
|
|
10901
10938
|
const vShow = {
|
|
10939
|
+
// used for prop mismatch check during hydration
|
|
10940
|
+
name: "show",
|
|
10902
10941
|
beforeMount(el, { value }, { transition }) {
|
|
10903
10942
|
el[vShowOriginalDisplay] = el.style.display === "none" ? "" : el.style.display;
|
|
10904
10943
|
if (transition && value) {
|
|
@@ -10932,9 +10971,6 @@ Component that was made reactive: `,
|
|
|
10932
10971
|
setDisplay(el, value);
|
|
10933
10972
|
}
|
|
10934
10973
|
};
|
|
10935
|
-
{
|
|
10936
|
-
vShow.name = "show";
|
|
10937
|
-
}
|
|
10938
10974
|
function setDisplay(el, value) {
|
|
10939
10975
|
el.style.display = value ? el[vShowOriginalDisplay] : "none";
|
|
10940
10976
|
el[vShowHidden] = !value;
|
|
@@ -11013,7 +11049,7 @@ Component that was made reactive: `,
|
|
|
11013
11049
|
}
|
|
11014
11050
|
}
|
|
11015
11051
|
|
|
11016
|
-
const displayRE = /(
|
|
11052
|
+
const displayRE = /(?:^|;)\s*display\s*:/;
|
|
11017
11053
|
function patchStyle(el, prev, next) {
|
|
11018
11054
|
const style = el.style;
|
|
11019
11055
|
const isCssString = isString(next);
|
|
@@ -11336,11 +11372,10 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11336
11372
|
}
|
|
11337
11373
|
|
|
11338
11374
|
const REMOVAL = {};
|
|
11339
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
11340
11375
|
// @__NO_SIDE_EFFECTS__
|
|
11341
11376
|
function defineCustomElement(options, extraOptions, _createApp) {
|
|
11342
|
-
|
|
11343
|
-
if (isPlainObject(Comp)) extend(Comp, extraOptions);
|
|
11377
|
+
let Comp = defineComponent(options, extraOptions);
|
|
11378
|
+
if (isPlainObject(Comp)) Comp = extend({}, Comp, extraOptions);
|
|
11344
11379
|
class VueCustomElement extends VueElement {
|
|
11345
11380
|
constructor(initialProps) {
|
|
11346
11381
|
super(Comp, initialProps, _createApp);
|
|
@@ -11349,7 +11384,6 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11349
11384
|
VueCustomElement.def = Comp;
|
|
11350
11385
|
return VueCustomElement;
|
|
11351
11386
|
}
|
|
11352
|
-
|
|
11353
11387
|
const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
11354
11388
|
return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
|
|
11355
11389
|
});
|
|
@@ -11810,7 +11844,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11810
11844
|
if (e && e.target !== el) {
|
|
11811
11845
|
return;
|
|
11812
11846
|
}
|
|
11813
|
-
if (!e ||
|
|
11847
|
+
if (!e || e.propertyName.endsWith("transform")) {
|
|
11814
11848
|
el.removeEventListener("transitionend", cb);
|
|
11815
11849
|
el[moveCbKey] = null;
|
|
11816
11850
|
removeTransitionClass(el, moveClass);
|