@vue/compat 3.4.0-rc.1 → 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 +144 -141
- package/dist/vue.cjs.prod.js +6 -38
- package/dist/vue.esm-browser.js +144 -141
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +145 -144
- package/dist/vue.global.js +144 -141
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +144 -141
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.esm-bundler.js +145 -144
- package/dist/vue.runtime.global.js +144 -141
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +2 -2
|
@@ -280,7 +280,7 @@ const stringifySymbol = (v, i = "") => {
|
|
|
280
280
|
return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
|
|
281
281
|
};
|
|
282
282
|
|
|
283
|
-
function warn$
|
|
283
|
+
function warn$2(msg, ...args) {
|
|
284
284
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
285
285
|
}
|
|
286
286
|
|
|
@@ -320,7 +320,7 @@ class EffectScope {
|
|
|
320
320
|
activeEffectScope = currentEffectScope;
|
|
321
321
|
}
|
|
322
322
|
} else {
|
|
323
|
-
warn$
|
|
323
|
+
warn$2(`cannot run an inactive effect scope.`);
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
/**
|
|
@@ -378,7 +378,7 @@ function onScopeDispose(fn) {
|
|
|
378
378
|
if (activeEffectScope) {
|
|
379
379
|
activeEffectScope.cleanups.push(fn);
|
|
380
380
|
} else {
|
|
381
|
-
warn$
|
|
381
|
+
warn$2(
|
|
382
382
|
`onScopeDispose() is called when there is no active effect scope to be associated with.`
|
|
383
383
|
);
|
|
384
384
|
}
|
|
@@ -826,7 +826,7 @@ class ReadonlyReactiveHandler extends BaseReactiveHandler {
|
|
|
826
826
|
}
|
|
827
827
|
set(target, key) {
|
|
828
828
|
{
|
|
829
|
-
warn$
|
|
829
|
+
warn$2(
|
|
830
830
|
`Set operation on key "${String(key)}" failed: target is readonly.`,
|
|
831
831
|
target
|
|
832
832
|
);
|
|
@@ -835,7 +835,7 @@ class ReadonlyReactiveHandler extends BaseReactiveHandler {
|
|
|
835
835
|
}
|
|
836
836
|
deleteProperty(target, key) {
|
|
837
837
|
{
|
|
838
|
-
warn$
|
|
838
|
+
warn$2(
|
|
839
839
|
`Delete operation on key "${String(key)}" failed: target is readonly.`,
|
|
840
840
|
target
|
|
841
841
|
);
|
|
@@ -1493,7 +1493,7 @@ function pushWarningContext(vnode) {
|
|
|
1493
1493
|
function popWarningContext() {
|
|
1494
1494
|
stack.pop();
|
|
1495
1495
|
}
|
|
1496
|
-
function warn(msg, ...args) {
|
|
1496
|
+
function warn$1(msg, ...args) {
|
|
1497
1497
|
pauseTracking();
|
|
1498
1498
|
const instance = stack.length ? stack[stack.length - 1].component : null;
|
|
1499
1499
|
const appWarnHandler = instance && instance.appContext.config.warnHandler;
|
|
@@ -1594,9 +1594,9 @@ function assertNumber(val, type) {
|
|
|
1594
1594
|
if (val === void 0) {
|
|
1595
1595
|
return;
|
|
1596
1596
|
} else if (typeof val !== "number") {
|
|
1597
|
-
warn(`${type} is not a valid number - got ${JSON.stringify(val)}.`);
|
|
1597
|
+
warn$1(`${type} is not a valid number - got ${JSON.stringify(val)}.`);
|
|
1598
1598
|
} else if (isNaN(val)) {
|
|
1599
|
-
warn(`${type} is NaN - the duration expression might be incorrect.`);
|
|
1599
|
+
warn$1(`${type} is NaN - the duration expression might be incorrect.`);
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
1602
|
|
|
@@ -1724,7 +1724,7 @@ function logError(err, type, contextVNode, throwInDev = true) {
|
|
|
1724
1724
|
if (contextVNode) {
|
|
1725
1725
|
pushWarningContext(contextVNode);
|
|
1726
1726
|
}
|
|
1727
|
-
warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
|
|
1727
|
+
warn$1(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
|
|
1728
1728
|
if (contextVNode) {
|
|
1729
1729
|
popWarningContext();
|
|
1730
1730
|
}
|
|
@@ -2022,22 +2022,22 @@ function tryWrap(fn) {
|
|
|
2022
2022
|
};
|
|
2023
2023
|
}
|
|
2024
2024
|
|
|
2025
|
-
let devtools;
|
|
2025
|
+
let devtools$1;
|
|
2026
2026
|
let buffer = [];
|
|
2027
2027
|
let devtoolsNotInstalled = false;
|
|
2028
2028
|
function emit$2(event, ...args) {
|
|
2029
|
-
if (devtools) {
|
|
2030
|
-
devtools.emit(event, ...args);
|
|
2029
|
+
if (devtools$1) {
|
|
2030
|
+
devtools$1.emit(event, ...args);
|
|
2031
2031
|
} else if (!devtoolsNotInstalled) {
|
|
2032
2032
|
buffer.push({ event, args });
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
2035
|
-
function setDevtoolsHook(hook, target) {
|
|
2035
|
+
function setDevtoolsHook$1(hook, target) {
|
|
2036
2036
|
var _a, _b;
|
|
2037
|
-
devtools = hook;
|
|
2038
|
-
if (devtools) {
|
|
2039
|
-
devtools.enabled = true;
|
|
2040
|
-
buffer.forEach(({ event, args }) => devtools.emit(event, ...args));
|
|
2037
|
+
devtools$1 = hook;
|
|
2038
|
+
if (devtools$1) {
|
|
2039
|
+
devtools$1.enabled = true;
|
|
2040
|
+
buffer.forEach(({ event, args }) => devtools$1.emit(event, ...args));
|
|
2041
2041
|
buffer = [];
|
|
2042
2042
|
} else if (
|
|
2043
2043
|
// handle late devtools injection - only do this if we are in an actual
|
|
@@ -2049,10 +2049,10 @@ function setDevtoolsHook(hook, target) {
|
|
|
2049
2049
|
) {
|
|
2050
2050
|
const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
|
|
2051
2051
|
replay.push((newHook) => {
|
|
2052
|
-
setDevtoolsHook(newHook, target);
|
|
2052
|
+
setDevtoolsHook$1(newHook, target);
|
|
2053
2053
|
});
|
|
2054
2054
|
setTimeout(() => {
|
|
2055
|
-
if (!devtools) {
|
|
2055
|
+
if (!devtools$1) {
|
|
2056
2056
|
target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;
|
|
2057
2057
|
devtoolsNotInstalled = true;
|
|
2058
2058
|
buffer = [];
|
|
@@ -2082,8 +2082,8 @@ const _devtoolsComponentRemoved = /* @__PURE__ */ createDevtoolsComponentHook(
|
|
|
2082
2082
|
"component:removed" /* COMPONENT_REMOVED */
|
|
2083
2083
|
);
|
|
2084
2084
|
const devtoolsComponentRemoved = (component) => {
|
|
2085
|
-
if (devtools && typeof devtools.cleanupBuffer === "function" && // remove the component if it wasn't buffered
|
|
2086
|
-
!devtools.cleanupBuffer(component)) {
|
|
2085
|
+
if (devtools$1 && typeof devtools$1.cleanupBuffer === "function" && // remove the component if it wasn't buffered
|
|
2086
|
+
!devtools$1.cleanupBuffer(component)) {
|
|
2087
2087
|
_devtoolsComponentRemoved(component);
|
|
2088
2088
|
}
|
|
2089
2089
|
};
|
|
@@ -2382,12 +2382,12 @@ function warnDeprecation(key, instance, ...args) {
|
|
|
2382
2382
|
}
|
|
2383
2383
|
instanceWarned[componentDupKey] = true;
|
|
2384
2384
|
if (dupKey in warnCount) {
|
|
2385
|
-
warn(`(deprecation ${key}) (${++warnCount[dupKey] + 1})`);
|
|
2385
|
+
warn$1(`(deprecation ${key}) (${++warnCount[dupKey] + 1})`);
|
|
2386
2386
|
return;
|
|
2387
2387
|
}
|
|
2388
2388
|
warnCount[dupKey] = 0;
|
|
2389
2389
|
const { message, link } = deprecationData[key];
|
|
2390
|
-
warn(
|
|
2390
|
+
warn$1(
|
|
2391
2391
|
`(deprecation ${key}) ${typeof message === "function" ? message(...args) : message}${link ? `
|
|
2392
2392
|
Details: ${link}` : ``}`
|
|
2393
2393
|
);
|
|
@@ -2417,19 +2417,19 @@ function validateCompatConfig(config, instance) {
|
|
|
2417
2417
|
if (key !== "MODE" && !(key in deprecationData) && !(key in warnedInvalidKeys)) {
|
|
2418
2418
|
if (key.startsWith("COMPILER_")) {
|
|
2419
2419
|
if (isRuntimeOnly()) {
|
|
2420
|
-
warn(
|
|
2420
|
+
warn$1(
|
|
2421
2421
|
`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.
|
|
2422
2422
|
Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
2423
2423
|
);
|
|
2424
2424
|
}
|
|
2425
2425
|
} else {
|
|
2426
|
-
warn(`Invalid deprecation config "${key}".`);
|
|
2426
|
+
warn$1(`Invalid deprecation config "${key}".`);
|
|
2427
2427
|
}
|
|
2428
2428
|
warnedInvalidKeys[key] = true;
|
|
2429
2429
|
}
|
|
2430
2430
|
}
|
|
2431
2431
|
if (instance && config["OPTIONS_DATA_MERGE"] != null) {
|
|
2432
|
-
warn(
|
|
2432
|
+
warn$1(
|
|
2433
2433
|
`Deprecation config "${"OPTIONS_DATA_MERGE"}" can only be configured globally.`
|
|
2434
2434
|
);
|
|
2435
2435
|
}
|
|
@@ -2619,7 +2619,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
2619
2619
|
if (emitsOptions) {
|
|
2620
2620
|
if (!(event in emitsOptions) && !(event.startsWith("hook:") || event.startsWith(compatModelEventPrefix))) {
|
|
2621
2621
|
if (!propsOptions || !(toHandlerKey(event) in propsOptions)) {
|
|
2622
|
-
warn(
|
|
2622
|
+
warn$1(
|
|
2623
2623
|
`Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(event)}" prop.`
|
|
2624
2624
|
);
|
|
2625
2625
|
}
|
|
@@ -2628,7 +2628,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
2628
2628
|
if (isFunction(validator)) {
|
|
2629
2629
|
const isValid = validator(...rawArgs);
|
|
2630
2630
|
if (!isValid) {
|
|
2631
|
-
warn(
|
|
2631
|
+
warn$1(
|
|
2632
2632
|
`Invalid event arguments: event validation failed for event "${event}".`
|
|
2633
2633
|
);
|
|
2634
2634
|
}
|
|
@@ -2655,7 +2655,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
2655
2655
|
{
|
|
2656
2656
|
const lowerCaseEvent = event.toLowerCase();
|
|
2657
2657
|
if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) {
|
|
2658
|
-
warn(
|
|
2658
|
+
warn$1(
|
|
2659
2659
|
`Event "${lowerCaseEvent}" is emitted in component ${formatComponentName(
|
|
2660
2660
|
instance,
|
|
2661
2661
|
instance.type
|
|
@@ -2836,7 +2836,7 @@ function renderComponentRoot(instance) {
|
|
|
2836
2836
|
const proxyToUse = withProxy || proxy;
|
|
2837
2837
|
const thisProxy = setupState.__isScriptSetup ? new Proxy(proxyToUse, {
|
|
2838
2838
|
get(target, key, receiver) {
|
|
2839
|
-
warn(
|
|
2839
|
+
warn$1(
|
|
2840
2840
|
`Property '${String(
|
|
2841
2841
|
key
|
|
2842
2842
|
)}' was accessed via 'this'. Avoid using 'this' in templates.`
|
|
@@ -2917,12 +2917,12 @@ function renderComponentRoot(instance) {
|
|
|
2917
2917
|
}
|
|
2918
2918
|
}
|
|
2919
2919
|
if (extraAttrs.length) {
|
|
2920
|
-
warn(
|
|
2920
|
+
warn$1(
|
|
2921
2921
|
`Extraneous non-props attributes (${extraAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`
|
|
2922
2922
|
);
|
|
2923
2923
|
}
|
|
2924
2924
|
if (eventAttrs.length) {
|
|
2925
|
-
warn(
|
|
2925
|
+
warn$1(
|
|
2926
2926
|
`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.`
|
|
2927
2927
|
);
|
|
2928
2928
|
}
|
|
@@ -2947,7 +2947,7 @@ function renderComponentRoot(instance) {
|
|
|
2947
2947
|
}
|
|
2948
2948
|
if (vnode.dirs) {
|
|
2949
2949
|
if (!isElementRoot(root)) {
|
|
2950
|
-
warn(
|
|
2950
|
+
warn$1(
|
|
2951
2951
|
`Runtime directive used on component with non-element root node. The directives will not function as intended.`
|
|
2952
2952
|
);
|
|
2953
2953
|
}
|
|
@@ -2956,7 +2956,7 @@ function renderComponentRoot(instance) {
|
|
|
2956
2956
|
}
|
|
2957
2957
|
if (vnode.transition) {
|
|
2958
2958
|
if (!isElementRoot(root)) {
|
|
2959
|
-
warn(
|
|
2959
|
+
warn$1(
|
|
2960
2960
|
`Component inside <Transition> renders non-element root node that cannot be animated.`
|
|
2961
2961
|
);
|
|
2962
2962
|
}
|
|
@@ -3153,11 +3153,11 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
3153
3153
|
if (warnMissing && !res) {
|
|
3154
3154
|
const extra = type === COMPONENTS ? `
|
|
3155
3155
|
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
|
|
3156
|
-
warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
3156
|
+
warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
3157
3157
|
}
|
|
3158
3158
|
return res;
|
|
3159
3159
|
} else {
|
|
3160
|
-
warn(
|
|
3160
|
+
warn$1(
|
|
3161
3161
|
`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
|
|
3162
3162
|
);
|
|
3163
3163
|
}
|
|
@@ -3713,7 +3713,7 @@ function normalizeSuspenseSlot(s) {
|
|
|
3713
3713
|
if (isArray(s)) {
|
|
3714
3714
|
const singleChild = filterSingleRoot(s);
|
|
3715
3715
|
if (!singleChild && s.filter((child) => child !== NULL_DYNAMIC_COMPONENT).length > 0) {
|
|
3716
|
-
warn(`<Suspense> slots expect a single root node.`);
|
|
3716
|
+
warn$1(`<Suspense> slots expect a single root node.`);
|
|
3717
3717
|
}
|
|
3718
3718
|
s = singleChild;
|
|
3719
3719
|
}
|
|
@@ -3806,7 +3806,7 @@ function watchSyncEffect(effect, options) {
|
|
|
3806
3806
|
const INITIAL_WATCHER_VALUE = {};
|
|
3807
3807
|
function watch(source, cb, options) {
|
|
3808
3808
|
if (!isFunction(cb)) {
|
|
3809
|
-
warn(
|
|
3809
|
+
warn$1(
|
|
3810
3810
|
`\`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.`
|
|
3811
3811
|
);
|
|
3812
3812
|
}
|
|
@@ -3823,23 +3823,23 @@ function doWatch(source, cb, { immediate, deep, flush, once, onTrack, onTrigger
|
|
|
3823
3823
|
}
|
|
3824
3824
|
if (!cb) {
|
|
3825
3825
|
if (immediate !== void 0) {
|
|
3826
|
-
warn(
|
|
3826
|
+
warn$1(
|
|
3827
3827
|
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3828
3828
|
);
|
|
3829
3829
|
}
|
|
3830
3830
|
if (deep !== void 0) {
|
|
3831
|
-
warn(
|
|
3831
|
+
warn$1(
|
|
3832
3832
|
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3833
3833
|
);
|
|
3834
3834
|
}
|
|
3835
3835
|
if (once !== void 0) {
|
|
3836
|
-
warn(
|
|
3836
|
+
warn$1(
|
|
3837
3837
|
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3838
3838
|
);
|
|
3839
3839
|
}
|
|
3840
3840
|
}
|
|
3841
3841
|
const warnInvalidSource = (s) => {
|
|
3842
|
-
warn(
|
|
3842
|
+
warn$1(
|
|
3843
3843
|
`Invalid watch source: `,
|
|
3844
3844
|
s,
|
|
3845
3845
|
`A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`
|
|
@@ -4034,13 +4034,13 @@ function traverse(value, seen) {
|
|
|
4034
4034
|
|
|
4035
4035
|
function validateDirectiveName(name) {
|
|
4036
4036
|
if (isBuiltInDirective(name)) {
|
|
4037
|
-
warn("Do not use built-in directive ids as custom directive id: " + name);
|
|
4037
|
+
warn$1("Do not use built-in directive ids as custom directive id: " + name);
|
|
4038
4038
|
}
|
|
4039
4039
|
}
|
|
4040
4040
|
function withDirectives(vnode, directives) {
|
|
4041
4041
|
const internalInstance = currentRenderingInstance;
|
|
4042
4042
|
if (internalInstance === null) {
|
|
4043
|
-
warn(`withDirectives can only be used inside render functions.`);
|
|
4043
|
+
warn$1(`withDirectives can only be used inside render functions.`);
|
|
4044
4044
|
return vnode;
|
|
4045
4045
|
}
|
|
4046
4046
|
const instance = getExposeProxy(internalInstance) || internalInstance.proxy;
|
|
@@ -4150,7 +4150,7 @@ const BaseTransitionImpl = {
|
|
|
4150
4150
|
for (const c of children) {
|
|
4151
4151
|
if (c.type !== Comment) {
|
|
4152
4152
|
if (hasFound) {
|
|
4153
|
-
warn(
|
|
4153
|
+
warn$1(
|
|
4154
4154
|
"<transition> can only be used on a single element or component. Use <transition-group> for lists."
|
|
4155
4155
|
);
|
|
4156
4156
|
break;
|
|
@@ -4163,7 +4163,7 @@ const BaseTransitionImpl = {
|
|
|
4163
4163
|
const rawProps = toRaw(props);
|
|
4164
4164
|
const { mode } = rawProps;
|
|
4165
4165
|
if (mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
|
|
4166
|
-
warn(`invalid <transition> mode: ${mode}`);
|
|
4166
|
+
warn$1(`invalid <transition> mode: ${mode}`);
|
|
4167
4167
|
}
|
|
4168
4168
|
if (state.isLeaving) {
|
|
4169
4169
|
return emptyPlaceholder(child);
|
|
@@ -4481,7 +4481,7 @@ function defineAsyncComponent(source) {
|
|
|
4481
4481
|
return pendingRequest;
|
|
4482
4482
|
}
|
|
4483
4483
|
if (!comp) {
|
|
4484
|
-
warn(
|
|
4484
|
+
warn$1(
|
|
4485
4485
|
`Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.`
|
|
4486
4486
|
);
|
|
4487
4487
|
}
|
|
@@ -4715,7 +4715,7 @@ const KeepAliveImpl = {
|
|
|
4715
4715
|
const rawVNode = children[0];
|
|
4716
4716
|
if (children.length > 1) {
|
|
4717
4717
|
{
|
|
4718
|
-
warn(`KeepAlive should contain exactly one component child.`);
|
|
4718
|
+
warn$1(`KeepAlive should contain exactly one component child.`);
|
|
4719
4719
|
}
|
|
4720
4720
|
current = null;
|
|
4721
4721
|
return children;
|
|
@@ -4847,7 +4847,7 @@ function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
|
4847
4847
|
return wrappedHook;
|
|
4848
4848
|
} else {
|
|
4849
4849
|
const apiName = toHandlerKey(ErrorTypeStrings$1[type].replace(/ hook$/, ""));
|
|
4850
|
-
warn(
|
|
4850
|
+
warn$1(
|
|
4851
4851
|
`${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.` )
|
|
4852
4852
|
);
|
|
4853
4853
|
}
|
|
@@ -5169,7 +5169,7 @@ function renderList(source, renderItem, cache, index) {
|
|
|
5169
5169
|
}
|
|
5170
5170
|
} else if (typeof source === "number") {
|
|
5171
5171
|
if (!Number.isInteger(source)) {
|
|
5172
|
-
warn(`The v-for range expect an integer value but got ${source}.`);
|
|
5172
|
+
warn$1(`The v-for range expect an integer value but got ${source}.`);
|
|
5173
5173
|
}
|
|
5174
5174
|
ret = new Array(source);
|
|
5175
5175
|
for (let i = 0; i < source; i++) {
|
|
@@ -5225,7 +5225,7 @@ function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
|
5225
5225
|
}
|
|
5226
5226
|
let slot = slots[name];
|
|
5227
5227
|
if (slot && slot.length > 1) {
|
|
5228
|
-
warn(
|
|
5228
|
+
warn$1(
|
|
5229
5229
|
`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.`
|
|
5230
5230
|
);
|
|
5231
5231
|
slot = () => [];
|
|
@@ -5268,7 +5268,7 @@ function ensureValidVNode(vnodes) {
|
|
|
5268
5268
|
function toHandlers(obj, preserveCaseIfNecessary) {
|
|
5269
5269
|
const ret = {};
|
|
5270
5270
|
if (!isObject(obj)) {
|
|
5271
|
-
warn(`v-on with no argument expects an object value.`);
|
|
5271
|
+
warn$1(`v-on with no argument expects an object value.`);
|
|
5272
5272
|
return ret;
|
|
5273
5273
|
}
|
|
5274
5274
|
for (const key in obj) {
|
|
@@ -5597,13 +5597,13 @@ const PublicInstanceProxyHandlers = {
|
|
|
5597
5597
|
// to infinite warning loop
|
|
5598
5598
|
key.indexOf("__v") !== 0)) {
|
|
5599
5599
|
if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) {
|
|
5600
|
-
warn(
|
|
5600
|
+
warn$1(
|
|
5601
5601
|
`Property ${JSON.stringify(
|
|
5602
5602
|
key
|
|
5603
5603
|
)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
|
|
5604
5604
|
);
|
|
5605
5605
|
} else if (instance === currentRenderingInstance) {
|
|
5606
|
-
warn(
|
|
5606
|
+
warn$1(
|
|
5607
5607
|
`Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.`
|
|
5608
5608
|
);
|
|
5609
5609
|
}
|
|
@@ -5615,17 +5615,17 @@ const PublicInstanceProxyHandlers = {
|
|
|
5615
5615
|
setupState[key] = value;
|
|
5616
5616
|
return true;
|
|
5617
5617
|
} else if (setupState.__isScriptSetup && hasOwn(setupState, key)) {
|
|
5618
|
-
warn(`Cannot mutate <script setup> binding "${key}" from Options API.`);
|
|
5618
|
+
warn$1(`Cannot mutate <script setup> binding "${key}" from Options API.`);
|
|
5619
5619
|
return false;
|
|
5620
5620
|
} else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
|
|
5621
5621
|
data[key] = value;
|
|
5622
5622
|
return true;
|
|
5623
5623
|
} else if (hasOwn(instance.props, key)) {
|
|
5624
|
-
warn(`Attempting to mutate prop "${key}". Props are readonly.`);
|
|
5624
|
+
warn$1(`Attempting to mutate prop "${key}". Props are readonly.`);
|
|
5625
5625
|
return false;
|
|
5626
5626
|
}
|
|
5627
5627
|
if (key[0] === "$" && key.slice(1) in instance) {
|
|
5628
|
-
warn(
|
|
5628
|
+
warn$1(
|
|
5629
5629
|
`Attempting to mutate public property "${key}". Properties starting with $ are reserved and readonly.`
|
|
5630
5630
|
);
|
|
5631
5631
|
return false;
|
|
@@ -5659,7 +5659,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
5659
5659
|
};
|
|
5660
5660
|
{
|
|
5661
5661
|
PublicInstanceProxyHandlers.ownKeys = (target) => {
|
|
5662
|
-
warn(
|
|
5662
|
+
warn$1(
|
|
5663
5663
|
`Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.`
|
|
5664
5664
|
);
|
|
5665
5665
|
return Reflect.ownKeys(target);
|
|
@@ -5678,7 +5678,7 @@ const RuntimeCompiledPublicInstanceProxyHandlers = /* @__PURE__ */ extend(
|
|
|
5678
5678
|
has(_, key) {
|
|
5679
5679
|
const has = key[0] !== "_" && !isGloballyAllowed(key);
|
|
5680
5680
|
if (!has && PublicInstanceProxyHandlers.has(_, key)) {
|
|
5681
|
-
warn(
|
|
5681
|
+
warn$1(
|
|
5682
5682
|
`Property ${JSON.stringify(
|
|
5683
5683
|
key
|
|
5684
5684
|
)} should not start with _ which is a reserved prefix for Vue internals.`
|
|
@@ -5728,7 +5728,7 @@ function exposeSetupStateOnRenderContext(instance) {
|
|
|
5728
5728
|
Object.keys(toRaw(setupState)).forEach((key) => {
|
|
5729
5729
|
if (!setupState.__isScriptSetup) {
|
|
5730
5730
|
if (isReservedPrefix(key[0])) {
|
|
5731
|
-
warn(
|
|
5731
|
+
warn$1(
|
|
5732
5732
|
`setup() return property ${JSON.stringify(
|
|
5733
5733
|
key
|
|
5734
5734
|
)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`
|
|
@@ -5759,7 +5759,7 @@ function deepMergeData(to, from) {
|
|
|
5759
5759
|
return to;
|
|
5760
5760
|
}
|
|
5761
5761
|
|
|
5762
|
-
const warnRuntimeUsage = (method) => warn(
|
|
5762
|
+
const warnRuntimeUsage = (method) => warn$1(
|
|
5763
5763
|
`${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.`
|
|
5764
5764
|
);
|
|
5765
5765
|
function defineProps() {
|
|
@@ -5810,11 +5810,11 @@ function useAttrs() {
|
|
|
5810
5810
|
function useModel(props, name) {
|
|
5811
5811
|
const i = getCurrentInstance();
|
|
5812
5812
|
if (!i) {
|
|
5813
|
-
warn(`useModel() called without active instance.`);
|
|
5813
|
+
warn$1(`useModel() called without active instance.`);
|
|
5814
5814
|
return ref();
|
|
5815
5815
|
}
|
|
5816
5816
|
if (!i.propsOptions[0][name]) {
|
|
5817
|
-
warn(`useModel() called with prop "${name}" which is not declared.`);
|
|
5817
|
+
warn$1(`useModel() called with prop "${name}" which is not declared.`);
|
|
5818
5818
|
return ref();
|
|
5819
5819
|
}
|
|
5820
5820
|
return customRef((track, trigger) => {
|
|
@@ -5845,7 +5845,7 @@ function useModel(props, name) {
|
|
|
5845
5845
|
function getContext() {
|
|
5846
5846
|
const i = getCurrentInstance();
|
|
5847
5847
|
if (!i) {
|
|
5848
|
-
warn(`useContext() called without active instance.`);
|
|
5848
|
+
warn$1(`useContext() called without active instance.`);
|
|
5849
5849
|
}
|
|
5850
5850
|
return i.setupContext || (i.setupContext = createSetupContext(i));
|
|
5851
5851
|
}
|
|
@@ -5870,7 +5870,7 @@ function mergeDefaults(raw, defaults) {
|
|
|
5870
5870
|
} else if (opt === null) {
|
|
5871
5871
|
opt = props[key] = { default: defaults[key] };
|
|
5872
5872
|
} else {
|
|
5873
|
-
warn(`props default key "${key}" has no corresponding declaration.`);
|
|
5873
|
+
warn$1(`props default key "${key}" has no corresponding declaration.`);
|
|
5874
5874
|
}
|
|
5875
5875
|
if (opt && defaults[`__skip_${key}`]) {
|
|
5876
5876
|
opt.skipFactory = true;
|
|
@@ -5900,7 +5900,7 @@ function createPropsRestProxy(props, excludedKeys) {
|
|
|
5900
5900
|
function withAsyncContext(getAwaitable) {
|
|
5901
5901
|
const ctx = getCurrentInstance();
|
|
5902
5902
|
if (!ctx) {
|
|
5903
|
-
warn(
|
|
5903
|
+
warn$1(
|
|
5904
5904
|
`withAsyncContext called without active current instance. This is likely a bug.`
|
|
5905
5905
|
);
|
|
5906
5906
|
}
|
|
@@ -5919,7 +5919,7 @@ function createDuplicateChecker() {
|
|
|
5919
5919
|
const cache = /* @__PURE__ */ Object.create(null);
|
|
5920
5920
|
return (type, key) => {
|
|
5921
5921
|
if (cache[key]) {
|
|
5922
|
-
warn(`${type} property "${key}" is already defined in ${cache[key]}.`);
|
|
5922
|
+
warn$1(`${type} property "${key}" is already defined in ${cache[key]}.`);
|
|
5923
5923
|
} else {
|
|
5924
5924
|
cache[key] = type;
|
|
5925
5925
|
}
|
|
@@ -5995,7 +5995,7 @@ function applyOptions(instance) {
|
|
|
5995
5995
|
checkDuplicateProperties("Methods" /* METHODS */, key);
|
|
5996
5996
|
}
|
|
5997
5997
|
} else {
|
|
5998
|
-
warn(
|
|
5998
|
+
warn$1(
|
|
5999
5999
|
`Method "${key}" has type "${typeof methodHandler}" in the component definition. Did you reference the function correctly?`
|
|
6000
6000
|
);
|
|
6001
6001
|
}
|
|
@@ -6003,18 +6003,18 @@ function applyOptions(instance) {
|
|
|
6003
6003
|
}
|
|
6004
6004
|
if (dataOptions) {
|
|
6005
6005
|
if (!isFunction(dataOptions)) {
|
|
6006
|
-
warn(
|
|
6006
|
+
warn$1(
|
|
6007
6007
|
`The data option must be a function. Plain object usage is no longer supported.`
|
|
6008
6008
|
);
|
|
6009
6009
|
}
|
|
6010
6010
|
const data = dataOptions.call(publicThis, publicThis);
|
|
6011
6011
|
if (isPromise(data)) {
|
|
6012
|
-
warn(
|
|
6012
|
+
warn$1(
|
|
6013
6013
|
`data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>.`
|
|
6014
6014
|
);
|
|
6015
6015
|
}
|
|
6016
6016
|
if (!isObject(data)) {
|
|
6017
|
-
warn(`data() should return an object.`);
|
|
6017
|
+
warn$1(`data() should return an object.`);
|
|
6018
6018
|
} else {
|
|
6019
6019
|
instance.data = reactive(data);
|
|
6020
6020
|
{
|
|
@@ -6038,10 +6038,10 @@ function applyOptions(instance) {
|
|
|
6038
6038
|
const opt = computedOptions[key];
|
|
6039
6039
|
const get = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP;
|
|
6040
6040
|
if (get === NOOP) {
|
|
6041
|
-
warn(`Computed property "${key}" has no getter.`);
|
|
6041
|
+
warn$1(`Computed property "${key}" has no getter.`);
|
|
6042
6042
|
}
|
|
6043
6043
|
const set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : () => {
|
|
6044
|
-
warn(
|
|
6044
|
+
warn$1(
|
|
6045
6045
|
`Write operation failed: computed property "${key}" is readonly.`
|
|
6046
6046
|
);
|
|
6047
6047
|
} ;
|
|
@@ -6178,7 +6178,7 @@ function createWatcher(raw, ctx, publicThis, key) {
|
|
|
6178
6178
|
if (isFunction(handler)) {
|
|
6179
6179
|
watch(getter, handler);
|
|
6180
6180
|
} else {
|
|
6181
|
-
warn(`Invalid watch handler specified by key "${raw}"`, handler);
|
|
6181
|
+
warn$1(`Invalid watch handler specified by key "${raw}"`, handler);
|
|
6182
6182
|
}
|
|
6183
6183
|
} else if (isFunction(raw)) {
|
|
6184
6184
|
watch(getter, raw.bind(publicThis));
|
|
@@ -6190,11 +6190,11 @@ function createWatcher(raw, ctx, publicThis, key) {
|
|
|
6190
6190
|
if (isFunction(handler)) {
|
|
6191
6191
|
watch(getter, handler, raw);
|
|
6192
6192
|
} else {
|
|
6193
|
-
warn(`Invalid watch handler specified by key "${raw.handler}"`, handler);
|
|
6193
|
+
warn$1(`Invalid watch handler specified by key "${raw.handler}"`, handler);
|
|
6194
6194
|
}
|
|
6195
6195
|
}
|
|
6196
6196
|
} else {
|
|
6197
|
-
warn(`Invalid watch option: "${key}"`, raw);
|
|
6197
|
+
warn$1(`Invalid watch option: "${key}"`, raw);
|
|
6198
6198
|
}
|
|
6199
6199
|
}
|
|
6200
6200
|
function resolveMergedOptions(instance) {
|
|
@@ -6246,7 +6246,7 @@ function mergeOptions(to, from, strats, asMixin = false) {
|
|
|
6246
6246
|
}
|
|
6247
6247
|
for (const key in from) {
|
|
6248
6248
|
if (asMixin && key === "expose") {
|
|
6249
|
-
warn(
|
|
6249
|
+
warn$1(
|
|
6250
6250
|
`"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.`
|
|
6251
6251
|
);
|
|
6252
6252
|
} else {
|
|
@@ -6414,7 +6414,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6414
6414
|
return vm;
|
|
6415
6415
|
}
|
|
6416
6416
|
}
|
|
6417
|
-
Vue.version = `2.6.14-compat:${"3.4.0-rc.
|
|
6417
|
+
Vue.version = `2.6.14-compat:${"3.4.0-rc.2"}`;
|
|
6418
6418
|
Vue.config = singletonApp.config;
|
|
6419
6419
|
Vue.use = (p, ...options) => {
|
|
6420
6420
|
if (p && isFunction(p.install)) {
|
|
@@ -6515,7 +6515,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6515
6515
|
}
|
|
6516
6516
|
};
|
|
6517
6517
|
const util = {
|
|
6518
|
-
warn: warn ,
|
|
6518
|
+
warn: warn$1 ,
|
|
6519
6519
|
extend,
|
|
6520
6520
|
mergeOptions: (parent, child, vm) => mergeOptions(
|
|
6521
6521
|
parent,
|
|
@@ -6552,7 +6552,7 @@ function installFilterMethod(app, context) {
|
|
|
6552
6552
|
return context.filters[name];
|
|
6553
6553
|
}
|
|
6554
6554
|
if (context.filters[name]) {
|
|
6555
|
-
warn(`Filter "${name}" has already been registered.`);
|
|
6555
|
+
warn$1(`Filter "${name}" has already been registered.`);
|
|
6556
6556
|
}
|
|
6557
6557
|
context.filters[name] = filter;
|
|
6558
6558
|
return app;
|
|
@@ -6643,14 +6643,14 @@ function installCompatMount(app, context, render) {
|
|
|
6643
6643
|
vnode.isCompatRoot = true;
|
|
6644
6644
|
instance.ctx._compat_mount = (selectorOrEl) => {
|
|
6645
6645
|
if (isMounted) {
|
|
6646
|
-
warn(`Root instance is already mounted.`);
|
|
6646
|
+
warn$1(`Root instance is already mounted.`);
|
|
6647
6647
|
return;
|
|
6648
6648
|
}
|
|
6649
6649
|
let container;
|
|
6650
6650
|
if (typeof selectorOrEl === "string") {
|
|
6651
6651
|
const result = document.querySelector(selectorOrEl);
|
|
6652
6652
|
if (!result) {
|
|
6653
|
-
warn(
|
|
6653
|
+
warn$1(
|
|
6654
6654
|
`Failed to mount root instance: selector "${selectorOrEl}" returned null.`
|
|
6655
6655
|
);
|
|
6656
6656
|
return;
|
|
@@ -6815,7 +6815,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6815
6815
|
rootComponent = extend({}, rootComponent);
|
|
6816
6816
|
}
|
|
6817
6817
|
if (rootProps != null && !isObject(rootProps)) {
|
|
6818
|
-
warn(`root props passed to app.mount() must be an object.`);
|
|
6818
|
+
warn$1(`root props passed to app.mount() must be an object.`);
|
|
6819
6819
|
rootProps = null;
|
|
6820
6820
|
}
|
|
6821
6821
|
const context = createAppContext();
|
|
@@ -6834,14 +6834,14 @@ function createAppAPI(render, hydrate) {
|
|
|
6834
6834
|
},
|
|
6835
6835
|
set config(v) {
|
|
6836
6836
|
{
|
|
6837
|
-
warn(
|
|
6837
|
+
warn$1(
|
|
6838
6838
|
`app.config cannot be replaced. Modify individual options instead.`
|
|
6839
6839
|
);
|
|
6840
6840
|
}
|
|
6841
6841
|
},
|
|
6842
6842
|
use(plugin, ...options) {
|
|
6843
6843
|
if (installedPlugins.has(plugin)) {
|
|
6844
|
-
warn(`Plugin has already been applied to target app.`);
|
|
6844
|
+
warn$1(`Plugin has already been applied to target app.`);
|
|
6845
6845
|
} else if (plugin && isFunction(plugin.install)) {
|
|
6846
6846
|
installedPlugins.add(plugin);
|
|
6847
6847
|
plugin.install(app, ...options);
|
|
@@ -6849,7 +6849,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6849
6849
|
installedPlugins.add(plugin);
|
|
6850
6850
|
plugin(app, ...options);
|
|
6851
6851
|
} else {
|
|
6852
|
-
warn(
|
|
6852
|
+
warn$1(
|
|
6853
6853
|
`A plugin must either be a function or an object with an "install" function.`
|
|
6854
6854
|
);
|
|
6855
6855
|
}
|
|
@@ -6860,7 +6860,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6860
6860
|
if (!context.mixins.includes(mixin)) {
|
|
6861
6861
|
context.mixins.push(mixin);
|
|
6862
6862
|
} else {
|
|
6863
|
-
warn(
|
|
6863
|
+
warn$1(
|
|
6864
6864
|
"Mixin has already been applied to target app" + (mixin.name ? `: ${mixin.name}` : "")
|
|
6865
6865
|
);
|
|
6866
6866
|
}
|
|
@@ -6875,7 +6875,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6875
6875
|
return context.components[name];
|
|
6876
6876
|
}
|
|
6877
6877
|
if (context.components[name]) {
|
|
6878
|
-
warn(`Component "${name}" has already been registered in target app.`);
|
|
6878
|
+
warn$1(`Component "${name}" has already been registered in target app.`);
|
|
6879
6879
|
}
|
|
6880
6880
|
context.components[name] = component;
|
|
6881
6881
|
return app;
|
|
@@ -6888,7 +6888,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6888
6888
|
return context.directives[name];
|
|
6889
6889
|
}
|
|
6890
6890
|
if (context.directives[name]) {
|
|
6891
|
-
warn(`Directive "${name}" has already been registered in target app.`);
|
|
6891
|
+
warn$1(`Directive "${name}" has already been registered in target app.`);
|
|
6892
6892
|
}
|
|
6893
6893
|
context.directives[name] = directive;
|
|
6894
6894
|
return app;
|
|
@@ -6896,7 +6896,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6896
6896
|
mount(rootContainer, isHydrate, namespace) {
|
|
6897
6897
|
if (!isMounted) {
|
|
6898
6898
|
if (rootContainer.__vue_app__) {
|
|
6899
|
-
warn(
|
|
6899
|
+
warn$1(
|
|
6900
6900
|
`There is already an app instance mounted on the host container.
|
|
6901
6901
|
If you want to mount another app on the same host container, you need to unmount the previous app by calling \`app.unmount()\` first.`
|
|
6902
6902
|
);
|
|
@@ -6931,7 +6931,7 @@ function createAppAPI(render, hydrate) {
|
|
|
6931
6931
|
}
|
|
6932
6932
|
return getExposeProxy(vnode.component) || vnode.component.proxy;
|
|
6933
6933
|
} else {
|
|
6934
|
-
warn(
|
|
6934
|
+
warn$1(
|
|
6935
6935
|
`App has already been mounted.
|
|
6936
6936
|
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)\``
|
|
6937
6937
|
);
|
|
@@ -6946,12 +6946,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6946
6946
|
}
|
|
6947
6947
|
delete app._container.__vue_app__;
|
|
6948
6948
|
} else {
|
|
6949
|
-
warn(`Cannot unmount an app that is not mounted.`);
|
|
6949
|
+
warn$1(`Cannot unmount an app that is not mounted.`);
|
|
6950
6950
|
}
|
|
6951
6951
|
},
|
|
6952
6952
|
provide(key, value) {
|
|
6953
6953
|
if (key in context.provides) {
|
|
6954
|
-
warn(
|
|
6954
|
+
warn$1(
|
|
6955
6955
|
`App already provides property with key "${String(key)}". It will be overwritten with the new value.`
|
|
6956
6956
|
);
|
|
6957
6957
|
}
|
|
@@ -6978,7 +6978,7 @@ let currentApp = null;
|
|
|
6978
6978
|
function provide(key, value) {
|
|
6979
6979
|
if (!currentInstance) {
|
|
6980
6980
|
{
|
|
6981
|
-
warn(`provide() can only be used inside setup().`);
|
|
6981
|
+
warn$1(`provide() can only be used inside setup().`);
|
|
6982
6982
|
}
|
|
6983
6983
|
} else {
|
|
6984
6984
|
let provides = currentInstance.provides;
|
|
@@ -6998,10 +6998,10 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
6998
6998
|
} else if (arguments.length > 1) {
|
|
6999
6999
|
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
7000
7000
|
} else {
|
|
7001
|
-
warn(`injection "${String(key)}" not found.`);
|
|
7001
|
+
warn$1(`injection "${String(key)}" not found.`);
|
|
7002
7002
|
}
|
|
7003
7003
|
} else {
|
|
7004
|
-
warn(`inject() can only be used inside setup() or functional components.`);
|
|
7004
|
+
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
7005
7005
|
}
|
|
7006
7006
|
}
|
|
7007
7007
|
function hasInjectionContext() {
|
|
@@ -7317,7 +7317,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
7317
7317
|
if (isArray(raw)) {
|
|
7318
7318
|
for (let i = 0; i < raw.length; i++) {
|
|
7319
7319
|
if (!isString(raw[i])) {
|
|
7320
|
-
warn(`props must be strings when using array syntax.`, raw[i]);
|
|
7320
|
+
warn$1(`props must be strings when using array syntax.`, raw[i]);
|
|
7321
7321
|
}
|
|
7322
7322
|
const normalizedKey = camelize(raw[i]);
|
|
7323
7323
|
if (validatePropName(normalizedKey)) {
|
|
@@ -7326,7 +7326,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
7326
7326
|
}
|
|
7327
7327
|
} else if (raw) {
|
|
7328
7328
|
if (!isObject(raw)) {
|
|
7329
|
-
warn(`invalid props options`, raw);
|
|
7329
|
+
warn$1(`invalid props options`, raw);
|
|
7330
7330
|
}
|
|
7331
7331
|
for (const key in raw) {
|
|
7332
7332
|
const normalizedKey = camelize(key);
|
|
@@ -7355,7 +7355,7 @@ function validatePropName(key) {
|
|
|
7355
7355
|
if (key[0] !== "$") {
|
|
7356
7356
|
return true;
|
|
7357
7357
|
} else {
|
|
7358
|
-
warn(`Invalid prop name: "${key}" is a reserved property.`);
|
|
7358
|
+
warn$1(`Invalid prop name: "${key}" is a reserved property.`);
|
|
7359
7359
|
}
|
|
7360
7360
|
return false;
|
|
7361
7361
|
}
|
|
@@ -7393,7 +7393,7 @@ function validateProps(rawProps, props, instance) {
|
|
|
7393
7393
|
function validateProp(name, value, prop, props, isAbsent) {
|
|
7394
7394
|
const { type, required, validator, skipCheck } = prop;
|
|
7395
7395
|
if (required && isAbsent) {
|
|
7396
|
-
warn('Missing required prop: "' + name + '"');
|
|
7396
|
+
warn$1('Missing required prop: "' + name + '"');
|
|
7397
7397
|
return;
|
|
7398
7398
|
}
|
|
7399
7399
|
if (value == null && !required) {
|
|
@@ -7409,12 +7409,12 @@ function validateProp(name, value, prop, props, isAbsent) {
|
|
|
7409
7409
|
isValid = valid;
|
|
7410
7410
|
}
|
|
7411
7411
|
if (!isValid) {
|
|
7412
|
-
warn(getInvalidTypeMessage(name, value, expectedTypes));
|
|
7412
|
+
warn$1(getInvalidTypeMessage(name, value, expectedTypes));
|
|
7413
7413
|
return;
|
|
7414
7414
|
}
|
|
7415
7415
|
}
|
|
7416
7416
|
if (validator && !validator(value, props)) {
|
|
7417
|
-
warn('Invalid prop: custom validator check failed for prop "' + name + '".');
|
|
7417
|
+
warn$1('Invalid prop: custom validator check failed for prop "' + name + '".');
|
|
7418
7418
|
}
|
|
7419
7419
|
}
|
|
7420
7420
|
const isSimpleType = /* @__PURE__ */ makeMap(
|
|
@@ -7486,7 +7486,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
|
|
|
7486
7486
|
}
|
|
7487
7487
|
const normalized = withCtx((...args) => {
|
|
7488
7488
|
if (currentInstance) {
|
|
7489
|
-
warn(
|
|
7489
|
+
warn$1(
|
|
7490
7490
|
`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.`
|
|
7491
7491
|
);
|
|
7492
7492
|
}
|
|
@@ -7505,7 +7505,7 @@ const normalizeObjectSlots = (rawSlots, slots, instance) => {
|
|
|
7505
7505
|
slots[key] = normalizeSlot(key, value, ctx);
|
|
7506
7506
|
} else if (value != null) {
|
|
7507
7507
|
if (!isCompatEnabled("RENDER_FUNCTION", instance)) {
|
|
7508
|
-
warn(
|
|
7508
|
+
warn$1(
|
|
7509
7509
|
`Non-function value encountered for slot "${key}". Prefer function slots for better performance.`
|
|
7510
7510
|
);
|
|
7511
7511
|
}
|
|
@@ -7516,7 +7516,7 @@ const normalizeObjectSlots = (rawSlots, slots, instance) => {
|
|
|
7516
7516
|
};
|
|
7517
7517
|
const normalizeVNodeSlots = (instance, children) => {
|
|
7518
7518
|
if (!isKeepAlive(instance.vnode) && !isCompatEnabled("RENDER_FUNCTION", instance)) {
|
|
7519
|
-
warn(
|
|
7519
|
+
warn$1(
|
|
7520
7520
|
`Non-function value encountered for default slot. Prefer function slots for better performance.`
|
|
7521
7521
|
);
|
|
7522
7522
|
}
|
|
@@ -7600,7 +7600,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7600
7600
|
const value = isUnmount ? null : refValue;
|
|
7601
7601
|
const { i: owner, r: ref } = rawRef;
|
|
7602
7602
|
if (!owner) {
|
|
7603
|
-
warn(
|
|
7603
|
+
warn$1(
|
|
7604
7604
|
`Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.`
|
|
7605
7605
|
);
|
|
7606
7606
|
return;
|
|
@@ -7655,7 +7655,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7655
7655
|
if (rawRef.k)
|
|
7656
7656
|
refs[rawRef.k] = value;
|
|
7657
7657
|
} else {
|
|
7658
|
-
warn("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7658
|
+
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7659
7659
|
}
|
|
7660
7660
|
};
|
|
7661
7661
|
if (value) {
|
|
@@ -7665,7 +7665,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7665
7665
|
doSet();
|
|
7666
7666
|
}
|
|
7667
7667
|
} else {
|
|
7668
|
-
warn("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7668
|
+
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7669
7669
|
}
|
|
7670
7670
|
}
|
|
7671
7671
|
}
|
|
@@ -7697,7 +7697,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7697
7697
|
} = rendererInternals;
|
|
7698
7698
|
const hydrate = (vnode, container) => {
|
|
7699
7699
|
if (!container.hasChildNodes()) {
|
|
7700
|
-
warn(
|
|
7700
|
+
warn$1(
|
|
7701
7701
|
`Attempting to hydrate existing markup but container is empty. Performing full mount instead.`
|
|
7702
7702
|
);
|
|
7703
7703
|
patch(null, vnode, container);
|
|
@@ -7757,7 +7757,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7757
7757
|
} else {
|
|
7758
7758
|
if (node.data !== vnode.children) {
|
|
7759
7759
|
hasMismatch = true;
|
|
7760
|
-
warn(
|
|
7760
|
+
warn$1(
|
|
7761
7761
|
`Hydration text mismatch in`,
|
|
7762
7762
|
node.parentNode,
|
|
7763
7763
|
`
|
|
@@ -7892,7 +7892,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7892
7892
|
hydrateNode
|
|
7893
7893
|
);
|
|
7894
7894
|
} else {
|
|
7895
|
-
warn("Invalid HostVNode type:", type, `(${typeof type})`);
|
|
7895
|
+
warn$1("Invalid HostVNode type:", type, `(${typeof type})`);
|
|
7896
7896
|
}
|
|
7897
7897
|
}
|
|
7898
7898
|
if (ref != null) {
|
|
@@ -7933,7 +7933,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7933
7933
|
while (next) {
|
|
7934
7934
|
hasMismatch = true;
|
|
7935
7935
|
if (!hasWarned) {
|
|
7936
|
-
warn(
|
|
7936
|
+
warn$1(
|
|
7937
7937
|
`Hydration children mismatch on`,
|
|
7938
7938
|
el,
|
|
7939
7939
|
`
|
|
@@ -7948,7 +7948,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
7948
7948
|
} else if (shapeFlag & 8) {
|
|
7949
7949
|
if (el.textContent !== vnode.children) {
|
|
7950
7950
|
hasMismatch = true;
|
|
7951
|
-
warn(
|
|
7951
|
+
warn$1(
|
|
7952
7952
|
`Hydration text content mismatch on`,
|
|
7953
7953
|
el,
|
|
7954
7954
|
`
|
|
@@ -8017,7 +8017,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
8017
8017
|
} else {
|
|
8018
8018
|
hasMismatch = true;
|
|
8019
8019
|
if (!hasWarned) {
|
|
8020
|
-
warn(
|
|
8020
|
+
warn$1(
|
|
8021
8021
|
`Hydration children mismatch on`,
|
|
8022
8022
|
container,
|
|
8023
8023
|
`
|
|
@@ -8064,7 +8064,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8064
8064
|
};
|
|
8065
8065
|
const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
|
|
8066
8066
|
hasMismatch = true;
|
|
8067
|
-
warn(
|
|
8067
|
+
warn$1(
|
|
8068
8068
|
`Hydration node mismatch:
|
|
8069
8069
|
- rendered on server:`,
|
|
8070
8070
|
node,
|
|
@@ -8163,7 +8163,7 @@ function propHasMismatch(el, key, clientValue) {
|
|
|
8163
8163
|
}
|
|
8164
8164
|
if (mismatchType) {
|
|
8165
8165
|
const format = (v) => v === false ? `(not rendered)` : `${mismatchKey}="${v}"`;
|
|
8166
|
-
warn(
|
|
8166
|
+
warn$1(
|
|
8167
8167
|
`Hydration ${mismatchType} mismatch on`,
|
|
8168
8168
|
el,
|
|
8169
8169
|
`
|
|
@@ -8242,7 +8242,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8242
8242
|
const target = getGlobalThis();
|
|
8243
8243
|
target.__VUE__ = true;
|
|
8244
8244
|
{
|
|
8245
|
-
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
|
|
8245
|
+
setDevtoolsHook$1(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
|
|
8246
8246
|
}
|
|
8247
8247
|
const {
|
|
8248
8248
|
insert: hostInsert,
|
|
@@ -8351,7 +8351,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8351
8351
|
internals
|
|
8352
8352
|
);
|
|
8353
8353
|
} else {
|
|
8354
|
-
warn("Invalid VNode type:", type, `(${typeof type})`);
|
|
8354
|
+
warn$1("Invalid VNode type:", type, `(${typeof type})`);
|
|
8355
8355
|
}
|
|
8356
8356
|
}
|
|
8357
8357
|
if (ref != null && parentComponent) {
|
|
@@ -9345,7 +9345,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9345
9345
|
const nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]);
|
|
9346
9346
|
if (nextChild.key != null) {
|
|
9347
9347
|
if (keyToNewIndexMap.has(nextChild.key)) {
|
|
9348
|
-
warn(
|
|
9348
|
+
warn$1(
|
|
9349
9349
|
`Duplicate keys found during update:`,
|
|
9350
9350
|
JSON.stringify(nextChild.key),
|
|
9351
9351
|
`Make sure keys are unique.`
|
|
@@ -9783,14 +9783,14 @@ const resolveTarget = (props, select) => {
|
|
|
9783
9783
|
const targetSelector = props && props.to;
|
|
9784
9784
|
if (isString(targetSelector)) {
|
|
9785
9785
|
if (!select) {
|
|
9786
|
-
warn(
|
|
9786
|
+
warn$1(
|
|
9787
9787
|
`Current renderer does not support string target for Teleports. (missing querySelector renderer option)`
|
|
9788
9788
|
);
|
|
9789
9789
|
return null;
|
|
9790
9790
|
} else {
|
|
9791
9791
|
const target = select(targetSelector);
|
|
9792
9792
|
if (!target) {
|
|
9793
|
-
warn(
|
|
9793
|
+
warn$1(
|
|
9794
9794
|
`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.`
|
|
9795
9795
|
);
|
|
9796
9796
|
}
|
|
@@ -9798,7 +9798,7 @@ const resolveTarget = (props, select) => {
|
|
|
9798
9798
|
}
|
|
9799
9799
|
} else {
|
|
9800
9800
|
if (!targetSelector && !isTeleportDisabled(props)) {
|
|
9801
|
-
warn(`Invalid Teleport target: ${targetSelector}`);
|
|
9801
|
+
warn$1(`Invalid Teleport target: ${targetSelector}`);
|
|
9802
9802
|
}
|
|
9803
9803
|
return targetSelector;
|
|
9804
9804
|
}
|
|
@@ -9834,7 +9834,7 @@ const TeleportImpl = {
|
|
|
9834
9834
|
namespace = "mathml";
|
|
9835
9835
|
}
|
|
9836
9836
|
} else if (!disabled) {
|
|
9837
|
-
warn("Invalid Teleport target on mount:", target, `(${typeof target})`);
|
|
9837
|
+
warn$1("Invalid Teleport target on mount:", target, `(${typeof target})`);
|
|
9838
9838
|
}
|
|
9839
9839
|
const mount = (container2, anchor2) => {
|
|
9840
9840
|
if (shapeFlag & 16) {
|
|
@@ -9921,7 +9921,7 @@ const TeleportImpl = {
|
|
|
9921
9921
|
0
|
|
9922
9922
|
);
|
|
9923
9923
|
} else {
|
|
9924
|
-
warn(
|
|
9924
|
+
warn$1(
|
|
9925
9925
|
"Invalid Teleport target on update:",
|
|
9926
9926
|
target,
|
|
9927
9927
|
`(${typeof target})`
|
|
@@ -10222,7 +10222,7 @@ function createBaseVNode(type, props = null, children = null, patchFlag = 0, dyn
|
|
|
10222
10222
|
vnode.shapeFlag |= isString(children) ? 8 : 16;
|
|
10223
10223
|
}
|
|
10224
10224
|
if (vnode.key !== vnode.key) {
|
|
10225
|
-
warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
|
|
10225
|
+
warn$1(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
|
|
10226
10226
|
}
|
|
10227
10227
|
if (isBlockTreeEnabled > 0 && // avoid a block node from tracking itself
|
|
10228
10228
|
!isBlockNode && // has current parent block
|
|
@@ -10245,7 +10245,7 @@ const createVNode = createVNodeWithArgsTransform ;
|
|
|
10245
10245
|
function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
|
|
10246
10246
|
if (!type || type === NULL_DYNAMIC_COMPONENT) {
|
|
10247
10247
|
if (!type) {
|
|
10248
|
-
warn(`Invalid vnode type when creating vnode: ${type}.`);
|
|
10248
|
+
warn$1(`Invalid vnode type when creating vnode: ${type}.`);
|
|
10249
10249
|
}
|
|
10250
10250
|
type = Comment;
|
|
10251
10251
|
}
|
|
@@ -10291,7 +10291,7 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
|
|
|
10291
10291
|
const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject(type) ? 4 : isFunction(type) ? 2 : 0;
|
|
10292
10292
|
if (shapeFlag & 4 && isProxy(type)) {
|
|
10293
10293
|
type = toRaw(type);
|
|
10294
|
-
warn(
|
|
10294
|
+
warn$1(
|
|
10295
10295
|
`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\`.`,
|
|
10296
10296
|
`
|
|
10297
10297
|
Component that was made reactive: `,
|
|
@@ -10592,7 +10592,7 @@ const isBuiltInTag = /* @__PURE__ */ makeMap("slot,component");
|
|
|
10592
10592
|
function validateComponentName(name, config) {
|
|
10593
10593
|
const appIsNativeTag = config.isNativeTag || NO;
|
|
10594
10594
|
if (isBuiltInTag(name) || appIsNativeTag(name)) {
|
|
10595
|
-
warn(
|
|
10595
|
+
warn$1(
|
|
10596
10596
|
"Do not use built-in or reserved HTML elements as component id: " + name
|
|
10597
10597
|
);
|
|
10598
10598
|
}
|
|
@@ -10631,7 +10631,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
10631
10631
|
}
|
|
10632
10632
|
}
|
|
10633
10633
|
if (Component.compilerOptions && isRuntimeOnly()) {
|
|
10634
|
-
warn(
|
|
10634
|
+
warn$1(
|
|
10635
10635
|
`"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.`
|
|
10636
10636
|
);
|
|
10637
10637
|
}
|
|
@@ -10666,7 +10666,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
10666
10666
|
instance.asyncDep = setupResult;
|
|
10667
10667
|
if (!instance.suspense) {
|
|
10668
10668
|
const name = (_a = Component.name) != null ? _a : "Anonymous";
|
|
10669
|
-
warn(
|
|
10669
|
+
warn$1(
|
|
10670
10670
|
`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.`
|
|
10671
10671
|
);
|
|
10672
10672
|
}
|
|
@@ -10685,7 +10685,7 @@ function handleSetupResult(instance, setupResult, isSSR) {
|
|
|
10685
10685
|
}
|
|
10686
10686
|
} else if (isObject(setupResult)) {
|
|
10687
10687
|
if (isVNode(setupResult)) {
|
|
10688
|
-
warn(
|
|
10688
|
+
warn$1(
|
|
10689
10689
|
`setup() should not return VNodes directly - return a render function instead.`
|
|
10690
10690
|
);
|
|
10691
10691
|
}
|
|
@@ -10697,7 +10697,7 @@ function handleSetupResult(instance, setupResult, isSSR) {
|
|
|
10697
10697
|
exposeSetupStateOnRenderContext(instance);
|
|
10698
10698
|
}
|
|
10699
10699
|
} else if (setupResult !== void 0) {
|
|
10700
|
-
warn(
|
|
10700
|
+
warn$1(
|
|
10701
10701
|
`setup() should return an object. Received: ${setupResult === null ? "null" : typeof setupResult}`
|
|
10702
10702
|
);
|
|
10703
10703
|
}
|
|
@@ -10770,12 +10770,12 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
|
10770
10770
|
}
|
|
10771
10771
|
if (!Component.render && instance.render === NOOP && !isSSR) {
|
|
10772
10772
|
if (!compile && Component.template) {
|
|
10773
|
-
warn(
|
|
10773
|
+
warn$1(
|
|
10774
10774
|
`Component provided template option but runtime compilation is not supported in this build of Vue.` + (` Use "vue.esm-browser.js" instead.` )
|
|
10775
10775
|
/* should not happen */
|
|
10776
10776
|
);
|
|
10777
10777
|
} else {
|
|
10778
|
-
warn(`Component is missing template or render function.`);
|
|
10778
|
+
warn$1(`Component is missing template or render function.`);
|
|
10779
10779
|
}
|
|
10780
10780
|
}
|
|
10781
10781
|
}
|
|
@@ -10789,11 +10789,11 @@ function getAttrsProxy(instance) {
|
|
|
10789
10789
|
return target[key];
|
|
10790
10790
|
},
|
|
10791
10791
|
set() {
|
|
10792
|
-
warn(`setupContext.attrs is readonly.`);
|
|
10792
|
+
warn$1(`setupContext.attrs is readonly.`);
|
|
10793
10793
|
return false;
|
|
10794
10794
|
},
|
|
10795
10795
|
deleteProperty() {
|
|
10796
|
-
warn(`setupContext.attrs is readonly.`);
|
|
10796
|
+
warn$1(`setupContext.attrs is readonly.`);
|
|
10797
10797
|
return false;
|
|
10798
10798
|
}
|
|
10799
10799
|
}
|
|
@@ -10811,7 +10811,7 @@ function createSetupContext(instance) {
|
|
|
10811
10811
|
const expose = (exposed) => {
|
|
10812
10812
|
{
|
|
10813
10813
|
if (instance.exposed) {
|
|
10814
|
-
warn(`expose() should be called only once per setup().`);
|
|
10814
|
+
warn$1(`expose() should be called only once per setup().`);
|
|
10815
10815
|
}
|
|
10816
10816
|
if (exposed != null) {
|
|
10817
10817
|
let exposedType = typeof exposed;
|
|
@@ -10823,7 +10823,7 @@ function createSetupContext(instance) {
|
|
|
10823
10823
|
}
|
|
10824
10824
|
}
|
|
10825
10825
|
if (exposedType !== "object") {
|
|
10826
|
-
warn(
|
|
10826
|
+
warn$1(
|
|
10827
10827
|
`expose() should be passed a plain object, received ${exposedType}.`
|
|
10828
10828
|
);
|
|
10829
10829
|
}
|
|
@@ -10923,7 +10923,7 @@ const useSSRContext = () => {
|
|
|
10923
10923
|
{
|
|
10924
10924
|
const ctx = inject(ssrContextKey);
|
|
10925
10925
|
if (!ctx) {
|
|
10926
|
-
warn(
|
|
10926
|
+
warn$1(
|
|
10927
10927
|
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
10928
10928
|
);
|
|
10929
10929
|
}
|
|
@@ -11132,8 +11132,11 @@ function isMemoSame(cached, memo) {
|
|
|
11132
11132
|
return true;
|
|
11133
11133
|
}
|
|
11134
11134
|
|
|
11135
|
-
const version = "3.4.0-rc.
|
|
11135
|
+
const version = "3.4.0-rc.2";
|
|
11136
|
+
const warn = warn$1 ;
|
|
11136
11137
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11138
|
+
const devtools = devtools$1 ;
|
|
11139
|
+
const setDevtoolsHook = setDevtoolsHook$1 ;
|
|
11137
11140
|
const ssrUtils = null;
|
|
11138
11141
|
const resolveFilter = resolveFilter$1 ;
|
|
11139
11142
|
const _compatUtils = {
|
|
@@ -12845,7 +12848,7 @@ var runtimeDom = /*#__PURE__*/Object.freeze({
|
|
|
12845
12848
|
defineProps: defineProps,
|
|
12846
12849
|
defineSSRCustomElement: defineSSRCustomElement,
|
|
12847
12850
|
defineSlots: defineSlots,
|
|
12848
|
-
|
|
12851
|
+
devtools: devtools,
|
|
12849
12852
|
effect: effect,
|
|
12850
12853
|
effectScope: effectScope,
|
|
12851
12854
|
getCurrentInstance: getCurrentInstance,
|