@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.global.js
CHANGED
|
@@ -348,7 +348,7 @@ var Vue = (function () {
|
|
|
348
348
|
return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
|
|
349
349
|
};
|
|
350
350
|
|
|
351
|
-
function warn$
|
|
351
|
+
function warn$2(msg, ...args) {
|
|
352
352
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
353
353
|
}
|
|
354
354
|
|
|
@@ -388,7 +388,7 @@ var Vue = (function () {
|
|
|
388
388
|
activeEffectScope = currentEffectScope;
|
|
389
389
|
}
|
|
390
390
|
} else {
|
|
391
|
-
warn$
|
|
391
|
+
warn$2(`cannot run an inactive effect scope.`);
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
/**
|
|
@@ -446,7 +446,7 @@ var Vue = (function () {
|
|
|
446
446
|
if (activeEffectScope) {
|
|
447
447
|
activeEffectScope.cleanups.push(fn);
|
|
448
448
|
} else {
|
|
449
|
-
warn$
|
|
449
|
+
warn$2(
|
|
450
450
|
`onScopeDispose() is called when there is no active effect scope to be associated with.`
|
|
451
451
|
);
|
|
452
452
|
}
|
|
@@ -894,7 +894,7 @@ var Vue = (function () {
|
|
|
894
894
|
}
|
|
895
895
|
set(target, key) {
|
|
896
896
|
{
|
|
897
|
-
warn$
|
|
897
|
+
warn$2(
|
|
898
898
|
`Set operation on key "${String(key)}" failed: target is readonly.`,
|
|
899
899
|
target
|
|
900
900
|
);
|
|
@@ -903,7 +903,7 @@ var Vue = (function () {
|
|
|
903
903
|
}
|
|
904
904
|
deleteProperty(target, key) {
|
|
905
905
|
{
|
|
906
|
-
warn$
|
|
906
|
+
warn$2(
|
|
907
907
|
`Delete operation on key "${String(key)}" failed: target is readonly.`,
|
|
908
908
|
target
|
|
909
909
|
);
|
|
@@ -1561,7 +1561,7 @@ var Vue = (function () {
|
|
|
1561
1561
|
function popWarningContext() {
|
|
1562
1562
|
stack$1.pop();
|
|
1563
1563
|
}
|
|
1564
|
-
function warn(msg, ...args) {
|
|
1564
|
+
function warn$1(msg, ...args) {
|
|
1565
1565
|
pauseTracking();
|
|
1566
1566
|
const instance = stack$1.length ? stack$1[stack$1.length - 1].component : null;
|
|
1567
1567
|
const appWarnHandler = instance && instance.appContext.config.warnHandler;
|
|
@@ -1662,9 +1662,9 @@ var Vue = (function () {
|
|
|
1662
1662
|
if (val === void 0) {
|
|
1663
1663
|
return;
|
|
1664
1664
|
} else if (typeof val !== "number") {
|
|
1665
|
-
warn(`${type} is not a valid number - got ${JSON.stringify(val)}.`);
|
|
1665
|
+
warn$1(`${type} is not a valid number - got ${JSON.stringify(val)}.`);
|
|
1666
1666
|
} else if (isNaN(val)) {
|
|
1667
|
-
warn(`${type} is NaN - the duration expression might be incorrect.`);
|
|
1667
|
+
warn$1(`${type} is NaN - the duration expression might be incorrect.`);
|
|
1668
1668
|
}
|
|
1669
1669
|
}
|
|
1670
1670
|
|
|
@@ -1792,7 +1792,7 @@ var Vue = (function () {
|
|
|
1792
1792
|
if (contextVNode) {
|
|
1793
1793
|
pushWarningContext(contextVNode);
|
|
1794
1794
|
}
|
|
1795
|
-
warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
|
|
1795
|
+
warn$1(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
|
|
1796
1796
|
if (contextVNode) {
|
|
1797
1797
|
popWarningContext();
|
|
1798
1798
|
}
|
|
@@ -2090,22 +2090,22 @@ var Vue = (function () {
|
|
|
2090
2090
|
};
|
|
2091
2091
|
}
|
|
2092
2092
|
|
|
2093
|
-
let devtools;
|
|
2093
|
+
let devtools$1;
|
|
2094
2094
|
let buffer = [];
|
|
2095
2095
|
let devtoolsNotInstalled = false;
|
|
2096
2096
|
function emit$2(event, ...args) {
|
|
2097
|
-
if (devtools) {
|
|
2098
|
-
devtools.emit(event, ...args);
|
|
2097
|
+
if (devtools$1) {
|
|
2098
|
+
devtools$1.emit(event, ...args);
|
|
2099
2099
|
} else if (!devtoolsNotInstalled) {
|
|
2100
2100
|
buffer.push({ event, args });
|
|
2101
2101
|
}
|
|
2102
2102
|
}
|
|
2103
|
-
function setDevtoolsHook(hook, target) {
|
|
2103
|
+
function setDevtoolsHook$1(hook, target) {
|
|
2104
2104
|
var _a, _b;
|
|
2105
|
-
devtools = hook;
|
|
2106
|
-
if (devtools) {
|
|
2107
|
-
devtools.enabled = true;
|
|
2108
|
-
buffer.forEach(({ event, args }) => devtools.emit(event, ...args));
|
|
2105
|
+
devtools$1 = hook;
|
|
2106
|
+
if (devtools$1) {
|
|
2107
|
+
devtools$1.enabled = true;
|
|
2108
|
+
buffer.forEach(({ event, args }) => devtools$1.emit(event, ...args));
|
|
2109
2109
|
buffer = [];
|
|
2110
2110
|
} else if (
|
|
2111
2111
|
// handle late devtools injection - only do this if we are in an actual
|
|
@@ -2117,10 +2117,10 @@ var Vue = (function () {
|
|
|
2117
2117
|
) {
|
|
2118
2118
|
const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
|
|
2119
2119
|
replay.push((newHook) => {
|
|
2120
|
-
setDevtoolsHook(newHook, target);
|
|
2120
|
+
setDevtoolsHook$1(newHook, target);
|
|
2121
2121
|
});
|
|
2122
2122
|
setTimeout(() => {
|
|
2123
|
-
if (!devtools) {
|
|
2123
|
+
if (!devtools$1) {
|
|
2124
2124
|
target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;
|
|
2125
2125
|
devtoolsNotInstalled = true;
|
|
2126
2126
|
buffer = [];
|
|
@@ -2150,8 +2150,8 @@ var Vue = (function () {
|
|
|
2150
2150
|
"component:removed" /* COMPONENT_REMOVED */
|
|
2151
2151
|
);
|
|
2152
2152
|
const devtoolsComponentRemoved = (component) => {
|
|
2153
|
-
if (devtools && typeof devtools.cleanupBuffer === "function" && // remove the component if it wasn't buffered
|
|
2154
|
-
!devtools.cleanupBuffer(component)) {
|
|
2153
|
+
if (devtools$1 && typeof devtools$1.cleanupBuffer === "function" && // remove the component if it wasn't buffered
|
|
2154
|
+
!devtools$1.cleanupBuffer(component)) {
|
|
2155
2155
|
_devtoolsComponentRemoved(component);
|
|
2156
2156
|
}
|
|
2157
2157
|
};
|
|
@@ -2450,12 +2450,12 @@ var Vue = (function () {
|
|
|
2450
2450
|
}
|
|
2451
2451
|
instanceWarned[componentDupKey] = true;
|
|
2452
2452
|
if (dupKey in warnCount) {
|
|
2453
|
-
warn(`(deprecation ${key}) (${++warnCount[dupKey] + 1})`);
|
|
2453
|
+
warn$1(`(deprecation ${key}) (${++warnCount[dupKey] + 1})`);
|
|
2454
2454
|
return;
|
|
2455
2455
|
}
|
|
2456
2456
|
warnCount[dupKey] = 0;
|
|
2457
2457
|
const { message, link } = deprecationData$1[key];
|
|
2458
|
-
warn(
|
|
2458
|
+
warn$1(
|
|
2459
2459
|
`(deprecation ${key}) ${typeof message === "function" ? message(...args) : message}${link ? `
|
|
2460
2460
|
Details: ${link}` : ``}`
|
|
2461
2461
|
);
|
|
@@ -2485,19 +2485,19 @@ var Vue = (function () {
|
|
|
2485
2485
|
if (key !== "MODE" && !(key in deprecationData$1) && !(key in warnedInvalidKeys)) {
|
|
2486
2486
|
if (key.startsWith("COMPILER_")) {
|
|
2487
2487
|
if (isRuntimeOnly()) {
|
|
2488
|
-
warn(
|
|
2488
|
+
warn$1(
|
|
2489
2489
|
`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.
|
|
2490
2490
|
Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
2491
2491
|
);
|
|
2492
2492
|
}
|
|
2493
2493
|
} else {
|
|
2494
|
-
warn(`Invalid deprecation config "${key}".`);
|
|
2494
|
+
warn$1(`Invalid deprecation config "${key}".`);
|
|
2495
2495
|
}
|
|
2496
2496
|
warnedInvalidKeys[key] = true;
|
|
2497
2497
|
}
|
|
2498
2498
|
}
|
|
2499
2499
|
if (instance && config["OPTIONS_DATA_MERGE"] != null) {
|
|
2500
|
-
warn(
|
|
2500
|
+
warn$1(
|
|
2501
2501
|
`Deprecation config "${"OPTIONS_DATA_MERGE"}" can only be configured globally.`
|
|
2502
2502
|
);
|
|
2503
2503
|
}
|
|
@@ -2687,7 +2687,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
2687
2687
|
if (emitsOptions) {
|
|
2688
2688
|
if (!(event in emitsOptions) && !(event.startsWith("hook:") || event.startsWith(compatModelEventPrefix))) {
|
|
2689
2689
|
if (!propsOptions || !(toHandlerKey(event) in propsOptions)) {
|
|
2690
|
-
warn(
|
|
2690
|
+
warn$1(
|
|
2691
2691
|
`Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(event)}" prop.`
|
|
2692
2692
|
);
|
|
2693
2693
|
}
|
|
@@ -2696,7 +2696,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
2696
2696
|
if (isFunction(validator)) {
|
|
2697
2697
|
const isValid = validator(...rawArgs);
|
|
2698
2698
|
if (!isValid) {
|
|
2699
|
-
warn(
|
|
2699
|
+
warn$1(
|
|
2700
2700
|
`Invalid event arguments: event validation failed for event "${event}".`
|
|
2701
2701
|
);
|
|
2702
2702
|
}
|
|
@@ -2723,7 +2723,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
2723
2723
|
{
|
|
2724
2724
|
const lowerCaseEvent = event.toLowerCase();
|
|
2725
2725
|
if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) {
|
|
2726
|
-
warn(
|
|
2726
|
+
warn$1(
|
|
2727
2727
|
`Event "${lowerCaseEvent}" is emitted in component ${formatComponentName(
|
|
2728
2728
|
instance,
|
|
2729
2729
|
instance.type
|
|
@@ -2904,7 +2904,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
2904
2904
|
const proxyToUse = withProxy || proxy;
|
|
2905
2905
|
const thisProxy = setupState.__isScriptSetup ? new Proxy(proxyToUse, {
|
|
2906
2906
|
get(target, key, receiver) {
|
|
2907
|
-
warn(
|
|
2907
|
+
warn$1(
|
|
2908
2908
|
`Property '${String(
|
|
2909
2909
|
key
|
|
2910
2910
|
)}' was accessed via 'this'. Avoid using 'this' in templates.`
|
|
@@ -2985,12 +2985,12 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
2985
2985
|
}
|
|
2986
2986
|
}
|
|
2987
2987
|
if (extraAttrs.length) {
|
|
2988
|
-
warn(
|
|
2988
|
+
warn$1(
|
|
2989
2989
|
`Extraneous non-props attributes (${extraAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`
|
|
2990
2990
|
);
|
|
2991
2991
|
}
|
|
2992
2992
|
if (eventAttrs.length) {
|
|
2993
|
-
warn(
|
|
2993
|
+
warn$1(
|
|
2994
2994
|
`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.`
|
|
2995
2995
|
);
|
|
2996
2996
|
}
|
|
@@ -3015,7 +3015,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3015
3015
|
}
|
|
3016
3016
|
if (vnode.dirs) {
|
|
3017
3017
|
if (!isElementRoot(root)) {
|
|
3018
|
-
warn(
|
|
3018
|
+
warn$1(
|
|
3019
3019
|
`Runtime directive used on component with non-element root node. The directives will not function as intended.`
|
|
3020
3020
|
);
|
|
3021
3021
|
}
|
|
@@ -3024,7 +3024,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3024
3024
|
}
|
|
3025
3025
|
if (vnode.transition) {
|
|
3026
3026
|
if (!isElementRoot(root)) {
|
|
3027
|
-
warn(
|
|
3027
|
+
warn$1(
|
|
3028
3028
|
`Component inside <Transition> renders non-element root node that cannot be animated.`
|
|
3029
3029
|
);
|
|
3030
3030
|
}
|
|
@@ -3221,11 +3221,11 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3221
3221
|
if (warnMissing && !res) {
|
|
3222
3222
|
const extra = type === COMPONENTS ? `
|
|
3223
3223
|
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
|
|
3224
|
-
warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
3224
|
+
warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
3225
3225
|
}
|
|
3226
3226
|
return res;
|
|
3227
3227
|
} else {
|
|
3228
|
-
warn(
|
|
3228
|
+
warn$1(
|
|
3229
3229
|
`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
|
|
3230
3230
|
);
|
|
3231
3231
|
}
|
|
@@ -3781,7 +3781,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3781
3781
|
if (isArray(s)) {
|
|
3782
3782
|
const singleChild = filterSingleRoot(s);
|
|
3783
3783
|
if (!singleChild && s.filter((child) => child !== NULL_DYNAMIC_COMPONENT).length > 0) {
|
|
3784
|
-
warn(`<Suspense> slots expect a single root node.`);
|
|
3784
|
+
warn$1(`<Suspense> slots expect a single root node.`);
|
|
3785
3785
|
}
|
|
3786
3786
|
s = singleChild;
|
|
3787
3787
|
}
|
|
@@ -3874,7 +3874,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3874
3874
|
const INITIAL_WATCHER_VALUE = {};
|
|
3875
3875
|
function watch(source, cb, options) {
|
|
3876
3876
|
if (!isFunction(cb)) {
|
|
3877
|
-
warn(
|
|
3877
|
+
warn$1(
|
|
3878
3878
|
`\`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.`
|
|
3879
3879
|
);
|
|
3880
3880
|
}
|
|
@@ -3891,23 +3891,23 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3891
3891
|
}
|
|
3892
3892
|
if (!cb) {
|
|
3893
3893
|
if (immediate !== void 0) {
|
|
3894
|
-
warn(
|
|
3894
|
+
warn$1(
|
|
3895
3895
|
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3896
3896
|
);
|
|
3897
3897
|
}
|
|
3898
3898
|
if (deep !== void 0) {
|
|
3899
|
-
warn(
|
|
3899
|
+
warn$1(
|
|
3900
3900
|
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3901
3901
|
);
|
|
3902
3902
|
}
|
|
3903
3903
|
if (once !== void 0) {
|
|
3904
|
-
warn(
|
|
3904
|
+
warn$1(
|
|
3905
3905
|
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3906
3906
|
);
|
|
3907
3907
|
}
|
|
3908
3908
|
}
|
|
3909
3909
|
const warnInvalidSource = (s) => {
|
|
3910
|
-
warn(
|
|
3910
|
+
warn$1(
|
|
3911
3911
|
`Invalid watch source: `,
|
|
3912
3912
|
s,
|
|
3913
3913
|
`A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`
|
|
@@ -4102,13 +4102,13 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
4102
4102
|
|
|
4103
4103
|
function validateDirectiveName(name) {
|
|
4104
4104
|
if (isBuiltInDirective(name)) {
|
|
4105
|
-
warn("Do not use built-in directive ids as custom directive id: " + name);
|
|
4105
|
+
warn$1("Do not use built-in directive ids as custom directive id: " + name);
|
|
4106
4106
|
}
|
|
4107
4107
|
}
|
|
4108
4108
|
function withDirectives(vnode, directives) {
|
|
4109
4109
|
const internalInstance = currentRenderingInstance;
|
|
4110
4110
|
if (internalInstance === null) {
|
|
4111
|
-
warn(`withDirectives can only be used inside render functions.`);
|
|
4111
|
+
warn$1(`withDirectives can only be used inside render functions.`);
|
|
4112
4112
|
return vnode;
|
|
4113
4113
|
}
|
|
4114
4114
|
const instance = getExposeProxy(internalInstance) || internalInstance.proxy;
|
|
@@ -4218,7 +4218,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
4218
4218
|
for (const c of children) {
|
|
4219
4219
|
if (c.type !== Comment) {
|
|
4220
4220
|
if (hasFound) {
|
|
4221
|
-
warn(
|
|
4221
|
+
warn$1(
|
|
4222
4222
|
"<transition> can only be used on a single element or component. Use <transition-group> for lists."
|
|
4223
4223
|
);
|
|
4224
4224
|
break;
|
|
@@ -4231,7 +4231,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
4231
4231
|
const rawProps = toRaw(props);
|
|
4232
4232
|
const { mode } = rawProps;
|
|
4233
4233
|
if (mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
|
|
4234
|
-
warn(`invalid <transition> mode: ${mode}`);
|
|
4234
|
+
warn$1(`invalid <transition> mode: ${mode}`);
|
|
4235
4235
|
}
|
|
4236
4236
|
if (state.isLeaving) {
|
|
4237
4237
|
return emptyPlaceholder(child);
|
|
@@ -4549,7 +4549,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
4549
4549
|
return pendingRequest;
|
|
4550
4550
|
}
|
|
4551
4551
|
if (!comp) {
|
|
4552
|
-
warn(
|
|
4552
|
+
warn$1(
|
|
4553
4553
|
`Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.`
|
|
4554
4554
|
);
|
|
4555
4555
|
}
|
|
@@ -4783,7 +4783,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
4783
4783
|
const rawVNode = children[0];
|
|
4784
4784
|
if (children.length > 1) {
|
|
4785
4785
|
{
|
|
4786
|
-
warn(`KeepAlive should contain exactly one component child.`);
|
|
4786
|
+
warn$1(`KeepAlive should contain exactly one component child.`);
|
|
4787
4787
|
}
|
|
4788
4788
|
current = null;
|
|
4789
4789
|
return children;
|
|
@@ -4915,7 +4915,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
4915
4915
|
return wrappedHook;
|
|
4916
4916
|
} else {
|
|
4917
4917
|
const apiName = toHandlerKey(ErrorTypeStrings$1[type].replace(/ hook$/, ""));
|
|
4918
|
-
warn(
|
|
4918
|
+
warn$1(
|
|
4919
4919
|
`${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.` )
|
|
4920
4920
|
);
|
|
4921
4921
|
}
|
|
@@ -5237,7 +5237,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5237
5237
|
}
|
|
5238
5238
|
} else if (typeof source === "number") {
|
|
5239
5239
|
if (!Number.isInteger(source)) {
|
|
5240
|
-
warn(`The v-for range expect an integer value but got ${source}.`);
|
|
5240
|
+
warn$1(`The v-for range expect an integer value but got ${source}.`);
|
|
5241
5241
|
}
|
|
5242
5242
|
ret = new Array(source);
|
|
5243
5243
|
for (let i = 0; i < source; i++) {
|
|
@@ -5293,7 +5293,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5293
5293
|
}
|
|
5294
5294
|
let slot = slots[name];
|
|
5295
5295
|
if (slot && slot.length > 1) {
|
|
5296
|
-
warn(
|
|
5296
|
+
warn$1(
|
|
5297
5297
|
`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.`
|
|
5298
5298
|
);
|
|
5299
5299
|
slot = () => [];
|
|
@@ -5336,7 +5336,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5336
5336
|
function toHandlers(obj, preserveCaseIfNecessary) {
|
|
5337
5337
|
const ret = {};
|
|
5338
5338
|
if (!isObject(obj)) {
|
|
5339
|
-
warn(`v-on with no argument expects an object value.`);
|
|
5339
|
+
warn$1(`v-on with no argument expects an object value.`);
|
|
5340
5340
|
return ret;
|
|
5341
5341
|
}
|
|
5342
5342
|
for (const key in obj) {
|
|
@@ -5665,13 +5665,13 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5665
5665
|
// to infinite warning loop
|
|
5666
5666
|
key.indexOf("__v") !== 0)) {
|
|
5667
5667
|
if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) {
|
|
5668
|
-
warn(
|
|
5668
|
+
warn$1(
|
|
5669
5669
|
`Property ${JSON.stringify(
|
|
5670
5670
|
key
|
|
5671
5671
|
)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
|
|
5672
5672
|
);
|
|
5673
5673
|
} else if (instance === currentRenderingInstance) {
|
|
5674
|
-
warn(
|
|
5674
|
+
warn$1(
|
|
5675
5675
|
`Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.`
|
|
5676
5676
|
);
|
|
5677
5677
|
}
|
|
@@ -5683,17 +5683,17 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5683
5683
|
setupState[key] = value;
|
|
5684
5684
|
return true;
|
|
5685
5685
|
} else if (setupState.__isScriptSetup && hasOwn(setupState, key)) {
|
|
5686
|
-
warn(`Cannot mutate <script setup> binding "${key}" from Options API.`);
|
|
5686
|
+
warn$1(`Cannot mutate <script setup> binding "${key}" from Options API.`);
|
|
5687
5687
|
return false;
|
|
5688
5688
|
} else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
|
|
5689
5689
|
data[key] = value;
|
|
5690
5690
|
return true;
|
|
5691
5691
|
} else if (hasOwn(instance.props, key)) {
|
|
5692
|
-
warn(`Attempting to mutate prop "${key}". Props are readonly.`);
|
|
5692
|
+
warn$1(`Attempting to mutate prop "${key}". Props are readonly.`);
|
|
5693
5693
|
return false;
|
|
5694
5694
|
}
|
|
5695
5695
|
if (key[0] === "$" && key.slice(1) in instance) {
|
|
5696
|
-
warn(
|
|
5696
|
+
warn$1(
|
|
5697
5697
|
`Attempting to mutate public property "${key}". Properties starting with $ are reserved and readonly.`
|
|
5698
5698
|
);
|
|
5699
5699
|
return false;
|
|
@@ -5727,7 +5727,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5727
5727
|
};
|
|
5728
5728
|
{
|
|
5729
5729
|
PublicInstanceProxyHandlers.ownKeys = (target) => {
|
|
5730
|
-
warn(
|
|
5730
|
+
warn$1(
|
|
5731
5731
|
`Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.`
|
|
5732
5732
|
);
|
|
5733
5733
|
return Reflect.ownKeys(target);
|
|
@@ -5746,7 +5746,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5746
5746
|
has(_, key) {
|
|
5747
5747
|
const has = key[0] !== "_" && !isGloballyAllowed(key);
|
|
5748
5748
|
if (!has && PublicInstanceProxyHandlers.has(_, key)) {
|
|
5749
|
-
warn(
|
|
5749
|
+
warn$1(
|
|
5750
5750
|
`Property ${JSON.stringify(
|
|
5751
5751
|
key
|
|
5752
5752
|
)} should not start with _ which is a reserved prefix for Vue internals.`
|
|
@@ -5796,7 +5796,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5796
5796
|
Object.keys(toRaw(setupState)).forEach((key) => {
|
|
5797
5797
|
if (!setupState.__isScriptSetup) {
|
|
5798
5798
|
if (isReservedPrefix(key[0])) {
|
|
5799
|
-
warn(
|
|
5799
|
+
warn$1(
|
|
5800
5800
|
`setup() return property ${JSON.stringify(
|
|
5801
5801
|
key
|
|
5802
5802
|
)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`
|
|
@@ -5827,7 +5827,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5827
5827
|
return to;
|
|
5828
5828
|
}
|
|
5829
5829
|
|
|
5830
|
-
const warnRuntimeUsage = (method) => warn(
|
|
5830
|
+
const warnRuntimeUsage = (method) => warn$1(
|
|
5831
5831
|
`${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.`
|
|
5832
5832
|
);
|
|
5833
5833
|
function defineProps() {
|
|
@@ -5878,11 +5878,11 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5878
5878
|
function useModel(props, name) {
|
|
5879
5879
|
const i = getCurrentInstance();
|
|
5880
5880
|
if (!i) {
|
|
5881
|
-
warn(`useModel() called without active instance.`);
|
|
5881
|
+
warn$1(`useModel() called without active instance.`);
|
|
5882
5882
|
return ref();
|
|
5883
5883
|
}
|
|
5884
5884
|
if (!i.propsOptions[0][name]) {
|
|
5885
|
-
warn(`useModel() called with prop "${name}" which is not declared.`);
|
|
5885
|
+
warn$1(`useModel() called with prop "${name}" which is not declared.`);
|
|
5886
5886
|
return ref();
|
|
5887
5887
|
}
|
|
5888
5888
|
return customRef((track, trigger) => {
|
|
@@ -5913,7 +5913,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5913
5913
|
function getContext() {
|
|
5914
5914
|
const i = getCurrentInstance();
|
|
5915
5915
|
if (!i) {
|
|
5916
|
-
warn(`useContext() called without active instance.`);
|
|
5916
|
+
warn$1(`useContext() called without active instance.`);
|
|
5917
5917
|
}
|
|
5918
5918
|
return i.setupContext || (i.setupContext = createSetupContext(i));
|
|
5919
5919
|
}
|
|
@@ -5938,7 +5938,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5938
5938
|
} else if (opt === null) {
|
|
5939
5939
|
opt = props[key] = { default: defaults[key] };
|
|
5940
5940
|
} else {
|
|
5941
|
-
warn(`props default key "${key}" has no corresponding declaration.`);
|
|
5941
|
+
warn$1(`props default key "${key}" has no corresponding declaration.`);
|
|
5942
5942
|
}
|
|
5943
5943
|
if (opt && defaults[`__skip_${key}`]) {
|
|
5944
5944
|
opt.skipFactory = true;
|
|
@@ -5968,7 +5968,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5968
5968
|
function withAsyncContext(getAwaitable) {
|
|
5969
5969
|
const ctx = getCurrentInstance();
|
|
5970
5970
|
if (!ctx) {
|
|
5971
|
-
warn(
|
|
5971
|
+
warn$1(
|
|
5972
5972
|
`withAsyncContext called without active current instance. This is likely a bug.`
|
|
5973
5973
|
);
|
|
5974
5974
|
}
|
|
@@ -5987,7 +5987,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5987
5987
|
const cache = /* @__PURE__ */ Object.create(null);
|
|
5988
5988
|
return (type, key) => {
|
|
5989
5989
|
if (cache[key]) {
|
|
5990
|
-
warn(`${type} property "${key}" is already defined in ${cache[key]}.`);
|
|
5990
|
+
warn$1(`${type} property "${key}" is already defined in ${cache[key]}.`);
|
|
5991
5991
|
} else {
|
|
5992
5992
|
cache[key] = type;
|
|
5993
5993
|
}
|
|
@@ -6063,7 +6063,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6063
6063
|
checkDuplicateProperties("Methods" /* METHODS */, key);
|
|
6064
6064
|
}
|
|
6065
6065
|
} else {
|
|
6066
|
-
warn(
|
|
6066
|
+
warn$1(
|
|
6067
6067
|
`Method "${key}" has type "${typeof methodHandler}" in the component definition. Did you reference the function correctly?`
|
|
6068
6068
|
);
|
|
6069
6069
|
}
|
|
@@ -6071,18 +6071,18 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6071
6071
|
}
|
|
6072
6072
|
if (dataOptions) {
|
|
6073
6073
|
if (!isFunction(dataOptions)) {
|
|
6074
|
-
warn(
|
|
6074
|
+
warn$1(
|
|
6075
6075
|
`The data option must be a function. Plain object usage is no longer supported.`
|
|
6076
6076
|
);
|
|
6077
6077
|
}
|
|
6078
6078
|
const data = dataOptions.call(publicThis, publicThis);
|
|
6079
6079
|
if (isPromise(data)) {
|
|
6080
|
-
warn(
|
|
6080
|
+
warn$1(
|
|
6081
6081
|
`data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>.`
|
|
6082
6082
|
);
|
|
6083
6083
|
}
|
|
6084
6084
|
if (!isObject(data)) {
|
|
6085
|
-
warn(`data() should return an object.`);
|
|
6085
|
+
warn$1(`data() should return an object.`);
|
|
6086
6086
|
} else {
|
|
6087
6087
|
instance.data = reactive(data);
|
|
6088
6088
|
{
|
|
@@ -6106,10 +6106,10 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6106
6106
|
const opt = computedOptions[key];
|
|
6107
6107
|
const get = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP;
|
|
6108
6108
|
if (get === NOOP) {
|
|
6109
|
-
warn(`Computed property "${key}" has no getter.`);
|
|
6109
|
+
warn$1(`Computed property "${key}" has no getter.`);
|
|
6110
6110
|
}
|
|
6111
6111
|
const set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : () => {
|
|
6112
|
-
warn(
|
|
6112
|
+
warn$1(
|
|
6113
6113
|
`Write operation failed: computed property "${key}" is readonly.`
|
|
6114
6114
|
);
|
|
6115
6115
|
} ;
|
|
@@ -6246,7 +6246,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6246
6246
|
if (isFunction(handler)) {
|
|
6247
6247
|
watch(getter, handler);
|
|
6248
6248
|
} else {
|
|
6249
|
-
warn(`Invalid watch handler specified by key "${raw}"`, handler);
|
|
6249
|
+
warn$1(`Invalid watch handler specified by key "${raw}"`, handler);
|
|
6250
6250
|
}
|
|
6251
6251
|
} else if (isFunction(raw)) {
|
|
6252
6252
|
watch(getter, raw.bind(publicThis));
|
|
@@ -6258,11 +6258,11 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6258
6258
|
if (isFunction(handler)) {
|
|
6259
6259
|
watch(getter, handler, raw);
|
|
6260
6260
|
} else {
|
|
6261
|
-
warn(`Invalid watch handler specified by key "${raw.handler}"`, handler);
|
|
6261
|
+
warn$1(`Invalid watch handler specified by key "${raw.handler}"`, handler);
|
|
6262
6262
|
}
|
|
6263
6263
|
}
|
|
6264
6264
|
} else {
|
|
6265
|
-
warn(`Invalid watch option: "${key}"`, raw);
|
|
6265
|
+
warn$1(`Invalid watch option: "${key}"`, raw);
|
|
6266
6266
|
}
|
|
6267
6267
|
}
|
|
6268
6268
|
function resolveMergedOptions(instance) {
|
|
@@ -6314,7 +6314,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6314
6314
|
}
|
|
6315
6315
|
for (const key in from) {
|
|
6316
6316
|
if (asMixin && key === "expose") {
|
|
6317
|
-
warn(
|
|
6317
|
+
warn$1(
|
|
6318
6318
|
`"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.`
|
|
6319
6319
|
);
|
|
6320
6320
|
} else {
|
|
@@ -6482,7 +6482,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6482
6482
|
return vm;
|
|
6483
6483
|
}
|
|
6484
6484
|
}
|
|
6485
|
-
Vue.version = `2.6.14-compat:${"3.4.0-
|
|
6485
|
+
Vue.version = `2.6.14-compat:${"3.4.0-rc.2"}`;
|
|
6486
6486
|
Vue.config = singletonApp.config;
|
|
6487
6487
|
Vue.use = (p, ...options) => {
|
|
6488
6488
|
if (p && isFunction(p.install)) {
|
|
@@ -6583,7 +6583,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6583
6583
|
}
|
|
6584
6584
|
};
|
|
6585
6585
|
const util = {
|
|
6586
|
-
warn: warn ,
|
|
6586
|
+
warn: warn$1 ,
|
|
6587
6587
|
extend,
|
|
6588
6588
|
mergeOptions: (parent, child, vm) => mergeOptions(
|
|
6589
6589
|
parent,
|
|
@@ -6620,7 +6620,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6620
6620
|
return context.filters[name];
|
|
6621
6621
|
}
|
|
6622
6622
|
if (context.filters[name]) {
|
|
6623
|
-
warn(`Filter "${name}" has already been registered.`);
|
|
6623
|
+
warn$1(`Filter "${name}" has already been registered.`);
|
|
6624
6624
|
}
|
|
6625
6625
|
context.filters[name] = filter;
|
|
6626
6626
|
return app;
|
|
@@ -6711,14 +6711,14 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6711
6711
|
vnode.isCompatRoot = true;
|
|
6712
6712
|
instance.ctx._compat_mount = (selectorOrEl) => {
|
|
6713
6713
|
if (isMounted) {
|
|
6714
|
-
warn(`Root instance is already mounted.`);
|
|
6714
|
+
warn$1(`Root instance is already mounted.`);
|
|
6715
6715
|
return;
|
|
6716
6716
|
}
|
|
6717
6717
|
let container;
|
|
6718
6718
|
if (typeof selectorOrEl === "string") {
|
|
6719
6719
|
const result = document.querySelector(selectorOrEl);
|
|
6720
6720
|
if (!result) {
|
|
6721
|
-
warn(
|
|
6721
|
+
warn$1(
|
|
6722
6722
|
`Failed to mount root instance: selector "${selectorOrEl}" returned null.`
|
|
6723
6723
|
);
|
|
6724
6724
|
return;
|
|
@@ -6883,7 +6883,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6883
6883
|
rootComponent = extend({}, rootComponent);
|
|
6884
6884
|
}
|
|
6885
6885
|
if (rootProps != null && !isObject(rootProps)) {
|
|
6886
|
-
warn(`root props passed to app.mount() must be an object.`);
|
|
6886
|
+
warn$1(`root props passed to app.mount() must be an object.`);
|
|
6887
6887
|
rootProps = null;
|
|
6888
6888
|
}
|
|
6889
6889
|
const context = createAppContext();
|
|
@@ -6902,14 +6902,14 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6902
6902
|
},
|
|
6903
6903
|
set config(v) {
|
|
6904
6904
|
{
|
|
6905
|
-
warn(
|
|
6905
|
+
warn$1(
|
|
6906
6906
|
`app.config cannot be replaced. Modify individual options instead.`
|
|
6907
6907
|
);
|
|
6908
6908
|
}
|
|
6909
6909
|
},
|
|
6910
6910
|
use(plugin, ...options) {
|
|
6911
6911
|
if (installedPlugins.has(plugin)) {
|
|
6912
|
-
warn(`Plugin has already been applied to target app.`);
|
|
6912
|
+
warn$1(`Plugin has already been applied to target app.`);
|
|
6913
6913
|
} else if (plugin && isFunction(plugin.install)) {
|
|
6914
6914
|
installedPlugins.add(plugin);
|
|
6915
6915
|
plugin.install(app, ...options);
|
|
@@ -6917,7 +6917,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6917
6917
|
installedPlugins.add(plugin);
|
|
6918
6918
|
plugin(app, ...options);
|
|
6919
6919
|
} else {
|
|
6920
|
-
warn(
|
|
6920
|
+
warn$1(
|
|
6921
6921
|
`A plugin must either be a function or an object with an "install" function.`
|
|
6922
6922
|
);
|
|
6923
6923
|
}
|
|
@@ -6928,7 +6928,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6928
6928
|
if (!context.mixins.includes(mixin)) {
|
|
6929
6929
|
context.mixins.push(mixin);
|
|
6930
6930
|
} else {
|
|
6931
|
-
warn(
|
|
6931
|
+
warn$1(
|
|
6932
6932
|
"Mixin has already been applied to target app" + (mixin.name ? `: ${mixin.name}` : "")
|
|
6933
6933
|
);
|
|
6934
6934
|
}
|
|
@@ -6943,7 +6943,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6943
6943
|
return context.components[name];
|
|
6944
6944
|
}
|
|
6945
6945
|
if (context.components[name]) {
|
|
6946
|
-
warn(`Component "${name}" has already been registered in target app.`);
|
|
6946
|
+
warn$1(`Component "${name}" has already been registered in target app.`);
|
|
6947
6947
|
}
|
|
6948
6948
|
context.components[name] = component;
|
|
6949
6949
|
return app;
|
|
@@ -6956,7 +6956,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6956
6956
|
return context.directives[name];
|
|
6957
6957
|
}
|
|
6958
6958
|
if (context.directives[name]) {
|
|
6959
|
-
warn(`Directive "${name}" has already been registered in target app.`);
|
|
6959
|
+
warn$1(`Directive "${name}" has already been registered in target app.`);
|
|
6960
6960
|
}
|
|
6961
6961
|
context.directives[name] = directive;
|
|
6962
6962
|
return app;
|
|
@@ -6964,7 +6964,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6964
6964
|
mount(rootContainer, isHydrate, namespace) {
|
|
6965
6965
|
if (!isMounted) {
|
|
6966
6966
|
if (rootContainer.__vue_app__) {
|
|
6967
|
-
warn(
|
|
6967
|
+
warn$1(
|
|
6968
6968
|
`There is already an app instance mounted on the host container.
|
|
6969
6969
|
If you want to mount another app on the same host container, you need to unmount the previous app by calling \`app.unmount()\` first.`
|
|
6970
6970
|
);
|
|
@@ -6999,7 +6999,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6999
6999
|
}
|
|
7000
7000
|
return getExposeProxy(vnode.component) || vnode.component.proxy;
|
|
7001
7001
|
} else {
|
|
7002
|
-
warn(
|
|
7002
|
+
warn$1(
|
|
7003
7003
|
`App has already been mounted.
|
|
7004
7004
|
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)\``
|
|
7005
7005
|
);
|
|
@@ -7014,12 +7014,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7014
7014
|
}
|
|
7015
7015
|
delete app._container.__vue_app__;
|
|
7016
7016
|
} else {
|
|
7017
|
-
warn(`Cannot unmount an app that is not mounted.`);
|
|
7017
|
+
warn$1(`Cannot unmount an app that is not mounted.`);
|
|
7018
7018
|
}
|
|
7019
7019
|
},
|
|
7020
7020
|
provide(key, value) {
|
|
7021
7021
|
if (key in context.provides) {
|
|
7022
|
-
warn(
|
|
7022
|
+
warn$1(
|
|
7023
7023
|
`App already provides property with key "${String(key)}". It will be overwritten with the new value.`
|
|
7024
7024
|
);
|
|
7025
7025
|
}
|
|
@@ -7046,7 +7046,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7046
7046
|
function provide(key, value) {
|
|
7047
7047
|
if (!currentInstance) {
|
|
7048
7048
|
{
|
|
7049
|
-
warn(`provide() can only be used inside setup().`);
|
|
7049
|
+
warn$1(`provide() can only be used inside setup().`);
|
|
7050
7050
|
}
|
|
7051
7051
|
} else {
|
|
7052
7052
|
let provides = currentInstance.provides;
|
|
@@ -7066,10 +7066,10 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7066
7066
|
} else if (arguments.length > 1) {
|
|
7067
7067
|
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
7068
7068
|
} else {
|
|
7069
|
-
warn(`injection "${String(key)}" not found.`);
|
|
7069
|
+
warn$1(`injection "${String(key)}" not found.`);
|
|
7070
7070
|
}
|
|
7071
7071
|
} else {
|
|
7072
|
-
warn(`inject() can only be used inside setup() or functional components.`);
|
|
7072
|
+
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
7073
7073
|
}
|
|
7074
7074
|
}
|
|
7075
7075
|
function hasInjectionContext() {
|
|
@@ -7385,7 +7385,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7385
7385
|
if (isArray(raw)) {
|
|
7386
7386
|
for (let i = 0; i < raw.length; i++) {
|
|
7387
7387
|
if (!isString(raw[i])) {
|
|
7388
|
-
warn(`props must be strings when using array syntax.`, raw[i]);
|
|
7388
|
+
warn$1(`props must be strings when using array syntax.`, raw[i]);
|
|
7389
7389
|
}
|
|
7390
7390
|
const normalizedKey = camelize(raw[i]);
|
|
7391
7391
|
if (validatePropName(normalizedKey)) {
|
|
@@ -7394,7 +7394,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7394
7394
|
}
|
|
7395
7395
|
} else if (raw) {
|
|
7396
7396
|
if (!isObject(raw)) {
|
|
7397
|
-
warn(`invalid props options`, raw);
|
|
7397
|
+
warn$1(`invalid props options`, raw);
|
|
7398
7398
|
}
|
|
7399
7399
|
for (const key in raw) {
|
|
7400
7400
|
const normalizedKey = camelize(key);
|
|
@@ -7423,7 +7423,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7423
7423
|
if (key[0] !== "$") {
|
|
7424
7424
|
return true;
|
|
7425
7425
|
} else {
|
|
7426
|
-
warn(`Invalid prop name: "${key}" is a reserved property.`);
|
|
7426
|
+
warn$1(`Invalid prop name: "${key}" is a reserved property.`);
|
|
7427
7427
|
}
|
|
7428
7428
|
return false;
|
|
7429
7429
|
}
|
|
@@ -7461,7 +7461,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7461
7461
|
function validateProp(name, value, prop, props, isAbsent) {
|
|
7462
7462
|
const { type, required, validator, skipCheck } = prop;
|
|
7463
7463
|
if (required && isAbsent) {
|
|
7464
|
-
warn('Missing required prop: "' + name + '"');
|
|
7464
|
+
warn$1('Missing required prop: "' + name + '"');
|
|
7465
7465
|
return;
|
|
7466
7466
|
}
|
|
7467
7467
|
if (value == null && !required) {
|
|
@@ -7477,12 +7477,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7477
7477
|
isValid = valid;
|
|
7478
7478
|
}
|
|
7479
7479
|
if (!isValid) {
|
|
7480
|
-
warn(getInvalidTypeMessage(name, value, expectedTypes));
|
|
7480
|
+
warn$1(getInvalidTypeMessage(name, value, expectedTypes));
|
|
7481
7481
|
return;
|
|
7482
7482
|
}
|
|
7483
7483
|
}
|
|
7484
7484
|
if (validator && !validator(value, props)) {
|
|
7485
|
-
warn('Invalid prop: custom validator check failed for prop "' + name + '".');
|
|
7485
|
+
warn$1('Invalid prop: custom validator check failed for prop "' + name + '".');
|
|
7486
7486
|
}
|
|
7487
7487
|
}
|
|
7488
7488
|
const isSimpleType = /* @__PURE__ */ makeMap(
|
|
@@ -7554,7 +7554,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7554
7554
|
}
|
|
7555
7555
|
const normalized = withCtx((...args) => {
|
|
7556
7556
|
if (currentInstance) {
|
|
7557
|
-
warn(
|
|
7557
|
+
warn$1(
|
|
7558
7558
|
`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.`
|
|
7559
7559
|
);
|
|
7560
7560
|
}
|
|
@@ -7573,7 +7573,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7573
7573
|
slots[key] = normalizeSlot(key, value, ctx);
|
|
7574
7574
|
} else if (value != null) {
|
|
7575
7575
|
if (!isCompatEnabled$1("RENDER_FUNCTION", instance)) {
|
|
7576
|
-
warn(
|
|
7576
|
+
warn$1(
|
|
7577
7577
|
`Non-function value encountered for slot "${key}". Prefer function slots for better performance.`
|
|
7578
7578
|
);
|
|
7579
7579
|
}
|
|
@@ -7584,7 +7584,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7584
7584
|
};
|
|
7585
7585
|
const normalizeVNodeSlots = (instance, children) => {
|
|
7586
7586
|
if (!isKeepAlive(instance.vnode) && !isCompatEnabled$1("RENDER_FUNCTION", instance)) {
|
|
7587
|
-
warn(
|
|
7587
|
+
warn$1(
|
|
7588
7588
|
`Non-function value encountered for default slot. Prefer function slots for better performance.`
|
|
7589
7589
|
);
|
|
7590
7590
|
}
|
|
@@ -7668,7 +7668,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7668
7668
|
const value = isUnmount ? null : refValue;
|
|
7669
7669
|
const { i: owner, r: ref } = rawRef;
|
|
7670
7670
|
if (!owner) {
|
|
7671
|
-
warn(
|
|
7671
|
+
warn$1(
|
|
7672
7672
|
`Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.`
|
|
7673
7673
|
);
|
|
7674
7674
|
return;
|
|
@@ -7723,7 +7723,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7723
7723
|
if (rawRef.k)
|
|
7724
7724
|
refs[rawRef.k] = value;
|
|
7725
7725
|
} else {
|
|
7726
|
-
warn("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7726
|
+
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7727
7727
|
}
|
|
7728
7728
|
};
|
|
7729
7729
|
if (value) {
|
|
@@ -7733,7 +7733,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7733
7733
|
doSet();
|
|
7734
7734
|
}
|
|
7735
7735
|
} else {
|
|
7736
|
-
warn("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7736
|
+
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7737
7737
|
}
|
|
7738
7738
|
}
|
|
7739
7739
|
}
|
|
@@ -7765,7 +7765,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7765
7765
|
} = rendererInternals;
|
|
7766
7766
|
const hydrate = (vnode, container) => {
|
|
7767
7767
|
if (!container.hasChildNodes()) {
|
|
7768
|
-
warn(
|
|
7768
|
+
warn$1(
|
|
7769
7769
|
`Attempting to hydrate existing markup but container is empty. Performing full mount instead.`
|
|
7770
7770
|
);
|
|
7771
7771
|
patch(null, vnode, container);
|
|
@@ -7825,7 +7825,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7825
7825
|
} else {
|
|
7826
7826
|
if (node.data !== vnode.children) {
|
|
7827
7827
|
hasMismatch = true;
|
|
7828
|
-
warn(
|
|
7828
|
+
warn$1(
|
|
7829
7829
|
`Hydration text mismatch in`,
|
|
7830
7830
|
node.parentNode,
|
|
7831
7831
|
`
|
|
@@ -7960,7 +7960,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7960
7960
|
hydrateNode
|
|
7961
7961
|
);
|
|
7962
7962
|
} else {
|
|
7963
|
-
warn("Invalid HostVNode type:", type, `(${typeof type})`);
|
|
7963
|
+
warn$1("Invalid HostVNode type:", type, `(${typeof type})`);
|
|
7964
7964
|
}
|
|
7965
7965
|
}
|
|
7966
7966
|
if (ref != null) {
|
|
@@ -8001,7 +8001,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8001
8001
|
while (next) {
|
|
8002
8002
|
hasMismatch = true;
|
|
8003
8003
|
if (!hasWarned) {
|
|
8004
|
-
warn(
|
|
8004
|
+
warn$1(
|
|
8005
8005
|
`Hydration children mismatch on`,
|
|
8006
8006
|
el,
|
|
8007
8007
|
`
|
|
@@ -8016,7 +8016,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
8016
8016
|
} else if (shapeFlag & 8) {
|
|
8017
8017
|
if (el.textContent !== vnode.children) {
|
|
8018
8018
|
hasMismatch = true;
|
|
8019
|
-
warn(
|
|
8019
|
+
warn$1(
|
|
8020
8020
|
`Hydration text content mismatch on`,
|
|
8021
8021
|
el,
|
|
8022
8022
|
`
|
|
@@ -8085,7 +8085,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
8085
8085
|
} else {
|
|
8086
8086
|
hasMismatch = true;
|
|
8087
8087
|
if (!hasWarned) {
|
|
8088
|
-
warn(
|
|
8088
|
+
warn$1(
|
|
8089
8089
|
`Hydration children mismatch on`,
|
|
8090
8090
|
container,
|
|
8091
8091
|
`
|
|
@@ -8132,7 +8132,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8132
8132
|
};
|
|
8133
8133
|
const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
|
|
8134
8134
|
hasMismatch = true;
|
|
8135
|
-
warn(
|
|
8135
|
+
warn$1(
|
|
8136
8136
|
`Hydration node mismatch:
|
|
8137
8137
|
- rendered on server:`,
|
|
8138
8138
|
node,
|
|
@@ -8210,9 +8210,9 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8210
8210
|
let actual;
|
|
8211
8211
|
let expected;
|
|
8212
8212
|
if (key === "class") {
|
|
8213
|
-
actual = el.getAttribute("class");
|
|
8214
|
-
expected = normalizeClass(clientValue);
|
|
8215
|
-
if (actual
|
|
8213
|
+
actual = toClassSet(el.getAttribute("class") || "");
|
|
8214
|
+
expected = toClassSet(normalizeClass(clientValue));
|
|
8215
|
+
if (!isSetEqual(actual, expected)) {
|
|
8216
8216
|
mismatchType = mismatchKey = `class`;
|
|
8217
8217
|
}
|
|
8218
8218
|
} else if (key === "style") {
|
|
@@ -8231,7 +8231,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8231
8231
|
}
|
|
8232
8232
|
if (mismatchType) {
|
|
8233
8233
|
const format = (v) => v === false ? `(not rendered)` : `${mismatchKey}="${v}"`;
|
|
8234
|
-
warn(
|
|
8234
|
+
warn$1(
|
|
8235
8235
|
`Hydration ${mismatchType} mismatch on`,
|
|
8236
8236
|
el,
|
|
8237
8237
|
`
|
|
@@ -8244,6 +8244,20 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8244
8244
|
}
|
|
8245
8245
|
return false;
|
|
8246
8246
|
}
|
|
8247
|
+
function toClassSet(str) {
|
|
8248
|
+
return new Set(str.trim().split(/\s+/));
|
|
8249
|
+
}
|
|
8250
|
+
function isSetEqual(a, b) {
|
|
8251
|
+
if (a.size !== b.size) {
|
|
8252
|
+
return false;
|
|
8253
|
+
}
|
|
8254
|
+
for (const s of a) {
|
|
8255
|
+
if (!b.has(s)) {
|
|
8256
|
+
return false;
|
|
8257
|
+
}
|
|
8258
|
+
}
|
|
8259
|
+
return true;
|
|
8260
|
+
}
|
|
8247
8261
|
|
|
8248
8262
|
let supported;
|
|
8249
8263
|
let perf;
|
|
@@ -8296,7 +8310,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8296
8310
|
const target = getGlobalThis();
|
|
8297
8311
|
target.__VUE__ = true;
|
|
8298
8312
|
{
|
|
8299
|
-
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
|
|
8313
|
+
setDevtoolsHook$1(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
|
|
8300
8314
|
}
|
|
8301
8315
|
const {
|
|
8302
8316
|
insert: hostInsert,
|
|
@@ -8405,7 +8419,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8405
8419
|
internals
|
|
8406
8420
|
);
|
|
8407
8421
|
} else {
|
|
8408
|
-
warn("Invalid VNode type:", type, `(${typeof type})`);
|
|
8422
|
+
warn$1("Invalid VNode type:", type, `(${typeof type})`);
|
|
8409
8423
|
}
|
|
8410
8424
|
}
|
|
8411
8425
|
if (ref != null && parentComponent) {
|
|
@@ -9399,7 +9413,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
9399
9413
|
const nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]);
|
|
9400
9414
|
if (nextChild.key != null) {
|
|
9401
9415
|
if (keyToNewIndexMap.has(nextChild.key)) {
|
|
9402
|
-
warn(
|
|
9416
|
+
warn$1(
|
|
9403
9417
|
`Duplicate keys found during update:`,
|
|
9404
9418
|
JSON.stringify(nextChild.key),
|
|
9405
9419
|
`Make sure keys are unique.`
|
|
@@ -9837,14 +9851,14 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
9837
9851
|
const targetSelector = props && props.to;
|
|
9838
9852
|
if (isString(targetSelector)) {
|
|
9839
9853
|
if (!select) {
|
|
9840
|
-
warn(
|
|
9854
|
+
warn$1(
|
|
9841
9855
|
`Current renderer does not support string target for Teleports. (missing querySelector renderer option)`
|
|
9842
9856
|
);
|
|
9843
9857
|
return null;
|
|
9844
9858
|
} else {
|
|
9845
9859
|
const target = select(targetSelector);
|
|
9846
9860
|
if (!target) {
|
|
9847
|
-
warn(
|
|
9861
|
+
warn$1(
|
|
9848
9862
|
`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.`
|
|
9849
9863
|
);
|
|
9850
9864
|
}
|
|
@@ -9852,7 +9866,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
9852
9866
|
}
|
|
9853
9867
|
} else {
|
|
9854
9868
|
if (!targetSelector && !isTeleportDisabled(props)) {
|
|
9855
|
-
warn(`Invalid Teleport target: ${targetSelector}`);
|
|
9869
|
+
warn$1(`Invalid Teleport target: ${targetSelector}`);
|
|
9856
9870
|
}
|
|
9857
9871
|
return targetSelector;
|
|
9858
9872
|
}
|
|
@@ -9888,7 +9902,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
9888
9902
|
namespace = "mathml";
|
|
9889
9903
|
}
|
|
9890
9904
|
} else if (!disabled) {
|
|
9891
|
-
warn("Invalid Teleport target on mount:", target, `(${typeof target})`);
|
|
9905
|
+
warn$1("Invalid Teleport target on mount:", target, `(${typeof target})`);
|
|
9892
9906
|
}
|
|
9893
9907
|
const mount = (container2, anchor2) => {
|
|
9894
9908
|
if (shapeFlag & 16) {
|
|
@@ -9975,7 +9989,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
9975
9989
|
0
|
|
9976
9990
|
);
|
|
9977
9991
|
} else {
|
|
9978
|
-
warn(
|
|
9992
|
+
warn$1(
|
|
9979
9993
|
"Invalid Teleport target on update:",
|
|
9980
9994
|
target,
|
|
9981
9995
|
`(${typeof target})`
|
|
@@ -10276,7 +10290,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
10276
10290
|
vnode.shapeFlag |= isString(children) ? 8 : 16;
|
|
10277
10291
|
}
|
|
10278
10292
|
if (vnode.key !== vnode.key) {
|
|
10279
|
-
warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
|
|
10293
|
+
warn$1(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
|
|
10280
10294
|
}
|
|
10281
10295
|
if (isBlockTreeEnabled > 0 && // avoid a block node from tracking itself
|
|
10282
10296
|
!isBlockNode && // has current parent block
|
|
@@ -10299,7 +10313,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
10299
10313
|
function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
|
|
10300
10314
|
if (!type || type === NULL_DYNAMIC_COMPONENT) {
|
|
10301
10315
|
if (!type) {
|
|
10302
|
-
warn(`Invalid vnode type when creating vnode: ${type}.`);
|
|
10316
|
+
warn$1(`Invalid vnode type when creating vnode: ${type}.`);
|
|
10303
10317
|
}
|
|
10304
10318
|
type = Comment;
|
|
10305
10319
|
}
|
|
@@ -10345,7 +10359,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
10345
10359
|
const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject(type) ? 4 : isFunction(type) ? 2 : 0;
|
|
10346
10360
|
if (shapeFlag & 4 && isProxy(type)) {
|
|
10347
10361
|
type = toRaw(type);
|
|
10348
|
-
warn(
|
|
10362
|
+
warn$1(
|
|
10349
10363
|
`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\`.`,
|
|
10350
10364
|
`
|
|
10351
10365
|
Component that was made reactive: `,
|
|
@@ -10646,7 +10660,7 @@ Component that was made reactive: `,
|
|
|
10646
10660
|
function validateComponentName(name, config) {
|
|
10647
10661
|
const appIsNativeTag = config.isNativeTag || NO;
|
|
10648
10662
|
if (isBuiltInTag(name) || appIsNativeTag(name)) {
|
|
10649
|
-
warn(
|
|
10663
|
+
warn$1(
|
|
10650
10664
|
"Do not use built-in or reserved HTML elements as component id: " + name
|
|
10651
10665
|
);
|
|
10652
10666
|
}
|
|
@@ -10685,7 +10699,7 @@ Component that was made reactive: `,
|
|
|
10685
10699
|
}
|
|
10686
10700
|
}
|
|
10687
10701
|
if (Component.compilerOptions && isRuntimeOnly()) {
|
|
10688
|
-
warn(
|
|
10702
|
+
warn$1(
|
|
10689
10703
|
`"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.`
|
|
10690
10704
|
);
|
|
10691
10705
|
}
|
|
@@ -10720,7 +10734,7 @@ Component that was made reactive: `,
|
|
|
10720
10734
|
instance.asyncDep = setupResult;
|
|
10721
10735
|
if (!instance.suspense) {
|
|
10722
10736
|
const name = (_a = Component.name) != null ? _a : "Anonymous";
|
|
10723
|
-
warn(
|
|
10737
|
+
warn$1(
|
|
10724
10738
|
`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.`
|
|
10725
10739
|
);
|
|
10726
10740
|
}
|
|
@@ -10739,7 +10753,7 @@ Component that was made reactive: `,
|
|
|
10739
10753
|
}
|
|
10740
10754
|
} else if (isObject(setupResult)) {
|
|
10741
10755
|
if (isVNode(setupResult)) {
|
|
10742
|
-
warn(
|
|
10756
|
+
warn$1(
|
|
10743
10757
|
`setup() should not return VNodes directly - return a render function instead.`
|
|
10744
10758
|
);
|
|
10745
10759
|
}
|
|
@@ -10751,7 +10765,7 @@ Component that was made reactive: `,
|
|
|
10751
10765
|
exposeSetupStateOnRenderContext(instance);
|
|
10752
10766
|
}
|
|
10753
10767
|
} else if (setupResult !== void 0) {
|
|
10754
|
-
warn(
|
|
10768
|
+
warn$1(
|
|
10755
10769
|
`setup() should return an object. Received: ${setupResult === null ? "null" : typeof setupResult}`
|
|
10756
10770
|
);
|
|
10757
10771
|
}
|
|
@@ -10824,12 +10838,12 @@ Component that was made reactive: `,
|
|
|
10824
10838
|
}
|
|
10825
10839
|
if (!Component.render && instance.render === NOOP && !isSSR) {
|
|
10826
10840
|
if (!compile$1 && Component.template) {
|
|
10827
|
-
warn(
|
|
10841
|
+
warn$1(
|
|
10828
10842
|
`Component provided template option but runtime compilation is not supported in this build of Vue.` + (` Use "vue.global.js" instead.` )
|
|
10829
10843
|
/* should not happen */
|
|
10830
10844
|
);
|
|
10831
10845
|
} else {
|
|
10832
|
-
warn(`Component is missing template or render function.`);
|
|
10846
|
+
warn$1(`Component is missing template or render function.`);
|
|
10833
10847
|
}
|
|
10834
10848
|
}
|
|
10835
10849
|
}
|
|
@@ -10843,11 +10857,11 @@ Component that was made reactive: `,
|
|
|
10843
10857
|
return target[key];
|
|
10844
10858
|
},
|
|
10845
10859
|
set() {
|
|
10846
|
-
warn(`setupContext.attrs is readonly.`);
|
|
10860
|
+
warn$1(`setupContext.attrs is readonly.`);
|
|
10847
10861
|
return false;
|
|
10848
10862
|
},
|
|
10849
10863
|
deleteProperty() {
|
|
10850
|
-
warn(`setupContext.attrs is readonly.`);
|
|
10864
|
+
warn$1(`setupContext.attrs is readonly.`);
|
|
10851
10865
|
return false;
|
|
10852
10866
|
}
|
|
10853
10867
|
}
|
|
@@ -10865,7 +10879,7 @@ Component that was made reactive: `,
|
|
|
10865
10879
|
const expose = (exposed) => {
|
|
10866
10880
|
{
|
|
10867
10881
|
if (instance.exposed) {
|
|
10868
|
-
warn(`expose() should be called only once per setup().`);
|
|
10882
|
+
warn$1(`expose() should be called only once per setup().`);
|
|
10869
10883
|
}
|
|
10870
10884
|
if (exposed != null) {
|
|
10871
10885
|
let exposedType = typeof exposed;
|
|
@@ -10877,7 +10891,7 @@ Component that was made reactive: `,
|
|
|
10877
10891
|
}
|
|
10878
10892
|
}
|
|
10879
10893
|
if (exposedType !== "object") {
|
|
10880
|
-
warn(
|
|
10894
|
+
warn$1(
|
|
10881
10895
|
`expose() should be passed a plain object, received ${exposedType}.`
|
|
10882
10896
|
);
|
|
10883
10897
|
}
|
|
@@ -10975,7 +10989,7 @@ Component that was made reactive: `,
|
|
|
10975
10989
|
const ssrContextKey = Symbol.for("v-scx");
|
|
10976
10990
|
const useSSRContext = () => {
|
|
10977
10991
|
{
|
|
10978
|
-
warn(`useSSRContext() is not supported in the global build.`);
|
|
10992
|
+
warn$1(`useSSRContext() is not supported in the global build.`);
|
|
10979
10993
|
}
|
|
10980
10994
|
};
|
|
10981
10995
|
|
|
@@ -11180,8 +11194,11 @@ Component that was made reactive: `,
|
|
|
11180
11194
|
return true;
|
|
11181
11195
|
}
|
|
11182
11196
|
|
|
11183
|
-
const version = "3.4.0-
|
|
11197
|
+
const version = "3.4.0-rc.2";
|
|
11198
|
+
const warn = warn$1 ;
|
|
11184
11199
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11200
|
+
const devtools = devtools$1 ;
|
|
11201
|
+
const setDevtoolsHook = setDevtoolsHook$1 ;
|
|
11185
11202
|
const ssrUtils = null;
|
|
11186
11203
|
const resolveFilter = resolveFilter$1 ;
|
|
11187
11204
|
const _compatUtils = {
|
|
@@ -12881,7 +12898,7 @@ Component that was made reactive: `,
|
|
|
12881
12898
|
defineProps: defineProps,
|
|
12882
12899
|
defineSSRCustomElement: defineSSRCustomElement,
|
|
12883
12900
|
defineSlots: defineSlots,
|
|
12884
|
-
|
|
12901
|
+
devtools: devtools,
|
|
12885
12902
|
effect: effect,
|
|
12886
12903
|
effectScope: effectScope,
|
|
12887
12904
|
getCurrentInstance: getCurrentInstance,
|
|
@@ -14504,12 +14521,6 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
14504
14521
|
loc: getLoc(start - 1, end),
|
|
14505
14522
|
codegenNode: void 0
|
|
14506
14523
|
};
|
|
14507
|
-
if (tokenizer.inSFCRoot) {
|
|
14508
|
-
currentOpenTag.innerLoc = getLoc(
|
|
14509
|
-
end + fastForward(end) + 1,
|
|
14510
|
-
end
|
|
14511
|
-
);
|
|
14512
|
-
}
|
|
14513
14524
|
},
|
|
14514
14525
|
onopentagend(end) {
|
|
14515
14526
|
endOpenTag(end);
|
|
@@ -14834,6 +14845,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
14834
14845
|
return currentInput.slice(start, end);
|
|
14835
14846
|
}
|
|
14836
14847
|
function endOpenTag(end) {
|
|
14848
|
+
if (tokenizer.inSFCRoot) {
|
|
14849
|
+
currentOpenTag.innerLoc = getLoc(end + 1, end + 1);
|
|
14850
|
+
}
|
|
14837
14851
|
addNode(currentOpenTag);
|
|
14838
14852
|
const { tag, ns } = currentOpenTag;
|
|
14839
14853
|
if (ns === 0 && currentOptions.isPreTag(tag)) {
|
|
@@ -14874,7 +14888,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
14874
14888
|
if (isImplied) {
|
|
14875
14889
|
setLocEnd(el.loc, backTrack(end, 60));
|
|
14876
14890
|
} else {
|
|
14877
|
-
setLocEnd(el.loc, end +
|
|
14891
|
+
setLocEnd(el.loc, end + 1);
|
|
14878
14892
|
}
|
|
14879
14893
|
if (tokenizer.inSFCRoot) {
|
|
14880
14894
|
if (el.children.length) {
|
|
@@ -14969,13 +14983,6 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
14969
14983
|
}
|
|
14970
14984
|
}
|
|
14971
14985
|
}
|
|
14972
|
-
function fastForward(start, c) {
|
|
14973
|
-
let offset = 0;
|
|
14974
|
-
while (currentInput.charCodeAt(start + offset) !== 62 && start + offset < currentInput.length) {
|
|
14975
|
-
offset++;
|
|
14976
|
-
}
|
|
14977
|
-
return offset;
|
|
14978
|
-
}
|
|
14979
14986
|
function backTrack(index, c) {
|
|
14980
14987
|
let i = index;
|
|
14981
14988
|
while (currentInput.charCodeAt(i) !== c && i >= 0)
|