@vue/compat 3.3.0-alpha.4 → 3.3.0-alpha.5
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 +137 -121
- package/dist/vue.cjs.prod.js +135 -137
- package/dist/vue.esm-browser.js +123 -117
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.esm-bundler.js +133 -117
- package/dist/vue.global.js +123 -117
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +106 -100
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.esm-bundler.js +116 -100
- package/dist/vue.runtime.global.js +106 -100
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +2 -2
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -7,6 +7,96 @@ function makeMap(str, expectsLowerCase) {
|
|
|
7
7
|
return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
const EMPTY_OBJ = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
11
|
+
const EMPTY_ARR = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
|
|
12
|
+
const NOOP = () => {
|
|
13
|
+
};
|
|
14
|
+
const NO = () => false;
|
|
15
|
+
const onRE = /^on[^a-z]/;
|
|
16
|
+
const isOn = (key) => onRE.test(key);
|
|
17
|
+
const isModelListener = (key) => key.startsWith("onUpdate:");
|
|
18
|
+
const extend = Object.assign;
|
|
19
|
+
const remove = (arr, el) => {
|
|
20
|
+
const i = arr.indexOf(el);
|
|
21
|
+
if (i > -1) {
|
|
22
|
+
arr.splice(i, 1);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
26
|
+
const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
|
|
27
|
+
const isArray = Array.isArray;
|
|
28
|
+
const isMap = (val) => toTypeString(val) === "[object Map]";
|
|
29
|
+
const isSet = (val) => toTypeString(val) === "[object Set]";
|
|
30
|
+
const isDate = (val) => toTypeString(val) === "[object Date]";
|
|
31
|
+
const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
|
|
32
|
+
const isFunction = (val) => typeof val === "function";
|
|
33
|
+
const isString = (val) => typeof val === "string";
|
|
34
|
+
const isSymbol = (val) => typeof val === "symbol";
|
|
35
|
+
const isObject = (val) => val !== null && typeof val === "object";
|
|
36
|
+
const isPromise = (val) => {
|
|
37
|
+
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
38
|
+
};
|
|
39
|
+
const objectToString = Object.prototype.toString;
|
|
40
|
+
const toTypeString = (value) => objectToString.call(value);
|
|
41
|
+
const toRawType = (value) => {
|
|
42
|
+
return toTypeString(value).slice(8, -1);
|
|
43
|
+
};
|
|
44
|
+
const isPlainObject = (val) => toTypeString(val) === "[object Object]";
|
|
45
|
+
const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
|
|
46
|
+
const isReservedProp = /* @__PURE__ */ makeMap(
|
|
47
|
+
// the leading comma is intentional so empty string "" is also included
|
|
48
|
+
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
49
|
+
);
|
|
50
|
+
const isBuiltInDirective = /* @__PURE__ */ makeMap(
|
|
51
|
+
"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
|
|
52
|
+
);
|
|
53
|
+
const cacheStringFunction = (fn) => {
|
|
54
|
+
const cache = /* @__PURE__ */ Object.create(null);
|
|
55
|
+
return (str) => {
|
|
56
|
+
const hit = cache[str];
|
|
57
|
+
return hit || (cache[str] = fn(str));
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
const camelizeRE = /-(\w)/g;
|
|
61
|
+
const camelize = cacheStringFunction((str) => {
|
|
62
|
+
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
|
|
63
|
+
});
|
|
64
|
+
const hyphenateRE = /\B([A-Z])/g;
|
|
65
|
+
const hyphenate = cacheStringFunction(
|
|
66
|
+
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
67
|
+
);
|
|
68
|
+
const capitalize = cacheStringFunction(
|
|
69
|
+
(str) => str.charAt(0).toUpperCase() + str.slice(1)
|
|
70
|
+
);
|
|
71
|
+
const toHandlerKey = cacheStringFunction(
|
|
72
|
+
(str) => str ? `on${capitalize(str)}` : ``
|
|
73
|
+
);
|
|
74
|
+
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
75
|
+
const invokeArrayFns = (fns, arg) => {
|
|
76
|
+
for (let i = 0; i < fns.length; i++) {
|
|
77
|
+
fns[i](arg);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
const def = (obj, key, value) => {
|
|
81
|
+
Object.defineProperty(obj, key, {
|
|
82
|
+
configurable: true,
|
|
83
|
+
enumerable: false,
|
|
84
|
+
value
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
const looseToNumber = (val) => {
|
|
88
|
+
const n = parseFloat(val);
|
|
89
|
+
return isNaN(n) ? val : n;
|
|
90
|
+
};
|
|
91
|
+
const toNumber = (val) => {
|
|
92
|
+
const n = isString(val) ? Number(val) : NaN;
|
|
93
|
+
return isNaN(n) ? val : n;
|
|
94
|
+
};
|
|
95
|
+
let _globalThis;
|
|
96
|
+
const getGlobalThis = () => {
|
|
97
|
+
return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
|
|
98
|
+
};
|
|
99
|
+
|
|
10
100
|
const PatchFlagNames = {
|
|
11
101
|
[1]: `TEXT`,
|
|
12
102
|
[2]: `CLASS`,
|
|
@@ -226,96 +316,6 @@ const replacer = (_key, val) => {
|
|
|
226
316
|
return val;
|
|
227
317
|
};
|
|
228
318
|
|
|
229
|
-
const EMPTY_OBJ = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
230
|
-
const EMPTY_ARR = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
|
|
231
|
-
const NOOP = () => {
|
|
232
|
-
};
|
|
233
|
-
const NO = () => false;
|
|
234
|
-
const onRE = /^on[^a-z]/;
|
|
235
|
-
const isOn = (key) => onRE.test(key);
|
|
236
|
-
const isModelListener = (key) => key.startsWith("onUpdate:");
|
|
237
|
-
const extend = Object.assign;
|
|
238
|
-
const remove = (arr, el) => {
|
|
239
|
-
const i = arr.indexOf(el);
|
|
240
|
-
if (i > -1) {
|
|
241
|
-
arr.splice(i, 1);
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
245
|
-
const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
|
|
246
|
-
const isArray = Array.isArray;
|
|
247
|
-
const isMap = (val) => toTypeString(val) === "[object Map]";
|
|
248
|
-
const isSet = (val) => toTypeString(val) === "[object Set]";
|
|
249
|
-
const isDate = (val) => toTypeString(val) === "[object Date]";
|
|
250
|
-
const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
|
|
251
|
-
const isFunction = (val) => typeof val === "function";
|
|
252
|
-
const isString = (val) => typeof val === "string";
|
|
253
|
-
const isSymbol = (val) => typeof val === "symbol";
|
|
254
|
-
const isObject = (val) => val !== null && typeof val === "object";
|
|
255
|
-
const isPromise = (val) => {
|
|
256
|
-
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
257
|
-
};
|
|
258
|
-
const objectToString = Object.prototype.toString;
|
|
259
|
-
const toTypeString = (value) => objectToString.call(value);
|
|
260
|
-
const toRawType = (value) => {
|
|
261
|
-
return toTypeString(value).slice(8, -1);
|
|
262
|
-
};
|
|
263
|
-
const isPlainObject = (val) => toTypeString(val) === "[object Object]";
|
|
264
|
-
const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
|
|
265
|
-
const isReservedProp = /* @__PURE__ */ makeMap(
|
|
266
|
-
// the leading comma is intentional so empty string "" is also included
|
|
267
|
-
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
268
|
-
);
|
|
269
|
-
const isBuiltInDirective = /* @__PURE__ */ makeMap(
|
|
270
|
-
"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
|
|
271
|
-
);
|
|
272
|
-
const cacheStringFunction = (fn) => {
|
|
273
|
-
const cache = /* @__PURE__ */ Object.create(null);
|
|
274
|
-
return (str) => {
|
|
275
|
-
const hit = cache[str];
|
|
276
|
-
return hit || (cache[str] = fn(str));
|
|
277
|
-
};
|
|
278
|
-
};
|
|
279
|
-
const camelizeRE = /-(\w)/g;
|
|
280
|
-
const camelize = cacheStringFunction((str) => {
|
|
281
|
-
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
|
|
282
|
-
});
|
|
283
|
-
const hyphenateRE = /\B([A-Z])/g;
|
|
284
|
-
const hyphenate = cacheStringFunction(
|
|
285
|
-
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
286
|
-
);
|
|
287
|
-
const capitalize = cacheStringFunction(
|
|
288
|
-
(str) => str.charAt(0).toUpperCase() + str.slice(1)
|
|
289
|
-
);
|
|
290
|
-
const toHandlerKey = cacheStringFunction(
|
|
291
|
-
(str) => str ? `on${capitalize(str)}` : ``
|
|
292
|
-
);
|
|
293
|
-
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
294
|
-
const invokeArrayFns = (fns, arg) => {
|
|
295
|
-
for (let i = 0; i < fns.length; i++) {
|
|
296
|
-
fns[i](arg);
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
const def = (obj, key, value) => {
|
|
300
|
-
Object.defineProperty(obj, key, {
|
|
301
|
-
configurable: true,
|
|
302
|
-
enumerable: false,
|
|
303
|
-
value
|
|
304
|
-
});
|
|
305
|
-
};
|
|
306
|
-
const looseToNumber = (val) => {
|
|
307
|
-
const n = parseFloat(val);
|
|
308
|
-
return isNaN(n) ? val : n;
|
|
309
|
-
};
|
|
310
|
-
const toNumber = (val) => {
|
|
311
|
-
const n = isString(val) ? Number(val) : NaN;
|
|
312
|
-
return isNaN(n) ? val : n;
|
|
313
|
-
};
|
|
314
|
-
let _globalThis;
|
|
315
|
-
const getGlobalThis = () => {
|
|
316
|
-
return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
|
|
317
|
-
};
|
|
318
|
-
|
|
319
319
|
function warn$1(msg, ...args) {
|
|
320
320
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
321
321
|
}
|
|
@@ -4723,7 +4723,7 @@ const FILTERS = "filters";
|
|
|
4723
4723
|
function resolveComponent(name, maybeSelfReference) {
|
|
4724
4724
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
4725
4725
|
}
|
|
4726
|
-
const NULL_DYNAMIC_COMPONENT = Symbol();
|
|
4726
|
+
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
4727
4727
|
function resolveDynamicComponent(component) {
|
|
4728
4728
|
if (isString(component)) {
|
|
4729
4729
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -6691,7 +6691,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6691
6691
|
return vm;
|
|
6692
6692
|
}
|
|
6693
6693
|
}
|
|
6694
|
-
Vue.version = `2.6.14-compat:${"3.3.0-alpha.
|
|
6694
|
+
Vue.version = `2.6.14-compat:${"3.3.0-alpha.5"}`;
|
|
6695
6695
|
Vue.config = singletonApp.config;
|
|
6696
6696
|
Vue.use = (p, ...options) => {
|
|
6697
6697
|
if (p && isFunction(p.install)) {
|
|
@@ -9610,10 +9610,10 @@ function convertLegacyComponent(comp, instance) {
|
|
|
9610
9610
|
return comp;
|
|
9611
9611
|
}
|
|
9612
9612
|
|
|
9613
|
-
const Fragment = Symbol(
|
|
9614
|
-
const Text = Symbol(
|
|
9615
|
-
const Comment = Symbol(
|
|
9616
|
-
const Static = Symbol(
|
|
9613
|
+
const Fragment = Symbol.for("v-fgt");
|
|
9614
|
+
const Text = Symbol.for("v-txt");
|
|
9615
|
+
const Comment = Symbol.for("v-cmt");
|
|
9616
|
+
const Static = Symbol.for("v-stc");
|
|
9617
9617
|
const blockStack = [];
|
|
9618
9618
|
let currentBlock = null;
|
|
9619
9619
|
function openBlock(disableTracking = false) {
|
|
@@ -10077,13 +10077,29 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
10077
10077
|
}
|
|
10078
10078
|
let currentInstance = null;
|
|
10079
10079
|
const getCurrentInstance = () => currentInstance || currentRenderingInstance;
|
|
10080
|
+
let internalSetCurrentInstance;
|
|
10081
|
+
let globalCurrentInstanceSetters;
|
|
10082
|
+
let settersKey = "__VUE_INSTANCE_SETTERS__";
|
|
10083
|
+
{
|
|
10084
|
+
if (!(globalCurrentInstanceSetters = getGlobalThis()[settersKey])) {
|
|
10085
|
+
globalCurrentInstanceSetters = getGlobalThis()[settersKey] = [];
|
|
10086
|
+
}
|
|
10087
|
+
globalCurrentInstanceSetters.push((i) => currentInstance = i);
|
|
10088
|
+
internalSetCurrentInstance = (instance) => {
|
|
10089
|
+
if (globalCurrentInstanceSetters.length > 1) {
|
|
10090
|
+
globalCurrentInstanceSetters.forEach((s) => s(instance));
|
|
10091
|
+
} else {
|
|
10092
|
+
globalCurrentInstanceSetters[0](instance);
|
|
10093
|
+
}
|
|
10094
|
+
};
|
|
10095
|
+
}
|
|
10080
10096
|
const setCurrentInstance = (instance) => {
|
|
10081
|
-
|
|
10097
|
+
internalSetCurrentInstance(instance);
|
|
10082
10098
|
instance.scope.on();
|
|
10083
10099
|
};
|
|
10084
10100
|
const unsetCurrentInstance = () => {
|
|
10085
10101
|
currentInstance && currentInstance.scope.off();
|
|
10086
|
-
|
|
10102
|
+
internalSetCurrentInstance(null);
|
|
10087
10103
|
};
|
|
10088
10104
|
const isBuiltInTag = /* @__PURE__ */ makeMap("slot,component");
|
|
10089
10105
|
function validateComponentName(name, config) {
|
|
@@ -10511,7 +10527,7 @@ function h(type, propsOrChildren, children) {
|
|
|
10511
10527
|
}
|
|
10512
10528
|
}
|
|
10513
10529
|
|
|
10514
|
-
const ssrContextKey = Symbol(
|
|
10530
|
+
const ssrContextKey = Symbol.for("v-scx");
|
|
10515
10531
|
const useSSRContext = () => {
|
|
10516
10532
|
{
|
|
10517
10533
|
const ctx = inject(ssrContextKey);
|
|
@@ -10725,7 +10741,7 @@ function isMemoSame(cached, memo) {
|
|
|
10725
10741
|
return true;
|
|
10726
10742
|
}
|
|
10727
10743
|
|
|
10728
|
-
const version = "3.3.0-alpha.
|
|
10744
|
+
const version = "3.3.0-alpha.5";
|
|
10729
10745
|
const _ssrUtils = {
|
|
10730
10746
|
createComponentInstance,
|
|
10731
10747
|
setupComponent,
|
|
@@ -12860,6 +12876,20 @@ function createBlockStatement(body) {
|
|
|
12860
12876
|
loc: locStub
|
|
12861
12877
|
};
|
|
12862
12878
|
}
|
|
12879
|
+
function getVNodeHelper(ssr, isComponent) {
|
|
12880
|
+
return ssr || isComponent ? CREATE_VNODE : CREATE_ELEMENT_VNODE;
|
|
12881
|
+
}
|
|
12882
|
+
function getVNodeBlockHelper(ssr, isComponent) {
|
|
12883
|
+
return ssr || isComponent ? CREATE_BLOCK : CREATE_ELEMENT_BLOCK;
|
|
12884
|
+
}
|
|
12885
|
+
function convertToBlock(node, { helper, removeHelper, inSSR }) {
|
|
12886
|
+
if (!node.isBlock) {
|
|
12887
|
+
node.isBlock = true;
|
|
12888
|
+
removeHelper(getVNodeHelper(inSSR, node.isComponent));
|
|
12889
|
+
helper(OPEN_BLOCK);
|
|
12890
|
+
helper(getVNodeBlockHelper(inSSR, node.isComponent));
|
|
12891
|
+
}
|
|
12892
|
+
}
|
|
12863
12893
|
|
|
12864
12894
|
const isStaticExp = (p) => p.type === 4 && p.isStatic;
|
|
12865
12895
|
const isBuiltInType = (tag, expected) => tag === expected || tag === hyphenate(expected);
|
|
@@ -13029,12 +13059,6 @@ function isTemplateNode(node) {
|
|
|
13029
13059
|
function isSlotOutlet(node) {
|
|
13030
13060
|
return node.type === 1 && node.tagType === 2;
|
|
13031
13061
|
}
|
|
13032
|
-
function getVNodeHelper(ssr, isComponent) {
|
|
13033
|
-
return ssr || isComponent ? CREATE_VNODE : CREATE_ELEMENT_VNODE;
|
|
13034
|
-
}
|
|
13035
|
-
function getVNodeBlockHelper(ssr, isComponent) {
|
|
13036
|
-
return ssr || isComponent ? CREATE_BLOCK : CREATE_ELEMENT_BLOCK;
|
|
13037
|
-
}
|
|
13038
13062
|
const propsHelperSet = /* @__PURE__ */ new Set([NORMALIZE_PROPS, GUARD_REACTIVE_PROPS]);
|
|
13039
13063
|
function getUnnormalizedProps(props, callPath = []) {
|
|
13040
13064
|
if (props && !isString(props) && props.type === 14) {
|
|
@@ -13128,14 +13152,6 @@ function getMemoedVNodeCall(node) {
|
|
|
13128
13152
|
return node;
|
|
13129
13153
|
}
|
|
13130
13154
|
}
|
|
13131
|
-
function makeBlock(node, { helper, removeHelper, inSSR }) {
|
|
13132
|
-
if (!node.isBlock) {
|
|
13133
|
-
node.isBlock = true;
|
|
13134
|
-
removeHelper(getVNodeHelper(inSSR, node.isComponent));
|
|
13135
|
-
helper(OPEN_BLOCK);
|
|
13136
|
-
helper(getVNodeBlockHelper(inSSR, node.isComponent));
|
|
13137
|
-
}
|
|
13138
|
-
}
|
|
13139
13155
|
|
|
13140
13156
|
const deprecationData = {
|
|
13141
13157
|
["COMPILER_IS_ON_ELEMENT"]: {
|
|
@@ -14398,7 +14414,7 @@ function createRootCodegen(root, context) {
|
|
|
14398
14414
|
if (isSingleElementRoot(root, child) && child.codegenNode) {
|
|
14399
14415
|
const codegenNode = child.codegenNode;
|
|
14400
14416
|
if (codegenNode.type === 13) {
|
|
14401
|
-
|
|
14417
|
+
convertToBlock(codegenNode, context);
|
|
14402
14418
|
}
|
|
14403
14419
|
root.codegenNode = codegenNode;
|
|
14404
14420
|
} else {
|
|
@@ -15318,7 +15334,7 @@ function createChildrenCodegenNode(branch, keyIndex, context) {
|
|
|
15318
15334
|
const ret = firstChild.codegenNode;
|
|
15319
15335
|
const vnodeCall = getMemoedVNodeCall(ret);
|
|
15320
15336
|
if (vnodeCall.type === 13) {
|
|
15321
|
-
|
|
15337
|
+
convertToBlock(vnodeCall, context);
|
|
15322
15338
|
}
|
|
15323
15339
|
injectProp(vnodeCall, keyProperty, context);
|
|
15324
15340
|
return ret;
|
|
@@ -16950,7 +16966,7 @@ const transformMemo = (node, context) => {
|
|
|
16950
16966
|
const codegenNode = node.codegenNode || context.currentNode.codegenNode;
|
|
16951
16967
|
if (codegenNode && codegenNode.type === 13) {
|
|
16952
16968
|
if (node.tagType !== 1) {
|
|
16953
|
-
|
|
16969
|
+
convertToBlock(codegenNode, context);
|
|
16954
16970
|
}
|
|
16955
16971
|
node.codegenNode = createCallExpression(context.helper(WITH_MEMO), [
|
|
16956
16972
|
dir.exp,
|
package/dist/vue.global.js
CHANGED
|
@@ -10,6 +10,96 @@ var Vue = (function () {
|
|
|
10
10
|
return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
const EMPTY_OBJ = Object.freeze({}) ;
|
|
14
|
+
const EMPTY_ARR = Object.freeze([]) ;
|
|
15
|
+
const NOOP = () => {
|
|
16
|
+
};
|
|
17
|
+
const NO = () => false;
|
|
18
|
+
const onRE = /^on[^a-z]/;
|
|
19
|
+
const isOn = (key) => onRE.test(key);
|
|
20
|
+
const isModelListener = (key) => key.startsWith("onUpdate:");
|
|
21
|
+
const extend = Object.assign;
|
|
22
|
+
const remove = (arr, el) => {
|
|
23
|
+
const i = arr.indexOf(el);
|
|
24
|
+
if (i > -1) {
|
|
25
|
+
arr.splice(i, 1);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
29
|
+
const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
|
|
30
|
+
const isArray = Array.isArray;
|
|
31
|
+
const isMap = (val) => toTypeString(val) === "[object Map]";
|
|
32
|
+
const isSet = (val) => toTypeString(val) === "[object Set]";
|
|
33
|
+
const isDate = (val) => toTypeString(val) === "[object Date]";
|
|
34
|
+
const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
|
|
35
|
+
const isFunction = (val) => typeof val === "function";
|
|
36
|
+
const isString = (val) => typeof val === "string";
|
|
37
|
+
const isSymbol = (val) => typeof val === "symbol";
|
|
38
|
+
const isObject = (val) => val !== null && typeof val === "object";
|
|
39
|
+
const isPromise = (val) => {
|
|
40
|
+
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
41
|
+
};
|
|
42
|
+
const objectToString = Object.prototype.toString;
|
|
43
|
+
const toTypeString = (value) => objectToString.call(value);
|
|
44
|
+
const toRawType = (value) => {
|
|
45
|
+
return toTypeString(value).slice(8, -1);
|
|
46
|
+
};
|
|
47
|
+
const isPlainObject = (val) => toTypeString(val) === "[object Object]";
|
|
48
|
+
const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
|
|
49
|
+
const isReservedProp = /* @__PURE__ */ makeMap(
|
|
50
|
+
// the leading comma is intentional so empty string "" is also included
|
|
51
|
+
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
52
|
+
);
|
|
53
|
+
const isBuiltInDirective = /* @__PURE__ */ makeMap(
|
|
54
|
+
"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
|
|
55
|
+
);
|
|
56
|
+
const cacheStringFunction = (fn) => {
|
|
57
|
+
const cache = /* @__PURE__ */ Object.create(null);
|
|
58
|
+
return (str) => {
|
|
59
|
+
const hit = cache[str];
|
|
60
|
+
return hit || (cache[str] = fn(str));
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
const camelizeRE = /-(\w)/g;
|
|
64
|
+
const camelize = cacheStringFunction((str) => {
|
|
65
|
+
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
|
|
66
|
+
});
|
|
67
|
+
const hyphenateRE = /\B([A-Z])/g;
|
|
68
|
+
const hyphenate = cacheStringFunction(
|
|
69
|
+
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
70
|
+
);
|
|
71
|
+
const capitalize = cacheStringFunction(
|
|
72
|
+
(str) => str.charAt(0).toUpperCase() + str.slice(1)
|
|
73
|
+
);
|
|
74
|
+
const toHandlerKey = cacheStringFunction(
|
|
75
|
+
(str) => str ? `on${capitalize(str)}` : ``
|
|
76
|
+
);
|
|
77
|
+
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
78
|
+
const invokeArrayFns = (fns, arg) => {
|
|
79
|
+
for (let i = 0; i < fns.length; i++) {
|
|
80
|
+
fns[i](arg);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
const def = (obj, key, value) => {
|
|
84
|
+
Object.defineProperty(obj, key, {
|
|
85
|
+
configurable: true,
|
|
86
|
+
enumerable: false,
|
|
87
|
+
value
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
const looseToNumber = (val) => {
|
|
91
|
+
const n = parseFloat(val);
|
|
92
|
+
return isNaN(n) ? val : n;
|
|
93
|
+
};
|
|
94
|
+
const toNumber = (val) => {
|
|
95
|
+
const n = isString(val) ? Number(val) : NaN;
|
|
96
|
+
return isNaN(n) ? val : n;
|
|
97
|
+
};
|
|
98
|
+
let _globalThis;
|
|
99
|
+
const getGlobalThis = () => {
|
|
100
|
+
return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
|
|
101
|
+
};
|
|
102
|
+
|
|
13
103
|
const PatchFlagNames = {
|
|
14
104
|
[1]: `TEXT`,
|
|
15
105
|
[2]: `CLASS`,
|
|
@@ -229,96 +319,6 @@ var Vue = (function () {
|
|
|
229
319
|
return val;
|
|
230
320
|
};
|
|
231
321
|
|
|
232
|
-
const EMPTY_OBJ = Object.freeze({}) ;
|
|
233
|
-
const EMPTY_ARR = Object.freeze([]) ;
|
|
234
|
-
const NOOP = () => {
|
|
235
|
-
};
|
|
236
|
-
const NO = () => false;
|
|
237
|
-
const onRE = /^on[^a-z]/;
|
|
238
|
-
const isOn = (key) => onRE.test(key);
|
|
239
|
-
const isModelListener = (key) => key.startsWith("onUpdate:");
|
|
240
|
-
const extend = Object.assign;
|
|
241
|
-
const remove = (arr, el) => {
|
|
242
|
-
const i = arr.indexOf(el);
|
|
243
|
-
if (i > -1) {
|
|
244
|
-
arr.splice(i, 1);
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
248
|
-
const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
|
|
249
|
-
const isArray = Array.isArray;
|
|
250
|
-
const isMap = (val) => toTypeString(val) === "[object Map]";
|
|
251
|
-
const isSet = (val) => toTypeString(val) === "[object Set]";
|
|
252
|
-
const isDate = (val) => toTypeString(val) === "[object Date]";
|
|
253
|
-
const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
|
|
254
|
-
const isFunction = (val) => typeof val === "function";
|
|
255
|
-
const isString = (val) => typeof val === "string";
|
|
256
|
-
const isSymbol = (val) => typeof val === "symbol";
|
|
257
|
-
const isObject = (val) => val !== null && typeof val === "object";
|
|
258
|
-
const isPromise = (val) => {
|
|
259
|
-
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
260
|
-
};
|
|
261
|
-
const objectToString = Object.prototype.toString;
|
|
262
|
-
const toTypeString = (value) => objectToString.call(value);
|
|
263
|
-
const toRawType = (value) => {
|
|
264
|
-
return toTypeString(value).slice(8, -1);
|
|
265
|
-
};
|
|
266
|
-
const isPlainObject = (val) => toTypeString(val) === "[object Object]";
|
|
267
|
-
const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
|
|
268
|
-
const isReservedProp = /* @__PURE__ */ makeMap(
|
|
269
|
-
// the leading comma is intentional so empty string "" is also included
|
|
270
|
-
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
271
|
-
);
|
|
272
|
-
const isBuiltInDirective = /* @__PURE__ */ makeMap(
|
|
273
|
-
"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
|
|
274
|
-
);
|
|
275
|
-
const cacheStringFunction = (fn) => {
|
|
276
|
-
const cache = /* @__PURE__ */ Object.create(null);
|
|
277
|
-
return (str) => {
|
|
278
|
-
const hit = cache[str];
|
|
279
|
-
return hit || (cache[str] = fn(str));
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
|
-
const camelizeRE = /-(\w)/g;
|
|
283
|
-
const camelize = cacheStringFunction((str) => {
|
|
284
|
-
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
|
|
285
|
-
});
|
|
286
|
-
const hyphenateRE = /\B([A-Z])/g;
|
|
287
|
-
const hyphenate = cacheStringFunction(
|
|
288
|
-
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
289
|
-
);
|
|
290
|
-
const capitalize = cacheStringFunction(
|
|
291
|
-
(str) => str.charAt(0).toUpperCase() + str.slice(1)
|
|
292
|
-
);
|
|
293
|
-
const toHandlerKey = cacheStringFunction(
|
|
294
|
-
(str) => str ? `on${capitalize(str)}` : ``
|
|
295
|
-
);
|
|
296
|
-
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
297
|
-
const invokeArrayFns = (fns, arg) => {
|
|
298
|
-
for (let i = 0; i < fns.length; i++) {
|
|
299
|
-
fns[i](arg);
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
|
-
const def = (obj, key, value) => {
|
|
303
|
-
Object.defineProperty(obj, key, {
|
|
304
|
-
configurable: true,
|
|
305
|
-
enumerable: false,
|
|
306
|
-
value
|
|
307
|
-
});
|
|
308
|
-
};
|
|
309
|
-
const looseToNumber = (val) => {
|
|
310
|
-
const n = parseFloat(val);
|
|
311
|
-
return isNaN(n) ? val : n;
|
|
312
|
-
};
|
|
313
|
-
const toNumber = (val) => {
|
|
314
|
-
const n = isString(val) ? Number(val) : NaN;
|
|
315
|
-
return isNaN(n) ? val : n;
|
|
316
|
-
};
|
|
317
|
-
let _globalThis;
|
|
318
|
-
const getGlobalThis = () => {
|
|
319
|
-
return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
|
|
320
|
-
};
|
|
321
|
-
|
|
322
322
|
function warn$1(msg, ...args) {
|
|
323
323
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
324
324
|
}
|
|
@@ -4680,7 +4680,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4680
4680
|
function resolveComponent(name, maybeSelfReference) {
|
|
4681
4681
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
4682
4682
|
}
|
|
4683
|
-
const NULL_DYNAMIC_COMPONENT = Symbol();
|
|
4683
|
+
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
4684
4684
|
function resolveDynamicComponent(component) {
|
|
4685
4685
|
if (isString(component)) {
|
|
4686
4686
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -6646,7 +6646,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6646
6646
|
return vm;
|
|
6647
6647
|
}
|
|
6648
6648
|
}
|
|
6649
|
-
Vue.version = `2.6.14-compat:${"3.3.0-alpha.
|
|
6649
|
+
Vue.version = `2.6.14-compat:${"3.3.0-alpha.5"}`;
|
|
6650
6650
|
Vue.config = singletonApp.config;
|
|
6651
6651
|
Vue.use = (p, ...options) => {
|
|
6652
6652
|
if (p && isFunction(p.install)) {
|
|
@@ -9541,10 +9541,10 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9541
9541
|
return comp;
|
|
9542
9542
|
}
|
|
9543
9543
|
|
|
9544
|
-
const Fragment = Symbol("
|
|
9545
|
-
const Text = Symbol("
|
|
9546
|
-
const Comment = Symbol("
|
|
9547
|
-
const Static = Symbol("
|
|
9544
|
+
const Fragment = Symbol.for("v-fgt");
|
|
9545
|
+
const Text = Symbol.for("v-txt");
|
|
9546
|
+
const Comment = Symbol.for("v-cmt");
|
|
9547
|
+
const Static = Symbol.for("v-stc");
|
|
9548
9548
|
const blockStack = [];
|
|
9549
9549
|
let currentBlock = null;
|
|
9550
9550
|
function openBlock(disableTracking = false) {
|
|
@@ -10006,13 +10006,19 @@ Component that was made reactive: `,
|
|
|
10006
10006
|
}
|
|
10007
10007
|
let currentInstance = null;
|
|
10008
10008
|
const getCurrentInstance = () => currentInstance || currentRenderingInstance;
|
|
10009
|
+
let internalSetCurrentInstance;
|
|
10010
|
+
{
|
|
10011
|
+
internalSetCurrentInstance = (i) => {
|
|
10012
|
+
currentInstance = i;
|
|
10013
|
+
};
|
|
10014
|
+
}
|
|
10009
10015
|
const setCurrentInstance = (instance) => {
|
|
10010
|
-
|
|
10016
|
+
internalSetCurrentInstance(instance);
|
|
10011
10017
|
instance.scope.on();
|
|
10012
10018
|
};
|
|
10013
10019
|
const unsetCurrentInstance = () => {
|
|
10014
10020
|
currentInstance && currentInstance.scope.off();
|
|
10015
|
-
|
|
10021
|
+
internalSetCurrentInstance(null);
|
|
10016
10022
|
};
|
|
10017
10023
|
const isBuiltInTag = /* @__PURE__ */ makeMap("slot,component");
|
|
10018
10024
|
function validateComponentName(name, config) {
|
|
@@ -10424,7 +10430,7 @@ Component that was made reactive: `,
|
|
|
10424
10430
|
}
|
|
10425
10431
|
}
|
|
10426
10432
|
|
|
10427
|
-
const ssrContextKey = Symbol(
|
|
10433
|
+
const ssrContextKey = Symbol.for("v-scx");
|
|
10428
10434
|
const useSSRContext = () => {
|
|
10429
10435
|
{
|
|
10430
10436
|
warn(`useSSRContext() is not supported in the global build.`);
|
|
@@ -10632,7 +10638,7 @@ Component that was made reactive: `,
|
|
|
10632
10638
|
return true;
|
|
10633
10639
|
}
|
|
10634
10640
|
|
|
10635
|
-
const version = "3.3.0-alpha.
|
|
10641
|
+
const version = "3.3.0-alpha.5";
|
|
10636
10642
|
const ssrUtils = null;
|
|
10637
10643
|
const resolveFilter = resolveFilter$1 ;
|
|
10638
10644
|
const _compatUtils = {
|
|
@@ -12705,6 +12711,20 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
12705
12711
|
loc: locStub
|
|
12706
12712
|
};
|
|
12707
12713
|
}
|
|
12714
|
+
function getVNodeHelper(ssr, isComponent) {
|
|
12715
|
+
return ssr || isComponent ? CREATE_VNODE : CREATE_ELEMENT_VNODE;
|
|
12716
|
+
}
|
|
12717
|
+
function getVNodeBlockHelper(ssr, isComponent) {
|
|
12718
|
+
return ssr || isComponent ? CREATE_BLOCK : CREATE_ELEMENT_BLOCK;
|
|
12719
|
+
}
|
|
12720
|
+
function convertToBlock(node, { helper, removeHelper, inSSR }) {
|
|
12721
|
+
if (!node.isBlock) {
|
|
12722
|
+
node.isBlock = true;
|
|
12723
|
+
removeHelper(getVNodeHelper(inSSR, node.isComponent));
|
|
12724
|
+
helper(OPEN_BLOCK);
|
|
12725
|
+
helper(getVNodeBlockHelper(inSSR, node.isComponent));
|
|
12726
|
+
}
|
|
12727
|
+
}
|
|
12708
12728
|
|
|
12709
12729
|
const isStaticExp = (p) => p.type === 4 && p.isStatic;
|
|
12710
12730
|
const isBuiltInType = (tag, expected) => tag === expected || tag === hyphenate(expected);
|
|
@@ -12874,12 +12894,6 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
12874
12894
|
function isSlotOutlet(node) {
|
|
12875
12895
|
return node.type === 1 && node.tagType === 2;
|
|
12876
12896
|
}
|
|
12877
|
-
function getVNodeHelper(ssr, isComponent) {
|
|
12878
|
-
return ssr || isComponent ? CREATE_VNODE : CREATE_ELEMENT_VNODE;
|
|
12879
|
-
}
|
|
12880
|
-
function getVNodeBlockHelper(ssr, isComponent) {
|
|
12881
|
-
return ssr || isComponent ? CREATE_BLOCK : CREATE_ELEMENT_BLOCK;
|
|
12882
|
-
}
|
|
12883
12897
|
const propsHelperSet = /* @__PURE__ */ new Set([NORMALIZE_PROPS, GUARD_REACTIVE_PROPS]);
|
|
12884
12898
|
function getUnnormalizedProps(props, callPath = []) {
|
|
12885
12899
|
if (props && !isString(props) && props.type === 14) {
|
|
@@ -12973,14 +12987,6 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
12973
12987
|
return node;
|
|
12974
12988
|
}
|
|
12975
12989
|
}
|
|
12976
|
-
function makeBlock(node, { helper, removeHelper, inSSR }) {
|
|
12977
|
-
if (!node.isBlock) {
|
|
12978
|
-
node.isBlock = true;
|
|
12979
|
-
removeHelper(getVNodeHelper(inSSR, node.isComponent));
|
|
12980
|
-
helper(OPEN_BLOCK);
|
|
12981
|
-
helper(getVNodeBlockHelper(inSSR, node.isComponent));
|
|
12982
|
-
}
|
|
12983
|
-
}
|
|
12984
12990
|
|
|
12985
12991
|
const deprecationData = {
|
|
12986
12992
|
["COMPILER_IS_ON_ELEMENT"]: {
|
|
@@ -14242,7 +14248,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
14242
14248
|
if (isSingleElementRoot(root, child) && child.codegenNode) {
|
|
14243
14249
|
const codegenNode = child.codegenNode;
|
|
14244
14250
|
if (codegenNode.type === 13) {
|
|
14245
|
-
|
|
14251
|
+
convertToBlock(codegenNode, context);
|
|
14246
14252
|
}
|
|
14247
14253
|
root.codegenNode = codegenNode;
|
|
14248
14254
|
} else {
|
|
@@ -15162,7 +15168,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
15162
15168
|
const ret = firstChild.codegenNode;
|
|
15163
15169
|
const vnodeCall = getMemoedVNodeCall(ret);
|
|
15164
15170
|
if (vnodeCall.type === 13) {
|
|
15165
|
-
|
|
15171
|
+
convertToBlock(vnodeCall, context);
|
|
15166
15172
|
}
|
|
15167
15173
|
injectProp(vnodeCall, keyProperty, context);
|
|
15168
15174
|
return ret;
|
|
@@ -16792,7 +16798,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
16792
16798
|
const codegenNode = node.codegenNode || context.currentNode.codegenNode;
|
|
16793
16799
|
if (codegenNode && codegenNode.type === 13) {
|
|
16794
16800
|
if (node.tagType !== 1) {
|
|
16795
|
-
|
|
16801
|
+
convertToBlock(codegenNode, context);
|
|
16796
16802
|
}
|
|
16797
16803
|
node.codegenNode = createCallExpression(context.helper(WITH_MEMO), [
|
|
16798
16804
|
dir.exp,
|