vue 3.6.0-alpha.7 → 3.6.0-beta.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 +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +405 -337
- package/dist/vue.esm-browser.prod.js +8 -8
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +376 -308
- package/dist/vue.global.prod.js +9 -9
- package/dist/vue.runtime-with-vapor.esm-browser.js +905 -716
- package/dist/vue.runtime-with-vapor.esm-browser.prod.js +6 -6
- package/dist/vue.runtime.esm-browser.js +290 -242
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +262 -213
- package/dist/vue.runtime.global.prod.js +3 -3
- package/jsx-runtime/index.d.ts +1 -2
- package/jsx.d.ts +0 -2
- package/package.json +7 -7
package/dist/vue.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.6.0-
|
|
2
|
+
* vue v3.6.0-beta.2
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -827,13 +827,13 @@ var Vue = (function (exports) {
|
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
829
|
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
830
|
-
const ITERATE_KEY = Symbol(
|
|
830
|
+
const ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
831
831
|
"Object iterate"
|
|
832
832
|
);
|
|
833
|
-
const MAP_KEY_ITERATE_KEY = Symbol(
|
|
833
|
+
const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
834
834
|
"Map keys iterate"
|
|
835
835
|
);
|
|
836
|
-
const ARRAY_ITERATE_KEY = Symbol(
|
|
836
|
+
const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
837
837
|
"Array iterate"
|
|
838
838
|
);
|
|
839
839
|
function track(target, type, key) {
|
|
@@ -2454,7 +2454,6 @@ var Vue = (function (exports) {
|
|
|
2454
2454
|
instance,
|
|
2455
2455
|
11,
|
|
2456
2456
|
[
|
|
2457
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
2458
2457
|
msg + args.map((a) => {
|
|
2459
2458
|
var _a, _b;
|
|
2460
2459
|
return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
|
|
@@ -2834,10 +2833,10 @@ var Vue = (function (exports) {
|
|
|
2834
2833
|
}
|
|
2835
2834
|
}
|
|
2836
2835
|
let isFlushing = false;
|
|
2837
|
-
function flushOnAppMount() {
|
|
2836
|
+
function flushOnAppMount(instance) {
|
|
2838
2837
|
if (!isFlushing) {
|
|
2839
2838
|
isFlushing = true;
|
|
2840
|
-
flushPreFlushCbs();
|
|
2839
|
+
flushPreFlushCbs(instance);
|
|
2841
2840
|
flushPostFlushCbs();
|
|
2842
2841
|
isFlushing = false;
|
|
2843
2842
|
}
|
|
@@ -3079,7 +3078,6 @@ var Vue = (function (exports) {
|
|
|
3079
3078
|
// (#4815)
|
|
3080
3079
|
typeof window !== "undefined" && // some envs mock window but not fully
|
|
3081
3080
|
window.HTMLElement && // also exclude jsdom
|
|
3082
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
3083
3081
|
!((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))
|
|
3084
3082
|
) {
|
|
3085
3083
|
const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
|
|
@@ -3252,7 +3250,175 @@ var Vue = (function (exports) {
|
|
|
3252
3250
|
}
|
|
3253
3251
|
}
|
|
3254
3252
|
|
|
3255
|
-
|
|
3253
|
+
function provide(key, value) {
|
|
3254
|
+
{
|
|
3255
|
+
if (!currentInstance || currentInstance.isMounted && !isHmrUpdating) {
|
|
3256
|
+
warn$1(`provide() can only be used inside setup().`);
|
|
3257
|
+
}
|
|
3258
|
+
}
|
|
3259
|
+
if (currentInstance) {
|
|
3260
|
+
let provides = currentInstance.provides;
|
|
3261
|
+
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
3262
|
+
if (parentProvides === provides) {
|
|
3263
|
+
provides = currentInstance.provides = Object.create(parentProvides);
|
|
3264
|
+
}
|
|
3265
|
+
provides[key] = value;
|
|
3266
|
+
}
|
|
3267
|
+
}
|
|
3268
|
+
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
3269
|
+
const instance = getCurrentGenericInstance();
|
|
3270
|
+
if (instance || currentApp) {
|
|
3271
|
+
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.appContext && instance.appContext.provides : instance.parent.provides : void 0;
|
|
3272
|
+
if (provides && key in provides) {
|
|
3273
|
+
return provides[key];
|
|
3274
|
+
} else if (arguments.length > 1) {
|
|
3275
|
+
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
3276
|
+
} else {
|
|
3277
|
+
warn$1(`injection "${String(key)}" not found.`);
|
|
3278
|
+
}
|
|
3279
|
+
} else {
|
|
3280
|
+
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
3281
|
+
}
|
|
3282
|
+
}
|
|
3283
|
+
function hasInjectionContext() {
|
|
3284
|
+
return !!(getCurrentGenericInstance() || currentApp);
|
|
3285
|
+
}
|
|
3286
|
+
|
|
3287
|
+
const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
|
|
3288
|
+
const useSSRContext = () => {
|
|
3289
|
+
{
|
|
3290
|
+
warn$1(`useSSRContext() is not supported in the global build.`);
|
|
3291
|
+
}
|
|
3292
|
+
};
|
|
3293
|
+
|
|
3294
|
+
function watchEffect(effect, options) {
|
|
3295
|
+
return doWatch(effect, null, options);
|
|
3296
|
+
}
|
|
3297
|
+
function watchPostEffect(effect, options) {
|
|
3298
|
+
return doWatch(
|
|
3299
|
+
effect,
|
|
3300
|
+
null,
|
|
3301
|
+
extend({}, options, { flush: "post" })
|
|
3302
|
+
);
|
|
3303
|
+
}
|
|
3304
|
+
function watchSyncEffect(effect, options) {
|
|
3305
|
+
return doWatch(
|
|
3306
|
+
effect,
|
|
3307
|
+
null,
|
|
3308
|
+
extend({}, options, { flush: "sync" })
|
|
3309
|
+
);
|
|
3310
|
+
}
|
|
3311
|
+
function watch(source, cb, options) {
|
|
3312
|
+
if (!isFunction(cb)) {
|
|
3313
|
+
warn$1(
|
|
3314
|
+
`\`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.`
|
|
3315
|
+
);
|
|
3316
|
+
}
|
|
3317
|
+
return doWatch(source, cb, options);
|
|
3318
|
+
}
|
|
3319
|
+
class RenderWatcherEffect extends WatcherEffect {
|
|
3320
|
+
constructor(instance, source, cb, options, flush) {
|
|
3321
|
+
super(source, cb, options);
|
|
3322
|
+
this.flush = flush;
|
|
3323
|
+
const job = () => {
|
|
3324
|
+
if (this.dirty) {
|
|
3325
|
+
this.run();
|
|
3326
|
+
}
|
|
3327
|
+
};
|
|
3328
|
+
if (cb) {
|
|
3329
|
+
this.flags |= 128;
|
|
3330
|
+
job.flags |= 2;
|
|
3331
|
+
}
|
|
3332
|
+
if (instance) {
|
|
3333
|
+
job.i = instance;
|
|
3334
|
+
}
|
|
3335
|
+
this.job = job;
|
|
3336
|
+
}
|
|
3337
|
+
notify() {
|
|
3338
|
+
const flags = this.flags;
|
|
3339
|
+
if (!(flags & 256)) {
|
|
3340
|
+
const flush = this.flush;
|
|
3341
|
+
const job = this.job;
|
|
3342
|
+
if (flush === "post") {
|
|
3343
|
+
queuePostRenderEffect(job, void 0, job.i ? job.i.suspense : null);
|
|
3344
|
+
} else if (flush === "pre") {
|
|
3345
|
+
queueJob(job, job.i ? job.i.uid : void 0, true);
|
|
3346
|
+
} else {
|
|
3347
|
+
job();
|
|
3348
|
+
}
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
}
|
|
3352
|
+
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
3353
|
+
const { immediate, deep, flush = "pre", once } = options;
|
|
3354
|
+
if (!cb) {
|
|
3355
|
+
if (immediate !== void 0) {
|
|
3356
|
+
warn$1(
|
|
3357
|
+
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3358
|
+
);
|
|
3359
|
+
}
|
|
3360
|
+
if (deep !== void 0) {
|
|
3361
|
+
warn$1(
|
|
3362
|
+
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3363
|
+
);
|
|
3364
|
+
}
|
|
3365
|
+
if (once !== void 0) {
|
|
3366
|
+
warn$1(
|
|
3367
|
+
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3368
|
+
);
|
|
3369
|
+
}
|
|
3370
|
+
}
|
|
3371
|
+
const baseWatchOptions = extend({}, options);
|
|
3372
|
+
baseWatchOptions.onWarn = warn$1;
|
|
3373
|
+
const instance = currentInstance;
|
|
3374
|
+
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
3375
|
+
const effect = new RenderWatcherEffect(
|
|
3376
|
+
instance,
|
|
3377
|
+
source,
|
|
3378
|
+
cb,
|
|
3379
|
+
baseWatchOptions,
|
|
3380
|
+
flush
|
|
3381
|
+
);
|
|
3382
|
+
if (cb) {
|
|
3383
|
+
effect.run(true);
|
|
3384
|
+
} else if (flush === "post") {
|
|
3385
|
+
queuePostRenderEffect(effect.job, void 0, instance && instance.suspense);
|
|
3386
|
+
} else {
|
|
3387
|
+
effect.run(true);
|
|
3388
|
+
}
|
|
3389
|
+
const stop = effect.stop.bind(effect);
|
|
3390
|
+
stop.pause = effect.pause.bind(effect);
|
|
3391
|
+
stop.resume = effect.resume.bind(effect);
|
|
3392
|
+
stop.stop = stop;
|
|
3393
|
+
return stop;
|
|
3394
|
+
}
|
|
3395
|
+
function instanceWatch(source, value, options) {
|
|
3396
|
+
const publicThis = this.proxy;
|
|
3397
|
+
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
3398
|
+
let cb;
|
|
3399
|
+
if (isFunction(value)) {
|
|
3400
|
+
cb = value;
|
|
3401
|
+
} else {
|
|
3402
|
+
cb = value.handler;
|
|
3403
|
+
options = value;
|
|
3404
|
+
}
|
|
3405
|
+
const prev = setCurrentInstance(this);
|
|
3406
|
+
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
3407
|
+
setCurrentInstance(...prev);
|
|
3408
|
+
return res;
|
|
3409
|
+
}
|
|
3410
|
+
function createPathGetter(ctx, path) {
|
|
3411
|
+
const segments = path.split(".");
|
|
3412
|
+
return () => {
|
|
3413
|
+
let cur = ctx;
|
|
3414
|
+
for (let i = 0; i < segments.length && cur; i++) {
|
|
3415
|
+
cur = cur[segments[i]];
|
|
3416
|
+
}
|
|
3417
|
+
return cur;
|
|
3418
|
+
};
|
|
3419
|
+
}
|
|
3420
|
+
|
|
3421
|
+
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
3256
3422
|
const isTeleport = (type) => type.__isTeleport;
|
|
3257
3423
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
3258
3424
|
const isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
|
|
@@ -3624,8 +3790,8 @@ var Vue = (function (exports) {
|
|
|
3624
3790
|
return targetAnchor;
|
|
3625
3791
|
}
|
|
3626
3792
|
|
|
3627
|
-
const leaveCbKey = Symbol("_leaveCb");
|
|
3628
|
-
const enterCbKey$1 = Symbol("_enterCb");
|
|
3793
|
+
const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
|
|
3794
|
+
const enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
|
|
3629
3795
|
function useTransitionState() {
|
|
3630
3796
|
const state = {
|
|
3631
3797
|
isMounted: false,
|
|
@@ -4878,9 +5044,17 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4878
5044
|
}
|
|
4879
5045
|
}
|
|
4880
5046
|
|
|
4881
|
-
|
|
4882
|
-
|
|
5047
|
+
let requestIdleCallback;
|
|
5048
|
+
let cancelIdleCallback;
|
|
5049
|
+
function ensureIdleCallbacks() {
|
|
5050
|
+
if (!requestIdleCallback) {
|
|
5051
|
+
const g = getGlobalThis();
|
|
5052
|
+
requestIdleCallback = g.requestIdleCallback || ((cb) => setTimeout(cb, 1));
|
|
5053
|
+
cancelIdleCallback = g.cancelIdleCallback || ((id) => clearTimeout(id));
|
|
5054
|
+
}
|
|
5055
|
+
}
|
|
4883
5056
|
const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
|
|
5057
|
+
ensureIdleCallbacks();
|
|
4884
5058
|
const id = requestIdleCallback(hydrate, { timeout });
|
|
4885
5059
|
return () => cancelIdleCallback(id);
|
|
4886
5060
|
};
|
|
@@ -5232,7 +5406,9 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5232
5406
|
}
|
|
5233
5407
|
function pruneCache(filter) {
|
|
5234
5408
|
cache.forEach((vnode, key) => {
|
|
5235
|
-
const name = getComponentName(
|
|
5409
|
+
const name = getComponentName(
|
|
5410
|
+
isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type
|
|
5411
|
+
);
|
|
5236
5412
|
if (name && !filter(name)) {
|
|
5237
5413
|
pruneCacheEntry(key);
|
|
5238
5414
|
}
|
|
@@ -5534,7 +5710,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5534
5710
|
function resolveComponent(name, maybeSelfReference) {
|
|
5535
5711
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
5536
5712
|
}
|
|
5537
|
-
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
5713
|
+
const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
5538
5714
|
function resolveDynamicComponent(component) {
|
|
5539
5715
|
if (isString(component)) {
|
|
5540
5716
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -5725,14 +5901,14 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5725
5901
|
}
|
|
5726
5902
|
}
|
|
5727
5903
|
|
|
5728
|
-
function toHandlers(obj, preserveCaseIfNecessary) {
|
|
5904
|
+
function toHandlers(obj, preserveCaseIfNecessary, needWrap) {
|
|
5729
5905
|
const ret = {};
|
|
5730
5906
|
if (!isObject(obj)) {
|
|
5731
5907
|
warn$1(`v-on with no argument expects an object value.`);
|
|
5732
5908
|
return ret;
|
|
5733
5909
|
}
|
|
5734
5910
|
for (const key in obj) {
|
|
5735
|
-
ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];
|
|
5911
|
+
ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = needWrap ? () => obj[key] : obj[key];
|
|
5736
5912
|
}
|
|
5737
5913
|
return ret;
|
|
5738
5914
|
}
|
|
@@ -6701,174 +6877,6 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6701
6877
|
}
|
|
6702
6878
|
let currentApp = null;
|
|
6703
6879
|
|
|
6704
|
-
function provide(key, value) {
|
|
6705
|
-
{
|
|
6706
|
-
if (!currentInstance || currentInstance.isMounted) {
|
|
6707
|
-
warn$1(`provide() can only be used inside setup().`);
|
|
6708
|
-
}
|
|
6709
|
-
}
|
|
6710
|
-
if (currentInstance) {
|
|
6711
|
-
let provides = currentInstance.provides;
|
|
6712
|
-
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
6713
|
-
if (parentProvides === provides) {
|
|
6714
|
-
provides = currentInstance.provides = Object.create(parentProvides);
|
|
6715
|
-
}
|
|
6716
|
-
provides[key] = value;
|
|
6717
|
-
}
|
|
6718
|
-
}
|
|
6719
|
-
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
6720
|
-
const instance = getCurrentGenericInstance();
|
|
6721
|
-
if (instance || currentApp) {
|
|
6722
|
-
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.appContext && instance.appContext.provides : instance.parent.provides : void 0;
|
|
6723
|
-
if (provides && key in provides) {
|
|
6724
|
-
return provides[key];
|
|
6725
|
-
} else if (arguments.length > 1) {
|
|
6726
|
-
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
6727
|
-
} else {
|
|
6728
|
-
warn$1(`injection "${String(key)}" not found.`);
|
|
6729
|
-
}
|
|
6730
|
-
} else {
|
|
6731
|
-
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
6732
|
-
}
|
|
6733
|
-
}
|
|
6734
|
-
function hasInjectionContext() {
|
|
6735
|
-
return !!(getCurrentGenericInstance() || currentApp);
|
|
6736
|
-
}
|
|
6737
|
-
|
|
6738
|
-
const ssrContextKey = Symbol.for("v-scx");
|
|
6739
|
-
const useSSRContext = () => {
|
|
6740
|
-
{
|
|
6741
|
-
warn$1(`useSSRContext() is not supported in the global build.`);
|
|
6742
|
-
}
|
|
6743
|
-
};
|
|
6744
|
-
|
|
6745
|
-
function watchEffect(effect, options) {
|
|
6746
|
-
return doWatch(effect, null, options);
|
|
6747
|
-
}
|
|
6748
|
-
function watchPostEffect(effect, options) {
|
|
6749
|
-
return doWatch(
|
|
6750
|
-
effect,
|
|
6751
|
-
null,
|
|
6752
|
-
extend({}, options, { flush: "post" })
|
|
6753
|
-
);
|
|
6754
|
-
}
|
|
6755
|
-
function watchSyncEffect(effect, options) {
|
|
6756
|
-
return doWatch(
|
|
6757
|
-
effect,
|
|
6758
|
-
null,
|
|
6759
|
-
extend({}, options, { flush: "sync" })
|
|
6760
|
-
);
|
|
6761
|
-
}
|
|
6762
|
-
function watch(source, cb, options) {
|
|
6763
|
-
if (!isFunction(cb)) {
|
|
6764
|
-
warn$1(
|
|
6765
|
-
`\`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.`
|
|
6766
|
-
);
|
|
6767
|
-
}
|
|
6768
|
-
return doWatch(source, cb, options);
|
|
6769
|
-
}
|
|
6770
|
-
class RenderWatcherEffect extends WatcherEffect {
|
|
6771
|
-
constructor(instance, source, cb, options, flush) {
|
|
6772
|
-
super(source, cb, options);
|
|
6773
|
-
this.flush = flush;
|
|
6774
|
-
const job = () => {
|
|
6775
|
-
if (this.dirty) {
|
|
6776
|
-
this.run();
|
|
6777
|
-
}
|
|
6778
|
-
};
|
|
6779
|
-
if (cb) {
|
|
6780
|
-
this.flags |= 128;
|
|
6781
|
-
job.flags |= 2;
|
|
6782
|
-
}
|
|
6783
|
-
if (instance) {
|
|
6784
|
-
job.i = instance;
|
|
6785
|
-
}
|
|
6786
|
-
this.job = job;
|
|
6787
|
-
}
|
|
6788
|
-
notify() {
|
|
6789
|
-
const flags = this.flags;
|
|
6790
|
-
if (!(flags & 256)) {
|
|
6791
|
-
const flush = this.flush;
|
|
6792
|
-
const job = this.job;
|
|
6793
|
-
if (flush === "post") {
|
|
6794
|
-
queuePostRenderEffect(job, void 0, job.i ? job.i.suspense : null);
|
|
6795
|
-
} else if (flush === "pre") {
|
|
6796
|
-
queueJob(job, job.i ? job.i.uid : void 0, true);
|
|
6797
|
-
} else {
|
|
6798
|
-
job();
|
|
6799
|
-
}
|
|
6800
|
-
}
|
|
6801
|
-
}
|
|
6802
|
-
}
|
|
6803
|
-
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
6804
|
-
const { immediate, deep, flush = "pre", once } = options;
|
|
6805
|
-
if (!cb) {
|
|
6806
|
-
if (immediate !== void 0) {
|
|
6807
|
-
warn$1(
|
|
6808
|
-
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
6809
|
-
);
|
|
6810
|
-
}
|
|
6811
|
-
if (deep !== void 0) {
|
|
6812
|
-
warn$1(
|
|
6813
|
-
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
6814
|
-
);
|
|
6815
|
-
}
|
|
6816
|
-
if (once !== void 0) {
|
|
6817
|
-
warn$1(
|
|
6818
|
-
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
6819
|
-
);
|
|
6820
|
-
}
|
|
6821
|
-
}
|
|
6822
|
-
const baseWatchOptions = extend({}, options);
|
|
6823
|
-
baseWatchOptions.onWarn = warn$1;
|
|
6824
|
-
const instance = currentInstance;
|
|
6825
|
-
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
6826
|
-
const effect = new RenderWatcherEffect(
|
|
6827
|
-
instance,
|
|
6828
|
-
source,
|
|
6829
|
-
cb,
|
|
6830
|
-
baseWatchOptions,
|
|
6831
|
-
flush
|
|
6832
|
-
);
|
|
6833
|
-
if (cb) {
|
|
6834
|
-
effect.run(true);
|
|
6835
|
-
} else if (flush === "post") {
|
|
6836
|
-
queuePostRenderEffect(effect.job, void 0, instance && instance.suspense);
|
|
6837
|
-
} else {
|
|
6838
|
-
effect.run(true);
|
|
6839
|
-
}
|
|
6840
|
-
const stop = effect.stop.bind(effect);
|
|
6841
|
-
stop.pause = effect.pause.bind(effect);
|
|
6842
|
-
stop.resume = effect.resume.bind(effect);
|
|
6843
|
-
stop.stop = stop;
|
|
6844
|
-
return stop;
|
|
6845
|
-
}
|
|
6846
|
-
function instanceWatch(source, value, options) {
|
|
6847
|
-
const publicThis = this.proxy;
|
|
6848
|
-
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
6849
|
-
let cb;
|
|
6850
|
-
if (isFunction(value)) {
|
|
6851
|
-
cb = value;
|
|
6852
|
-
} else {
|
|
6853
|
-
cb = value.handler;
|
|
6854
|
-
options = value;
|
|
6855
|
-
}
|
|
6856
|
-
const prev = setCurrentInstance(this);
|
|
6857
|
-
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
6858
|
-
setCurrentInstance(...prev);
|
|
6859
|
-
return res;
|
|
6860
|
-
}
|
|
6861
|
-
function createPathGetter(ctx, path) {
|
|
6862
|
-
const segments = path.split(".");
|
|
6863
|
-
return () => {
|
|
6864
|
-
let cur = ctx;
|
|
6865
|
-
for (let i = 0; i < segments.length && cur; i++) {
|
|
6866
|
-
cur = cur[segments[i]];
|
|
6867
|
-
}
|
|
6868
|
-
return cur;
|
|
6869
|
-
};
|
|
6870
|
-
}
|
|
6871
|
-
|
|
6872
6880
|
function useModel(props, name, options = EMPTY_OBJ) {
|
|
6873
6881
|
const i = getCurrentGenericInstance();
|
|
6874
6882
|
if (!i) {
|
|
@@ -7953,6 +7961,14 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7953
7961
|
return supported;
|
|
7954
7962
|
}
|
|
7955
7963
|
|
|
7964
|
+
const MoveType = {
|
|
7965
|
+
"ENTER": 0,
|
|
7966
|
+
"0": "ENTER",
|
|
7967
|
+
"LEAVE": 1,
|
|
7968
|
+
"1": "LEAVE",
|
|
7969
|
+
"REORDER": 2,
|
|
7970
|
+
"2": "REORDER"
|
|
7971
|
+
};
|
|
7956
7972
|
const queuePostRenderEffect = queueEffectWithSuspense ;
|
|
7957
7973
|
function createRenderer(options) {
|
|
7958
7974
|
return baseCreateRenderer(options);
|
|
@@ -8101,7 +8117,15 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8101
8117
|
} else {
|
|
8102
8118
|
const el = n2.el = n1.el;
|
|
8103
8119
|
if (n2.children !== n1.children) {
|
|
8104
|
-
|
|
8120
|
+
if (isHmrUpdating && n2.patchFlag === -1 && "__elIndex" in n1) {
|
|
8121
|
+
const childNodes = container.childNodes;
|
|
8122
|
+
const newChild = hostCreateText(n2.children);
|
|
8123
|
+
const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
|
|
8124
|
+
hostInsert(newChild, container, oldChild);
|
|
8125
|
+
hostRemove(oldChild);
|
|
8126
|
+
} else {
|
|
8127
|
+
hostSetText(el, n2.children);
|
|
8128
|
+
}
|
|
8105
8129
|
}
|
|
8106
8130
|
}
|
|
8107
8131
|
};
|
|
@@ -8487,7 +8511,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8487
8511
|
} else {
|
|
8488
8512
|
if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result
|
|
8489
8513
|
// of renderSlot() with no valid children
|
|
8490
|
-
n1.dynamicChildren) {
|
|
8514
|
+
n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
|
|
8491
8515
|
patchBlockChildren(
|
|
8492
8516
|
n1.dynamicChildren,
|
|
8493
8517
|
dynamicChildren,
|
|
@@ -9175,8 +9199,8 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9175
9199
|
const nextChild = c2[nextIndex];
|
|
9176
9200
|
const anchorVNode = c2[nextIndex + 1];
|
|
9177
9201
|
const anchor = nextIndex + 1 < l2 ? (
|
|
9178
|
-
// #13559, fallback to el placeholder for unresolved async component
|
|
9179
|
-
anchorVNode.el || anchorVNode
|
|
9202
|
+
// #13559, #14173 fallback to el placeholder for unresolved async component
|
|
9203
|
+
anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
|
|
9180
9204
|
) : parentAnchor;
|
|
9181
9205
|
if (newIndexToOldIndexMap[i] === 0) {
|
|
9182
9206
|
patch(
|
|
@@ -9481,9 +9505,11 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9481
9505
|
return teleportEnd ? hostNextSibling(teleportEnd) : el;
|
|
9482
9506
|
};
|
|
9483
9507
|
const render = (vnode, container, namespace) => {
|
|
9508
|
+
let instance;
|
|
9484
9509
|
if (vnode == null) {
|
|
9485
9510
|
if (container._vnode) {
|
|
9486
9511
|
unmount(container._vnode, null, null, true);
|
|
9512
|
+
instance = container._vnode.component;
|
|
9487
9513
|
}
|
|
9488
9514
|
} else {
|
|
9489
9515
|
patch(
|
|
@@ -9497,7 +9523,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9497
9523
|
);
|
|
9498
9524
|
}
|
|
9499
9525
|
container._vnode = vnode;
|
|
9500
|
-
flushOnAppMount();
|
|
9526
|
+
flushOnAppMount(instance);
|
|
9501
9527
|
};
|
|
9502
9528
|
const internals = {
|
|
9503
9529
|
p: patch,
|
|
@@ -9587,9 +9613,13 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9587
9613
|
if (!shallow && c2.patchFlag !== -2)
|
|
9588
9614
|
traverseStaticChildren(c1, c2);
|
|
9589
9615
|
}
|
|
9590
|
-
if (c2.type === Text
|
|
9591
|
-
|
|
9592
|
-
|
|
9616
|
+
if (c2.type === Text) {
|
|
9617
|
+
if (c2.patchFlag !== -1) {
|
|
9618
|
+
c2.el = c1.el;
|
|
9619
|
+
} else {
|
|
9620
|
+
c2.__elIndex = i + // take fragment start anchor into account
|
|
9621
|
+
(n1.type === Fragment ? 1 : 0);
|
|
9622
|
+
}
|
|
9593
9623
|
}
|
|
9594
9624
|
if (c2.type === Comment && !c2.el) {
|
|
9595
9625
|
c2.el = c1.el;
|
|
@@ -9625,16 +9655,24 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9625
9655
|
insert();
|
|
9626
9656
|
}
|
|
9627
9657
|
}
|
|
9628
|
-
function performTransitionLeave(el, transition, remove, isElement = true) {
|
|
9658
|
+
function performTransitionLeave(el, transition, remove, isElement = true, force = false) {
|
|
9629
9659
|
const performRemove = () => {
|
|
9630
9660
|
remove();
|
|
9631
9661
|
if (transition && !transition.persisted && transition.afterLeave) {
|
|
9632
9662
|
transition.afterLeave();
|
|
9633
9663
|
}
|
|
9634
9664
|
};
|
|
9635
|
-
if (isElement && transition && !transition.persisted) {
|
|
9665
|
+
if (force || isElement && transition && !transition.persisted) {
|
|
9636
9666
|
const { leave, delayLeave } = transition;
|
|
9637
|
-
const performLeave = () =>
|
|
9667
|
+
const performLeave = () => {
|
|
9668
|
+
if (el._isLeaving && force) {
|
|
9669
|
+
el[leaveCbKey](
|
|
9670
|
+
true
|
|
9671
|
+
/* cancelled */
|
|
9672
|
+
);
|
|
9673
|
+
}
|
|
9674
|
+
leave(el, performRemove);
|
|
9675
|
+
};
|
|
9638
9676
|
if (delayLeave) {
|
|
9639
9677
|
delayLeave(el, performRemove, performLeave);
|
|
9640
9678
|
} else {
|
|
@@ -9690,6 +9728,16 @@ app.use(vaporInteropPlugin)
|
|
|
9690
9728
|
}
|
|
9691
9729
|
return inheritedScopeIds;
|
|
9692
9730
|
}
|
|
9731
|
+
function resolveAsyncComponentPlaceholder(anchorVnode) {
|
|
9732
|
+
if (anchorVnode.placeholder) {
|
|
9733
|
+
return anchorVnode.placeholder;
|
|
9734
|
+
}
|
|
9735
|
+
const instance = anchorVnode.component;
|
|
9736
|
+
if (instance) {
|
|
9737
|
+
return resolveAsyncComponentPlaceholder(instance.subTree);
|
|
9738
|
+
}
|
|
9739
|
+
return null;
|
|
9740
|
+
}
|
|
9693
9741
|
|
|
9694
9742
|
const isSuspense = (type) => type.__isSuspense;
|
|
9695
9743
|
let suspenseId = 0;
|
|
@@ -10184,7 +10232,7 @@ app.use(vaporInteropPlugin)
|
|
|
10184
10232
|
parentSuspense,
|
|
10185
10233
|
parentComponent,
|
|
10186
10234
|
node.parentNode,
|
|
10187
|
-
//
|
|
10235
|
+
// oxlint-disable-next-line no-restricted-globals
|
|
10188
10236
|
document.createElement("div"),
|
|
10189
10237
|
null,
|
|
10190
10238
|
namespace,
|
|
@@ -10272,11 +10320,11 @@ app.use(vaporInteropPlugin)
|
|
|
10272
10320
|
return suspensible != null && suspensible !== false;
|
|
10273
10321
|
}
|
|
10274
10322
|
|
|
10275
|
-
const Fragment = Symbol.for("v-fgt");
|
|
10276
|
-
const Text = Symbol.for("v-txt");
|
|
10277
|
-
const Comment = Symbol.for("v-cmt");
|
|
10278
|
-
const Static = Symbol.for("v-stc");
|
|
10279
|
-
const VaporSlot = Symbol.for("v-vps");
|
|
10323
|
+
const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
|
|
10324
|
+
const Text = /* @__PURE__ */ Symbol.for("v-txt");
|
|
10325
|
+
const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
10326
|
+
const Static = /* @__PURE__ */ Symbol.for("v-stc");
|
|
10327
|
+
const VaporSlot = /* @__PURE__ */ Symbol.for("v-vps");
|
|
10280
10328
|
const blockStack = [];
|
|
10281
10329
|
let currentBlock = null;
|
|
10282
10330
|
function openBlock(disableTracking = false) {
|
|
@@ -10668,7 +10716,7 @@ Component that was made reactive: `,
|
|
|
10668
10716
|
simpleSetCurrentInstance(instance);
|
|
10669
10717
|
}
|
|
10670
10718
|
};
|
|
10671
|
-
const internalOptions = ["ce", "type"];
|
|
10719
|
+
const internalOptions = ["ce", "type", "uid"];
|
|
10672
10720
|
const useInstanceOption = (key, silent = false) => {
|
|
10673
10721
|
const instance = getCurrentGenericInstance();
|
|
10674
10722
|
if (!instance) {
|
|
@@ -10688,7 +10736,7 @@ Component that was made reactive: `,
|
|
|
10688
10736
|
return { hasInstance: true, value: instance[key] };
|
|
10689
10737
|
};
|
|
10690
10738
|
|
|
10691
|
-
const emptyAppContext = createAppContext();
|
|
10739
|
+
const emptyAppContext = /* @__PURE__ */ createAppContext();
|
|
10692
10740
|
let uid = 0;
|
|
10693
10741
|
function createComponentInstance(vnode, parent, suspense) {
|
|
10694
10742
|
const type = vnode.type;
|
|
@@ -11318,7 +11366,7 @@ Component that was made reactive: `,
|
|
|
11318
11366
|
return true;
|
|
11319
11367
|
}
|
|
11320
11368
|
|
|
11321
|
-
const version = "3.6.0-
|
|
11369
|
+
const version = "3.6.0-beta.2";
|
|
11322
11370
|
const warn = warn$1 ;
|
|
11323
11371
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11324
11372
|
const devtools = devtools$1 ;
|
|
@@ -11411,7 +11459,7 @@ Component that was made reactive: `,
|
|
|
11411
11459
|
|
|
11412
11460
|
const TRANSITION$1 = "transition";
|
|
11413
11461
|
const ANIMATION = "animation";
|
|
11414
|
-
const vtcKey = Symbol("_vtc");
|
|
11462
|
+
const vtcKey = /* @__PURE__ */ Symbol("_vtc");
|
|
11415
11463
|
const DOMTransitionPropsValidators = {
|
|
11416
11464
|
name: String,
|
|
11417
11465
|
type: String,
|
|
@@ -11704,8 +11752,8 @@ Component that was made reactive: `,
|
|
|
11704
11752
|
}
|
|
11705
11753
|
}
|
|
11706
11754
|
|
|
11707
|
-
const vShowOriginalDisplay = Symbol("_vod");
|
|
11708
|
-
const vShowHidden = Symbol("_vsh");
|
|
11755
|
+
const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
|
|
11756
|
+
const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
|
|
11709
11757
|
const vShow = {
|
|
11710
11758
|
// used for prop mismatch check during hydration
|
|
11711
11759
|
name: "show",
|
|
@@ -11747,7 +11795,7 @@ Component that was made reactive: `,
|
|
|
11747
11795
|
el[vShowHidden] = !value;
|
|
11748
11796
|
}
|
|
11749
11797
|
|
|
11750
|
-
const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT" );
|
|
11798
|
+
const CSS_VAR_TEXT = /* @__PURE__ */ Symbol("CSS_VAR_TEXT" );
|
|
11751
11799
|
function useCssVars(getter) {
|
|
11752
11800
|
const instance = getCurrentInstance();
|
|
11753
11801
|
const getVars = () => getter(instance.proxy);
|
|
@@ -12008,7 +12056,7 @@ Component that was made reactive: `,
|
|
|
12008
12056
|
function removeEventListener(el, event, handler, options) {
|
|
12009
12057
|
el.removeEventListener(event, handler, options);
|
|
12010
12058
|
}
|
|
12011
|
-
const veiKey = Symbol("_vei");
|
|
12059
|
+
const veiKey = /* @__PURE__ */ Symbol("_vei");
|
|
12012
12060
|
function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
12013
12061
|
const invokers = el[veiKey] || (el[veiKey] = {});
|
|
12014
12062
|
const existingInvoker = invokers[rawName];
|
|
@@ -12658,8 +12706,8 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12658
12706
|
|
|
12659
12707
|
const positionMap = /* @__PURE__ */ new WeakMap();
|
|
12660
12708
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
12661
|
-
const moveCbKey = Symbol("_moveCb");
|
|
12662
|
-
const enterCbKey = Symbol("_enterCb");
|
|
12709
|
+
const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
|
|
12710
|
+
const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
|
|
12663
12711
|
const decorate = (t) => {
|
|
12664
12712
|
delete t.props.mode;
|
|
12665
12713
|
return t;
|
|
@@ -12822,7 +12870,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12822
12870
|
target.dispatchEvent(new Event("input"));
|
|
12823
12871
|
}
|
|
12824
12872
|
}
|
|
12825
|
-
const assignKey = Symbol("_assign");
|
|
12873
|
+
const assignKey = /* @__PURE__ */ Symbol("_assign");
|
|
12826
12874
|
const vModelText = {
|
|
12827
12875
|
created(el, { modifiers: { lazy, trim, number } }, vnode) {
|
|
12828
12876
|
el[assignKey] = getModelAssigner(vnode);
|
|
@@ -13270,81 +13318,81 @@ Make sure to use the production build (*.prod.js) when deploying for production.
|
|
|
13270
13318
|
}
|
|
13271
13319
|
}
|
|
13272
13320
|
|
|
13273
|
-
const FRAGMENT = Symbol(`Fragment` );
|
|
13274
|
-
const TELEPORT = Symbol(`Teleport` );
|
|
13275
|
-
const SUSPENSE = Symbol(`Suspense` );
|
|
13276
|
-
const KEEP_ALIVE = Symbol(`KeepAlive` );
|
|
13277
|
-
const BASE_TRANSITION = Symbol(
|
|
13321
|
+
const FRAGMENT = /* @__PURE__ */ Symbol(`Fragment` );
|
|
13322
|
+
const TELEPORT = /* @__PURE__ */ Symbol(`Teleport` );
|
|
13323
|
+
const SUSPENSE = /* @__PURE__ */ Symbol(`Suspense` );
|
|
13324
|
+
const KEEP_ALIVE = /* @__PURE__ */ Symbol(`KeepAlive` );
|
|
13325
|
+
const BASE_TRANSITION = /* @__PURE__ */ Symbol(
|
|
13278
13326
|
`BaseTransition`
|
|
13279
13327
|
);
|
|
13280
|
-
const OPEN_BLOCK = Symbol(`openBlock` );
|
|
13281
|
-
const CREATE_BLOCK = Symbol(`createBlock` );
|
|
13282
|
-
const CREATE_ELEMENT_BLOCK = Symbol(
|
|
13328
|
+
const OPEN_BLOCK = /* @__PURE__ */ Symbol(`openBlock` );
|
|
13329
|
+
const CREATE_BLOCK = /* @__PURE__ */ Symbol(`createBlock` );
|
|
13330
|
+
const CREATE_ELEMENT_BLOCK = /* @__PURE__ */ Symbol(
|
|
13283
13331
|
`createElementBlock`
|
|
13284
13332
|
);
|
|
13285
|
-
const CREATE_VNODE = Symbol(`createVNode` );
|
|
13286
|
-
const CREATE_ELEMENT_VNODE = Symbol(
|
|
13333
|
+
const CREATE_VNODE = /* @__PURE__ */ Symbol(`createVNode` );
|
|
13334
|
+
const CREATE_ELEMENT_VNODE = /* @__PURE__ */ Symbol(
|
|
13287
13335
|
`createElementVNode`
|
|
13288
13336
|
);
|
|
13289
|
-
const CREATE_COMMENT = Symbol(
|
|
13337
|
+
const CREATE_COMMENT = /* @__PURE__ */ Symbol(
|
|
13290
13338
|
`createCommentVNode`
|
|
13291
13339
|
);
|
|
13292
|
-
const CREATE_TEXT = Symbol(
|
|
13340
|
+
const CREATE_TEXT = /* @__PURE__ */ Symbol(
|
|
13293
13341
|
`createTextVNode`
|
|
13294
13342
|
);
|
|
13295
|
-
const CREATE_STATIC = Symbol(
|
|
13343
|
+
const CREATE_STATIC = /* @__PURE__ */ Symbol(
|
|
13296
13344
|
`createStaticVNode`
|
|
13297
13345
|
);
|
|
13298
|
-
const RESOLVE_COMPONENT = Symbol(
|
|
13346
|
+
const RESOLVE_COMPONENT = /* @__PURE__ */ Symbol(
|
|
13299
13347
|
`resolveComponent`
|
|
13300
13348
|
);
|
|
13301
|
-
const RESOLVE_DYNAMIC_COMPONENT = Symbol(
|
|
13349
|
+
const RESOLVE_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol(
|
|
13302
13350
|
`resolveDynamicComponent`
|
|
13303
13351
|
);
|
|
13304
|
-
const RESOLVE_DIRECTIVE = Symbol(
|
|
13352
|
+
const RESOLVE_DIRECTIVE = /* @__PURE__ */ Symbol(
|
|
13305
13353
|
`resolveDirective`
|
|
13306
13354
|
);
|
|
13307
|
-
const RESOLVE_FILTER = Symbol(
|
|
13355
|
+
const RESOLVE_FILTER = /* @__PURE__ */ Symbol(
|
|
13308
13356
|
`resolveFilter`
|
|
13309
13357
|
);
|
|
13310
|
-
const WITH_DIRECTIVES = Symbol(
|
|
13358
|
+
const WITH_DIRECTIVES = /* @__PURE__ */ Symbol(
|
|
13311
13359
|
`withDirectives`
|
|
13312
13360
|
);
|
|
13313
|
-
const RENDER_LIST = Symbol(`renderList` );
|
|
13314
|
-
const RENDER_SLOT = Symbol(`renderSlot` );
|
|
13315
|
-
const CREATE_SLOTS = Symbol(`createSlots` );
|
|
13316
|
-
const TO_DISPLAY_STRING = Symbol(
|
|
13361
|
+
const RENDER_LIST = /* @__PURE__ */ Symbol(`renderList` );
|
|
13362
|
+
const RENDER_SLOT = /* @__PURE__ */ Symbol(`renderSlot` );
|
|
13363
|
+
const CREATE_SLOTS = /* @__PURE__ */ Symbol(`createSlots` );
|
|
13364
|
+
const TO_DISPLAY_STRING = /* @__PURE__ */ Symbol(
|
|
13317
13365
|
`toDisplayString`
|
|
13318
13366
|
);
|
|
13319
|
-
const MERGE_PROPS = Symbol(`mergeProps` );
|
|
13320
|
-
const NORMALIZE_CLASS = Symbol(
|
|
13367
|
+
const MERGE_PROPS = /* @__PURE__ */ Symbol(`mergeProps` );
|
|
13368
|
+
const NORMALIZE_CLASS = /* @__PURE__ */ Symbol(
|
|
13321
13369
|
`normalizeClass`
|
|
13322
13370
|
);
|
|
13323
|
-
const NORMALIZE_STYLE = Symbol(
|
|
13371
|
+
const NORMALIZE_STYLE = /* @__PURE__ */ Symbol(
|
|
13324
13372
|
`normalizeStyle`
|
|
13325
13373
|
);
|
|
13326
|
-
const NORMALIZE_PROPS = Symbol(
|
|
13374
|
+
const NORMALIZE_PROPS = /* @__PURE__ */ Symbol(
|
|
13327
13375
|
`normalizeProps`
|
|
13328
13376
|
);
|
|
13329
|
-
const GUARD_REACTIVE_PROPS = Symbol(
|
|
13377
|
+
const GUARD_REACTIVE_PROPS = /* @__PURE__ */ Symbol(
|
|
13330
13378
|
`guardReactiveProps`
|
|
13331
13379
|
);
|
|
13332
|
-
const TO_HANDLERS = Symbol(`toHandlers` );
|
|
13333
|
-
const CAMELIZE = Symbol(`camelize` );
|
|
13334
|
-
const CAPITALIZE = Symbol(`capitalize` );
|
|
13335
|
-
const TO_HANDLER_KEY = Symbol(
|
|
13380
|
+
const TO_HANDLERS = /* @__PURE__ */ Symbol(`toHandlers` );
|
|
13381
|
+
const CAMELIZE = /* @__PURE__ */ Symbol(`camelize` );
|
|
13382
|
+
const CAPITALIZE = /* @__PURE__ */ Symbol(`capitalize` );
|
|
13383
|
+
const TO_HANDLER_KEY = /* @__PURE__ */ Symbol(
|
|
13336
13384
|
`toHandlerKey`
|
|
13337
13385
|
);
|
|
13338
|
-
const SET_BLOCK_TRACKING = Symbol(
|
|
13386
|
+
const SET_BLOCK_TRACKING = /* @__PURE__ */ Symbol(
|
|
13339
13387
|
`setBlockTracking`
|
|
13340
13388
|
);
|
|
13341
|
-
const PUSH_SCOPE_ID = Symbol(`pushScopeId` );
|
|
13342
|
-
const POP_SCOPE_ID = Symbol(`popScopeId` );
|
|
13343
|
-
const WITH_CTX = Symbol(`withCtx` );
|
|
13344
|
-
const UNREF = Symbol(`unref` );
|
|
13345
|
-
const IS_REF = Symbol(`isRef` );
|
|
13346
|
-
const WITH_MEMO = Symbol(`withMemo` );
|
|
13347
|
-
const IS_MEMO_SAME = Symbol(`isMemoSame` );
|
|
13389
|
+
const PUSH_SCOPE_ID = /* @__PURE__ */ Symbol(`pushScopeId` );
|
|
13390
|
+
const POP_SCOPE_ID = /* @__PURE__ */ Symbol(`popScopeId` );
|
|
13391
|
+
const WITH_CTX = /* @__PURE__ */ Symbol(`withCtx` );
|
|
13392
|
+
const UNREF = /* @__PURE__ */ Symbol(`unref` );
|
|
13393
|
+
const IS_REF = /* @__PURE__ */ Symbol(`isRef` );
|
|
13394
|
+
const WITH_MEMO = /* @__PURE__ */ Symbol(`withMemo` );
|
|
13395
|
+
const IS_MEMO_SAME = /* @__PURE__ */ Symbol(`isMemoSame` );
|
|
13348
13396
|
const helperNameMap = {
|
|
13349
13397
|
[FRAGMENT]: `Fragment`,
|
|
13350
13398
|
[TELEPORT]: `Teleport`,
|
|
@@ -13639,14 +13687,28 @@ Make sure to use the production build (*.prod.js) when deploying for production.
|
|
|
13639
13687
|
getPos(index) {
|
|
13640
13688
|
let line = 1;
|
|
13641
13689
|
let column = index + 1;
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
|
|
13690
|
+
const length = this.newlines.length;
|
|
13691
|
+
let j = -1;
|
|
13692
|
+
if (length > 100) {
|
|
13693
|
+
let l = -1;
|
|
13694
|
+
let r = length;
|
|
13695
|
+
while (l + 1 < r) {
|
|
13696
|
+
const m = l + r >>> 1;
|
|
13697
|
+
this.newlines[m] < index ? l = m : r = m;
|
|
13698
|
+
}
|
|
13699
|
+
j = l;
|
|
13700
|
+
} else {
|
|
13701
|
+
for (let i = length - 1; i >= 0; i--) {
|
|
13702
|
+
if (index > this.newlines[i]) {
|
|
13703
|
+
j = i;
|
|
13704
|
+
break;
|
|
13705
|
+
}
|
|
13648
13706
|
}
|
|
13649
13707
|
}
|
|
13708
|
+
if (j >= 0) {
|
|
13709
|
+
line = j + 2;
|
|
13710
|
+
column = index - this.newlines[j];
|
|
13711
|
+
}
|
|
13650
13712
|
return {
|
|
13651
13713
|
column,
|
|
13652
13714
|
line,
|
|
@@ -14394,7 +14456,7 @@ Make sure to use the production build (*.prod.js) when deploying for production.
|
|
|
14394
14456
|
[32]: `v-for has invalid expression.`,
|
|
14395
14457
|
[33]: `<template v-for> key should be placed on the <template> tag.`,
|
|
14396
14458
|
[34]: `v-bind is missing expression.`,
|
|
14397
|
-
[
|
|
14459
|
+
[53]: `v-bind with same-name shorthand only allows static argument.`,
|
|
14398
14460
|
[35]: `v-on is missing expression.`,
|
|
14399
14461
|
[36]: `Unexpected custom directive on <slot> outlet.`,
|
|
14400
14462
|
[37]: `Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.`,
|
|
@@ -14406,16 +14468,17 @@ Make sure to use the production build (*.prod.js) when deploying for production.
|
|
|
14406
14468
|
[43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
|
|
14407
14469
|
[44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
|
|
14408
14470
|
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
|
|
14409
|
-
[45]: `
|
|
14410
|
-
[46]:
|
|
14411
|
-
[
|
|
14471
|
+
[45]: `v-model cannot be used on a const binding because it is not writable.`,
|
|
14472
|
+
[46]: `Error parsing JavaScript expression: `,
|
|
14473
|
+
[47]: `<KeepAlive> expects exactly one child component.`,
|
|
14474
|
+
[52]: `@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.`,
|
|
14412
14475
|
// generic errors
|
|
14413
|
-
[
|
|
14414
|
-
[
|
|
14415
|
-
[
|
|
14416
|
-
[
|
|
14476
|
+
[48]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
|
|
14477
|
+
[49]: `ES module mode is not supported in this build of compiler.`,
|
|
14478
|
+
[50]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
|
|
14479
|
+
[51]: `"scopeId" option is only supported in module mode.`,
|
|
14417
14480
|
// just to fulfill types
|
|
14418
|
-
[
|
|
14481
|
+
[54]: ``
|
|
14419
14482
|
};
|
|
14420
14483
|
|
|
14421
14484
|
const isStaticExp = (p) => p.type === 4 && p.isStatic;
|
|
@@ -16508,7 +16571,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
16508
16571
|
}
|
|
16509
16572
|
context.onError(
|
|
16510
16573
|
createCompilerError(
|
|
16511
|
-
|
|
16574
|
+
46,
|
|
16512
16575
|
node.loc,
|
|
16513
16576
|
void 0,
|
|
16514
16577
|
message
|
|
@@ -17271,7 +17334,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
17271
17334
|
patchFlag |= 1024;
|
|
17272
17335
|
if (node.children.length > 1) {
|
|
17273
17336
|
context.onError(
|
|
17274
|
-
createCompilerError(
|
|
17337
|
+
createCompilerError(47, {
|
|
17275
17338
|
start: node.children[0].loc.start,
|
|
17276
17339
|
end: node.children[node.children.length - 1].loc.end,
|
|
17277
17340
|
source: ""
|
|
@@ -17818,7 +17881,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
17818
17881
|
if (arg.isStatic) {
|
|
17819
17882
|
let rawName = arg.content;
|
|
17820
17883
|
if (rawName.startsWith("vnode")) {
|
|
17821
|
-
context.onError(createCompilerError(
|
|
17884
|
+
context.onError(createCompilerError(52, arg.loc));
|
|
17822
17885
|
}
|
|
17823
17886
|
if (rawName.startsWith("vue:")) {
|
|
17824
17887
|
rawName = `vnode-${rawName.slice(4)}`;
|
|
@@ -18051,6 +18114,10 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
18051
18114
|
context.onError(createCompilerError(44, exp.loc));
|
|
18052
18115
|
return createTransformProps();
|
|
18053
18116
|
}
|
|
18117
|
+
if (bindingType === "literal-const" || bindingType === "setup-const") {
|
|
18118
|
+
context.onError(createCompilerError(45, exp.loc));
|
|
18119
|
+
return createTransformProps();
|
|
18120
|
+
}
|
|
18054
18121
|
if (!expString.trim() || !isMemberExpression(exp) && true) {
|
|
18055
18122
|
context.onError(
|
|
18056
18123
|
createCompilerError(42, exp.loc)
|
|
@@ -18130,7 +18197,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
18130
18197
|
if (arg.type !== 4 || !arg.isStatic) {
|
|
18131
18198
|
context.onError(
|
|
18132
18199
|
createCompilerError(
|
|
18133
|
-
|
|
18200
|
+
53,
|
|
18134
18201
|
arg.loc
|
|
18135
18202
|
)
|
|
18136
18203
|
);
|
|
@@ -18174,17 +18241,17 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
18174
18241
|
const isModuleMode = options.mode === "module";
|
|
18175
18242
|
{
|
|
18176
18243
|
if (options.prefixIdentifiers === true) {
|
|
18177
|
-
onError(createCompilerError(47));
|
|
18178
|
-
} else if (isModuleMode) {
|
|
18179
18244
|
onError(createCompilerError(48));
|
|
18245
|
+
} else if (isModuleMode) {
|
|
18246
|
+
onError(createCompilerError(49));
|
|
18180
18247
|
}
|
|
18181
18248
|
}
|
|
18182
18249
|
const prefixIdentifiers = false;
|
|
18183
18250
|
if (options.cacheHandlers) {
|
|
18184
|
-
onError(createCompilerError(
|
|
18251
|
+
onError(createCompilerError(50));
|
|
18185
18252
|
}
|
|
18186
18253
|
if (options.scopeId && !isModuleMode) {
|
|
18187
|
-
onError(createCompilerError(
|
|
18254
|
+
onError(createCompilerError(51));
|
|
18188
18255
|
}
|
|
18189
18256
|
const resolvedOptions = extend({}, options, {
|
|
18190
18257
|
prefixIdentifiers
|
|
@@ -18212,26 +18279,26 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
18212
18279
|
|
|
18213
18280
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
18214
18281
|
|
|
18215
|
-
const V_MODEL_RADIO = Symbol(`vModelRadio` );
|
|
18216
|
-
const V_MODEL_CHECKBOX = Symbol(
|
|
18282
|
+
const V_MODEL_RADIO = /* @__PURE__ */ Symbol(`vModelRadio` );
|
|
18283
|
+
const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
|
|
18217
18284
|
`vModelCheckbox`
|
|
18218
18285
|
);
|
|
18219
|
-
const V_MODEL_TEXT = Symbol(`vModelText` );
|
|
18220
|
-
const V_MODEL_SELECT = Symbol(
|
|
18286
|
+
const V_MODEL_TEXT = /* @__PURE__ */ Symbol(`vModelText` );
|
|
18287
|
+
const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
|
|
18221
18288
|
`vModelSelect`
|
|
18222
18289
|
);
|
|
18223
|
-
const V_MODEL_DYNAMIC = Symbol(
|
|
18290
|
+
const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
|
|
18224
18291
|
`vModelDynamic`
|
|
18225
18292
|
);
|
|
18226
|
-
const V_ON_WITH_MODIFIERS = Symbol(
|
|
18293
|
+
const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
|
|
18227
18294
|
`vOnModifiersGuard`
|
|
18228
18295
|
);
|
|
18229
|
-
const V_ON_WITH_KEYS = Symbol(
|
|
18296
|
+
const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
|
|
18230
18297
|
`vOnKeysGuard`
|
|
18231
18298
|
);
|
|
18232
|
-
const V_SHOW = Symbol(`vShow` );
|
|
18233
|
-
const TRANSITION = Symbol(`Transition` );
|
|
18234
|
-
const TRANSITION_GROUP = Symbol(
|
|
18299
|
+
const V_SHOW = /* @__PURE__ */ Symbol(`vShow` );
|
|
18300
|
+
const TRANSITION = /* @__PURE__ */ Symbol(`Transition` );
|
|
18301
|
+
const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
|
|
18235
18302
|
`TransitionGroup`
|
|
18236
18303
|
);
|
|
18237
18304
|
registerRuntimeHelpers({
|
|
@@ -18342,31 +18409,31 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
18342
18409
|
);
|
|
18343
18410
|
}
|
|
18344
18411
|
const DOMErrorMessages = {
|
|
18345
|
-
[
|
|
18346
|
-
[
|
|
18347
|
-
[
|
|
18348
|
-
[
|
|
18349
|
-
[
|
|
18350
|
-
[
|
|
18351
|
-
[
|
|
18352
|
-
[
|
|
18353
|
-
[
|
|
18354
|
-
[
|
|
18355
|
-
[
|
|
18412
|
+
[54]: `v-html is missing expression.`,
|
|
18413
|
+
[55]: `v-html will override element children.`,
|
|
18414
|
+
[56]: `v-text is missing expression.`,
|
|
18415
|
+
[57]: `v-text will override element children.`,
|
|
18416
|
+
[58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
|
|
18417
|
+
[59]: `v-model argument is not supported on plain elements.`,
|
|
18418
|
+
[60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
|
|
18419
|
+
[61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
|
|
18420
|
+
[62]: `v-show is missing expression.`,
|
|
18421
|
+
[63]: `<Transition> expects exactly one child element or component.`,
|
|
18422
|
+
[64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
|
|
18356
18423
|
// just to fulfill types
|
|
18357
|
-
[
|
|
18424
|
+
[65]: ``
|
|
18358
18425
|
};
|
|
18359
18426
|
|
|
18360
18427
|
const transformVHtml = (dir, node, context) => {
|
|
18361
18428
|
const { exp, loc } = dir;
|
|
18362
18429
|
if (!exp) {
|
|
18363
18430
|
context.onError(
|
|
18364
|
-
createDOMCompilerError(
|
|
18431
|
+
createDOMCompilerError(54, loc)
|
|
18365
18432
|
);
|
|
18366
18433
|
}
|
|
18367
18434
|
if (node.children.length) {
|
|
18368
18435
|
context.onError(
|
|
18369
|
-
createDOMCompilerError(
|
|
18436
|
+
createDOMCompilerError(55, loc)
|
|
18370
18437
|
);
|
|
18371
18438
|
node.children.length = 0;
|
|
18372
18439
|
}
|
|
@@ -18384,12 +18451,12 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
18384
18451
|
const { exp, loc } = dir;
|
|
18385
18452
|
if (!exp) {
|
|
18386
18453
|
context.onError(
|
|
18387
|
-
createDOMCompilerError(
|
|
18454
|
+
createDOMCompilerError(56, loc)
|
|
18388
18455
|
);
|
|
18389
18456
|
}
|
|
18390
18457
|
if (node.children.length) {
|
|
18391
18458
|
context.onError(
|
|
18392
|
-
createDOMCompilerError(
|
|
18459
|
+
createDOMCompilerError(57, loc)
|
|
18393
18460
|
);
|
|
18394
18461
|
node.children.length = 0;
|
|
18395
18462
|
}
|
|
@@ -18415,7 +18482,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
18415
18482
|
if (dir.arg) {
|
|
18416
18483
|
context.onError(
|
|
18417
18484
|
createDOMCompilerError(
|
|
18418
|
-
|
|
18485
|
+
59,
|
|
18419
18486
|
dir.arg.loc
|
|
18420
18487
|
)
|
|
18421
18488
|
);
|
|
@@ -18425,7 +18492,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
18425
18492
|
if (value && isStaticArgOf(value.arg, "value")) {
|
|
18426
18493
|
context.onError(
|
|
18427
18494
|
createDOMCompilerError(
|
|
18428
|
-
|
|
18495
|
+
61,
|
|
18429
18496
|
value.loc
|
|
18430
18497
|
)
|
|
18431
18498
|
);
|
|
@@ -18453,7 +18520,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
18453
18520
|
isInvalidType = true;
|
|
18454
18521
|
context.onError(
|
|
18455
18522
|
createDOMCompilerError(
|
|
18456
|
-
|
|
18523
|
+
60,
|
|
18457
18524
|
dir.loc
|
|
18458
18525
|
)
|
|
18459
18526
|
);
|
|
@@ -18479,7 +18546,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
18479
18546
|
} else {
|
|
18480
18547
|
context.onError(
|
|
18481
18548
|
createDOMCompilerError(
|
|
18482
|
-
|
|
18549
|
+
58,
|
|
18483
18550
|
dir.loc
|
|
18484
18551
|
)
|
|
18485
18552
|
);
|
|
@@ -18584,7 +18651,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
18584
18651
|
const { exp, loc } = dir;
|
|
18585
18652
|
if (!exp) {
|
|
18586
18653
|
context.onError(
|
|
18587
|
-
createDOMCompilerError(
|
|
18654
|
+
createDOMCompilerError(62, loc)
|
|
18588
18655
|
);
|
|
18589
18656
|
}
|
|
18590
18657
|
return {
|
|
@@ -18608,7 +18675,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
18608
18675
|
}
|
|
18609
18676
|
if (hasMultipleChildren(node)) {
|
|
18610
18677
|
onError(
|
|
18611
|
-
createDOMCompilerError(
|
|
18678
|
+
createDOMCompilerError(63, {
|
|
18612
18679
|
start: node.children[0].loc.start,
|
|
18613
18680
|
end: node.children[node.children.length - 1].loc.end,
|
|
18614
18681
|
source: ""
|
|
@@ -18643,7 +18710,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
18643
18710
|
if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
|
|
18644
18711
|
context.onError(
|
|
18645
18712
|
createDOMCompilerError(
|
|
18646
|
-
|
|
18713
|
+
64,
|
|
18647
18714
|
node.loc
|
|
18648
18715
|
)
|
|
18649
18716
|
);
|
|
@@ -18924,6 +18991,7 @@ ${codeFrame}` : message);
|
|
|
18924
18991
|
exports.ErrorTypeStrings = ErrorTypeStrings;
|
|
18925
18992
|
exports.Fragment = Fragment;
|
|
18926
18993
|
exports.KeepAlive = KeepAlive;
|
|
18994
|
+
exports.MoveType = MoveType;
|
|
18927
18995
|
exports.ReactiveEffect = ReactiveEffect;
|
|
18928
18996
|
exports.Static = Static;
|
|
18929
18997
|
exports.Suspense = Suspense;
|