@vue/compat 3.5.2 → 3.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue.cjs.js +60 -66
- package/dist/vue.cjs.prod.js +45 -39
- package/dist/vue.esm-browser.js +60 -66
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +62 -68
- package/dist/vue.global.js +57 -65
- package/dist/vue.global.prod.js +2 -2
- package/dist/vue.runtime.esm-browser.js +57 -56
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +59 -58
- package/dist/vue.runtime.global.js +54 -55
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +2 -2
package/dist/vue.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.4
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -12,9 +12,10 @@ var sourceMapJs = require('source-map-js');
|
|
|
12
12
|
|
|
13
13
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
14
14
|
// @__NO_SIDE_EFFECTS__
|
|
15
|
-
function makeMap(str
|
|
16
|
-
const
|
|
17
|
-
|
|
15
|
+
function makeMap(str) {
|
|
16
|
+
const map = /* @__PURE__ */ Object.create(null);
|
|
17
|
+
for (const key of str.split(",")) map[key] = 1;
|
|
18
|
+
return (val) => val in map;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
const EMPTY_OBJ = Object.freeze({}) ;
|
|
@@ -728,7 +729,7 @@ function cleanupDeps(sub) {
|
|
|
728
729
|
}
|
|
729
730
|
function isDirty(sub) {
|
|
730
731
|
for (let link = sub.deps; link; link = link.nextDep) {
|
|
731
|
-
if (link.dep.version !== link.version || link.dep.computed && refreshComputed(link.dep.computed)
|
|
732
|
+
if (link.dep.version !== link.version || link.dep.computed && refreshComputed(link.dep.computed) || link.dep.version !== link.version) {
|
|
732
733
|
return true;
|
|
733
734
|
}
|
|
734
735
|
}
|
|
@@ -1004,9 +1005,23 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
1004
1005
|
globalVersion++;
|
|
1005
1006
|
return;
|
|
1006
1007
|
}
|
|
1007
|
-
|
|
1008
|
+
const run = (dep) => {
|
|
1009
|
+
if (dep) {
|
|
1010
|
+
{
|
|
1011
|
+
dep.trigger({
|
|
1012
|
+
target,
|
|
1013
|
+
type,
|
|
1014
|
+
key,
|
|
1015
|
+
newValue,
|
|
1016
|
+
oldValue,
|
|
1017
|
+
oldTarget
|
|
1018
|
+
});
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
};
|
|
1022
|
+
startBatch();
|
|
1008
1023
|
if (type === "clear") {
|
|
1009
|
-
|
|
1024
|
+
depsMap.forEach(run);
|
|
1010
1025
|
} else {
|
|
1011
1026
|
const targetIsArray = isArray(target);
|
|
1012
1027
|
const isArrayIndex = targetIsArray && isIntegerKey(key);
|
|
@@ -1014,57 +1029,43 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
1014
1029
|
const newLength = Number(newValue);
|
|
1015
1030
|
depsMap.forEach((dep, key2) => {
|
|
1016
1031
|
if (key2 === "length" || key2 === ARRAY_ITERATE_KEY || !isSymbol(key2) && key2 >= newLength) {
|
|
1017
|
-
|
|
1032
|
+
run(dep);
|
|
1018
1033
|
}
|
|
1019
1034
|
});
|
|
1020
1035
|
} else {
|
|
1021
|
-
const push = (dep) => dep && deps.push(dep);
|
|
1022
1036
|
if (key !== void 0) {
|
|
1023
|
-
|
|
1037
|
+
run(depsMap.get(key));
|
|
1024
1038
|
}
|
|
1025
1039
|
if (isArrayIndex) {
|
|
1026
|
-
|
|
1040
|
+
run(depsMap.get(ARRAY_ITERATE_KEY));
|
|
1027
1041
|
}
|
|
1028
1042
|
switch (type) {
|
|
1029
1043
|
case "add":
|
|
1030
1044
|
if (!targetIsArray) {
|
|
1031
|
-
|
|
1045
|
+
run(depsMap.get(ITERATE_KEY));
|
|
1032
1046
|
if (isMap(target)) {
|
|
1033
|
-
|
|
1047
|
+
run(depsMap.get(MAP_KEY_ITERATE_KEY));
|
|
1034
1048
|
}
|
|
1035
1049
|
} else if (isArrayIndex) {
|
|
1036
|
-
|
|
1050
|
+
run(depsMap.get("length"));
|
|
1037
1051
|
}
|
|
1038
1052
|
break;
|
|
1039
1053
|
case "delete":
|
|
1040
1054
|
if (!targetIsArray) {
|
|
1041
|
-
|
|
1055
|
+
run(depsMap.get(ITERATE_KEY));
|
|
1042
1056
|
if (isMap(target)) {
|
|
1043
|
-
|
|
1057
|
+
run(depsMap.get(MAP_KEY_ITERATE_KEY));
|
|
1044
1058
|
}
|
|
1045
1059
|
}
|
|
1046
1060
|
break;
|
|
1047
1061
|
case "set":
|
|
1048
1062
|
if (isMap(target)) {
|
|
1049
|
-
|
|
1063
|
+
run(depsMap.get(ITERATE_KEY));
|
|
1050
1064
|
}
|
|
1051
1065
|
break;
|
|
1052
1066
|
}
|
|
1053
1067
|
}
|
|
1054
1068
|
}
|
|
1055
|
-
startBatch();
|
|
1056
|
-
for (const dep of deps) {
|
|
1057
|
-
{
|
|
1058
|
-
dep.trigger({
|
|
1059
|
-
target,
|
|
1060
|
-
type,
|
|
1061
|
-
key,
|
|
1062
|
-
newValue,
|
|
1063
|
-
oldValue,
|
|
1064
|
-
oldTarget
|
|
1065
|
-
});
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
1069
|
endBatch();
|
|
1069
1070
|
}
|
|
1070
1071
|
function getDepFromReactive(object, key) {
|
|
@@ -1802,7 +1803,7 @@ function toRaw(observed) {
|
|
|
1802
1803
|
return raw ? toRaw(raw) : observed;
|
|
1803
1804
|
}
|
|
1804
1805
|
function markRaw(value) {
|
|
1805
|
-
if (Object.isExtensible(value)) {
|
|
1806
|
+
if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
|
|
1806
1807
|
def(value, "__v_skip", true);
|
|
1807
1808
|
}
|
|
1808
1809
|
return value;
|
|
@@ -2701,23 +2702,19 @@ function flushJobs(seen) {
|
|
|
2701
2702
|
}
|
|
2702
2703
|
}
|
|
2703
2704
|
function checkRecursiveUpdates(seen, fn) {
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
const
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
10
|
|
2715
|
-
);
|
|
2716
|
-
return true;
|
|
2717
|
-
} else {
|
|
2718
|
-
seen.set(fn, count + 1);
|
|
2719
|
-
}
|
|
2705
|
+
const count = seen.get(fn) || 0;
|
|
2706
|
+
if (count > RECURSION_LIMIT) {
|
|
2707
|
+
const instance = fn.i;
|
|
2708
|
+
const componentName = instance && getComponentName(instance.type);
|
|
2709
|
+
handleError(
|
|
2710
|
+
`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
2711
|
+
null,
|
|
2712
|
+
10
|
|
2713
|
+
);
|
|
2714
|
+
return true;
|
|
2720
2715
|
}
|
|
2716
|
+
seen.set(fn, count + 1);
|
|
2717
|
+
return false;
|
|
2721
2718
|
}
|
|
2722
2719
|
|
|
2723
2720
|
let isHmrUpdating = false;
|
|
@@ -4200,6 +4197,7 @@ function getInnerChild$1(vnode) {
|
|
|
4200
4197
|
}
|
|
4201
4198
|
function setTransitionHooks(vnode, hooks) {
|
|
4202
4199
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
4200
|
+
vnode.transition = hooks;
|
|
4203
4201
|
setTransitionHooks(vnode.component.subTree, hooks);
|
|
4204
4202
|
} else if (vnode.shapeFlag & 128) {
|
|
4205
4203
|
vnode.ssContent.transition = hooks.clone(vnode.ssContent);
|
|
@@ -4244,7 +4242,7 @@ function defineComponent(options, extraOptions) {
|
|
|
4244
4242
|
function useId() {
|
|
4245
4243
|
const i = getCurrentInstance();
|
|
4246
4244
|
if (i) {
|
|
4247
|
-
return (i.appContext.config.idPrefix || "v") + "
|
|
4245
|
+
return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
|
|
4248
4246
|
} else {
|
|
4249
4247
|
warn$1(
|
|
4250
4248
|
`useId() is called when there is no active component instance to be associated with.`
|
|
@@ -5892,13 +5890,15 @@ function renderList(source, renderItem, cache, index) {
|
|
|
5892
5890
|
const sourceIsArray = isArray(source);
|
|
5893
5891
|
if (sourceIsArray || isString(source)) {
|
|
5894
5892
|
const sourceIsReactiveArray = sourceIsArray && isReactive(source);
|
|
5893
|
+
let needsWrap = false;
|
|
5895
5894
|
if (sourceIsReactiveArray) {
|
|
5895
|
+
needsWrap = !isShallow(source);
|
|
5896
5896
|
source = shallowReadArray(source);
|
|
5897
5897
|
}
|
|
5898
5898
|
ret = new Array(source.length);
|
|
5899
5899
|
for (let i = 0, l = source.length; i < l; i++) {
|
|
5900
5900
|
ret[i] = renderItem(
|
|
5901
|
-
|
|
5901
|
+
needsWrap ? toReactive(source[i]) : source[i],
|
|
5902
5902
|
i,
|
|
5903
5903
|
void 0,
|
|
5904
5904
|
cached && cached[i]
|
|
@@ -7149,7 +7149,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7149
7149
|
return vm;
|
|
7150
7150
|
}
|
|
7151
7151
|
}
|
|
7152
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7152
|
+
Vue.version = `2.6.14-compat:${"3.5.4"}`;
|
|
7153
7153
|
Vue.config = singletonApp.config;
|
|
7154
7154
|
Vue.use = (plugin, ...options) => {
|
|
7155
7155
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9054,7 +9054,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9054
9054
|
endMeasure(instance, `hydrate`);
|
|
9055
9055
|
}
|
|
9056
9056
|
};
|
|
9057
|
-
if (isAsyncWrapperVNode) {
|
|
9057
|
+
if (isAsyncWrapperVNode && type.__asyncHydrate) {
|
|
9058
9058
|
type.__asyncHydrate(
|
|
9059
9059
|
el,
|
|
9060
9060
|
instance,
|
|
@@ -10262,8 +10262,7 @@ function renderComponentRoot(instance) {
|
|
|
10262
10262
|
data,
|
|
10263
10263
|
setupState,
|
|
10264
10264
|
ctx,
|
|
10265
|
-
inheritAttrs
|
|
10266
|
-
isMounted
|
|
10265
|
+
inheritAttrs
|
|
10267
10266
|
} = instance;
|
|
10268
10267
|
const prev = setCurrentRenderingInstance(instance);
|
|
10269
10268
|
let result;
|
|
@@ -10404,7 +10403,7 @@ function renderComponentRoot(instance) {
|
|
|
10404
10403
|
`Component inside <Transition> renders non-element root node that cannot be animated.`
|
|
10405
10404
|
);
|
|
10406
10405
|
}
|
|
10407
|
-
root
|
|
10406
|
+
setTransitionHooks(root, vnode.transition);
|
|
10408
10407
|
}
|
|
10409
10408
|
if (setRoot) {
|
|
10410
10409
|
setRoot(root);
|
|
@@ -12263,7 +12262,7 @@ function isMemoSame(cached, memo) {
|
|
|
12263
12262
|
return true;
|
|
12264
12263
|
}
|
|
12265
12264
|
|
|
12266
|
-
const version = "3.5.
|
|
12265
|
+
const version = "3.5.4";
|
|
12267
12266
|
const warn = warn$1 ;
|
|
12268
12267
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12269
12268
|
const devtools = devtools$1 ;
|
|
@@ -12276,7 +12275,9 @@ const _ssrUtils = {
|
|
|
12276
12275
|
isVNode: isVNode,
|
|
12277
12276
|
normalizeVNode,
|
|
12278
12277
|
getComponentPublicInstance,
|
|
12279
|
-
ensureValidVNode
|
|
12278
|
+
ensureValidVNode,
|
|
12279
|
+
pushWarningContext,
|
|
12280
|
+
popWarningContext
|
|
12280
12281
|
};
|
|
12281
12282
|
const ssrUtils = _ssrUtils ;
|
|
12282
12283
|
const resolveFilter = resolveFilter$1 ;
|
|
@@ -17553,10 +17554,8 @@ function createRootCodegen(root, context) {
|
|
|
17553
17554
|
}
|
|
17554
17555
|
} else if (children.length > 1) {
|
|
17555
17556
|
let patchFlag = 64;
|
|
17556
|
-
let patchFlagText = PatchFlagNames[64];
|
|
17557
17557
|
if (children.filter((c) => c.type !== 3).length === 1) {
|
|
17558
17558
|
patchFlag |= 2048;
|
|
17559
|
-
patchFlagText += `, ${PatchFlagNames[2048]}`;
|
|
17560
17559
|
}
|
|
17561
17560
|
root.codegenNode = createVNodeCall(
|
|
17562
17561
|
context,
|
|
@@ -18818,10 +18817,8 @@ function createChildrenCodegenNode(branch, keyIndex, context) {
|
|
|
18818
18817
|
return vnodeCall;
|
|
18819
18818
|
} else {
|
|
18820
18819
|
let patchFlag = 64;
|
|
18821
|
-
let patchFlagText = PatchFlagNames[64];
|
|
18822
18820
|
if (!branch.isTemplateIf && children.filter((c) => c.type !== 3).length === 1) {
|
|
18823
18821
|
patchFlag |= 2048;
|
|
18824
|
-
patchFlagText += `, ${PatchFlagNames[2048]}`;
|
|
18825
18822
|
}
|
|
18826
18823
|
return createVNodeCall(
|
|
18827
18824
|
context,
|
|
@@ -20972,10 +20969,7 @@ const isNonKeyModifier = /* @__PURE__ */ makeMap(
|
|
|
20972
20969
|
`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`
|
|
20973
20970
|
);
|
|
20974
20971
|
const maybeKeyModifier = /* @__PURE__ */ makeMap("left,right");
|
|
20975
|
-
const isKeyboardEvent = /* @__PURE__ */ makeMap(
|
|
20976
|
-
`onkeyup,onkeydown,onkeypress`,
|
|
20977
|
-
true
|
|
20978
|
-
);
|
|
20972
|
+
const isKeyboardEvent = /* @__PURE__ */ makeMap(`onkeyup,onkeydown,onkeypress`);
|
|
20979
20973
|
const resolveModifiers = (key, modifiers, context, loc) => {
|
|
20980
20974
|
const keyModifiers = [];
|
|
20981
20975
|
const nonKeyModifiers = [];
|
|
@@ -20993,7 +20987,7 @@ const resolveModifiers = (key, modifiers, context, loc) => {
|
|
|
20993
20987
|
} else {
|
|
20994
20988
|
if (maybeKeyModifier(modifier)) {
|
|
20995
20989
|
if (isStaticExp(key)) {
|
|
20996
|
-
if (isKeyboardEvent(key.content)) {
|
|
20990
|
+
if (isKeyboardEvent(key.content.toLowerCase())) {
|
|
20997
20991
|
keyModifiers.push(modifier);
|
|
20998
20992
|
} else {
|
|
20999
20993
|
nonKeyModifiers.push(modifier);
|
|
@@ -21046,7 +21040,7 @@ const transformOn = (dir, node, context) => {
|
|
|
21046
21040
|
]);
|
|
21047
21041
|
}
|
|
21048
21042
|
if (keyModifiers.length && // if event name is dynamic, always wrap with keys guard
|
|
21049
|
-
(!isStaticExp(key) || isKeyboardEvent(key.content))) {
|
|
21043
|
+
(!isStaticExp(key) || isKeyboardEvent(key.content.toLowerCase()))) {
|
|
21050
21044
|
handlerExp = createCallExpression(context.helper(V_ON_WITH_KEYS), [
|
|
21051
21045
|
handlerExp,
|
|
21052
21046
|
JSON.stringify(keyModifiers)
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.4
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -12,9 +12,10 @@ var sourceMapJs = require('source-map-js');
|
|
|
12
12
|
|
|
13
13
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
14
14
|
// @__NO_SIDE_EFFECTS__
|
|
15
|
-
function makeMap(str
|
|
16
|
-
const
|
|
17
|
-
|
|
15
|
+
function makeMap(str) {
|
|
16
|
+
const map = /* @__PURE__ */ Object.create(null);
|
|
17
|
+
for (const key of str.split(",")) map[key] = 1;
|
|
18
|
+
return (val) => val in map;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
const EMPTY_OBJ = {};
|
|
@@ -634,7 +635,7 @@ function cleanupDeps(sub) {
|
|
|
634
635
|
}
|
|
635
636
|
function isDirty(sub) {
|
|
636
637
|
for (let link = sub.deps; link; link = link.nextDep) {
|
|
637
|
-
if (link.dep.version !== link.version || link.dep.computed && refreshComputed(link.dep.computed)
|
|
638
|
+
if (link.dep.version !== link.version || link.dep.computed && refreshComputed(link.dep.computed) || link.dep.version !== link.version) {
|
|
638
639
|
return true;
|
|
639
640
|
}
|
|
640
641
|
}
|
|
@@ -877,9 +878,16 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
877
878
|
globalVersion++;
|
|
878
879
|
return;
|
|
879
880
|
}
|
|
880
|
-
|
|
881
|
+
const run = (dep) => {
|
|
882
|
+
if (dep) {
|
|
883
|
+
{
|
|
884
|
+
dep.trigger();
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
};
|
|
888
|
+
startBatch();
|
|
881
889
|
if (type === "clear") {
|
|
882
|
-
|
|
890
|
+
depsMap.forEach(run);
|
|
883
891
|
} else {
|
|
884
892
|
const targetIsArray = isArray(target);
|
|
885
893
|
const isArrayIndex = targetIsArray && isIntegerKey(key);
|
|
@@ -887,50 +895,43 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
887
895
|
const newLength = Number(newValue);
|
|
888
896
|
depsMap.forEach((dep, key2) => {
|
|
889
897
|
if (key2 === "length" || key2 === ARRAY_ITERATE_KEY || !isSymbol(key2) && key2 >= newLength) {
|
|
890
|
-
|
|
898
|
+
run(dep);
|
|
891
899
|
}
|
|
892
900
|
});
|
|
893
901
|
} else {
|
|
894
|
-
const push = (dep) => dep && deps.push(dep);
|
|
895
902
|
if (key !== void 0) {
|
|
896
|
-
|
|
903
|
+
run(depsMap.get(key));
|
|
897
904
|
}
|
|
898
905
|
if (isArrayIndex) {
|
|
899
|
-
|
|
906
|
+
run(depsMap.get(ARRAY_ITERATE_KEY));
|
|
900
907
|
}
|
|
901
908
|
switch (type) {
|
|
902
909
|
case "add":
|
|
903
910
|
if (!targetIsArray) {
|
|
904
|
-
|
|
911
|
+
run(depsMap.get(ITERATE_KEY));
|
|
905
912
|
if (isMap(target)) {
|
|
906
|
-
|
|
913
|
+
run(depsMap.get(MAP_KEY_ITERATE_KEY));
|
|
907
914
|
}
|
|
908
915
|
} else if (isArrayIndex) {
|
|
909
|
-
|
|
916
|
+
run(depsMap.get("length"));
|
|
910
917
|
}
|
|
911
918
|
break;
|
|
912
919
|
case "delete":
|
|
913
920
|
if (!targetIsArray) {
|
|
914
|
-
|
|
921
|
+
run(depsMap.get(ITERATE_KEY));
|
|
915
922
|
if (isMap(target)) {
|
|
916
|
-
|
|
923
|
+
run(depsMap.get(MAP_KEY_ITERATE_KEY));
|
|
917
924
|
}
|
|
918
925
|
}
|
|
919
926
|
break;
|
|
920
927
|
case "set":
|
|
921
928
|
if (isMap(target)) {
|
|
922
|
-
|
|
929
|
+
run(depsMap.get(ITERATE_KEY));
|
|
923
930
|
}
|
|
924
931
|
break;
|
|
925
932
|
}
|
|
926
933
|
}
|
|
927
934
|
}
|
|
928
|
-
startBatch();
|
|
929
|
-
for (const dep of deps) {
|
|
930
|
-
{
|
|
931
|
-
dep.trigger();
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
935
|
endBatch();
|
|
935
936
|
}
|
|
936
937
|
function getDepFromReactive(object, key) {
|
|
@@ -1628,7 +1629,7 @@ function toRaw(observed) {
|
|
|
1628
1629
|
return raw ? toRaw(raw) : observed;
|
|
1629
1630
|
}
|
|
1630
1631
|
function markRaw(value) {
|
|
1631
|
-
if (Object.isExtensible(value)) {
|
|
1632
|
+
if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
|
|
1632
1633
|
def(value, "__v_skip", true);
|
|
1633
1634
|
}
|
|
1634
1635
|
return value;
|
|
@@ -2060,6 +2061,10 @@ function traverse(value, depth = Infinity, seen) {
|
|
|
2060
2061
|
return value;
|
|
2061
2062
|
}
|
|
2062
2063
|
|
|
2064
|
+
function pushWarningContext(vnode) {
|
|
2065
|
+
}
|
|
2066
|
+
function popWarningContext() {
|
|
2067
|
+
}
|
|
2063
2068
|
function assertNumber(val, type) {
|
|
2064
2069
|
return;
|
|
2065
2070
|
}
|
|
@@ -3278,6 +3283,7 @@ function getInnerChild$1(vnode) {
|
|
|
3278
3283
|
}
|
|
3279
3284
|
function setTransitionHooks(vnode, hooks) {
|
|
3280
3285
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
3286
|
+
vnode.transition = hooks;
|
|
3281
3287
|
setTransitionHooks(vnode.component.subTree, hooks);
|
|
3282
3288
|
} else if (vnode.shapeFlag & 128) {
|
|
3283
3289
|
vnode.ssContent.transition = hooks.clone(vnode.ssContent);
|
|
@@ -3322,7 +3328,7 @@ function defineComponent(options, extraOptions) {
|
|
|
3322
3328
|
function useId() {
|
|
3323
3329
|
const i = getCurrentInstance();
|
|
3324
3330
|
if (i) {
|
|
3325
|
-
return (i.appContext.config.idPrefix || "v") + "
|
|
3331
|
+
return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
|
|
3326
3332
|
}
|
|
3327
3333
|
}
|
|
3328
3334
|
function markAsyncBoundary(instance) {
|
|
@@ -4740,13 +4746,15 @@ function renderList(source, renderItem, cache, index) {
|
|
|
4740
4746
|
const sourceIsArray = isArray(source);
|
|
4741
4747
|
if (sourceIsArray || isString(source)) {
|
|
4742
4748
|
const sourceIsReactiveArray = sourceIsArray && isReactive(source);
|
|
4749
|
+
let needsWrap = false;
|
|
4743
4750
|
if (sourceIsReactiveArray) {
|
|
4751
|
+
needsWrap = !isShallow(source);
|
|
4744
4752
|
source = shallowReadArray(source);
|
|
4745
4753
|
}
|
|
4746
4754
|
ret = new Array(source.length);
|
|
4747
4755
|
for (let i = 0, l = source.length; i < l; i++) {
|
|
4748
4756
|
ret[i] = renderItem(
|
|
4749
|
-
|
|
4757
|
+
needsWrap ? toReactive(source[i]) : source[i],
|
|
4750
4758
|
i,
|
|
4751
4759
|
void 0,
|
|
4752
4760
|
cached && cached[i]
|
|
@@ -5735,7 +5743,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5735
5743
|
return vm;
|
|
5736
5744
|
}
|
|
5737
5745
|
}
|
|
5738
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
5746
|
+
Vue.version = `2.6.14-compat:${"3.5.4"}`;
|
|
5739
5747
|
Vue.config = singletonApp.config;
|
|
5740
5748
|
Vue.use = (plugin, ...options) => {
|
|
5741
5749
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -7262,7 +7270,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7262
7270
|
null
|
|
7263
7271
|
);
|
|
7264
7272
|
};
|
|
7265
|
-
if (isAsyncWrapperVNode) {
|
|
7273
|
+
if (isAsyncWrapperVNode && type.__asyncHydrate) {
|
|
7266
7274
|
type.__asyncHydrate(
|
|
7267
7275
|
el,
|
|
7268
7276
|
instance,
|
|
@@ -8327,8 +8335,7 @@ function renderComponentRoot(instance) {
|
|
|
8327
8335
|
data,
|
|
8328
8336
|
setupState,
|
|
8329
8337
|
ctx,
|
|
8330
|
-
inheritAttrs
|
|
8331
|
-
isMounted
|
|
8338
|
+
inheritAttrs
|
|
8332
8339
|
} = instance;
|
|
8333
8340
|
const prev = setCurrentRenderingInstance(instance);
|
|
8334
8341
|
let result;
|
|
@@ -8419,7 +8426,7 @@ function renderComponentRoot(instance) {
|
|
|
8419
8426
|
root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
8420
8427
|
}
|
|
8421
8428
|
if (vnode.transition) {
|
|
8422
|
-
root
|
|
8429
|
+
setTransitionHooks(root, vnode.transition);
|
|
8423
8430
|
}
|
|
8424
8431
|
{
|
|
8425
8432
|
result = root;
|
|
@@ -9856,7 +9863,7 @@ function isMemoSame(cached, memo) {
|
|
|
9856
9863
|
return true;
|
|
9857
9864
|
}
|
|
9858
9865
|
|
|
9859
|
-
const version = "3.5.
|
|
9866
|
+
const version = "3.5.4";
|
|
9860
9867
|
const warn$1 = NOOP;
|
|
9861
9868
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9862
9869
|
const devtools = void 0;
|
|
@@ -9869,7 +9876,9 @@ const _ssrUtils = {
|
|
|
9869
9876
|
isVNode: isVNode,
|
|
9870
9877
|
normalizeVNode,
|
|
9871
9878
|
getComponentPublicInstance,
|
|
9872
|
-
ensureValidVNode
|
|
9879
|
+
ensureValidVNode,
|
|
9880
|
+
pushWarningContext,
|
|
9881
|
+
popWarningContext
|
|
9873
9882
|
};
|
|
9874
9883
|
const ssrUtils = _ssrUtils ;
|
|
9875
9884
|
const resolveFilter = resolveFilter$1 ;
|
|
@@ -18195,10 +18204,7 @@ const isNonKeyModifier = /* @__PURE__ */ makeMap(
|
|
|
18195
18204
|
`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`
|
|
18196
18205
|
);
|
|
18197
18206
|
const maybeKeyModifier = /* @__PURE__ */ makeMap("left,right");
|
|
18198
|
-
const isKeyboardEvent = /* @__PURE__ */ makeMap(
|
|
18199
|
-
`onkeyup,onkeydown,onkeypress`,
|
|
18200
|
-
true
|
|
18201
|
-
);
|
|
18207
|
+
const isKeyboardEvent = /* @__PURE__ */ makeMap(`onkeyup,onkeydown,onkeypress`);
|
|
18202
18208
|
const resolveModifiers = (key, modifiers, context, loc) => {
|
|
18203
18209
|
const keyModifiers = [];
|
|
18204
18210
|
const nonKeyModifiers = [];
|
|
@@ -18214,7 +18220,7 @@ const resolveModifiers = (key, modifiers, context, loc) => {
|
|
|
18214
18220
|
} else {
|
|
18215
18221
|
if (maybeKeyModifier(modifier)) {
|
|
18216
18222
|
if (isStaticExp(key)) {
|
|
18217
|
-
if (isKeyboardEvent(key.content)) {
|
|
18223
|
+
if (isKeyboardEvent(key.content.toLowerCase())) {
|
|
18218
18224
|
keyModifiers.push(modifier);
|
|
18219
18225
|
} else {
|
|
18220
18226
|
nonKeyModifiers.push(modifier);
|
|
@@ -18267,7 +18273,7 @@ const transformOn = (dir, node, context) => {
|
|
|
18267
18273
|
]);
|
|
18268
18274
|
}
|
|
18269
18275
|
if (keyModifiers.length && // if event name is dynamic, always wrap with keys guard
|
|
18270
|
-
(!isStaticExp(key) || isKeyboardEvent(key.content))) {
|
|
18276
|
+
(!isStaticExp(key) || isKeyboardEvent(key.content.toLowerCase()))) {
|
|
18271
18277
|
handlerExp = createCallExpression(context.helper(V_ON_WITH_KEYS), [
|
|
18272
18278
|
handlerExp,
|
|
18273
18279
|
JSON.stringify(keyModifiers)
|