@vue/compat 3.4.0-beta.4 → 3.4.0-rc.2
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 +165 -158
- package/dist/vue.cjs.prod.js +10 -52
- package/dist/vue.esm-browser.js +165 -158
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +166 -161
- package/dist/vue.global.js +165 -158
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +161 -144
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.esm-bundler.js +162 -147
- package/dist/vue.runtime.global.js +161 -144
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +3 -3
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -345,7 +345,7 @@ const stringifySymbol = (v, i = "") => {
|
|
|
345
345
|
return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
|
|
346
346
|
};
|
|
347
347
|
|
|
348
|
-
function warn$
|
|
348
|
+
function warn$2(msg, ...args) {
|
|
349
349
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
350
350
|
}
|
|
351
351
|
|
|
@@ -385,7 +385,7 @@ class EffectScope {
|
|
|
385
385
|
activeEffectScope = currentEffectScope;
|
|
386
386
|
}
|
|
387
387
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
388
|
-
warn$
|
|
388
|
+
warn$2(`cannot run an inactive effect scope.`);
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
/**
|
|
@@ -443,7 +443,7 @@ function onScopeDispose(fn) {
|
|
|
443
443
|
if (activeEffectScope) {
|
|
444
444
|
activeEffectScope.cleanups.push(fn);
|
|
445
445
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
446
|
-
warn$
|
|
446
|
+
warn$2(
|
|
447
447
|
`onScopeDispose() is called when there is no active effect scope to be associated with.`
|
|
448
448
|
);
|
|
449
449
|
}
|
|
@@ -891,7 +891,7 @@ class ReadonlyReactiveHandler extends BaseReactiveHandler {
|
|
|
891
891
|
}
|
|
892
892
|
set(target, key) {
|
|
893
893
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
894
|
-
warn$
|
|
894
|
+
warn$2(
|
|
895
895
|
`Set operation on key "${String(key)}" failed: target is readonly.`,
|
|
896
896
|
target
|
|
897
897
|
);
|
|
@@ -900,7 +900,7 @@ class ReadonlyReactiveHandler extends BaseReactiveHandler {
|
|
|
900
900
|
}
|
|
901
901
|
deleteProperty(target, key) {
|
|
902
902
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
903
|
-
warn$
|
|
903
|
+
warn$2(
|
|
904
904
|
`Delete operation on key "${String(key)}" failed: target is readonly.`,
|
|
905
905
|
target
|
|
906
906
|
);
|
|
@@ -1558,9 +1558,7 @@ function pushWarningContext(vnode) {
|
|
|
1558
1558
|
function popWarningContext() {
|
|
1559
1559
|
stack$1.pop();
|
|
1560
1560
|
}
|
|
1561
|
-
function warn(msg, ...args) {
|
|
1562
|
-
if (!!!(process.env.NODE_ENV !== "production"))
|
|
1563
|
-
return;
|
|
1561
|
+
function warn$1(msg, ...args) {
|
|
1564
1562
|
pauseTracking();
|
|
1565
1563
|
const instance = stack$1.length ? stack$1[stack$1.length - 1].component : null;
|
|
1566
1564
|
const appWarnHandler = instance && instance.appContext.config.warnHandler;
|
|
@@ -1663,9 +1661,9 @@ function assertNumber(val, type) {
|
|
|
1663
1661
|
if (val === void 0) {
|
|
1664
1662
|
return;
|
|
1665
1663
|
} else if (typeof val !== "number") {
|
|
1666
|
-
warn(`${type} is not a valid number - got ${JSON.stringify(val)}.`);
|
|
1664
|
+
warn$1(`${type} is not a valid number - got ${JSON.stringify(val)}.`);
|
|
1667
1665
|
} else if (isNaN(val)) {
|
|
1668
|
-
warn(`${type} is NaN - the duration expression might be incorrect.`);
|
|
1666
|
+
warn$1(`${type} is NaN - the duration expression might be incorrect.`);
|
|
1669
1667
|
}
|
|
1670
1668
|
}
|
|
1671
1669
|
|
|
@@ -1793,7 +1791,7 @@ function logError(err, type, contextVNode, throwInDev = true) {
|
|
|
1793
1791
|
if (contextVNode) {
|
|
1794
1792
|
pushWarningContext(contextVNode);
|
|
1795
1793
|
}
|
|
1796
|
-
warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
|
|
1794
|
+
warn$1(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
|
|
1797
1795
|
if (contextVNode) {
|
|
1798
1796
|
popWarningContext();
|
|
1799
1797
|
}
|
|
@@ -2093,22 +2091,22 @@ function tryWrap(fn) {
|
|
|
2093
2091
|
};
|
|
2094
2092
|
}
|
|
2095
2093
|
|
|
2096
|
-
let devtools;
|
|
2094
|
+
let devtools$1;
|
|
2097
2095
|
let buffer = [];
|
|
2098
2096
|
let devtoolsNotInstalled = false;
|
|
2099
2097
|
function emit$2(event, ...args) {
|
|
2100
|
-
if (devtools) {
|
|
2101
|
-
devtools.emit(event, ...args);
|
|
2098
|
+
if (devtools$1) {
|
|
2099
|
+
devtools$1.emit(event, ...args);
|
|
2102
2100
|
} else if (!devtoolsNotInstalled) {
|
|
2103
2101
|
buffer.push({ event, args });
|
|
2104
2102
|
}
|
|
2105
2103
|
}
|
|
2106
|
-
function setDevtoolsHook(hook, target) {
|
|
2104
|
+
function setDevtoolsHook$1(hook, target) {
|
|
2107
2105
|
var _a, _b;
|
|
2108
|
-
devtools = hook;
|
|
2109
|
-
if (devtools) {
|
|
2110
|
-
devtools.enabled = true;
|
|
2111
|
-
buffer.forEach(({ event, args }) => devtools.emit(event, ...args));
|
|
2106
|
+
devtools$1 = hook;
|
|
2107
|
+
if (devtools$1) {
|
|
2108
|
+
devtools$1.enabled = true;
|
|
2109
|
+
buffer.forEach(({ event, args }) => devtools$1.emit(event, ...args));
|
|
2112
2110
|
buffer = [];
|
|
2113
2111
|
} else if (
|
|
2114
2112
|
// handle late devtools injection - only do this if we are in an actual
|
|
@@ -2120,10 +2118,10 @@ function setDevtoolsHook(hook, target) {
|
|
|
2120
2118
|
) {
|
|
2121
2119
|
const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
|
|
2122
2120
|
replay.push((newHook) => {
|
|
2123
|
-
setDevtoolsHook(newHook, target);
|
|
2121
|
+
setDevtoolsHook$1(newHook, target);
|
|
2124
2122
|
});
|
|
2125
2123
|
setTimeout(() => {
|
|
2126
|
-
if (!devtools) {
|
|
2124
|
+
if (!devtools$1) {
|
|
2127
2125
|
target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;
|
|
2128
2126
|
devtoolsNotInstalled = true;
|
|
2129
2127
|
buffer = [];
|
|
@@ -2153,8 +2151,8 @@ const _devtoolsComponentRemoved = /* @__PURE__ */ createDevtoolsComponentHook(
|
|
|
2153
2151
|
"component:removed" /* COMPONENT_REMOVED */
|
|
2154
2152
|
);
|
|
2155
2153
|
const devtoolsComponentRemoved = (component) => {
|
|
2156
|
-
if (devtools && typeof devtools.cleanupBuffer === "function" && // remove the component if it wasn't buffered
|
|
2157
|
-
!devtools.cleanupBuffer(component)) {
|
|
2154
|
+
if (devtools$1 && typeof devtools$1.cleanupBuffer === "function" && // remove the component if it wasn't buffered
|
|
2155
|
+
!devtools$1.cleanupBuffer(component)) {
|
|
2158
2156
|
_devtoolsComponentRemoved(component);
|
|
2159
2157
|
}
|
|
2160
2158
|
};
|
|
@@ -2456,12 +2454,12 @@ function warnDeprecation$1(key, instance, ...args) {
|
|
|
2456
2454
|
}
|
|
2457
2455
|
instanceWarned[componentDupKey] = true;
|
|
2458
2456
|
if (dupKey in warnCount) {
|
|
2459
|
-
warn(`(deprecation ${key}) (${++warnCount[dupKey] + 1})`);
|
|
2457
|
+
warn$1(`(deprecation ${key}) (${++warnCount[dupKey] + 1})`);
|
|
2460
2458
|
return;
|
|
2461
2459
|
}
|
|
2462
2460
|
warnCount[dupKey] = 0;
|
|
2463
2461
|
const { message, link } = deprecationData$1[key];
|
|
2464
|
-
warn(
|
|
2462
|
+
warn$1(
|
|
2465
2463
|
`(deprecation ${key}) ${typeof message === "function" ? message(...args) : message}${link ? `
|
|
2466
2464
|
Details: ${link}` : ``}`
|
|
2467
2465
|
);
|
|
@@ -2491,19 +2489,19 @@ function validateCompatConfig(config, instance) {
|
|
|
2491
2489
|
if (key !== "MODE" && !(key in deprecationData$1) && !(key in warnedInvalidKeys)) {
|
|
2492
2490
|
if (key.startsWith("COMPILER_")) {
|
|
2493
2491
|
if (isRuntimeOnly()) {
|
|
2494
|
-
warn(
|
|
2492
|
+
warn$1(
|
|
2495
2493
|
`Deprecation config "${key}" is compiler-specific and you are running a runtime-only build of Vue. This deprecation should be configured via compiler options in your build setup instead.
|
|
2496
2494
|
Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
2497
2495
|
);
|
|
2498
2496
|
}
|
|
2499
2497
|
} else {
|
|
2500
|
-
warn(`Invalid deprecation config "${key}".`);
|
|
2498
|
+
warn$1(`Invalid deprecation config "${key}".`);
|
|
2501
2499
|
}
|
|
2502
2500
|
warnedInvalidKeys[key] = true;
|
|
2503
2501
|
}
|
|
2504
2502
|
}
|
|
2505
2503
|
if (instance && config["OPTIONS_DATA_MERGE"] != null) {
|
|
2506
|
-
warn(
|
|
2504
|
+
warn$1(
|
|
2507
2505
|
`Deprecation config "${"OPTIONS_DATA_MERGE"}" can only be configured globally.`
|
|
2508
2506
|
);
|
|
2509
2507
|
}
|
|
@@ -2693,7 +2691,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
2693
2691
|
if (emitsOptions) {
|
|
2694
2692
|
if (!(event in emitsOptions) && !(event.startsWith("hook:") || event.startsWith(compatModelEventPrefix))) {
|
|
2695
2693
|
if (!propsOptions || !(toHandlerKey(event) in propsOptions)) {
|
|
2696
|
-
warn(
|
|
2694
|
+
warn$1(
|
|
2697
2695
|
`Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(event)}" prop.`
|
|
2698
2696
|
);
|
|
2699
2697
|
}
|
|
@@ -2702,7 +2700,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
2702
2700
|
if (isFunction(validator)) {
|
|
2703
2701
|
const isValid = validator(...rawArgs);
|
|
2704
2702
|
if (!isValid) {
|
|
2705
|
-
warn(
|
|
2703
|
+
warn$1(
|
|
2706
2704
|
`Invalid event arguments: event validation failed for event "${event}".`
|
|
2707
2705
|
);
|
|
2708
2706
|
}
|
|
@@ -2729,7 +2727,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
2729
2727
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2730
2728
|
const lowerCaseEvent = event.toLowerCase();
|
|
2731
2729
|
if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) {
|
|
2732
|
-
warn(
|
|
2730
|
+
warn$1(
|
|
2733
2731
|
`Event "${lowerCaseEvent}" is emitted in component ${formatComponentName(
|
|
2734
2732
|
instance,
|
|
2735
2733
|
instance.type
|
|
@@ -2910,7 +2908,7 @@ function renderComponentRoot(instance) {
|
|
|
2910
2908
|
const proxyToUse = withProxy || proxy;
|
|
2911
2909
|
const thisProxy = !!(process.env.NODE_ENV !== "production") && setupState.__isScriptSetup ? new Proxy(proxyToUse, {
|
|
2912
2910
|
get(target, key, receiver) {
|
|
2913
|
-
warn(
|
|
2911
|
+
warn$1(
|
|
2914
2912
|
`Property '${String(
|
|
2915
2913
|
key
|
|
2916
2914
|
)}' was accessed via 'this'. Avoid using 'this' in templates.`
|
|
@@ -2991,12 +2989,12 @@ function renderComponentRoot(instance) {
|
|
|
2991
2989
|
}
|
|
2992
2990
|
}
|
|
2993
2991
|
if (extraAttrs.length) {
|
|
2994
|
-
warn(
|
|
2992
|
+
warn$1(
|
|
2995
2993
|
`Extraneous non-props attributes (${extraAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`
|
|
2996
2994
|
);
|
|
2997
2995
|
}
|
|
2998
2996
|
if (eventAttrs.length) {
|
|
2999
|
-
warn(
|
|
2997
|
+
warn$1(
|
|
3000
2998
|
`Extraneous non-emits event listeners (${eventAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`
|
|
3001
2999
|
);
|
|
3002
3000
|
}
|
|
@@ -3021,7 +3019,7 @@ function renderComponentRoot(instance) {
|
|
|
3021
3019
|
}
|
|
3022
3020
|
if (vnode.dirs) {
|
|
3023
3021
|
if (!!(process.env.NODE_ENV !== "production") && !isElementRoot(root)) {
|
|
3024
|
-
warn(
|
|
3022
|
+
warn$1(
|
|
3025
3023
|
`Runtime directive used on component with non-element root node. The directives will not function as intended.`
|
|
3026
3024
|
);
|
|
3027
3025
|
}
|
|
@@ -3030,7 +3028,7 @@ function renderComponentRoot(instance) {
|
|
|
3030
3028
|
}
|
|
3031
3029
|
if (vnode.transition) {
|
|
3032
3030
|
if (!!(process.env.NODE_ENV !== "production") && !isElementRoot(root)) {
|
|
3033
|
-
warn(
|
|
3031
|
+
warn$1(
|
|
3034
3032
|
`Component inside <Transition> renders non-element root node that cannot be animated.`
|
|
3035
3033
|
);
|
|
3036
3034
|
}
|
|
@@ -3227,11 +3225,11 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
3227
3225
|
if (!!(process.env.NODE_ENV !== "production") && warnMissing && !res) {
|
|
3228
3226
|
const extra = type === COMPONENTS ? `
|
|
3229
3227
|
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
|
|
3230
|
-
warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
3228
|
+
warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
3231
3229
|
}
|
|
3232
3230
|
return res;
|
|
3233
3231
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3234
|
-
warn(
|
|
3232
|
+
warn$1(
|
|
3235
3233
|
`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
|
|
3236
3234
|
);
|
|
3237
3235
|
}
|
|
@@ -3787,7 +3785,7 @@ function normalizeSuspenseSlot(s) {
|
|
|
3787
3785
|
if (isArray(s)) {
|
|
3788
3786
|
const singleChild = filterSingleRoot(s);
|
|
3789
3787
|
if (!!(process.env.NODE_ENV !== "production") && !singleChild && s.filter((child) => child !== NULL_DYNAMIC_COMPONENT).length > 0) {
|
|
3790
|
-
warn(`<Suspense> slots expect a single root node.`);
|
|
3788
|
+
warn$1(`<Suspense> slots expect a single root node.`);
|
|
3791
3789
|
}
|
|
3792
3790
|
s = singleChild;
|
|
3793
3791
|
}
|
|
@@ -3880,7 +3878,7 @@ function watchSyncEffect(effect, options) {
|
|
|
3880
3878
|
const INITIAL_WATCHER_VALUE = {};
|
|
3881
3879
|
function watch(source, cb, options) {
|
|
3882
3880
|
if (!!(process.env.NODE_ENV !== "production") && !isFunction(cb)) {
|
|
3883
|
-
warn(
|
|
3881
|
+
warn$1(
|
|
3884
3882
|
`\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.`
|
|
3885
3883
|
);
|
|
3886
3884
|
}
|
|
@@ -3897,23 +3895,23 @@ function doWatch(source, cb, { immediate, deep, flush, once, onTrack, onTrigger
|
|
|
3897
3895
|
}
|
|
3898
3896
|
if (!!(process.env.NODE_ENV !== "production") && !cb) {
|
|
3899
3897
|
if (immediate !== void 0) {
|
|
3900
|
-
warn(
|
|
3898
|
+
warn$1(
|
|
3901
3899
|
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3902
3900
|
);
|
|
3903
3901
|
}
|
|
3904
3902
|
if (deep !== void 0) {
|
|
3905
|
-
warn(
|
|
3903
|
+
warn$1(
|
|
3906
3904
|
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3907
3905
|
);
|
|
3908
3906
|
}
|
|
3909
3907
|
if (once !== void 0) {
|
|
3910
|
-
warn(
|
|
3908
|
+
warn$1(
|
|
3911
3909
|
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3912
3910
|
);
|
|
3913
3911
|
}
|
|
3914
3912
|
}
|
|
3915
3913
|
const warnInvalidSource = (s) => {
|
|
3916
|
-
warn(
|
|
3914
|
+
warn$1(
|
|
3917
3915
|
`Invalid watch source: `,
|
|
3918
3916
|
s,
|
|
3919
3917
|
`A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`
|
|
@@ -4129,13 +4127,13 @@ function traverse(value, seen) {
|
|
|
4129
4127
|
|
|
4130
4128
|
function validateDirectiveName(name) {
|
|
4131
4129
|
if (isBuiltInDirective(name)) {
|
|
4132
|
-
warn("Do not use built-in directive ids as custom directive id: " + name);
|
|
4130
|
+
warn$1("Do not use built-in directive ids as custom directive id: " + name);
|
|
4133
4131
|
}
|
|
4134
4132
|
}
|
|
4135
4133
|
function withDirectives(vnode, directives) {
|
|
4136
4134
|
const internalInstance = currentRenderingInstance;
|
|
4137
4135
|
if (internalInstance === null) {
|
|
4138
|
-
!!(process.env.NODE_ENV !== "production") && warn(`withDirectives can only be used inside render functions.`);
|
|
4136
|
+
!!(process.env.NODE_ENV !== "production") && warn$1(`withDirectives can only be used inside render functions.`);
|
|
4139
4137
|
return vnode;
|
|
4140
4138
|
}
|
|
4141
4139
|
const instance = getExposeProxy(internalInstance) || internalInstance.proxy;
|
|
@@ -4245,7 +4243,7 @@ const BaseTransitionImpl = {
|
|
|
4245
4243
|
for (const c of children) {
|
|
4246
4244
|
if (c.type !== Comment) {
|
|
4247
4245
|
if (!!(process.env.NODE_ENV !== "production") && hasFound) {
|
|
4248
|
-
warn(
|
|
4246
|
+
warn$1(
|
|
4249
4247
|
"<transition> can only be used on a single element or component. Use <transition-group> for lists."
|
|
4250
4248
|
);
|
|
4251
4249
|
break;
|
|
@@ -4260,7 +4258,7 @@ const BaseTransitionImpl = {
|
|
|
4260
4258
|
const rawProps = toRaw(props);
|
|
4261
4259
|
const { mode } = rawProps;
|
|
4262
4260
|
if (!!(process.env.NODE_ENV !== "production") && mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
|
|
4263
|
-
warn(`invalid <transition> mode: ${mode}`);
|
|
4261
|
+
warn$1(`invalid <transition> mode: ${mode}`);
|
|
4264
4262
|
}
|
|
4265
4263
|
if (state.isLeaving) {
|
|
4266
4264
|
return emptyPlaceholder(child);
|
|
@@ -4578,7 +4576,7 @@ function defineAsyncComponent(source) {
|
|
|
4578
4576
|
return pendingRequest;
|
|
4579
4577
|
}
|
|
4580
4578
|
if (!!(process.env.NODE_ENV !== "production") && !comp) {
|
|
4581
|
-
warn(
|
|
4579
|
+
warn$1(
|
|
4582
4580
|
`Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.`
|
|
4583
4581
|
);
|
|
4584
4582
|
}
|
|
@@ -4818,7 +4816,7 @@ const KeepAliveImpl = {
|
|
|
4818
4816
|
const rawVNode = children[0];
|
|
4819
4817
|
if (children.length > 1) {
|
|
4820
4818
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
4821
|
-
warn(`KeepAlive should contain exactly one component child.`);
|
|
4819
|
+
warn$1(`KeepAlive should contain exactly one component child.`);
|
|
4822
4820
|
}
|
|
4823
4821
|
current = null;
|
|
4824
4822
|
return children;
|
|
@@ -4950,7 +4948,7 @@ function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
|
4950
4948
|
return wrappedHook;
|
|
4951
4949
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
4952
4950
|
const apiName = toHandlerKey(ErrorTypeStrings$1[type].replace(/ hook$/, ""));
|
|
4953
|
-
warn(
|
|
4951
|
+
warn$1(
|
|
4954
4952
|
`${apiName} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup().` + (` If you are using async setup(), make sure to register lifecycle hooks before the first await statement.` )
|
|
4955
4953
|
);
|
|
4956
4954
|
}
|
|
@@ -5272,7 +5270,7 @@ function renderList(source, renderItem, cache, index) {
|
|
|
5272
5270
|
}
|
|
5273
5271
|
} else if (typeof source === "number") {
|
|
5274
5272
|
if (!!(process.env.NODE_ENV !== "production") && !Number.isInteger(source)) {
|
|
5275
|
-
warn(`The v-for range expect an integer value but got ${source}.`);
|
|
5273
|
+
warn$1(`The v-for range expect an integer value but got ${source}.`);
|
|
5276
5274
|
}
|
|
5277
5275
|
ret = new Array(source);
|
|
5278
5276
|
for (let i = 0; i < source; i++) {
|
|
@@ -5328,7 +5326,7 @@ function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
|
5328
5326
|
}
|
|
5329
5327
|
let slot = slots[name];
|
|
5330
5328
|
if (!!(process.env.NODE_ENV !== "production") && slot && slot.length > 1) {
|
|
5331
|
-
warn(
|
|
5329
|
+
warn$1(
|
|
5332
5330
|
`SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.`
|
|
5333
5331
|
);
|
|
5334
5332
|
slot = () => [];
|
|
@@ -5371,7 +5369,7 @@ function ensureValidVNode(vnodes) {
|
|
|
5371
5369
|
function toHandlers(obj, preserveCaseIfNecessary) {
|
|
5372
5370
|
const ret = {};
|
|
5373
5371
|
if (!!(process.env.NODE_ENV !== "production") && !isObject(obj)) {
|
|
5374
|
-
warn(`v-on with no argument expects an object value.`);
|
|
5372
|
+
warn$1(`v-on with no argument expects an object value.`);
|
|
5375
5373
|
return ret;
|
|
5376
5374
|
}
|
|
5377
5375
|
for (const key in obj) {
|
|
@@ -5700,13 +5698,13 @@ const PublicInstanceProxyHandlers = {
|
|
|
5700
5698
|
// to infinite warning loop
|
|
5701
5699
|
key.indexOf("__v") !== 0)) {
|
|
5702
5700
|
if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) {
|
|
5703
|
-
warn(
|
|
5701
|
+
warn$1(
|
|
5704
5702
|
`Property ${JSON.stringify(
|
|
5705
5703
|
key
|
|
5706
5704
|
)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
|
|
5707
5705
|
);
|
|
5708
5706
|
} else if (instance === currentRenderingInstance) {
|
|
5709
|
-
warn(
|
|
5707
|
+
warn$1(
|
|
5710
5708
|
`Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.`
|
|
5711
5709
|
);
|
|
5712
5710
|
}
|
|
@@ -5718,17 +5716,17 @@ const PublicInstanceProxyHandlers = {
|
|
|
5718
5716
|
setupState[key] = value;
|
|
5719
5717
|
return true;
|
|
5720
5718
|
} else if (!!(process.env.NODE_ENV !== "production") && setupState.__isScriptSetup && hasOwn(setupState, key)) {
|
|
5721
|
-
warn(`Cannot mutate <script setup> binding "${key}" from Options API.`);
|
|
5719
|
+
warn$1(`Cannot mutate <script setup> binding "${key}" from Options API.`);
|
|
5722
5720
|
return false;
|
|
5723
5721
|
} else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
|
|
5724
5722
|
data[key] = value;
|
|
5725
5723
|
return true;
|
|
5726
5724
|
} else if (hasOwn(instance.props, key)) {
|
|
5727
|
-
!!(process.env.NODE_ENV !== "production") && warn(`Attempting to mutate prop "${key}". Props are readonly.`);
|
|
5725
|
+
!!(process.env.NODE_ENV !== "production") && warn$1(`Attempting to mutate prop "${key}". Props are readonly.`);
|
|
5728
5726
|
return false;
|
|
5729
5727
|
}
|
|
5730
5728
|
if (key[0] === "$" && key.slice(1) in instance) {
|
|
5731
|
-
!!(process.env.NODE_ENV !== "production") && warn(
|
|
5729
|
+
!!(process.env.NODE_ENV !== "production") && warn$1(
|
|
5732
5730
|
`Attempting to mutate public property "${key}". Properties starting with $ are reserved and readonly.`
|
|
5733
5731
|
);
|
|
5734
5732
|
return false;
|
|
@@ -5762,7 +5760,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
5762
5760
|
};
|
|
5763
5761
|
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
5764
5762
|
PublicInstanceProxyHandlers.ownKeys = (target) => {
|
|
5765
|
-
warn(
|
|
5763
|
+
warn$1(
|
|
5766
5764
|
`Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.`
|
|
5767
5765
|
);
|
|
5768
5766
|
return Reflect.ownKeys(target);
|
|
@@ -5781,7 +5779,7 @@ const RuntimeCompiledPublicInstanceProxyHandlers = /* @__PURE__ */ extend(
|
|
|
5781
5779
|
has(_, key) {
|
|
5782
5780
|
const has = key[0] !== "_" && !isGloballyAllowed(key);
|
|
5783
5781
|
if (!!(process.env.NODE_ENV !== "production") && !has && PublicInstanceProxyHandlers.has(_, key)) {
|
|
5784
|
-
warn(
|
|
5782
|
+
warn$1(
|
|
5785
5783
|
`Property ${JSON.stringify(
|
|
5786
5784
|
key
|
|
5787
5785
|
)} should not start with _ which is a reserved prefix for Vue internals.`
|
|
@@ -5831,7 +5829,7 @@ function exposeSetupStateOnRenderContext(instance) {
|
|
|
5831
5829
|
Object.keys(toRaw(setupState)).forEach((key) => {
|
|
5832
5830
|
if (!setupState.__isScriptSetup) {
|
|
5833
5831
|
if (isReservedPrefix(key[0])) {
|
|
5834
|
-
warn(
|
|
5832
|
+
warn$1(
|
|
5835
5833
|
`setup() return property ${JSON.stringify(
|
|
5836
5834
|
key
|
|
5837
5835
|
)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`
|
|
@@ -5862,7 +5860,7 @@ function deepMergeData(to, from) {
|
|
|
5862
5860
|
return to;
|
|
5863
5861
|
}
|
|
5864
5862
|
|
|
5865
|
-
const warnRuntimeUsage = (method) => warn(
|
|
5863
|
+
const warnRuntimeUsage = (method) => warn$1(
|
|
5866
5864
|
`${method}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.`
|
|
5867
5865
|
);
|
|
5868
5866
|
function defineProps() {
|
|
@@ -5913,11 +5911,11 @@ function useAttrs() {
|
|
|
5913
5911
|
function useModel(props, name) {
|
|
5914
5912
|
const i = getCurrentInstance();
|
|
5915
5913
|
if (!!(process.env.NODE_ENV !== "production") && !i) {
|
|
5916
|
-
warn(`useModel() called without active instance.`);
|
|
5914
|
+
warn$1(`useModel() called without active instance.`);
|
|
5917
5915
|
return ref();
|
|
5918
5916
|
}
|
|
5919
5917
|
if (!!(process.env.NODE_ENV !== "production") && !i.propsOptions[0][name]) {
|
|
5920
|
-
warn(`useModel() called with prop "${name}" which is not declared.`);
|
|
5918
|
+
warn$1(`useModel() called with prop "${name}" which is not declared.`);
|
|
5921
5919
|
return ref();
|
|
5922
5920
|
}
|
|
5923
5921
|
return customRef((track, trigger) => {
|
|
@@ -5948,7 +5946,7 @@ function useModel(props, name) {
|
|
|
5948
5946
|
function getContext() {
|
|
5949
5947
|
const i = getCurrentInstance();
|
|
5950
5948
|
if (!!(process.env.NODE_ENV !== "production") && !i) {
|
|
5951
|
-
warn(`useContext() called without active instance.`);
|
|
5949
|
+
warn$1(`useContext() called without active instance.`);
|
|
5952
5950
|
}
|
|
5953
5951
|
return i.setupContext || (i.setupContext = createSetupContext(i));
|
|
5954
5952
|
}
|
|
@@ -5973,7 +5971,7 @@ function mergeDefaults(raw, defaults) {
|
|
|
5973
5971
|
} else if (opt === null) {
|
|
5974
5972
|
opt = props[key] = { default: defaults[key] };
|
|
5975
5973
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
5976
|
-
warn(`props default key "${key}" has no corresponding declaration.`);
|
|
5974
|
+
warn$1(`props default key "${key}" has no corresponding declaration.`);
|
|
5977
5975
|
}
|
|
5978
5976
|
if (opt && defaults[`__skip_${key}`]) {
|
|
5979
5977
|
opt.skipFactory = true;
|
|
@@ -6003,7 +6001,7 @@ function createPropsRestProxy(props, excludedKeys) {
|
|
|
6003
6001
|
function withAsyncContext(getAwaitable) {
|
|
6004
6002
|
const ctx = getCurrentInstance();
|
|
6005
6003
|
if (!!(process.env.NODE_ENV !== "production") && !ctx) {
|
|
6006
|
-
warn(
|
|
6004
|
+
warn$1(
|
|
6007
6005
|
`withAsyncContext called without active current instance. This is likely a bug.`
|
|
6008
6006
|
);
|
|
6009
6007
|
}
|
|
@@ -6022,7 +6020,7 @@ function createDuplicateChecker() {
|
|
|
6022
6020
|
const cache = /* @__PURE__ */ Object.create(null);
|
|
6023
6021
|
return (type, key) => {
|
|
6024
6022
|
if (cache[key]) {
|
|
6025
|
-
warn(`${type} property "${key}" is already defined in ${cache[key]}.`);
|
|
6023
|
+
warn$1(`${type} property "${key}" is already defined in ${cache[key]}.`);
|
|
6026
6024
|
} else {
|
|
6027
6025
|
cache[key] = type;
|
|
6028
6026
|
}
|
|
@@ -6100,7 +6098,7 @@ function applyOptions(instance) {
|
|
|
6100
6098
|
checkDuplicateProperties("Methods" /* METHODS */, key);
|
|
6101
6099
|
}
|
|
6102
6100
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6103
|
-
warn(
|
|
6101
|
+
warn$1(
|
|
6104
6102
|
`Method "${key}" has type "${typeof methodHandler}" in the component definition. Did you reference the function correctly?`
|
|
6105
6103
|
);
|
|
6106
6104
|
}
|
|
@@ -6108,18 +6106,18 @@ function applyOptions(instance) {
|
|
|
6108
6106
|
}
|
|
6109
6107
|
if (dataOptions) {
|
|
6110
6108
|
if (!!(process.env.NODE_ENV !== "production") && !isFunction(dataOptions)) {
|
|
6111
|
-
warn(
|
|
6109
|
+
warn$1(
|
|
6112
6110
|
`The data option must be a function. Plain object usage is no longer supported.`
|
|
6113
6111
|
);
|
|
6114
6112
|
}
|
|
6115
6113
|
const data = dataOptions.call(publicThis, publicThis);
|
|
6116
6114
|
if (!!(process.env.NODE_ENV !== "production") && isPromise(data)) {
|
|
6117
|
-
warn(
|
|
6115
|
+
warn$1(
|
|
6118
6116
|
`data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>.`
|
|
6119
6117
|
);
|
|
6120
6118
|
}
|
|
6121
6119
|
if (!isObject(data)) {
|
|
6122
|
-
!!(process.env.NODE_ENV !== "production") && warn(`data() should return an object.`);
|
|
6120
|
+
!!(process.env.NODE_ENV !== "production") && warn$1(`data() should return an object.`);
|
|
6123
6121
|
} else {
|
|
6124
6122
|
instance.data = reactive(data);
|
|
6125
6123
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
@@ -6143,10 +6141,10 @@ function applyOptions(instance) {
|
|
|
6143
6141
|
const opt = computedOptions[key];
|
|
6144
6142
|
const get = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP;
|
|
6145
6143
|
if (!!(process.env.NODE_ENV !== "production") && get === NOOP) {
|
|
6146
|
-
warn(`Computed property "${key}" has no getter.`);
|
|
6144
|
+
warn$1(`Computed property "${key}" has no getter.`);
|
|
6147
6145
|
}
|
|
6148
6146
|
const set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : !!(process.env.NODE_ENV !== "production") ? () => {
|
|
6149
|
-
warn(
|
|
6147
|
+
warn$1(
|
|
6150
6148
|
`Write operation failed: computed property "${key}" is readonly.`
|
|
6151
6149
|
);
|
|
6152
6150
|
} : NOOP;
|
|
@@ -6283,7 +6281,7 @@ function createWatcher(raw, ctx, publicThis, key) {
|
|
|
6283
6281
|
if (isFunction(handler)) {
|
|
6284
6282
|
watch(getter, handler);
|
|
6285
6283
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6286
|
-
warn(`Invalid watch handler specified by key "${raw}"`, handler);
|
|
6284
|
+
warn$1(`Invalid watch handler specified by key "${raw}"`, handler);
|
|
6287
6285
|
}
|
|
6288
6286
|
} else if (isFunction(raw)) {
|
|
6289
6287
|
watch(getter, raw.bind(publicThis));
|
|
@@ -6295,11 +6293,11 @@ function createWatcher(raw, ctx, publicThis, key) {
|
|
|
6295
6293
|
if (isFunction(handler)) {
|
|
6296
6294
|
watch(getter, handler, raw);
|
|
6297
6295
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6298
|
-
warn(`Invalid watch handler specified by key "${raw.handler}"`, handler);
|
|
6296
|
+
warn$1(`Invalid watch handler specified by key "${raw.handler}"`, handler);
|
|
6299
6297
|
}
|
|
6300
6298
|
}
|
|
6301
6299
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6302
|
-
warn(`Invalid watch option: "${key}"`, raw);
|
|
6300
|
+
warn$1(`Invalid watch option: "${key}"`, raw);
|
|
6303
6301
|
}
|
|
6304
6302
|
}
|
|
6305
6303
|
function resolveMergedOptions(instance) {
|
|
@@ -6351,7 +6349,7 @@ function mergeOptions(to, from, strats, asMixin = false) {
|
|
|
6351
6349
|
}
|
|
6352
6350
|
for (const key in from) {
|
|
6353
6351
|
if (asMixin && key === "expose") {
|
|
6354
|
-
!!(process.env.NODE_ENV !== "production") && warn(
|
|
6352
|
+
!!(process.env.NODE_ENV !== "production") && warn$1(
|
|
6355
6353
|
`"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.`
|
|
6356
6354
|
);
|
|
6357
6355
|
} else {
|
|
@@ -6519,7 +6517,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6519
6517
|
return vm;
|
|
6520
6518
|
}
|
|
6521
6519
|
}
|
|
6522
|
-
Vue.version = `2.6.14-compat:${"3.4.0-
|
|
6520
|
+
Vue.version = `2.6.14-compat:${"3.4.0-rc.2"}`;
|
|
6523
6521
|
Vue.config = singletonApp.config;
|
|
6524
6522
|
Vue.use = (p, ...options) => {
|
|
6525
6523
|
if (p && isFunction(p.install)) {
|
|
@@ -6620,7 +6618,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6620
6618
|
}
|
|
6621
6619
|
};
|
|
6622
6620
|
const util = {
|
|
6623
|
-
warn: !!(process.env.NODE_ENV !== "production") ? warn : NOOP,
|
|
6621
|
+
warn: !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP,
|
|
6624
6622
|
extend,
|
|
6625
6623
|
mergeOptions: (parent, child, vm) => mergeOptions(
|
|
6626
6624
|
parent,
|
|
@@ -6658,7 +6656,7 @@ function installFilterMethod(app, context) {
|
|
|
6658
6656
|
return context.filters[name];
|
|
6659
6657
|
}
|
|
6660
6658
|
if (!!(process.env.NODE_ENV !== "production") && context.filters[name]) {
|
|
6661
|
-
warn(`Filter "${name}" has already been registered.`);
|
|
6659
|
+
warn$1(`Filter "${name}" has already been registered.`);
|
|
6662
6660
|
}
|
|
6663
6661
|
context.filters[name] = filter;
|
|
6664
6662
|
return app;
|
|
@@ -6749,14 +6747,14 @@ function installCompatMount(app, context, render) {
|
|
|
6749
6747
|
vnode.isCompatRoot = true;
|
|
6750
6748
|
instance.ctx._compat_mount = (selectorOrEl) => {
|
|
6751
6749
|
if (isMounted) {
|
|
6752
|
-
!!(process.env.NODE_ENV !== "production") && warn(`Root instance is already mounted.`);
|
|
6750
|
+
!!(process.env.NODE_ENV !== "production") && warn$1(`Root instance is already mounted.`);
|
|
6753
6751
|
return;
|
|
6754
6752
|
}
|
|
6755
6753
|
let container;
|
|
6756
6754
|
if (typeof selectorOrEl === "string") {
|
|
6757
6755
|
const result = document.querySelector(selectorOrEl);
|
|
6758
6756
|
if (!result) {
|
|
6759
|
-
!!(process.env.NODE_ENV !== "production") && warn(
|
|
6757
|
+
!!(process.env.NODE_ENV !== "production") && warn$1(
|
|
6760
6758
|
`Failed to mount root instance: selector "${selectorOrEl}" returned null.`
|
|
6761
6759
|
);
|
|
6762
6760
|
return;
|
|
@@ -6921,7 +6919,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6921
6919
|
rootComponent = extend({}, rootComponent);
|
|
6922
6920
|
}
|
|
6923
6921
|
if (rootProps != null && !isObject(rootProps)) {
|
|
6924
|
-
!!(process.env.NODE_ENV !== "production") && warn(`root props passed to app.mount() must be an object.`);
|
|
6922
|
+
!!(process.env.NODE_ENV !== "production") && warn$1(`root props passed to app.mount() must be an object.`);
|
|
6925
6923
|
rootProps = null;
|
|
6926
6924
|
}
|
|
6927
6925
|
const context = createAppContext();
|
|
@@ -6940,14 +6938,14 @@ function createAppAPI(render, hydrate) {
|
|
|
6940
6938
|
},
|
|
6941
6939
|
set config(v) {
|
|
6942
6940
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6943
|
-
warn(
|
|
6941
|
+
warn$1(
|
|
6944
6942
|
`app.config cannot be replaced. Modify individual options instead.`
|
|
6945
6943
|
);
|
|
6946
6944
|
}
|
|
6947
6945
|
},
|
|
6948
6946
|
use(plugin, ...options) {
|
|
6949
6947
|
if (installedPlugins.has(plugin)) {
|
|
6950
|
-
!!(process.env.NODE_ENV !== "production") && warn(`Plugin has already been applied to target app.`);
|
|
6948
|
+
!!(process.env.NODE_ENV !== "production") && warn$1(`Plugin has already been applied to target app.`);
|
|
6951
6949
|
} else if (plugin && isFunction(plugin.install)) {
|
|
6952
6950
|
installedPlugins.add(plugin);
|
|
6953
6951
|
plugin.install(app, ...options);
|
|
@@ -6955,7 +6953,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6955
6953
|
installedPlugins.add(plugin);
|
|
6956
6954
|
plugin(app, ...options);
|
|
6957
6955
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6958
|
-
warn(
|
|
6956
|
+
warn$1(
|
|
6959
6957
|
`A plugin must either be a function or an object with an "install" function.`
|
|
6960
6958
|
);
|
|
6961
6959
|
}
|
|
@@ -6966,12 +6964,12 @@ function createAppAPI(render, hydrate) {
|
|
|
6966
6964
|
if (!context.mixins.includes(mixin)) {
|
|
6967
6965
|
context.mixins.push(mixin);
|
|
6968
6966
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6969
|
-
warn(
|
|
6967
|
+
warn$1(
|
|
6970
6968
|
"Mixin has already been applied to target app" + (mixin.name ? `: ${mixin.name}` : "")
|
|
6971
6969
|
);
|
|
6972
6970
|
}
|
|
6973
6971
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
6974
|
-
warn("Mixins are only available in builds supporting Options API");
|
|
6972
|
+
warn$1("Mixins are only available in builds supporting Options API");
|
|
6975
6973
|
}
|
|
6976
6974
|
return app;
|
|
6977
6975
|
},
|
|
@@ -6983,7 +6981,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6983
6981
|
return context.components[name];
|
|
6984
6982
|
}
|
|
6985
6983
|
if (!!(process.env.NODE_ENV !== "production") && context.components[name]) {
|
|
6986
|
-
warn(`Component "${name}" has already been registered in target app.`);
|
|
6984
|
+
warn$1(`Component "${name}" has already been registered in target app.`);
|
|
6987
6985
|
}
|
|
6988
6986
|
context.components[name] = component;
|
|
6989
6987
|
return app;
|
|
@@ -6996,7 +6994,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6996
6994
|
return context.directives[name];
|
|
6997
6995
|
}
|
|
6998
6996
|
if (!!(process.env.NODE_ENV !== "production") && context.directives[name]) {
|
|
6999
|
-
warn(`Directive "${name}" has already been registered in target app.`);
|
|
6997
|
+
warn$1(`Directive "${name}" has already been registered in target app.`);
|
|
7000
6998
|
}
|
|
7001
6999
|
context.directives[name] = directive;
|
|
7002
7000
|
return app;
|
|
@@ -7004,7 +7002,7 @@ function createAppAPI(render, hydrate) {
|
|
|
7004
7002
|
mount(rootContainer, isHydrate, namespace) {
|
|
7005
7003
|
if (!isMounted) {
|
|
7006
7004
|
if (!!(process.env.NODE_ENV !== "production") && rootContainer.__vue_app__) {
|
|
7007
|
-
warn(
|
|
7005
|
+
warn$1(
|
|
7008
7006
|
`There is already an app instance mounted on the host container.
|
|
7009
7007
|
If you want to mount another app on the same host container, you need to unmount the previous app by calling \`app.unmount()\` first.`
|
|
7010
7008
|
);
|
|
@@ -7039,7 +7037,7 @@ function createAppAPI(render, hydrate) {
|
|
|
7039
7037
|
}
|
|
7040
7038
|
return getExposeProxy(vnode.component) || vnode.component.proxy;
|
|
7041
7039
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7042
|
-
warn(
|
|
7040
|
+
warn$1(
|
|
7043
7041
|
`App has already been mounted.
|
|
7044
7042
|
If you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. \`const createMyApp = () => createApp(App)\``
|
|
7045
7043
|
);
|
|
@@ -7054,12 +7052,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7054
7052
|
}
|
|
7055
7053
|
delete app._container.__vue_app__;
|
|
7056
7054
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7057
|
-
warn(`Cannot unmount an app that is not mounted.`);
|
|
7055
|
+
warn$1(`Cannot unmount an app that is not mounted.`);
|
|
7058
7056
|
}
|
|
7059
7057
|
},
|
|
7060
7058
|
provide(key, value) {
|
|
7061
7059
|
if (!!(process.env.NODE_ENV !== "production") && key in context.provides) {
|
|
7062
|
-
warn(
|
|
7060
|
+
warn$1(
|
|
7063
7061
|
`App already provides property with key "${String(key)}". It will be overwritten with the new value.`
|
|
7064
7062
|
);
|
|
7065
7063
|
}
|
|
@@ -7086,7 +7084,7 @@ let currentApp = null;
|
|
|
7086
7084
|
function provide(key, value) {
|
|
7087
7085
|
if (!currentInstance) {
|
|
7088
7086
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
7089
|
-
warn(`provide() can only be used inside setup().`);
|
|
7087
|
+
warn$1(`provide() can only be used inside setup().`);
|
|
7090
7088
|
}
|
|
7091
7089
|
} else {
|
|
7092
7090
|
let provides = currentInstance.provides;
|
|
@@ -7106,10 +7104,10 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
7106
7104
|
} else if (arguments.length > 1) {
|
|
7107
7105
|
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
7108
7106
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7109
|
-
warn(`injection "${String(key)}" not found.`);
|
|
7107
|
+
warn$1(`injection "${String(key)}" not found.`);
|
|
7110
7108
|
}
|
|
7111
7109
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7112
|
-
warn(`inject() can only be used inside setup() or functional components.`);
|
|
7110
|
+
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
7113
7111
|
}
|
|
7114
7112
|
}
|
|
7115
7113
|
function hasInjectionContext() {
|
|
@@ -7425,7 +7423,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
7425
7423
|
if (isArray(raw)) {
|
|
7426
7424
|
for (let i = 0; i < raw.length; i++) {
|
|
7427
7425
|
if (!!(process.env.NODE_ENV !== "production") && !isString(raw[i])) {
|
|
7428
|
-
warn(`props must be strings when using array syntax.`, raw[i]);
|
|
7426
|
+
warn$1(`props must be strings when using array syntax.`, raw[i]);
|
|
7429
7427
|
}
|
|
7430
7428
|
const normalizedKey = camelize(raw[i]);
|
|
7431
7429
|
if (validatePropName(normalizedKey)) {
|
|
@@ -7434,7 +7432,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
7434
7432
|
}
|
|
7435
7433
|
} else if (raw) {
|
|
7436
7434
|
if (!!(process.env.NODE_ENV !== "production") && !isObject(raw)) {
|
|
7437
|
-
warn(`invalid props options`, raw);
|
|
7435
|
+
warn$1(`invalid props options`, raw);
|
|
7438
7436
|
}
|
|
7439
7437
|
for (const key in raw) {
|
|
7440
7438
|
const normalizedKey = camelize(key);
|
|
@@ -7463,7 +7461,7 @@ function validatePropName(key) {
|
|
|
7463
7461
|
if (key[0] !== "$") {
|
|
7464
7462
|
return true;
|
|
7465
7463
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7466
|
-
warn(`Invalid prop name: "${key}" is a reserved property.`);
|
|
7464
|
+
warn$1(`Invalid prop name: "${key}" is a reserved property.`);
|
|
7467
7465
|
}
|
|
7468
7466
|
return false;
|
|
7469
7467
|
}
|
|
@@ -7501,7 +7499,7 @@ function validateProps(rawProps, props, instance) {
|
|
|
7501
7499
|
function validateProp(name, value, prop, props, isAbsent) {
|
|
7502
7500
|
const { type, required, validator, skipCheck } = prop;
|
|
7503
7501
|
if (required && isAbsent) {
|
|
7504
|
-
warn('Missing required prop: "' + name + '"');
|
|
7502
|
+
warn$1('Missing required prop: "' + name + '"');
|
|
7505
7503
|
return;
|
|
7506
7504
|
}
|
|
7507
7505
|
if (value == null && !required) {
|
|
@@ -7517,12 +7515,12 @@ function validateProp(name, value, prop, props, isAbsent) {
|
|
|
7517
7515
|
isValid = valid;
|
|
7518
7516
|
}
|
|
7519
7517
|
if (!isValid) {
|
|
7520
|
-
warn(getInvalidTypeMessage(name, value, expectedTypes));
|
|
7518
|
+
warn$1(getInvalidTypeMessage(name, value, expectedTypes));
|
|
7521
7519
|
return;
|
|
7522
7520
|
}
|
|
7523
7521
|
}
|
|
7524
7522
|
if (validator && !validator(value, props)) {
|
|
7525
|
-
warn('Invalid prop: custom validator check failed for prop "' + name + '".');
|
|
7523
|
+
warn$1('Invalid prop: custom validator check failed for prop "' + name + '".');
|
|
7526
7524
|
}
|
|
7527
7525
|
}
|
|
7528
7526
|
const isSimpleType = /* @__PURE__ */ makeMap(
|
|
@@ -7594,7 +7592,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
|
|
|
7594
7592
|
}
|
|
7595
7593
|
const normalized = withCtx((...args) => {
|
|
7596
7594
|
if (!!(process.env.NODE_ENV !== "production") && currentInstance) {
|
|
7597
|
-
warn(
|
|
7595
|
+
warn$1(
|
|
7598
7596
|
`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.`
|
|
7599
7597
|
);
|
|
7600
7598
|
}
|
|
@@ -7613,7 +7611,7 @@ const normalizeObjectSlots = (rawSlots, slots, instance) => {
|
|
|
7613
7611
|
slots[key] = normalizeSlot(key, value, ctx);
|
|
7614
7612
|
} else if (value != null) {
|
|
7615
7613
|
if (!!(process.env.NODE_ENV !== "production") && !isCompatEnabled$1("RENDER_FUNCTION", instance)) {
|
|
7616
|
-
warn(
|
|
7614
|
+
warn$1(
|
|
7617
7615
|
`Non-function value encountered for slot "${key}". Prefer function slots for better performance.`
|
|
7618
7616
|
);
|
|
7619
7617
|
}
|
|
@@ -7624,7 +7622,7 @@ const normalizeObjectSlots = (rawSlots, slots, instance) => {
|
|
|
7624
7622
|
};
|
|
7625
7623
|
const normalizeVNodeSlots = (instance, children) => {
|
|
7626
7624
|
if (!!(process.env.NODE_ENV !== "production") && !isKeepAlive(instance.vnode) && !isCompatEnabled$1("RENDER_FUNCTION", instance)) {
|
|
7627
|
-
warn(
|
|
7625
|
+
warn$1(
|
|
7628
7626
|
`Non-function value encountered for default slot. Prefer function slots for better performance.`
|
|
7629
7627
|
);
|
|
7630
7628
|
}
|
|
@@ -7708,7 +7706,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7708
7706
|
const value = isUnmount ? null : refValue;
|
|
7709
7707
|
const { i: owner, r: ref } = rawRef;
|
|
7710
7708
|
if (!!(process.env.NODE_ENV !== "production") && !owner) {
|
|
7711
|
-
warn(
|
|
7709
|
+
warn$1(
|
|
7712
7710
|
`Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.`
|
|
7713
7711
|
);
|
|
7714
7712
|
return;
|
|
@@ -7763,7 +7761,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7763
7761
|
if (rawRef.k)
|
|
7764
7762
|
refs[rawRef.k] = value;
|
|
7765
7763
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7766
|
-
warn("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7764
|
+
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7767
7765
|
}
|
|
7768
7766
|
};
|
|
7769
7767
|
if (value) {
|
|
@@ -7773,7 +7771,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7773
7771
|
doSet();
|
|
7774
7772
|
}
|
|
7775
7773
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7776
|
-
warn("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7774
|
+
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7777
7775
|
}
|
|
7778
7776
|
}
|
|
7779
7777
|
}
|
|
@@ -7805,7 +7803,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7805
7803
|
} = rendererInternals;
|
|
7806
7804
|
const hydrate = (vnode, container) => {
|
|
7807
7805
|
if (!container.hasChildNodes()) {
|
|
7808
|
-
(!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn(
|
|
7806
|
+
(!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(
|
|
7809
7807
|
`Attempting to hydrate existing markup but container is empty. Performing full mount instead.`
|
|
7810
7808
|
);
|
|
7811
7809
|
patch(null, vnode, container);
|
|
@@ -7865,7 +7863,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7865
7863
|
} else {
|
|
7866
7864
|
if (node.data !== vnode.children) {
|
|
7867
7865
|
hasMismatch = true;
|
|
7868
|
-
(!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn(
|
|
7866
|
+
(!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(
|
|
7869
7867
|
`Hydration text mismatch in`,
|
|
7870
7868
|
node.parentNode,
|
|
7871
7869
|
`
|
|
@@ -8000,7 +7998,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
8000
7998
|
hydrateNode
|
|
8001
7999
|
);
|
|
8002
8000
|
} else if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) {
|
|
8003
|
-
warn("Invalid HostVNode type:", type, `(${typeof type})`);
|
|
8001
|
+
warn$1("Invalid HostVNode type:", type, `(${typeof type})`);
|
|
8004
8002
|
}
|
|
8005
8003
|
}
|
|
8006
8004
|
if (ref != null) {
|
|
@@ -8041,7 +8039,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
8041
8039
|
while (next) {
|
|
8042
8040
|
hasMismatch = true;
|
|
8043
8041
|
if ((!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && !hasWarned) {
|
|
8044
|
-
warn(
|
|
8042
|
+
warn$1(
|
|
8045
8043
|
`Hydration children mismatch on`,
|
|
8046
8044
|
el,
|
|
8047
8045
|
`
|
|
@@ -8056,7 +8054,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
8056
8054
|
} else if (shapeFlag & 8) {
|
|
8057
8055
|
if (el.textContent !== vnode.children) {
|
|
8058
8056
|
hasMismatch = true;
|
|
8059
|
-
(!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn(
|
|
8057
|
+
(!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(
|
|
8060
8058
|
`Hydration text content mismatch on`,
|
|
8061
8059
|
el,
|
|
8062
8060
|
`
|
|
@@ -8135,7 +8133,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
8135
8133
|
} else {
|
|
8136
8134
|
hasMismatch = true;
|
|
8137
8135
|
if ((!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && !hasWarned) {
|
|
8138
|
-
warn(
|
|
8136
|
+
warn$1(
|
|
8139
8137
|
`Hydration children mismatch on`,
|
|
8140
8138
|
container,
|
|
8141
8139
|
`
|
|
@@ -8182,7 +8180,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8182
8180
|
};
|
|
8183
8181
|
const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
|
|
8184
8182
|
hasMismatch = true;
|
|
8185
|
-
(!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn(
|
|
8183
|
+
(!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(
|
|
8186
8184
|
`Hydration node mismatch:
|
|
8187
8185
|
- rendered on server:`,
|
|
8188
8186
|
node,
|
|
@@ -8260,9 +8258,9 @@ function propHasMismatch(el, key, clientValue) {
|
|
|
8260
8258
|
let actual;
|
|
8261
8259
|
let expected;
|
|
8262
8260
|
if (key === "class") {
|
|
8263
|
-
actual = el.getAttribute("class");
|
|
8264
|
-
expected = normalizeClass(clientValue);
|
|
8265
|
-
if (actual
|
|
8261
|
+
actual = toClassSet(el.getAttribute("class") || "");
|
|
8262
|
+
expected = toClassSet(normalizeClass(clientValue));
|
|
8263
|
+
if (!isSetEqual(actual, expected)) {
|
|
8266
8264
|
mismatchType = mismatchKey = `class`;
|
|
8267
8265
|
}
|
|
8268
8266
|
} else if (key === "style") {
|
|
@@ -8281,7 +8279,7 @@ function propHasMismatch(el, key, clientValue) {
|
|
|
8281
8279
|
}
|
|
8282
8280
|
if (mismatchType) {
|
|
8283
8281
|
const format = (v) => v === false ? `(not rendered)` : `${mismatchKey}="${v}"`;
|
|
8284
|
-
warn(
|
|
8282
|
+
warn$1(
|
|
8285
8283
|
`Hydration ${mismatchType} mismatch on`,
|
|
8286
8284
|
el,
|
|
8287
8285
|
`
|
|
@@ -8294,6 +8292,20 @@ function propHasMismatch(el, key, clientValue) {
|
|
|
8294
8292
|
}
|
|
8295
8293
|
return false;
|
|
8296
8294
|
}
|
|
8295
|
+
function toClassSet(str) {
|
|
8296
|
+
return new Set(str.trim().split(/\s+/));
|
|
8297
|
+
}
|
|
8298
|
+
function isSetEqual(a, b) {
|
|
8299
|
+
if (a.size !== b.size) {
|
|
8300
|
+
return false;
|
|
8301
|
+
}
|
|
8302
|
+
for (const s of a) {
|
|
8303
|
+
if (!b.has(s)) {
|
|
8304
|
+
return false;
|
|
8305
|
+
}
|
|
8306
|
+
}
|
|
8307
|
+
return true;
|
|
8308
|
+
}
|
|
8297
8309
|
|
|
8298
8310
|
let supported;
|
|
8299
8311
|
let perf;
|
|
@@ -8373,7 +8385,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8373
8385
|
const target = getGlobalThis();
|
|
8374
8386
|
target.__VUE__ = true;
|
|
8375
8387
|
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
8376
|
-
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
|
|
8388
|
+
setDevtoolsHook$1(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
|
|
8377
8389
|
}
|
|
8378
8390
|
const {
|
|
8379
8391
|
insert: hostInsert,
|
|
@@ -8482,7 +8494,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8482
8494
|
internals
|
|
8483
8495
|
);
|
|
8484
8496
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
8485
|
-
warn("Invalid VNode type:", type, `(${typeof type})`);
|
|
8497
|
+
warn$1("Invalid VNode type:", type, `(${typeof type})`);
|
|
8486
8498
|
}
|
|
8487
8499
|
}
|
|
8488
8500
|
if (ref != null && parentComponent) {
|
|
@@ -9487,7 +9499,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9487
9499
|
const nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]);
|
|
9488
9500
|
if (nextChild.key != null) {
|
|
9489
9501
|
if (!!(process.env.NODE_ENV !== "production") && keyToNewIndexMap.has(nextChild.key)) {
|
|
9490
|
-
warn(
|
|
9502
|
+
warn$1(
|
|
9491
9503
|
`Duplicate keys found during update:`,
|
|
9492
9504
|
JSON.stringify(nextChild.key),
|
|
9493
9505
|
`Make sure keys are unique.`
|
|
@@ -9925,14 +9937,14 @@ const resolveTarget = (props, select) => {
|
|
|
9925
9937
|
const targetSelector = props && props.to;
|
|
9926
9938
|
if (isString(targetSelector)) {
|
|
9927
9939
|
if (!select) {
|
|
9928
|
-
!!(process.env.NODE_ENV !== "production") && warn(
|
|
9940
|
+
!!(process.env.NODE_ENV !== "production") && warn$1(
|
|
9929
9941
|
`Current renderer does not support string target for Teleports. (missing querySelector renderer option)`
|
|
9930
9942
|
);
|
|
9931
9943
|
return null;
|
|
9932
9944
|
} else {
|
|
9933
9945
|
const target = select(targetSelector);
|
|
9934
9946
|
if (!target) {
|
|
9935
|
-
!!(process.env.NODE_ENV !== "production") && warn(
|
|
9947
|
+
!!(process.env.NODE_ENV !== "production") && warn$1(
|
|
9936
9948
|
`Failed to locate Teleport target with selector "${targetSelector}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`
|
|
9937
9949
|
);
|
|
9938
9950
|
}
|
|
@@ -9940,7 +9952,7 @@ const resolveTarget = (props, select) => {
|
|
|
9940
9952
|
}
|
|
9941
9953
|
} else {
|
|
9942
9954
|
if (!!(process.env.NODE_ENV !== "production") && !targetSelector && !isTeleportDisabled(props)) {
|
|
9943
|
-
warn(`Invalid Teleport target: ${targetSelector}`);
|
|
9955
|
+
warn$1(`Invalid Teleport target: ${targetSelector}`);
|
|
9944
9956
|
}
|
|
9945
9957
|
return targetSelector;
|
|
9946
9958
|
}
|
|
@@ -9976,7 +9988,7 @@ const TeleportImpl = {
|
|
|
9976
9988
|
namespace = "mathml";
|
|
9977
9989
|
}
|
|
9978
9990
|
} else if (!!(process.env.NODE_ENV !== "production") && !disabled) {
|
|
9979
|
-
warn("Invalid Teleport target on mount:", target, `(${typeof target})`);
|
|
9991
|
+
warn$1("Invalid Teleport target on mount:", target, `(${typeof target})`);
|
|
9980
9992
|
}
|
|
9981
9993
|
const mount = (container2, anchor2) => {
|
|
9982
9994
|
if (shapeFlag & 16) {
|
|
@@ -10063,7 +10075,7 @@ const TeleportImpl = {
|
|
|
10063
10075
|
0
|
|
10064
10076
|
);
|
|
10065
10077
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
10066
|
-
warn(
|
|
10078
|
+
warn$1(
|
|
10067
10079
|
"Invalid Teleport target on update:",
|
|
10068
10080
|
target,
|
|
10069
10081
|
`(${typeof target})`
|
|
@@ -10364,7 +10376,7 @@ function createBaseVNode(type, props = null, children = null, patchFlag = 0, dyn
|
|
|
10364
10376
|
vnode.shapeFlag |= isString(children) ? 8 : 16;
|
|
10365
10377
|
}
|
|
10366
10378
|
if (!!(process.env.NODE_ENV !== "production") && vnode.key !== vnode.key) {
|
|
10367
|
-
warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
|
|
10379
|
+
warn$1(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
|
|
10368
10380
|
}
|
|
10369
10381
|
if (isBlockTreeEnabled > 0 && // avoid a block node from tracking itself
|
|
10370
10382
|
!isBlockNode && // has current parent block
|
|
@@ -10387,7 +10399,7 @@ const createVNode = !!(process.env.NODE_ENV !== "production") ? createVNodeWithA
|
|
|
10387
10399
|
function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
|
|
10388
10400
|
if (!type || type === NULL_DYNAMIC_COMPONENT) {
|
|
10389
10401
|
if (!!(process.env.NODE_ENV !== "production") && !type) {
|
|
10390
|
-
warn(`Invalid vnode type when creating vnode: ${type}.`);
|
|
10402
|
+
warn$1(`Invalid vnode type when creating vnode: ${type}.`);
|
|
10391
10403
|
}
|
|
10392
10404
|
type = Comment;
|
|
10393
10405
|
}
|
|
@@ -10433,7 +10445,7 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
|
|
|
10433
10445
|
const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject(type) ? 4 : isFunction(type) ? 2 : 0;
|
|
10434
10446
|
if (!!(process.env.NODE_ENV !== "production") && shapeFlag & 4 && isProxy(type)) {
|
|
10435
10447
|
type = toRaw(type);
|
|
10436
|
-
warn(
|
|
10448
|
+
warn$1(
|
|
10437
10449
|
`Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with \`markRaw\` or using \`shallowRef\` instead of \`ref\`.`,
|
|
10438
10450
|
`
|
|
10439
10451
|
Component that was made reactive: `,
|
|
@@ -10751,7 +10763,7 @@ const isBuiltInTag = /* @__PURE__ */ makeMap("slot,component");
|
|
|
10751
10763
|
function validateComponentName(name, config) {
|
|
10752
10764
|
const appIsNativeTag = config.isNativeTag || NO;
|
|
10753
10765
|
if (isBuiltInTag(name) || appIsNativeTag(name)) {
|
|
10754
|
-
warn(
|
|
10766
|
+
warn$1(
|
|
10755
10767
|
"Do not use built-in or reserved HTML elements as component id: " + name
|
|
10756
10768
|
);
|
|
10757
10769
|
}
|
|
@@ -10790,7 +10802,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
10790
10802
|
}
|
|
10791
10803
|
}
|
|
10792
10804
|
if (Component.compilerOptions && isRuntimeOnly()) {
|
|
10793
|
-
warn(
|
|
10805
|
+
warn$1(
|
|
10794
10806
|
`"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.`
|
|
10795
10807
|
);
|
|
10796
10808
|
}
|
|
@@ -10825,7 +10837,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
10825
10837
|
instance.asyncDep = setupResult;
|
|
10826
10838
|
if (!!(process.env.NODE_ENV !== "production") && !instance.suspense) {
|
|
10827
10839
|
const name = (_a = Component.name) != null ? _a : "Anonymous";
|
|
10828
|
-
warn(
|
|
10840
|
+
warn$1(
|
|
10829
10841
|
`Component <${name}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`
|
|
10830
10842
|
);
|
|
10831
10843
|
}
|
|
@@ -10846,7 +10858,7 @@ function handleSetupResult(instance, setupResult, isSSR) {
|
|
|
10846
10858
|
}
|
|
10847
10859
|
} else if (isObject(setupResult)) {
|
|
10848
10860
|
if (!!(process.env.NODE_ENV !== "production") && isVNode(setupResult)) {
|
|
10849
|
-
warn(
|
|
10861
|
+
warn$1(
|
|
10850
10862
|
`setup() should not return VNodes directly - return a render function instead.`
|
|
10851
10863
|
);
|
|
10852
10864
|
}
|
|
@@ -10858,7 +10870,7 @@ function handleSetupResult(instance, setupResult, isSSR) {
|
|
|
10858
10870
|
exposeSetupStateOnRenderContext(instance);
|
|
10859
10871
|
}
|
|
10860
10872
|
} else if (!!(process.env.NODE_ENV !== "production") && setupResult !== void 0) {
|
|
10861
|
-
warn(
|
|
10873
|
+
warn$1(
|
|
10862
10874
|
`setup() should return an object. Received: ${setupResult === null ? "null" : typeof setupResult}`
|
|
10863
10875
|
);
|
|
10864
10876
|
}
|
|
@@ -10931,12 +10943,12 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
10931
10943
|
}
|
|
10932
10944
|
if (!!(process.env.NODE_ENV !== "production") && !Component.render && instance.render === NOOP && !isSSR) {
|
|
10933
10945
|
if (!compile$1 && Component.template) {
|
|
10934
|
-
warn(
|
|
10946
|
+
warn$1(
|
|
10935
10947
|
`Component provided template option but runtime compilation is not supported in this build of Vue.` + (` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".` )
|
|
10936
10948
|
/* should not happen */
|
|
10937
10949
|
);
|
|
10938
10950
|
} else {
|
|
10939
|
-
warn(`Component is missing template or render function.`);
|
|
10951
|
+
warn$1(`Component is missing template or render function.`);
|
|
10940
10952
|
}
|
|
10941
10953
|
}
|
|
10942
10954
|
}
|
|
@@ -10950,11 +10962,11 @@ function getAttrsProxy(instance) {
|
|
|
10950
10962
|
return target[key];
|
|
10951
10963
|
},
|
|
10952
10964
|
set() {
|
|
10953
|
-
warn(`setupContext.attrs is readonly.`);
|
|
10965
|
+
warn$1(`setupContext.attrs is readonly.`);
|
|
10954
10966
|
return false;
|
|
10955
10967
|
},
|
|
10956
10968
|
deleteProperty() {
|
|
10957
|
-
warn(`setupContext.attrs is readonly.`);
|
|
10969
|
+
warn$1(`setupContext.attrs is readonly.`);
|
|
10958
10970
|
return false;
|
|
10959
10971
|
}
|
|
10960
10972
|
} : {
|
|
@@ -10977,7 +10989,7 @@ function createSetupContext(instance) {
|
|
|
10977
10989
|
const expose = (exposed) => {
|
|
10978
10990
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
10979
10991
|
if (instance.exposed) {
|
|
10980
|
-
warn(`expose() should be called only once per setup().`);
|
|
10992
|
+
warn$1(`expose() should be called only once per setup().`);
|
|
10981
10993
|
}
|
|
10982
10994
|
if (exposed != null) {
|
|
10983
10995
|
let exposedType = typeof exposed;
|
|
@@ -10989,7 +11001,7 @@ function createSetupContext(instance) {
|
|
|
10989
11001
|
}
|
|
10990
11002
|
}
|
|
10991
11003
|
if (exposedType !== "object") {
|
|
10992
|
-
warn(
|
|
11004
|
+
warn$1(
|
|
10993
11005
|
`expose() should be passed a plain object, received ${exposedType}.`
|
|
10994
11006
|
);
|
|
10995
11007
|
}
|
|
@@ -11098,7 +11110,7 @@ const useSSRContext = () => {
|
|
|
11098
11110
|
{
|
|
11099
11111
|
const ctx = inject(ssrContextKey);
|
|
11100
11112
|
if (!ctx) {
|
|
11101
|
-
!!(process.env.NODE_ENV !== "production") && warn(
|
|
11113
|
+
!!(process.env.NODE_ENV !== "production") && warn$1(
|
|
11102
11114
|
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
11103
11115
|
);
|
|
11104
11116
|
}
|
|
@@ -11307,8 +11319,11 @@ function isMemoSame(cached, memo) {
|
|
|
11307
11319
|
return true;
|
|
11308
11320
|
}
|
|
11309
11321
|
|
|
11310
|
-
const version = "3.4.0-
|
|
11322
|
+
const version = "3.4.0-rc.2";
|
|
11323
|
+
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11311
11324
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11325
|
+
const devtools = !!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__ ? devtools$1 : void 0;
|
|
11326
|
+
const setDevtoolsHook = !!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__ ? setDevtoolsHook$1 : NOOP;
|
|
11312
11327
|
const _ssrUtils = {
|
|
11313
11328
|
createComponentInstance,
|
|
11314
11329
|
setupComponent,
|
|
@@ -13076,7 +13091,7 @@ var runtimeDom = /*#__PURE__*/Object.freeze({
|
|
|
13076
13091
|
defineProps: defineProps,
|
|
13077
13092
|
defineSSRCustomElement: defineSSRCustomElement,
|
|
13078
13093
|
defineSlots: defineSlots,
|
|
13079
|
-
|
|
13094
|
+
devtools: devtools,
|
|
13080
13095
|
effect: effect,
|
|
13081
13096
|
effectScope: effectScope,
|
|
13082
13097
|
getCurrentInstance: getCurrentInstance,
|
|
@@ -14693,12 +14708,6 @@ const tokenizer = new Tokenizer(stack, {
|
|
|
14693
14708
|
loc: getLoc(start - 1, end),
|
|
14694
14709
|
codegenNode: void 0
|
|
14695
14710
|
};
|
|
14696
|
-
if (tokenizer.inSFCRoot) {
|
|
14697
|
-
currentOpenTag.innerLoc = getLoc(
|
|
14698
|
-
end + fastForward(end) + 1,
|
|
14699
|
-
end
|
|
14700
|
-
);
|
|
14701
|
-
}
|
|
14702
14711
|
},
|
|
14703
14712
|
onopentagend(end) {
|
|
14704
14713
|
endOpenTag(end);
|
|
@@ -15023,6 +15032,9 @@ function getSlice(start, end) {
|
|
|
15023
15032
|
return currentInput.slice(start, end);
|
|
15024
15033
|
}
|
|
15025
15034
|
function endOpenTag(end) {
|
|
15035
|
+
if (tokenizer.inSFCRoot) {
|
|
15036
|
+
currentOpenTag.innerLoc = getLoc(end + 1, end + 1);
|
|
15037
|
+
}
|
|
15026
15038
|
addNode(currentOpenTag);
|
|
15027
15039
|
const { tag, ns } = currentOpenTag;
|
|
15028
15040
|
if (ns === 0 && currentOptions.isPreTag(tag)) {
|
|
@@ -15063,7 +15075,7 @@ function onCloseTag(el, end, isImplied = false) {
|
|
|
15063
15075
|
if (isImplied) {
|
|
15064
15076
|
setLocEnd(el.loc, backTrack(end, 60));
|
|
15065
15077
|
} else {
|
|
15066
|
-
setLocEnd(el.loc, end +
|
|
15078
|
+
setLocEnd(el.loc, end + 1);
|
|
15067
15079
|
}
|
|
15068
15080
|
if (tokenizer.inSFCRoot) {
|
|
15069
15081
|
if (el.children.length) {
|
|
@@ -15158,13 +15170,6 @@ function onCloseTag(el, end, isImplied = false) {
|
|
|
15158
15170
|
}
|
|
15159
15171
|
}
|
|
15160
15172
|
}
|
|
15161
|
-
function fastForward(start, c) {
|
|
15162
|
-
let offset = 0;
|
|
15163
|
-
while (currentInput.charCodeAt(start + offset) !== 62 && start + offset < currentInput.length) {
|
|
15164
|
-
offset++;
|
|
15165
|
-
}
|
|
15166
|
-
return offset;
|
|
15167
|
-
}
|
|
15168
15173
|
function backTrack(index, c) {
|
|
15169
15174
|
let i = index;
|
|
15170
15175
|
while (currentInput.charCodeAt(i) !== c && i >= 0)
|